Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
19 years ago

nios-elf-obcopy crashes converting elf->srec

Does anybody else seen nios2-elf-objcopy crash?

This is with a copy of binutils freshly built from niosii-gnutools-src-6.1.gz, but I had the same problem with binutils built from 6.0 sources.

Converting elf->bin, elf->ihex, ihex->srec all work fine. _Some_ other elf files can be converted to .srec fine as well. The native objcopy works fine on all elf files.

However elf->srec crashes for several of my programs:

nios2-elf-objcopy --version
GNU objcopy 2.15
...
$ nios2-elf-objcopy -O srec netecho.elf netecho.srec
*** glibc detected *** nios2-elf-objcopy: corrupted double-linked list: 0x080c2118 ***
======= Backtrace: =========
/lib/libc.so.6
/lib/libc.so.6
/lib/libc.so.6(__libc_free+0x87)
/lib/libc.so.6(fclose+0x134)
nios2-elf-objcopy
nios2-elf-objcopy
nios2-elf-objcopy
nios2-elf-objcopy
/lib/libc.so.6(__libc_start_main+0xe6)
nios2-elf-objcopy
No RepliesBe the first to reply