2000-05-23 H.J. Lu <hjl@gnu.org>

* elf32-mips.c (mips_elf_calculate_relocation): Check
	h->root.other not h->other.

	* elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
This commit is contained in:
H.J. Lu 2000-05-23 14:20:57 +00:00
parent edb72b3b35
commit ba09750c1e
3 changed files with 6 additions and 3 deletions

View File

@ -2,6 +2,9 @@
* elf64-alpha.c (elf64_alpha_relocate_section): Check
h->root.other not h->other.
* elf32-mips.c (mips_elf_calculate_relocation): Likewise.
* elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
2000-05-23 H.J. Lu <hjl@gnu.org>

View File

@ -5918,7 +5918,7 @@ mips_elf_calculate_relocation (abfd,
addresses. */
symbol = 0;
else if (info->shared && !info->symbolic && !info->no_undefined
&& ELF_ST_VISIBILITY (h->other) == STV_DEFAULT)
&& ELF_ST_VISIBILITY (h->root.other) == STV_DEFAULT)
symbol = 0;
else if (strcmp (h->root.root.root.string, "_DYNAMIC_LINK") == 0)
{
@ -5937,7 +5937,7 @@ mips_elf_calculate_relocation (abfd,
(info, h->root.root.root.string, input_bfd,
input_section, relocation->r_offset,
(!info->shared || info->no_undefined
|| ELF_ST_VISIBILITY (h->other)))))
|| ELF_ST_VISIBILITY (h->root.other)))))
return bfd_reloc_undefined;
symbol = 0;
}

View File

@ -3104,7 +3104,7 @@ ppc_elf_relocate_section (output_bfd, info, input_bfd, input_section,
rel->r_offset,
(!info->shared
|| info->no_undefined
ELF_ST_VISIBILITY (h->other))))
|| ELF_ST_VISIBILITY (h->other))))
return false;
relocation = 0;
}