mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 14:49:38 +08:00
PR 11042
* copy-relocs.cc (Copy_relocs::emit_copy_reloc): Mark the dynamic object as needed.
This commit is contained in:
@ -132,6 +132,9 @@ Copy_relocs<sh_type, size, big_endian>::emit_copy_reloc(
|
||||
while ((value & (addralign - 1)) != 0)
|
||||
addralign >>= 1;
|
||||
|
||||
// Mark the dynamic object as needed for the --as-needed option.
|
||||
sym->object()->set_is_needed();
|
||||
|
||||
if (this->dynbss_ == NULL)
|
||||
{
|
||||
this->dynbss_ = new Output_data_space(addralign, "** dynbss");
|
||||
|
Reference in New Issue
Block a user