]> git.ipfire.org Git - thirdparty/gcc.git/blame - libphobos/libdruntime/gcc/sections/package.d
Update copyright years.
[thirdparty/gcc.git] / libphobos / libdruntime / gcc / sections / package.d
CommitLineData
8b651828 1// Run-time support for retrieving platform-specific sections.
7adcbafe 2// Copyright (C) 2019-2022 Free Software Foundation, Inc.
8b651828
IB
3
4// GCC is free software; you can redistribute it and/or modify it under
5// the terms of the GNU General Public License as published by the Free
6// Software Foundation; either version 3, or (at your option) any later
7// version.
8
9// GCC is distributed in the hope that it will be useful, but WITHOUT ANY
10// WARRANTY; without even the implied warranty of MERCHANTABILITY or
11// FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12// for more details.
13
14// Under Section 7 of GPL version 3, you are granted additional
15// permissions described in the GCC Runtime Library Exception, version
16// 3.1, as published by the Free Software Foundation.
17
18// You should have received a copy of the GNU General Public License and
19// a copy of the GCC Runtime Library Exception along with this program;
20// see the files COPYING3 and COPYING.RUNTIME respectively. If not, see
21// <http://www.gnu.org/licenses/>.
22
23module gcc.sections;
24
32703b80
IB
25version (CRuntime_Glibc) version = SectionsElf;
26version (CRuntime_Musl) version = SectionsElf;
27version (CRuntime_UClibc) version = SectionsElf;
28version (FreeBSD) version = SectionsElf;
29version (NetBSD) version = SectionsElf;
d86e6085 30version (OpenBSD) version = SectionsElf;
32703b80
IB
31version (DragonFlyBSD) version = SectionsElf;
32version (Solaris) version = SectionsElf;
33version (OSX) version = SectionsMacho;
34version (Windows) version = SectionsPeCoff;
35
36version (SectionsElf)
37 public import gcc.sections.elf;
38else version (SectionsMacho)
39 public import gcc.sections.macho;
40else version (SectionsPeCoff)
41 public import gcc.sections.pecoff;
8b651828
IB
42else
43 static assert(0, "unimplemented");
32703b80
IB
44
45version (Shared)
46{
47 // interface for core.thread to inherit loaded libraries
48 void* pinLoadedLibraries() nothrow @nogc;
49 void unpinLoadedLibraries(void* p) nothrow @nogc;
50 void inheritLoadedLibraries(void* p) nothrow @nogc;
51 void cleanupLoadedLibraries() nothrow @nogc;
52}