diff options
author | Alan Modra <amodra@gmail.com> | 2008-05-12 12:22:53 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2008-05-12 12:22:53 +0000 |
commit | cc5ca406f932c14b0af83d96756f2198b55a5c7c (patch) | |
tree | a6e3328ae692f2d49395d94c6f6f3f9c4d218770 | |
parent | 4538db8bae55d697a829f59835363770fc2f9799 (diff) | |
download | gdb-cc5ca406f932c14b0af83d96756f2198b55a5c7c.zip gdb-cc5ca406f932c14b0af83d96756f2198b55a5c7c.tar.gz gdb-cc5ca406f932c14b0af83d96756f2198b55a5c7c.tar.bz2 |
* elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym.
-rw-r--r-- | bfd/ChangeLog | 4 | ||||
-rw-r--r-- | bfd/elf32-spu.c | 13 |
2 files changed, 11 insertions, 6 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 0949d15..1b92692 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,7 @@ +2008-05-12 Alan Modra <amodra@bigpond.net.au> + + * elf32-spu.c (spu_elf_relocate_section): Rename is_ea to is_ea_sym. + 2008-05-10 Paul Pluzhnikov <ppluzhnikov@google.com> * elfcore.h (elf_core_file_p): Warn about core truncation. diff --git a/bfd/elf32-spu.c b/bfd/elf32-spu.c index 420193b..0b758f4 100644 --- a/bfd/elf32-spu.c +++ b/bfd/elf32-spu.c @@ -3891,7 +3891,7 @@ spu_elf_relocate_section (bfd *output_bfd, asection *ea = bfd_get_section_by_name (output_bfd, "._ea"); int ret = TRUE; bfd_boolean emit_these_relocs = FALSE; - bfd_boolean is_ea; + bfd_boolean is_ea_sym; bfd_boolean stubs; htab = spu_hash_table (info); @@ -3955,12 +3955,13 @@ spu_elf_relocate_section (bfd *output_bfd, if (info->relocatable) continue; - is_ea = (ea != NULL - && sec != NULL - && sec->output_section == ea); + is_ea_sym = (ea != NULL + && sec != NULL + && sec->output_section == ea); + if (r_type == R_SPU_PPU32 || r_type == R_SPU_PPU64) { - if (is_ea) + if (is_ea_sym) { /* ._ea is a special section that isn't allocated in SPU memory, but rather occupies space in PPU memory as @@ -3977,7 +3978,7 @@ spu_elf_relocate_section (bfd *output_bfd, continue; } - if (is_ea) + if (is_ea_sym) unresolved_reloc = TRUE; if (unresolved_reloc) |