This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[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
 {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]