aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2007-05-08 02:29:27 +0000
committerAlan Modra <amodra@gmail.com>2007-05-08 02:29:27 +0000
commitd02496489e6eed54df61f490255ba84b7e1bf5f3 (patch)
tree95fc56174f418e5af418ee036c6d473023e5b369
parent0c18fee5b37f838c89b45c757deadfa81574e352 (diff)
downloadgdb-d02496489e6eed54df61f490255ba84b7e1bf5f3.zip
gdb-d02496489e6eed54df61f490255ba84b7e1bf5f3.tar.gz
gdb-d02496489e6eed54df61f490255ba84b7e1bf5f3.tar.bz2
* elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
(mark_functions_via_relocs): Likewise.
-rw-r--r--bfd/ChangeLog5
-rw-r--r--bfd/elf32-spu.c11
2 files changed, 11 insertions, 5 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 4b7c79e..b694155 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,3 +1,8 @@
+2007-05-08 Alan Modra <amodra@bigpond.net.au>
+
+ * elf32-spu.c (spu_elf_size_stubs): Use "void *" for psyms.
+ (mark_functions_via_relocs): Likewise.
+
2007-05-07 Alan Modra <amodra@bigpond.net.au>
* elflink.c (bfd_elf_final_link): Correct reloc handling for
diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c
index 8e7a234..b6e5fbc 100644
--- a/bfd/elf32-spu.c
+++ b/bfd/elf32-spu.c
@@ -858,7 +858,7 @@ spu_elf_size_stubs (bfd *output_bfd,
Elf_Internal_Shdr *symtab_hdr;
asection *section;
Elf_Internal_Sym *local_syms = NULL;
- Elf_Internal_Sym **psyms;
+ void *psyms;
if (ibfd->xvec != &bfd_elf32_spu_vec)
continue;
@@ -871,7 +871,7 @@ spu_elf_size_stubs (bfd *output_bfd,
/* Arrange to read and keep global syms for later stack analysis. */
psyms = &local_syms;
if (stack_analysis)
- psyms = (Elf_Internal_Sym **) &symtab_hdr->contents;
+ psyms = &symtab_hdr->contents;
/* Walk over each section attached to the input bfd. */
for (section = ibfd->sections; section != NULL; section = section->next)
@@ -1889,7 +1889,8 @@ mark_functions_via_relocs (asection *sec,
{
Elf_Internal_Rela *internal_relocs, *irelaend, *irela;
Elf_Internal_Shdr *symtab_hdr = &elf_tdata (sec->owner)->symtab_hdr;
- Elf_Internal_Sym *syms, **psyms;
+ Elf_Internal_Sym *syms;
+ void *psyms;
static bfd_boolean warned;
internal_relocs = _bfd_elf_link_read_relocs (sec->owner, sec, NULL, NULL,
@@ -1898,8 +1899,8 @@ mark_functions_via_relocs (asection *sec,
return FALSE;
symtab_hdr = &elf_tdata (sec->owner)->symtab_hdr;
- psyms = (Elf_Internal_Sym **) &symtab_hdr->contents;
- syms = *psyms;
+ psyms = &symtab_hdr->contents;
+ syms = *(Elf_Internal_Sym **) psyms;
irela = internal_relocs;
irelaend = irela + sec->reloc_count;
for (; irela < irelaend; irela++)