aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.h
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2008-08-28 02:33:45 +0000
committerDave Anglin <dave.anglin@nrc.ca>2008-08-28 02:33:45 +0000
commit6bba1048d63e0476b94b9934527defd81c590a13 (patch)
tree1ebc01000f49db0a5455491b1a0239466f7042a6 /gas/config/tc-hppa.h
parent3c045627c6d3bbf0e893d0f694a83ad8180db8bf (diff)
downloadgdb-6bba1048d63e0476b94b9934527defd81c590a13.zip
gdb-6bba1048d63e0476b94b9934527defd81c590a13.tar.gz
gdb-6bba1048d63e0476b94b9934527defd81c590a13.tar.bz2
* 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$.
Diffstat (limited to 'gas/config/tc-hppa.h')
-rw-r--r--gas/config/tc-hppa.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/gas/config/tc-hppa.h b/gas/config/tc-hppa.h
index b53527b..393a144 100644
--- a/gas/config/tc-hppa.h
+++ b/gas/config/tc-hppa.h
@@ -175,6 +175,7 @@ int hppa_fix_adjustable (struct fix *);
|| (S_GET_SEGMENT (sym) == &bfd_abs_section \
&& ! S_IS_EXTERNAL (sym)) \
|| strcmp (S_GET_NAME (sym), "$global$") == 0 \
+ || strcmp (S_GET_NAME (sym), "$segrel$") == 0 \
|| strcmp (S_GET_NAME (sym), "$PIC_pcrel$0") == 0 \
|| strcmp (S_GET_NAME (sym), "$tls_gdidx$") == 0 \
|| strcmp (S_GET_NAME (sym), "$tls_ldidx$") == 0 \