aboutsummaryrefslogtreecommitdiff
path: root/bfd/pei-x86_64.c
diff options
context:
space:
mode:
authorKai Tietz <kai.tietz@onevision.com>2010-04-27 17:26:09 +0000
committerKai Tietz <kai.tietz@onevision.com>2010-04-27 17:26:09 +0000
commitef72a554d982f439fb9be357386681c1d4fb475c (patch)
tree5eeb461c5d93df2c31c6101172f9b670cd529201 /bfd/pei-x86_64.c
parente78f4312c58a798df3fe09566a1f714eaf61294a (diff)
downloadgdb-ef72a554d982f439fb9be357386681c1d4fb475c.zip
gdb-ef72a554d982f439fb9be357386681c1d4fb475c.tar.gz
gdb-ef72a554d982f439fb9be357386681c1d4fb475c.tar.bz2
2010-04-27 Kai Tietz <kai.tietz@onevision.com>
* pe-x86_64.c (TARGET_UNDERSCORE): Set value dependent to USE_MINGW64_LEADING_UNDERSCORES. * pei-x86_64.c (TARGET_UNDERSCORE): Likewise. * config.bfd: Change underscoring default for x64 mingw to false. * coffcode.h (coff_write_relocs): Add check that dereferenced sym_ptr_ptr isn't NULL. * config.in (USE_MINGW64_LEADING_UNDERSCORES): New. * configure: Regenerated. * configure.in: Add option '--enable-leading-mingw64-underscores' and define config.in variable USE_MINGW64_LEADING_UNDERSCORES.
Diffstat (limited to 'bfd/pei-x86_64.c')
-rw-r--r--bfd/pei-x86_64.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/bfd/pei-x86_64.c b/bfd/pei-x86_64.c
index f5b8abd..fa9a267 100644
--- a/bfd/pei-x86_64.c
+++ b/bfd/pei-x86_64.c
@@ -29,7 +29,11 @@
#define COFF_WITH_PE
#define COFF_WITH_pex64
#define PCRELOFFSET TRUE
+#if defined (USE_MINGW64_LEADING_UNDERSCORES)
#define TARGET_UNDERSCORE '_'
+#else
+#define TARGET_UNDERSCORE 0
+#endif
/* Long section names not allowed in executable images, only object files. */
#define COFF_LONG_SECTION_NAMES 0
#define COFF_SUPPORT_GNU_LINKONCE