projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
gas: detect DCTI couples in sparc
[deliverable/binutils-gdb.git]
/
bfd
/
aout-arm.c
diff --git
a/bfd/aout-arm.c
b/bfd/aout-arm.c
index fd936030c3dc3d0b703bb6e1f1c5a020eadd32e2..0ec5fcc51c31764a9c95ad6ee6da71b4d86491ee 100644
(file)
--- a/
bfd/aout-arm.c
+++ b/
bfd/aout-arm.c
@@
-1,6
+1,5
@@
/* BFD back-end for raw ARM a.out binaries.
/* BFD back-end for raw ARM a.out binaries.
- Copyright 1994, 1995, 1997, 1998, 1999, 2000, 2001, 2002, 2003, 2005,
- 2007, 2009, 2010, 2011 Free Software Foundation, Inc.
+ Copyright (C) 1994-2016 Free Software Foundation, Inc.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
This file is part of BFD, the Binary File Descriptor library.
Contributed by Richard Earnshaw (rwe@pegasus.esprit.ec.org)
This file is part of BFD, the Binary File Descriptor library.
@@
-35,7
+34,7
@@
: ((N_MAGIC (x) != ZMAGIC) \
? (bfd_vma) 0 \
: ((N_SHARED_LIB (x)) \
: ((N_MAGIC (x) != ZMAGIC) \
? (bfd_vma) 0 \
: ((N_SHARED_LIB (x)) \
- ? ((x)
.a_entry & ~(bfd_vma) (TARGET_PAGE_SIZE - 1))
\
+ ? ((x)
->a_entry & ~(bfd_vma) (TARGET_PAGE_SIZE - 1))
\
: (bfd_vma) TEXT_START_ADDR)))
#define TEXT_START_ADDR 0x8000
: (bfd_vma) TEXT_START_ADDR)))
#define TEXT_START_ADDR 0x8000
@@
-43,14
+42,14
@@
#define SEGMENT_SIZE TARGET_PAGE_SIZE
#define DEFAULT_ARCH bfd_arch_arm
#define SEGMENT_SIZE TARGET_PAGE_SIZE
#define DEFAULT_ARCH bfd_arch_arm
-#define MY(OP) CONCAT2 (a
outarm
_,OP)
-#define N_BADMAG(x) ((((x)
.
a_info & ~007200) != ZMAGIC) && \
- (((x)
.
a_info & ~006000) != OMAGIC) && \
- ((x)
.
a_info != NMAGIC))
-#define N_MAGIC(x) ((x)
.
a_info & ~07200)
+#define MY(OP) CONCAT2 (a
rm_aout
_,OP)
+#define N_BADMAG(x) ((((x)
->
a_info & ~007200) != ZMAGIC) && \
+ (((x)
->
a_info & ~006000) != OMAGIC) && \
+ ((x)
->
a_info != NMAGIC))
+#define N_MAGIC(x) ((x)
->
a_info & ~07200)
-#define MY_bfd_reloc_type_lookup a
outarm
_bfd_reloc_type_lookup
-#define MY_bfd_reloc_name_lookup a
outarm
_bfd_reloc_name_lookup
+#define MY_bfd_reloc_type_lookup a
rm_aout
_bfd_reloc_type_lookup
+#define MY_bfd_reloc_name_lookup a
rm_aout
_bfd_reloc_name_lookup
#include "libaout.h"
#include "aout/aout64.h"
#include "libaout.h"
#include "aout/aout64.h"
@@
-247,7
+246,7
@@
MY (fix_pcrel_26) (bfd *abfd,
bfd_reloc_status_type flag = bfd_reloc_ok;
/* If this is an undefined symbol, return error. */
bfd_reloc_status_type flag = bfd_reloc_ok;
/* If this is an undefined symbol, return error. */
- if (
symbol->section == &bfd_und_section
+ if (
bfd_is_und_section (symbol->section)
&& (symbol->flags & BSF_WEAK) == 0)
return output_bfd ? bfd_reloc_ok : bfd_reloc_undefined;
&& (symbol->flags & BSF_WEAK) == 0)
return output_bfd ? bfd_reloc_ok : bfd_reloc_undefined;
@@
-409,10
+408,10
@@
MY_swap_std_reloc_out (bfd *abfd,
check for that here. */
if (bfd_is_com_section (output_section)
check for that here. */
if (bfd_is_com_section (output_section)
- ||
output_section == &bfd_abs_section
- ||
output_section == &bfd_und_section
)
+ ||
bfd_is_abs_section (output_section)
+ ||
bfd_is_und_section (output_section)
)
{
{
- if (bfd_abs_section
.
symbol == sym)
+ if (bfd_abs_section
_ptr->
symbol == sym)
{
/* Whoops, looked like an abs symbol, but is really an offset
from the abs section. */
{
/* Whoops, looked like an abs symbol, but is really an offset
from the abs section. */
@@
-462,9
+461,9
@@
MY_swap_std_reloc_out (bfd *abfd,
#include "aout-target.h"
#include "aout-target.h"
-extern const bfd_target a
out_arm_big
_vec;
+extern const bfd_target a
rm_aout_be
_vec;
-const bfd_target a
out_arm_litt
le_vec =
+const bfd_target a
rm_aout_
le_vec =
{
"a.out-arm-little", /* Name. */
bfd_target_aout_flavour,
{
"a.out-arm-little", /* Name. */
bfd_target_aout_flavour,
@@
-501,12
+500,12
@@
const bfd_target aout_arm_little_vec =
BFD_JUMP_TABLE_LINK (MY),
BFD_JUMP_TABLE_DYNAMIC (MY),
BFD_JUMP_TABLE_LINK (MY),
BFD_JUMP_TABLE_DYNAMIC (MY),
- & a
out_arm_big
_vec,
+ & a
rm_aout_be
_vec,
(void *) MY_backend_data,
};
(void *) MY_backend_data,
};
-const bfd_target a
out_arm_big
_vec =
+const bfd_target a
rm_aout_be
_vec =
{
"a.out-arm-big", /* Name. */
bfd_target_aout_flavour,
{
"a.out-arm-big", /* Name. */
bfd_target_aout_flavour,
@@
-543,7
+542,7
@@
const bfd_target aout_arm_big_vec =
BFD_JUMP_TABLE_LINK (MY),
BFD_JUMP_TABLE_DYNAMIC (MY),
BFD_JUMP_TABLE_LINK (MY),
BFD_JUMP_TABLE_DYNAMIC (MY),
- & a
out_arm_litt
le_vec,
+ & a
rm_aout_
le_vec,
(void *) MY_backend_data,
};
(void *) MY_backend_data,
};
This page took
0.026047 seconds
and
4
git commands to generate.