aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-hppa.c
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2004-03-19 19:19:53 +0000
committerDave Anglin <dave.anglin@nrc.ca>2004-03-19 19:19:53 +0000
commit9992270f89c4cb54f60e38981c3d0837c6a07523 (patch)
treec3f807144d0a130e88007b5b2ad2aea8d6617e5f /gas/config/tc-hppa.c
parent33cb8b0f854ed9a15db4f601866f11b1357d8ad3 (diff)
downloadgdb-9992270f89c4cb54f60e38981c3d0837c6a07523.zip
gdb-9992270f89c4cb54f60e38981c3d0837c6a07523.tar.gz
gdb-9992270f89c4cb54f60e38981c3d0837c6a07523.tar.bz2
* elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations. * tc-hppa.c (cons_fix_new_hppa): Check for PC relative base type. (pa_comm): Set BSF_OBJECT in symbol flags.
Diffstat (limited to 'gas/config/tc-hppa.c')
-rw-r--r--gas/config/tc-hppa.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/gas/config/tc-hppa.c b/gas/config/tc-hppa.c
index 7fbcd0a..77563a9 100644
--- a/gas/config/tc-hppa.c
+++ b/gas/config/tc-hppa.c
@@ -1399,6 +1399,8 @@ cons_fix_new_hppa (frag, where, size, exp)
/* Get a base relocation type. */
if (is_DP_relative (*exp))
rel_type = R_HPPA_GOTOFF;
+ else if (is_PC_relative (*exp))
+ rel_type = R_HPPA_PCREL_CALL;
else if (is_complex (*exp))
rel_type = R_HPPA_COMPLEX;
else
@@ -6386,6 +6388,7 @@ pa_comm (unused)
if (symbol)
{
+ symbol_get_bfdsym (symbol)->flags |= BSF_OBJECT;
S_SET_VALUE (symbol, size);
S_SET_SEGMENT (symbol, bfd_und_section_ptr);
S_SET_EXTERNAL (symbol);