[PATCH, ARM/ld]Linker should return with error if failed to merge arch attribute

Richard Earnshaw rearnsha@arm.com
Mon Sep 15 13:45:00 GMT 2014


On 15/09/14 08:46, Matthew Fortune wrote:
> Terry Guo <flameroc@gmail.com> writes:
>> terguo01@terry-pc01:case$ arm-none-eabi-readelf -A test.elf
>> Attribute Section: aeabi
>> File Attributes
>> Segmentation fault (core dumped)
> 
> Isn't this a bug in readelf? I would have thought all the inspection
> tools (objdump/readelf) should be able to report about inconsistent
> information rather than crash?
> 
> Matthew
> 

Probably there's *also* a bug in readelf.  Recovering from corrupt
binaries is quite a hard problem to test, though, since there are many
ways in which a binary can be invalid.

R.



More information about the Binutils mailing list