[PATCH] ld: Hide symbols defined by HIDDEN/PROVIDE_HIDDEN

Alan Modra amodra@gmail.com
Sat May 19 03:23:00 GMT 2018


On Fri, May 18, 2018 at 10:56:21AM -0700, H.J. Lu wrote:
> The updated patch to call elf_backend_hide_symbol instead of
> _bfd_elf_link_hash_hide_symbol.

I see x86_64-linux and powerpc64le-linux segfaults with this patch.

I'm also unconvinced that we need bfd_link_hide_symbol.  We'll be
calling bfd_elf_record_link_assignment for any symbol defined by a
linker script.  Why can't bfd_elf_record_link_assignment be corrected
if it is doing something wrong?

-- 
Alan Modra
Australia Development Lab, IBM



More information about the Binutils mailing list