2007-04-03 Matt Thomas <matt@netbsd.org>

* elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
	in a shared object if it is not in a CODE section or if it is against
	a section symbol.  This allows DWARF2 to use pcrel format.
This commit is contained in:
Matt Thomas 2007-04-06 16:29:32 +00:00
parent 5ad507eea3
commit da6bcfca95
2 changed files with 9 additions and 2 deletions

View file

@ -1,3 +1,9 @@
2007-04-03 Matt Thomas <matt@netbsd.org>
* elf32-vax.c (elf_vax_relocate_section): Do not emit a PCREL reloc
in a shared object if it is not in a CODE section or if it is against
a section symbol. This allows DWARF2 to use pcrel format.
2007-04-05 H.J. Lu <hongjiu.lu@intel.com>
PR ld/4304

View file

@ -1625,8 +1625,9 @@ elf_vax_relocate_section (bfd *output_bfd,
&& ((r_type != R_VAX_PC8
&& r_type != R_VAX_PC16
&& r_type != R_VAX_PC32)
|| (!info->symbolic
|| !h->def_regular)))
|| ((input_section->flags & SEC_CODE)
&& (!info->symbolic
|| (!h->def_regular && h->type != STT_SECTION)))))
{
Elf_Internal_Rela outrel;
bfd_byte *loc;