The linker produces a segmentation fault on undefined references in the small
data area.
Test program:
extern int i;
void f()
{
i = 1;
}
powerpc-rtems4.9-gcc -meabi -msdata -c test.c
Binutils version:
/tmp/binutils/bin/powerpc-rtems4.9-ld --version
GNU ld (GNU Binutils) 2.19.50.200809
--- Additional Comments From amodra at bigpond dot net dot au 2008-09-15
15:52 ---
Please attach test.o
--
What|Removed |Added
Status|NEW
--- Additional Comments From sebastian dot huber at embedded-brains dot de
2008-09-15 16:00 ---
Created an attachment (id=2954)
--> (http://sourceware.org/bugzilla/attachment.cgi?id=2954&action=view)
Evil object file.
Object file attached.
--
http://sourceware.org/bugzilla/show_bug
--- Additional Comments From amodra at bigpond dot net dot au 2008-09-15
23:48 ---
http://sourceware.org/ml/binutils-cvs/2008-09/msg00075.html
--
What|Removed |Added
--- Additional Comments From amodra at bigpond dot net dot au 2008-09-16
04:35 ---
You cannot define _GLOBAL_OFFSET_TABLE_ like this in a script.
--
What|Removed |Added