forked from Imagelibrary/binutils-gdb
Re: ld: Always output local symbol for relocatable link
Remove this code dating back to commit 98790d3a95 entirely, what it
was trying to do is done elsewhere.
PR ld/29761
* elflink.c (elf_link_output_symstrtab): Don't handle symbols
in SEC_EXCLUDE sections here.
This commit is contained in:
@@ -9995,10 +9995,7 @@ elf_link_output_symstrtab (void *finf,
|
||||
if (ELF_ST_BIND (elfsym->st_info) == STB_GNU_UNIQUE)
|
||||
elf_tdata (flinfo->output_bfd)->has_gnu_osabi |= elf_gnu_osabi_unique;
|
||||
|
||||
if (name == NULL
|
||||
|| *name == '\0'
|
||||
|| (!bfd_link_relocatable (flinfo->info)
|
||||
&& (input_sec->flags & SEC_EXCLUDE)))
|
||||
if (name == NULL || *name == '\0')
|
||||
elfsym->st_name = (unsigned long) -1;
|
||||
else
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user