This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
[binutils-or32 1/2] Add reloc with 28 bit displacement.
- From: Balint Cristian <cristian dot balint at oradea dot rdsnet dot ro>
- To: binutils at sources dot redhat dot com
- Cc: "György 'nog' Jeney" <nog at sdf dot lonestar dot org>
- Date: Wed, 21 Dec 2005 12:16:46 +0200
- Subject: [binutils-or32 1/2] Add reloc with 28 bit displacement.
Add reloc with 28 bit displacement, as alpha and mips do it.
--
Balint Cristian
diff -Nru binutils-2005-12-13-ORIG/src/bfd/libbfd.h binutils-2005-12-13-DONE/src/bfd/libbfd.h
--- binutils-2005-12-13-ORIG/src/bfd/libbfd.h 2005-12-12 19:03:39.000000000 +0200
+++ binutils-2005-12-13-DONE/src/bfd/libbfd.h 2005-12-13 18:54:15.000000000 +0200
@@ -821,6 +821,7 @@
"BFD_RELOC_32_PCREL_S2",
"BFD_RELOC_16_PCREL_S2",
"BFD_RELOC_23_PCREL_S2",
+ "BFD_RELOC_28_PCREL_S2",
"BFD_RELOC_HI22",
"BFD_RELOC_LO10",
"BFD_RELOC_GPREL16",
diff -Nru binutils-2005-12-13-ORIG/src/bfd/bfd-in2.h binutils-2005-12-13-DONE/src/bfd/bfd-in2.h
--- binutils-2005-12-13-ORIG/src/bfd/bfd-in2.h 2005-12-12 19:03:39.000000000 +0200
+++ binutils-2005-12-13-DONE/src/bfd/bfd-in2.h 2005-12-14 11:56:31.000000000 +0200
@@ -1930,7 +1930,6 @@
bfd_arch_s390, /* IBM s390 */
#define bfd_mach_s390_31 31
#define bfd_mach_s390_64 64
- bfd_arch_openrisc, /* OpenRISC */
bfd_arch_mmix, /* Donald Knuth's educational processor. */
bfd_arch_xstormy16,
#define bfd_mach_xstormy16 1
@@ -2303,11 +2302,13 @@
i.e., byte displacements shifted right two bits. The 30-bit word
displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the
SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
-signed 16-bit displacement is used on the MIPS, and the 23-bit
-displacement is used on the Alpha. */
+signed 16-bit displacement is used on the MIPS, the 23-bit
+displacement is used on the Alpha and the 28-bit displacement is used
+on OpenRISC. */
BFD_RELOC_32_PCREL_S2,
BFD_RELOC_16_PCREL_S2,
BFD_RELOC_23_PCREL_S2,
+ BFD_RELOC_28_PCREL_S2,
/* High 22 bits and low 10 bits of 32-bit value, placed into lower bits of
the target word. These are used on the SPARC. */
Binary files binutils-2005-12-13-ORIG/src/bfd/po/sv.gmo and binutils-2005-12-13-DONE/src/bfd/po/sv.gmo differ
Binary files binutils-2005-12-13-ORIG/src/bfd/po/tr.gmo and binutils-2005-12-13-DONE/src/bfd/po/tr.gmo differ
Binary files binutils-2005-12-13-ORIG/src/bfd/po/vi.gmo and binutils-2005-12-13-DONE/src/bfd/po/vi.gmo differ
Binary files binutils-2005-12-13-ORIG/src/bfd/po/zh_CN.gmo and binutils-2005-12-13-DONE/src/bfd/po/zh_CN.gmo differ
diff -Nru binutils-2005-12-13-ORIG/src/bfd/reloc.c binutils-2005-12-13-DONE/src/bfd/reloc.c
--- binutils-2005-12-13-ORIG/src/bfd/reloc.c 2005-12-12 19:03:39.000000000 +0200
+++ binutils-2005-12-13-DONE/src/bfd/reloc.c 2005-12-14 11:55:57.000000000 +0200
@@ -1699,13 +1699,17 @@
BFD_RELOC_16_PCREL_S2
ENUMX
BFD_RELOC_23_PCREL_S2
+ENUMX
+ BFD_RELOC_28_PCREL_S2
ENUMDOC
These PC-relative relocations are stored as word displacements --
i.e., byte displacements shifted right two bits. The 30-bit word
displacement (<<32_PCREL_S2>> -- 32 bits, shifted 2) is used on the
SPARC. (SPARC tools generally refer to this as <<WDISP30>>.) The
-signed 16-bit displacement is used on the MIPS, and the 23-bit
-displacement is used on the Alpha.
+signed 16-bit displacement is used on the MIPS, the 23-bit
+displacement is used on the Alpha and the 28-bit displacement is used
+on OpenRISC.
+
ENUM
BFD_RELOC_HI22