musl/include
Szabolcs Nagy 268375c1c0 update include/elf.h following glibc changes
the changes were verified using various sources:
linux: include/uapi/linux/elf.h
binutils: include/elf/common.h
glibc: elf/elf.h
sysv gabi: http://www.sco.com/developers/gabi/latest/contents.html
sun linker docs: http://docs.oracle.com/cd/E18752_01/pdf/817-1984.pdf
and platform specific docs

- fixed:
EF_MIPS_* E_MIPS_* e_flags: fixed accoding to glibc and binutils

- added:
ELFOSABI_GNU for EI_OSABI entry: glibc, binutils and sysv gabi
EM_* e_machine values: updated according to linux and glibc
PN_XNUM e_phnum value: from glibc and linux, see oracle docs
NT_* note types: updated according to linux and glibc
DF_1_* flags for DT_FLAGS_1 entry: following glibc and oracle docs
AT_HWCAP2 auxv entry for more hwcap bits accoding to linux and glibc
R_386_SIZE32 relocation according to glibc and binutils
EF_ARM_ABI_FLOAT_* e_flags: added following glibc and binutils
R_AARCH64_* relocs: added following glibc and aarch64 elf specs
R_ARM_* relocs: according to glibc, binutils and arm elf specs
R_X86_64_* relocs: added missing relocs following glibc

- removed:
HWCAP_SPARC_* flags were moved to arch specific header in glibc
R_ARM_SWI24 reloc is marked as obsolete in glibc, not present in binutils
  not specified in arm elf spec, R_ARM_TLS_DESC reused its number
  see http://www.codesourcery.com/publications/RFC-TLSDESC-ARM.txt

