aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-03-29 02:38:00 +0000
committerAlan Modra <amodra@gmail.com>2007-03-29 02:38:00 +0000
commit947844a311f5d5c33bfae4dbd6801570f2fc696c (patch)
treea9249e0856cb59912070e6640f581dd0f846e893
parentd99f33d88bbdf7e3e327975e352c6c37fb9c2ea0 (diff)
downloadgdb-947844a311f5d5c33bfae4dbd6801570f2fc696c.zip
gdb-947844a311f5d5c33bfae4dbd6801570f2fc696c.tar.gz
gdb-947844a311f5d5c33bfae4dbd6801570f2fc696c.tar.bz2
PR ld/4267
* elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma for rel->r_info values. (bfd_elf_perform_complex_relocation): Likewise.
-rw-r--r--bfd/ChangeLog3
-rw-r--r--bfd/elflink.c4
2 files changed, 5 insertions, 2 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 7d9e2d8..1f431a7 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,6 +1,9 @@
2007-03-29 Alan Modra <amodra@bigpond.net.au>
PR ld/4267
+ * elflink.c (evaluate_complex_relocation_symbols): Use bfd_vma
+ for rel->r_info values.
+ (bfd_elf_perform_complex_relocation): Likewise.
* elf32-ppc.c (allocate_dynrelocs): Set plt.offset to -1 for
unused entries. Don't clear plt.plist in loop.
diff --git a/bfd/elflink.c b/bfd/elflink.c
index 4d3c58a..360ac69c 100644
--- a/bfd/elflink.c
+++ b/bfd/elflink.c
@@ -6758,7 +6758,7 @@ evaluate_complex_relocation_symbols (bfd * input_bfd,
{
Elf_Internal_Rela * rel;
char * sym_name;
- unsigned long index;
+ bfd_vma index;
Elf_Internal_Sym * sym;
bfd_vma result;
bfd_vma section_offset;
@@ -6949,7 +6949,7 @@ bfd_elf_perform_complex_relocation
Elf_Internal_Shdr * symtab_hdr;
asection * sec;
bfd_vma relocation = 0, shift, x;
- unsigned long r_symndx;
+ bfd_vma r_symndx;
bfd_vma mask;
unsigned long start, oplen, len, wordsz,
chunksz, lsb0_p, signed_p, trunc_p;