aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2002-05-09 11:40:16 +0000
committerAlan Modra <amodra@gmail.com>2002-05-09 11:40:16 +0000
commit8fc39d5d553d00c942578368bdb0ac45e8a8e9aa (patch)
tree6f856529376b54b6b41d74809e0f88232ffcc46f /bfd
parentc1a34e6066f660fe3e4b7cc8dfdcf0a2fb59171b (diff)
downloadgdb-8fc39d5d553d00c942578368bdb0ac45e8a8e9aa.zip
gdb-8fc39d5d553d00c942578368bdb0ac45e8a8e9aa.tar.gz
gdb-8fc39d5d553d00c942578368bdb0ac45e8a8e9aa.tar.bz2
* elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
(ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or pcrel_offset.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog6
-rw-r--r--bfd/elf64-ppc.c10
2 files changed, 7 insertions, 9 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 18f6d05..d486aa0 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
2002-05-09 Alan Modra <amodra@bigpond.net.au>
+ * elf64-ppc.c (RA_REGISTER_MASK, RA_REGISTER_SHIFT): Delete.
+ (ppc64_elf_howto_raw <R_PPC64_RELATIVE>): Not pc_relative or
+ pcrel_offset.
+
* elf32-i386.c (elf_howto_table): Comments.
(elf_i386_relocate_section): Handle more relocs for relocatable
linking and against SEC_MERGE sections.
@@ -117,7 +121,7 @@
(elf32_hppa_size_stubs): Adjust for split out functions. Look for
stubs on undefined syms too.
(elf32_hppa_set_gp): Use bfd_link_hash* instead of elf_link_hash*.
- Only access htab elf fields when we have and elf hash table.
+ Only access htab elf fields when we have an elf hash table.
* elf32-hppa.h (elf32_hppa_setup_section_lists): Declare.
(elf32_hppa_next_input_section): Declare.
diff --git a/bfd/elf64-ppc.c b/bfd/elf64-ppc.c
index 428e31c..5ae3aef 100644
--- a/bfd/elf64-ppc.c
+++ b/bfd/elf64-ppc.c
@@ -63,12 +63,6 @@ static boolean ppc64_elf_section_from_shdr
PARAMS ((bfd *, Elf64_Internal_Shdr *, char *));
-/* Mask to set RA in memory instructions. */
-#define RA_REGISTER_MASK 0x001f0000
-
-/* Value to shift register by to insert RA. */
-#define RA_REGISTER_SHIFT 16
-
/* The name of the dynamic interpreter. This is put in the .interp
section. */
#define ELF_DYNAMIC_INTERPRETER "/usr/lib/ld.so.1"
@@ -482,7 +476,7 @@ static reloc_howto_type ppc64_elf_howto_raw[] = {
0, /* rightshift */
4, /* size (0=byte, 1=short, 2=long, 4=64 bits) */
64, /* bitsize */
- true, /* pc_relative */
+ false, /* pc_relative */
0, /* bitpos */
complain_overflow_dont, /* complain_on_overflow */
bfd_elf_generic_reloc, /* special_function */
@@ -490,7 +484,7 @@ static reloc_howto_type ppc64_elf_howto_raw[] = {
false, /* partial_inplace */
0, /* src_mask */
0xffffffffffffffff, /* dst_mask */
- true), /* pcrel_offset */
+ false), /* pcrel_offset */
/* Like R_PPC64_ADDR32, but may be unaligned. */
HOWTO (R_PPC64_UADDR32, /* type */