This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
[PATCH] Fix ld/ld-elfvsb testsuite
- From: Thiemo Seufer <ica2_ts at csv dot ica dot uni-stuttgart dot de>
- To: binutils at sources dot redhat dot com
- Date: Sun, 1 Aug 2004 22:01:44 +0200
- Subject: [PATCH] Fix ld/ld-elfvsb testsuite
Hello All,
the ld/ld-elfvsb testsuite fails for mips-linux in some cases because
the linker fails now with an error if PT_DYNAMIC doesn't start with the
.dynamic section.
http://sources.redhat.com/ml/binutils/2004-07/msg00115.html
http://sources.redhat.com/ml/binutils/2004-06/msg00444.html
Is it ok to just move .dynamic upwards in the linker script?
Thiemo
2004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
/ld/testsuite/ChangeLog
* ld-elfvsb/elf-offset.ld: Move .dynamic in front of all other
PT_DYNAMIC sections.
Index: ld/testsuite/ld-elfvsb/elf-offset.ld
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elfvsb/elf-offset.ld,v
retrieving revision 1.3
diff -u -p -r1.3 elf-offset.ld
--- ld/testsuite/ld-elfvsb/elf-offset.ld 29 Jul 2003 14:02:55 -0000 1.3
+++ ld/testsuite/ld-elfvsb/elf-offset.ld 1 Aug 2004 19:30:02 -0000
@@ -2,6 +2,7 @@ SECTIONS
{
/* Read-only sections, merged into text segment: */
. = 0x100000;
+ .dynamic : { *(.dynamic) }
.hash : { *(.hash) }
.dynsym : { *(.dynsym) }
.dynstr : { *(.dynstr) }
@@ -114,7 +115,6 @@ SECTIONS
}
.got : { *(.got.plt) *(.got) }
.toc : { *(.toc) }
- .dynamic : { *(.dynamic) }
/* We want the small data sections together, so single-instruction offsets
can access them all, and initialized data all before uninitialized, so
we can shorten the on-disk segment size. */