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: [RFC PATCH 07/11] MIPS/BFD: Move attribute check after ELF file header flag check


"Maciej W. Rozycki" <macro@imgtec.com> writes:
> We have a problem in that in making compatibility checks while merging 
> private BFD data on the MIPS target we give priority to the attribute 
> check, which may fail and cause the function to abort early on.  The 
> problem with this is the ABI compatibility aspect recorded in the 
> attributes is relatively minor compared to aspects recorded in the ELF 
> file header.  However the premature exit causes any more important 
> compatibility aspect violated to be masked and not reported to the user 
> once a problem with attributes has been noticed.
>
> So move the attribute check after the ELF file header flag check in 
> `_bfd_mips_elf_merge_private_bfd_data', and do not return prematurely 
> there.  Take advantage of the resulting grouping of ELF file header 
> handling together and remove the premature success return point for the 
> first input object being handled, letting the code later on figure out 
> output ABI flags even for this object.
>
> Update LD test cases according to messages from ELF file header checks 
> now preceding ones from attribute checks.

Nice.  The testsuite changes certainly look like improvements.

OK independently of the rest, thanks.

Richard


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