[PATCH 5/5] PR ld/20828: Reorder the symbol sweep stage of section GC
Alan Modra
amodra@gmail.com
Tue Jan 24 01:18:00 GMT 2017
On Mon, Jan 23, 2017 at 11:38:20AM +0000, Maciej W. Rozycki wrote:
> PR ld/20828
> * elflink.c (bfd_elf_record_link_assignment): Revert last
> change and don't ever clear `forced_local'. Set `mark'
> unconditionally.
> (elf_gc_sweep_symbol_info, elf_gc_sweep_symbol): Reorder within
> file.
> (elf_gc_sweep): Move the call to `elf_gc_sweep_symbol'...
> (bfd_elf_size_dynamic_sections): ... here.
> * elf32-ppc.c (ppc_elf_tls_setup): Don't clear `forced_local'
> and set `mark' instead in `__tls_get_addr_opt' processing.
> * elf64-ppc.c (ppc64_elf_tls_setup): Likewise.
I think this is OK for master, but please delay putting this patch on
the branch for a while. There is a possibility that the change might
tickle bugs in some target check_relocs.
--
Alan Modra
Australia Development Lab, IBM
More information about the Binutils
mailing list