aboutsummaryrefslogtreecommitdiff
path: root/bfd
diff options
context:
space:
mode:
authorKen Raeburn <raeburn@cygnus>1994-01-19 22:32:32 +0000
committerKen Raeburn <raeburn@cygnus>1994-01-19 22:32:32 +0000
commitd110544cd0bbe86d35d8a8810fb84af0b2dbdf8e (patch)
tree8d0439502b1a40955fa19e93618d2a9fb61facbe /bfd
parent8de26d624e73be65169b8ec37c2b7fe4b18df7b2 (diff)
downloadfsf-binutils-gdb-d110544cd0bbe86d35d8a8810fb84af0b2dbdf8e.zip
fsf-binutils-gdb-d110544cd0bbe86d35d8a8810fb84af0b2dbdf8e.tar.gz
fsf-binutils-gdb-d110544cd0bbe86d35d8a8810fb84af0b2dbdf8e.tar.bz2
(uint64_typeHIGH, uint64_typeLOW): Supply default definitions when not defined,
regardless of whether uint64_type is a defined macro or not. (fprintf_vma, sprintf_vma): Define only if fprintf_vma is not already defined.
Diffstat (limited to 'bfd')
-rw-r--r--bfd/bfd-in.h28
1 files changed, 23 insertions, 5 deletions
diff --git a/bfd/bfd-in.h b/bfd/bfd-in.h
index 9f3a04a..3bc3f42 100644
--- a/bfd/bfd-in.h
+++ b/bfd/bfd-in.h
@@ -120,6 +120,8 @@ typedef unsigned HOST_64_BIT uint64_type;
#if !defined (uint64_type) && defined (__GNUC__)
#define uint64_type unsigned long long
#define int64_type long long
+#endif
+#ifndef uint64_typeLOW
#define uint64_typeLOW(x) ((unsigned long)(((x) & 0xffffffff)))
#define uint64_typeHIGH(x) ((unsigned long)(((x) >> 32) & 0xffffffff))
#endif
@@ -128,10 +130,12 @@ typedef unsigned HOST_64_BIT bfd_vma;
typedef HOST_64_BIT bfd_signed_vma;
typedef unsigned HOST_64_BIT bfd_size_type;
typedef unsigned HOST_64_BIT symvalue;
+#ifndef fprintf_vma
#define fprintf_vma(s,x) \
fprintf(s,"%08lx%08lx", uint64_typeHIGH(x), uint64_typeLOW(x))
#define sprintf_vma(s,x) \
sprintf(s,"%08lx%08lx", uint64_typeHIGH(x), uint64_typeLOW(x))
+#endif
#else /* not BFD64 */
/* Represent a target address. Also used as a generic unsigned type
@@ -547,16 +551,26 @@ struct ecoff_debug_info;
struct ecoff_debug_swap;
struct ecoff_extr;
struct symbol_cache_entry;
+struct bfd_link_info;
#endif
-extern boolean bfd_ecoff_debug_accumulate
+extern PTR bfd_ecoff_debug_init
PARAMS ((bfd *output_bfd, struct ecoff_debug_info *output_debug,
const struct ecoff_debug_swap *output_swap,
+ struct bfd_link_info *));
+extern void bfd_ecoff_debug_free
+ PARAMS ((PTR handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
+ const struct ecoff_debug_swap *output_swap,
+ struct bfd_link_info *));
+extern boolean bfd_ecoff_debug_accumulate
+ PARAMS ((PTR handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
+ const struct ecoff_debug_swap *output_swap,
bfd *input_bfd, struct ecoff_debug_info *input_debug,
const struct ecoff_debug_swap *input_swap,
- boolean relocateable));
-extern boolean bfd_ecoff_debug_link_other
- PARAMS ((bfd *output_bfd, struct ecoff_debug_info *output_debug,
- const struct ecoff_debug_swap *output_swap, bfd *input_bfd));
+ struct bfd_link_info *));
+extern boolean bfd_ecoff_debug_accumulate_other
+ PARAMS ((PTR handle, bfd *output_bfd, struct ecoff_debug_info *output_debug,
+ const struct ecoff_debug_swap *output_swap, bfd *input_bfd,
+ struct bfd_link_info *));
extern boolean bfd_ecoff_debug_externals
PARAMS ((bfd *abfd, struct ecoff_debug_info *debug,
const struct ecoff_debug_swap *swap,
@@ -575,5 +589,9 @@ extern bfd_size_type bfd_ecoff_debug_size
extern boolean bfd_ecoff_write_debug
PARAMS ((bfd *abfd, struct ecoff_debug_info *debug,
const struct ecoff_debug_swap *swap, file_ptr where));
+extern boolean bfd_ecoff_write_accumulated_debug
+ PARAMS ((PTR handle, bfd *abfd, struct ecoff_debug_info *debug,
+ const struct ecoff_debug_swap *swap,
+ struct bfd_link_info *info, file_ptr where));
/* And more from the source. */