diff options
author | Mark Harmstone <mark@harmstone.com> | 2023-01-22 23:45:03 +0000 |
---|---|---|
committer | Mark Harmstone <mark@harmstone.com> | 2023-01-23 20:29:51 +0000 |
commit | cec13966ba4f7c85f527a6310e1b07ee956d08f3 (patch) | |
tree | 15f8f7cf8a27ed87e3099e0c3648492c04e6db2a /ld/emultempl | |
parent | 6f4a117fe1ea8f5722ff9fd4db9a1ecc8bd26b84 (diff) | |
download | gdb-cec13966ba4f7c85f527a6310e1b07ee956d08f3.zip gdb-cec13966ba4f7c85f527a6310e1b07ee956d08f3.tar.gz gdb-cec13966ba4f7c85f527a6310e1b07ee956d08f3.tar.bz2 |
ld: Set default subsystem for arm-pe to IMAGE_SUBSYSTEM_WINDOWS_GUI
This fixes the test failures introduced by 87a5cf5c, by changing the
default subsystem for arm-pe from 9 (IMAGE_SUBSYSTEM_WINDOWS_CE_GUI) to
2 (IMAGE_SUBSYSTEM_WINDOWS_GUI), which matches what happens with other
PE targets.
As far as I can tell there's no working modern Windows CE toolchain
knocking about anyway, so this change shouldn't inconvenience anyone.
Diffstat (limited to 'ld/emultempl')
-rw-r--r-- | ld/emultempl/pe.em | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/ld/emultempl/pe.em b/ld/emultempl/pe.em index 0413d07..0354c56 100644 --- a/ld/emultempl/pe.em +++ b/ld/emultempl/pe.em @@ -138,7 +138,10 @@ fragment <<EOF #undef PE_DEF_FILE_ALIGNMENT #define NT_EXE_IMAGE_BASE 0x00010000 -#if defined(TARGET_IS_armpe) || defined(TARGET_IS_arm_wince_pe) +#if defined(TARGET_IS_armpe) +#define PE_DEF_SECTION_ALIGNMENT 0x00001000 +#define PE_DEF_SUBSYSTEM 2 +#elif defined(TARGET_IS_arm_wince_pe) #define PE_DEF_SECTION_ALIGNMENT 0x00001000 #define PE_DEF_SUBSYSTEM 9 #else |