|
From: | cvs-commit at gcc dot gnu.org |
Subject: | [Bug ld/13947] Strip applied twice corrupts binaries compiled with --emit-relocs |
Date: | Fri, 13 Apr 2012 02:52:39 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=13947 --- Comment #14 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> 2012-04-13 02:52:39 UTC --- CVSROOT: /cvs/src Module name: src Changes by: address@hidden 2012-04-13 02:52:35 Modified files: binutils : ChangeLog objcopy.c binutils/testsuite: ChangeLog binutils/testsuite/binutils-all/i386: compressed-1b.d compressed-1c.d binutils/testsuite/binutils-all/x86-64: compressed-1b.d compressed-1c.d Log message: Don't generate empty reloc sections binutils/ PR binutils/13947 * objcopy.c (copy_object): Call copy_relocations_in_section before copy_section. (skip_section): New. (copy_relocations_in_section): Likewise. (copy_section): Use skip_section. Don't copy relocations here. binutils/testsuite/ PR binutils/13947 * binutils-all/i386/compressed-1b.d: Remove empty REL section. * binutils-all/i386/compressed-1c.d: Likewise. * binutils-all/x86-64/compressed-1b.d: Remove empty RELA section. * binutils-all/x86-64/compressed-1c.d: Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/ChangeLog.diff?cvsroot=src&r1=1.1890&r2=1.1891 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/objcopy.c.diff?cvsroot=src&r1=1.154&r2=1.155 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/ChangeLog.diff?cvsroot=src&r1=1.256&r2=1.257 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/i386/compressed-1b.d.diff?cvsroot=src&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/i386/compressed-1c.d.diff?cvsroot=src&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/x86-64/compressed-1b.d.diff?cvsroot=src&r1=1.3&r2=1.4 http://sourceware.org/cgi-bin/cvsweb.cgi/src/binutils/testsuite/binutils-all/x86-64/compressed-1c.d.diff?cvsroot=src&r1=1.3&r2=1.4 -- 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.
[Prev in Thread] | Current Thread | [Next in Thread] |