[Bug ld/11542] ld -r generates R_X86_64_NONE
--- Additional Comments From cvs-commit at gcc dot gnu dot org 2010-04-30 18:27 --- Subject: Bug 11542 CVSROOT:/cvs/src Module name:src Changes by: h...@sourceware.org 2010-04-30 18:27:33 Modified files: bfd: ChangeLog elf-bfd.h elf32-i386.c elf64-x86-64.c ld/testsuite : ChangeLog Added files: ld/testsuite/ld-elf: discard.ld discard1.d discard1.s discard2.d discard2.s discard3.d Log message: Remove relocation against discarded sections for relocatable link. bfd/ 2010-04-30 H.J. Lu PR ld/11542 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): New. * elf32-i386.c (elf_i386_relocate_section): Use it. * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. ld/testsuite/ 2010-04-30 H.J. Lu PR ld/11542 * ld-elf/discard.ld: New. * ld-elf/discard1.d: Likewise. * ld-elf/discard1.s: Likewise. * ld-elf/discard2.d: Likewise. * ld-elf/discard2.s: Likewise. * ld-elf/discard3.d: Likewise. Patches: http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.5005&r2=1.5006 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf-bfd.h.diff?cvsroot=src&r1=1.303&r2=1.304 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf32-i386.c.diff?cvsroot=src&r1=1.232&r2=1.233 http://sourceware.org/cgi-bin/cvsweb.cgi/src/bfd/elf64-x86-64.c.diff?cvsroot=src&r1=1.194&r2=1.195 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ChangeLog.diff?cvsroot=src&r1=1.1247&r2=1.1248 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard.ld.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard1.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard1.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard2.d.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard2.s.diff?cvsroot=src&r1=NONE&r2=1.1 http://sourceware.org/cgi-bin/cvsweb.cgi/src/ld/testsuite/ld-elf/discard3.d.diff?cvsroot=src&r1=NONE&r2=1.1 --- Additional Comments From hjl dot tools at gmail dot com 2010-04-30 18:34 --- Fixed for i386 and x86-64. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11542 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11513] Garbage is loaded into asection#lineno
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-30 20:10 --- Created an attachment (id=4759) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4759&action=view) the binary to test on The binary was compiled and linked as follows: g++ -O0 -g3 -gcoff -Wall -c -fmessage-length=0 -omain.o ..\main.cpp g++ -obbb.exe main.o -lbfd -lintl -liberty -- http://sourceware.org/bugzilla/show_bug.cgi?id=11513 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils
[Bug binutils/11513] Garbage is loaded into asection#lineno
--- Additional Comments From dzidzitop at lavabit dot com 2010-04-30 20:09 --- Created an attachment (id=4758) --> (http://sourceware.org/bugzilla/attachment.cgi?id=4758&action=view) testcase to re-produce the issue compile this source (specify proper path in the PATH_TO_EXECUTABLE constant and run against bbb.exe. You will see offsets > 1000 which is simply wrong. bbb.exe was built from main.cpp which has lines > 40. There are no lines with such numbers displayed. For more complicated binaries line numbers are random. The binary is too large to upload it here to demonstate. There is also a question. Why sections within BFD are initialised if and only if bfd_check_format_matches(abfd, bfd_object, &matching) is called? This looks like a hack. -- http://sourceware.org/bugzilla/show_bug.cgi?id=11513 --- You are receiving this mail because: --- You are on the CC list for the bug, or are watching someone who is. ___ bug-binutils mailing list bug-binutils@gnu.org http://lists.gnu.org/mailman/listinfo/bug-binutils