This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Bug: Core dump in elf32-arm.c:3858:bfd_elf32_arm_vfp11_fix_veneer_locations arm-elf-ld 2.18


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]