aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-discard
diff options
context:
space:
mode:
authorNick Clifton <nickc@redhat.com>2005-03-01 17:07:53 +0000
committerNick Clifton <nickc@redhat.com>2005-03-01 17:07:53 +0000
commit8aee822f5bad6420d2a8e1433fae5b6e7902cfd0 (patch)
tree1b2cc3b519311435024a7aeeab02950a1f73c22b /ld/testsuite/ld-discard
parentdc652011c764ca40b4e3c79062411fe9bd1fd8b7 (diff)
downloadgdb-8aee822f5bad6420d2a8e1433fae5b6e7902cfd0.zip
gdb-8aee822f5bad6420d2a8e1433fae5b6e7902cfd0.tar.gz
gdb-8aee822f5bad6420d2a8e1433fae5b6e7902cfd0.tar.bz2
ld-d10v/default_layout.d: Adjust expected offsets to allow for section alignment.
ld-discard/extern.d: Adjust expected warning to take into account the fact that the linker's name might be included and that the reloc might have been adjusted to be against the section symbol.
Diffstat (limited to 'ld/testsuite/ld-discard')
-rw-r--r--ld/testsuite/ld-discard/extern.d8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/ld-discard/extern.d b/ld/testsuite/ld-discard/extern.d
index 27c98c6..e5143cb 100644
--- a/ld/testsuite/ld-discard/extern.d
+++ b/ld/testsuite/ld-discard/extern.d
@@ -1,5 +1,11 @@
#source: extern.s
#ld: -T discard.ld
-#warning: `data' referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
+#warning: .*data.* referenced in section `\.text' of tmpdir/dump0.o: defined in discarded section `\.data\.exit' of tmpdir/dump0.o
#objdump: -p
#pass
+# The expected warning used to start with "`data' referenced..." but
+# this has two problems: 1) It does not include the name of the linker
+# command which will be present in the message, eg "../ld-new"
+# 2) Targets which define EXTERN_FORCE_RELOC to 0 in their
+# gas/config/tc-xxx.h file will convert the symbol in the reloc from
+# "data" to the section symbol ".data.exit".