diff options
author | Alan Modra <amodra@gmail.com> | 2022-08-12 17:14:37 +0930 |
---|---|---|
committer | Alan Modra <amodra@gmail.com> | 2022-08-13 14:11:27 +0930 |
commit | 928c411de46e876edd545c3bc0d8bd6a663d0c8f (patch) | |
tree | de43e9c88fad869d9ade2eb7608185ca0faee923 /binutils/elfcomm.h | |
parent | 901dd67d0d68ac5e0be145d137533f03de495272 (diff) | |
download | binutils-928c411de46e876edd545c3bc0d8bd6a663d0c8f.zip binutils-928c411de46e876edd545c3bc0d8bd6a663d0c8f.tar.gz binutils-928c411de46e876edd545c3bc0d8bd6a663d0c8f.tar.bz2 |
Replace elf_vma with uint64_t
This patch replaces all uses of elf_vma with uint64_t, removes
tests of sizeof (elf_vma), and does a little tidying of
byte_get_little_endian and byte_get_big_endian.
Diffstat (limited to 'binutils/elfcomm.h')
-rw-r--r-- | binutils/elfcomm.h | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/binutils/elfcomm.h b/binutils/elfcomm.h index c2ec8d2..bab46b0 100644 --- a/binutils/elfcomm.h +++ b/binutils/elfcomm.h @@ -29,16 +29,14 @@ extern void error (const char *, ...) ATTRIBUTE_PRINTF_1; extern void warn (const char *, ...) ATTRIBUTE_PRINTF_1; -typedef unsigned HOST_WIDEST_INT elf_vma; +extern void (*byte_put) (unsigned char *, uint64_t, unsigned int); +extern void byte_put_little_endian (unsigned char *, uint64_t, unsigned int); +extern void byte_put_big_endian (unsigned char *, uint64_t, unsigned int); -extern void (*byte_put) (unsigned char *, elf_vma, unsigned int); -extern void byte_put_little_endian (unsigned char *, elf_vma, unsigned int); -extern void byte_put_big_endian (unsigned char *, elf_vma, unsigned int); - -extern elf_vma (*byte_get) (const unsigned char *, unsigned int); -extern elf_vma byte_get_signed (const unsigned char *, unsigned int); -extern elf_vma byte_get_little_endian (const unsigned char *, unsigned int); -extern elf_vma byte_get_big_endian (const unsigned char *, unsigned int); +extern uint64_t (*byte_get) (const unsigned char *, unsigned int); +extern uint64_t byte_get_signed (const unsigned char *, unsigned int); +extern uint64_t byte_get_little_endian (const unsigned char *, unsigned int); +extern uint64_t byte_get_big_endian (const unsigned char *, unsigned int); #define BYTE_PUT(field, val) byte_put (field, val, sizeof (field)) #define BYTE_GET(field) byte_get (field, sizeof (field)) @@ -53,8 +51,8 @@ struct archive_info { char * file_name; /* Archive file name. */ FILE * file; /* Open file descriptor. */ - elf_vma index_num; /* Number of symbols in table. */ - elf_vma * index_array; /* The array of member offsets. */ + uint64_t index_num; /* Number of symbols in table. */ + uint64_t * index_array; /* The array of member offsets. */ char * sym_table; /* The symbol table. */ unsigned long sym_size; /* Size of the symbol table. */ char * longnames; /* The long file names table. */ |