* elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64,
authorDave Anglin <dave.anglin@nrc.ca>
Thu, 28 Aug 2008 02:33:45 +0000 (02:33 +0000)
committerDave Anglin <dave.anglin@nrc.ca>
Thu, 28 Aug 2008 02:33:45 +0000 (02:33 +0000)
commit6bba1048d63e0476b94b9934527defd81c590a13
tree1ebc01000f49db0a5455491b1a0239466f7042a6
parent3c045627c6d3bbf0e893d0f694a83ad8180db8bf
* elf-hppa.h (elf_hppa_reloc_final_type): Handle R_PARISC_GPREL64,
R_PARISC_SEGREL32 and R_PARISC_SEGREL64.
* som.c (som_fixup_formats): Add R_DATA_GPREL fixup.
(som_hppa_howto_table): Likewise.
(hppa_som_gen_reloc_type): In case R_HPPA_GOTOFF, detect R_DATA_GPREL
final type.
(som_write_fixups): Handle R_DATA_GPREL.

* config/tc-hppa.c (is_SB_relative): New macro.
(fix_new_hppa): Remove $segrel$ marker.
(cons_fix_new_hppa): Set reloc type R_PARISC_SEGREL32 if expression is
segment relative.
* config/tc-hppa.h (tc_frob_symbol): Check for $segrel$.
bfd/ChangeLog
bfd/elf-hppa.h
bfd/som.c
gas/ChangeLog
gas/config/tc-hppa.c
gas/config/tc-hppa.h