Trying to create a relocatable object from a binary file generates and error : arm-elf-ld -r -b binary -o pleoff.o stripbmp arm-elf-ld: BFD (GNU Binutils) 2.19 internal error, aborting at /home/sgh/cvs/toolchain/i686-linux-gnu-arm-elf_build//binutils-2.19/bfd/elf.c line 370 in bfd_elf_get_elf_syms arm-elf-ld: Please report this bug. It does not matter what type of file I'm trying. It fails everytime.
Created attachment 3624 [details] Check input file type before processing it as an ARM ELF object file
Hi Soren, Thanks for reporting this bug. I have checked in the uploaded patch to fix the problem, along with the changelog entry below. By the way - are you aware of the .incbin assembler pseudo-op which can be used to insert binary data into an assembler source file ? Using it is an easier way to create an object file from binary data. Cheers Nick
oops - forgot the changelog entry: bfd/ChangeLog 2008-12-23 Nick Clifton <nickc@redhat.com> PR 7093 * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF object files.
Subject: Bug 7093 CVSROOT: /cvs/src Module name: src Changes by: nickc@sourceware.org 2008-12-23 11:46:17 Modified files: bfd : ChangeLog elf32-arm.c Log message: PR 7093 * elf32-arm.c (bfd_elf32_arm_init_maps): Only process ARM ELF object files. Patches: http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/ChangeLog.diff?cvsroot=src&r1=1.4401&r2=1.4402 http://sources.redhat.com/cgi-bin/cvsweb.cgi/src/bfd/elf32-arm.c.diff?cvsroot=src&r1=1.162&r2=1.163
This works great. Thank you Nick :D
I'm reopening this bug because the newest releast now says the following under the earlier descibed circumstances. arm-elf-ld: BFD (GNU Binutils) 2.19.1 internal error, aborting at /home/sgh/cvs/toolchain/i686-linux-gnu-arm-elf_build//binutils-2.19.1/bfd/elf.c line 370 in bfd_elf_get_elf_syms
Hmm.. it's the same bug. Pleas apply the patch to the next release.
Hi Soren, The patch is applied to the mainline code and will be present in the next release. Cheers Nick
excellent, thanks :D