mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2024-12-03 23:34:02 +08:00
* bucomm.h: created to hold prototypes of bucomm.c
* objdump.h: created to hold prototyes of objdump.c * am29k-pinsn.c: include objdump.h * ar.c: include bucomm.h, get ar.h from the right place and include libbfd.h * bucomm.c: defunize bfd_fatal * copy.c: include bucomm.h, lint. * i960-pinsn.h: include bucomm.h * m68k-pinsn.h: lint * nm.c: include bucomm.h, lint * objdump.c: lint * sparc-pinsn.c: include objdump.h
This commit is contained in:
parent
381ed933d3
commit
5a77e9160f
@ -29,37 +29,39 @@ Things-to-keep:
|
||||
|
||||
ChangeLog
|
||||
Makefile.in
|
||||
README
|
||||
TODO
|
||||
alloca.c
|
||||
ar.c
|
||||
am29k-pinsn.c
|
||||
ar.1
|
||||
nm.1
|
||||
objdump.1
|
||||
ranlib.1
|
||||
size.1
|
||||
strip.1
|
||||
is-ranlib.c
|
||||
not-ranlib.c
|
||||
maybe-ranlib.c
|
||||
is-strip.c
|
||||
not-strip.c
|
||||
maybe-strip.c
|
||||
ar.c
|
||||
binutils.texi
|
||||
bucomm.c
|
||||
bucomm.h
|
||||
configure.in
|
||||
copy.c
|
||||
cplus-dem.c
|
||||
filemode.c
|
||||
gmalloc.c
|
||||
am29k-pinsn.c
|
||||
i960-pinsn.c
|
||||
is-ranlib.c
|
||||
is-strip.c
|
||||
m68k-pinsn.c
|
||||
maybe-ranlib.c
|
||||
maybe-strip.c
|
||||
nm.1
|
||||
nm.c
|
||||
not-ranlib.c
|
||||
not-strip.c
|
||||
objdump.1
|
||||
objdump.c
|
||||
objdump.h
|
||||
ranlib.1
|
||||
ranlib.sh
|
||||
README
|
||||
size.1
|
||||
size.c
|
||||
sparc-pinsn.c
|
||||
strip.1
|
||||
version.c
|
||||
|
||||
Do-last:
|
||||
@ -69,7 +71,21 @@ echo Done in `pwd`.
|
||||
#
|
||||
#
|
||||
# $Log$
|
||||
# Revision 1.11 1991/11/18 08:04:14 bothner
|
||||
# Revision 1.12 1991/12/08 01:13:54 sac
|
||||
# * bucomm.h: created to hold prototypes of bucomm.c
|
||||
# * objdump.h: created to hold prototyes of objdump.c
|
||||
# * am29k-pinsn.c: include objdump.h
|
||||
# * ar.c: include bucomm.h, get ar.h from the right place and
|
||||
# include libbfd.h
|
||||
# * bucomm.c: defunize bfd_fatal
|
||||
# * copy.c: include bucomm.h, lint.
|
||||
# * i960-pinsn.h: include bucomm.h
|
||||
# * m68k-pinsn.h: lint
|
||||
# * nm.c: include bucomm.h, lint
|
||||
# * objdump.c: lint
|
||||
# * sparc-pinsn.c: include objdump.h
|
||||
#
|
||||
# Revision 1.11 1991/11/18 08:04:14 bothner
|
||||
# * Makefile.in: Bump to version 1.92.
|
||||
# * version.c, Makefile.in: Get version string from Makefile.
|
||||
# * copy.c, is-strip.c, not-strip.c, maybe-strip.c, Makefile.in:
|
||||
|
@ -27,6 +27,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#else
|
||||
# include "bfd.h"
|
||||
# include "sysdep.h"
|
||||
# include "objdump.h"
|
||||
# include "opcode/a29k.h"
|
||||
# define am29k_opcodes a29k_opcodes
|
||||
# define am29k_opcode a29k_opcode
|
||||
|
@ -19,6 +19,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#include "bfd.h"
|
||||
#include "sysdep.h"
|
||||
#include "bucomm.h"
|
||||
|
||||
asymbol **sympp;
|
||||
char *input_target = NULL;
|
||||
@ -29,7 +30,6 @@ char *output_filename = NULL;
|
||||
|
||||
static void setup_sections();
|
||||
static void copy_sections();
|
||||
static boolean strip;
|
||||
static boolean verbose;
|
||||
|
||||
/* This flag distinguishes between strip and copy:
|
||||
@ -39,7 +39,7 @@ extern int is_strip;
|
||||
|
||||
/* IMPORTS */
|
||||
extern char *program_name;
|
||||
extern char *xmalloc();
|
||||
|
||||
|
||||
static
|
||||
void
|
||||
@ -349,13 +349,13 @@ copy_sections(ibfd, isection, obfd)
|
||||
if (size == 0)
|
||||
return;
|
||||
|
||||
if (is_strip || get_reloc_upper_bound(ibfd, isection) == 0)
|
||||
if (is_strip || bfd_get_reloc_upper_bound(ibfd, isection) == 0)
|
||||
{
|
||||
bfd_set_reloc(obfd, osection, (arelent **)NULL, 0);
|
||||
}
|
||||
else
|
||||
{
|
||||
relpp = (arelent **) xmalloc(get_reloc_upper_bound(ibfd, isection));
|
||||
relpp = (arelent **) xmalloc(bfd_get_reloc_upper_bound(ibfd, isection));
|
||||
relcount = bfd_canonicalize_reloc(ibfd, isection, relpp, sympp);
|
||||
bfd_set_reloc(obfd, osection, relpp, relcount);
|
||||
}
|
||||
|
@ -21,9 +21,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
#include "bfd.h"
|
||||
#include "sysdep.h"
|
||||
|
||||
extern char *xmalloc();
|
||||
extern int fputs();
|
||||
#include "bucomm.h"
|
||||
|
||||
static char *reg_names[] = {
|
||||
/* 0 */ "pfp", "sp", "rip", "r3", "r4", "r5", "r6", "r7",
|
||||
|
@ -20,9 +20,23 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
|
||||
/* $Id$
|
||||
$Log$
|
||||
Revision 1.6 1991/12/01 02:58:34 sac
|
||||
Updated to point to where the header files are now
|
||||
Revision 1.7 1991/12/08 01:14:04 sac
|
||||
* bucomm.h: created to hold prototypes of bucomm.c
|
||||
* objdump.h: created to hold prototyes of objdump.c
|
||||
* am29k-pinsn.c: include objdump.h
|
||||
* ar.c: include bucomm.h, get ar.h from the right place and
|
||||
include libbfd.h
|
||||
* bucomm.c: defunize bfd_fatal
|
||||
* copy.c: include bucomm.h, lint.
|
||||
* i960-pinsn.h: include bucomm.h
|
||||
* m68k-pinsn.h: lint
|
||||
* nm.c: include bucomm.h, lint
|
||||
* objdump.c: lint
|
||||
* sparc-pinsn.c: include objdump.h
|
||||
|
||||
* Revision 1.6 1991/12/01 02:58:34 sac
|
||||
* Updated to point to where the header files are now
|
||||
*
|
||||
* Revision 1.5 1991/11/03 22:58:44 bothner
|
||||
* * Makefile.in ($(DIST_NAME).tar.Z), TODO: Various fixes.
|
||||
* * ar.c (get_pos_bfd): Fix to handling of before/after
|
||||
@ -85,7 +99,6 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#include <stdio.h>
|
||||
#include "opcode/m68k.h"
|
||||
|
||||
extern int fputs();
|
||||
extern void print_address();
|
||||
|
||||
/* 68k instructions are never longer than this many bytes. */
|
||||
@ -233,12 +246,12 @@ print_insn_arg (d, buffer, p, addr, stream)
|
||||
bfd_vma addr; /* PC for this arg to be relative to */
|
||||
FILE *stream;
|
||||
{
|
||||
register int val;
|
||||
register int val = 0;
|
||||
register int place = d[1];
|
||||
int regno;
|
||||
register char *regname;
|
||||
register unsigned char *p1;
|
||||
register double flval;
|
||||
register double flval = 0;
|
||||
int flt_p;
|
||||
|
||||
switch (*d)
|
||||
@ -639,7 +652,7 @@ fetch_arg (buffer, code, bits)
|
||||
char code;
|
||||
int bits;
|
||||
{
|
||||
register int val;
|
||||
register int val = 0;
|
||||
switch (code)
|
||||
{
|
||||
case 's':
|
||||
|
@ -24,8 +24,7 @@ the Free Software Foundation, 675 Mass Ave, Cambridge, MA 02139, USA. */
|
||||
#include "sysdep.h"
|
||||
#include <stdio.h>
|
||||
#include "opcode/sparc.h"
|
||||
|
||||
extern int fputs();
|
||||
#include "objdump.h"
|
||||
extern int print_address();
|
||||
|
||||
static char *reg_names[] =
|
||||
@ -392,7 +391,7 @@ memcpy(&insn,buffer, sizeof (insn));
|
||||
if (imm_added_to_rs1)
|
||||
{
|
||||
union sparc_insn prev_insn;
|
||||
int errcode;
|
||||
int errcode = 0;
|
||||
|
||||
memcpy(&prev_insn, buffer -4, sizeof (prev_insn));
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user