------- Additional Comments From osv at javad dot com 2008-02-15 12:01 -------
Fortunately the problem has nothing to do with object files. It's the linker
command file that does matter, so here is a simple way to reproduce the
segfault:
$ cat linker.cmd
MEMORY
{
RAM : ORIGIN = 0, LENGTH = 0x10000
ROM : ORIGIN = 0x10000, LENGTH = 0x10000
}
SECTIONS
{
.data : AT(__data_image) {
*(.data*)
} > RAM
__rom_data_start = LOADADDR(.data);
.data_image (NOLOAD): {
__data_image = .;
. += SIZEOF(.data);
} > RAM
}
$ echo -n "" | ~/try/bin/sparc-elf-as -o test.o && \
> ~/try/bin/sparc-elf-ld -v -T linker.cmd test.o
GNU ld (GNU Binutils) 2.18.50.20080213
Segmentation fault (core dumped)
$
--
http://sourceware.org/bugzilla/show_bug.cgi?id=5761
------- 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