This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Bug: Core dump in elf32-arm.c:3858:bfd_elf32_arm_vfp11_fix_veneer_locations arm-elf-ld 2.18
- From: "Shaun Jackman" <sjackman at gmail dot com>
- To: "Nick Clifton" <nickc at redhat dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Thu, 28 Feb 2008 20:24:48 -0800
- Subject: Re: Bug: Core dump in elf32-arm.c:3858:bfd_elf32_arm_vfp11_fix_veneer_locations arm-elf-ld 2.18
- References: <7f45d9390802280710s4b1f9b37y22a376ba923c47e8@mail.gmail.com> <47C6F55A.7020707@redhat.com>
- Reply-to: "Shaun Jackman" <sjackman at gmail dot com>
Hi Nick,
On Thu, Feb 28, 2008 at 9:54 AM, Nick Clifton <nickc@redhat.com> wrote:
> > The following log shows a core dump in
> > elf32-arm.c:3858:bfd_elf32_arm_vfp11_fix_veneer_locations.
>
> Does this bug exist in the current development version of binutils (ie
> the head of the CVS repository) ? If not, please could you try that
> version. If the bug is present then please could you file a bug report
> at http://sourceware.org/bugzilla/ and include a way for us to reproduce
> the problem.
The bug does occur in binutils 2.16.1. The bug does not occur in
binutils 2.17. The bug does occur in binutils 2.18. The bug does not
occur in today's CVS. Did you follow all that? =P This bug appears to
be a regression of Bug 1147: ld crashes with an object file created by
objcopy. Which, incidentally, I had submitted on 2005-08-01 and since
forgotten about. Since it's fixed in current CVS, all should be well
except for one detail: the warning "unknown architecture of input file
`data.o' is incompatible with arm output" seems to have been promoted
from a warning in 2.17 to an error in the current CVS.
$ arm-elf-objcopy -Ibinary -Oelf32-littlearm data data.o
$ arm-elf-gcc hello.o data.o
/usr/local/lib/gcc/arm-elf/4.2.3/../../../../arm-elf/bin/ld: unknown
architecture of input file `data.o' is incompatible with arm output
collect2: ld returned 1 exit status
I can use the -B,--binary-architecture option to objcopy to suppress
this warning:
$ arm-elf-objcopy -Ibinary -Oelf32-littlearm -Barm data data.o
but since the data file does not contain ARM instructions, using -Barm
does not seem the right solution.
Cheers,
Shaun