diff options
author | Alan Modra <amodra@gmail.com> | 2004-03-16 10:29:12 +0000 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2004-03-16 10:29:12 +0000 |
commit | 51992aec7a025a2cb45ee604eaf0fdf7211ea75c (patch) | |
tree | 821df187b567083a546ea04bcbbbd2f22cc24878 /bfd/elf32-ppc.c | |
parent | ccba357f634fbfc05dab5129a75eb5b7bc2b0c42 (diff) | |
download | gdb-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.c | 5 |
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) |