This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: PR ld/4007: Linker failed to issue an error on bad section in segment
On Thu, Mar 22, 2007 at 08:47:41AM -0700, H. J. Lu wrote:
> * ld-elf/note-1.d: New file.
> * ld-elf/note-1.s: Likewise.
> * ld-elf/note-1.t: Likewise.
This fails on spu, due to that target rounding up the data segment
p_filesz and p_memsz. readelf then thinks that the note is also
in the data segment. Do you have any objection to modifying the
test as follows?
* ld-elf/note-1.s: Increase .foo size.
Index: ld/testsuite/ld-elf/note-1.s
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-elf/note-1.s,v
retrieving revision 1.1
diff -u -p -r1.1 note-1.s
--- ld/testsuite/ld-elf/note-1.s 22 Mar 2007 15:50:38 -0000 1.1
+++ ld/testsuite/ld-elf/note-1.s 27 Mar 2007 06:07:43 -0000
@@ -1,6 +1,6 @@
.globl _entry
.section .foo,"awx",%progbits
_entry:
- .byte 0
+ .byte 0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0
.section .note,"",%note
.byte 0
--
Alan Modra
IBM OzLabs - Linux Technology Centre