mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
2011-12-05 Tristan Gingold <gingold@adacore.com>
* mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.
This commit is contained in:
@ -1,3 +1,7 @@
|
|||||||
|
2011-12-05 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
|
* mach-o.c (bfd_mach_o_read_symtab_symbol): Accept indirect symbols.
|
||||||
|
|
||||||
2011-12-05 Tristan Gingold <gingold@adacore.com>
|
2011-12-05 Tristan Gingold <gingold@adacore.com>
|
||||||
|
|
||||||
* mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
|
* mach-o.c (bfd_mach_o_write_contents): Handle LC_LOAD_UPWARD_DYLIB.
|
||||||
|
10
bfd/mach-o.c
10
bfd/mach-o.c
@ -1901,10 +1901,12 @@ bfd_mach_o_read_symtab_symbol (bfd *abfd,
|
|||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case BFD_MACH_O_N_INDR:
|
case BFD_MACH_O_N_INDR:
|
||||||
(*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: "
|
/* FIXME: we don't follow the BFD convention as this indirect symbol
|
||||||
"symbol \"%s\" is unsupported 'indirect' reference: setting to undefined"),
|
won't be followed by the referenced one. This looks harmless
|
||||||
s->symbol.name);
|
unless we start using the linker. */
|
||||||
s->symbol.section = bfd_und_section_ptr;
|
s->symbol.flags |= BSF_INDIRECT;
|
||||||
|
s->symbol.section = bfd_ind_section_ptr;
|
||||||
|
s->symbol.value = 0;
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
(*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: "
|
(*_bfd_error_handler) (_("bfd_mach_o_read_symtab_symbol: "
|
||||||
|
Reference in New Issue
Block a user