Bug 3953

Summary: ld crashes upon use of .gnu.warning.<symbol> sections
Product: binutils Reporter: Bruno Haible <bruno>
Component: ldAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: bug-binutils, hjl.tools
Priority: P2    
Version: 2.17   
Target Milestone: ---   
Host: i586-suse-linux Target: i586-suse-linux
Build: i586-suse-linux Last reconfirmed:
Attachments: Input to the assembler

Description Bruno Haible 2007-02-02 01:07:41 UTC
A simple program intended to emit a warning messages crashes the linker. 
 
foo.s is attached (created from gcc-3.3.1 output) 
$ as -o foo.o foo.s 
$ ld foo.o /lib/libc.so.6 
foo.o: In function `main': 
foo.c:(.text+0x1): warning: function strstr is deprecated 
ld: warning: cannot find entry symbol _start; defaulting to 08048158 
Segmentation fault
Comment 1 Bruno Haible 2007-02-02 01:09:07 UTC
Created attachment 1529 [details]
Input to the assembler
Comment 2 H.J. Lu 2007-02-02 19:52:23 UTC
A patch is posted at

http://sourceware.org/ml/binutils/2007-02/msg00022.html
Comment 3 H.J. Lu 2007-02-03 07:31:17 UTC
I got a positive feedback.
Comment 4 H.J. Lu 2007-02-14 14:37:55 UTC
Fixed.