aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1991-10-11 10:11:37 +0000
committerJohn Gilmore <gnu@cygnus>1991-10-11 10:11:37 +0000
commitbbc8d4849feb14c71603164f5acde4aa58e7b44e (patch)
tree7a3e41c4bf203d68e0b093782a8e125a32124394 /bfd/bfd.c
parent600d4864081c1969a5575f91564d8cb21c8e6807 (diff)
downloadgdb-bbc8d4849feb14c71603164f5acde4aa58e7b44e.zip
gdb-bbc8d4849feb14c71603164f5acde4aa58e7b44e.tar.gz
gdb-bbc8d4849feb14c71603164f5acde4aa58e7b44e.tar.bz2
Include bfd.h before sysdep.h, so ansidecl and PROTO() get defined first.
Diffstat (limited to 'bfd/bfd.c')
-rw-r--r--bfd/bfd.c30
1 files changed, 9 insertions, 21 deletions
diff --git a/bfd/bfd.c b/bfd/bfd.c
index 331312e..1d465b1 100644
--- a/bfd/bfd.c
+++ b/bfd/bfd.c
@@ -130,13 +130,9 @@ Symbol table for output BFD
$ struct symbol_cache_entry **outsymbols;
-Architecture of object machine, eg m68k
+Pointer to structure which contains architecture information
-$ enum bfd_architecture obj_arch;
-
-Particular machine within arch, e.g. 68010
-
-$ unsigned long obj_machine;
+$ struct bfd_arch_info *arch_info;
Stuff only useful for archives:
@@ -162,10 +158,12 @@ $};
*---
*/
-#include <sysdep.h>
#include "bfd.h"
+#include "sysdep.h"
#include "libbfd.h"
+extern char *strerror();
+
short _bfd_host_big_endian = 0x0100;
/* Accessing the above as (*(char*)&_bfd_host_big_endian), will
@@ -219,20 +217,6 @@ bfd_error_vector_type bfd_error_vector =
bfd_nonrepresentable_section
};
-#if !defined(ANSI_LIBRARIES) && !defined(__STDC__) || HOST_SYS==SUN4_SYS
-char *
-strerror (code)
- int code;
-{
- extern int sys_nerr;
- extern char *sys_errlist[];
-
- return (((code < 0) || (code >= sys_nerr)) ? "(unknown error)" :
- sys_errlist [code]);
-}
-#endif /* not ANSI_LIBRARIES */
-
-
char *
bfd_errmsg (error_tag)
bfd_ec error_tag;
@@ -430,6 +414,10 @@ bfd_get_mtime (abfd)
#define bfd_coff_swap_lineno_in(a,e,i) \
BFD_SEND ( a, _bfd_coff_swap_lineno_in, (a,e,i))
+
+#define bfd_set_arch_mach(abfd, arch, mach)\
+ BFD_SEND ( abfd, _bfd_set_arch_mach, (abfd, arch, mach))
+
*-
*/