X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=binutils%2Felfcomm.h;h=40c43d36456cb2d7c10cfef3e47ee5a62c778870;hb=a13ba30840ba7a8450dcb4edd356de61fcb89130;hp=6ffd0c17b546a2cfdf46a44c97ebbb298d419707;hpb=6f2750feaf2827ef8a1a0a5b2f90c1e9a6cabbd1;p=deliverable%2Fbinutils-gdb.git diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index 6ffd0c17b5..40c43d3645 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -1,5 +1,5 @@ /* elfcomm.h -- include file of common code for ELF format file. - Copyright (C) 2010-2016 Free Software Foundation, Inc. + Copyright (C) 2010-2019 Free Software Foundation, Inc. Originally developed by Eric Youngdale Modifications by Nick Clifton @@ -29,24 +29,17 @@ void error (const char *, ...) ATTRIBUTE_PRINTF_1; void warn (const char *, ...) ATTRIBUTE_PRINTF_1; -#if defined HAVE_LONG_LONG && SIZEOF_LONG_LONG > SIZEOF_LONG -/* 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,7 +65,7 @@ struct archive_info 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. */ + bfd_boolean uses_64bit_indices; /* TRUE if the index table uses 64bit entries. */ struct ar_hdr arhdr; /* Current archive header. */ };