X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Felfcomm.h;h=abf84b5cb9e8d7edf6c40d5c2eafd6fa664a7136;hb=1424c35d071e7d49a4a219c7dee8c88ffd60ddca;hp=a8c3aa309d5bbc0fb7bf83d531ec46caa58efc9d;hpb=c2a7d3f57d9b69909262d5c36fd500b94c84542f;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index a8c3aa309d..abf84b5cb9 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -1,6 +1,5 @@ /* elfcomm.h -- include file of common code for ELF format file. - Copyright 2010 - Free Software Foundation, Inc. + Copyright (C) 2010-2020 Free Software Foundation, Inc. Originally developed by Eric Youngdale Modifications by Nick Clifton @@ -27,27 +26,20 @@ #include "aout/ar.h" -void error (const char *, ...) ATTRIBUTE_PRINTF_1; -void warn (const char *, ...) ATTRIBUTE_PRINTF_1; +extern void error (const char *, ...) ATTRIBUTE_PRINTF_1; +extern void warn (const char *, ...) ATTRIBUTE_PRINTF_1; -#if __STDC_VERSION__ >= 199901L || (defined(__GNUC__) && __GNUC__ >= 2) -/* We can't use any bfd types here since readelf may define BFD64 and - objdump may not. */ -#define HOST_WIDEST_INT long long -#else -#define HOST_WIDEST_INT long -#endif typedef unsigned HOST_WIDEST_INT elf_vma; extern void (*byte_put) (unsigned char *, elf_vma, int); extern void byte_put_little_endian (unsigned char *, elf_vma, int); extern void byte_put_big_endian (unsigned char *, elf_vma, int); -extern elf_vma (*byte_get) (unsigned char *, int); -extern elf_vma byte_get_signed (unsigned char *, int); -extern elf_vma byte_get_little_endian (unsigned char *, int); -extern elf_vma byte_get_big_endian (unsigned char *, int); -extern void byte_get_64 (unsigned char *, elf_vma *, elf_vma *); +extern elf_vma (*byte_get) (const unsigned char *, int); +extern elf_vma byte_get_signed (const unsigned char *, int); +extern elf_vma byte_get_little_endian (const unsigned char *, int); +extern elf_vma byte_get_big_endian (const unsigned char *, int); +extern void byte_get_64 (const unsigned char *, elf_vma *, elf_vma *); #define BYTE_PUT(field, val) byte_put (field, val, sizeof (field)) #define BYTE_GET(field) byte_get (field, sizeof (field)) @@ -72,17 +64,17 @@ struct archive_info unsigned long longnames_size; /* Size of the long file names table. */ unsigned long nested_member_origin; /* Origin in the nested archive of the current member. */ unsigned long next_arhdr_offset; /* Offset of the next archive header. */ - bfd_boolean is_thin_archive; /* TRUE if this is a thin archive. */ - bfd_boolean uses_64bit_indicies; /* TRUE if the index table uses 64bit entries. */ + int is_thin_archive; /* 1 if this is a thin archive. */ + int uses_64bit_indices; /* 1 if the index table uses 64bit entries. */ struct ar_hdr arhdr; /* Current archive header. */ }; /* Return the path name for a proxy entry in a thin archive. */ -extern char *adjust_relative_path (const char *, const char *, int); +extern char *adjust_relative_path (const char *, const char *, unsigned long); /* Read the symbol table and long-name table from an archive. */ extern int setup_archive (struct archive_info *, const char *, FILE *, - bfd_boolean, bfd_boolean); + off_t, int, int); /* Open and setup a nested archive, if not already open. */ extern int setup_nested_archive (struct archive_info *, const char *);