This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
elf32-hppa shared lib support part 1
- To: binutils at sourceware dot cygnus dot com
- Subject: elf32-hppa shared lib support part 1
- From: Alan Modra <alan at linuxcare dot com dot au>
- Date: Tue, 5 Sep 2000 13:13:26 +1100 (EST)
- cc: Jeffrey A Law <law at cygnus dot com>
I think it's time to merge back to sourceware.
This first patch doesn't really have anything to do with shared lib
support, but we need two more relocs for vtable support. I've also added
a PCREL12 reloc to allow instructions like comib to branch to extern
labels. Now would be a good time to complain if the reloc numbers chosen
here are silly.
include/elf/ChangeLog
* hppa.h: Fix a comment.
(R_PARISC_PCREL12F): Define.
(R_PARISC_GNU_VTENTRY): Define.
(R_PARISC_GNU_VTINHERIT): Define.
Alan Modra
--
Linuxcare. Support for the Revolution.
diff -uprN -x*~ -xCVS -xTAGS -x.#* binutils-current/include/elf/hppa.h parisc/include/elf/hppa.h
--- binutils-current/include/elf/hppa.h Tue Jul 11 00:58:39 2000
+++ parisc/include/elf/hppa.h Wed Aug 16 09:48:19 2000
@@ -135,6 +135,9 @@ RELOC_NUMBER (R_PARISC_DIR14R, 6)
addend being zero. A consequence of this limitation is GAS
can not perform relocation reductions for function symbols. */
+RELOC_NUMBER (R_PARISC_PCREL12F, 8)
+/* op & branch (17) symbol - PC - 8 + addend */
+
RELOC_NUMBER (R_PARISC_PCREL32, 9)
/* 32-bit word symbol - PC - 8 + addend */
@@ -229,7 +232,7 @@ RELOC_NUMBER (R_PARISC_SEGBASE, 4
/* none no relocation; SB := sym */
RELOC_NUMBER (R_PARISC_SEGREL32, 49)
-/* 32-bit word symbol - SB + addend */
+/* 32-bit word symbol - SB + addend */
/* Offsets from the PLT. */
@@ -470,6 +473,9 @@ RELOC_NUMBER (R_PARISC_LTOFF_TP16WF, 2
RELOC_NUMBER (R_PARISC_LTOFF_TP16DF, 231)
/* load/store doubleword (3) ltoff(symbol - TP + addend) */
+
+RELOC_NUMBER (R_PARISC_GNU_VTENTRY, 232)
+RELOC_NUMBER (R_PARISC_GNU_VTINHERIT, 233)
END_RELOC_NUMBERS (R_PARISC_UNIMPLEMENTED)