在 2022-11-20 19:23, Pali Rohár 写道:
GNU LD provides __ImageBase symbol since 2.19. This is standard windows symbol and should be used instead of custom gnu _image_base__ symbol.Detect non-existence of __ImageBase symbol at ./configure time and for compatibility with older GNU LD versions, define __ImageBase symbol as alias to _image_base__ symbol. This allows to remove all #ifdef hacks for older GNU LD versions as with this change __ImageBase works correctly with all GNU LD versions. --- mingw-w64-crt/Makefile.am | 4 ++++ mingw-w64-crt/configure.ac | 6 ++++++ mingw-w64-crt/crt/__imagebase.c | 18 ++++++++++++++++++ mingw-w64-crt/crt/crtexe.c | 5 ----- mingw-w64-crt/crt/crtexewin.c | 3 --- mingw-w64-crt/crt/pesect.c | 9 --------- mingw-w64-crt/crt/pseudo-reloc.c | 6 +----- mingw-w64-crt/libsrc/dloadhelper.c | 1 - mingw-w64-crt/misc/delayimp.c | 1 - 9 files changed, 29 insertions(+), 24 deletions(-) create mode 100644 mingw-w64-crt/crt/__imagebase.c
Thanks for the patched. Pushed. -- Best regards, LIU Hao
OpenPGP_signature
Description: OpenPGP digital signature
_______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
