]> git.ipfire.org Git - thirdparty/gcc.git/commit
libphobos: Add section support code for MACHO and PE/COFF
authorIain Buclaw <ibuclaw@gdcproject.org>
Thu, 8 Apr 2021 14:11:16 +0000 (16:11 +0200)
committerIain Buclaw <ibuclaw@gdcproject.org>
Sat, 10 Apr 2021 13:02:07 +0000 (15:02 +0200)
commit32703b80f66f7ca504eb79bee7e745f22cf096a8
tree1954456b1d2e6a84ccc6a9846f2211f4fb60d596
parent385ee099eeae53bff5dd5adf673ad4f4b8d22981
libphobos: Add section support code for MACHO and PE/COFF

This replaces the original and untested support for Windows and OSX, and
is the 90% of the work needed to support libphobos on those targets.

The core.thread interface has been updated to accomodate for the same
function might be implemented by any of the platform-dependent modules.

libphobos/ChangeLog:

* libdruntime/Makefile.am (DRUNTIME_DSOURCES): Removed
gcc/sections/android.d, elf_shared.d, osx.d, win32.d, and win64.d.
Added gcc/sections/common.d, elf.d macho.d, and pecoff.d.
* libdruntime/Makefile.in: Regenerate.
* libdruntime/core/thread/osthread.d: Update externDFunc FQDN names to
use platform independant section function names.
* libdruntime/gcc/sections/elf_shared.d: Renamed to...
* libdruntime/gcc/sections/elf.d: ...this.  Mangle functions for
core.thread interface as if they come from the gcc.sections module.
* libdruntime/gcc/sections/package.d: Update public imports, declare
functions for core.thread interface.
* libdruntime/gcc/sections/android.d: Removed.
* libdruntime/gcc/sections/osx.d: Removed.
* libdruntime/gcc/sections/win32.d: Removed.
* libdruntime/gcc/sections/win64.d: Removed.
* libdruntime/gcc/sections/common.d: New file.
* libdruntime/gcc/sections/macho.d: New file.
* libdruntime/gcc/sections/pecoff.d: New file.
12 files changed:
libphobos/libdruntime/Makefile.am
libphobos/libdruntime/Makefile.in
libphobos/libdruntime/core/thread/osthread.d
libphobos/libdruntime/gcc/sections/android.d [deleted file]
libphobos/libdruntime/gcc/sections/common.d [new file with mode: 0644]
libphobos/libdruntime/gcc/sections/elf.d [moved from libphobos/libdruntime/gcc/sections/elf_shared.d with 93% similarity]
libphobos/libdruntime/gcc/sections/macho.d [new file with mode: 0644]
libphobos/libdruntime/gcc/sections/osx.d [deleted file]
libphobos/libdruntime/gcc/sections/package.d
libphobos/libdruntime/gcc/sections/pecoff.d [new file with mode: 0644]
libphobos/libdruntime/gcc/sections/win32.d [deleted file]
libphobos/libdruntime/gcc/sections/win64.d [deleted file]