2000-11-28 Kazu Hirata <kazu@hxi.com>
* aoutx.h: Fix formatting. * bfd-in.h: Likewise. * bfd-in2.h: Likewise. * cache.c: Likewise. * cisco-core.c: Likewise. * coff64-rs6000.c: Likewise. * coffcode.h: Likewise. * coffswap.h: Likewise. * corefile.c: Likewise.
This commit is contained in:
parent
814f664127
commit
e60b52c622
10 changed files with 109 additions and 110 deletions
|
@ -1,3 +1,15 @@
|
|||
2000-11-28 Kazu Hirata <kazu@hxi.com>
|
||||
|
||||
* aoutx.h: Fix formatting.
|
||||
* bfd-in.h: Likewise.
|
||||
* bfd-in2.h: Likewise.
|
||||
* cache.c: Likewise.
|
||||
* cisco-core.c: Likewise.
|
||||
* coff64-rs6000.c: Likewise.
|
||||
* coffcode.h: Likewise.
|
||||
* coffswap.h: Likewise.
|
||||
* corefile.c: Likewise.
|
||||
|
||||
2000-11-27 Kazu Hirata <kazu@hxi.com>
|
||||
|
||||
* aout-adobe.c: Fix formatting.
|
||||
|
|
10
bfd/aoutx.h
10
bfd/aoutx.h
|
@ -2569,7 +2569,7 @@ NAME(aout,get_symbol_info) (ignore_abfd, symbol, ret)
|
|||
|
||||
if (stab_name == NULL)
|
||||
{
|
||||
sprintf(buf, "(%d)", type_code);
|
||||
sprintf (buf, "(%d)", type_code);
|
||||
stab_name = buf;
|
||||
}
|
||||
ret->type = '-';
|
||||
|
@ -2592,10 +2592,10 @@ NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how)
|
|||
switch (how) {
|
||||
case bfd_print_symbol_name:
|
||||
if (symbol->name)
|
||||
fprintf(file,"%s", symbol->name);
|
||||
fprintf (file,"%s", symbol->name);
|
||||
break;
|
||||
case bfd_print_symbol_more:
|
||||
fprintf(file,"%4x %2x %2x",(unsigned) (aout_symbol(symbol)->desc & 0xffff),
|
||||
fprintf (file,"%4x %2x %2x",(unsigned) (aout_symbol(symbol)->desc & 0xffff),
|
||||
(unsigned) (aout_symbol(symbol)->other & 0xff),
|
||||
(unsigned) (aout_symbol(symbol)->type));
|
||||
break;
|
||||
|
@ -2605,13 +2605,13 @@ NAME(aout,print_symbol) (ignore_abfd, afile, symbol, how)
|
|||
|
||||
bfd_print_symbol_vandf((PTR)file,symbol);
|
||||
|
||||
fprintf(file," %-5s %04x %02x %02x",
|
||||
fprintf (file," %-5s %04x %02x %02x",
|
||||
section_name,
|
||||
(unsigned) (aout_symbol(symbol)->desc & 0xffff),
|
||||
(unsigned) (aout_symbol(symbol)->other & 0xff),
|
||||
(unsigned) (aout_symbol(symbol)->type & 0xff));
|
||||
if (symbol->name)
|
||||
fprintf(file," %s", symbol->name);
|
||||
fprintf (file," %s", symbol->name);
|
||||
}
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -177,8 +177,8 @@ typedef unsigned long symvalue;
|
|||
typedef unsigned long bfd_size_type;
|
||||
|
||||
/* Print a bfd_vma x on stream s. */
|
||||
#define fprintf_vma(s,x) fprintf(s, "%08lx", x)
|
||||
#define sprintf_vma(s,x) sprintf(s, "%08lx", x)
|
||||
#define fprintf_vma(s,x) fprintf (s, "%08lx", x)
|
||||
#define sprintf_vma(s,x) sprintf (s, "%08lx", x)
|
||||
|
||||
#endif /* not BFD64 */
|
||||
|
||||
|
|
|
@ -177,8 +177,8 @@ typedef unsigned long symvalue;
|
|||
typedef unsigned long bfd_size_type;
|
||||
|
||||
/* Print a bfd_vma x on stream s. */
|
||||
#define fprintf_vma(s,x) fprintf(s, "%08lx", x)
|
||||
#define sprintf_vma(s,x) sprintf(s, "%08lx", x)
|
||||
#define fprintf_vma(s,x) fprintf (s, "%08lx", x)
|
||||
#define sprintf_vma(s,x) sprintf (s, "%08lx", x)
|
||||
|
||||
#endif /* not BFD64 */
|
||||
|
||||
|
|
|
@ -88,10 +88,9 @@ bfd *bfd_last_cache;
|
|||
|
||||
.#define bfd_cache_lookup(x) \
|
||||
. ((x)==bfd_last_cache? \
|
||||
. (FILE*)(bfd_last_cache->iostream): \
|
||||
. (FILE*) (bfd_last_cache->iostream): \
|
||||
. bfd_cache_lookup_worker(x))
|
||||
|
||||
|
||||
*/
|
||||
|
||||
/* Insert a BFD into the cache. */
|
||||
|
|
|
@ -72,7 +72,7 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
|
|||
#define COFF_ADJUST_SCNHDR_OUT_POST(ABFD,INT,EXT) \
|
||||
do { \
|
||||
memset (((SCNHDR *)EXT)->s_pad, 0, sizeof (((SCNHDR *)EXT)->s_pad));\
|
||||
} while(0)
|
||||
} while (0)
|
||||
|
||||
#define NO_COFF_LINENOS
|
||||
|
||||
|
|
|
@ -175,7 +175,6 @@ SUBSUBSECTION
|
|||
the file in the string table. This pass moves all strings
|
||||
into memory and replaces them with pointers to the strings.
|
||||
|
||||
|
||||
The symbol table is massaged once again, this time to create
|
||||
the canonical table used by the BFD application. Each symbol
|
||||
is inspected in turn, and a decision made (using the
|
||||
|
@ -301,7 +300,6 @@ CODE_FRAGMENT
|
|||
.boolean done_lineno;
|
||||
.} coff_symbol_type;
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#ifdef COFF_WITH_PE
|
||||
|
@ -2767,7 +2765,6 @@ coff_set_flags (abfd, magicp, flagsp)
|
|||
return false;
|
||||
}
|
||||
|
||||
|
||||
static boolean
|
||||
coff_set_arch_mach (abfd, arch, machine)
|
||||
bfd * abfd;
|
||||
|
@ -3960,7 +3957,7 @@ coff_write_object_contents (abfd)
|
|||
if (abfd->flags & EXEC_P)
|
||||
{
|
||||
/* Note that peicode.h fills in a PEAOUTHDR, not an AOUTHDR.
|
||||
include/coff/pe.h sets AOUTSZ == sizeof(PEAOUTHDR)) */
|
||||
include/coff/pe.h sets AOUTSZ == sizeof (PEAOUTHDR)) */
|
||||
char * buff;
|
||||
bfd_size_type amount;
|
||||
|
||||
|
@ -4713,7 +4710,6 @@ SUBSUBSECTION
|
|||
into a howto table vector; the 88k subtracts a number from the
|
||||
@code{r_type} field and creates an addend field.
|
||||
|
||||
|
||||
*/
|
||||
|
||||
#ifndef CALC_ADDEND
|
||||
|
@ -4768,7 +4764,6 @@ coff_slurp_reloc_table (abfd, asect, symbols)
|
|||
if (reloc_cache == NULL)
|
||||
return false;
|
||||
|
||||
|
||||
for (idx = 0; idx < asect->reloc_count; idx++)
|
||||
{
|
||||
struct internal_reloc dst;
|
||||
|
@ -4889,7 +4884,6 @@ coff_canonicalize_reloc (abfd, section, relptr, symbols)
|
|||
arelent *tblptr = section->relocation;
|
||||
unsigned int count = 0;
|
||||
|
||||
|
||||
if (section->flags & SEC_CONSTRUCTOR)
|
||||
{
|
||||
/* this section has relocs made up by us, they are not in the
|
||||
|
@ -4913,7 +4907,6 @@ coff_canonicalize_reloc (abfd, section, relptr, symbols)
|
|||
for (; count++ < section->reloc_count;)
|
||||
*relptr++ = tblptr++;
|
||||
|
||||
|
||||
}
|
||||
*relptr = 0;
|
||||
return section->reloc_count;
|
||||
|
|
|
@ -336,7 +336,6 @@ coff_swap_filehdr_out (abfd, in, out)
|
|||
return bfd_coff_filhsz (abfd);
|
||||
}
|
||||
|
||||
|
||||
#ifndef NO_COFF_SYMBOLS
|
||||
|
||||
static void
|
||||
|
@ -361,7 +360,7 @@ coff_swap_sym_in (abfd, ext1, in1)
|
|||
}
|
||||
in->n_value = bfd_h_get_32(abfd, (bfd_byte *) ext->e_value);
|
||||
in->n_scnum = bfd_h_get_16(abfd, (bfd_byte *) ext->e_scnum);
|
||||
if (sizeof(ext->e_type) == 2){
|
||||
if (sizeof (ext->e_type) == 2){
|
||||
in->n_type = bfd_h_get_16(abfd, (bfd_byte *) ext->e_type);
|
||||
}
|
||||
else {
|
||||
|
@ -395,7 +394,7 @@ coff_swap_sym_out (abfd, inp, extp)
|
|||
}
|
||||
bfd_h_put_32(abfd, in->n_value , (bfd_byte *) ext->e_value);
|
||||
bfd_h_put_16(abfd, in->n_scnum , (bfd_byte *) ext->e_scnum);
|
||||
if (sizeof(ext->e_type) == 2)
|
||||
if (sizeof (ext->e_type) == 2)
|
||||
{
|
||||
bfd_h_put_16(abfd, in->n_type , (bfd_byte *) ext->e_type);
|
||||
}
|
||||
|
@ -672,7 +671,6 @@ coff_swap_aouthdr_in (abfd, aouthdr_ext1, aouthdr_int1)
|
|||
bfd_h_put_32(abfd, aouthdr_int->vid[1], (bfd_byte *) aouthdr_ext->vid + 4);
|
||||
#endif
|
||||
|
||||
|
||||
#ifdef RS6000COFF_C
|
||||
#ifdef XCOFF64
|
||||
aouthdr_int->o_toc = bfd_h_get_64(abfd, aouthdr_ext->o_toc);
|
||||
|
@ -805,7 +803,7 @@ coff_swap_scnhdr_in (abfd, ext, in)
|
|||
#ifdef COFF_ADJUST_SCNHDR_IN_PRE
|
||||
COFF_ADJUST_SCNHDR_IN_PRE (abfd, ext, in);
|
||||
#endif
|
||||
memcpy(scnhdr_int->s_name, scnhdr_ext->s_name, sizeof(scnhdr_int->s_name));
|
||||
memcpy(scnhdr_int->s_name, scnhdr_ext->s_name, sizeof (scnhdr_int->s_name));
|
||||
scnhdr_int->s_vaddr =
|
||||
GET_SCNHDR_VADDR (abfd, (bfd_byte *) scnhdr_ext->s_vaddr);
|
||||
scnhdr_int->s_paddr =
|
||||
|
@ -847,12 +845,11 @@ coff_swap_scnhdr_out (abfd, in, out)
|
|||
#ifdef COFF_ADJUST_SCNHDR_OUT_PRE
|
||||
COFF_ADJUST_SCNHDR_OUT_PRE (abfd, in, out);
|
||||
#endif
|
||||
memcpy(scnhdr_ext->s_name, scnhdr_int->s_name, sizeof(scnhdr_int->s_name));
|
||||
memcpy(scnhdr_ext->s_name, scnhdr_int->s_name, sizeof (scnhdr_int->s_name));
|
||||
|
||||
PUT_SCNHDR_VADDR (abfd, scnhdr_int->s_vaddr,
|
||||
(bfd_byte *) scnhdr_ext->s_vaddr);
|
||||
|
||||
|
||||
PUT_SCNHDR_PADDR (abfd, scnhdr_int->s_paddr,
|
||||
(bfd_byte *) scnhdr_ext->s_paddr);
|
||||
PUT_SCNHDR_SIZE (abfd, scnhdr_int->s_size,
|
||||
|
|
|
@ -30,7 +30,6 @@ DESCRIPTION
|
|||
#include "sysdep.h"
|
||||
#include "libbfd.h"
|
||||
|
||||
|
||||
/*
|
||||
FUNCTION
|
||||
bfd_core_file_failing_command
|
||||
|
@ -78,7 +77,6 @@ bfd_core_file_failing_signal (abfd)
|
|||
return BFD_SEND (abfd, _core_file_failing_signal, (abfd));
|
||||
}
|
||||
|
||||
|
||||
/*
|
||||
FUNCTION
|
||||
core_file_matches_executable_p
|
||||
|
|
Loading…
Reference in a new issue