Fix support for .protected symbols.
This commit is contained in:
parent
079328a547
commit
82cfc8036f
5
external/gpl3/binutils/dist/bfd/elfxx-mips.c
vendored
5
external/gpl3/binutils/dist/bfd/elfxx-mips.c
vendored
@ -5138,7 +5138,10 @@ mips_elf_calculate_relocation (bfd *abfd, bfd *input_bfd,
|
||||
|| ((r_type == R_MIPS_26 || r_type == R_MIPS_JALR)
|
||||
&& target_is_16_bit_code_p));
|
||||
|
||||
local_p = h == NULL || SYMBOL_REFERENCES_LOCAL (info, &h->root);
|
||||
local_p = h == NULL
|
||||
|| (h->got_only_for_calls
|
||||
? SYMBOL_CALLS_LOCAL (info, &h->root)
|
||||
: SYMBOL_REFERENCES_LOCAL (info, &h->root));
|
||||
|
||||
gp0 = _bfd_get_gp_value (input_bfd);
|
||||
gp = _bfd_get_gp_value (abfd);
|
||||
|
Loading…
Reference in New Issue
Block a user