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