2000-11-15 Kazu Hirata <kazu@hxi.com>
* coff-arm.c: Fix formatting. * coff-ppc.c: Likewise. * coff-rs6000.c: Likewise.
This commit is contained in:
parent
b095261a94
commit
c5930ee6b4
4 changed files with 349 additions and 352 deletions
|
@ -1,3 +1,9 @@
|
||||||
|
2000-11-15 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
|
* coff-arm.c: Fix formatting.
|
||||||
|
* coff-ppc.c: Likewise.
|
||||||
|
* coff-rs6000.c: Likewise.
|
||||||
|
|
||||||
2000-11-15 Richard Henderson <rth@redhat.com>
|
2000-11-15 Richard Henderson <rth@redhat.com>
|
||||||
|
|
||||||
* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
|
* elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
|
||||||
|
|
|
@ -985,7 +985,7 @@ insert_thumb_branch (br_insn, rel_off)
|
||||||
else if ((br_insn & HI_LOW_ORDER) == HI_LOW_ORDER)
|
else if ((br_insn & HI_LOW_ORDER) == HI_LOW_ORDER)
|
||||||
br_insn = HI_LOW_ORDER | (high_bits << 16) | low_bits;
|
br_insn = HI_LOW_ORDER | (high_bits << 16) | low_bits;
|
||||||
else
|
else
|
||||||
abort(); /* error - not a valid branch instruction form */
|
abort (); /* error - not a valid branch instruction form */
|
||||||
|
|
||||||
/* FIXME: abort is probably not the right call. krk@cygnus.com */
|
/* FIXME: abort is probably not the right call. krk@cygnus.com */
|
||||||
|
|
||||||
|
|
|
@ -88,7 +88,7 @@ extern void dump_toc PARAMS ((PTR));
|
||||||
fprintf(stderr,\
|
fprintf(stderr,\
|
||||||
_("File %s, line %d, Hash check failure, bad eye %8s\n"), \
|
_("File %s, line %d, Hash check failure, bad eye %8s\n"), \
|
||||||
__FILE__, __LINE__, addr->eye_catcher); \
|
__FILE__, __LINE__, addr->eye_catcher); \
|
||||||
abort(); \
|
abort (); \
|
||||||
}
|
}
|
||||||
|
|
||||||
#else
|
#else
|
||||||
|
@ -925,7 +925,7 @@ ppc_record_toc_entry(abfd, info, sec, sym, toc_kind)
|
||||||
/* allocate a table */
|
/* allocate a table */
|
||||||
local_syms =
|
local_syms =
|
||||||
(int *) bfd_zalloc (abfd,
|
(int *) bfd_zalloc (abfd,
|
||||||
obj_raw_syment_count(abfd) * sizeof(int));
|
obj_raw_syment_count(abfd) * sizeof (int));
|
||||||
if (local_syms == 0)
|
if (local_syms == 0)
|
||||||
return false;
|
return false;
|
||||||
obj_coff_local_toc_table(abfd) = local_syms;
|
obj_coff_local_toc_table(abfd) = local_syms;
|
||||||
|
@ -1151,7 +1151,7 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
|
||||||
if (r_type == IMAGE_REL_PPC_IMGLUE && h == 0)
|
if (r_type == IMAGE_REL_PPC_IMGLUE && h == 0)
|
||||||
{
|
{
|
||||||
/* An IMGLUE reloc must have a name. Something is very wrong. */
|
/* An IMGLUE reloc must have a name. Something is very wrong. */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
sec = NULL;
|
sec = NULL;
|
||||||
|
@ -1219,7 +1219,7 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
|
||||||
if ( toc_section == NULL )
|
if ( toc_section == NULL )
|
||||||
{
|
{
|
||||||
/* There is no toc section. Something is very wrong. */
|
/* There is no toc section. Something is very wrong. */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -1495,7 +1495,7 @@ coff_ppc_relocate_section (output_bfd, info, input_bfd, input_section,
|
||||||
if (myh == 0)
|
if (myh == 0)
|
||||||
{
|
{
|
||||||
/* Missing magic cookies. Something is very wrong. */
|
/* Missing magic cookies. Something is very wrong. */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
val = myh->root.u.def.value +
|
val = myh->root.u.def.value +
|
||||||
|
@ -1702,14 +1702,14 @@ ppc_allocate_toc_section (info)
|
||||||
if (bfd_of_toc_owner == 0)
|
if (bfd_of_toc_owner == 0)
|
||||||
{
|
{
|
||||||
/* No toc owner? Something is very wrong. */
|
/* No toc owner? Something is very wrong. */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
s = bfd_get_section_by_name ( bfd_of_toc_owner , TOC_SECTION_NAME);
|
s = bfd_get_section_by_name ( bfd_of_toc_owner , TOC_SECTION_NAME);
|
||||||
if (s == NULL)
|
if (s == NULL)
|
||||||
{
|
{
|
||||||
/* No toc section? Something is very wrong. */
|
/* No toc section? Something is very wrong. */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
foo = (bfd_byte *) bfd_alloc(bfd_of_toc_owner, global_toc_size);
|
foo = (bfd_byte *) bfd_alloc(bfd_of_toc_owner, global_toc_size);
|
||||||
|
@ -1752,7 +1752,7 @@ ppc_process_before_allocation (abfd, info)
|
||||||
i=_bfd_coff_read_internal_relocs(abfd,sec,1,0,0,0);
|
i=_bfd_coff_read_internal_relocs(abfd,sec,1,0,0,0);
|
||||||
|
|
||||||
if (i == 0)
|
if (i == 0)
|
||||||
abort();
|
abort ();
|
||||||
|
|
||||||
for (rel=i;rel<i+sec->reloc_count;++rel)
|
for (rel=i;rel<i+sec->reloc_count;++rel)
|
||||||
{
|
{
|
||||||
|
@ -2004,7 +2004,7 @@ ppc_imglue_reloc (abfd,
|
||||||
|
|
||||||
|
|
||||||
#define MAX_RELOC_INDEX \
|
#define MAX_RELOC_INDEX \
|
||||||
(sizeof(ppc_coff_howto_table) / sizeof(ppc_coff_howto_table[0]) - 1)
|
(sizeof (ppc_coff_howto_table) / sizeof (ppc_coff_howto_table[0]) - 1)
|
||||||
|
|
||||||
/* FIXME: There is a possiblity that when we read in a reloc from a file,
|
/* FIXME: There is a possiblity that when we read in a reloc from a file,
|
||||||
that there are some bits encoded in the upper portion of the
|
that there are some bits encoded in the upper portion of the
|
||||||
|
@ -2036,11 +2036,11 @@ ppc_coff_rtype2howto (relent, internal)
|
||||||
|
|
||||||
/* the masking process only slices off the bottom byte for r_type. */
|
/* the masking process only slices off the bottom byte for r_type. */
|
||||||
if ( r_type > MAX_RELOC_INDEX )
|
if ( r_type > MAX_RELOC_INDEX )
|
||||||
abort();
|
abort ();
|
||||||
|
|
||||||
/* check for absolute crap */
|
/* check for absolute crap */
|
||||||
if ( junk != 0 )
|
if ( junk != 0 )
|
||||||
abort();
|
abort ();
|
||||||
|
|
||||||
switch(r_type)
|
switch(r_type)
|
||||||
{
|
{
|
||||||
|
@ -2107,11 +2107,11 @@ coff_ppc_rtype_to_howto (abfd, sec, rel, h, sym, addendp)
|
||||||
|
|
||||||
/* the masking process only slices off the bottom byte for r_type. */
|
/* the masking process only slices off the bottom byte for r_type. */
|
||||||
if ( r_type > MAX_RELOC_INDEX )
|
if ( r_type > MAX_RELOC_INDEX )
|
||||||
abort();
|
abort ();
|
||||||
|
|
||||||
/* check for absolute crap */
|
/* check for absolute crap */
|
||||||
if ( junk != 0 )
|
if ( junk != 0 )
|
||||||
abort();
|
abort ();
|
||||||
|
|
||||||
switch(r_type)
|
switch(r_type)
|
||||||
{
|
{
|
||||||
|
@ -2278,7 +2278,7 @@ ppc_coff_swap_sym_in_hook (abfd, ext1, in1)
|
||||||
|| !bfd_set_section_alignment (abfd, s, 2))
|
|| !bfd_set_section_alignment (abfd, s, 2))
|
||||||
{
|
{
|
||||||
/* FIXME: set appropriate bfd error */
|
/* FIXME: set appropriate bfd error */
|
||||||
abort();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
/* save the bfd for later allocation */
|
/* save the bfd for later allocation */
|
||||||
|
|
|
@ -26,7 +26,6 @@ You should have received a copy of the GNU General Public License
|
||||||
along with this program; if not, write to the Free Software
|
along with this program; if not, write to the Free Software
|
||||||
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
|
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
|
@ -37,7 +36,6 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
||||||
#define TARGET_SYM rs6000coff_vec
|
#define TARGET_SYM rs6000coff_vec
|
||||||
#include "xcoff-target.h"
|
#include "xcoff-target.h"
|
||||||
|
|
||||||
|
|
||||||
/* The main body of code is in coffcode.h. */
|
/* The main body of code is in coffcode.h. */
|
||||||
|
|
||||||
static const char *normalize_filename PARAMS ((bfd *));
|
static const char *normalize_filename PARAMS ((bfd *));
|
||||||
|
@ -133,7 +131,6 @@ _bfd_xcoff_is_local_label_name (abfd, name)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
void
|
void
|
||||||
_bfd_xcoff_swap_sym_in (abfd, ext1, in1)
|
_bfd_xcoff_swap_sym_in (abfd, ext1, in1)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
|
@ -143,7 +140,6 @@ _bfd_xcoff_swap_sym_in (abfd, ext1, in1)
|
||||||
SYMENT *ext = (SYMENT *)ext1;
|
SYMENT *ext = (SYMENT *)ext1;
|
||||||
struct internal_syment *in = (struct internal_syment *)in1;
|
struct internal_syment *in = (struct internal_syment *)in1;
|
||||||
|
|
||||||
|
|
||||||
if(ext->e.e_name[0] != 0)
|
if(ext->e.e_name[0] != 0)
|
||||||
{
|
{
|
||||||
memcpy(in->_n._n_name, ext->e.e_name, SYMNMLEN);
|
memcpy(in->_n._n_name, ext->e.e_name, SYMNMLEN);
|
||||||
|
@ -309,8 +305,6 @@ end: ;
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
unsigned int
|
unsigned int
|
||||||
_bfd_xcoff_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
|
_bfd_xcoff_swap_aux_out (abfd, inp, type, class, indx, numaux, extp)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
|
@ -409,7 +403,6 @@ end:
|
||||||
return bfd_coff_auxesz (abfd);
|
return bfd_coff_auxesz (abfd);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/* The XCOFF reloc table. Actually, XCOFF relocations specify the
|
/* The XCOFF reloc table. Actually, XCOFF relocations specify the
|
||||||
bitsize and whether they are signed or not, along with a
|
bitsize and whether they are signed or not, along with a
|
||||||
|
@ -837,7 +830,7 @@ _bfd_xcoff_rtype2howto (relent, internal)
|
||||||
|
|
||||||
if (relent->howto->bitsize != ((unsigned int) internal->r_size & 0x1f) + 1
|
if (relent->howto->bitsize != ((unsigned int) internal->r_size & 0x1f) + 1
|
||||||
&& (internal->r_type
|
&& (internal->r_type
|
||||||
< sizeof(xcoff_howto_table_16)/sizeof(xcoff_howto_table_16[0])))
|
< sizeof (xcoff_howto_table_16)/sizeof (xcoff_howto_table_16[0])))
|
||||||
relent->howto = xcoff_howto_table_16 + internal->r_type;
|
relent->howto = xcoff_howto_table_16 + internal->r_type;
|
||||||
|
|
||||||
/* The r_size field of an XCOFF reloc encodes the bitsize of the
|
/* The r_size field of an XCOFF reloc encodes the bitsize of the
|
||||||
|
@ -992,7 +985,6 @@ struct xcoff_ar_file_hdr_big
|
||||||
|
|
||||||
#define SIZEOF_AR_FILE_HDR_BIG (6 * 20 + SXCOFFARMAG)
|
#define SIZEOF_AR_FILE_HDR_BIG (6 * 20 + SXCOFFARMAG)
|
||||||
|
|
||||||
|
|
||||||
/* Each XCOFF archive member starts with this (printable) structure. */
|
/* Each XCOFF archive member starts with this (printable) structure. */
|
||||||
|
|
||||||
struct xcoff_ar_hdr
|
struct xcoff_ar_hdr
|
||||||
|
@ -1069,7 +1061,6 @@ struct xcoff_ar_hdr_big
|
||||||
|
|
||||||
#define SIZEOF_AR_HDR_BIG (3 * 20 + 4 * 12 + 4)
|
#define SIZEOF_AR_HDR_BIG (3 * 20 + 4 * 12 + 4)
|
||||||
|
|
||||||
|
|
||||||
/* We often have to distinguish between the old and big file format.
|
/* We often have to distinguish between the old and big file format.
|
||||||
Make it a bit cleaner. We can use `xcoff_ardata' here because the
|
Make it a bit cleaner. We can use `xcoff_ardata' here because the
|
||||||
`hdr' member has the same size and position in both formats. */
|
`hdr' member has the same size and position in both formats. */
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue