This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[committed] Tweak --extract-symbol test
- From: Richard Sandiford <richard at codesourcery dot com>
- To: binutils at sourceware dot org
- Date: Thu, 08 Mar 2007 17:56:40 +0000
- Subject: [committed] Tweak --extract-symbol test
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
{