mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-21 02:24:17 +08:00
Fix running objcopy on Mach-O binaries.
PR binutils/23315 * mach-o.c (bfd_mach_o_mangle_symbols): Update n_type even if data is already considered filled.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2018-08-21 mephi42 <mephi42@gmail.com>
|
||||||
|
|
||||||
|
PR binutils/23315
|
||||||
|
* mach-o.c (bfd_mach_o_mangle_symbols): Update n_type even if
|
||||||
|
data is already considered filled.
|
||||||
|
|
||||||
2018-08-21 Alan Modra <amodra@gmail.com>
|
2018-08-21 Alan Modra <amodra@gmail.com>
|
||||||
|
|
||||||
* elf64-ppc.c (HOW): Define.
|
* elf64-ppc.c (HOW): Define.
|
||||||
|
@ -2497,10 +2497,13 @@ bfd_mach_o_mangle_symbols (bfd *abfd)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
s->n_type = BFD_MACH_O_N_SECT;
|
s->n_type = BFD_MACH_O_N_SECT;
|
||||||
|
}
|
||||||
|
|
||||||
|
/* Update external symbol bit in case objcopy changed it. */
|
||||||
if (s->symbol.flags & BSF_GLOBAL)
|
if (s->symbol.flags & BSF_GLOBAL)
|
||||||
s->n_type |= BFD_MACH_O_N_EXT;
|
s->n_type |= BFD_MACH_O_N_EXT;
|
||||||
}
|
else
|
||||||
|
s->n_type &= ~BFD_MACH_O_N_EXT;
|
||||||
|
|
||||||
/* Put the section index in, where required. */
|
/* Put the section index in, where required. */
|
||||||
if ((s->symbol.section != bfd_abs_section_ptr
|
if ((s->symbol.section != bfd_abs_section_ptr
|
||||||
|
Reference in New Issue
Block a user