Segmentation fault occuring with ld (sde-ld v2.15 (from MIPS techniologies inc.)
and mips-elf-ld v2.16) and both i686-pc-linux (FC4) and i686-pc-cygwin
$ mips-elf-ld.exe -EL -mips32 -T ld.script -o test setup.o app2.o
Segmentation fault (core dumped)
I did a backtrace for mips-elf-ld 2.16 on cygw
The assembly fragment in question looks like this:
leaq.L5465(%rip), %rax
leaq(%rax,%rdx), %rax
jmp *%rax
.section.rodata
.align 4
.align 4
.L5465:
.long .L5457-.+(.-.L5465)
.long .L5458-.+(.-.L5465) <<- Problem first reported here
.lo