[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug ld/11913] New: Linker crash to discarded output sections
From: |
hjl dot tools at gmail dot com |
Subject: |
[Bug ld/11913] New: Linker crash to discarded output sections |
Date: |
13 Aug 2010 19:55:52 -0000 |
address@hidden foo]$ cat x.c
extern int x;
int *
foo ()
{
return &x;
}
address@hidden foo]$ cat y.c
int x = 2;
extern int * foo ();
int
_start ()
{
int *p = foo ();
return *p;
}
address@hidden foo]$ cat foo.t
ENTRY(_start)
SECTIONS
{
.text : {*(.text)}
.data : {*(.data)}
/DISCARD/ : {*(*)}
}
address@hidden foo]$ make
gcc -fPIC -c -o x.o x.c
gcc -fPIC -c -o y.o y.c
./ld -T foo.t -o foo x.o y.o
make: *** [foo] Segmentation fault
make: *** Deleting file `foo'
address@hidden foo]$
--
Summary: Linker crash to discarded output sections
Product: binutils
Version: 2.21 (HEAD)
Status: NEW
Severity: normal
Priority: P2
Component: ld
AssignedTo: unassigned at sources dot redhat dot com
ReportedBy: hjl dot tools at gmail dot com
CC: bug-binutils at gnu dot org
http://sourceware.org/bugzilla/show_bug.cgi?id=11913
------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Bug ld/11913] New: Linker crash to discarded output sections,
hjl dot tools at gmail dot com <=