PATCH: Remove $srcdir/$subdir/

H. J. Lu hjl@lucon.org
Sun Oct 6 16:14:00 GMT 2002


Could someone please tell me why there are so many -T $srcdir/$subdir/
in ld testsuite? It doesn't make any senses. The only reason it works
so far is we pass -L$srcdir/$subdir to ld. Here is a patch to remove
some of those bogus $srcdir/$subdir/.


H.J.
-------------- next part --------------
2002-10-06  H.J. Lu  (hjl@gnu.org)

	* ld-discard/extern.d: Remove $srcdir/$subdir/.
	* ld-discard/start.d: Likewise.
	* ld-discard/static.d: Likewise.
	* ld-linkonce/zeroehl32.d: Likewise.
	* ld-selective/keepdot.d: Likewise.
	* ld-selective/keepdot0.d: Likewise.

--- ld/testsuite/ld-discard/extern.d.bogus	Sat Aug 17 08:40:26 2002
+++ ld/testsuite/ld-discard/extern.d	Sun Oct  6 15:55:07 2002
@@ -1,3 +1,3 @@
 #source: extern.s
-#ld: -T $srcdir/$subdir/discard.ld
+#ld: -T discard.ld
 #error: undefined reference to `(data|local symbols in discarded section \.data\.exit)'
--- ld/testsuite/ld-discard/start.d.bogus	Fri Nov  9 17:17:57 2001
+++ ld/testsuite/ld-discard/start.d	Sun Oct  6 15:55:07 2002
@@ -1,4 +1,4 @@
 #source: start.s
 #source: exit.s
-#ld: -T $srcdir/$subdir/discard.ld
+#ld: -T discard.ld
 #error: undefined reference to `data'
--- ld/testsuite/ld-discard/static.d.bogus	Fri Nov  9 17:17:58 2001
+++ ld/testsuite/ld-discard/static.d	Sun Oct  6 15:55:07 2002
@@ -1,3 +1,3 @@
 #source: static.s
-#ld: -T $srcdir/$subdir/discard.ld
+#ld: -T discard.ld
 #error: undefined reference to `local symbols in discarded section \.data\.exit'
--- ld/testsuite/ld-linkonce/zeroehl32.d.bogus	Sat Sep 29 06:02:24 2001
+++ ld/testsuite/ld-linkonce/zeroehl32.d	Sun Oct  6 15:55:07 2002
@@ -1,6 +1,6 @@
 #source: x.s
 #source: y.s
-#ld: -Ttext 0xa00 -T $srcdir/$subdir/zeroeh.ld
+#ld: -Ttext 0xa00 -T zeroeh.ld
 #objdump: -s
 #target: cris-*-elf cris-*-linux* i?86-*-elf i?86-*-linux*
 
--- ld/testsuite/ld-selective/keepdot.d.bogus	Sun Oct  6 16:03:17 2002
+++ ld/testsuite/ld-selective/keepdot.d	Sun Oct  6 16:03:36 2002
@@ -1,4 +1,4 @@
-#ld: --gc-sections -Bstatic -e _start -T$srcdir/$subdir/keepdot.ld
+#ld: --gc-sections -Bstatic -e _start -T keepdot.ld
 #name: Preserve default . = 0
 #objdump: -h
 
--- ld/testsuite/ld-selective/keepdot0.d.bogus	Sun Oct  6 16:03:17 2002
+++ ld/testsuite/ld-selective/keepdot0.d	Sun Oct  6 16:03:36 2002
@@ -1,5 +1,5 @@
 #source: keepdot.s
-#ld: --gc-sections -Bstatic -e _start -T$srcdir/$subdir/keepdot0.ld
+#ld: --gc-sections -Bstatic -e _start -T keepdot0.ld
 #name: Preserve explicit . = 0
 #objdump: -h
 


More information about the Binutils mailing list