aboutsummaryrefslogtreecommitdiff
path: root/bfd/bfd-in2.h
diff options
context:
space:
mode:
authorDavid MacKenzie <djm@cygnus>1994-02-17 18:08:41 +0000
committerDavid MacKenzie <djm@cygnus>1994-02-17 18:08:41 +0000
commitd1ad85a6e6eead5ba7a2950c3d63f39924397353 (patch)
tree4fb18639d4c1f179c4b1dbcd837525829da1575a /bfd/bfd-in2.h
parent166557e7b19db0013a7ab307a08f2c78cd243144 (diff)
downloadgdb-d1ad85a6e6eead5ba7a2950c3d63f39924397353.zip
gdb-d1ad85a6e6eead5ba7a2950c3d63f39924397353.tar.gz
gdb-d1ad85a6e6eead5ba7a2950c3d63f39924397353.tar.bz2
* bfd.c (bfd_get_error, bfd_set_error): New functions.
(bfd_error): Make static. (bfd_error_type): Renamed from bfd_ec. Prepend "bfd_error_" to all values. * bfd-in2.h: Regenerated. * aix386-core.c, aout-adobe.c, aout-encap.c, aout-target.h, aoutf1.h, aoutx.h, archive.c, archures.c, bfd.c, bout.c, cache.c, coff-alpha.c, coff-mips.c, coff-rs6000.c, coffcode.h, coffgen.c, core.c, ctor.c, ecoff.c, ecofflink.c, elf.c, elf32-hppa.c, elf32-mips.c, elfcode.h, format.c, hash.c, hp300hpux.c, hppabsd-core.c, i386lynx.c, ieee.c, libbfd.c, libelf.h, linker.c, lynx-core.c, nlm.c, nlm32-alpha.c, nlm32-i386.c, nlm32-sparc.c, nlmcode.h, oasys.c, opncls.c, osf-core.c, ptrace-core.c, reloc16.c, rs6000-core.c, section.c, som.c, srec.c, sunos.c, syms.c, targets.c, tekhex.c, trad-core.c: Change callers.
Diffstat (limited to 'bfd/bfd-in2.h')
-rw-r--r--bfd/bfd-in2.h56
1 files changed, 35 insertions, 21 deletions
diff --git a/bfd/bfd-in2.h b/bfd/bfd-in2.h
index eb942dc..20ce0d5 100644
--- a/bfd/bfd-in2.h
+++ b/bfd/bfd-in2.h
@@ -975,6 +975,7 @@ enum bfd_architecture
bfd_arch_h8300, /* Hitachi H8/300 */
#define bfd_mach_h8300 1
#define bfd_mach_h8300h 2
+ bfd_arch_powerpc, /* PowerPC */
bfd_arch_rs6000, /* IBM RS/6000 */
bfd_arch_hppa, /* HP PA RISC */
bfd_arch_z8k, /* Zilog Z8000 */
@@ -1494,6 +1495,15 @@ typedef enum bfd_reloc_code_real
BFD_RELOC_386_GOTOFF,
BFD_RELOC_386_GOTPC,
+ /* PowerPC/POWER (RS/6000) relocs. */
+ /* 26 bit relative branch. Low two bits must be zero. High 24
+ bits installed in bits 6 through 29 of instruction. */
+ BFD_RELOC_PPC_B26,
+ /* 26 bit absolute branch, like BFD_RELOC_PPC_B26 but absolute. */
+ BFD_RELOC_PPC_BA26,
+ /* 16 bit TOC relative reference. */
+ BFD_RELOC_PPC_TOC16,
+
/* this must be the highest numeric value */
BFD_RELOC_UNUSED
} bfd_reloc_code_real_type;
@@ -1782,29 +1792,33 @@ struct _bfd
typedef enum bfd_error
{
- no_error = 0,
- system_call_error,
- invalid_target,
- wrong_format,
- invalid_operation,
- no_memory,
- no_symbols,
- no_more_archived_files,
- malformed_archive,
- file_not_recognized,
- file_ambiguously_recognized,
- no_contents,
- nonrepresentable_section,
- no_debug_section,
- bad_value,
- file_truncated,
- invalid_error_code
-} bfd_ec;
-
-extern bfd_ec bfd_error;
+ bfd_error_no_error = 0,
+ bfd_error_system_call,
+ bfd_error_invalid_target,
+ bfd_error_wrong_format,
+ bfd_error_invalid_operation,
+ bfd_error_no_memory,
+ bfd_error_no_symbols,
+ bfd_error_no_more_archived_files,
+ bfd_error_malformed_archive,
+ bfd_error_file_not_recognized,
+ bfd_error_file_ambiguously_recognized,
+ bfd_error_no_contents,
+ bfd_error_nonrepresentable_section,
+ bfd_error_no_debug_section,
+ bfd_error_bad_value,
+ bfd_error_file_truncated,
+ bfd_error_invalid_error_code
+} bfd_error_type;
+
+bfd_error_type
+bfd_get_error PARAMS ((void));
+
+void
+bfd_set_error PARAMS ((bfd_error_type error_tag));
CONST char *
-bfd_errmsg PARAMS ((bfd_ec error_tag));
+bfd_errmsg PARAMS ((bfd_error_type error_tag));
void
bfd_perror PARAMS ((CONST char *message));