aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-03-17 23:47:00 +0000
committerKen Raeburn <raeburn@cygnus>1994-03-17 23:47:00 +0000
commit5a66538bcbddd29d6918bb8a71a2095f3c0299c7 (patch)
treed6578749659106113bdae74875f7332d072b1e7d /bfd
parent6f4aac6cb936ca4f4d0f37cf0ae49f8fcc8cd821 (diff)
downloadgdb-5a66538bcbddd29d6918bb8a71a2095f3c0299c7.zip
gdb-5a66538bcbddd29d6918bb8a71a2095f3c0299c7.tar.gz
gdb-5a66538bcbddd29d6918bb8a71a2095f3c0299c7.tar.bz2
* bfd-in.h (BFD_VERSION): Use @VERSION@.
* Makefile.in (bfd.h): Replace it with contents of VERSION file. * bfd-in2.h: Regenerated.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/ChangeLog4
-rw-r--r--bfd/Makefile.in14
-rw-r--r--bfd/bfd-in2.h28
3 files changed, 39 insertions, 7 deletions
diff --git a/bfd/ChangeLog b/bfd/ChangeLog
index 861ca50..b15ab01 100644
--- a/bfd/ChangeLog
+++ b/bfd/ChangeLog
@@ -1,5 +1,9 @@
Thu Mar 17 18:26:46 1994 Ken Raeburn (raeburn@cujo.cygnus.com)
+ * bfd-in.h (BFD_VERSION): Use @VERSION@.
+ * Makefile.in (bfd.h): Replace it with contents of VERSION file.
+ * bfd-in2.h: Regenerated.
+
* trad-core.c (trad_unix_bfd_is_local_label): Fixed typo where
this was also named trad_unix_bfd_copy_private_bfd_data.
diff --git a/bfd/Makefile.in b/bfd/Makefile.in
index 9918e17..352fd88 100644
--- a/bfd/Makefile.in
+++ b/bfd/Makefile.in
@@ -139,7 +139,7 @@ BFD32_BACKENDS = \
elf32-m68k.o \
elf32-m88k.o \
elf32-mips.o \
- elf32-powerpc.o \
+ elf32-ppc.o \
elf32-sparc.o \
elf32.o \
hp300hpux.o \
@@ -159,7 +159,7 @@ BFD32_BACKENDS = \
nlm32-i386.o \
nlm32-sparc.o \
$(start-sanitize-powerpc-netware) \
- nlm32-powerpc.o \
+ nlm32-ppc.o \
$(end-sanitize-powerpc-netware) \
nlm32.o \
oasys.o \
@@ -232,7 +232,7 @@ CFILES = libbfd.c opncls.c bfd.c archive.c targets.c cache.c \
cpu-rs6000.c coff-h8300.c som.c cpu-hppa.c cpu-we32k.c reloc16.c \
mipsbsd.c cpu-sh.c \
elf.c elf32.c elf32-sparc.c elf32-i386.c elf32-i860.c elf32-m68k.c \
- elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c elf32-powerpc.c \
+ elf32-hppa.c elf32-m88k.c elf32-mips.c elf32-gen.c elf32-ppc.c \
elf64.c elf64-gen.c \
nlm.c nlm32.c nlm32-i386.c nlm32-sparc.c nlm32-alpha.c \
nlm64.c coff-alpha.c cpu-alpha.c \
@@ -476,7 +476,11 @@ $(BFD_H): stmp-bfd.h ; @true
stmp-bfd.h : $(srcdir)/bfd-in2.h Makefile
rm -f bfd.h-new 64 ../include/bfd.h
-grep BFD_HOST_64_BIT sysdep.h > 64
- sed -e 's/@WORDSIZE@/$(WORDSIZE)/' -e '/64-bit.*sysdep.h/ r 64' < $(srcdir)/bfd-in2.h > bfd.h-new
+ sed -e 's/@WORDSIZE@/$(WORDSIZE)/' \
+ -e "s/@VERSION@/`cat $(srcdir)/VERSION`/" \
+ -e '/64-bit.*sysdep.h/ r 64' \
+ < $(srcdir)/bfd-in2.h \
+ > bfd.h-new
$(srcdir)/../move-if-change bfd.h-new $(BFD_H)
rm -f 64
touch stmp-bfd.h
@@ -640,7 +644,7 @@ elf32-mips.o : elf32-mips.c $(INCDIR)/bfdlink.h genlink.h \
elf32-target.h
elf32-gen.o : elf32-gen.c libelf.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h elf32-target.h
-elf32-powerpc.o : elf32-powerpc.c libelf.h $(INCDIR)/elf/common.h \
+elf32-ppc.o : elf32-ppc.c libelf.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h elf32-target.h
elf64.o : elf64.c elfcode.h libelf.h $(INCDIR)/elf/common.h \
$(INCDIR)/elf/internal.h $(INCDIR)/elf/external.h
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index 997b71b..1c86271 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -47,8 +47,8 @@ here. */
#include "ansidecl.h"
#include "obstack.h"
-#define BFD_VERSION "2.2"
-
+/* These two lines get substitutions done by commands in Makefile.in. */
+#define BFD_VERSION "@VERSION@"
#define BFD_ARCH_SIZE @WORDSIZE@
#if BFD_ARCH_SIZE >= 64
@@ -431,6 +431,8 @@ CAT(NAME,_close_and_cleanup),\
CAT(NAME,_set_section_contents),\
CAT(NAME,_get_section_contents),\
CAT(NAME,_new_section_hook),\
+CAT(NAME,_bfd_copy_private_section_data),\
+CAT(NAME,_bfd_copy_private_bfd_data),\
CAT(NAME,_get_symtab_upper_bound),\
CAT(NAME,_get_symtab),\
CAT(NAME,_get_reloc_upper_bound),\
@@ -438,6 +440,7 @@ CAT(NAME,_canonicalize_reloc),\
CAT(NAME,_make_empty_symbol),\
CAT(NAME,_print_symbol),\
CAT(NAME,_get_symbol_info),\
+CAT(NAME,_bfd_is_local_label),\
CAT(NAME,_get_lineno),\
CAT(NAME,_set_arch_mach),\
CAT(NAME,_openr_next_archived_file),\
@@ -946,6 +949,12 @@ bfd_get_section_contents
PARAMS ((bfd *abfd, asection *section, PTR location,
file_ptr offset, bfd_size_type count));
+boolean
+bfd_copy_private_section_data PARAMS ((bfd *ibfd, asection *isec, bfd *obfd, asection *osec));
+
+#define bfd_copy_private_section_data(ibfd, isection, obfd, osection) \
+ BFD_SEND (ibfd, _bfd_copy_private_section_data, \
+ (ibfd, isection, obfd, osection))
enum bfd_architecture
{
bfd_arch_unknown, /* File arch not known */
@@ -1633,6 +1642,11 @@ typedef struct symbol_cache_entry
} asymbol;
#define get_symtab_upper_bound(abfd) \
BFD_SEND (abfd, _get_symtab_upper_bound, (abfd))
+boolean
+bfd_is_local_label PARAMS ((bfd *abfd, asymbol *sym));
+
+#define bfd_is_local_label(abfd, sym) \
+ BFD_SEND (abfd, _bfd_is_local_label,(abfd, sym))
#define bfd_canonicalize_symtab(abfd, location) \
BFD_SEND (abfd, _bfd_canonicalize_symtab,\
(abfd, location))
@@ -1868,6 +1882,12 @@ bfd_set_gp_size PARAMS ((bfd *abfd, int i));
bfd_vma
bfd_scan_vma PARAMS ((CONST char *string, CONST char **end, int base));
+boolean
+bfd_copy_private_bfd_data PARAMS ((bfd *ibfd, bfd *obfd));
+
+#define bfd_copy_private_bfd_data(ibfd, obfd) \
+ BFD_SEND (ibfd, _bfd_copy_private_bfd_data, \
+ (ibfd, obfd))
#define bfd_sizeof_headers(abfd, reloc) \
BFD_SEND (abfd, _bfd_sizeof_headers, (abfd, reloc))
@@ -2017,6 +2037,9 @@ typedef struct bfd_target
boolean (*_bfd_get_section_contents) PARAMS ((bfd *, sec_ptr, PTR,
file_ptr, bfd_size_type));
boolean (*_new_section_hook) PARAMS ((bfd *, sec_ptr));
+ boolean (*_bfd_copy_private_section_data) PARAMS ((bfd *, sec_ptr,
+ bfd *, sec_ptr));
+ boolean (*_bfd_copy_private_bfd_data) PARAMS ((bfd *, bfd *));
unsigned int (*_get_symtab_upper_bound) PARAMS ((bfd *));
unsigned int (*_bfd_canonicalize_symtab) PARAMS ((bfd *,
struct symbol_cache_entry **));
@@ -2033,6 +2056,7 @@ typedef struct bfd_target
struct symbol_cache_entry *,
symbol_info *));
#define bfd_get_symbol_info(b,p,e) BFD_SEND(b, _bfd_get_symbol_info, (b,p,e))
+ boolean (*_bfd_is_local_label) PARAMS ((bfd *, asymbol *));
alent * (*_get_lineno) PARAMS ((bfd *, struct symbol_cache_entry *));
boolean (*_bfd_set_arch_mach) PARAMS ((bfd *, enum bfd_architecture,