mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-25 21:41:47 +08:00
* elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
unexport unreferenced symbols when --export-dynamic. Call _bfd_elf_strtab_delref when unexporting.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2002-01-31 Hans-Peter Nilsson <hp@axis.com>
|
||||||
|
|
||||||
|
* elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
|
||||||
|
unexport unreferenced symbols when --export-dynamic. Call
|
||||||
|
_bfd_elf_strtab_delref when unexporting.
|
||||||
|
|
||||||
2002-01-30 Daniel Jacobowitz <drow@mvista.com>
|
2002-01-30 Daniel Jacobowitz <drow@mvista.com>
|
||||||
|
|
||||||
* bfd-in.h: Include <stdbool.h> if it is available.
|
* bfd-in.h: Include <stdbool.h> if it is available.
|
||||||
|
@ -2936,8 +2936,14 @@ elf_cris_discard_excess_program_dynamics (h, inf)
|
|||||||
/* If the locally-defined symbol isn't used by a DSO, then we don't
|
/* If the locally-defined symbol isn't used by a DSO, then we don't
|
||||||
have to export it as a dynamic symbol. This was already done for
|
have to export it as a dynamic symbol. This was already done for
|
||||||
functions; doing this for all symbols would presumably not
|
functions; doing this for all symbols would presumably not
|
||||||
introduce new problems. */
|
introduce new problems. Of course we don't do this if we're
|
||||||
h->root.dynindx = -1;
|
exporting all dynamic symbols. */
|
||||||
|
if (! info->export_dynamic)
|
||||||
|
{
|
||||||
|
h->root.dynindx = -1;
|
||||||
|
_bfd_elf_strtab_delref (elf_hash_table (info)->dynstr,
|
||||||
|
h->root.dynstr_index);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
|
Reference in New Issue
Block a user