Launchpad has imported 6 comments from the remote bug at http://sourceware.org/bugzilla/show_bug.cgi?id=10555.
If you reply to an imported comment from within Launchpad, your comment will be sent to the remote bug automatically. Read more about Launchpad's inter-bugtracker facilities at https://help.launchpad.net/InterBugTracking. ------------------------------------------------------------------------ On 2009-08-24T15:57:57+00:00 Mark Seaborn wrote: I have been using a command similar to the following to print ld's default linker script. When using binutils 2.19.51.20090805 in the current version of Ubuntu karmic, the linker script gets truncated and gcc prints a warning about a segmentation fault (which does not cause gcc to return a non-zero exit code). $ gcc -static -nostartfiles -nostdlib /usr/lib/libc.a -Wl,-z,noexecstack -Wl,--verbose collect2: ld terminated with signal 11 [Segmentation fault] GNU ld (GNU Binutils for Ubuntu) 2.19.51.20090805 Supported emulations: elf_x86_64 elf_i386 i386linux elf_l1om using internal linker script: ================================================== ... Note that this has to be run in a writable current working directory to reproduce the problem, because it tries to write an "a.out" file. The segfault can be reproduced with this more minimal invocation of ld: $ ld --build-id /usr/lib/libc.a Segmentation fault $ dpkg -s binutils | grep Version Version: 2.19.51.20090805-1ubuntu1 Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/0 ------------------------------------------------------------------------ On 2009-08-25T09:20:47+00:00 Nickc wrote: Created attachment 4148 Do not seg-fault creating a build-id section when there are no input files. Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/2 ------------------------------------------------------------------------ On 2009-08-25T09:21:23+00:00 Nickc wrote: Hi Mark, Please could you try out the uploaded patch and let me know if it works for you. Cheers Nick Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/3 ------------------------------------------------------------------------ On 2009-08-26T11:51:18+00:00 Mark Seaborn wrote: Yes, that patch works for me. Thanks. Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/4 ------------------------------------------------------------------------ On 2009-08-26T13:08:19+00:00 Cvs-commit wrote: Subject: Bug 10555 CVSROOT: /cvs/src Module name: src Changes by: [email protected] 2009-08-26 13:08:07 Modified files: ld : ChangeLog ld/emultempl : elf32.em Log message: PR ld/10555 * emultempl/elf32.em (_after_open): Do not create a .note.gnu-build-id section if there are no input files. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/ChangeLog.diff?cvsroot=src&r1=1.2029&r2=1.2030 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/ld/emultempl/elf32.em.diff?cvsroot=src&r1=1.198&r2=1.199 Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/5 ------------------------------------------------------------------------ On 2009-08-26T13:08:42+00:00 Nickc wrote: Hi Mark, Great - I have checked the patch in. Cheers Nick ld/ChangeLog PR ld/10555 * emultempl/elf32.em (_after_open): Do not create a .note.gnu-build-id section if there are no input files. Reply at: https://bugs.launchpad.net/binutils/+bug/418210/comments/6 ** Changed in: binutils Importance: Unknown => Medium -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/418210 Title: SEGV with "ld --build-id /usr/lib/libc.a" -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
