RE: [arm-gnu] Segmentation fault using --be8 option
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [arm-gnu] Segmentation fault using --be8 option
- To: "Nick Clifton" <nickc@xxxxxxxxxx>, "Carlos O'Donell" <carlos@xxxxxxxxxxxxxxxx>
- Subject: RE: [arm-gnu] Segmentation fault using --be8 option
- From: "Daniel Jacques" <jacques.daniel@xxxxxxxxxxx>
- Date: Thu, 12 Jan 2006 09:17:37 +0100
Hi Nick,
Thanks for your investigations and your patch.
As Carlos said, more testing are needed to validate it.
I planned to do some tests, I will keep you update of my results.
Best regards,
Jacques
-----Original Message-----
From: Nick Clifton [mailto:nickc@xxxxxxxxxx]
Sent: mercredi 11 janvier 2006 19:13
To: Carlos O'Donell
Cc: Daniel Jacques; arm-gnu@xxxxxxxxxxxxxxxx
Subject: Re: [arm-gnu] Segmentation fault using --be8 option
Hi Carlos,
> I reproduced the problem with the following testcase:
>
> echo "EOF" >> test.c
> int _start (void)
> {
> return 0;
> }
> EOF
> arm-none-linux-gnueabi-gcc -mbig-endian -c test.c
> arm-none-linux-gnueabi-ld -EB --be8 -o test test.o
> Segmentation fault.
Thanks for the test case. I was able to reproduce the problem using
this and it turned out to be a simple thinko in the code to handle the
byte swapping of mapping symbols. It is fixed by the attached patch.
Cheers
Nick
bfd/ChangeLog
2006-01-11 Nick Clifton <nickc@xxxxxxxxxx>
* elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
into the newly (re)allocated map array.