mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-01-24 12:35:55 +08:00
PowerPC64 handling of @tocbase
* elf64-ppc.c (ppc64_elf_relocate_section): Warn if the symbol on R_PPC64_TOC isn't local.
This commit is contained in:
parent
ef5684c2bd
commit
1004091634
@ -17027,6 +17027,15 @@ ppc64_elf_relocate_section (bfd *output_bfd,
|
||||
relocation += htab->sec_info[sec->id].toc_off;
|
||||
else
|
||||
unresolved_reloc = true;
|
||||
if (unresolved_reloc
|
||||
|| (!is_opd
|
||||
&& h != NULL
|
||||
&& !SYMBOL_REFERENCES_LOCAL (info, &h->elf)))
|
||||
info->callbacks->einfo
|
||||
/* xgettext:c-format */
|
||||
(_("%H: %s against %pT is not supported\n"),
|
||||
input_bfd, input_section, rel->r_offset,
|
||||
ppc64_elf_howto_table[r_type]->name, sym_name);
|
||||
goto dodyn;
|
||||
|
||||
/* TOC16 relocs. We want the offset relative to the TOC base,
|
||||
|
Loading…
Reference in New Issue
Block a user