aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2020-08-28 09:43:13 +0100
committerNick Clifton <nickc@redhat.com>2020-08-28 09:43:13 +0100
commit6194b866b7a89969d8c66f8a97d40acc028373b1 (patch)
tree57802d68d3caaceb5e90eae41de27b5e53c04625 /ld
parent16f9c644c7fcec6f4aa6f4e8a1458b57d2b28982 (diff)
downloadgdb-6194b866b7a89969d8c66f8a97d40acc028373b1.zip
gdb-6194b866b7a89969d8c66f8a97d40acc028373b1.tar.gz
gdb-6194b866b7a89969d8c66f8a97d40acc028373b1.tar.bz2
Fixes for testsuite failures introduced by the changes made for PR 19011.
PR19011 bfd * cofflink.c (_bfd_coff_generic_relocate_section): Provide a value for undefined symbols which will not generate extra warning messages about truncated relocs. ld * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets define the __main and ___main symbols in terms of the main symbol.
Diffstat (limited to 'ld')
-rw-r--r--ld/ChangeLog6
-rw-r--r--ld/testsuite/lib/ld-lib.exp2
2 files changed, 7 insertions, 1 deletions
diff --git a/ld/ChangeLog b/ld/ChangeLog
index 824e00d..568e221 100644
--- a/ld/ChangeLog
+++ b/ld/ChangeLog
@@ -1,3 +1,9 @@
+2020-08-28 Nick Clifton <nickc@redhat.com>
+
+ PR 19011
+ * testsuite/lib/ld-lib.exp (ld_link_defsyms): For PE based targets
+ define the __main and ___main symbols in terms of the main symbol.
+
2020-08-28 Alan Modra <amodra@gmail.com>
PR 19011
diff --git a/ld/testsuite/lib/ld-lib.exp b/ld/testsuite/lib/ld-lib.exp
index 6628372..7972e8f 100644
--- a/ld/testsuite/lib/ld-lib.exp
+++ b/ld/testsuite/lib/ld-lib.exp
@@ -378,7 +378,7 @@ proc ld_link_defsyms {} {
# Windows targets need __main, some prefixed with underscore.
if {[istarget *-*-cygwin* ] || [istarget *-*-mingw*]} {
- append flags " --defsym __main=0 --defsym ___main=0"
+ append flags " --defsym __main=main --defsym ___main=main"
}
# PowerPC EABI code calls __eabi.