[committed] Tweak --extract-symbol test

Richard Sandiford richard@codesourcery.com
Thu Mar 8 17:56:00 GMT 2007


I backported the --extract-symbol patch to our 2.17 branch, where it
promptly failed on targets with a page size less than 64k, because
objcopy warns about the segment not starting at address 0.
This didn't happen on mainline, but I think the patch below
makes the test more robust.

Tested on x86_64-linux-gnu and arm-elf.  Installed as obvious.

Richard


ld/testsuite/
	* ld-elf/extract-symbol-1.ld (data): Explicitly set the start address
	to 0.

Index: ld/testsuite/ld-elf/extract-symbol-1.ld
===================================================================
--- ld/testsuite/ld-elf/extract-symbol-1.ld	(revision 164938)
+++ ld/testsuite/ld-elf/extract-symbol-1.ld	(working copy)
@@ -1,7 +1,7 @@
 ENTRY(_entry)
 PHDRS
 {
-  data PT_LOAD;
+  data PT_LOAD AT (0);
 }
 SECTIONS
 {



More information about the Binutils mailing list