[Bug ld/14207] linker can produce a NULL GNU_RELRO segment

2012-06-12 Thread cvs-commit at gcc dot gnu.org
http://sourceware.org/bugzilla/show_bug.cgi?id=14207

--- Comment #5 from cvs-commit at gcc dot gnu.org  2012-06-12 12:55:15 UTC ---
CVSROOT:/cvs/src
Module name:src
Changes by:h...@sourceware.org2012-06-12 12:55:11

Modified files:
bfd: ChangeLog elf.c 
ld/testsuite   : ChangeLog 
ld/testsuite/ld-x86-64: x86-64.exp 
Added files:
ld/testsuite/ld-x86-64: pr14207.d pr14207.s 

Log message:
Abort if PT_GNU_RELRO segment doesn't fit in PT_LOAD segment

bfd/

PR bfd/14207
* elf.c (assign_file_positions_for_non_load_sections): Abort if
PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.

ld/testsuite/

PR ld/14207
* ld-x86-64/x86-64.exp: Run pr14207.

* ld-x86-64/pr14207.d: New file.
* ld-x86-64/pr14207.s: Likewise.

Patches:
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5724&r2=1.5725
http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf.c.diff?cvsroot=src&r1=1.561&r2=1.562
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1560&r2=1.1561
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/pr14207.d.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/pr14207.s.diff?cvsroot=src&r1=NONE&r2=1.1
http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-x86-64/x86-64.exp.diff?cvsroot=src&r1=1.49&r2=1.50

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils


[Bug ld/14207] linker can produce a NULL GNU_RELRO segment

2012-06-12 Thread hjl.tools at gmail dot com
http://sourceware.org/bugzilla/show_bug.cgi?id=14207

H.J. Lu  changed:

   What|Removed |Added

 Status|NEW |RESOLVED
 Resolution||FIXED

--- Comment #6 from H.J. Lu  2012-06-12 12:58:00 
UTC ---
Fixed.

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
--- You are receiving this mail because: ---
You are on the CC list for the bug.

___
bug-binutils mailing list
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils