diff options
| author | Rich Felker <dalias@aerifal.cx> | 2016-11-11 12:30:24 -0500 | 
|---|---|---|
| committer | Rich Felker <dalias@aerifal.cx> | 2016-11-11 12:46:06 -0500 | 
| commit | b418ea1b66d0d5a08640d4edf3b65d4619c6ef7f (patch) | |
| tree | f4b2a1cc89e1c5fce77fd13cd0821eb2178c1f25 /include | |
| parent | 4078a5c31fa67987051c2180db7a07702534032f (diff) | |
| download | musl-b418ea1b66d0d5a08640d4edf3b65d4619c6ef7f.tar.gz | |
generalize ELF hash table types not to assume 32-bit entries
alpha and s390x gratuitously use 64-bit entries (wasting 2x space and
cache utilization) despite the values always being 32-bit.
based on patch by Bobby Bingham, with changes suggested by Alexander
Monakov to use the public Elf_Symndx type from link.h (and make it
properly variable by arch) rather than adding new internal
infrastructure for handling the type.
Diffstat (limited to 'include')
| -rw-r--r-- | include/link.h | 3 | 
1 files changed, 1 insertions, 2 deletions
| diff --git a/include/link.h b/include/link.h index 9349cddd..81501859 100644 --- a/include/link.h +++ b/include/link.h @@ -16,8 +16,7 @@ extern "C" {  #define ElfW(type) Elf32_ ## type  #endif -/* this is the same everywhere except alpha and s390 */ -typedef uint32_t Elf_Symndx; +#include <bits/link.h>  struct dl_phdr_info {  	ElfW(Addr) dlpi_addr; | 
