After upgrading from gcc-4.1.2-15 to gcc-4.1.2-16, the additional command line
option --build-id is passed to ld via collect2 which may let ld crash with
segmentation fault.
--
Summary: ld exits with segmentation fault after upgrading from
gcc-4.1.2-15 to gcc-4.1.2-
--- Additional Comments From C dot Emde at osadl dot org 2007-08-14 18:15
---
How to reproduce
- Unpack the attached archive
- Run ./crash-it.sh
If the --build-id option is omitted, the output is built
- Run ./build-it.sh
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4923
-
--- Additional Comments From C dot Emde at osadl dot org 2007-08-14 18:17
---
Created an attachment (id=1963)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1963&action=view)
self-contained testcase
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4923
--- You are rece
--- Additional Comments From C dot Emde at osadl dot org 2007-08-14 18:20
---
ld crashes at line 1065/1066 of emultempl/elf32.em
t->after_write_object_contents
= &gld${EMULATION_NAME}_write_build_id_section;
since t becomes NULL and cannot be dereferenced. After applying
--- Additional Comments From C dot Emde at osadl dot org 2007-08-14 18:21
---
Created an attachment (id=1964)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=1964&action=view)
Patch to prevent NULL pointer to be dereferenced
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4
--- Additional Comments From C dot Emde at osadl dot org 2007-08-14 19:45
---
All observations have been made on a Fedora 8 system, latest development
packages installed.
Current versions:
binutils-2.17.50.0.17-7
gcc-4.1.2-17
--
http://sourceware.org/bugzilla/show_bug.cgi?id=4923
--- Additional Comments From hjl at lucon dot org 2007-08-14 20:33 ---
Fixed by
http://sourceware.org/ml/binutils/2007-08/msg00208.html
--
What|Removed |Added
St
--
What|Removed |Added
AssignedTo|unassigned at sources dot |amodra at bigpond dot net
|redhat dot com |dot au
http://sourceware.org/bugzil
--
What|Removed |Added
Status|NEW |ASSIGNED
Last reconfirmed|-00-00 00:00:00 |2007-08-15 01:34:20
date|
--- Additional Comments From amodra at bigpond dot net dot au 2007-08-15
06:06 ---
http://sourceware.org/ml/binutils-cvs/2007-08/msg00103.html
--
What|Removed |Added
10 matches
Mail list logo