diff options
author | Evgeny Karpov <Evgeny.Karpov@microsoft.com> | 2024-06-24 12:46:54 +0000 |
---|---|---|
committer | Christophe Lyon <christophe.lyon@linaro.org> | 2024-06-25 06:38:39 +0000 |
commit | ed20feebd9ea31d58861f61205bd412b0c3febd0 (patch) | |
tree | 23a654fd5c2a5bc0cb89461c7884a34fa68d8e8b /gcc/config/mingw/winnt-dll.cc | |
parent | 337632ef02a77d20ceb3dcb04751b4d4c844e23e (diff) |
Adjust DLL import/export implementation for AArch64
The DLL import/export mingw implementation, originally from ix86,
requires minor adjustments to be compatible with AArch64.
2024-06-08 Evgeny Karpov <Evgeny.Karpov@microsoft.com>
gcc/ChangeLog:
* config/i386/cygming.h
(PE_COFF_EXTERN_DECL_SHOULD_BE_LEGITIMIZED): Declare whether an
external declaration should be legitimized.
(HAVE_64BIT_POINTERS): Define whether the target supports 64-bit
pointers.
* config/mingw/mingw32.h (defined): Use the correct
DllMainCRTStartup entry function.
* config/mingw/winnt-dll.cc (defined): Exclude ix86-related code.
Diffstat (limited to 'gcc/config/mingw/winnt-dll.cc')
-rw-r--r-- | gcc/config/mingw/winnt-dll.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/gcc/config/mingw/winnt-dll.cc b/gcc/config/mingw/winnt-dll.cc index 1354402a959..66c445cba77 100644 --- a/gcc/config/mingw/winnt-dll.cc +++ b/gcc/config/mingw/winnt-dll.cc @@ -206,7 +206,7 @@ legitimize_pe_coff_symbol (rtx addr, bool inreg) } } - if (ix86_cmodel != CM_LARGE_PIC && ix86_cmodel != CM_MEDIUM_PIC) + if (!PE_COFF_EXTERN_DECL_SHOULD_BE_LEGITIMIZED) return NULL_RTX; if (GET_CODE (addr) == SYMBOL_REF |