- glibc changes not pulled in:
ELFOSABI_ARM_AEABI (bare-metal system, binutils and glibc disagrees about the name)
R_68K_* relocs for unsupported platform
R_SPARC_* ditto
EF_SH* ditto (e_flags)
EF_S390* ditto (e_flags)
R_390* ditto
R_MN10300* ditto
R_TILE* ditto
2013-09-16 15:16:55 +00:00
..
arpa refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
net net/if_arp.h: add missing ARP hardware identifiers from linux uapi headers 2013-09-15 02:42:29 +00:00
netinet netinet/in.h: add missing IP protocol numbers from the linux uapi headers 2013-09-15 02:41:36 +00:00
netpacket
scsi add legacy scsi/scsi_ioctl.h header 2013-07-03 18:07:50 +02:00
sys sys/socket.h: add new SO_BUSY_POLL socket option 2013-09-15 04:54:19 +00:00
aio.h
alloca.h
alltypes.h.in undefine internal-use type macros at the end of alltypes.h 2013-07-22 20:58:04 -04:00
ar.h
assert.h __assert_fail(): remove _Noreturn, to get proper stacktraces 2013-01-04 20:36:34 +01:00
byteswap.h
complex.h make CMPLX macros available in complex.h in non-c11 mode as well 2012-12-11 22:44:36 +01:00
cpio.h
crypt.h
ctype.h
dirent.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
dlfcn.h implement minimal dlinfo function 2013-06-29 12:46:46 -04:00
elf.h update include/elf.h following glibc changes 2013-09-16 15:16:55 +00:00
endian.h
err.h
errno.h add support for program_invocation[_short]_name 2013-04-06 17:50:37 -04:00
fcntl.h add some new linux AT_* flags 2013-08-03 03:20:56 -04:00
features.h add _ALL_SOURCE as an alias for _GNU_SOURCE/enable-everything 2012-12-03 17:02:56 -05:00
fenv.h
float.h add FLT_TRUE_MIN, etc. macros from C11 2013-05-17 18:38:42 -04:00
fnmatch.h
ftw.h
getopt.h add getopt reset support 2012-09-30 20:00:38 -04:00
glob.h
grp.h add put*ent functions for passwd/group files and similar for shadow 2013-04-04 19:23:47 -04:00
iconv.h
ifaddrs.h make ifaddrs.h expose sys/socket.h 2013-04-10 22:38:46 -04:00
inttypes.h remove the __STDC_FORMAT_MACROS nonsense from inttypes.h 2013-05-17 14:23:41 -04:00
iso646.h
langinfo.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
lastlog.h
libgen.h
libintl.h
limits.h support configurable page size on mips, powerpc and microblaze 2013-09-15 02:00:32 +00:00
link.h add missing c++ extern "C" wrapping to link.h 2013-08-02 16:52:17 -04:00
locale.h fix feature test macro logic for _BSD_SOURCE 2013-08-02 18:14:44 -04:00
malloc.h
math.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
memory.h
mntent.h
monetary.h
mqueue.h
netdb.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
nl_types.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
paths.h paths.h: remove cruft 2013-07-03 18:07:50 +02:00
poll.h add linux extension POLLRDHUP to poll.h 2012-12-26 16:55:49 -05:00
pthread.h add pthread_setaffinity_np and pthread_getaffinity_np functions 2013-08-10 21:41:05 -04:00
pty.h
pwd.h add put*ent functions for passwd/group files and similar for shadow 2013-04-04 19:23:47 -04:00
regex.h make regoff_t and regex_t match C++ ABI 2013-07-22 14:39:59 -04:00
resolv.h de-duplicate dn_expand, fix return value and signature, clean up 2013-08-14 17:58:20 -04:00
sched.h add cpu affinity interfaces 2013-08-10 21:15:11 -04:00
search.h
semaphore.h
setjmp.h change jmp_buf to share an underlying type and struct tag with sigjmp_buf 2013-07-24 02:17:02 -04:00
shadow.h
signal.h fix incorrect type for new si_call_addr in siginfo_t 2013-07-24 23:17:21 -04:00
spawn.h fix some restrict-qualifier mismatches in newly added interfaces 2012-11-27 09:44:30 -05:00
stdalign.h
stdarg.h
stdbool.h stdbool.h should define __bool_true_false_are_defined even for C++ 2013-08-28 00:41:00 -04:00
stddef.h use a common definition of NULL as 0L for C and C++ 2013-01-18 20:35:26 -05:00
stdint.h change wint_t to unsigned 2013-07-22 13:05:41 -04:00
stdio.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
stdio_ext.h
stdlib.h provide declarations for strtod_l and family 2013-08-13 18:18:44 -04:00
stdnoreturn.h
string.h use a common definition of NULL as 0L for C and C++ 2013-01-18 20:35:26 -05:00
strings.h namespace conformance to latest standards in strings.h 2013-02-26 01:30:36 -05:00
stropts.h
syscall.h
sysexits.h
syslog.h
tar.h
termios.h
tgmath.h math: more correct tgmath.h type cast logic 2012-12-19 10:57:54 +01:00
time.h add CLOCK_TAI (and CLOCK_SGI_CYCLE) clock ids to time.h 2013-07-24 22:17:24 +00:00
ucontext.h fixup mcontext stuff to expost gregset_t/fpregset_t as appropriate 2012-11-25 23:04:23 -05:00
ulimit.h
unistd.h add prototypes for euidaccess/eaccess 2013-08-03 02:18:19 -04:00
utime.h
utmp.h minor compatibility fixes in utmp.h and fixing mismatch with paths.h 2013-06-27 20:00:29 -04:00
utmpx.h refactor headers, especially alltypes.h, and improve C++ ABI compat 2013-07-22 11:22:36 -04:00
values.h add legacy header values.h 2013-01-04 20:36:34 +01:00
wait.h add workaround header for wait.h remapping to sys/wait.h 2013-09-01 01:01:31 -04:00
wchar.h fix feature test macro logic for _BSD_SOURCE 2013-08-02 18:14:44 -04:00
wctype.h fix feature test macro logic for _BSD_SOURCE 2013-08-02 18:14:44 -04:00
wordexp.h