mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-09 23:32:21 +08:00
* elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Avoid crash when
we have a local symbol in common section.
This commit is contained in:
@ -512,11 +512,12 @@ elf32_m68hc11_size_stubs (output_bfd, stub_bfd, info, add_stub_section)
|
||||
bfd_boolean is_far;
|
||||
|
||||
sym = local_syms + r_indx;
|
||||
hdr = elf_elfsections (input_bfd)[sym->st_shndx];
|
||||
sym_sec = hdr->bfd_section;
|
||||
is_far = (sym && (sym->st_other & STO_M68HC12_FAR));
|
||||
if (!is_far)
|
||||
continue;
|
||||
|
||||
hdr = elf_elfsections (input_bfd)[sym->st_shndx];
|
||||
sym_sec = hdr->bfd_section;
|
||||
stub_name = (bfd_elf_string_from_elf_section
|
||||
(input_bfd, symtab_hdr->sh_link,
|
||||
sym->st_name));
|
||||
|
Reference in New Issue
Block a user