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: [GOLD][PATCH] Set ARM ABI information in ELF file header.


Wow.  This makes gold bug-compatible with ld :).  I can remove that.
Thanks for catching it.

-Doug

2009/10/27 Joseph S. Myers <joseph@codesourcery.com>:
> On Mon, 26 Oct 2009, Doug Kwan (Ãö®¶¼w) wrote:
>
>> Hi,
>>
>>     This patch adds code to set proper flags in the processor-specific
>> flags in the ELF file header.  Previously we always set e_flags to 0
>> on all target.  This patch add methods processor_specific_flags and
>> set_processor_specific_flags in Target so that Output_file_header can
>> get the flags.   For targets that merge processor-specific flags from
>> input objects,  we also track whether the flags have been set at least
>> once.  Currently only the ARM target sets the flags correctly.
>
> It looks like this patch is replicating the GNU ld bug whereby
> EF_ARM_HASENTRY is set on EABI objects.  There is no such flag in AAELF
> and so it is a bug to set it on such objects.
>
> --
> Joseph S. Myers
> joseph@codesourcery.com


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