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
--
Summary: ld crashes upon use of .gnu.warning.<symbol> sections
Product: binutils
Version: 2.17
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: bruno at clisp dot org
CC: bug-binutils at gnu dot org
GCC build triplet: i586-suse-linux
GCC host triplet: i586-suse-linux
GCC target triplet: i586-suse-linux
http://sourceware.org/bugzilla/show_bug.cgi?id=3953
------- 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
[email protected]
http://lists.gnu.org/mailman/listinfo/bug-binutils