aboutsummaryrefslogtreecommitdiff
path: root/ld
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2024-02-28 18:53:52 +1030
committerAlan Modra <amodra@gmail.com>2024-02-28 21:24:39 +1030
commit4b72a278f46245635ca03ffc8179570c07e3531a (patch)
tree7eb6aecba05182c1014f039e0f2e3d1e60717f5a /ld
parent4e0d61241012e3ae0c79603d6b6871b3407a976f (diff)
downloadgdb-4b72a278f46245635ca03ffc8179570c07e3531a.zip
gdb-4b72a278f46245635ca03ffc8179570c07e3531a.tar.gz
gdb-4b72a278f46245635ca03ffc8179570c07e3531a.tar.bz2
PR23881, pdp11 binutils fails if too much debug data
The PR testcase overflows one of the exec header fields, e_syms (the size of the symbol table), leading to the string table offset being wrong. Things go downhill from there. Fixed by checking for overflow. This happens to trigger in the ld testsuite, so xfail that test. PR 23881 bfd/ * libaout.h (swap_exec_header_out): Return a bool. * aoutx.h (swap_exec_header_out): Check for overflow in exec header. * pdp11.c (swap_exec_header_out): Likewise. * i386lynx.c (WRITE_HEADERS): Adjust. ld/ * testsuite/ld-scripts/map-address.exp: xfail pdp11.
Diffstat (limited to 'ld')
-rw-r--r--ld/testsuite/ld-scripts/map-address.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/ld/testsuite/ld-scripts/map-address.exp b/ld/testsuite/ld-scripts/map-address.exp
index 3944ec1..bc1f5a6 100644
--- a/ld/testsuite/ld-scripts/map-address.exp
+++ b/ld/testsuite/ld-scripts/map-address.exp
@@ -32,6 +32,7 @@ if { [is_pecoff_format] } then {
set IMAGE_BASE ""
}
+setup_xfail "pdp11-*-*"
if {![ld_link $ld tmpdir/map-address \
"$LDFLAGS -T $srcdir/$subdir/map-address.t \
$IMAGE_BASE tmpdir/map-address.o \