aboutsummaryrefslogtreecommitdiff
path: root/bfd/pei-arm-wince.c
diff options
context:
space:
mode:
authorMark Harmstone <mark@harmstone.com>2023-01-11 18:32:04 +0000
committerMark Harmstone <mark@harmstone.com>2023-01-18 03:56:35 +0000
commit87a5cf5c0ecc8a0965961154602cbb844cb5ee2b (patch)
tree0a5403165d711a4811285ff6b3bbe33dd549c805 /bfd/pei-arm-wince.c
parent47f72fdba3f8b5d979802303f6d3c0312c931e7d (diff)
downloadgdb-87a5cf5c0ecc8a0965961154602cbb844cb5ee2b.zip
gdb-87a5cf5c0ecc8a0965961154602cbb844cb5ee2b.tar.gz
gdb-87a5cf5c0ecc8a0965961154602cbb844cb5ee2b.tar.bz2
Use subsystem to distinguish between pei-arm-little and pei-arm-wince-little
Running objdump against a 32-bit ARM PE file currently needs disambiguation, as it gets picked up by both pei-arm-little and pei-arm-wince-little. This adds a check in pe_bfd_object_p so that the subsystem in the PE header is used to do the disambiguation for us, so that WinCE images get assigned to pei-arm-wince-little, and everything else to pei-arm-little.
Diffstat (limited to 'bfd/pei-arm-wince.c')
-rw-r--r--bfd/pei-arm-wince.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/pei-arm-wince.c b/bfd/pei-arm-wince.c
index 6391dd5..914ee0b 100644
--- a/bfd/pei-arm-wince.c
+++ b/bfd/pei-arm-wince.c
@@ -28,4 +28,6 @@
#define LOCAL_LABEL_PREFIX "."
+#define WINCE
+
#include "pei-arm.c"