diff options
author | Steve Chamberlain <sac@cygnus> | 1991-12-08 01:14:09 +0000 |
---|---|---|
committer | Steve Chamberlain <sac@cygnus> | 1991-12-08 01:14:09 +0000 |
commit | 5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d (patch) | |
tree | 5d121b9a2f52d3bef7e3df1079a4bd5846681b93 /binutils/copy.c | |
parent | 381ed933d335d95296e99d17a5411fba85628063 (diff) | |
download | gdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.zip gdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.tar.gz gdb-5a77e9160f24a84e80a4606dbe2e8b2ee09f0a6d.tar.bz2 |
* 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
Diffstat (limited to 'binutils/copy.c')
-rw-r--r-- | binutils/copy.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/binutils/copy.c b/binutils/copy.c index fa86cf6..b61d003 100644 --- a/binutils/copy.c +++ b/binutils/copy.c @@ -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); } |