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] Check ELF relocs after opening all all input files


On Wed, Apr 27, 2016 at 03:24:48PM -0700, H.J. Lu wrote:
> bfd_elf_record_link_assignment
> is called after check_relocs.  bfd_elf_record_link_assignment sets non_elf,
> def_regular and  forced_local.   For PROVIDE, it also updates root.type. They
> are needed in reloc_checks.

My guess is that symbol twiddling done in before_allocation should be
moved to a new ldemul hook called at the start of lang_do_assignments.
The idea being to stabilize symbols earlier.

The hook would twiddle __ehdr_start and call find_statement_assignment
when lang_mark_phase_enum.  Reversing the __ehdr_start twiddle stays
in before_allocation.

-- 
Alan Modra
Australia Development Lab, IBM


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