2000-12-19 Kazu Hirata <kazu@hxi.com>
* sco5-core.c: Fix formatting. * section.c: Likewise. * sparclinux.c: Likewise. * sparclynx.c: Likewise. * sparcnetbsd.c: Likewise. * srec.c: Likewise. * stabs.c: Likewise. * stab-syms.c: Likewise. * sunos.c: Likewise. * syms.c: Likewise. * sysdep.h: Likewise.
This commit is contained in:
parent
e30839fee3
commit
7b82c249fa
@ -1,3 +1,17 @@
|
|||||||
|
2000-12-19 Kazu Hirata <kazu@hxi.com>
|
||||||
|
|
||||||
|
* sco5-core.c: Fix formatting.
|
||||||
|
* section.c: Likewise.
|
||||||
|
* sparclinux.c: Likewise.
|
||||||
|
* sparclynx.c: Likewise.
|
||||||
|
* sparcnetbsd.c: Likewise.
|
||||||
|
* srec.c: Likewise.
|
||||||
|
* stabs.c: Likewise.
|
||||||
|
* stab-syms.c: Likewise.
|
||||||
|
* sunos.c: Likewise.
|
||||||
|
* syms.c: Likewise.
|
||||||
|
* sysdep.h: Likewise.
|
||||||
|
|
||||||
2000-12-18 Nick Clifton <nickc@redhat.com>
|
2000-12-18 Nick Clifton <nickc@redhat.com>
|
||||||
|
|
||||||
* coff-arm.c (EXTRA_S_FLAGS): Only define if not already
|
* coff-arm.c (EXTRA_S_FLAGS): Only define if not already
|
||||||
|
@ -169,7 +169,6 @@ sco5_core_file_p (abfd)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
if (coffsets.u_info == 1)
|
if (coffsets.u_info == 1)
|
||||||
{
|
{
|
||||||
/* Old version, no section heads, read info from user struct */
|
/* Old version, no section heads, read info from user struct */
|
||||||
@ -271,7 +270,6 @@ sco5_core_file_p (abfd)
|
|||||||
|
|
||||||
chead.cs_vaddr = 0 - (bfd_vma) u->u_ar0;
|
chead.cs_vaddr = 0 - (bfd_vma) u->u_ar0;
|
||||||
|
|
||||||
|
|
||||||
secname = ".reg";
|
secname = ".reg";
|
||||||
flags = SEC_HAS_CONTENTS;
|
flags = SEC_HAS_CONTENTS;
|
||||||
|
|
||||||
@ -371,9 +369,9 @@ sco5_core_file_matches_executable_p (core_bfd, exec_bfd)
|
|||||||
|
|
||||||
/* If somebody calls any byte-swapping routines, shoot them. */
|
/* If somebody calls any byte-swapping routines, shoot them. */
|
||||||
static void
|
static void
|
||||||
swap_abort()
|
swap_abort ()
|
||||||
{
|
{
|
||||||
abort(); /* This way doesn't require any declaration for ANSI to fuck up */
|
abort (); /* This way doesn't require any declaration for ANSI to fuck up */
|
||||||
}
|
}
|
||||||
#define NO_GET ((bfd_vma (*) PARAMS (( const bfd_byte *))) swap_abort )
|
#define NO_GET ((bfd_vma (*) PARAMS (( const bfd_byte *))) swap_abort )
|
||||||
#define NO_PUT ((void (*) PARAMS ((bfd_vma, bfd_byte *))) swap_abort )
|
#define NO_PUT ((void (*) PARAMS ((bfd_vma, bfd_byte *))) swap_abort )
|
||||||
|
@ -111,7 +111,6 @@ SUBSECTION
|
|||||||
| size 0x103 |
|
| size 0x103 |
|
||||||
| output_section --------|
|
| output_section --------|
|
||||||
|
|
||||||
|
|
||||||
SUBSECTION
|
SUBSECTION
|
||||||
Link orders
|
Link orders
|
||||||
|
|
||||||
@ -133,7 +132,6 @@ SUBSECTION
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
#include "bfd.h"
|
#include "bfd.h"
|
||||||
#include "sysdep.h"
|
#include "sysdep.h"
|
||||||
#include "libbfd.h"
|
#include "libbfd.h"
|
||||||
@ -642,7 +640,6 @@ bfd_get_section_by_name (abfd, name)
|
|||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_get_unique_section_name
|
bfd_get_unique_section_name
|
||||||
@ -693,7 +690,6 @@ bfd_get_unique_section_name (abfd, templat, count)
|
|||||||
return sname;
|
return sname;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_make_section_old_way
|
bfd_make_section_old_way
|
||||||
@ -719,7 +715,6 @@ DESCRIPTION
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
asection *
|
asection *
|
||||||
bfd_make_section_old_way (abfd, name)
|
bfd_make_section_old_way (abfd, name)
|
||||||
bfd *abfd;
|
bfd *abfd;
|
||||||
@ -867,7 +862,6 @@ bfd_make_section (abfd, name)
|
|||||||
return bfd_make_section_anyway (abfd, name);
|
return bfd_make_section_anyway (abfd, name);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_set_section_flags
|
bfd_set_section_flags
|
||||||
@ -911,14 +905,13 @@ bfd_set_section_flags (abfd, section, flags)
|
|||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_map_over_sections
|
bfd_map_over_sections
|
||||||
|
|
||||||
SYNOPSIS
|
SYNOPSIS
|
||||||
void bfd_map_over_sections(bfd *abfd,
|
void bfd_map_over_sections(bfd *abfd,
|
||||||
void (*func)(bfd *abfd,
|
void (*func) (bfd *abfd,
|
||||||
asection *sect,
|
asection *sect,
|
||||||
PTR obj),
|
PTR obj),
|
||||||
PTR obj);
|
PTR obj);
|
||||||
@ -937,7 +930,6 @@ DESCRIPTION
|
|||||||
| for (p = abfd->sections; p != NULL; p = p->next)
|
| for (p = abfd->sections; p != NULL; p = p->next)
|
||||||
| func(abfd, p, ...)
|
| func(abfd, p, ...)
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
/*VARARGS2*/
|
/*VARARGS2*/
|
||||||
@ -957,7 +949,6 @@ bfd_map_over_sections (abfd, operation, user_storage)
|
|||||||
abort ();
|
abort ();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_set_section_size
|
bfd_set_section_size
|
||||||
@ -1008,15 +999,12 @@ SYNOPSIS
|
|||||||
file_ptr offset,
|
file_ptr offset,
|
||||||
bfd_size_type count);
|
bfd_size_type count);
|
||||||
|
|
||||||
|
|
||||||
DESCRIPTION
|
DESCRIPTION
|
||||||
Sets the contents of the section @var{section} in BFD
|
Sets the contents of the section @var{section} in BFD
|
||||||
@var{abfd} to the data starting in memory at @var{data}. The
|
@var{abfd} to the data starting in memory at @var{data}. The
|
||||||
data is written to the output section starting at offset
|
data is written to the output section starting at offset
|
||||||
@var{offset} for @var{count} octets.
|
@var{offset} for @var{count} octets.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
Normally <<true>> is returned, else <<false>>. Possible error
|
Normally <<true>> is returned, else <<false>>. Possible error
|
||||||
returns are:
|
returns are:
|
||||||
o <<bfd_error_no_contents>> -
|
o <<bfd_error_no_contents>> -
|
||||||
@ -1027,7 +1015,6 @@ DESCRIPTION
|
|||||||
This routine is front end to the back end function
|
This routine is front end to the back end function
|
||||||
<<_bfd_set_section_contents>>.
|
<<_bfd_set_section_contents>>.
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
#define bfd_get_section_size_now(abfd,sec) \
|
#define bfd_get_section_size_now(abfd,sec) \
|
||||||
@ -1117,8 +1104,6 @@ DESCRIPTION
|
|||||||
with zeroes. If no errors occur, <<true>> is returned, else
|
with zeroes. If no errors occur, <<true>> is returned, else
|
||||||
<<false>>.
|
<<false>>.
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
*/
|
*/
|
||||||
boolean
|
boolean
|
||||||
bfd_get_section_contents (abfd, section, location, offset, count)
|
bfd_get_section_contents (abfd, section, location, offset, count)
|
||||||
|
@ -137,7 +137,7 @@ NAME(lynx,set_arch_mach) (abfd, machtype)
|
|||||||
}
|
}
|
||||||
|
|
||||||
#define SET_ARCH_MACH(ABFD, EXEC) \
|
#define SET_ARCH_MACH(ABFD, EXEC) \
|
||||||
NAME(lynx,set_arch_mach)(ABFD, N_MACHTYPE (EXEC)); \
|
NAME(lynx,set_arch_mach) (ABFD, N_MACHTYPE (EXEC)); \
|
||||||
choose_reloc_size(ABFD);
|
choose_reloc_size(ABFD);
|
||||||
|
|
||||||
/* Determine the size of a relocation entry, based on the architecture */
|
/* Determine the size of a relocation entry, based on the architecture */
|
||||||
|
@ -71,7 +71,6 @@ DESCRIPTION
|
|||||||
is the sum of all the raw byte data in the record, from the length
|
is the sum of all the raw byte data in the record, from the length
|
||||||
upwards, modulo 256 and subtracted from 255.
|
upwards, modulo 256 and subtracted from 255.
|
||||||
|
|
||||||
|
|
||||||
SUBSECTION
|
SUBSECTION
|
||||||
Symbol S-Record handling
|
Symbol S-Record handling
|
||||||
|
|
||||||
|
50
bfd/sunos.c
50
bfd/sunos.c
@ -2274,16 +2274,16 @@ sunos_write_dynamic_symbol (output_bfd, info, harg)
|
|||||||
PUT_WORD (output_bfd, r_address, srel->r_address);
|
PUT_WORD (output_bfd, r_address, srel->r_address);
|
||||||
if (bfd_header_big_endian (output_bfd))
|
if (bfd_header_big_endian (output_bfd))
|
||||||
{
|
{
|
||||||
srel->r_index[0] = (bfd_byte)(h->dynindx >> 16);
|
srel->r_index[0] = (bfd_byte) (h->dynindx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(h->dynindx >> 8);
|
srel->r_index[1] = (bfd_byte) (h->dynindx >> 8);
|
||||||
srel->r_index[2] = (bfd_byte)(h->dynindx);
|
srel->r_index[2] = (bfd_byte) (h->dynindx);
|
||||||
srel->r_type[0] = (RELOC_STD_BITS_EXTERN_BIG
|
srel->r_type[0] = (RELOC_STD_BITS_EXTERN_BIG
|
||||||
| RELOC_STD_BITS_JMPTABLE_BIG);
|
| RELOC_STD_BITS_JMPTABLE_BIG);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
srel->r_index[2] = (bfd_byte)(h->dynindx >> 16);
|
srel->r_index[2] = (bfd_byte) (h->dynindx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(h->dynindx >> 8);
|
srel->r_index[1] = (bfd_byte) (h->dynindx >> 8);
|
||||||
srel->r_index[0] = (bfd_byte)h->dynindx;
|
srel->r_index[0] = (bfd_byte)h->dynindx;
|
||||||
srel->r_type[0] = (RELOC_STD_BITS_EXTERN_LITTLE
|
srel->r_type[0] = (RELOC_STD_BITS_EXTERN_LITTLE
|
||||||
| RELOC_STD_BITS_JMPTABLE_LITTLE);
|
| RELOC_STD_BITS_JMPTABLE_LITTLE);
|
||||||
@ -2297,8 +2297,8 @@ sunos_write_dynamic_symbol (output_bfd, info, harg)
|
|||||||
PUT_WORD (output_bfd, r_address, erel->r_address);
|
PUT_WORD (output_bfd, r_address, erel->r_address);
|
||||||
if (bfd_header_big_endian (output_bfd))
|
if (bfd_header_big_endian (output_bfd))
|
||||||
{
|
{
|
||||||
erel->r_index[0] = (bfd_byte)(h->dynindx >> 16);
|
erel->r_index[0] = (bfd_byte) (h->dynindx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(h->dynindx >> 8);
|
erel->r_index[1] = (bfd_byte) (h->dynindx >> 8);
|
||||||
erel->r_index[2] = (bfd_byte)h->dynindx;
|
erel->r_index[2] = (bfd_byte)h->dynindx;
|
||||||
erel->r_type[0] =
|
erel->r_type[0] =
|
||||||
(RELOC_EXT_BITS_EXTERN_BIG
|
(RELOC_EXT_BITS_EXTERN_BIG
|
||||||
@ -2306,8 +2306,8 @@ sunos_write_dynamic_symbol (output_bfd, info, harg)
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
erel->r_index[2] = (bfd_byte)(h->dynindx >> 16);
|
erel->r_index[2] = (bfd_byte) (h->dynindx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(h->dynindx >> 8);
|
erel->r_index[1] = (bfd_byte) (h->dynindx >> 8);
|
||||||
erel->r_index[0] = (bfd_byte)h->dynindx;
|
erel->r_index[0] = (bfd_byte)h->dynindx;
|
||||||
erel->r_type[0] =
|
erel->r_type[0] =
|
||||||
(RELOC_EXT_BITS_EXTERN_LITTLE
|
(RELOC_EXT_BITS_EXTERN_LITTLE
|
||||||
@ -2594,8 +2594,8 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
srel->r_address);
|
srel->r_address);
|
||||||
if (bfd_header_big_endian (dynobj))
|
if (bfd_header_big_endian (dynobj))
|
||||||
{
|
{
|
||||||
srel->r_index[0] = (bfd_byte)(indx >> 16);
|
srel->r_index[0] = (bfd_byte) (indx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(indx >> 8);
|
srel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
srel->r_index[2] = (bfd_byte)indx;
|
srel->r_index[2] = (bfd_byte)indx;
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
srel->r_type[0] = 2 << RELOC_STD_BITS_LENGTH_SH_BIG;
|
srel->r_type[0] = 2 << RELOC_STD_BITS_LENGTH_SH_BIG;
|
||||||
@ -2608,8 +2608,8 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
srel->r_index[2] = (bfd_byte)(indx >> 16);
|
srel->r_index[2] = (bfd_byte) (indx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(indx >> 8);
|
srel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
srel->r_index[0] = (bfd_byte)indx;
|
srel->r_index[0] = (bfd_byte)indx;
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
srel->r_type[0] = 2 << RELOC_STD_BITS_LENGTH_SH_LITTLE;
|
srel->r_type[0] = 2 << RELOC_STD_BITS_LENGTH_SH_LITTLE;
|
||||||
@ -2633,8 +2633,8 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
erel->r_address);
|
erel->r_address);
|
||||||
if (bfd_header_big_endian (dynobj))
|
if (bfd_header_big_endian (dynobj))
|
||||||
{
|
{
|
||||||
erel->r_index[0] = (bfd_byte)(indx >> 16);
|
erel->r_index[0] = (bfd_byte) (indx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(indx >> 8);
|
erel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
erel->r_index[2] = (bfd_byte)indx;
|
erel->r_index[2] = (bfd_byte)indx;
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
erel->r_type[0] =
|
erel->r_type[0] =
|
||||||
@ -2646,8 +2646,8 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
erel->r_index[2] = (bfd_byte)(indx >> 16);
|
erel->r_index[2] = (bfd_byte) (indx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(indx >> 8);
|
erel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
erel->r_index[0] = (bfd_byte)indx;
|
erel->r_index[0] = (bfd_byte)indx;
|
||||||
if (h == NULL)
|
if (h == NULL)
|
||||||
erel->r_type[0] =
|
erel->r_type[0] =
|
||||||
@ -2726,14 +2726,14 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
srel->r_address);
|
srel->r_address);
|
||||||
if (bfd_header_big_endian (dynobj))
|
if (bfd_header_big_endian (dynobj))
|
||||||
{
|
{
|
||||||
srel->r_index[0] = (bfd_byte)(indx >> 16);
|
srel->r_index[0] = (bfd_byte) (indx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(indx >> 8);
|
srel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
srel->r_index[2] = (bfd_byte)indx;
|
srel->r_index[2] = (bfd_byte)indx;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
srel->r_index[2] = (bfd_byte)(indx >> 16);
|
srel->r_index[2] = (bfd_byte) (indx >> 16);
|
||||||
srel->r_index[1] = (bfd_byte)(indx >> 8);
|
srel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
srel->r_index[0] = (bfd_byte)indx;
|
srel->r_index[0] = (bfd_byte)indx;
|
||||||
}
|
}
|
||||||
/* FIXME: We may have to change the addend for a PC relative
|
/* FIXME: We may have to change the addend for a PC relative
|
||||||
@ -2751,14 +2751,14 @@ sunos_check_dynamic_reloc (info, input_bfd, input_section, harg, reloc,
|
|||||||
erel->r_address);
|
erel->r_address);
|
||||||
if (bfd_header_big_endian (dynobj))
|
if (bfd_header_big_endian (dynobj))
|
||||||
{
|
{
|
||||||
erel->r_index[0] = (bfd_byte)(indx >> 16);
|
erel->r_index[0] = (bfd_byte) (indx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(indx >> 8);
|
erel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
erel->r_index[2] = (bfd_byte)indx;
|
erel->r_index[2] = (bfd_byte)indx;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
erel->r_index[2] = (bfd_byte)(indx >> 16);
|
erel->r_index[2] = (bfd_byte) (indx >> 16);
|
||||||
erel->r_index[1] = (bfd_byte)(indx >> 8);
|
erel->r_index[1] = (bfd_byte) (indx >> 8);
|
||||||
erel->r_index[0] = (bfd_byte)indx;
|
erel->r_index[0] = (bfd_byte)indx;
|
||||||
}
|
}
|
||||||
if (pcrel && h != NULL)
|
if (pcrel && h != NULL)
|
||||||
|
@ -91,7 +91,6 @@ SUBSECTION
|
|||||||
All storage for the symbols themselves is in an objalloc
|
All storage for the symbols themselves is in an objalloc
|
||||||
connected to the BFD; it is freed when the BFD is closed.
|
connected to the BFD; it is freed when the BFD is closed.
|
||||||
|
|
||||||
|
|
||||||
INODE
|
INODE
|
||||||
Writing Symbols, Mini Symbols, Reading Symbols, Symbols
|
Writing Symbols, Mini Symbols, Reading Symbols, Symbols
|
||||||
SUBSECTION
|
SUBSECTION
|
||||||
@ -163,8 +162,6 @@ SUBSECTION
|
|||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
DOCDD
|
DOCDD
|
||||||
INODE
|
INODE
|
||||||
@ -390,14 +387,12 @@ DESCRIPTION
|
|||||||
Return the actual number of symbol pointers, not
|
Return the actual number of symbol pointers, not
|
||||||
including the NULL.
|
including the NULL.
|
||||||
|
|
||||||
|
|
||||||
.#define bfd_canonicalize_symtab(abfd, location) \
|
.#define bfd_canonicalize_symtab(abfd, location) \
|
||||||
. BFD_SEND (abfd, _bfd_canonicalize_symtab,\
|
. BFD_SEND (abfd, _bfd_canonicalize_symtab,\
|
||||||
. (abfd, location))
|
. (abfd, location))
|
||||||
|
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_set_symtab
|
bfd_set_symtab
|
||||||
@ -474,7 +469,6 @@ bfd_print_symbol_vandf (arg, symbol)
|
|||||||
: ((type & BSF_OBJECT) ? 'O' : ' '))));
|
: ((type & BSF_OBJECT) ? 'O' : ' '))));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
/*
|
/*
|
||||||
FUNCTION
|
FUNCTION
|
||||||
bfd_make_empty_symbol
|
bfd_make_empty_symbol
|
||||||
|
Loading…
Reference in New Issue
Block a user