summaryrefslogtreecommitdiff
path: root/bfd/elf-hppa.h
diff options
context:
space:
mode:
authorDave Anglin <dave.anglin@nrc.ca>2004-03-19 19:19:52 +0000
committerDave Anglin <dave.anglin@nrc.ca>2004-03-19 19:19:52 +0000
commit3a8d53189e60d2801c2f0bd62fff1ec09cfc419a (patch)
tree0f8e6895b749c590aa7e0203c5d187909d8690e2 /bfd/elf-hppa.h
parent9169099ca907f7354036e229c20c685bd7728aaf (diff)
downloadgdb-3a8d53189e60d2801c2f0bd62fff1ec09cfc419a.tar.gz
* 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 'bfd/elf-hppa.h')
-rw-r--r--bfd/elf-hppa.h22
1 files changed, 22 insertions, 0 deletions
diff --git a/bfd/elf-hppa.h b/bfd/elf-hppa.h
index a5c0b442889..5efd808819e 100644
--- a/bfd/elf-hppa.h
+++ b/bfd/elf-hppa.h
@@ -812,6 +812,28 @@ elf_hppa_reloc_final_type (bfd *abfd,
}
break;
+ case 32:
+ switch (field)
+ {
+ case e_fsel:
+ final_type = R_PARISC_PCREL32;
+ break;
+ default:
+ return R_PARISC_NONE;
+ }
+ break;
+
+ case 64:
+ switch (field)
+ {
+ case e_fsel:
+ final_type = R_PARISC_PCREL64;
+ break;
+ default:
+ return R_PARISC_NONE;
+ }
+ break;
+
default:
return R_PARISC_NONE;
}