aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf32-ppc.c
diff options
context:
space:
mode:
authorAlan Modra <amodra@gmail.com>2004-03-16 10:29:12 +0000
committerAlan Modra <amodra@gmail.com>2004-03-16 10:29:12 +0000
commit51992aec7a025a2cb45ee604eaf0fdf7211ea75c (patch)
tree821df187b567083a546ea04bcbbbd2f22cc24878 /bfd/elf32-ppc.c
parentccba357f634fbfc05dab5129a75eb5b7bc2b0c42 (diff)
downloadgdb-51992aec7a025a2cb45ee604eaf0fdf7211ea75c.zip
gdb-51992aec7a025a2cb45ee604eaf0fdf7211ea75c.tar.gz
gdb-51992aec7a025a2cb45ee604eaf0fdf7211ea75c.tar.bz2
* elflink.c (elf_link_read_relocs_from_section): Don't use
NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check.. (_bfd_elf_link_read_relocs): ..to here. * elf32-ppc.c (ppc_elf_relax_section): Formatting.
Diffstat (limited to 'bfd/elf32-ppc.c')
-rw-r--r--bfd/elf32-ppc.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/bfd/elf32-ppc.c b/bfd/elf32-ppc.c
index 8bd7115..813d149 100644
--- a/bfd/elf32-ppc.c
+++ b/bfd/elf32-ppc.c
@@ -1816,10 +1816,7 @@ ppc_elf_relax_section (bfd *abfd,
symaddr = tsec->output_section->vma + tsec->output_offset + toff;
roff = irel->r_offset;
-
- reladdr = (isec->output_section->vma
- + isec->output_offset
- + roff);
+ reladdr = isec->output_section->vma + isec->output_offset + roff;
/* If the branch is in range, no need to do anything. */
if (symaddr - reladdr + max_branch_offset < 2 * max_branch_offset)