This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
PATCH: Fix ld-misc/defsym1 test
- From: Nick Clifton <nickc at redhat dot com>
- To: binutils at sourceware dot org
- Date: Sat, 08 Jan 2011 09:52:49 +0000
- Subject: PATCH: Fix ld-misc/defsym1 test
Hi Guys,
I am applying the patch below to fix a couple of small problems with
the ld-misc/defsym1 test. The first was that PE based targets
complain if a start address is not provided and the symbol
__mainCRTStartup is not define. The other was that on some targets
the '#' symbol does indicate the start of a line comment. With these
fixes applied I see no failures for this test with all of the
toolchains that I now check.
Cheers
Nick
ld/testsuite/ChangeLog
2011-01-08 Nick Clifton <nickc@redhat.com>
* ld-misc/defsym1.d: Add a -e linker command line option.
* ld-misc/dummy.s: Remove text.
Index: ld/testsuite/ld-misc/defsym1.d
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-misc/defsym1.d,v
retrieving revision 1.1
diff -u -3 -p -r1.1 defsym1.d
--- ld/testsuite/ld-misc/defsym1.d 2 Jan 2011 16:04:32 -0000 1.1
+++ ld/testsuite/ld-misc/defsym1.d 8 Jan 2011 09:47:09 -0000
@@ -1,4 +1,4 @@
-#ld: --defsym foo=1 tmpdir/start.o tmpdir/libfoo.a
+#ld: -e 0 --defsym foo=1 tmpdir/start.o tmpdir/libfoo.a
#nm: -B
#source: dummy.s
Index: ld/testsuite/ld-misc/dummy.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-misc/dummy.s,v
retrieving revision 1.1
diff -u -3 -p -r1.1 dummy.s
--- ld/testsuite/ld-misc/dummy.s 2 Jan 2011 16:04:32 -0000 1.1
+++ ld/testsuite/ld-misc/dummy.s 8 Jan 2011 09:47:26 -0000
@@ -1 +1 @@
-# Dummy
+