summaryrefslogtreecommitdiff
path: root/bfd/elf32-avr.c
diff options
context:
space:
mode:
authorKazu Hirata <kazu@codesourcery.com>2000-12-03 20:44:04 +0000
committerKazu Hirata <kazu@codesourcery.com>2000-12-03 20:44:04 +0000
commit483b7bb7472fcd9d4d26a581b1402cf7e0975ea9 (patch)
treece8ca36eace869c9058e54c220078a69cc459da2 /bfd/elf32-avr.c
parentd0bc8f7bf71cba1badba072123a1c9831f7cffda (diff)
downloadbinutils-redhat-483b7bb7472fcd9d4d26a581b1402cf7e0975ea9.tar.gz
2000-12-03 Kazu Hirata <kazu@hxi.com>
* elf32-arm.h: Fix formatting. * elf32-avr.c: Likewise. * elf32-cris.c: Likewise. * elf32-d10v.c: Likewise. * elf32-d30v.c: Likewise. * elf-hppa.h: Likewise. * elf-m10200.c: Likewise. * elf-m10300.c: Likewise.
Diffstat (limited to 'bfd/elf32-avr.c')
-rw-r--r--bfd/elf32-avr.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/bfd/elf32-avr.c b/bfd/elf32-avr.c
index ccdd6b5164..ab8b572036 100644
--- a/bfd/elf32-avr.c
+++ b/bfd/elf32-avr.c
@@ -18,7 +18,6 @@ You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
-
#include "bfd.h"
#include "sysdep.h"
#include "libbfd.h"
@@ -47,7 +46,6 @@ static boolean elf32_avr_relocate_section
static void bfd_elf_avr_final_write_processing PARAMS ((bfd *, boolean));
static boolean elf32_avr_object_p PARAMS ((bfd *));
-
/* Use RELA instead of REL */
#undef USE_REL
@@ -472,7 +470,7 @@ elf32_avr_check_relocs (abfd, info, sec, relocs)
symtab_hdr = &elf_tdata (abfd)->symtab_hdr;
sym_hashes = elf_sym_hashes (abfd);
- sym_hashes_end = sym_hashes + symtab_hdr->sh_size/sizeof(Elf32_External_Sym);
+ sym_hashes_end = sym_hashes + symtab_hdr->sh_size/sizeof (Elf32_External_Sym);
if (!elf_bad_symtab (abfd))
sym_hashes_end -= symtab_hdr->sh_info;
@@ -516,7 +514,7 @@ avr_final_link_relocate (howto, input_bfd, input_section,
srel = (bfd_signed_vma) relocation;
srel += rel->r_addend;
srel -= rel->r_offset;
- srel -= 2; /* Branch instructions add 2 to the PC... */
+ srel -= 2; /* Branch instructions add 2 to the PC... */
srel -= (input_section->output_section->vma +
input_section->output_offset);
@@ -534,7 +532,7 @@ avr_final_link_relocate (howto, input_bfd, input_section,
srel = (bfd_signed_vma) relocation;
srel += rel->r_addend;
srel -= rel->r_offset;
- srel -= 2; /* Branch instructions add 2 to the PC... */
+ srel -= 2; /* Branch instructions add 2 to the PC... */
srel -= (input_section->output_section->vma +
input_section->output_offset);
@@ -947,7 +945,6 @@ elf32_avr_object_p (abfd)
e_set);
}
-
#define ELF_ARCH bfd_arch_avr
#define ELF_MACHINE_CODE EM_AVR
#define ELF_MAXPAGESIZE 1
@@ -966,5 +963,4 @@ elf32_avr_object_p (abfd)
bfd_elf_avr_final_write_processing
#define elf_backend_object_p elf32_avr_object_p
-
#include "elf32-target.h"