aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-misc
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2020-07-28 11:44:16 +0930
committerAlan Modra <amodra@gmail.com>2020-07-28 13:09:20 +0930
commitf437dadd89944254165d076f55f29f7290c00aed (patch)
treef67be6dbca9843685e20604420bad60abf78f4e0 /ld/testsuite/ld-misc
parentc38166b376b03dc967b2715a09db0b5667fa9e49 (diff)
downloadgdb-f437dadd89944254165d076f55f29f7290c00aed.zip
gdb-f437dadd89944254165d076f55f29f7290c00aed.tar.gz
gdb-f437dadd89944254165d076f55f29f7290c00aed.tar.bz2
More just-syms changes
* ldlang.c (lang_check): Don't complain about relocs or merge attributes from --just-symbols input. * testsuite/ld-misc/just-symbols.exp: Just dump .data section. Don't run test on a number of targets.
Diffstat (limited to 'ld/testsuite/ld-misc')
-rw-r--r--ld/testsuite/ld-misc/just-symbols.exp12
1 files changed, 9 insertions, 3 deletions
diff --git a/ld/testsuite/ld-misc/just-symbols.exp b/ld/testsuite/ld-misc/just-symbols.exp
index 59c725d..e3c012f 100644
--- a/ld/testsuite/ld-misc/just-symbols.exp
+++ b/ld/testsuite/ld-misc/just-symbols.exp
@@ -20,7 +20,13 @@
#
# SH/PE targets complain about zero VMA.
-if { [istarget sh-*-pe] } {
+# i386-msdos doesn't have .data
+# tic30-coff has a weird 32-bit reloc that divides sym value by four
+# alpha-dec-vms wants a bunch of libs to link
+if { [istarget sh-*-pe]
+ || [istarget *-*-msdos]
+ || [istarget *c30-*-*]
+ || [istarget alpha-*-vms] } {
return
}
@@ -49,13 +55,13 @@ run_ld_link_tests [list \
"$LDFLAGS -e 0 -T just-symbols.ld --just-symbols=tmpdir/just-symbols-0.o" "" \
"" \
{just-symbols-1.s} \
- {{objdump -s just-symbols-1.dd}} \
+ {{objdump {-s -j .data} just-symbols-1.dd}} \
"just-symbols-1obj"] \
[list "Executable with --just-symbols test" \
"$LDFLAGS -e 0 -T just-symbols.ld --just-symbols=tmpdir/just-symbols-0" "" \
"" \
{just-symbols-1.s} \
- {{objdump -s just-symbols-1.dd}} \
+ {{objdump {-s -j .data} just-symbols-1.dd}} \
"just-symbols-1exe"] \
]