aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorDavid Edelsohn <dje.gcc@gmail.com>1997-10-02 23:55:22 +0000
committerDavid Edelsohn <dje.gcc@gmail.com>1997-10-02 23:55:22 +0000
commit22b23d7deb39bb03d49a7b07f012b86269054ad2 (patch)
tree98824908ecbd0afdd3ef1f2b38599a737c6d1317 /bfd
parent63fe2cc799d36a834c5606a9170799ed818410d7 (diff)
downloadgdb-22b23d7deb39bb03d49a7b07f012b86269054ad2.zip
gdb-22b23d7deb39bb03d49a7b07f012b86269054ad2.tar.gz
gdb-22b23d7deb39bb03d49a7b07f012b86269054ad2.tar.bz2
* reloc.c (bfd_check_overflow): New function.
(bfd_perform_relocation, bfd_install_relocation): Use it. (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs. (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs. * bfd-in2.h: Regenerate. * libbfd.h: Regenerate.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog9
-rw-r--r--bfd/bfd-in2.h18
2 files changed, 26 insertions, 1 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index e541640..e3580c2 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,12 @@
+Thu Oct 2 16:15:50 1997 Doug Evans <dje@canuck.cygnus.com>
+
+ * reloc.c (bfd_check_overflow): New function.
+ (bfd_perform_relocation, bfd_install_relocation): Use it.
+ (BFD_RELOC_SPARC_{DISP64,PLT64}): New relocs.
+ (BFD_RELOC_SPARC_{HIX22,LOX10,H44,M44,L44,REGISTER}): New relocs.
+ * bfd-in2.h: Regenerate.
+ * libbfd.h: Regenerate.
+
Thu Oct 2 13:17:18 1997 Ian Lance Taylor <ian@cygnus.com>
* peicode.h (coff_swap_scnhdr_out): Set IMAGE_SCN_MEM_READ for an
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 6171ce3..d398d82 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -1487,6 +1487,14 @@ typedef struct relent_chain {
} arelent_chain;
bfd_reloc_status_type
+bfd_check_overflow
+ PARAMS ((enum complain_overflow how,
+ unsigned int bitsize,
+ unsigned int rightshift,
+ bfd_vma value));
+
+bfd_reloc_status_type
+
bfd_perform_relocation
PARAMS ((bfd *abfd,
arelent *reloc_entry,
@@ -1614,7 +1622,7 @@ relocation types already defined. */
BFD_RELOC_SPARC_BASE13,
BFD_RELOC_SPARC_BASE22,
-/* Some relocations we're using for SPARC V9 -- subject to change. */
+/* SPARC64 relocations */
#define BFD_RELOC_SPARC_64 BFD_RELOC_64
BFD_RELOC_SPARC_10,
BFD_RELOC_SPARC_11,
@@ -1630,6 +1638,14 @@ relocation types already defined. */
BFD_RELOC_SPARC_7,
BFD_RELOC_SPARC_6,
BFD_RELOC_SPARC_5,
+#define BFD_RELOC_SPARC_DISP64 BFD_RELOC_64_PCREL
+ BFD_RELOC_SPARC_PLT64,
+ BFD_RELOC_SPARC_HIX22,
+ BFD_RELOC_SPARC_LOX10,
+ BFD_RELOC_SPARC_H44,
+ BFD_RELOC_SPARC_M44,
+ BFD_RELOC_SPARC_L44,
+ BFD_RELOC_SPARC_REGISTER,
/* Alpha ECOFF and ELF relocations. Some of these treat the symbol or
"addend" in some special way.