diff --git a/CMakeLists.txt b/CMakeLists.txt
index 8c8defa5ea6f..90fe6fd7117e 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -655,6 +655,7 @@ set(ZIG_STD_FILES
"special/compiler_rt/floatuntitf.zig"
"special/compiler_rt/muloti4.zig"
"special/compiler_rt/multi3.zig"
+ "special/compiler_rt/popcountdi2.zig"
"special/compiler_rt/truncXfYf2.zig"
"special/compiler_rt/udivmod.zig"
"special/compiler_rt/udivmoddi4.zig"
@@ -804,6 +805,1822 @@ set(ZIG_C_HEADER_FILES
"xtestintrin.h"
)
+set(ZIG_LIBC_FILES
+ "dummy/c.zig"
+ "dummy/c/i386.zig"
+ "dummy/c/x86_64.zig"
+ "dummy/dl.zig"
+ "dummy/m.zig"
+ "dummy/pthread.zig"
+ "dummy/rt.zig"
+ "glibc/bits/byteswap.h"
+ "glibc/bits/endian.h"
+ "glibc/bits/floatn-common.h"
+ "glibc/bits/libc-header-start.h"
+ "glibc/bits/long-double.h"
+ "glibc/bits/pthreadtypes.h"
+ "glibc/bits/select.h"
+ "glibc/bits/signum-generic.h"
+ "glibc/bits/stat.h"
+ "glibc/bits/stdint-intn.h"
+ "glibc/bits/stdlib-bsearch.h"
+ "glibc/bits/time64.h"
+ "glibc/bits/timesize.h"
+ "glibc/bits/types/__sigset_t.h"
+ "glibc/bits/types/struct_sched_param.h"
+ "glibc/bits/typesizes.h"
+ "glibc/bits/uintn-identity.h"
+ "glibc/bits/waitflags.h"
+ "glibc/bits/waitstatus.h"
+ "glibc/csu/abi-note.S"
+ "glibc/csu/abi-tag.h"
+ "glibc/csu/elf-init.c"
+ "glibc/csu/init.c"
+ "glibc/debug/stack_chk_fail_local.c"
+ "glibc/elf/elf.h"
+ "glibc/include/alloca.h"
+ "glibc/include/bits/cpu-set.h"
+ "glibc/include/bits/statx.h"
+ "glibc/include/bits/stdlib-float.h"
+ "glibc/include/bits/types.h"
+ "glibc/include/bits/types/__locale_t.h"
+ "glibc/include/bits/types/clock_t.h"
+ "glibc/include/bits/types/clockid_t.h"
+ "glibc/include/bits/types/locale_t.h"
+ "glibc/include/bits/types/sig_atomic_t.h"
+ "glibc/include/bits/types/sigset_t.h"
+ "glibc/include/bits/types/struct_itimerspec.h"
+ "glibc/include/bits/types/struct_timespec.h"
+ "glibc/include/bits/types/struct_timeval.h"
+ "glibc/include/bits/types/struct_tm.h"
+ "glibc/include/bits/types/time_t.h"
+ "glibc/include/bits/types/timer_t.h"
+ "glibc/include/config.h"
+ "glibc/include/dso_handle.h"
+ "glibc/include/elf.h"
+ "glibc/include/endian.h"
+ "glibc/include/features.h"
+ "glibc/include/gnu/stubs.h"
+ "glibc/include/libc-modules.h"
+ "glibc/include/libc-pointer-arith.h"
+ "glibc/include/libc-symbols.h"
+ "glibc/include/pthread.h"
+ "glibc/include/signal.h"
+ "glibc/include/stap-probe.h"
+ "glibc/include/stdc-predef.h"
+ "glibc/include/stdlib.h"
+ "glibc/include/sys/cdefs.h"
+ "glibc/include/sys/select.h"
+ "glibc/include/sys/signal.h"
+ "glibc/include/sys/stat.h"
+ "glibc/include/sys/types.h"
+ "glibc/include/syscall.h"
+ "glibc/io/bits/statx.h"
+ "glibc/io/fstat.c"
+ "glibc/io/fstat64.c"
+ "glibc/io/fstatat.c"
+ "glibc/io/fstatat64.c"
+ "glibc/io/lstat.c"
+ "glibc/io/lstat64.c"
+ "glibc/io/mknod.c"
+ "glibc/io/mknodat.c"
+ "glibc/io/stat.c"
+ "glibc/io/stat64.c"
+ "glibc/io/sys/stat.h"
+ "glibc/locale/bits/types/__locale_t.h"
+ "glibc/locale/bits/types/locale_t.h"
+ "glibc/misc/sys/cdefs.h"
+ "glibc/misc/sys/select.h"
+ "glibc/misc/syscall.h"
+ "glibc/nptl/pthread_atfork.c"
+ "glibc/posix/bits/cpu-set.h"
+ "glibc/posix/bits/types.h"
+ "glibc/posix/sys/types.h"
+ "glibc/signal/bits/types/sig_atomic_t.h"
+ "glibc/signal/bits/types/sigset_t.h"
+ "glibc/signal/signal.h"
+ "glibc/signal/sys/signal.h"
+ "glibc/stdlib/alloca.h"
+ "glibc/stdlib/at_quick_exit.c"
+ "glibc/stdlib/atexit.c"
+ "glibc/stdlib/bits/stdlib-float.h"
+ "glibc/stdlib/exit.h"
+ "glibc/stdlib/stdlib.h"
+ "glibc/string/endian.h"
+ "glibc/sysdeps/aarch64/bits/endian.h"
+ "glibc/sysdeps/aarch64/crti.S"
+ "glibc/sysdeps/aarch64/crtn.S"
+ "glibc/sysdeps/aarch64/dl-sysdep.h"
+ "glibc/sysdeps/aarch64/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/aarch64/start.S"
+ "glibc/sysdeps/aarch64/sysdep.h"
+ "glibc/sysdeps/alpha/bits/endian.h"
+ "glibc/sysdeps/alpha/crti.S"
+ "glibc/sysdeps/alpha/crtn.S"
+ "glibc/sysdeps/alpha/dl-dtprocnum.h"
+ "glibc/sysdeps/alpha/dl-sysdep.h"
+ "glibc/sysdeps/alpha/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/alpha/start.S"
+ "glibc/sysdeps/arm/bits/endian.h"
+ "glibc/sysdeps/arm/crti.S"
+ "glibc/sysdeps/arm/crtn.S"
+ "glibc/sysdeps/arm/dl-sysdep.h"
+ "glibc/sysdeps/arm/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/arm/start.S"
+ "glibc/sysdeps/arm/sysdep.h"
+ "glibc/sysdeps/generic/dl-dtprocnum.h"
+ "glibc/sysdeps/generic/dl-sysdep.h"
+ "glibc/sysdeps/generic/dwarf2.h"
+ "glibc/sysdeps/generic/libc-lock.h"
+ "glibc/sysdeps/generic/symbol-hacks.h"
+ "glibc/sysdeps/generic/sys/syscall.h"
+ "glibc/sysdeps/generic/sysdep.h"
+ "glibc/sysdeps/generic/tls.h"
+ "glibc/sysdeps/hppa/bits/endian.h"
+ "glibc/sysdeps/hppa/crti.S"
+ "glibc/sysdeps/hppa/crtn.S"
+ "glibc/sysdeps/hppa/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/hppa/start.S"
+ "glibc/sysdeps/hppa/sysdep.h"
+ "glibc/sysdeps/htl/bits/pthread.h"
+ "glibc/sysdeps/htl/bits/thread-shared-types.h"
+ "glibc/sysdeps/htl/libc-lockP.h"
+ "glibc/sysdeps/htl/pthread.h"
+ "glibc/sysdeps/i386/crti.S"
+ "glibc/sysdeps/i386/crtn.S"
+ "glibc/sysdeps/i386/htl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/i386/start.S"
+ "glibc/sysdeps/i386/symbol-hacks.h"
+ "glibc/sysdeps/i386/sysdep.h"
+ "glibc/sysdeps/ia64/crti.S"
+ "glibc/sysdeps/ia64/crtn.S"
+ "glibc/sysdeps/ia64/dl-dtprocnum.h"
+ "glibc/sysdeps/ia64/dl-sysdep.h"
+ "glibc/sysdeps/ia64/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/ia64/start.S"
+ "glibc/sysdeps/ia64/sysdep.h"
+ "glibc/sysdeps/init_array/crti.S"
+ "glibc/sysdeps/init_array/crtn.S"
+ "glibc/sysdeps/m68k/bits/endian.h"
+ "glibc/sysdeps/m68k/coldfire/sysdep.h"
+ "glibc/sysdeps/m68k/crti.S"
+ "glibc/sysdeps/m68k/crtn.S"
+ "glibc/sysdeps/m68k/m680x0/sysdep.h"
+ "glibc/sysdeps/m68k/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/m68k/start.S"
+ "glibc/sysdeps/m68k/symbol-hacks.h"
+ "glibc/sysdeps/m68k/sysdep.h"
+ "glibc/sysdeps/mach/hurd/bits/stat.h"
+ "glibc/sysdeps/mach/hurd/bits/typesizes.h"
+ "glibc/sysdeps/mach/hurd/dl-sysdep.h"
+ "glibc/sysdeps/mach/hurd/kernel-features.h"
+ "glibc/sysdeps/mach/i386/sysdep.h"
+ "glibc/sysdeps/mach/libc-lock.h"
+ "glibc/sysdeps/mach/sys/syscall.h"
+ "glibc/sysdeps/mach/sysdep.h"
+ "glibc/sysdeps/microblaze/bits/endian.h"
+ "glibc/sysdeps/microblaze/crti.S"
+ "glibc/sysdeps/microblaze/crtn.S"
+ "glibc/sysdeps/microblaze/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/microblaze/start.S"
+ "glibc/sysdeps/microblaze/sysdep.h"
+ "glibc/sysdeps/mips/bits/endian.h"
+ "glibc/sysdeps/mips/dl-dtprocnum.h"
+ "glibc/sysdeps/mips/mips32/crti.S"
+ "glibc/sysdeps/mips/mips32/crtn.S"
+ "glibc/sysdeps/mips/mips64/n32/crti.S"
+ "glibc/sysdeps/mips/mips64/n32/crtn.S"
+ "glibc/sysdeps/mips/mips64/n64/crti.S"
+ "glibc/sysdeps/mips/mips64/n64/crtn.S"
+ "glibc/sysdeps/mips/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/mips/start.S"
+ "glibc/sysdeps/nios2/bits/endian.h"
+ "glibc/sysdeps/nios2/crti.S"
+ "glibc/sysdeps/nios2/crtn.S"
+ "glibc/sysdeps/nios2/dl-sysdep.h"
+ "glibc/sysdeps/nios2/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/nios2/start.S"
+ "glibc/sysdeps/nios2/sysdep.h"
+ "glibc/sysdeps/nptl/bits/pthreadtypes.h"
+ "glibc/sysdeps/nptl/bits/thread-shared-types.h"
+ "glibc/sysdeps/nptl/libc-lock.h"
+ "glibc/sysdeps/nptl/libc-lockP.h"
+ "glibc/sysdeps/nptl/pthread.h"
+ "glibc/sysdeps/powerpc/bits/endian.h"
+ "glibc/sysdeps/powerpc/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/powerpc/powerpc32/crti.S"
+ "glibc/sysdeps/powerpc/powerpc32/crtn.S"
+ "glibc/sysdeps/powerpc/powerpc32/dl-dtprocnum.h"
+ "glibc/sysdeps/powerpc/powerpc32/start.S"
+ "glibc/sysdeps/powerpc/powerpc32/symbol-hacks.h"
+ "glibc/sysdeps/powerpc/powerpc32/sysdep.h"
+ "glibc/sysdeps/powerpc/powerpc64/crti.S"
+ "glibc/sysdeps/powerpc/powerpc64/crtn.S"
+ "glibc/sysdeps/powerpc/powerpc64/dl-dtprocnum.h"
+ "glibc/sysdeps/powerpc/powerpc64/start.S"
+ "glibc/sysdeps/powerpc/powerpc64/sysdep.h"
+ "glibc/sysdeps/powerpc/sysdep.h"
+ "glibc/sysdeps/riscv/bits/endian.h"
+ "glibc/sysdeps/riscv/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/riscv/start.S"
+ "glibc/sysdeps/s390/bits/endian.h"
+ "glibc/sysdeps/s390/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/s390/s390-32/crti.S"
+ "glibc/sysdeps/s390/s390-32/crtn.S"
+ "glibc/sysdeps/s390/s390-32/dl-sysdep.h"
+ "glibc/sysdeps/s390/s390-32/start.S"
+ "glibc/sysdeps/s390/s390-32/symbol-hacks.h"
+ "glibc/sysdeps/s390/s390-32/sysdep.h"
+ "glibc/sysdeps/s390/s390-64/crti.S"
+ "glibc/sysdeps/s390/s390-64/crtn.S"
+ "glibc/sysdeps/s390/s390-64/start.S"
+ "glibc/sysdeps/s390/s390-64/sysdep.h"
+ "glibc/sysdeps/sh/bits/endian.h"
+ "glibc/sysdeps/sh/crti.S"
+ "glibc/sysdeps/sh/crtn.S"
+ "glibc/sysdeps/sh/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/sh/start.S"
+ "glibc/sysdeps/sh/sysdep.h"
+ "glibc/sysdeps/sparc/bits/endian.h"
+ "glibc/sysdeps/sparc/crti.S"
+ "glibc/sysdeps/sparc/crtn.S"
+ "glibc/sysdeps/sparc/dl-dtprocnum.h"
+ "glibc/sysdeps/sparc/dl-sysdep.h"
+ "glibc/sysdeps/sparc/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/sparc/sparc32/start.S"
+ "glibc/sysdeps/sparc/sparc64/start.S"
+ "glibc/sysdeps/sparc/sysdep.h"
+ "glibc/sysdeps/unix/alpha/sysdep.h"
+ "glibc/sysdeps/unix/arm/sysdep.h"
+ "glibc/sysdeps/unix/i386/sysdep.h"
+ "glibc/sysdeps/unix/mips/mips32/sysdep.h"
+ "glibc/sysdeps/unix/mips/mips64/n32/sysdep.h"
+ "glibc/sysdeps/unix/mips/mips64/n64/sysdep.h"
+ "glibc/sysdeps/unix/mips/sysdep.h"
+ "glibc/sysdeps/unix/powerpc/sysdep.h"
+ "glibc/sysdeps/unix/sh/sysdep.h"
+ "glibc/sysdeps/unix/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/aarch64/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/aarch64/sys/elf.h"
+ "glibc/sysdeps/unix/sysv/linux/aarch64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/alpha/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/alpha/bits/typesizes.h"
+ "glibc/sysdeps/unix/sysv/linux/alpha/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/alpha/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/arm/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/arm/sys/elf.h"
+ "glibc/sysdeps/unix/sysv/linux/arm/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/bits/timex.h"
+ "glibc/sysdeps/unix/sysv/linux/dl-sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/generic/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/generic/bits/typesizes.h"
+ "glibc/sysdeps/unix/sysv/linux/generic/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/hppa/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/hppa/pthread.h"
+ "glibc/sysdeps/unix/sysv/linux/hppa/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/i386/dl-sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/i386/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/i386/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/ia64/bits/endian.h"
+ "glibc/sysdeps/unix/sysv/linux/ia64/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/ia64/dl-sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/ia64/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/ia64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/include/bits/syscall.h"
+ "glibc/sysdeps/unix/sysv/linux/include/sys/timex.h"
+ "glibc/sysdeps/unix/sysv/linux/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/m68k/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/m68k/coldfire/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/m68k/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/m68k/m680x0/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/m68k/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/microblaze/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/microblaze/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/microblaze/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/mips/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/mips/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/mips/mips32/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/mips/mips64/n32/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/mips/mips64/n64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/nios2/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/powerpc/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/powerpc/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/powerpc/powerpc32/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/powerpc/powerpc64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/riscv/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/riscv/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/bits/typesizes.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/s390-32/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/s390-64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/s390/sys/elf.h"
+ "glibc/sysdeps/unix/sysv/linux/sh/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/sh/sh4/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/sh/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/bits/typesizes.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/sparc32/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/sparc64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/sparc/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/sys/syscall.h"
+ "glibc/sysdeps/unix/sysv/linux/sys/timex.h"
+ "glibc/sysdeps/unix/sysv/linux/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/x86/bits/stat.h"
+ "glibc/sysdeps/unix/sysv/linux/x86/bits/typesizes.h"
+ "glibc/sysdeps/unix/sysv/linux/x86/sys/elf.h"
+ "glibc/sysdeps/unix/sysv/linux/x86_64/kernel-features.h"
+ "glibc/sysdeps/unix/sysv/linux/x86_64/sysdep.h"
+ "glibc/sysdeps/unix/sysv/linux/x86_64/x32/sysdep.h"
+ "glibc/sysdeps/unix/x86_64/sysdep.h"
+ "glibc/sysdeps/wordsize-32/divdi3-symbol-hacks.h"
+ "glibc/sysdeps/x86/bits/endian.h"
+ "glibc/sysdeps/x86/bits/select.h"
+ "glibc/sysdeps/x86/bits/wordsize.h"
+ "glibc/sysdeps/x86/nptl/bits/pthreadtypes-arch.h"
+ "glibc/sysdeps/x86/sysdep.h"
+ "glibc/sysdeps/x86_64/crti.S"
+ "glibc/sysdeps/x86_64/crtn.S"
+ "glibc/sysdeps/x86_64/start.S"
+ "glibc/sysdeps/x86_64/sysdep.h"
+ "glibc/sysdeps/x86_64/x32/symbol-hacks.h"
+ "glibc/sysdeps/x86_64/x32/sysdep.h"
+ "glibc/time/bits/types/clock_t.h"
+ "glibc/time/bits/types/clockid_t.h"
+ "glibc/time/bits/types/struct_itimerspec.h"
+ "glibc/time/bits/types/struct_timespec.h"
+ "glibc/time/bits/types/struct_timeval.h"
+ "glibc/time/bits/types/struct_tm.h"
+ "glibc/time/bits/types/time_t.h"
+ "glibc/time/bits/types/timer_t.h"
+ "include/aarch64-linux-gnu/asm/bitsperlong.h"
+ "include/aarch64-linux-gnu/asm/unistd.h"
+ "include/aarch64-linux-gnu/bits/endian.h"
+ "include/aarch64-linux-gnu/bits/fcntl.h"
+ "include/aarch64-linux-gnu/bits/fenv.h"
+ "include/aarch64-linux-gnu/bits/floatn.h"
+ "include/aarch64-linux-gnu/bits/fp-fast.h"
+ "include/aarch64-linux-gnu/bits/hwcap.h"
+ "include/aarch64-linux-gnu/bits/ipc.h"
+ "include/aarch64-linux-gnu/bits/link.h"
+ "include/aarch64-linux-gnu/bits/local_lim.h"
+ "include/aarch64-linux-gnu/bits/long-double.h"
+ "include/aarch64-linux-gnu/bits/procfs.h"
+ "include/aarch64-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/aarch64-linux-gnu/bits/semaphore.h"
+ "include/aarch64-linux-gnu/bits/setjmp.h"
+ "include/aarch64-linux-gnu/bits/sigstack.h"
+ "include/aarch64-linux-gnu/bits/stat.h"
+ "include/aarch64-linux-gnu/bits/statfs.h"
+ "include/aarch64-linux-gnu/bits/typesizes.h"
+ "include/aarch64-linux-gnu/bits/wordsize.h"
+ "include/aarch64-linux-gnu/fpu_control.h"
+ "include/aarch64-linux-gnu/gnu/lib-names-lp64.h"
+ "include/aarch64-linux-gnu/gnu/lib-names.h"
+ "include/aarch64-linux-gnu/gnu/stubs-lp64.h"
+ "include/aarch64-linux-gnu/gnu/stubs.h"
+ "include/aarch64-linux-gnu/ieee754.h"
+ "include/aarch64-linux-gnu/sys/elf.h"
+ "include/aarch64-linux-gnu/sys/ptrace.h"
+ "include/aarch64-linux-gnu/sys/ucontext.h"
+ "include/aarch64-linux-gnu/sys/user.h"
+ "include/aarch64_be-linux-gnu/asm/bitsperlong.h"
+ "include/aarch64_be-linux-gnu/asm/unistd.h"
+ "include/aarch64_be-linux-gnu/bits/endian.h"
+ "include/aarch64_be-linux-gnu/bits/fcntl.h"
+ "include/aarch64_be-linux-gnu/bits/fenv.h"
+ "include/aarch64_be-linux-gnu/bits/floatn.h"
+ "include/aarch64_be-linux-gnu/bits/fp-fast.h"
+ "include/aarch64_be-linux-gnu/bits/hwcap.h"
+ "include/aarch64_be-linux-gnu/bits/ipc.h"
+ "include/aarch64_be-linux-gnu/bits/link.h"
+ "include/aarch64_be-linux-gnu/bits/local_lim.h"
+ "include/aarch64_be-linux-gnu/bits/long-double.h"
+ "include/aarch64_be-linux-gnu/bits/procfs.h"
+ "include/aarch64_be-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/aarch64_be-linux-gnu/bits/semaphore.h"
+ "include/aarch64_be-linux-gnu/bits/setjmp.h"
+ "include/aarch64_be-linux-gnu/bits/sigstack.h"
+ "include/aarch64_be-linux-gnu/bits/stat.h"
+ "include/aarch64_be-linux-gnu/bits/statfs.h"
+ "include/aarch64_be-linux-gnu/bits/typesizes.h"
+ "include/aarch64_be-linux-gnu/bits/wordsize.h"
+ "include/aarch64_be-linux-gnu/fpu_control.h"
+ "include/aarch64_be-linux-gnu/gnu/lib-names-lp64_be.h"
+ "include/aarch64_be-linux-gnu/gnu/lib-names.h"
+ "include/aarch64_be-linux-gnu/gnu/stubs-lp64_be.h"
+ "include/aarch64_be-linux-gnu/gnu/stubs.h"
+ "include/aarch64_be-linux-gnu/ieee754.h"
+ "include/aarch64_be-linux-gnu/sys/elf.h"
+ "include/aarch64_be-linux-gnu/sys/ptrace.h"
+ "include/aarch64_be-linux-gnu/sys/ucontext.h"
+ "include/aarch64_be-linux-gnu/sys/user.h"
+ "include/arm-linux-gnueabi/asm/unistd.h"
+ "include/arm-linux-gnueabi/bits/endian.h"
+ "include/arm-linux-gnueabi/bits/fcntl.h"
+ "include/arm-linux-gnueabi/bits/fenv.h"
+ "include/arm-linux-gnueabi/bits/floatn.h"
+ "include/arm-linux-gnueabi/bits/hwcap.h"
+ "include/arm-linux-gnueabi/bits/link.h"
+ "include/arm-linux-gnueabi/bits/long-double.h"
+ "include/arm-linux-gnueabi/bits/procfs-id.h"
+ "include/arm-linux-gnueabi/bits/procfs.h"
+ "include/arm-linux-gnueabi/bits/pthreadtypes-arch.h"
+ "include/arm-linux-gnueabi/bits/semaphore.h"
+ "include/arm-linux-gnueabi/bits/setjmp.h"
+ "include/arm-linux-gnueabi/bits/shmlba.h"
+ "include/arm-linux-gnueabi/bits/stat.h"
+ "include/arm-linux-gnueabi/bits/wordsize.h"
+ "include/arm-linux-gnueabi/fpu_control.h"
+ "include/arm-linux-gnueabi/gnu/lib-names.h"
+ "include/arm-linux-gnueabi/gnu/stubs.h"
+ "include/arm-linux-gnueabi/sys/ptrace.h"
+ "include/arm-linux-gnueabi/sys/ucontext.h"
+ "include/arm-linux-gnueabi/sys/user.h"
+ "include/arm-linux-gnueabihf/asm/unistd.h"
+ "include/arm-linux-gnueabihf/bits/endian.h"
+ "include/arm-linux-gnueabihf/bits/fcntl.h"
+ "include/arm-linux-gnueabihf/bits/fenv.h"
+ "include/arm-linux-gnueabihf/bits/floatn.h"
+ "include/arm-linux-gnueabihf/bits/hwcap.h"
+ "include/arm-linux-gnueabihf/bits/link.h"
+ "include/arm-linux-gnueabihf/bits/long-double.h"
+ "include/arm-linux-gnueabihf/bits/procfs-id.h"
+ "include/arm-linux-gnueabihf/bits/procfs.h"
+ "include/arm-linux-gnueabihf/bits/pthreadtypes-arch.h"
+ "include/arm-linux-gnueabihf/bits/semaphore.h"
+ "include/arm-linux-gnueabihf/bits/setjmp.h"
+ "include/arm-linux-gnueabihf/bits/shmlba.h"
+ "include/arm-linux-gnueabihf/bits/stat.h"
+ "include/arm-linux-gnueabihf/bits/wordsize.h"
+ "include/arm-linux-gnueabihf/fpu_control.h"
+ "include/arm-linux-gnueabihf/gnu/lib-names.h"
+ "include/arm-linux-gnueabihf/gnu/stubs.h"
+ "include/arm-linux-gnueabihf/sys/ptrace.h"
+ "include/arm-linux-gnueabihf/sys/ucontext.h"
+ "include/arm-linux-gnueabihf/sys/user.h"
+ "include/armeb-linux-gnueabi/asm/unistd.h"
+ "include/armeb-linux-gnueabi/bits/endian.h"
+ "include/armeb-linux-gnueabi/bits/fcntl.h"
+ "include/armeb-linux-gnueabi/bits/fenv.h"
+ "include/armeb-linux-gnueabi/bits/floatn.h"
+ "include/armeb-linux-gnueabi/bits/hwcap.h"
+ "include/armeb-linux-gnueabi/bits/link.h"
+ "include/armeb-linux-gnueabi/bits/long-double.h"
+ "include/armeb-linux-gnueabi/bits/procfs-id.h"
+ "include/armeb-linux-gnueabi/bits/procfs.h"
+ "include/armeb-linux-gnueabi/bits/pthreadtypes-arch.h"
+ "include/armeb-linux-gnueabi/bits/semaphore.h"
+ "include/armeb-linux-gnueabi/bits/setjmp.h"
+ "include/armeb-linux-gnueabi/bits/shmlba.h"
+ "include/armeb-linux-gnueabi/bits/stat.h"
+ "include/armeb-linux-gnueabi/bits/wordsize.h"
+ "include/armeb-linux-gnueabi/fpu_control.h"
+ "include/armeb-linux-gnueabi/gnu/lib-names.h"
+ "include/armeb-linux-gnueabi/gnu/stubs.h"
+ "include/armeb-linux-gnueabi/sys/ptrace.h"
+ "include/armeb-linux-gnueabi/sys/ucontext.h"
+ "include/armeb-linux-gnueabi/sys/user.h"
+ "include/armeb-linux-gnueabihf/asm/unistd.h"
+ "include/armeb-linux-gnueabihf/bits/endian.h"
+ "include/armeb-linux-gnueabihf/bits/fcntl.h"
+ "include/armeb-linux-gnueabihf/bits/fenv.h"
+ "include/armeb-linux-gnueabihf/bits/floatn.h"
+ "include/armeb-linux-gnueabihf/bits/hwcap.h"
+ "include/armeb-linux-gnueabihf/bits/link.h"
+ "include/armeb-linux-gnueabihf/bits/long-double.h"
+ "include/armeb-linux-gnueabihf/bits/procfs-id.h"
+ "include/armeb-linux-gnueabihf/bits/procfs.h"
+ "include/armeb-linux-gnueabihf/bits/pthreadtypes-arch.h"
+ "include/armeb-linux-gnueabihf/bits/semaphore.h"
+ "include/armeb-linux-gnueabihf/bits/setjmp.h"
+ "include/armeb-linux-gnueabihf/bits/shmlba.h"
+ "include/armeb-linux-gnueabihf/bits/stat.h"
+ "include/armeb-linux-gnueabihf/bits/wordsize.h"
+ "include/armeb-linux-gnueabihf/fpu_control.h"
+ "include/armeb-linux-gnueabihf/gnu/lib-names.h"
+ "include/armeb-linux-gnueabihf/gnu/stubs.h"
+ "include/armeb-linux-gnueabihf/sys/ptrace.h"
+ "include/armeb-linux-gnueabihf/sys/ucontext.h"
+ "include/armeb-linux-gnueabihf/sys/user.h"
+ "include/generic-glibc/a.out.h"
+ "include/generic-glibc/aio.h"
+ "include/generic-glibc/aliases.h"
+ "include/generic-glibc/alloca.h"
+ "include/generic-glibc/ar.h"
+ "include/generic-glibc/argp.h"
+ "include/generic-glibc/argz.h"
+ "include/generic-glibc/arpa/ftp.h"
+ "include/generic-glibc/arpa/inet.h"
+ "include/generic-glibc/arpa/nameser.h"
+ "include/generic-glibc/arpa/nameser_compat.h"
+ "include/generic-glibc/arpa/telnet.h"
+ "include/generic-glibc/arpa/tftp.h"
+ "include/generic-glibc/asm-generic/bitsperlong.h"
+ "include/generic-glibc/asm-generic/unistd.h"
+ "include/generic-glibc/asm/unistd_32.h"
+ "include/generic-glibc/asm/unistd_64.h"
+ "include/generic-glibc/assert.h"
+ "include/generic-glibc/bits/a.out.h"
+ "include/generic-glibc/bits/argp-ldbl.h"
+ "include/generic-glibc/bits/byteswap.h"
+ "include/generic-glibc/bits/cmathcalls.h"
+ "include/generic-glibc/bits/confname.h"
+ "include/generic-glibc/bits/cpu-set.h"
+ "include/generic-glibc/bits/dirent.h"
+ "include/generic-glibc/bits/dlfcn.h"
+ "include/generic-glibc/bits/elfclass.h"
+ "include/generic-glibc/bits/endian.h"
+ "include/generic-glibc/bits/environments.h"
+ "include/generic-glibc/bits/epoll.h"
+ "include/generic-glibc/bits/err-ldbl.h"
+ "include/generic-glibc/bits/errno.h"
+ "include/generic-glibc/bits/error-ldbl.h"
+ "include/generic-glibc/bits/error.h"
+ "include/generic-glibc/bits/eventfd.h"
+ "include/generic-glibc/bits/fcntl-linux.h"
+ "include/generic-glibc/bits/fcntl.h"
+ "include/generic-glibc/bits/fcntl2.h"
+ "include/generic-glibc/bits/fenv.h"
+ "include/generic-glibc/bits/fenvinline.h"
+ "include/generic-glibc/bits/floatn-common.h"
+ "include/generic-glibc/bits/floatn.h"
+ "include/generic-glibc/bits/flt-eval-method.h"
+ "include/generic-glibc/bits/fp-fast.h"
+ "include/generic-glibc/bits/fp-logb.h"
+ "include/generic-glibc/bits/getopt_core.h"
+ "include/generic-glibc/bits/getopt_ext.h"
+ "include/generic-glibc/bits/getopt_posix.h"
+ "include/generic-glibc/bits/hwcap.h"
+ "include/generic-glibc/bits/in.h"
+ "include/generic-glibc/bits/indirect-return.h"
+ "include/generic-glibc/bits/initspin.h"
+ "include/generic-glibc/bits/inotify.h"
+ "include/generic-glibc/bits/ioctl-types.h"
+ "include/generic-glibc/bits/ioctls.h"
+ "include/generic-glibc/bits/ipc.h"
+ "include/generic-glibc/bits/ipctypes.h"
+ "include/generic-glibc/bits/iscanonical.h"
+ "include/generic-glibc/bits/libc-header-start.h"
+ "include/generic-glibc/bits/libm-simd-decl-stubs.h"
+ "include/generic-glibc/bits/link.h"
+ "include/generic-glibc/bits/local_lim.h"
+ "include/generic-glibc/bits/locale.h"
+ "include/generic-glibc/bits/long-double.h"
+ "include/generic-glibc/bits/math-finite.h"
+ "include/generic-glibc/bits/math-vector-fortran.h"
+ "include/generic-glibc/bits/math-vector.h"
+ "include/generic-glibc/bits/mathcalls-helper-functions.h"
+ "include/generic-glibc/bits/mathcalls-narrow.h"
+ "include/generic-glibc/bits/mathcalls.h"
+ "include/generic-glibc/bits/mathdef.h"
+ "include/generic-glibc/bits/mathinline.h"
+ "include/generic-glibc/bits/mman-linux.h"
+ "include/generic-glibc/bits/mman-map-flags-generic.h"
+ "include/generic-glibc/bits/mman-shared.h"
+ "include/generic-glibc/bits/mman.h"
+ "include/generic-glibc/bits/monetary-ldbl.h"
+ "include/generic-glibc/bits/mqueue.h"
+ "include/generic-glibc/bits/mqueue2.h"
+ "include/generic-glibc/bits/msq-pad.h"
+ "include/generic-glibc/bits/msq.h"
+ "include/generic-glibc/bits/netdb.h"
+ "include/generic-glibc/bits/param.h"
+ "include/generic-glibc/bits/poll.h"
+ "include/generic-glibc/bits/poll2.h"
+ "include/generic-glibc/bits/posix1_lim.h"
+ "include/generic-glibc/bits/posix2_lim.h"
+ "include/generic-glibc/bits/posix_opt.h"
+ "include/generic-glibc/bits/ppc.h"
+ "include/generic-glibc/bits/printf-ldbl.h"
+ "include/generic-glibc/bits/procfs-extra.h"
+ "include/generic-glibc/bits/procfs-id.h"
+ "include/generic-glibc/bits/procfs-prregset.h"
+ "include/generic-glibc/bits/procfs.h"
+ "include/generic-glibc/bits/pthreadtypes-arch.h"
+ "include/generic-glibc/bits/pthreadtypes.h"
+ "include/generic-glibc/bits/ptrace-shared.h"
+ "include/generic-glibc/bits/resource.h"
+ "include/generic-glibc/bits/sched.h"
+ "include/generic-glibc/bits/select.h"
+ "include/generic-glibc/bits/select2.h"
+ "include/generic-glibc/bits/sem-pad.h"
+ "include/generic-glibc/bits/sem.h"
+ "include/generic-glibc/bits/semaphore.h"
+ "include/generic-glibc/bits/setjmp.h"
+ "include/generic-glibc/bits/setjmp2.h"
+ "include/generic-glibc/bits/shm-pad.h"
+ "include/generic-glibc/bits/shm.h"
+ "include/generic-glibc/bits/shmlba.h"
+ "include/generic-glibc/bits/sigaction.h"
+ "include/generic-glibc/bits/sigcontext.h"
+ "include/generic-glibc/bits/sigevent-consts.h"
+ "include/generic-glibc/bits/siginfo-arch.h"
+ "include/generic-glibc/bits/siginfo-consts-arch.h"
+ "include/generic-glibc/bits/siginfo-consts.h"
+ "include/generic-glibc/bits/signalfd.h"
+ "include/generic-glibc/bits/signum-generic.h"
+ "include/generic-glibc/bits/signum.h"
+ "include/generic-glibc/bits/sigstack.h"
+ "include/generic-glibc/bits/sigthread.h"
+ "include/generic-glibc/bits/sockaddr.h"
+ "include/generic-glibc/bits/socket.h"
+ "include/generic-glibc/bits/socket2.h"
+ "include/generic-glibc/bits/socket_type.h"
+ "include/generic-glibc/bits/ss_flags.h"
+ "include/generic-glibc/bits/stab.def"
+ "include/generic-glibc/bits/stat.h"
+ "include/generic-glibc/bits/statfs.h"
+ "include/generic-glibc/bits/statvfs.h"
+ "include/generic-glibc/bits/statx.h"
+ "include/generic-glibc/bits/stdint-intn.h"
+ "include/generic-glibc/bits/stdint-uintn.h"
+ "include/generic-glibc/bits/stdio-ldbl.h"
+ "include/generic-glibc/bits/stdio.h"
+ "include/generic-glibc/bits/stdio2.h"
+ "include/generic-glibc/bits/stdio_lim.h"
+ "include/generic-glibc/bits/stdlib-bsearch.h"
+ "include/generic-glibc/bits/stdlib-float.h"
+ "include/generic-glibc/bits/stdlib-ldbl.h"
+ "include/generic-glibc/bits/stdlib.h"
+ "include/generic-glibc/bits/string_fortified.h"
+ "include/generic-glibc/bits/strings_fortified.h"
+ "include/generic-glibc/bits/stropts.h"
+ "include/generic-glibc/bits/sys_errlist.h"
+ "include/generic-glibc/bits/syscall.h"
+ "include/generic-glibc/bits/sysctl.h"
+ "include/generic-glibc/bits/syslog-ldbl.h"
+ "include/generic-glibc/bits/syslog-path.h"
+ "include/generic-glibc/bits/syslog.h"
+ "include/generic-glibc/bits/sysmacros.h"
+ "include/generic-glibc/bits/termios-baud.h"
+ "include/generic-glibc/bits/termios-c_cc.h"
+ "include/generic-glibc/bits/termios-c_cflag.h"
+ "include/generic-glibc/bits/termios-c_iflag.h"
+ "include/generic-glibc/bits/termios-c_lflag.h"
+ "include/generic-glibc/bits/termios-c_oflag.h"
+ "include/generic-glibc/bits/termios-misc.h"
+ "include/generic-glibc/bits/termios-struct.h"
+ "include/generic-glibc/bits/termios-tcflow.h"
+ "include/generic-glibc/bits/termios.h"
+ "include/generic-glibc/bits/thread-shared-types.h"
+ "include/generic-glibc/bits/time.h"
+ "include/generic-glibc/bits/time64.h"
+ "include/generic-glibc/bits/timerfd.h"
+ "include/generic-glibc/bits/timesize.h"
+ "include/generic-glibc/bits/timex.h"
+ "include/generic-glibc/bits/types.h"
+ "include/generic-glibc/bits/types/FILE.h"
+ "include/generic-glibc/bits/types/__FILE.h"
+ "include/generic-glibc/bits/types/__fpos64_t.h"
+ "include/generic-glibc/bits/types/__fpos_t.h"
+ "include/generic-glibc/bits/types/__locale_t.h"
+ "include/generic-glibc/bits/types/__mbstate_t.h"
+ "include/generic-glibc/bits/types/__sigset_t.h"
+ "include/generic-glibc/bits/types/__sigval_t.h"
+ "include/generic-glibc/bits/types/clock_t.h"
+ "include/generic-glibc/bits/types/clockid_t.h"
+ "include/generic-glibc/bits/types/cookie_io_functions_t.h"
+ "include/generic-glibc/bits/types/error_t.h"
+ "include/generic-glibc/bits/types/locale_t.h"
+ "include/generic-glibc/bits/types/mbstate_t.h"
+ "include/generic-glibc/bits/types/res_state.h"
+ "include/generic-glibc/bits/types/sig_atomic_t.h"
+ "include/generic-glibc/bits/types/sigevent_t.h"
+ "include/generic-glibc/bits/types/siginfo_t.h"
+ "include/generic-glibc/bits/types/sigset_t.h"
+ "include/generic-glibc/bits/types/sigval_t.h"
+ "include/generic-glibc/bits/types/stack_t.h"
+ "include/generic-glibc/bits/types/struct_FILE.h"
+ "include/generic-glibc/bits/types/struct_iovec.h"
+ "include/generic-glibc/bits/types/struct_itimerspec.h"
+ "include/generic-glibc/bits/types/struct_osockaddr.h"
+ "include/generic-glibc/bits/types/struct_rusage.h"
+ "include/generic-glibc/bits/types/struct_sched_param.h"
+ "include/generic-glibc/bits/types/struct_sigstack.h"
+ "include/generic-glibc/bits/types/struct_timespec.h"
+ "include/generic-glibc/bits/types/struct_timeval.h"
+ "include/generic-glibc/bits/types/struct_tm.h"
+ "include/generic-glibc/bits/types/time_t.h"
+ "include/generic-glibc/bits/types/timer_t.h"
+ "include/generic-glibc/bits/types/wint_t.h"
+ "include/generic-glibc/bits/typesizes.h"
+ "include/generic-glibc/bits/uintn-identity.h"
+ "include/generic-glibc/bits/uio-ext.h"
+ "include/generic-glibc/bits/uio_lim.h"
+ "include/generic-glibc/bits/unistd.h"
+ "include/generic-glibc/bits/unistd_ext.h"
+ "include/generic-glibc/bits/utmp.h"
+ "include/generic-glibc/bits/utmpx.h"
+ "include/generic-glibc/bits/utsname.h"
+ "include/generic-glibc/bits/waitflags.h"
+ "include/generic-glibc/bits/waitstatus.h"
+ "include/generic-glibc/bits/wchar-ldbl.h"
+ "include/generic-glibc/bits/wchar.h"
+ "include/generic-glibc/bits/wchar2.h"
+ "include/generic-glibc/bits/wctype-wchar.h"
+ "include/generic-glibc/bits/wordsize.h"
+ "include/generic-glibc/bits/xopen_lim.h"
+ "include/generic-glibc/bits/xtitypes.h"
+ "include/generic-glibc/byteswap.h"
+ "include/generic-glibc/complex.h"
+ "include/generic-glibc/cpio.h"
+ "include/generic-glibc/crypt.h"
+ "include/generic-glibc/ctype.h"
+ "include/generic-glibc/dirent.h"
+ "include/generic-glibc/dlfcn.h"
+ "include/generic-glibc/elf.h"
+ "include/generic-glibc/endian.h"
+ "include/generic-glibc/envz.h"
+ "include/generic-glibc/err.h"
+ "include/generic-glibc/errno.h"
+ "include/generic-glibc/error.h"
+ "include/generic-glibc/execinfo.h"
+ "include/generic-glibc/fcntl.h"
+ "include/generic-glibc/features.h"
+ "include/generic-glibc/fenv.h"
+ "include/generic-glibc/fmtmsg.h"
+ "include/generic-glibc/fnmatch.h"
+ "include/generic-glibc/fpregdef.h"
+ "include/generic-glibc/fpu_control.h"
+ "include/generic-glibc/fstab.h"
+ "include/generic-glibc/fts.h"
+ "include/generic-glibc/ftw.h"
+ "include/generic-glibc/gconv.h"
+ "include/generic-glibc/getopt.h"
+ "include/generic-glibc/glob.h"
+ "include/generic-glibc/gnu-versions.h"
+ "include/generic-glibc/gnu/lib-names-32.h"
+ "include/generic-glibc/gnu/lib-names-hard.h"
+ "include/generic-glibc/gnu/lib-names-n32_hard.h"
+ "include/generic-glibc/gnu/lib-names-n64_hard.h"
+ "include/generic-glibc/gnu/lib-names-o32_hard.h"
+ "include/generic-glibc/gnu/lib-names-soft.h"
+ "include/generic-glibc/gnu/lib-names.h"
+ "include/generic-glibc/gnu/libc-version.h"
+ "include/generic-glibc/gnu/stubs-32.h"
+ "include/generic-glibc/gnu/stubs-hard.h"
+ "include/generic-glibc/gnu/stubs-n32_hard.h"
+ "include/generic-glibc/gnu/stubs-n64_hard.h"
+ "include/generic-glibc/gnu/stubs-o32_hard.h"
+ "include/generic-glibc/gnu/stubs-soft.h"
+ "include/generic-glibc/gnu/stubs.h"
+ "include/generic-glibc/grp.h"
+ "include/generic-glibc/gshadow.h"
+ "include/generic-glibc/iconv.h"
+ "include/generic-glibc/ieee754.h"
+ "include/generic-glibc/ifaddrs.h"
+ "include/generic-glibc/inttypes.h"
+ "include/generic-glibc/langinfo.h"
+ "include/generic-glibc/lastlog.h"
+ "include/generic-glibc/libgen.h"
+ "include/generic-glibc/libintl.h"
+ "include/generic-glibc/limits.h"
+ "include/generic-glibc/link.h"
+ "include/generic-glibc/locale.h"
+ "include/generic-glibc/malloc.h"
+ "include/generic-glibc/math.h"
+ "include/generic-glibc/mcheck.h"
+ "include/generic-glibc/memory.h"
+ "include/generic-glibc/mntent.h"
+ "include/generic-glibc/monetary.h"
+ "include/generic-glibc/mqueue.h"
+ "include/generic-glibc/net/ethernet.h"
+ "include/generic-glibc/net/if.h"
+ "include/generic-glibc/net/if_arp.h"
+ "include/generic-glibc/net/if_packet.h"
+ "include/generic-glibc/net/if_ppp.h"
+ "include/generic-glibc/net/if_shaper.h"
+ "include/generic-glibc/net/if_slip.h"
+ "include/generic-glibc/net/ppp-comp.h"
+ "include/generic-glibc/net/ppp_defs.h"
+ "include/generic-glibc/net/route.h"
+ "include/generic-glibc/netash/ash.h"
+ "include/generic-glibc/netatalk/at.h"
+ "include/generic-glibc/netax25/ax25.h"
+ "include/generic-glibc/netdb.h"
+ "include/generic-glibc/neteconet/ec.h"
+ "include/generic-glibc/netinet/ether.h"
+ "include/generic-glibc/netinet/icmp6.h"
+ "include/generic-glibc/netinet/if_ether.h"
+ "include/generic-glibc/netinet/if_fddi.h"
+ "include/generic-glibc/netinet/if_tr.h"
+ "include/generic-glibc/netinet/igmp.h"
+ "include/generic-glibc/netinet/in.h"
+ "include/generic-glibc/netinet/in_systm.h"
+ "include/generic-glibc/netinet/ip.h"
+ "include/generic-glibc/netinet/ip6.h"
+ "include/generic-glibc/netinet/ip_icmp.h"
+ "include/generic-glibc/netinet/tcp.h"
+ "include/generic-glibc/netinet/udp.h"
+ "include/generic-glibc/netipx/ipx.h"
+ "include/generic-glibc/netiucv/iucv.h"
+ "include/generic-glibc/netpacket/packet.h"
+ "include/generic-glibc/netrom/netrom.h"
+ "include/generic-glibc/netrose/rose.h"
+ "include/generic-glibc/nfs/nfs.h"
+ "include/generic-glibc/nl_types.h"
+ "include/generic-glibc/nss.h"
+ "include/generic-glibc/obstack.h"
+ "include/generic-glibc/paths.h"
+ "include/generic-glibc/poll.h"
+ "include/generic-glibc/printf.h"
+ "include/generic-glibc/proc_service.h"
+ "include/generic-glibc/protocols/routed.h"
+ "include/generic-glibc/protocols/rwhod.h"
+ "include/generic-glibc/protocols/talkd.h"
+ "include/generic-glibc/protocols/timed.h"
+ "include/generic-glibc/pthread.h"
+ "include/generic-glibc/pty.h"
+ "include/generic-glibc/pwd.h"
+ "include/generic-glibc/re_comp.h"
+ "include/generic-glibc/regdef.h"
+ "include/generic-glibc/regex.h"
+ "include/generic-glibc/regexp.h"
+ "include/generic-glibc/resolv.h"
+ "include/generic-glibc/rpc/netdb.h"
+ "include/generic-glibc/sched.h"
+ "include/generic-glibc/scsi/scsi.h"
+ "include/generic-glibc/scsi/scsi_ioctl.h"
+ "include/generic-glibc/scsi/sg.h"
+ "include/generic-glibc/search.h"
+ "include/generic-glibc/semaphore.h"
+ "include/generic-glibc/setjmp.h"
+ "include/generic-glibc/sgidefs.h"
+ "include/generic-glibc/sgtty.h"
+ "include/generic-glibc/shadow.h"
+ "include/generic-glibc/signal.h"
+ "include/generic-glibc/spawn.h"
+ "include/generic-glibc/stab.h"
+ "include/generic-glibc/stdc-predef.h"
+ "include/generic-glibc/stdint.h"
+ "include/generic-glibc/stdio.h"
+ "include/generic-glibc/stdio_ext.h"
+ "include/generic-glibc/stdlib.h"
+ "include/generic-glibc/string.h"
+ "include/generic-glibc/strings.h"
+ "include/generic-glibc/stropts.h"
+ "include/generic-glibc/sys/acct.h"
+ "include/generic-glibc/sys/asm.h"
+ "include/generic-glibc/sys/auxv.h"
+ "include/generic-glibc/sys/bitypes.h"
+ "include/generic-glibc/sys/cachectl.h"
+ "include/generic-glibc/sys/cdefs.h"
+ "include/generic-glibc/sys/debugreg.h"
+ "include/generic-glibc/sys/dir.h"
+ "include/generic-glibc/sys/elf.h"
+ "include/generic-glibc/sys/epoll.h"
+ "include/generic-glibc/sys/errno.h"
+ "include/generic-glibc/sys/eventfd.h"
+ "include/generic-glibc/sys/fanotify.h"
+ "include/generic-glibc/sys/fcntl.h"
+ "include/generic-glibc/sys/file.h"
+ "include/generic-glibc/sys/fpregdef.h"
+ "include/generic-glibc/sys/fsuid.h"
+ "include/generic-glibc/sys/gmon.h"
+ "include/generic-glibc/sys/gmon_out.h"
+ "include/generic-glibc/sys/inotify.h"
+ "include/generic-glibc/sys/io.h"
+ "include/generic-glibc/sys/ioctl.h"
+ "include/generic-glibc/sys/ipc.h"
+ "include/generic-glibc/sys/kd.h"
+ "include/generic-glibc/sys/klog.h"
+ "include/generic-glibc/sys/mman.h"
+ "include/generic-glibc/sys/mount.h"
+ "include/generic-glibc/sys/msg.h"
+ "include/generic-glibc/sys/mtio.h"
+ "include/generic-glibc/sys/param.h"
+ "include/generic-glibc/sys/pci.h"
+ "include/generic-glibc/sys/perm.h"
+ "include/generic-glibc/sys/personality.h"
+ "include/generic-glibc/sys/platform/ppc.h"
+ "include/generic-glibc/sys/poll.h"
+ "include/generic-glibc/sys/prctl.h"
+ "include/generic-glibc/sys/procfs.h"
+ "include/generic-glibc/sys/profil.h"
+ "include/generic-glibc/sys/ptrace.h"
+ "include/generic-glibc/sys/queue.h"
+ "include/generic-glibc/sys/quota.h"
+ "include/generic-glibc/sys/random.h"
+ "include/generic-glibc/sys/raw.h"
+ "include/generic-glibc/sys/reboot.h"
+ "include/generic-glibc/sys/reg.h"
+ "include/generic-glibc/sys/regdef.h"
+ "include/generic-glibc/sys/resource.h"
+ "include/generic-glibc/sys/select.h"
+ "include/generic-glibc/sys/sem.h"
+ "include/generic-glibc/sys/sendfile.h"
+ "include/generic-glibc/sys/shm.h"
+ "include/generic-glibc/sys/signal.h"
+ "include/generic-glibc/sys/signalfd.h"
+ "include/generic-glibc/sys/socket.h"
+ "include/generic-glibc/sys/socketvar.h"
+ "include/generic-glibc/sys/soundcard.h"
+ "include/generic-glibc/sys/stat.h"
+ "include/generic-glibc/sys/statfs.h"
+ "include/generic-glibc/sys/statvfs.h"
+ "include/generic-glibc/sys/stropts.h"
+ "include/generic-glibc/sys/swap.h"
+ "include/generic-glibc/sys/syscall.h"
+ "include/generic-glibc/sys/sysctl.h"
+ "include/generic-glibc/sys/sysinfo.h"
+ "include/generic-glibc/sys/syslog.h"
+ "include/generic-glibc/sys/sysmacros.h"
+ "include/generic-glibc/sys/sysmips.h"
+ "include/generic-glibc/sys/tas.h"
+ "include/generic-glibc/sys/termios.h"
+ "include/generic-glibc/sys/time.h"
+ "include/generic-glibc/sys/timeb.h"
+ "include/generic-glibc/sys/timerfd.h"
+ "include/generic-glibc/sys/times.h"
+ "include/generic-glibc/sys/timex.h"
+ "include/generic-glibc/sys/ttychars.h"
+ "include/generic-glibc/sys/ttydefaults.h"
+ "include/generic-glibc/sys/types.h"
+ "include/generic-glibc/sys/ucontext.h"
+ "include/generic-glibc/sys/uio.h"
+ "include/generic-glibc/sys/un.h"
+ "include/generic-glibc/sys/unistd.h"
+ "include/generic-glibc/sys/user.h"
+ "include/generic-glibc/sys/utsname.h"
+ "include/generic-glibc/sys/vfs.h"
+ "include/generic-glibc/sys/vlimit.h"
+ "include/generic-glibc/sys/vm86.h"
+ "include/generic-glibc/sys/vt.h"
+ "include/generic-glibc/sys/vtimes.h"
+ "include/generic-glibc/sys/wait.h"
+ "include/generic-glibc/sys/xattr.h"
+ "include/generic-glibc/syscall.h"
+ "include/generic-glibc/sysexits.h"
+ "include/generic-glibc/syslog.h"
+ "include/generic-glibc/tar.h"
+ "include/generic-glibc/termio.h"
+ "include/generic-glibc/termios.h"
+ "include/generic-glibc/tgmath.h"
+ "include/generic-glibc/thread_db.h"
+ "include/generic-glibc/threads.h"
+ "include/generic-glibc/time.h"
+ "include/generic-glibc/ttyent.h"
+ "include/generic-glibc/uchar.h"
+ "include/generic-glibc/ucontext.h"
+ "include/generic-glibc/ulimit.h"
+ "include/generic-glibc/unistd.h"
+ "include/generic-glibc/utime.h"
+ "include/generic-glibc/utmp.h"
+ "include/generic-glibc/utmpx.h"
+ "include/generic-glibc/values.h"
+ "include/generic-glibc/wait.h"
+ "include/generic-glibc/wchar.h"
+ "include/generic-glibc/wctype.h"
+ "include/generic-glibc/wordexp.h"
+ "include/i386-linux-gnu/asm/unistd.h"
+ "include/i386-linux-gnu/bits/a.out.h"
+ "include/i386-linux-gnu/bits/endian.h"
+ "include/i386-linux-gnu/bits/environments.h"
+ "include/i386-linux-gnu/bits/epoll.h"
+ "include/i386-linux-gnu/bits/fcntl.h"
+ "include/i386-linux-gnu/bits/fenv.h"
+ "include/i386-linux-gnu/bits/floatn.h"
+ "include/i386-linux-gnu/bits/flt-eval-method.h"
+ "include/i386-linux-gnu/bits/fp-logb.h"
+ "include/i386-linux-gnu/bits/indirect-return.h"
+ "include/i386-linux-gnu/bits/ipctypes.h"
+ "include/i386-linux-gnu/bits/iscanonical.h"
+ "include/i386-linux-gnu/bits/link.h"
+ "include/i386-linux-gnu/bits/long-double.h"
+ "include/i386-linux-gnu/bits/math-vector-fortran.h"
+ "include/i386-linux-gnu/bits/math-vector.h"
+ "include/i386-linux-gnu/bits/mman.h"
+ "include/i386-linux-gnu/bits/procfs-id.h"
+ "include/i386-linux-gnu/bits/procfs.h"
+ "include/i386-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/i386-linux-gnu/bits/select.h"
+ "include/i386-linux-gnu/bits/sem-pad.h"
+ "include/i386-linux-gnu/bits/semaphore.h"
+ "include/i386-linux-gnu/bits/setjmp.h"
+ "include/i386-linux-gnu/bits/sigcontext.h"
+ "include/i386-linux-gnu/bits/siginfo-arch.h"
+ "include/i386-linux-gnu/bits/stat.h"
+ "include/i386-linux-gnu/bits/sysctl.h"
+ "include/i386-linux-gnu/bits/timesize.h"
+ "include/i386-linux-gnu/bits/typesizes.h"
+ "include/i386-linux-gnu/bits/wordsize.h"
+ "include/i386-linux-gnu/bits/xtitypes.h"
+ "include/i386-linux-gnu/fpu_control.h"
+ "include/i386-linux-gnu/gnu/lib-names.h"
+ "include/i386-linux-gnu/gnu/stubs.h"
+ "include/i386-linux-gnu/sys/elf.h"
+ "include/i386-linux-gnu/sys/io.h"
+ "include/i386-linux-gnu/sys/ptrace.h"
+ "include/i386-linux-gnu/sys/ucontext.h"
+ "include/i386-linux-gnu/sys/user.h"
+ "include/mips-linux-gnu/asm/sgidefs.h"
+ "include/mips-linux-gnu/asm/unistd.h"
+ "include/mips-linux-gnu/bits/dlfcn.h"
+ "include/mips-linux-gnu/bits/errno.h"
+ "include/mips-linux-gnu/bits/eventfd.h"
+ "include/mips-linux-gnu/bits/inotify.h"
+ "include/mips-linux-gnu/bits/ioctl-types.h"
+ "include/mips-linux-gnu/bits/ipc.h"
+ "include/mips-linux-gnu/bits/ipctypes.h"
+ "include/mips-linux-gnu/bits/local_lim.h"
+ "include/mips-linux-gnu/bits/mman.h"
+ "include/mips-linux-gnu/bits/msq-pad.h"
+ "include/mips-linux-gnu/bits/poll.h"
+ "include/mips-linux-gnu/bits/resource.h"
+ "include/mips-linux-gnu/bits/sem-pad.h"
+ "include/mips-linux-gnu/bits/shm-pad.h"
+ "include/mips-linux-gnu/bits/shmlba.h"
+ "include/mips-linux-gnu/bits/sigaction.h"
+ "include/mips-linux-gnu/bits/sigcontext.h"
+ "include/mips-linux-gnu/bits/siginfo-arch.h"
+ "include/mips-linux-gnu/bits/signalfd.h"
+ "include/mips-linux-gnu/bits/signum.h"
+ "include/mips-linux-gnu/bits/socket_type.h"
+ "include/mips-linux-gnu/bits/statfs.h"
+ "include/mips-linux-gnu/bits/termios-c_cc.h"
+ "include/mips-linux-gnu/bits/termios-c_lflag.h"
+ "include/mips-linux-gnu/bits/termios-struct.h"
+ "include/mips-linux-gnu/bits/termios-tcflow.h"
+ "include/mips-linux-gnu/bits/timerfd.h"
+ "include/mips-linux-gnu/bits/types/stack_t.h"
+ "include/mips-linux-gnu/ieee754.h"
+ "include/mips64-linux-gnuabi64/asm/sgidefs.h"
+ "include/mips64-linux-gnuabi64/asm/unistd.h"
+ "include/mips64-linux-gnuabi64/bits/dlfcn.h"
+ "include/mips64-linux-gnuabi64/bits/errno.h"
+ "include/mips64-linux-gnuabi64/bits/eventfd.h"
+ "include/mips64-linux-gnuabi64/bits/inotify.h"
+ "include/mips64-linux-gnuabi64/bits/ioctl-types.h"
+ "include/mips64-linux-gnuabi64/bits/ipc.h"
+ "include/mips64-linux-gnuabi64/bits/ipctypes.h"
+ "include/mips64-linux-gnuabi64/bits/local_lim.h"
+ "include/mips64-linux-gnuabi64/bits/mman.h"
+ "include/mips64-linux-gnuabi64/bits/msq-pad.h"
+ "include/mips64-linux-gnuabi64/bits/poll.h"
+ "include/mips64-linux-gnuabi64/bits/resource.h"
+ "include/mips64-linux-gnuabi64/bits/sem-pad.h"
+ "include/mips64-linux-gnuabi64/bits/shm-pad.h"
+ "include/mips64-linux-gnuabi64/bits/shmlba.h"
+ "include/mips64-linux-gnuabi64/bits/sigaction.h"
+ "include/mips64-linux-gnuabi64/bits/sigcontext.h"
+ "include/mips64-linux-gnuabi64/bits/siginfo-arch.h"
+ "include/mips64-linux-gnuabi64/bits/signalfd.h"
+ "include/mips64-linux-gnuabi64/bits/signum.h"
+ "include/mips64-linux-gnuabi64/bits/socket_type.h"
+ "include/mips64-linux-gnuabi64/bits/statfs.h"
+ "include/mips64-linux-gnuabi64/bits/termios-c_cc.h"
+ "include/mips64-linux-gnuabi64/bits/termios-c_lflag.h"
+ "include/mips64-linux-gnuabi64/bits/termios-struct.h"
+ "include/mips64-linux-gnuabi64/bits/termios-tcflow.h"
+ "include/mips64-linux-gnuabi64/bits/timerfd.h"
+ "include/mips64-linux-gnuabi64/bits/types/stack_t.h"
+ "include/mips64-linux-gnuabi64/ieee754.h"
+ "include/mips64-linux-gnuabin32/asm/sgidefs.h"
+ "include/mips64-linux-gnuabin32/asm/unistd.h"
+ "include/mips64-linux-gnuabin32/bits/dlfcn.h"
+ "include/mips64-linux-gnuabin32/bits/errno.h"
+ "include/mips64-linux-gnuabin32/bits/eventfd.h"
+ "include/mips64-linux-gnuabin32/bits/inotify.h"
+ "include/mips64-linux-gnuabin32/bits/ioctl-types.h"
+ "include/mips64-linux-gnuabin32/bits/ipc.h"
+ "include/mips64-linux-gnuabin32/bits/ipctypes.h"
+ "include/mips64-linux-gnuabin32/bits/local_lim.h"
+ "include/mips64-linux-gnuabin32/bits/mman.h"
+ "include/mips64-linux-gnuabin32/bits/msq-pad.h"
+ "include/mips64-linux-gnuabin32/bits/poll.h"
+ "include/mips64-linux-gnuabin32/bits/resource.h"
+ "include/mips64-linux-gnuabin32/bits/sem-pad.h"
+ "include/mips64-linux-gnuabin32/bits/shm-pad.h"
+ "include/mips64-linux-gnuabin32/bits/shmlba.h"
+ "include/mips64-linux-gnuabin32/bits/sigaction.h"
+ "include/mips64-linux-gnuabin32/bits/sigcontext.h"
+ "include/mips64-linux-gnuabin32/bits/siginfo-arch.h"
+ "include/mips64-linux-gnuabin32/bits/signalfd.h"
+ "include/mips64-linux-gnuabin32/bits/signum.h"
+ "include/mips64-linux-gnuabin32/bits/socket_type.h"
+ "include/mips64-linux-gnuabin32/bits/statfs.h"
+ "include/mips64-linux-gnuabin32/bits/termios-c_cc.h"
+ "include/mips64-linux-gnuabin32/bits/termios-c_lflag.h"
+ "include/mips64-linux-gnuabin32/bits/termios-struct.h"
+ "include/mips64-linux-gnuabin32/bits/termios-tcflow.h"
+ "include/mips64-linux-gnuabin32/bits/timerfd.h"
+ "include/mips64-linux-gnuabin32/bits/types/stack_t.h"
+ "include/mips64-linux-gnuabin32/ieee754.h"
+ "include/mips64el-linux-gnuabi64/asm/sgidefs.h"
+ "include/mips64el-linux-gnuabi64/asm/unistd.h"
+ "include/mips64el-linux-gnuabi64/bits/dlfcn.h"
+ "include/mips64el-linux-gnuabi64/bits/errno.h"
+ "include/mips64el-linux-gnuabi64/bits/eventfd.h"
+ "include/mips64el-linux-gnuabi64/bits/inotify.h"
+ "include/mips64el-linux-gnuabi64/bits/ioctl-types.h"
+ "include/mips64el-linux-gnuabi64/bits/ipc.h"
+ "include/mips64el-linux-gnuabi64/bits/ipctypes.h"
+ "include/mips64el-linux-gnuabi64/bits/local_lim.h"
+ "include/mips64el-linux-gnuabi64/bits/mman.h"
+ "include/mips64el-linux-gnuabi64/bits/msq-pad.h"
+ "include/mips64el-linux-gnuabi64/bits/poll.h"
+ "include/mips64el-linux-gnuabi64/bits/resource.h"
+ "include/mips64el-linux-gnuabi64/bits/sem-pad.h"
+ "include/mips64el-linux-gnuabi64/bits/shm-pad.h"
+ "include/mips64el-linux-gnuabi64/bits/shmlba.h"
+ "include/mips64el-linux-gnuabi64/bits/sigaction.h"
+ "include/mips64el-linux-gnuabi64/bits/sigcontext.h"
+ "include/mips64el-linux-gnuabi64/bits/siginfo-arch.h"
+ "include/mips64el-linux-gnuabi64/bits/signalfd.h"
+ "include/mips64el-linux-gnuabi64/bits/signum.h"
+ "include/mips64el-linux-gnuabi64/bits/socket_type.h"
+ "include/mips64el-linux-gnuabi64/bits/statfs.h"
+ "include/mips64el-linux-gnuabi64/bits/termios-c_cc.h"
+ "include/mips64el-linux-gnuabi64/bits/termios-c_lflag.h"
+ "include/mips64el-linux-gnuabi64/bits/termios-struct.h"
+ "include/mips64el-linux-gnuabi64/bits/termios-tcflow.h"
+ "include/mips64el-linux-gnuabi64/bits/timerfd.h"
+ "include/mips64el-linux-gnuabi64/bits/types/stack_t.h"
+ "include/mips64el-linux-gnuabi64/ieee754.h"
+ "include/mips64el-linux-gnuabin32/asm/sgidefs.h"
+ "include/mips64el-linux-gnuabin32/asm/unistd.h"
+ "include/mips64el-linux-gnuabin32/bits/dlfcn.h"
+ "include/mips64el-linux-gnuabin32/bits/errno.h"
+ "include/mips64el-linux-gnuabin32/bits/eventfd.h"
+ "include/mips64el-linux-gnuabin32/bits/inotify.h"
+ "include/mips64el-linux-gnuabin32/bits/ioctl-types.h"
+ "include/mips64el-linux-gnuabin32/bits/ipc.h"
+ "include/mips64el-linux-gnuabin32/bits/ipctypes.h"
+ "include/mips64el-linux-gnuabin32/bits/local_lim.h"
+ "include/mips64el-linux-gnuabin32/bits/mman.h"
+ "include/mips64el-linux-gnuabin32/bits/msq-pad.h"
+ "include/mips64el-linux-gnuabin32/bits/poll.h"
+ "include/mips64el-linux-gnuabin32/bits/resource.h"
+ "include/mips64el-linux-gnuabin32/bits/sem-pad.h"
+ "include/mips64el-linux-gnuabin32/bits/shm-pad.h"
+ "include/mips64el-linux-gnuabin32/bits/shmlba.h"
+ "include/mips64el-linux-gnuabin32/bits/sigaction.h"
+ "include/mips64el-linux-gnuabin32/bits/sigcontext.h"
+ "include/mips64el-linux-gnuabin32/bits/siginfo-arch.h"
+ "include/mips64el-linux-gnuabin32/bits/signalfd.h"
+ "include/mips64el-linux-gnuabin32/bits/signum.h"
+ "include/mips64el-linux-gnuabin32/bits/socket_type.h"
+ "include/mips64el-linux-gnuabin32/bits/statfs.h"
+ "include/mips64el-linux-gnuabin32/bits/termios-c_cc.h"
+ "include/mips64el-linux-gnuabin32/bits/termios-c_lflag.h"
+ "include/mips64el-linux-gnuabin32/bits/termios-struct.h"
+ "include/mips64el-linux-gnuabin32/bits/termios-tcflow.h"
+ "include/mips64el-linux-gnuabin32/bits/timerfd.h"
+ "include/mips64el-linux-gnuabin32/bits/types/stack_t.h"
+ "include/mips64el-linux-gnuabin32/ieee754.h"
+ "include/mipsel-linux-gnu/asm/sgidefs.h"
+ "include/mipsel-linux-gnu/asm/unistd.h"
+ "include/mipsel-linux-gnu/bits/dlfcn.h"
+ "include/mipsel-linux-gnu/bits/errno.h"
+ "include/mipsel-linux-gnu/bits/eventfd.h"
+ "include/mipsel-linux-gnu/bits/inotify.h"
+ "include/mipsel-linux-gnu/bits/ioctl-types.h"
+ "include/mipsel-linux-gnu/bits/ipc.h"
+ "include/mipsel-linux-gnu/bits/ipctypes.h"
+ "include/mipsel-linux-gnu/bits/local_lim.h"
+ "include/mipsel-linux-gnu/bits/mman.h"
+ "include/mipsel-linux-gnu/bits/msq-pad.h"
+ "include/mipsel-linux-gnu/bits/poll.h"
+ "include/mipsel-linux-gnu/bits/resource.h"
+ "include/mipsel-linux-gnu/bits/sem-pad.h"
+ "include/mipsel-linux-gnu/bits/shm-pad.h"
+ "include/mipsel-linux-gnu/bits/shmlba.h"
+ "include/mipsel-linux-gnu/bits/sigaction.h"
+ "include/mipsel-linux-gnu/bits/sigcontext.h"
+ "include/mipsel-linux-gnu/bits/siginfo-arch.h"
+ "include/mipsel-linux-gnu/bits/signalfd.h"
+ "include/mipsel-linux-gnu/bits/signum.h"
+ "include/mipsel-linux-gnu/bits/socket_type.h"
+ "include/mipsel-linux-gnu/bits/statfs.h"
+ "include/mipsel-linux-gnu/bits/termios-c_cc.h"
+ "include/mipsel-linux-gnu/bits/termios-c_lflag.h"
+ "include/mipsel-linux-gnu/bits/termios-struct.h"
+ "include/mipsel-linux-gnu/bits/termios-tcflow.h"
+ "include/mipsel-linux-gnu/bits/timerfd.h"
+ "include/mipsel-linux-gnu/bits/types/stack_t.h"
+ "include/mipsel-linux-gnu/ieee754.h"
+ "include/nios2-linux-gnu/asm/unistd.h"
+ "include/nios2-linux-gnu/bits/endian.h"
+ "include/nios2-linux-gnu/bits/fcntl.h"
+ "include/nios2-linux-gnu/bits/fenv.h"
+ "include/nios2-linux-gnu/bits/floatn.h"
+ "include/nios2-linux-gnu/bits/link.h"
+ "include/nios2-linux-gnu/bits/long-double.h"
+ "include/nios2-linux-gnu/bits/procfs.h"
+ "include/nios2-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/nios2-linux-gnu/bits/semaphore.h"
+ "include/nios2-linux-gnu/bits/setjmp.h"
+ "include/nios2-linux-gnu/bits/stat.h"
+ "include/nios2-linux-gnu/bits/statfs.h"
+ "include/nios2-linux-gnu/bits/typesizes.h"
+ "include/nios2-linux-gnu/bits/wordsize.h"
+ "include/nios2-linux-gnu/fpu_control.h"
+ "include/nios2-linux-gnu/gnu/lib-names.h"
+ "include/nios2-linux-gnu/gnu/stubs.h"
+ "include/nios2-linux-gnu/sys/cachectl.h"
+ "include/nios2-linux-gnu/sys/ucontext.h"
+ "include/nios2-linux-gnu/sys/user.h"
+ "include/powerpc-linux-gnu/asm/unistd.h"
+ "include/powerpc-linux-gnu/bits/endian.h"
+ "include/powerpc-linux-gnu/bits/environments.h"
+ "include/powerpc-linux-gnu/bits/fcntl.h"
+ "include/powerpc-linux-gnu/bits/fenv.h"
+ "include/powerpc-linux-gnu/bits/fenvinline.h"
+ "include/powerpc-linux-gnu/bits/floatn.h"
+ "include/powerpc-linux-gnu/bits/fp-fast.h"
+ "include/powerpc-linux-gnu/bits/hwcap.h"
+ "include/powerpc-linux-gnu/bits/ioctl-types.h"
+ "include/powerpc-linux-gnu/bits/ipc.h"
+ "include/powerpc-linux-gnu/bits/iscanonical.h"
+ "include/powerpc-linux-gnu/bits/link.h"
+ "include/powerpc-linux-gnu/bits/local_lim.h"
+ "include/powerpc-linux-gnu/bits/long-double.h"
+ "include/powerpc-linux-gnu/bits/mman.h"
+ "include/powerpc-linux-gnu/bits/msq-pad.h"
+ "include/powerpc-linux-gnu/bits/procfs.h"
+ "include/powerpc-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/powerpc-linux-gnu/bits/sem-pad.h"
+ "include/powerpc-linux-gnu/bits/semaphore.h"
+ "include/powerpc-linux-gnu/bits/setjmp.h"
+ "include/powerpc-linux-gnu/bits/shm-pad.h"
+ "include/powerpc-linux-gnu/bits/sigstack.h"
+ "include/powerpc-linux-gnu/bits/stat.h"
+ "include/powerpc-linux-gnu/bits/termios-baud.h"
+ "include/powerpc-linux-gnu/bits/termios-c_cc.h"
+ "include/powerpc-linux-gnu/bits/termios-c_cflag.h"
+ "include/powerpc-linux-gnu/bits/termios-c_iflag.h"
+ "include/powerpc-linux-gnu/bits/termios-c_lflag.h"
+ "include/powerpc-linux-gnu/bits/termios-c_oflag.h"
+ "include/powerpc-linux-gnu/bits/termios-misc.h"
+ "include/powerpc-linux-gnu/bits/wordsize.h"
+ "include/powerpc-linux-gnu/fpu_control.h"
+ "include/powerpc-linux-gnu/gnu/lib-names-32.h"
+ "include/powerpc-linux-gnu/gnu/lib-names.h"
+ "include/powerpc-linux-gnu/gnu/stubs.h"
+ "include/powerpc-linux-gnu/ieee754.h"
+ "include/powerpc-linux-gnu/sys/ptrace.h"
+ "include/powerpc-linux-gnu/sys/ucontext.h"
+ "include/powerpc-linux-gnu/sys/user.h"
+ "include/powerpc64-linux-gnu/asm/unistd.h"
+ "include/powerpc64-linux-gnu/bits/endian.h"
+ "include/powerpc64-linux-gnu/bits/environments.h"
+ "include/powerpc64-linux-gnu/bits/fcntl.h"
+ "include/powerpc64-linux-gnu/bits/fenv.h"
+ "include/powerpc64-linux-gnu/bits/fenvinline.h"
+ "include/powerpc64-linux-gnu/bits/floatn.h"
+ "include/powerpc64-linux-gnu/bits/fp-fast.h"
+ "include/powerpc64-linux-gnu/bits/hwcap.h"
+ "include/powerpc64-linux-gnu/bits/ioctl-types.h"
+ "include/powerpc64-linux-gnu/bits/ipc.h"
+ "include/powerpc64-linux-gnu/bits/iscanonical.h"
+ "include/powerpc64-linux-gnu/bits/link.h"
+ "include/powerpc64-linux-gnu/bits/local_lim.h"
+ "include/powerpc64-linux-gnu/bits/long-double.h"
+ "include/powerpc64-linux-gnu/bits/mman.h"
+ "include/powerpc64-linux-gnu/bits/msq-pad.h"
+ "include/powerpc64-linux-gnu/bits/procfs.h"
+ "include/powerpc64-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/powerpc64-linux-gnu/bits/sem-pad.h"
+ "include/powerpc64-linux-gnu/bits/semaphore.h"
+ "include/powerpc64-linux-gnu/bits/setjmp.h"
+ "include/powerpc64-linux-gnu/bits/shm-pad.h"
+ "include/powerpc64-linux-gnu/bits/sigstack.h"
+ "include/powerpc64-linux-gnu/bits/stat.h"
+ "include/powerpc64-linux-gnu/bits/termios-baud.h"
+ "include/powerpc64-linux-gnu/bits/termios-c_cc.h"
+ "include/powerpc64-linux-gnu/bits/termios-c_cflag.h"
+ "include/powerpc64-linux-gnu/bits/termios-c_iflag.h"
+ "include/powerpc64-linux-gnu/bits/termios-c_lflag.h"
+ "include/powerpc64-linux-gnu/bits/termios-c_oflag.h"
+ "include/powerpc64-linux-gnu/bits/termios-misc.h"
+ "include/powerpc64-linux-gnu/bits/wordsize.h"
+ "include/powerpc64-linux-gnu/fpu_control.h"
+ "include/powerpc64-linux-gnu/gnu/lib-names-64-v1.h"
+ "include/powerpc64-linux-gnu/gnu/lib-names.h"
+ "include/powerpc64-linux-gnu/gnu/stubs-64-v1.h"
+ "include/powerpc64-linux-gnu/gnu/stubs.h"
+ "include/powerpc64-linux-gnu/ieee754.h"
+ "include/powerpc64-linux-gnu/sys/ptrace.h"
+ "include/powerpc64-linux-gnu/sys/ucontext.h"
+ "include/powerpc64-linux-gnu/sys/user.h"
+ "include/powerpc64le-linux-gnu/asm/unistd.h"
+ "include/powerpc64le-linux-gnu/bits/endian.h"
+ "include/powerpc64le-linux-gnu/bits/environments.h"
+ "include/powerpc64le-linux-gnu/bits/fcntl.h"
+ "include/powerpc64le-linux-gnu/bits/fenv.h"
+ "include/powerpc64le-linux-gnu/bits/fenvinline.h"
+ "include/powerpc64le-linux-gnu/bits/floatn.h"
+ "include/powerpc64le-linux-gnu/bits/fp-fast.h"
+ "include/powerpc64le-linux-gnu/bits/hwcap.h"
+ "include/powerpc64le-linux-gnu/bits/ioctl-types.h"
+ "include/powerpc64le-linux-gnu/bits/ipc.h"
+ "include/powerpc64le-linux-gnu/bits/iscanonical.h"
+ "include/powerpc64le-linux-gnu/bits/link.h"
+ "include/powerpc64le-linux-gnu/bits/local_lim.h"
+ "include/powerpc64le-linux-gnu/bits/long-double.h"
+ "include/powerpc64le-linux-gnu/bits/mman.h"
+ "include/powerpc64le-linux-gnu/bits/msq-pad.h"
+ "include/powerpc64le-linux-gnu/bits/procfs.h"
+ "include/powerpc64le-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/powerpc64le-linux-gnu/bits/sem-pad.h"
+ "include/powerpc64le-linux-gnu/bits/semaphore.h"
+ "include/powerpc64le-linux-gnu/bits/setjmp.h"
+ "include/powerpc64le-linux-gnu/bits/shm-pad.h"
+ "include/powerpc64le-linux-gnu/bits/sigstack.h"
+ "include/powerpc64le-linux-gnu/bits/stat.h"
+ "include/powerpc64le-linux-gnu/bits/termios-baud.h"
+ "include/powerpc64le-linux-gnu/bits/termios-c_cc.h"
+ "include/powerpc64le-linux-gnu/bits/termios-c_cflag.h"
+ "include/powerpc64le-linux-gnu/bits/termios-c_iflag.h"
+ "include/powerpc64le-linux-gnu/bits/termios-c_lflag.h"
+ "include/powerpc64le-linux-gnu/bits/termios-c_oflag.h"
+ "include/powerpc64le-linux-gnu/bits/termios-misc.h"
+ "include/powerpc64le-linux-gnu/bits/wordsize.h"
+ "include/powerpc64le-linux-gnu/fpu_control.h"
+ "include/powerpc64le-linux-gnu/gnu/lib-names-64-v2.h"
+ "include/powerpc64le-linux-gnu/gnu/lib-names.h"
+ "include/powerpc64le-linux-gnu/gnu/stubs-64-v2.h"
+ "include/powerpc64le-linux-gnu/gnu/stubs.h"
+ "include/powerpc64le-linux-gnu/ieee754.h"
+ "include/powerpc64le-linux-gnu/sys/ptrace.h"
+ "include/powerpc64le-linux-gnu/sys/ucontext.h"
+ "include/powerpc64le-linux-gnu/sys/user.h"
+ "include/riscv64-linux-gnu/asm/unistd.h"
+ "include/riscv64-linux-gnu/bits/endian.h"
+ "include/riscv64-linux-gnu/bits/fcntl.h"
+ "include/riscv64-linux-gnu/bits/fenv.h"
+ "include/riscv64-linux-gnu/bits/floatn.h"
+ "include/riscv64-linux-gnu/bits/link.h"
+ "include/riscv64-linux-gnu/bits/long-double.h"
+ "include/riscv64-linux-gnu/bits/procfs.h"
+ "include/riscv64-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/riscv64-linux-gnu/bits/semaphore.h"
+ "include/riscv64-linux-gnu/bits/setjmp.h"
+ "include/riscv64-linux-gnu/bits/sigcontext.h"
+ "include/riscv64-linux-gnu/bits/stat.h"
+ "include/riscv64-linux-gnu/bits/statfs.h"
+ "include/riscv64-linux-gnu/bits/typesizes.h"
+ "include/riscv64-linux-gnu/bits/wordsize.h"
+ "include/riscv64-linux-gnu/fpu_control.h"
+ "include/riscv64-linux-gnu/gnu/lib-names-lp64.h"
+ "include/riscv64-linux-gnu/gnu/lib-names.h"
+ "include/riscv64-linux-gnu/gnu/stubs-lp64.h"
+ "include/riscv64-linux-gnu/gnu/stubs.h"
+ "include/riscv64-linux-gnu/ieee754.h"
+ "include/riscv64-linux-gnu/sys/asm.h"
+ "include/riscv64-linux-gnu/sys/cachectl.h"
+ "include/riscv64-linux-gnu/sys/ucontext.h"
+ "include/riscv64-linux-gnu/sys/user.h"
+ "include/s390x-linux-gnu/asm/unistd.h"
+ "include/s390x-linux-gnu/bits/elfclass.h"
+ "include/s390x-linux-gnu/bits/endian.h"
+ "include/s390x-linux-gnu/bits/environments.h"
+ "include/s390x-linux-gnu/bits/fcntl.h"
+ "include/s390x-linux-gnu/bits/fenv.h"
+ "include/s390x-linux-gnu/bits/floatn.h"
+ "include/s390x-linux-gnu/bits/flt-eval-method.h"
+ "include/s390x-linux-gnu/bits/hwcap.h"
+ "include/s390x-linux-gnu/bits/ipc.h"
+ "include/s390x-linux-gnu/bits/link.h"
+ "include/s390x-linux-gnu/bits/long-double.h"
+ "include/s390x-linux-gnu/bits/procfs-extra.h"
+ "include/s390x-linux-gnu/bits/procfs-id.h"
+ "include/s390x-linux-gnu/bits/procfs.h"
+ "include/s390x-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/s390x-linux-gnu/bits/semaphore.h"
+ "include/s390x-linux-gnu/bits/setjmp.h"
+ "include/s390x-linux-gnu/bits/sigaction.h"
+ "include/s390x-linux-gnu/bits/stat.h"
+ "include/s390x-linux-gnu/bits/statfs.h"
+ "include/s390x-linux-gnu/bits/typesizes.h"
+ "include/s390x-linux-gnu/bits/utmp.h"
+ "include/s390x-linux-gnu/bits/utmpx.h"
+ "include/s390x-linux-gnu/bits/wordsize.h"
+ "include/s390x-linux-gnu/bits/xtitypes.h"
+ "include/s390x-linux-gnu/fpu_control.h"
+ "include/s390x-linux-gnu/gnu/lib-names-64.h"
+ "include/s390x-linux-gnu/gnu/lib-names.h"
+ "include/s390x-linux-gnu/gnu/stubs-64.h"
+ "include/s390x-linux-gnu/gnu/stubs.h"
+ "include/s390x-linux-gnu/ieee754.h"
+ "include/s390x-linux-gnu/sys/elf.h"
+ "include/s390x-linux-gnu/sys/ptrace.h"
+ "include/s390x-linux-gnu/sys/ucontext.h"
+ "include/s390x-linux-gnu/sys/user.h"
+ "include/sparc-linux-gnu/a.out.h"
+ "include/sparc-linux-gnu/asm/unistd.h"
+ "include/sparc-linux-gnu/bits/a.out.h"
+ "include/sparc-linux-gnu/bits/endian.h"
+ "include/sparc-linux-gnu/bits/environments.h"
+ "include/sparc-linux-gnu/bits/epoll.h"
+ "include/sparc-linux-gnu/bits/errno.h"
+ "include/sparc-linux-gnu/bits/eventfd.h"
+ "include/sparc-linux-gnu/bits/fcntl.h"
+ "include/sparc-linux-gnu/bits/fenv.h"
+ "include/sparc-linux-gnu/bits/floatn.h"
+ "include/sparc-linux-gnu/bits/hwcap.h"
+ "include/sparc-linux-gnu/bits/inotify.h"
+ "include/sparc-linux-gnu/bits/ioctls.h"
+ "include/sparc-linux-gnu/bits/ipc.h"
+ "include/sparc-linux-gnu/bits/link.h"
+ "include/sparc-linux-gnu/bits/local_lim.h"
+ "include/sparc-linux-gnu/bits/long-double.h"
+ "include/sparc-linux-gnu/bits/mman.h"
+ "include/sparc-linux-gnu/bits/msq-pad.h"
+ "include/sparc-linux-gnu/bits/poll.h"
+ "include/sparc-linux-gnu/bits/procfs-extra.h"
+ "include/sparc-linux-gnu/bits/procfs-id.h"
+ "include/sparc-linux-gnu/bits/procfs.h"
+ "include/sparc-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/sparc-linux-gnu/bits/resource.h"
+ "include/sparc-linux-gnu/bits/sem-pad.h"
+ "include/sparc-linux-gnu/bits/semaphore.h"
+ "include/sparc-linux-gnu/bits/setjmp.h"
+ "include/sparc-linux-gnu/bits/shm-pad.h"
+ "include/sparc-linux-gnu/bits/shmlba.h"
+ "include/sparc-linux-gnu/bits/sigaction.h"
+ "include/sparc-linux-gnu/bits/sigcontext.h"
+ "include/sparc-linux-gnu/bits/siginfo-arch.h"
+ "include/sparc-linux-gnu/bits/siginfo-consts-arch.h"
+ "include/sparc-linux-gnu/bits/signalfd.h"
+ "include/sparc-linux-gnu/bits/signum.h"
+ "include/sparc-linux-gnu/bits/sigstack.h"
+ "include/sparc-linux-gnu/bits/socket_type.h"
+ "include/sparc-linux-gnu/bits/stat.h"
+ "include/sparc-linux-gnu/bits/termios-baud.h"
+ "include/sparc-linux-gnu/bits/termios-c_cc.h"
+ "include/sparc-linux-gnu/bits/termios-c_oflag.h"
+ "include/sparc-linux-gnu/bits/termios-struct.h"
+ "include/sparc-linux-gnu/bits/timerfd.h"
+ "include/sparc-linux-gnu/bits/typesizes.h"
+ "include/sparc-linux-gnu/bits/wordsize.h"
+ "include/sparc-linux-gnu/fpu_control.h"
+ "include/sparc-linux-gnu/gnu/lib-names-64.h"
+ "include/sparc-linux-gnu/gnu/lib-names.h"
+ "include/sparc-linux-gnu/gnu/stubs-64.h"
+ "include/sparc-linux-gnu/gnu/stubs.h"
+ "include/sparc-linux-gnu/ieee754.h"
+ "include/sparc-linux-gnu/sys/ptrace.h"
+ "include/sparc-linux-gnu/sys/ucontext.h"
+ "include/sparc-linux-gnu/sys/user.h"
+ "include/sparcv9-linux-gnu/a.out.h"
+ "include/sparcv9-linux-gnu/asm/unistd.h"
+ "include/sparcv9-linux-gnu/bits/a.out.h"
+ "include/sparcv9-linux-gnu/bits/endian.h"
+ "include/sparcv9-linux-gnu/bits/environments.h"
+ "include/sparcv9-linux-gnu/bits/epoll.h"
+ "include/sparcv9-linux-gnu/bits/errno.h"
+ "include/sparcv9-linux-gnu/bits/eventfd.h"
+ "include/sparcv9-linux-gnu/bits/fcntl.h"
+ "include/sparcv9-linux-gnu/bits/fenv.h"
+ "include/sparcv9-linux-gnu/bits/floatn.h"
+ "include/sparcv9-linux-gnu/bits/hwcap.h"
+ "include/sparcv9-linux-gnu/bits/inotify.h"
+ "include/sparcv9-linux-gnu/bits/ioctls.h"
+ "include/sparcv9-linux-gnu/bits/ipc.h"
+ "include/sparcv9-linux-gnu/bits/link.h"
+ "include/sparcv9-linux-gnu/bits/local_lim.h"
+ "include/sparcv9-linux-gnu/bits/long-double.h"
+ "include/sparcv9-linux-gnu/bits/mman.h"
+ "include/sparcv9-linux-gnu/bits/msq-pad.h"
+ "include/sparcv9-linux-gnu/bits/poll.h"
+ "include/sparcv9-linux-gnu/bits/procfs-extra.h"
+ "include/sparcv9-linux-gnu/bits/procfs-id.h"
+ "include/sparcv9-linux-gnu/bits/procfs.h"
+ "include/sparcv9-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/sparcv9-linux-gnu/bits/resource.h"
+ "include/sparcv9-linux-gnu/bits/sem-pad.h"
+ "include/sparcv9-linux-gnu/bits/semaphore.h"
+ "include/sparcv9-linux-gnu/bits/setjmp.h"
+ "include/sparcv9-linux-gnu/bits/shm-pad.h"
+ "include/sparcv9-linux-gnu/bits/shmlba.h"
+ "include/sparcv9-linux-gnu/bits/sigaction.h"
+ "include/sparcv9-linux-gnu/bits/sigcontext.h"
+ "include/sparcv9-linux-gnu/bits/siginfo-arch.h"
+ "include/sparcv9-linux-gnu/bits/siginfo-consts-arch.h"
+ "include/sparcv9-linux-gnu/bits/signalfd.h"
+ "include/sparcv9-linux-gnu/bits/signum.h"
+ "include/sparcv9-linux-gnu/bits/sigstack.h"
+ "include/sparcv9-linux-gnu/bits/socket_type.h"
+ "include/sparcv9-linux-gnu/bits/stat.h"
+ "include/sparcv9-linux-gnu/bits/termios-baud.h"
+ "include/sparcv9-linux-gnu/bits/termios-c_cc.h"
+ "include/sparcv9-linux-gnu/bits/termios-c_oflag.h"
+ "include/sparcv9-linux-gnu/bits/termios-struct.h"
+ "include/sparcv9-linux-gnu/bits/timerfd.h"
+ "include/sparcv9-linux-gnu/bits/typesizes.h"
+ "include/sparcv9-linux-gnu/bits/wordsize.h"
+ "include/sparcv9-linux-gnu/fpu_control.h"
+ "include/sparcv9-linux-gnu/gnu/lib-names.h"
+ "include/sparcv9-linux-gnu/gnu/stubs-32.h"
+ "include/sparcv9-linux-gnu/gnu/stubs.h"
+ "include/sparcv9-linux-gnu/ieee754.h"
+ "include/sparcv9-linux-gnu/sys/ptrace.h"
+ "include/sparcv9-linux-gnu/sys/ucontext.h"
+ "include/sparcv9-linux-gnu/sys/user.h"
+ "include/x86_64-linux-gnu/asm/unistd.h"
+ "include/x86_64-linux-gnu/bits/a.out.h"
+ "include/x86_64-linux-gnu/bits/endian.h"
+ "include/x86_64-linux-gnu/bits/environments.h"
+ "include/x86_64-linux-gnu/bits/epoll.h"
+ "include/x86_64-linux-gnu/bits/fcntl.h"
+ "include/x86_64-linux-gnu/bits/fenv.h"
+ "include/x86_64-linux-gnu/bits/floatn.h"
+ "include/x86_64-linux-gnu/bits/flt-eval-method.h"
+ "include/x86_64-linux-gnu/bits/fp-logb.h"
+ "include/x86_64-linux-gnu/bits/indirect-return.h"
+ "include/x86_64-linux-gnu/bits/ipctypes.h"
+ "include/x86_64-linux-gnu/bits/iscanonical.h"
+ "include/x86_64-linux-gnu/bits/link.h"
+ "include/x86_64-linux-gnu/bits/long-double.h"
+ "include/x86_64-linux-gnu/bits/math-vector-fortran.h"
+ "include/x86_64-linux-gnu/bits/math-vector.h"
+ "include/x86_64-linux-gnu/bits/mman.h"
+ "include/x86_64-linux-gnu/bits/procfs-id.h"
+ "include/x86_64-linux-gnu/bits/procfs.h"
+ "include/x86_64-linux-gnu/bits/pthreadtypes-arch.h"
+ "include/x86_64-linux-gnu/bits/select.h"
+ "include/x86_64-linux-gnu/bits/sem-pad.h"
+ "include/x86_64-linux-gnu/bits/semaphore.h"
+ "include/x86_64-linux-gnu/bits/setjmp.h"
+ "include/x86_64-linux-gnu/bits/sigcontext.h"
+ "include/x86_64-linux-gnu/bits/siginfo-arch.h"
+ "include/x86_64-linux-gnu/bits/stat.h"
+ "include/x86_64-linux-gnu/bits/sysctl.h"
+ "include/x86_64-linux-gnu/bits/timesize.h"
+ "include/x86_64-linux-gnu/bits/typesizes.h"
+ "include/x86_64-linux-gnu/bits/wordsize.h"
+ "include/x86_64-linux-gnu/bits/xtitypes.h"
+ "include/x86_64-linux-gnu/fpu_control.h"
+ "include/x86_64-linux-gnu/gnu/lib-names-64.h"
+ "include/x86_64-linux-gnu/gnu/lib-names.h"
+ "include/x86_64-linux-gnu/gnu/stubs-64.h"
+ "include/x86_64-linux-gnu/gnu/stubs.h"
+ "include/x86_64-linux-gnu/sys/elf.h"
+ "include/x86_64-linux-gnu/sys/io.h"
+ "include/x86_64-linux-gnu/sys/ptrace.h"
+ "include/x86_64-linux-gnu/sys/ucontext.h"
+ "include/x86_64-linux-gnu/sys/user.h"
+ "include/x86_64-linux-gnux32/bits/a.out.h"
+ "include/x86_64-linux-gnux32/bits/endian.h"
+ "include/x86_64-linux-gnux32/bits/environments.h"
+ "include/x86_64-linux-gnux32/bits/epoll.h"
+ "include/x86_64-linux-gnux32/bits/fcntl.h"
+ "include/x86_64-linux-gnux32/bits/fenv.h"
+ "include/x86_64-linux-gnux32/bits/floatn.h"
+ "include/x86_64-linux-gnux32/bits/flt-eval-method.h"
+ "include/x86_64-linux-gnux32/bits/fp-logb.h"
+ "include/x86_64-linux-gnux32/bits/indirect-return.h"
+ "include/x86_64-linux-gnux32/bits/ipctypes.h"
+ "include/x86_64-linux-gnux32/bits/iscanonical.h"
+ "include/x86_64-linux-gnux32/bits/link.h"
+ "include/x86_64-linux-gnux32/bits/long-double.h"
+ "include/x86_64-linux-gnux32/bits/math-vector-fortran.h"
+ "include/x86_64-linux-gnux32/bits/math-vector.h"
+ "include/x86_64-linux-gnux32/bits/mman.h"
+ "include/x86_64-linux-gnux32/bits/procfs-id.h"
+ "include/x86_64-linux-gnux32/bits/procfs.h"
+ "include/x86_64-linux-gnux32/bits/pthreadtypes-arch.h"
+ "include/x86_64-linux-gnux32/bits/select.h"
+ "include/x86_64-linux-gnux32/bits/sem-pad.h"
+ "include/x86_64-linux-gnux32/bits/semaphore.h"
+ "include/x86_64-linux-gnux32/bits/setjmp.h"
+ "include/x86_64-linux-gnux32/bits/sigcontext.h"
+ "include/x86_64-linux-gnux32/bits/siginfo-arch.h"
+ "include/x86_64-linux-gnux32/bits/stat.h"
+ "include/x86_64-linux-gnux32/bits/sysctl.h"
+ "include/x86_64-linux-gnux32/bits/timesize.h"
+ "include/x86_64-linux-gnux32/bits/typesizes.h"
+ "include/x86_64-linux-gnux32/bits/wordsize.h"
+ "include/x86_64-linux-gnux32/bits/xtitypes.h"
+ "include/x86_64-linux-gnux32/fpu_control.h"
+ "include/x86_64-linux-gnux32/gnu/lib-names-x32.h"
+ "include/x86_64-linux-gnux32/gnu/lib-names.h"
+ "include/x86_64-linux-gnux32/gnu/stubs-x32.h"
+ "include/x86_64-linux-gnux32/gnu/stubs.h"
+ "include/x86_64-linux-gnux32/sys/elf.h"
+ "include/x86_64-linux-gnux32/sys/io.h"
+ "include/x86_64-linux-gnux32/sys/ptrace.h"
+ "include/x86_64-linux-gnux32/sys/ucontext.h"
+ "include/x86_64-linux-gnux32/sys/user.h"
+)
+
+set(ZIG_LIBUNWIND_FILES
+ "include/__libunwind_config.h"
+ "include/libunwind.h"
+ "include/mach-o/compact_unwind_encoding.h"
+ "include/unwind.h"
+ "src/AddressSpace.hpp"
+ "src/CompactUnwinder.hpp"
+ "src/DwarfInstructions.hpp"
+ "src/DwarfParser.hpp"
+ "src/EHHeaderParser.hpp"
+ "src/RWMutex.hpp"
+ "src/Registers.hpp"
+ "src/Unwind-EHABI.cpp"
+ "src/Unwind-EHABI.h"
+ "src/Unwind-seh.cpp"
+ "src/Unwind-sjlj.c"
+ "src/UnwindCursor.hpp"
+ "src/UnwindLevel1-gcc-ext.c"
+ "src/UnwindLevel1.c"
+ "src/UnwindRegistersRestore.S"
+ "src/UnwindRegistersSave.S"
+ "src/Unwind_AppleExtras.cpp"
+ "src/assembly.h"
+ "src/config.h"
+ "src/dwarf2.h"
+ "src/libunwind.cpp"
+ "src/libunwind_ext.h"
+)
+
+set(ZIG_LIBCXX_FILES
+ "include/__bit_reference"
+ "include/__bsd_locale_defaults.h"
+ "include/__bsd_locale_fallbacks.h"
+ "include/__config"
+ "include/__config_site.in"
+ "include/__debug"
+ "include/__errc"
+ "include/__functional_03"
+ "include/__functional_base"
+ "include/__functional_base_03"
+ "include/__hash_table"
+ "include/__libcpp_version"
+ "include/__locale"
+ "include/__mutex_base"
+ "include/__node_handle"
+ "include/__nullptr"
+ "include/__split_buffer"
+ "include/__sso_allocator"
+ "include/__std_stream"
+ "include/__string"
+ "include/__threading_support"
+ "include/__tree"
+ "include/__tuple"
+ "include/__undef_macros"
+ "include/algorithm"
+ "include/any"
+ "include/array"
+ "include/atomic"
+ "include/bit"
+ "include/bitset"
+ "include/cassert"
+ "include/ccomplex"
+ "include/cctype"
+ "include/cerrno"
+ "include/cfenv"
+ "include/cfloat"
+ "include/charconv"
+ "include/chrono"
+ "include/cinttypes"
+ "include/ciso646"
+ "include/climits"
+ "include/clocale"
+ "include/cmath"
+ "include/codecvt"
+ "include/compare"
+ "include/complex"
+ "include/complex.h"
+ "include/condition_variable"
+ "include/csetjmp"
+ "include/csignal"
+ "include/cstdarg"
+ "include/cstdbool"
+ "include/cstddef"
+ "include/cstdint"
+ "include/cstdio"
+ "include/cstdlib"
+ "include/cstring"
+ "include/ctgmath"
+ "include/ctime"
+ "include/ctype.h"
+ "include/cwchar"
+ "include/cwctype"
+ "include/deque"
+ "include/errno.h"
+ "include/exception"
+ "include/experimental/__config"
+ "include/experimental/__memory"
+ "include/experimental/algorithm"
+ "include/experimental/any"
+ "include/experimental/chrono"
+ "include/experimental/coroutine"
+ "include/experimental/deque"
+ "include/experimental/filesystem"
+ "include/experimental/forward_list"
+ "include/experimental/functional"
+ "include/experimental/iterator"
+ "include/experimental/list"
+ "include/experimental/map"
+ "include/experimental/memory_resource"
+ "include/experimental/numeric"
+ "include/experimental/optional"
+ "include/experimental/propagate_const"
+ "include/experimental/ratio"
+ "include/experimental/regex"
+ "include/experimental/set"
+ "include/experimental/simd"
+ "include/experimental/string"
+ "include/experimental/string_view"
+ "include/experimental/system_error"
+ "include/experimental/tuple"
+ "include/experimental/type_traits"
+ "include/experimental/unordered_map"
+ "include/experimental/unordered_set"
+ "include/experimental/utility"
+ "include/experimental/vector"
+ "include/ext/__hash"
+ "include/ext/hash_map"
+ "include/ext/hash_set"
+ "include/filesystem"
+ "include/float.h"
+ "include/forward_list"
+ "include/fstream"
+ "include/functional"
+ "include/future"
+ "include/initializer_list"
+ "include/inttypes.h"
+ "include/iomanip"
+ "include/ios"
+ "include/iosfwd"
+ "include/iostream"
+ "include/istream"
+ "include/iterator"
+ "include/limits"
+ "include/limits.h"
+ "include/list"
+ "include/locale"
+ "include/locale.h"
+ "include/map"
+ "include/math.h"
+ "include/memory"
+ "include/module.modulemap"
+ "include/mutex"
+ "include/new"
+ "include/numeric"
+ "include/optional"
+ "include/ostream"
+ "include/queue"
+ "include/random"
+ "include/ratio"
+ "include/regex"
+ "include/scoped_allocator"
+ "include/set"
+ "include/setjmp.h"
+ "include/shared_mutex"
+ "include/span"
+ "include/sstream"
+ "include/stack"
+ "include/stdbool.h"
+ "include/stddef.h"
+ "include/stdexcept"
+ "include/stdint.h"
+ "include/stdio.h"
+ "include/stdlib.h"
+ "include/streambuf"
+ "include/string"
+ "include/string.h"
+ "include/string_view"
+ "include/strstream"
+ "include/support/android/locale_bionic.h"
+ "include/support/fuchsia/xlocale.h"
+ "include/support/ibm/limits.h"
+ "include/support/ibm/locale_mgmt_aix.h"
+ "include/support/ibm/support.h"
+ "include/support/ibm/xlocale.h"
+ "include/support/musl/xlocale.h"
+ "include/support/newlib/xlocale.h"
+ "include/support/solaris/floatingpoint.h"
+ "include/support/solaris/wchar.h"
+ "include/support/solaris/xlocale.h"
+ "include/support/win32/limits_msvc_win32.h"
+ "include/support/win32/locale_win32.h"
+ "include/support/xlocale/__nop_locale_mgmt.h"
+ "include/support/xlocale/__posix_l_fallback.h"
+ "include/support/xlocale/__strtonum_fallback.h"
+ "include/support/xlocale/xlocale.h"
+ "include/system_error"
+ "include/tgmath.h"
+ "include/thread"
+ "include/tuple"
+ "include/type_traits"
+ "include/typeindex"
+ "include/typeinfo"
+ "include/unordered_map"
+ "include/unordered_set"
+ "include/utility"
+ "include/valarray"
+ "include/variant"
+ "include/vector"
+ "include/version"
+ "include/wchar.h"
+ "include/wctype.h"
+)
+
if(MSVC)
set(MSVC_DIA_SDK_DIR "$ENV{VSINSTALLDIR}DIA SDK")
if (IS_DIRECTORY ${MSVC_DIA_SDK_DIR})
@@ -814,6 +2631,9 @@ endif()
set(ZIG_LIB_DIR "lib/zig")
set(C_HEADERS_DEST "${ZIG_LIB_DIR}/include")
+set(LIBC_FILES_DEST "${ZIG_LIB_DIR}/libc")
+set(LIBUNWIND_FILES_DEST "${ZIG_LIB_DIR}/libunwind")
+set(LIBCXX_FILES_DEST "${ZIG_LIB_DIR}/libcxx")
set(ZIG_STD_DEST "${ZIG_LIB_DIR}/std")
set(CONFIGURE_OUT_FILE "${CMAKE_BINARY_DIR}/config.h")
configure_file (
@@ -917,6 +2737,21 @@ foreach(file ${ZIG_STD_FILES})
install(FILES "${CMAKE_SOURCE_DIR}/std/${file}" DESTINATION "${file_dir}")
endforeach()
+foreach(file ${ZIG_LIBC_FILES})
+ get_filename_component(file_dir "${LIBC_FILES_DEST}/${file}" DIRECTORY)
+ install(FILES "${CMAKE_SOURCE_DIR}/libc/${file}" DESTINATION "${file_dir}")
+endforeach()
+
+foreach(file ${ZIG_LIBUNWIND_FILES})
+ get_filename_component(file_dir "${LIBUNWIND_FILES_DEST}/${file}" DIRECTORY)
+ install(FILES "${CMAKE_SOURCE_DIR}/libunwind/${file}" DESTINATION "${file_dir}")
+endforeach()
+
+foreach(file ${ZIG_LIBCXX_FILES})
+ get_filename_component(file_dir "${LIBCXX_FILES_DEST}/${file}" DIRECTORY)
+ install(FILES "${CMAKE_SOURCE_DIR}/libcxx/${file}" DESTINATION "${file_dir}")
+endforeach()
+
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/arg.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/main.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
install(FILES "${CMAKE_SOURCE_DIR}/src-self-hosted/errmsg.zig" DESTINATION "${ZIG_STD_DEST}/special/fmt/")
diff --git a/README.md b/README.md
index 5244b498678a..e605768c7e55 100644
--- a/README.md
+++ b/README.md
@@ -54,6 +54,8 @@ clarity.
branch, and updates ziglang.org/download with links to pre-built binaries.
* These targets have debug info capabilities and therefore produce stack
traces on failed assertions.
+ * ([coming soon](https://github.com/ziglang/zig/issues/514)) libc is available
+ for this target even when cross compiling.
#### Tier 2 Support
diff --git a/libc/dummy/c.zig b/libc/dummy/c.zig
new file mode 100644
index 000000000000..f4337bdb6e6e
--- /dev/null
+++ b/libc/dummy/c.zig
@@ -0,0 +1,2296 @@
+// This file exists to create a libc.so file so that LLD has something to look at
+// and emit linker errors if an attempt to link against a non-existent C symbol happens.
+
+const builtin = @import("builtin");
+
+comptime {
+ switch (builtin.arch) {
+ builtin.Arch.i386 => _ = @import("c/i386.zig"),
+ builtin.Arch.x86_64 => _ = @import("c/x86_64.zig"),
+ else => {},
+ }
+}
+
+export fn @"error"() void {}
+export fn _Exit() void {}
+export fn _IO_2_1_stderr_() void {}
+export fn _IO_2_1_stdin_() void {}
+export fn _IO_2_1_stdout_() void {}
+export fn _IO_adjust_column() void {}
+export fn _IO_adjust_wcolumn() void {}
+export fn _IO_default_doallocate() void {}
+export fn _IO_default_finish() void {}
+export fn _IO_default_pbackfail() void {}
+export fn _IO_default_uflow() void {}
+export fn _IO_default_xsgetn() void {}
+export fn _IO_default_xsputn() void {}
+export fn _IO_do_write() void {}
+export fn _IO_doallocbuf() void {}
+export fn _IO_enable_locks() void {}
+export fn _IO_fclose() void {}
+export fn _IO_fdopen() void {}
+export fn _IO_feof() void {}
+export fn _IO_ferror() void {}
+export fn _IO_fflush() void {}
+export fn _IO_fgetpos() void {}
+export fn _IO_fgetpos64() void {}
+export fn _IO_fgets() void {}
+export fn _IO_file_attach() void {}
+export fn _IO_file_close() void {}
+export fn _IO_file_close_it() void {}
+export fn _IO_file_doallocate() void {}
+export fn _IO_file_finish() void {}
+export fn _IO_file_fopen() void {}
+export fn _IO_file_init() void {}
+export fn _IO_file_jumps() void {}
+export fn _IO_file_open() void {}
+export fn _IO_file_overflow() void {}
+export fn _IO_file_read() void {}
+export fn _IO_file_seek() void {}
+export fn _IO_file_seekoff() void {}
+export fn _IO_file_setbuf() void {}
+export fn _IO_file_stat() void {}
+export fn _IO_file_sync() void {}
+export fn _IO_file_underflow() void {}
+export fn _IO_file_write() void {}
+export fn _IO_file_xsputn() void {}
+export fn _IO_flockfile() void {}
+export fn _IO_flush_all() void {}
+export fn _IO_flush_all_linebuffered() void {}
+export fn _IO_fopen() void {}
+export fn _IO_fprintf() void {}
+export fn _IO_fputs() void {}
+export fn _IO_fread() void {}
+export fn _IO_free_backup_area() void {}
+export fn _IO_free_wbackup_area() void {}
+export fn _IO_fsetpos() void {}
+export fn _IO_fsetpos64() void {}
+export fn _IO_ftell() void {}
+export fn _IO_ftrylockfile() void {}
+export fn _IO_funlockfile() void {}
+export fn _IO_fwrite() void {}
+export fn _IO_getc() void {}
+export fn _IO_getline() void {}
+export fn _IO_getline_info() void {}
+export fn _IO_gets() void {}
+export fn _IO_init() void {}
+export fn _IO_init_marker() void {}
+export fn _IO_init_wmarker() void {}
+export fn _IO_iter_begin() void {}
+export fn _IO_iter_end() void {}
+export fn _IO_iter_file() void {}
+export fn _IO_iter_next() void {}
+export fn _IO_least_wmarker() void {}
+export fn _IO_link_in() void {}
+export fn _IO_list_all() void {}
+export fn _IO_list_lock() void {}
+export fn _IO_list_resetlock() void {}
+export fn _IO_list_unlock() void {}
+export fn _IO_marker_delta() void {}
+export fn _IO_marker_difference() void {}
+export fn _IO_padn() void {}
+export fn _IO_peekc_locked() void {}
+export fn _IO_popen() void {}
+export fn _IO_printf() void {}
+export fn _IO_proc_close() void {}
+export fn _IO_proc_open() void {}
+export fn _IO_putc() void {}
+export fn _IO_puts() void {}
+export fn _IO_remove_marker() void {}
+export fn _IO_seekmark() void {}
+export fn _IO_seekoff() void {}
+export fn _IO_seekpos() void {}
+export fn _IO_seekwmark() void {}
+export fn _IO_setb() void {}
+export fn _IO_setbuffer() void {}
+export fn _IO_setvbuf() void {}
+export fn _IO_sgetn() void {}
+export fn _IO_sprintf() void {}
+export fn _IO_sputbackc() void {}
+export fn _IO_sputbackwc() void {}
+export fn _IO_sscanf() void {}
+export fn _IO_str_init_readonly() void {}
+export fn _IO_str_init_static() void {}
+export fn _IO_str_overflow() void {}
+export fn _IO_str_pbackfail() void {}
+export fn _IO_str_seekoff() void {}
+export fn _IO_str_underflow() void {}
+export fn _IO_sungetc() void {}
+export fn _IO_sungetwc() void {}
+export fn _IO_switch_to_get_mode() void {}
+export fn _IO_switch_to_main_wget_area() void {}
+export fn _IO_switch_to_wbackup_area() void {}
+export fn _IO_switch_to_wget_mode() void {}
+export fn _IO_un_link() void {}
+export fn _IO_ungetc() void {}
+export fn _IO_unsave_markers() void {}
+export fn _IO_unsave_wmarkers() void {}
+export fn _IO_vfprintf() void {}
+export fn _IO_vfscanf() void {}
+export fn _IO_vsprintf() void {}
+export fn _IO_wdefault_doallocate() void {}
+export fn _IO_wdefault_finish() void {}
+export fn _IO_wdefault_pbackfail() void {}
+export fn _IO_wdefault_uflow() void {}
+export fn _IO_wdefault_xsgetn() void {}
+export fn _IO_wdefault_xsputn() void {}
+export fn _IO_wdo_write() void {}
+export fn _IO_wdoallocbuf() void {}
+export fn _IO_wfile_jumps() void {}
+export fn _IO_wfile_overflow() void {}
+export fn _IO_wfile_seekoff() void {}
+export fn _IO_wfile_sync() void {}
+export fn _IO_wfile_underflow() void {}
+export fn _IO_wfile_xsputn() void {}
+export fn _IO_wmarker_delta() void {}
+export fn _IO_wsetb() void {}
+export fn __abort_msg() void {}
+export fn __adjtimex() void {}
+export fn __after_morecore_hook() void {}
+export fn __argz_count() void {}
+export fn __argz_next() void {}
+export fn __argz_stringify() void {}
+export fn __asprintf() void {}
+export fn __asprintf_chk() void {}
+export fn __assert() void {}
+export fn __assert_fail() void {}
+export fn __assert_perror_fail() void {}
+export fn __backtrace() void {}
+export fn __backtrace_symbols() void {}
+export fn __backtrace_symbols_fd() void {}
+export fn __bsd_getpgrp() void {}
+export fn __bzero() void {}
+export fn __call_tls_dtors() void {}
+export fn __check_rhosts_file() void {}
+export fn __chk_fail() void {}
+export fn __clock_getcpuclockid() void {}
+export fn __clock_getres() void {}
+export fn __clock_gettime() void {}
+export fn __clock_nanosleep() void {}
+export fn __clock_settime() void {}
+export fn __clone() void {}
+export fn __close() void {}
+export fn __close_nocancel() void {}
+export fn __cmsg_nxthdr() void {}
+export fn __confstr_chk() void {}
+export fn __connect() void {}
+export fn __copy_grp() void {}
+export fn __ctype32_b() void {}
+export fn __ctype32_tolower() void {}
+export fn __ctype32_toupper() void {}
+export fn __ctype_b() void {}
+export fn __ctype_b_loc() void {}
+export fn __ctype_get_mb_cur_max() void {}
+export fn __ctype_init() void {}
+export fn __ctype_tolower() void {}
+export fn __ctype_tolower_loc() void {}
+export fn __ctype_toupper() void {}
+export fn __ctype_toupper_loc() void {}
+export fn __curbrk() void {}
+export fn __cxa_at_quick_exit() void {}
+export fn __cxa_atexit() void {}
+export fn __cxa_finalize() void {}
+export fn __cxa_thread_atexit_impl() void {}
+export fn __cyg_profile_func_enter() void {}
+export fn __cyg_profile_func_exit() void {}
+export fn __daylight() void {}
+export fn __dcgettext() void {}
+export fn __default_morecore() void {}
+export fn __dgettext() void {}
+export fn __dprintf_chk() void {}
+export fn __dup2() void {}
+export fn __duplocale() void {}
+export fn __endmntent() void {}
+export fn __environ() void {}
+export fn __errno_location() void {}
+export fn __explicit_bzero_chk() void {}
+export fn __fbufsize() void {}
+export fn __fcntl() void {}
+export fn __fdelt_chk() void {}
+export fn __fdelt_warn() void {}
+export fn __fentry__() void {}
+export fn __ffs() void {}
+export fn __fgets_chk() void {}
+export fn __fgets_unlocked_chk() void {}
+export fn __fgetws_chk() void {}
+export fn __fgetws_unlocked_chk() void {}
+export fn __finite() void {}
+export fn __finitef() void {}
+export fn __finitel() void {}
+export fn __flbf() void {}
+export fn __fork() void {}
+export fn __fortify_fail() void {}
+export fn __fpending() void {}
+export fn __fprintf_chk() void {}
+export fn __fpu_control() void {}
+export fn __fpurge() void {}
+export fn __fread_chk() void {}
+export fn __fread_unlocked_chk() void {}
+export fn __freadable() void {}
+export fn __freading() void {}
+export fn __free_hook() void {}
+export fn __freelocale() void {}
+export fn __fseeko64() void {}
+export fn __fsetlocking() void {}
+export fn __ftello64() void {}
+export fn __fwprintf_chk() void {}
+export fn __fwritable() void {}
+export fn __fwriting() void {}
+export fn __fxstat() void {}
+export fn __fxstat64() void {}
+export fn __fxstatat() void {}
+export fn __fxstatat64() void {}
+export fn __gai_sigqueue() void {}
+export fn __gconv_get_alias_db() void {}
+export fn __gconv_get_cache() void {}
+export fn __gconv_get_modules_db() void {}
+export fn __gconv_transliterate() void {}
+export fn __getauxval() void {}
+export fn __getcwd_chk() void {}
+export fn __getdelim() void {}
+export fn __getdomainname_chk() void {}
+export fn __getgroups_chk() void {}
+export fn __gethostname_chk() void {}
+export fn __getlogin_r_chk() void {}
+export fn __getmntent_r() void {}
+export fn __getpagesize() void {}
+export fn __getpgid() void {}
+export fn __getpid() void {}
+export fn __getrlimit() void {}
+export fn __gets_chk() void {}
+export fn __gettimeofday() void {}
+export fn __getwd_chk() void {}
+export fn __gmtime_r() void {}
+export fn __h_errno() void {}
+export fn __h_errno_location() void {}
+export fn __idna_from_dns_encoding() void {}
+export fn __idna_to_dns_encoding() void {}
+export fn __inet6_scopeid_pton() void {}
+export fn __inet_aton_exact() void {}
+export fn __inet_pton_length() void {}
+export fn __internal_endnetgrent() void {}
+export fn __internal_getnetgrent_r() void {}
+export fn __internal_setnetgrent() void {}
+export fn __isalnum_l() void {}
+export fn __isalpha_l() void {}
+export fn __isascii_l() void {}
+export fn __isblank_l() void {}
+export fn __iscntrl_l() void {}
+export fn __isctype() void {}
+export fn __isdigit_l() void {}
+export fn __isgraph_l() void {}
+export fn __isinf() void {}
+export fn __isinff() void {}
+export fn __isinfl() void {}
+export fn __islower_l() void {}
+export fn __isnan() void {}
+export fn __isnanf() void {}
+export fn __isnanl() void {}
+export fn __isoc99_fscanf() void {}
+export fn __isoc99_fwscanf() void {}
+export fn __isoc99_scanf() void {}
+export fn __isoc99_sscanf() void {}
+export fn __isoc99_swscanf() void {}
+export fn __isoc99_vfscanf() void {}
+export fn __isoc99_vfwscanf() void {}
+export fn __isoc99_vscanf() void {}
+export fn __isoc99_vsscanf() void {}
+export fn __isoc99_vswscanf() void {}
+export fn __isoc99_vwscanf() void {}
+export fn __isoc99_wscanf() void {}
+export fn __isprint_l() void {}
+export fn __ispunct_l() void {}
+export fn __isspace_l() void {}
+export fn __isupper_l() void {}
+export fn __iswalnum_l() void {}
+export fn __iswalpha_l() void {}
+export fn __iswblank_l() void {}
+export fn __iswcntrl_l() void {}
+export fn __iswctype() void {}
+export fn __iswctype_l() void {}
+export fn __iswdigit_l() void {}
+export fn __iswgraph_l() void {}
+export fn __iswlower_l() void {}
+export fn __iswprint_l() void {}
+export fn __iswpunct_l() void {}
+export fn __iswspace_l() void {}
+export fn __iswupper_l() void {}
+export fn __iswxdigit_l() void {}
+export fn __isxdigit_l() void {}
+export fn __ivaliduser() void {}
+export fn __key_decryptsession_pk_LOCAL() void {}
+export fn __key_encryptsession_pk_LOCAL() void {}
+export fn __key_gendes_LOCAL() void {}
+export fn __libc_alloc_buffer_alloc_array() void {}
+export fn __libc_alloc_buffer_allocate() void {}
+export fn __libc_alloc_buffer_copy_bytes() void {}
+export fn __libc_alloc_buffer_copy_string() void {}
+export fn __libc_alloc_buffer_create_failure() void {}
+export fn __libc_alloca_cutoff() void {}
+export fn __libc_allocate_once_slow() void {}
+export fn __libc_allocate_rtsig() void {}
+export fn __libc_allocate_rtsig_private() void {}
+export fn __libc_calloc() void {}
+export fn __libc_clntudp_bufcreate() void {}
+export fn __libc_current_sigrtmax() void {}
+export fn __libc_current_sigrtmax_private() void {}
+export fn __libc_current_sigrtmin() void {}
+export fn __libc_current_sigrtmin_private() void {}
+export fn __libc_dlclose() void {}
+export fn __libc_dlopen_mode() void {}
+export fn __libc_dlsym() void {}
+export fn __libc_dlvsym() void {}
+export fn __libc_dynarray_at_failure() void {}
+export fn __libc_dynarray_emplace_enlarge() void {}
+export fn __libc_dynarray_finalize() void {}
+export fn __libc_dynarray_resize() void {}
+export fn __libc_dynarray_resize_clear() void {}
+export fn __libc_fatal() void {}
+export fn __libc_fcntl64() void {}
+export fn __libc_fork() void {}
+export fn __libc_free() void {}
+export fn __libc_freeres() void {}
+export fn __libc_ifunc_impl_list() void {}
+export fn __libc_init_first() void {}
+export fn __libc_longjmp() void {}
+export fn __libc_mallinfo() void {}
+export fn __libc_malloc() void {}
+export fn __libc_mallopt() void {}
+export fn __libc_memalign() void {}
+export fn __libc_msgrcv() void {}
+export fn __libc_msgsnd() void {}
+export fn __libc_pread() void {}
+export fn __libc_pthread_init() void {}
+export fn __libc_pvalloc() void {}
+export fn __libc_pwrite() void {}
+export fn __libc_readline_unlocked() void {}
+export fn __libc_realloc() void {}
+export fn __libc_reallocarray() void {}
+export fn __libc_rpc_getport() void {}
+export fn __libc_sa_len() void {}
+export fn __libc_scratch_buffer_grow() void {}
+export fn __libc_scratch_buffer_grow_preserve() void {}
+export fn __libc_scratch_buffer_set_array_size() void {}
+export fn __libc_secure_getenv() void {}
+export fn __libc_siglongjmp() void {}
+export fn __libc_start_main() void {}
+export fn __libc_system() void {}
+export fn __libc_thread_freeres() void {}
+export fn __libc_valloc() void {}
+export fn __libc_vfork() void {}
+export fn __longjmp_chk() void {}
+export fn __lseek() void {}
+export fn __lxstat() void {}
+export fn __lxstat64() void {}
+export fn __madvise() void {}
+export fn __malloc_hook() void {}
+export fn __malloc_initialize_hook() void {}
+export fn __mbrlen() void {}
+export fn __mbrtowc() void {}
+export fn __mbsnrtowcs_chk() void {}
+export fn __mbsrtowcs_chk() void {}
+export fn __mbstowcs_chk() void {}
+export fn __memalign_hook() void {}
+export fn __memcpy_chk() void {}
+export fn __memmove_chk() void {}
+export fn __mempcpy() void {}
+export fn __mempcpy_chk() void {}
+export fn __mempcpy_small() void {}
+export fn __memset_chk() void {}
+export fn __merge_grp() void {}
+export fn __mktemp() void {}
+export fn __mmap() void {}
+export fn __monstartup() void {}
+export fn __morecore() void {}
+export fn __mprotect() void {}
+export fn __munmap() void {}
+export fn __nanosleep() void {}
+export fn __nanosleep_nocancel() void {}
+export fn __netlink_assert_response() void {}
+export fn __newlocale() void {}
+export fn __nl_langinfo_l() void {}
+export fn __nss_configure_lookup() void {}
+export fn __nss_database_lookup() void {}
+export fn __nss_disable_nscd() void {}
+export fn __nss_group_lookup() void {}
+export fn __nss_group_lookup2() void {}
+export fn __nss_hash() void {}
+export fn __nss_hostname_digits_dots() void {}
+export fn __nss_hosts_lookup() void {}
+export fn __nss_hosts_lookup2() void {}
+export fn __nss_lookup() void {}
+export fn __nss_lookup_function() void {}
+export fn __nss_next() void {}
+export fn __nss_next2() void {}
+export fn __nss_passwd_lookup() void {}
+export fn __nss_passwd_lookup2() void {}
+export fn __nss_services_lookup2() void {}
+export fn __obstack_printf_chk() void {}
+export fn __obstack_vprintf_chk() void {}
+export fn __open() void {}
+export fn __open64() void {}
+export fn __open64_2() void {}
+export fn __open64_nocancel() void {}
+export fn __open_2() void {}
+export fn __open_catalog() void {}
+export fn __open_nocancel() void {}
+export fn __openat64_2() void {}
+export fn __openat_2() void {}
+export fn __overflow() void {}
+export fn __pause_nocancel() void {}
+export fn __pipe() void {}
+export fn __poll() void {}
+export fn __poll_chk() void {}
+export fn __posix_getopt() void {}
+export fn __ppoll_chk() void {}
+export fn __pread64() void {}
+export fn __pread64_chk() void {}
+export fn __pread_chk() void {}
+export fn __printf_chk() void {}
+export fn __printf_fp() void {}
+export fn __profile_frequency() void {}
+export fn __progname() void {}
+export fn __progname_full() void {}
+export fn __ptsname_r_chk() void {}
+export fn __pwrite64() void {}
+export fn __rawmemchr() void {}
+export fn __rcmd_errstr() void {}
+export fn __read() void {}
+export fn __read_chk() void {}
+export fn __read_nocancel() void {}
+export fn __readlink_chk() void {}
+export fn __readlinkat_chk() void {}
+export fn __realloc_hook() void {}
+export fn __realpath_chk() void {}
+export fn __recv() void {}
+export fn __recv_chk() void {}
+export fn __recvfrom_chk() void {}
+export fn __register_atfork() void {}
+export fn __res_iclose() void {}
+export fn __res_init() void {}
+export fn __res_nclose() void {}
+export fn __res_ninit() void {}
+export fn __res_randomid() void {}
+export fn __res_state() void {}
+export fn __resolv_context_get() void {}
+export fn __resolv_context_get_override() void {}
+export fn __resolv_context_get_preinit() void {}
+export fn __resolv_context_put() void {}
+export fn __resp() void {}
+export fn __rpc_thread_createerr() void {}
+export fn __rpc_thread_svc_fdset() void {}
+export fn __rpc_thread_svc_max_pollfd() void {}
+export fn __rpc_thread_svc_pollfd() void {}
+export fn __sbrk() void {}
+export fn __sched_cpualloc() void {}
+export fn __sched_cpucount() void {}
+export fn __sched_cpufree() void {}
+export fn __sched_get_priority_max() void {}
+export fn __sched_get_priority_min() void {}
+export fn __sched_getparam() void {}
+export fn __sched_getscheduler() void {}
+export fn __sched_setscheduler() void {}
+export fn __sched_yield() void {}
+export fn __secure_getenv() void {}
+export fn __select() void {}
+export fn __send() void {}
+export fn __sendmmsg() void {}
+export fn __setmntent() void {}
+export fn __setpgid() void {}
+export fn __sigaction() void {}
+export fn __sigaddset() void {}
+export fn __sigdelset() void {}
+export fn __sigismember() void {}
+export fn __signbit() void {}
+export fn __signbitf() void {}
+export fn __signbitl() void {}
+export fn __sigpause() void {}
+export fn __sigsetjmp() void {}
+export fn __sigsuspend() void {}
+export fn __sigtimedwait() void {}
+export fn __snprintf() void {}
+export fn __snprintf_chk() void {}
+export fn __socket() void {}
+export fn __sprintf_chk() void {}
+export fn __stack_chk_fail() void {}
+export fn __statfs() void {}
+export fn __stpcpy() void {}
+export fn __stpcpy_chk() void {}
+export fn __stpcpy_small() void {}
+export fn __stpncpy() void {}
+export fn __stpncpy_chk() void {}
+export fn __strcasecmp() void {}
+export fn __strcasecmp_l() void {}
+export fn __strcasestr() void {}
+export fn __strcat_chk() void {}
+export fn __strcoll_l() void {}
+export fn __strcpy_chk() void {}
+export fn __strcpy_small() void {}
+export fn __strcspn_c1() void {}
+export fn __strcspn_c2() void {}
+export fn __strcspn_c3() void {}
+export fn __strdup() void {}
+export fn __strerror_r() void {}
+export fn __strfmon_l() void {}
+export fn __strftime_l() void {}
+export fn __strncasecmp_l() void {}
+export fn __strncat_chk() void {}
+export fn __strncpy_chk() void {}
+export fn __strndup() void {}
+export fn __strpbrk_c2() void {}
+export fn __strpbrk_c3() void {}
+export fn __strsep_1c() void {}
+export fn __strsep_2c() void {}
+export fn __strsep_3c() void {}
+export fn __strsep_g() void {}
+export fn __strspn_c1() void {}
+export fn __strspn_c2() void {}
+export fn __strspn_c3() void {}
+export fn __strtod_internal() void {}
+export fn __strtod_l() void {}
+export fn __strtod_nan() void {}
+export fn __strtof128_internal() void {}
+export fn __strtof128_nan() void {}
+export fn __strtof_internal() void {}
+export fn __strtof_l() void {}
+export fn __strtof_nan() void {}
+export fn __strtok_r() void {}
+export fn __strtok_r_1c() void {}
+export fn __strtol_internal() void {}
+export fn __strtol_l() void {}
+export fn __strtold_internal() void {}
+export fn __strtold_l() void {}
+export fn __strtold_nan() void {}
+export fn __strtoll_internal() void {}
+export fn __strtoll_l() void {}
+export fn __strtoul_internal() void {}
+export fn __strtoul_l() void {}
+export fn __strtoull_internal() void {}
+export fn __strtoull_l() void {}
+export fn __strverscmp() void {}
+export fn __strxfrm_l() void {}
+export fn __swprintf_chk() void {}
+export fn __sysconf() void {}
+export fn __sysctl() void {}
+export fn __syslog_chk() void {}
+export fn __sysv_signal() void {}
+export fn __tdelete() void {}
+export fn __tfind() void {}
+export fn __timezone() void {}
+export fn __toascii_l() void {}
+export fn __tolower_l() void {}
+export fn __toupper_l() void {}
+export fn __towctrans() void {}
+export fn __towctrans_l() void {}
+export fn __towlower_l() void {}
+export fn __towupper_l() void {}
+export fn __tsearch() void {}
+export fn __ttyname_r_chk() void {}
+export fn __twalk() void {}
+export fn __tzname() void {}
+export fn __uflow() void {}
+export fn __underflow() void {}
+export fn __uselocale() void {}
+export fn __vasprintf_chk() void {}
+export fn __vdprintf_chk() void {}
+export fn __vfork() void {}
+export fn __vfprintf_chk() void {}
+export fn __vfscanf() void {}
+export fn __vfwprintf_chk() void {}
+export fn __vprintf_chk() void {}
+export fn __vsnprintf() void {}
+export fn __vsnprintf_chk() void {}
+export fn __vsprintf_chk() void {}
+export fn __vsscanf() void {}
+export fn __vswprintf_chk() void {}
+export fn __vsyslog_chk() void {}
+export fn __vwprintf_chk() void {}
+export fn __wait() void {}
+export fn __waitpid() void {}
+export fn __wcpcpy_chk() void {}
+export fn __wcpncpy_chk() void {}
+export fn __wcrtomb_chk() void {}
+export fn __wcscasecmp_l() void {}
+export fn __wcscat_chk() void {}
+export fn __wcscoll_l() void {}
+export fn __wcscpy_chk() void {}
+export fn __wcsftime_l() void {}
+export fn __wcsncasecmp_l() void {}
+export fn __wcsncat_chk() void {}
+export fn __wcsncpy_chk() void {}
+export fn __wcsnrtombs_chk() void {}
+export fn __wcsrtombs_chk() void {}
+export fn __wcstod_internal() void {}
+export fn __wcstod_l() void {}
+export fn __wcstof128_internal() void {}
+export fn __wcstof_internal() void {}
+export fn __wcstof_l() void {}
+export fn __wcstol_internal() void {}
+export fn __wcstol_l() void {}
+export fn __wcstold_internal() void {}
+export fn __wcstold_l() void {}
+export fn __wcstoll_internal() void {}
+export fn __wcstoll_l() void {}
+export fn __wcstombs_chk() void {}
+export fn __wcstoul_internal() void {}
+export fn __wcstoul_l() void {}
+export fn __wcstoull_internal() void {}
+export fn __wcstoull_l() void {}
+export fn __wcsxfrm_l() void {}
+export fn __wctomb_chk() void {}
+export fn __wctrans_l() void {}
+export fn __wctype_l() void {}
+export fn __wmemcpy_chk() void {}
+export fn __wmemmove_chk() void {}
+export fn __wmempcpy_chk() void {}
+export fn __wmemset_chk() void {}
+export fn __woverflow() void {}
+export fn __wprintf_chk() void {}
+export fn __write() void {}
+export fn __write_nocancel() void {}
+export fn __wuflow() void {}
+export fn __wunderflow() void {}
+export fn __xmknod() void {}
+export fn __xmknodat() void {}
+export fn __xpg_basename() void {}
+export fn __xpg_sigpause() void {}
+export fn __xpg_strerror_r() void {}
+export fn __xstat() void {}
+export fn __xstat64() void {}
+export fn _authenticate() void {}
+export fn _dl_addr() void {}
+export fn _dl_catch_error() void {}
+export fn _dl_catch_exception() void {}
+export fn _dl_mcount_wrapper() void {}
+export fn _dl_mcount_wrapper_check() void {}
+export fn _dl_open_hook() void {}
+export fn _dl_open_hook2() void {}
+export fn _dl_signal_error() void {}
+export fn _dl_signal_exception() void {}
+export fn _dl_sym() void {}
+export fn _dl_vsym() void {}
+export fn _environ() void {}
+export fn _exit() void {}
+export fn _flushlbf() void {}
+export fn _itoa_lower_digits() void {}
+export fn _libc_intl_domainname() void {}
+export fn _longjmp() void {}
+export fn _mcleanup() void {}
+export fn _mcount() void {}
+export fn _nl_default_dirname() void {}
+export fn _nl_domain_bindings() void {}
+export fn _nl_msg_cat_cntr() void {}
+export fn _nss_files_parse_grent() void {}
+export fn _nss_files_parse_pwent() void {}
+export fn _nss_files_parse_sgent() void {}
+export fn _nss_files_parse_spent() void {}
+export fn _null_auth() void {}
+export fn _obstack() void {}
+export fn _obstack_allocated_p() void {}
+export fn _obstack_begin() void {}
+export fn _obstack_begin_1() void {}
+export fn _obstack_free() void {}
+export fn _obstack_memory_used() void {}
+export fn _obstack_newchunk() void {}
+export fn _res() void {}
+export fn _res_hconf() void {}
+export fn _rpc_dtablesize() void {}
+export fn _seterr_reply() void {}
+export fn _setjmp() void {}
+export fn _sys_errlist() void {}
+export fn _sys_nerr() void {}
+export fn _sys_siglist() void {}
+export fn _tolower() void {}
+export fn _toupper() void {}
+export fn a64l() void {}
+export fn abort() void {}
+export fn abs() void {}
+export fn accept() void {}
+export fn accept4() void {}
+export fn access() void {}
+export fn acct() void {}
+export fn addmntent() void {}
+export fn addseverity() void {}
+export fn adjtime() void {}
+export fn adjtimex() void {}
+export fn advance() void {}
+export fn alarm() void {}
+export fn aligned_alloc() void {}
+export fn alphasort() void {}
+export fn alphasort64() void {}
+export fn argp_err_exit_status() void {}
+export fn argp_error() void {}
+export fn argp_failure() void {}
+export fn argp_help() void {}
+export fn argp_parse() void {}
+export fn argp_program_bug_address() void {}
+export fn argp_program_version() void {}
+export fn argp_program_version_hook() void {}
+export fn argp_state_help() void {}
+export fn argp_usage() void {}
+export fn argz_add() void {}
+export fn argz_add_sep() void {}
+export fn argz_append() void {}
+export fn argz_count() void {}
+export fn argz_create() void {}
+export fn argz_create_sep() void {}
+export fn argz_delete() void {}
+export fn argz_extract() void {}
+export fn argz_insert() void {}
+export fn argz_next() void {}
+export fn argz_replace() void {}
+export fn argz_stringify() void {}
+export fn asctime() void {}
+export fn asctime_r() void {}
+export fn asprintf() void {}
+export fn atof() void {}
+export fn atoi() void {}
+export fn atol() void {}
+export fn atoll() void {}
+export fn authdes_create() void {}
+export fn authdes_getucred() void {}
+export fn authdes_pk_create() void {}
+export fn authnone_create() void {}
+export fn authunix_create() void {}
+export fn authunix_create_default() void {}
+export fn backtrace() void {}
+export fn backtrace_symbols() void {}
+export fn backtrace_symbols_fd() void {}
+export fn basename() void {}
+export fn bcmp() void {}
+export fn bcopy() void {}
+export fn bdflush() void {}
+export fn bind() void {}
+export fn bind_textdomain_codeset() void {}
+export fn bindresvport() void {}
+export fn bindtextdomain() void {}
+export fn brk() void {}
+export fn bsd_signal() void {}
+export fn bsearch() void {}
+export fn btowc() void {}
+export fn bzero() void {}
+export fn c16rtomb() void {}
+export fn c32rtomb() void {}
+export fn calloc() void {}
+export fn callrpc() void {}
+export fn canonicalize_file_name() void {}
+export fn capget() void {}
+export fn capset() void {}
+export fn catclose() void {}
+export fn catgets() void {}
+export fn catopen() void {}
+export fn cbc_crypt() void {}
+export fn cfgetispeed() void {}
+export fn cfgetospeed() void {}
+export fn cfmakeraw() void {}
+export fn cfree() void {}
+export fn cfsetispeed() void {}
+export fn cfsetospeed() void {}
+export fn cfsetspeed() void {}
+export fn chdir() void {}
+export fn chflags() void {}
+export fn chmod() void {}
+export fn chown() void {}
+export fn chroot() void {}
+export fn clearenv() void {}
+export fn clearerr() void {}
+export fn clearerr_unlocked() void {}
+export fn clnt_broadcast() void {}
+export fn clnt_create() void {}
+export fn clnt_pcreateerror() void {}
+export fn clnt_perrno() void {}
+export fn clnt_perror() void {}
+export fn clnt_spcreateerror() void {}
+export fn clnt_sperrno() void {}
+export fn clnt_sperror() void {}
+export fn clntraw_create() void {}
+export fn clnttcp_create() void {}
+export fn clntudp_bufcreate() void {}
+export fn clntudp_create() void {}
+export fn clntunix_create() void {}
+export fn clock() void {}
+export fn clock_adjtime() void {}
+export fn clock_getcpuclockid() void {}
+export fn clock_getres() void {}
+export fn clock_gettime() void {}
+export fn clock_nanosleep() void {}
+export fn clock_settime() void {}
+export fn clone() void {}
+export fn close() void {}
+export fn closedir() void {}
+export fn closelog() void {}
+export fn confstr() void {}
+export fn connect() void {}
+export fn copy_file_range() void {}
+export fn copysign() void {}
+export fn copysignf() void {}
+export fn copysignl() void {}
+export fn creat() void {}
+export fn creat64() void {}
+export fn create_module() void {}
+export fn ctermid() void {}
+export fn ctime() void {}
+export fn ctime_r() void {}
+export fn cuserid() void {}
+export fn daemon() void {}
+export fn daylight() void {}
+export fn dcgettext() void {}
+export fn dcngettext() void {}
+export fn delete_module() void {}
+export fn des_setparity() void {}
+export fn dgettext() void {}
+export fn difftime() void {}
+export fn dirfd() void {}
+export fn dirname() void {}
+export fn div() void {}
+export fn dl_iterate_phdr() void {}
+export fn dngettext() void {}
+export fn dprintf() void {}
+export fn drand48() void {}
+export fn drand48_r() void {}
+export fn dup() void {}
+export fn dup2() void {}
+export fn dup3() void {}
+export fn duplocale() void {}
+export fn dysize() void {}
+export fn eaccess() void {}
+export fn ecb_crypt() void {}
+export fn ecvt() void {}
+export fn ecvt_r() void {}
+export fn endaliasent() void {}
+export fn endfsent() void {}
+export fn endgrent() void {}
+export fn endhostent() void {}
+export fn endmntent() void {}
+export fn endnetent() void {}
+export fn endnetgrent() void {}
+export fn endprotoent() void {}
+export fn endpwent() void {}
+export fn endrpcent() void {}
+export fn endservent() void {}
+export fn endsgent() void {}
+export fn endspent() void {}
+export fn endttyent() void {}
+export fn endusershell() void {}
+export fn endutent() void {}
+export fn endutxent() void {}
+export fn environ() void {}
+export fn envz_add() void {}
+export fn envz_entry() void {}
+export fn envz_get() void {}
+export fn envz_merge() void {}
+export fn envz_remove() void {}
+export fn envz_strip() void {}
+export fn epoll_create() void {}
+export fn epoll_create1() void {}
+export fn epoll_ctl() void {}
+export fn epoll_pwait() void {}
+export fn epoll_wait() void {}
+export fn erand48() void {}
+export fn erand48_r() void {}
+export fn err() void {}
+export fn errno() void {}
+export fn error_at_line() void {}
+export fn error_message_count() void {}
+export fn error_one_per_line() void {}
+export fn error_print_progname() void {}
+export fn errx() void {}
+export fn ether_aton() void {}
+export fn ether_aton_r() void {}
+export fn ether_hostton() void {}
+export fn ether_line() void {}
+export fn ether_ntoa() void {}
+export fn ether_ntoa_r() void {}
+export fn ether_ntohost() void {}
+export fn euidaccess() void {}
+export fn eventfd() void {}
+export fn eventfd_read() void {}
+export fn eventfd_write() void {}
+export fn execl() void {}
+export fn execle() void {}
+export fn execlp() void {}
+export fn execv() void {}
+export fn execve() void {}
+export fn execvp() void {}
+export fn execvpe() void {}
+export fn exit() void {}
+export fn explicit_bzero() void {}
+export fn faccessat() void {}
+export fn fallocate() void {}
+export fn fallocate64() void {}
+export fn fanotify_init() void {}
+export fn fanotify_mark() void {}
+export fn fattach() void {}
+export fn fchdir() void {}
+export fn fchflags() void {}
+export fn fchmod() void {}
+export fn fchmodat() void {}
+export fn fchown() void {}
+export fn fchownat() void {}
+export fn fclose() void {}
+export fn fcloseall() void {}
+export fn fcntl() void {}
+export fn fcntl64() void {}
+export fn fcvt() void {}
+export fn fcvt_r() void {}
+export fn fdatasync() void {}
+export fn fdetach() void {}
+export fn fdopen() void {}
+export fn fdopendir() void {}
+export fn feof() void {}
+export fn feof_unlocked() void {}
+export fn ferror() void {}
+export fn ferror_unlocked() void {}
+export fn fexecve() void {}
+export fn fflush() void {}
+export fn fflush_unlocked() void {}
+export fn ffs() void {}
+export fn ffsl() void {}
+export fn ffsll() void {}
+export fn fgetc() void {}
+export fn fgetc_unlocked() void {}
+export fn fgetgrent() void {}
+export fn fgetgrent_r() void {}
+export fn fgetpos() void {}
+export fn fgetpos64() void {}
+export fn fgetpwent() void {}
+export fn fgetpwent_r() void {}
+export fn fgets() void {}
+export fn fgets_unlocked() void {}
+export fn fgetsgent() void {}
+export fn fgetsgent_r() void {}
+export fn fgetspent() void {}
+export fn fgetspent_r() void {}
+export fn fgetwc() void {}
+export fn fgetwc_unlocked() void {}
+export fn fgetws() void {}
+export fn fgetws_unlocked() void {}
+export fn fgetxattr() void {}
+export fn fileno() void {}
+export fn fileno_unlocked() void {}
+export fn finite() void {}
+export fn finitef() void {}
+export fn finitel() void {}
+export fn flistxattr() void {}
+export fn flock() void {}
+export fn flockfile() void {}
+export fn fmemopen() void {}
+export fn fmtmsg() void {}
+export fn fnmatch() void {}
+export fn fopen() void {}
+export fn fopen64() void {}
+export fn fopencookie() void {}
+export fn fork() void {}
+export fn fpathconf() void {}
+export fn fprintf() void {}
+export fn fputc() void {}
+export fn fputc_unlocked() void {}
+export fn fputs() void {}
+export fn fputs_unlocked() void {}
+export fn fputwc() void {}
+export fn fputwc_unlocked() void {}
+export fn fputws() void {}
+export fn fputws_unlocked() void {}
+export fn fread() void {}
+export fn fread_unlocked() void {}
+export fn free() void {}
+export fn freeaddrinfo() void {}
+export fn freeifaddrs() void {}
+export fn freelocale() void {}
+export fn fremovexattr() void {}
+export fn freopen() void {}
+export fn freopen64() void {}
+export fn frexp() void {}
+export fn frexpf() void {}
+export fn frexpl() void {}
+export fn fscanf() void {}
+export fn fseek() void {}
+export fn fseeko() void {}
+export fn fseeko64() void {}
+export fn fsetpos() void {}
+export fn fsetpos64() void {}
+export fn fsetxattr() void {}
+export fn fstatfs() void {}
+export fn fstatfs64() void {}
+export fn fstatvfs() void {}
+export fn fstatvfs64() void {}
+export fn fsync() void {}
+export fn ftell() void {}
+export fn ftello() void {}
+export fn ftello64() void {}
+export fn ftime() void {}
+export fn ftok() void {}
+export fn ftruncate() void {}
+export fn ftruncate64() void {}
+export fn ftrylockfile() void {}
+export fn fts64_children() void {}
+export fn fts64_close() void {}
+export fn fts64_open() void {}
+export fn fts64_read() void {}
+export fn fts64_set() void {}
+export fn fts_children() void {}
+export fn fts_close() void {}
+export fn fts_open() void {}
+export fn fts_read() void {}
+export fn fts_set() void {}
+export fn ftw() void {}
+export fn ftw64() void {}
+export fn funlockfile() void {}
+export fn futimens() void {}
+export fn futimes() void {}
+export fn futimesat() void {}
+export fn fwide() void {}
+export fn fwprintf() void {}
+export fn fwrite() void {}
+export fn fwrite_unlocked() void {}
+export fn fwscanf() void {}
+export fn gai_strerror() void {}
+export fn gcvt() void {}
+export fn get_avphys_pages() void {}
+export fn get_current_dir_name() void {}
+export fn get_kernel_syms() void {}
+export fn get_myaddress() void {}
+export fn get_nprocs() void {}
+export fn get_nprocs_conf() void {}
+export fn get_phys_pages() void {}
+export fn getaddrinfo() void {}
+export fn getaliasbyname() void {}
+export fn getaliasbyname_r() void {}
+export fn getaliasent() void {}
+export fn getaliasent_r() void {}
+export fn getauxval() void {}
+export fn getc() void {}
+export fn getc_unlocked() void {}
+export fn getchar() void {}
+export fn getchar_unlocked() void {}
+export fn getcontext() void {}
+export fn getcpu() void {}
+export fn getcwd() void {}
+export fn getdate() void {}
+export fn getdate_err() void {}
+export fn getdate_r() void {}
+export fn getdelim() void {}
+export fn getdirentries() void {}
+export fn getdirentries64() void {}
+export fn getdomainname() void {}
+export fn getdtablesize() void {}
+export fn getegid() void {}
+export fn getentropy() void {}
+export fn getenv() void {}
+export fn geteuid() void {}
+export fn getfsent() void {}
+export fn getfsfile() void {}
+export fn getfsspec() void {}
+export fn getgid() void {}
+export fn getgrent() void {}
+export fn getgrent_r() void {}
+export fn getgrgid() void {}
+export fn getgrgid_r() void {}
+export fn getgrnam() void {}
+export fn getgrnam_r() void {}
+export fn getgrouplist() void {}
+export fn getgroups() void {}
+export fn gethostbyaddr() void {}
+export fn gethostbyaddr_r() void {}
+export fn gethostbyname() void {}
+export fn gethostbyname2() void {}
+export fn gethostbyname2_r() void {}
+export fn gethostbyname_r() void {}
+export fn gethostent() void {}
+export fn gethostent_r() void {}
+export fn gethostid() void {}
+export fn gethostname() void {}
+export fn getifaddrs() void {}
+export fn getipv4sourcefilter() void {}
+export fn getitimer() void {}
+export fn getline() void {}
+export fn getloadavg() void {}
+export fn getlogin() void {}
+export fn getlogin_r() void {}
+export fn getmntent() void {}
+export fn getmntent_r() void {}
+export fn getmsg() void {}
+export fn getnameinfo() void {}
+export fn getnetbyaddr() void {}
+export fn getnetbyaddr_r() void {}
+export fn getnetbyname() void {}
+export fn getnetbyname_r() void {}
+export fn getnetent() void {}
+export fn getnetent_r() void {}
+export fn getnetgrent() void {}
+export fn getnetgrent_r() void {}
+export fn getnetname() void {}
+export fn getopt() void {}
+export fn getopt_long() void {}
+export fn getopt_long_only() void {}
+export fn getpagesize() void {}
+export fn getpass() void {}
+export fn getpeername() void {}
+export fn getpgid() void {}
+export fn getpgrp() void {}
+export fn getpid() void {}
+export fn getpmsg() void {}
+export fn getppid() void {}
+export fn getpriority() void {}
+export fn getprotobyname() void {}
+export fn getprotobyname_r() void {}
+export fn getprotobynumber() void {}
+export fn getprotobynumber_r() void {}
+export fn getprotoent() void {}
+export fn getprotoent_r() void {}
+export fn getpt() void {}
+export fn getpublickey() void {}
+export fn getpw() void {}
+export fn getpwent() void {}
+export fn getpwent_r() void {}
+export fn getpwnam() void {}
+export fn getpwnam_r() void {}
+export fn getpwuid() void {}
+export fn getpwuid_r() void {}
+export fn getrandom() void {}
+export fn getresgid() void {}
+export fn getresuid() void {}
+export fn getrlimit() void {}
+export fn getrlimit64() void {}
+export fn getrpcbyname() void {}
+export fn getrpcbyname_r() void {}
+export fn getrpcbynumber() void {}
+export fn getrpcbynumber_r() void {}
+export fn getrpcent() void {}
+export fn getrpcent_r() void {}
+export fn getrpcport() void {}
+export fn getrusage() void {}
+export fn gets() void {}
+export fn getsecretkey() void {}
+export fn getservbyname() void {}
+export fn getservbyname_r() void {}
+export fn getservbyport() void {}
+export fn getservbyport_r() void {}
+export fn getservent() void {}
+export fn getservent_r() void {}
+export fn getsgent() void {}
+export fn getsgent_r() void {}
+export fn getsgnam() void {}
+export fn getsgnam_r() void {}
+export fn getsid() void {}
+export fn getsockname() void {}
+export fn getsockopt() void {}
+export fn getsourcefilter() void {}
+export fn getspent() void {}
+export fn getspent_r() void {}
+export fn getspnam() void {}
+export fn getspnam_r() void {}
+export fn getsubopt() void {}
+export fn gettext() void {}
+export fn gettimeofday() void {}
+export fn getttyent() void {}
+export fn getttynam() void {}
+export fn getuid() void {}
+export fn getusershell() void {}
+export fn getutent() void {}
+export fn getutent_r() void {}
+export fn getutid() void {}
+export fn getutid_r() void {}
+export fn getutline() void {}
+export fn getutline_r() void {}
+export fn getutmp() void {}
+export fn getutmpx() void {}
+export fn getutxent() void {}
+export fn getutxid() void {}
+export fn getutxline() void {}
+export fn getw() void {}
+export fn getwc() void {}
+export fn getwc_unlocked() void {}
+export fn getwchar() void {}
+export fn getwchar_unlocked() void {}
+export fn getwd() void {}
+export fn getxattr() void {}
+export fn glob() void {}
+export fn glob64() void {}
+export fn glob_pattern_p() void {}
+export fn globfree() void {}
+export fn globfree64() void {}
+export fn gmtime() void {}
+export fn gmtime_r() void {}
+export fn gnu_dev_major() void {}
+export fn gnu_dev_makedev() void {}
+export fn gnu_dev_minor() void {}
+export fn gnu_get_libc_release() void {}
+export fn gnu_get_libc_version() void {}
+export fn grantpt() void {}
+export fn group_member() void {}
+export fn gsignal() void {}
+export fn gtty() void {}
+export fn h_errlist() void {}
+export fn h_nerr() void {}
+export fn hasmntopt() void {}
+export fn hcreate() void {}
+export fn hcreate_r() void {}
+export fn hdestroy() void {}
+export fn hdestroy_r() void {}
+export fn herror() void {}
+export fn host2netname() void {}
+export fn hsearch() void {}
+export fn hsearch_r() void {}
+export fn hstrerror() void {}
+export fn htonl() void {}
+export fn htons() void {}
+export fn iconv() void {}
+export fn iconv_close() void {}
+export fn iconv_open() void {}
+export fn if_freenameindex() void {}
+export fn if_indextoname() void {}
+export fn if_nameindex() void {}
+export fn if_nametoindex() void {}
+export fn imaxabs() void {}
+export fn imaxdiv() void {}
+export fn in6addr_any() void {}
+export fn in6addr_loopback() void {}
+export fn index() void {}
+export fn inet6_opt_append() void {}
+export fn inet6_opt_find() void {}
+export fn inet6_opt_finish() void {}
+export fn inet6_opt_get_val() void {}
+export fn inet6_opt_init() void {}
+export fn inet6_opt_next() void {}
+export fn inet6_opt_set_val() void {}
+export fn inet6_option_alloc() void {}
+export fn inet6_option_append() void {}
+export fn inet6_option_find() void {}
+export fn inet6_option_init() void {}
+export fn inet6_option_next() void {}
+export fn inet6_option_space() void {}
+export fn inet6_rth_add() void {}
+export fn inet6_rth_getaddr() void {}
+export fn inet6_rth_init() void {}
+export fn inet6_rth_reverse() void {}
+export fn inet6_rth_segments() void {}
+export fn inet6_rth_space() void {}
+export fn inet_addr() void {}
+export fn inet_aton() void {}
+export fn inet_lnaof() void {}
+export fn inet_makeaddr() void {}
+export fn inet_netof() void {}
+export fn inet_network() void {}
+export fn inet_nsap_addr() void {}
+export fn inet_nsap_ntoa() void {}
+export fn inet_ntoa() void {}
+export fn inet_ntop() void {}
+export fn inet_pton() void {}
+export fn init_module() void {}
+export fn initgroups() void {}
+export fn initstate() void {}
+export fn initstate_r() void {}
+export fn innetgr() void {}
+export fn inotify_add_watch() void {}
+export fn inotify_init() void {}
+export fn inotify_init1() void {}
+export fn inotify_rm_watch() void {}
+export fn insque() void {}
+export fn ioctl() void {}
+export fn ioperm() void {}
+export fn iopl() void {}
+export fn iruserok() void {}
+export fn iruserok_af() void {}
+export fn isalnum() void {}
+export fn isalnum_l() void {}
+export fn isalpha() void {}
+export fn isalpha_l() void {}
+export fn isascii() void {}
+export fn isastream() void {}
+export fn isatty() void {}
+export fn isblank() void {}
+export fn isblank_l() void {}
+export fn iscntrl() void {}
+export fn iscntrl_l() void {}
+export fn isctype() void {}
+export fn isdigit() void {}
+export fn isdigit_l() void {}
+export fn isfdtype() void {}
+export fn isgraph() void {}
+export fn isgraph_l() void {}
+export fn isinf() void {}
+export fn isinff() void {}
+export fn isinfl() void {}
+export fn islower() void {}
+export fn islower_l() void {}
+export fn isnan() void {}
+export fn isnanf() void {}
+export fn isnanl() void {}
+export fn isprint() void {}
+export fn isprint_l() void {}
+export fn ispunct() void {}
+export fn ispunct_l() void {}
+export fn isspace() void {}
+export fn isspace_l() void {}
+export fn isupper() void {}
+export fn isupper_l() void {}
+export fn iswalnum() void {}
+export fn iswalnum_l() void {}
+export fn iswalpha() void {}
+export fn iswalpha_l() void {}
+export fn iswblank() void {}
+export fn iswblank_l() void {}
+export fn iswcntrl() void {}
+export fn iswcntrl_l() void {}
+export fn iswctype() void {}
+export fn iswctype_l() void {}
+export fn iswdigit() void {}
+export fn iswdigit_l() void {}
+export fn iswgraph() void {}
+export fn iswgraph_l() void {}
+export fn iswlower() void {}
+export fn iswlower_l() void {}
+export fn iswprint() void {}
+export fn iswprint_l() void {}
+export fn iswpunct() void {}
+export fn iswpunct_l() void {}
+export fn iswspace() void {}
+export fn iswspace_l() void {}
+export fn iswupper() void {}
+export fn iswupper_l() void {}
+export fn iswxdigit() void {}
+export fn iswxdigit_l() void {}
+export fn isxdigit() void {}
+export fn isxdigit_l() void {}
+export fn jrand48() void {}
+export fn jrand48_r() void {}
+export fn key_decryptsession() void {}
+export fn key_decryptsession_pk() void {}
+export fn key_encryptsession() void {}
+export fn key_encryptsession_pk() void {}
+export fn key_gendes() void {}
+export fn key_get_conv() void {}
+export fn key_secretkey_is_set() void {}
+export fn key_setnet() void {}
+export fn key_setsecret() void {}
+export fn kill() void {}
+export fn killpg() void {}
+export fn klogctl() void {}
+export fn l64a() void {}
+export fn labs() void {}
+export fn lchmod() void {}
+export fn lchown() void {}
+export fn lckpwdf() void {}
+export fn lcong48() void {}
+export fn lcong48_r() void {}
+export fn ldexp() void {}
+export fn ldexpf() void {}
+export fn ldexpl() void {}
+export fn ldiv() void {}
+export fn lfind() void {}
+export fn lgetxattr() void {}
+export fn link() void {}
+export fn linkat() void {}
+export fn listen() void {}
+export fn listxattr() void {}
+export fn llabs() void {}
+export fn lldiv() void {}
+export fn llistxattr() void {}
+export fn llseek() void {}
+export fn loc1() void {}
+export fn loc2() void {}
+export fn localeconv() void {}
+export fn localtime() void {}
+export fn localtime_r() void {}
+export fn lockf() void {}
+export fn lockf64() void {}
+export fn locs() void {}
+export fn longjmp() void {}
+export fn lrand48() void {}
+export fn lrand48_r() void {}
+export fn lremovexattr() void {}
+export fn lsearch() void {}
+export fn lseek() void {}
+export fn lseek64() void {}
+export fn lsetxattr() void {}
+export fn lutimes() void {}
+export fn madvise() void {}
+export fn makecontext() void {}
+export fn mallinfo() void {}
+export fn malloc() void {}
+export fn malloc_get_state() void {}
+export fn malloc_info() void {}
+export fn malloc_set_state() void {}
+export fn malloc_stats() void {}
+export fn malloc_trim() void {}
+export fn malloc_usable_size() void {}
+export fn mallopt() void {}
+export fn mallwatch() void {}
+export fn mblen() void {}
+export fn mbrlen() void {}
+export fn mbrtoc16() void {}
+export fn mbrtoc32() void {}
+export fn mbrtowc() void {}
+export fn mbsinit() void {}
+export fn mbsnrtowcs() void {}
+export fn mbsrtowcs() void {}
+export fn mbstowcs() void {}
+export fn mbtowc() void {}
+export fn mcheck() void {}
+export fn mcheck_check_all() void {}
+export fn mcheck_pedantic() void {}
+export fn mcount() void {}
+export fn memalign() void {}
+export fn memccpy() void {}
+export fn memchr() void {}
+export fn memcmp() void {}
+export fn memcpy() void {}
+export fn memfd_create() void {}
+export fn memfrob() void {}
+export fn memmem() void {}
+export fn memmove() void {}
+export fn mempcpy() void {}
+export fn memrchr() void {}
+export fn memset() void {}
+export fn mincore() void {}
+export fn mkdir() void {}
+export fn mkdirat() void {}
+export fn mkdtemp() void {}
+export fn mkfifo() void {}
+export fn mkfifoat() void {}
+export fn mkostemp() void {}
+export fn mkostemp64() void {}
+export fn mkostemps() void {}
+export fn mkostemps64() void {}
+export fn mkstemp() void {}
+export fn mkstemp64() void {}
+export fn mkstemps() void {}
+export fn mkstemps64() void {}
+export fn mktemp() void {}
+export fn mktime() void {}
+export fn mlock() void {}
+export fn mlock2() void {}
+export fn mlockall() void {}
+export fn mmap() void {}
+export fn mmap64() void {}
+export fn modf() void {}
+export fn modff() void {}
+export fn modfl() void {}
+export fn modify_ldt() void {}
+export fn moncontrol() void {}
+export fn monstartup() void {}
+export fn mount() void {}
+export fn mprobe() void {}
+export fn mprotect() void {}
+export fn mrand48() void {}
+export fn mrand48_r() void {}
+export fn mremap() void {}
+export fn msgctl() void {}
+export fn msgget() void {}
+export fn msgrcv() void {}
+export fn msgsnd() void {}
+export fn msync() void {}
+export fn mtrace() void {}
+export fn munlock() void {}
+export fn munlockall() void {}
+export fn munmap() void {}
+export fn muntrace() void {}
+export fn name_to_handle_at() void {}
+export fn nanosleep() void {}
+export fn netname2host() void {}
+export fn netname2user() void {}
+export fn newlocale() void {}
+export fn nfsservctl() void {}
+export fn nftw() void {}
+export fn nftw64() void {}
+export fn ngettext() void {}
+export fn nice() void {}
+export fn nl_langinfo() void {}
+export fn nl_langinfo_l() void {}
+export fn nrand48() void {}
+export fn nrand48_r() void {}
+export fn ntohl() void {}
+export fn ntohs() void {}
+export fn ntp_adjtime() void {}
+export fn ntp_gettime() void {}
+export fn ntp_gettimex() void {}
+export fn obstack_alloc_failed_handler() void {}
+export fn obstack_exit_failure() void {}
+export fn obstack_free() void {}
+export fn obstack_printf() void {}
+export fn obstack_vprintf() void {}
+export fn on_exit() void {}
+export fn open() void {}
+export fn open64() void {}
+export fn open_by_handle_at() void {}
+export fn open_memstream() void {}
+export fn open_wmemstream() void {}
+export fn openat() void {}
+export fn openat64() void {}
+export fn opendir() void {}
+export fn openlog() void {}
+export fn optarg() void {}
+export fn opterr() void {}
+export fn optind() void {}
+export fn optopt() void {}
+export fn parse_printf_format() void {}
+export fn passwd2des() void {}
+export fn pathconf() void {}
+export fn pause() void {}
+export fn pclose() void {}
+export fn perror() void {}
+export fn personality() void {}
+export fn pipe() void {}
+export fn pipe2() void {}
+export fn pivot_root() void {}
+export fn pkey_alloc() void {}
+export fn pkey_free() void {}
+export fn pkey_get() void {}
+export fn pkey_mprotect() void {}
+export fn pkey_set() void {}
+export fn pmap_getmaps() void {}
+export fn pmap_getport() void {}
+export fn pmap_rmtcall() void {}
+export fn pmap_set() void {}
+export fn pmap_unset() void {}
+export fn poll() void {}
+export fn popen() void {}
+export fn posix_fadvise() void {}
+export fn posix_fadvise64() void {}
+export fn posix_fallocate() void {}
+export fn posix_fallocate64() void {}
+export fn posix_madvise() void {}
+export fn posix_memalign() void {}
+export fn posix_openpt() void {}
+export fn posix_spawn() void {}
+export fn posix_spawn_file_actions_addchdir_np() void {}
+export fn posix_spawn_file_actions_addclose() void {}
+export fn posix_spawn_file_actions_adddup2() void {}
+export fn posix_spawn_file_actions_addfchdir_np() void {}
+export fn posix_spawn_file_actions_addopen() void {}
+export fn posix_spawn_file_actions_destroy() void {}
+export fn posix_spawn_file_actions_init() void {}
+export fn posix_spawnattr_destroy() void {}
+export fn posix_spawnattr_getflags() void {}
+export fn posix_spawnattr_getpgroup() void {}
+export fn posix_spawnattr_getschedparam() void {}
+export fn posix_spawnattr_getschedpolicy() void {}
+export fn posix_spawnattr_getsigdefault() void {}
+export fn posix_spawnattr_getsigmask() void {}
+export fn posix_spawnattr_init() void {}
+export fn posix_spawnattr_setflags() void {}
+export fn posix_spawnattr_setpgroup() void {}
+export fn posix_spawnattr_setschedparam() void {}
+export fn posix_spawnattr_setschedpolicy() void {}
+export fn posix_spawnattr_setsigdefault() void {}
+export fn posix_spawnattr_setsigmask() void {}
+export fn posix_spawnp() void {}
+export fn ppoll() void {}
+export fn prctl() void {}
+export fn pread() void {}
+export fn pread64() void {}
+export fn preadv() void {}
+export fn preadv2() void {}
+export fn preadv64() void {}
+export fn preadv64v2() void {}
+export fn printf() void {}
+export fn printf_size() void {}
+export fn printf_size_info() void {}
+export fn prlimit() void {}
+export fn prlimit64() void {}
+export fn process_vm_readv() void {}
+export fn process_vm_writev() void {}
+export fn profil() void {}
+export fn program_invocation_name() void {}
+export fn program_invocation_short_name() void {}
+export fn pselect() void {}
+export fn psiginfo() void {}
+export fn psignal() void {}
+export fn pthread_attr_destroy() void {}
+export fn pthread_attr_getdetachstate() void {}
+export fn pthread_attr_getinheritsched() void {}
+export fn pthread_attr_getschedparam() void {}
+export fn pthread_attr_getschedpolicy() void {}
+export fn pthread_attr_getscope() void {}
+export fn pthread_attr_init() void {}
+export fn pthread_attr_setdetachstate() void {}
+export fn pthread_attr_setinheritsched() void {}
+export fn pthread_attr_setschedparam() void {}
+export fn pthread_attr_setschedpolicy() void {}
+export fn pthread_attr_setscope() void {}
+export fn pthread_cond_broadcast() void {}
+export fn pthread_cond_destroy() void {}
+export fn pthread_cond_init() void {}
+export fn pthread_cond_signal() void {}
+export fn pthread_cond_timedwait() void {}
+export fn pthread_cond_wait() void {}
+export fn pthread_condattr_destroy() void {}
+export fn pthread_condattr_init() void {}
+export fn pthread_equal() void {}
+export fn pthread_exit() void {}
+export fn pthread_getschedparam() void {}
+export fn pthread_mutex_destroy() void {}
+export fn pthread_mutex_init() void {}
+export fn pthread_mutex_lock() void {}
+export fn pthread_mutex_unlock() void {}
+export fn pthread_self() void {}
+export fn pthread_setcancelstate() void {}
+export fn pthread_setcanceltype() void {}
+export fn pthread_setschedparam() void {}
+export fn ptrace() void {}
+export fn ptsname() void {}
+export fn ptsname_r() void {}
+export fn putc() void {}
+export fn putc_unlocked() void {}
+export fn putchar() void {}
+export fn putchar_unlocked() void {}
+export fn putenv() void {}
+export fn putgrent() void {}
+export fn putmsg() void {}
+export fn putpmsg() void {}
+export fn putpwent() void {}
+export fn puts() void {}
+export fn putsgent() void {}
+export fn putspent() void {}
+export fn pututline() void {}
+export fn pututxline() void {}
+export fn putw() void {}
+export fn putwc() void {}
+export fn putwc_unlocked() void {}
+export fn putwchar() void {}
+export fn putwchar_unlocked() void {}
+export fn pvalloc() void {}
+export fn pwrite() void {}
+export fn pwrite64() void {}
+export fn pwritev() void {}
+export fn pwritev2() void {}
+export fn pwritev64() void {}
+export fn pwritev64v2() void {}
+export fn qecvt() void {}
+export fn qecvt_r() void {}
+export fn qfcvt() void {}
+export fn qfcvt_r() void {}
+export fn qgcvt() void {}
+export fn qsort() void {}
+export fn qsort_r() void {}
+export fn query_module() void {}
+export fn quick_exit() void {}
+export fn quotactl() void {}
+export fn raise() void {}
+export fn rand() void {}
+export fn rand_r() void {}
+export fn random() void {}
+export fn random_r() void {}
+export fn rawmemchr() void {}
+export fn rcmd() void {}
+export fn rcmd_af() void {}
+export fn re_comp() void {}
+export fn re_compile_fastmap() void {}
+export fn re_compile_pattern() void {}
+export fn re_exec() void {}
+export fn re_match() void {}
+export fn re_match_2() void {}
+export fn re_max_failures() void {}
+export fn re_search() void {}
+export fn re_search_2() void {}
+export fn re_set_registers() void {}
+export fn re_set_syntax() void {}
+export fn re_syntax_options() void {}
+export fn read() void {}
+export fn readahead() void {}
+export fn readdir() void {}
+export fn readdir64() void {}
+export fn readdir64_r() void {}
+export fn readdir_r() void {}
+export fn readlink() void {}
+export fn readlinkat() void {}
+export fn readv() void {}
+export fn realloc() void {}
+export fn reallocarray() void {}
+export fn realpath() void {}
+export fn reboot() void {}
+export fn recv() void {}
+export fn recvfrom() void {}
+export fn recvmmsg() void {}
+export fn recvmsg() void {}
+export fn regcomp() void {}
+export fn regerror() void {}
+export fn regexec() void {}
+export fn regfree() void {}
+export fn register_printf_function() void {}
+export fn register_printf_modifier() void {}
+export fn register_printf_specifier() void {}
+export fn register_printf_type() void {}
+export fn registerrpc() void {}
+export fn remap_file_pages() void {}
+export fn remove() void {}
+export fn removexattr() void {}
+export fn remque() void {}
+export fn rename() void {}
+export fn renameat() void {}
+export fn renameat2() void {}
+export fn revoke() void {}
+export fn rewind() void {}
+export fn rewinddir() void {}
+export fn rexec() void {}
+export fn rexec_af() void {}
+export fn rexecoptions() void {}
+export fn rindex() void {}
+export fn rmdir() void {}
+export fn rpc_createerr() void {}
+export fn rpmatch() void {}
+export fn rresvport() void {}
+export fn rresvport_af() void {}
+export fn rtime() void {}
+export fn ruserok() void {}
+export fn ruserok_af() void {}
+export fn ruserpass() void {}
+export fn sbrk() void {}
+export fn scalbn() void {}
+export fn scalbnf() void {}
+export fn scalbnl() void {}
+export fn scandir() void {}
+export fn scandir64() void {}
+export fn scandirat() void {}
+export fn scandirat64() void {}
+export fn scanf() void {}
+export fn sched_get_priority_max() void {}
+export fn sched_get_priority_min() void {}
+export fn sched_getaffinity() void {}
+export fn sched_getcpu() void {}
+export fn sched_getparam() void {}
+export fn sched_getscheduler() void {}
+export fn sched_rr_get_interval() void {}
+export fn sched_setaffinity() void {}
+export fn sched_setparam() void {}
+export fn sched_setscheduler() void {}
+export fn sched_yield() void {}
+export fn secure_getenv() void {}
+export fn seed48() void {}
+export fn seed48_r() void {}
+export fn seekdir() void {}
+export fn select() void {}
+export fn semctl() void {}
+export fn semget() void {}
+export fn semop() void {}
+export fn semtimedop() void {}
+export fn send() void {}
+export fn sendfile() void {}
+export fn sendfile64() void {}
+export fn sendmmsg() void {}
+export fn sendmsg() void {}
+export fn sendto() void {}
+export fn setaliasent() void {}
+export fn setbuf() void {}
+export fn setbuffer() void {}
+export fn setcontext() void {}
+export fn setdomainname() void {}
+export fn setegid() void {}
+export fn setenv() void {}
+export fn seteuid() void {}
+export fn setfsent() void {}
+export fn setfsgid() void {}
+export fn setfsuid() void {}
+export fn setgid() void {}
+export fn setgrent() void {}
+export fn setgroups() void {}
+export fn sethostent() void {}
+export fn sethostid() void {}
+export fn sethostname() void {}
+export fn setipv4sourcefilter() void {}
+export fn setitimer() void {}
+export fn setjmp() void {}
+export fn setlinebuf() void {}
+export fn setlocale() void {}
+export fn setlogin() void {}
+export fn setlogmask() void {}
+export fn setmntent() void {}
+export fn setnetent() void {}
+export fn setnetgrent() void {}
+export fn setns() void {}
+export fn setpgid() void {}
+export fn setpgrp() void {}
+export fn setpriority() void {}
+export fn setprotoent() void {}
+export fn setpwent() void {}
+export fn setregid() void {}
+export fn setresgid() void {}
+export fn setresuid() void {}
+export fn setreuid() void {}
+export fn setrlimit() void {}
+export fn setrlimit64() void {}
+export fn setrpcent() void {}
+export fn setservent() void {}
+export fn setsgent() void {}
+export fn setsid() void {}
+export fn setsockopt() void {}
+export fn setsourcefilter() void {}
+export fn setspent() void {}
+export fn setstate() void {}
+export fn setstate_r() void {}
+export fn settimeofday() void {}
+export fn setttyent() void {}
+export fn setuid() void {}
+export fn setusershell() void {}
+export fn setutent() void {}
+export fn setutxent() void {}
+export fn setvbuf() void {}
+export fn setxattr() void {}
+export fn sgetsgent() void {}
+export fn sgetsgent_r() void {}
+export fn sgetspent() void {}
+export fn sgetspent_r() void {}
+export fn shmat() void {}
+export fn shmctl() void {}
+export fn shmdt() void {}
+export fn shmget() void {}
+export fn shutdown() void {}
+export fn sigaction() void {}
+export fn sigaddset() void {}
+export fn sigaltstack() void {}
+export fn sigandset() void {}
+export fn sigblock() void {}
+export fn sigdelset() void {}
+export fn sigemptyset() void {}
+export fn sigfillset() void {}
+export fn siggetmask() void {}
+export fn sighold() void {}
+export fn sigignore() void {}
+export fn siginterrupt() void {}
+export fn sigisemptyset() void {}
+export fn sigismember() void {}
+export fn siglongjmp() void {}
+export fn signal() void {}
+export fn signalfd() void {}
+export fn sigorset() void {}
+export fn sigpause() void {}
+export fn sigpending() void {}
+export fn sigprocmask() void {}
+export fn sigqueue() void {}
+export fn sigrelse() void {}
+export fn sigreturn() void {}
+export fn sigset() void {}
+export fn sigsetmask() void {}
+export fn sigstack() void {}
+export fn sigsuspend() void {}
+export fn sigtimedwait() void {}
+export fn sigvec() void {}
+export fn sigwait() void {}
+export fn sigwaitinfo() void {}
+export fn sleep() void {}
+export fn snprintf() void {}
+export fn sockatmark() void {}
+export fn socket() void {}
+export fn socketpair() void {}
+export fn splice() void {}
+export fn sprintf() void {}
+export fn sprofil() void {}
+export fn srand() void {}
+export fn srand48() void {}
+export fn srand48_r() void {}
+export fn srandom() void {}
+export fn srandom_r() void {}
+export fn sscanf() void {}
+export fn ssignal() void {}
+export fn sstk() void {}
+export fn statfs() void {}
+export fn statfs64() void {}
+export fn statvfs() void {}
+export fn statvfs64() void {}
+export fn statx() void {}
+export fn stderr() void {}
+export fn stdin() void {}
+export fn stdout() void {}
+export fn step() void {}
+export fn stime() void {}
+export fn stpcpy() void {}
+export fn stpncpy() void {}
+export fn strcasecmp() void {}
+export fn strcasecmp_l() void {}
+export fn strcasestr() void {}
+export fn strcat() void {}
+export fn strchr() void {}
+export fn strchrnul() void {}
+export fn strcmp() void {}
+export fn strcoll() void {}
+export fn strcoll_l() void {}
+export fn strcpy() void {}
+export fn strcspn() void {}
+export fn strdup() void {}
+export fn strerror() void {}
+export fn strerror_l() void {}
+export fn strerror_r() void {}
+export fn strfmon() void {}
+export fn strfmon_l() void {}
+export fn strfromd() void {}
+export fn strfromf() void {}
+export fn strfromf128() void {}
+export fn strfromf32() void {}
+export fn strfromf32x() void {}
+export fn strfromf64() void {}
+export fn strfromf64x() void {}
+export fn strfroml() void {}
+export fn strfry() void {}
+export fn strftime() void {}
+export fn strftime_l() void {}
+export fn strlen() void {}
+export fn strncasecmp() void {}
+export fn strncasecmp_l() void {}
+export fn strncat() void {}
+export fn strncmp() void {}
+export fn strncpy() void {}
+export fn strndup() void {}
+export fn strnlen() void {}
+export fn strpbrk() void {}
+export fn strptime() void {}
+export fn strptime_l() void {}
+export fn strrchr() void {}
+export fn strsep() void {}
+export fn strsignal() void {}
+export fn strspn() void {}
+export fn strstr() void {}
+export fn strtod() void {}
+export fn strtod_l() void {}
+export fn strtof() void {}
+export fn strtof128() void {}
+export fn strtof128_l() void {}
+export fn strtof32() void {}
+export fn strtof32_l() void {}
+export fn strtof32x() void {}
+export fn strtof32x_l() void {}
+export fn strtof64() void {}
+export fn strtof64_l() void {}
+export fn strtof64x() void {}
+export fn strtof64x_l() void {}
+export fn strtof_l() void {}
+export fn strtoimax() void {}
+export fn strtok() void {}
+export fn strtok_r() void {}
+export fn strtol() void {}
+export fn strtol_l() void {}
+export fn strtold() void {}
+export fn strtold_l() void {}
+export fn strtoll() void {}
+export fn strtoll_l() void {}
+export fn strtoq() void {}
+export fn strtoul() void {}
+export fn strtoul_l() void {}
+export fn strtoull() void {}
+export fn strtoull_l() void {}
+export fn strtoumax() void {}
+export fn strtouq() void {}
+export fn strverscmp() void {}
+export fn strxfrm() void {}
+export fn strxfrm_l() void {}
+export fn stty() void {}
+export fn svc_exit() void {}
+export fn svc_fdset() void {}
+export fn svc_getreq() void {}
+export fn svc_getreq_common() void {}
+export fn svc_getreq_poll() void {}
+export fn svc_getreqset() void {}
+export fn svc_max_pollfd() void {}
+export fn svc_pollfd() void {}
+export fn svc_register() void {}
+export fn svc_run() void {}
+export fn svc_sendreply() void {}
+export fn svc_unregister() void {}
+export fn svcauthdes_stats() void {}
+export fn svcerr_auth() void {}
+export fn svcerr_decode() void {}
+export fn svcerr_noproc() void {}
+export fn svcerr_noprog() void {}
+export fn svcerr_progvers() void {}
+export fn svcerr_systemerr() void {}
+export fn svcerr_weakauth() void {}
+export fn svcfd_create() void {}
+export fn svcraw_create() void {}
+export fn svctcp_create() void {}
+export fn svcudp_bufcreate() void {}
+export fn svcudp_create() void {}
+export fn svcudp_enablecache() void {}
+export fn svcunix_create() void {}
+export fn svcunixfd_create() void {}
+export fn swab() void {}
+export fn swapcontext() void {}
+export fn swapoff() void {}
+export fn swapon() void {}
+export fn swprintf() void {}
+export fn swscanf() void {}
+export fn symlink() void {}
+export fn symlinkat() void {}
+export fn sync() void {}
+export fn sync_file_range() void {}
+export fn syncfs() void {}
+export fn sys_errlist() void {}
+export fn sys_nerr() void {}
+export fn sys_sigabbrev() void {}
+export fn sys_siglist() void {}
+export fn syscall() void {}
+export fn sysconf() void {}
+export fn sysctl() void {}
+export fn sysinfo() void {}
+export fn syslog() void {}
+export fn system() void {}
+export fn sysv_signal() void {}
+export fn tcdrain() void {}
+export fn tcflow() void {}
+export fn tcflush() void {}
+export fn tcgetattr() void {}
+export fn tcgetpgrp() void {}
+export fn tcgetsid() void {}
+export fn tcsendbreak() void {}
+export fn tcsetattr() void {}
+export fn tcsetpgrp() void {}
+export fn tdelete() void {}
+export fn tdestroy() void {}
+export fn tee() void {}
+export fn telldir() void {}
+export fn tempnam() void {}
+export fn textdomain() void {}
+export fn tfind() void {}
+export fn thrd_current() void {}
+export fn thrd_equal() void {}
+export fn thrd_sleep() void {}
+export fn thrd_yield() void {}
+export fn time() void {}
+export fn timegm() void {}
+export fn timelocal() void {}
+export fn timerfd_create() void {}
+export fn timerfd_gettime() void {}
+export fn timerfd_settime() void {}
+export fn times() void {}
+export fn timespec_get() void {}
+export fn timezone() void {}
+export fn tmpfile() void {}
+export fn tmpfile64() void {}
+export fn tmpnam() void {}
+export fn tmpnam_r() void {}
+export fn toascii() void {}
+export fn tolower() void {}
+export fn tolower_l() void {}
+export fn toupper() void {}
+export fn toupper_l() void {}
+export fn towctrans() void {}
+export fn towctrans_l() void {}
+export fn towlower() void {}
+export fn towlower_l() void {}
+export fn towupper() void {}
+export fn towupper_l() void {}
+export fn tr_break() void {}
+export fn truncate() void {}
+export fn truncate64() void {}
+export fn tsearch() void {}
+export fn ttyname() void {}
+export fn ttyname_r() void {}
+export fn ttyslot() void {}
+export fn twalk() void {}
+export fn tzname() void {}
+export fn tzset() void {}
+export fn ualarm() void {}
+export fn ulckpwdf() void {}
+export fn ulimit() void {}
+export fn umask() void {}
+export fn umount() void {}
+export fn umount2() void {}
+export fn uname() void {}
+export fn ungetc() void {}
+export fn ungetwc() void {}
+export fn unlink() void {}
+export fn unlinkat() void {}
+export fn unlockpt() void {}
+export fn unsetenv() void {}
+export fn unshare() void {}
+export fn updwtmp() void {}
+export fn updwtmpx() void {}
+export fn uselib() void {}
+export fn uselocale() void {}
+export fn user2netname() void {}
+export fn usleep() void {}
+export fn ustat() void {}
+export fn utime() void {}
+export fn utimensat() void {}
+export fn utimes() void {}
+export fn utmpname() void {}
+export fn utmpxname() void {}
+export fn valloc() void {}
+export fn vasprintf() void {}
+export fn vdprintf() void {}
+export fn verr() void {}
+export fn verrx() void {}
+export fn versionsort() void {}
+export fn versionsort64() void {}
+export fn vfork() void {}
+export fn vfprintf() void {}
+export fn vfscanf() void {}
+export fn vfwprintf() void {}
+export fn vfwscanf() void {}
+export fn vhangup() void {}
+export fn vlimit() void {}
+export fn vmsplice() void {}
+export fn vprintf() void {}
+export fn vscanf() void {}
+export fn vsnprintf() void {}
+export fn vsprintf() void {}
+export fn vsscanf() void {}
+export fn vswprintf() void {}
+export fn vswscanf() void {}
+export fn vsyslog() void {}
+export fn vtimes() void {}
+export fn vwarn() void {}
+export fn vwarnx() void {}
+export fn vwprintf() void {}
+export fn vwscanf() void {}
+export fn wait() void {}
+export fn wait3() void {}
+export fn wait4() void {}
+export fn waitid() void {}
+export fn waitpid() void {}
+export fn warn() void {}
+export fn warnx() void {}
+export fn wcpcpy() void {}
+export fn wcpncpy() void {}
+export fn wcrtomb() void {}
+export fn wcscasecmp() void {}
+export fn wcscasecmp_l() void {}
+export fn wcscat() void {}
+export fn wcschr() void {}
+export fn wcschrnul() void {}
+export fn wcscmp() void {}
+export fn wcscoll() void {}
+export fn wcscoll_l() void {}
+export fn wcscpy() void {}
+export fn wcscspn() void {}
+export fn wcsdup() void {}
+export fn wcsftime() void {}
+export fn wcsftime_l() void {}
+export fn wcslen() void {}
+export fn wcsncasecmp() void {}
+export fn wcsncasecmp_l() void {}
+export fn wcsncat() void {}
+export fn wcsncmp() void {}
+export fn wcsncpy() void {}
+export fn wcsnlen() void {}
+export fn wcsnrtombs() void {}
+export fn wcspbrk() void {}
+export fn wcsrchr() void {}
+export fn wcsrtombs() void {}
+export fn wcsspn() void {}
+export fn wcsstr() void {}
+export fn wcstod() void {}
+export fn wcstod_l() void {}
+export fn wcstof() void {}
+export fn wcstof128() void {}
+export fn wcstof128_l() void {}
+export fn wcstof32() void {}
+export fn wcstof32_l() void {}
+export fn wcstof32x() void {}
+export fn wcstof32x_l() void {}
+export fn wcstof64() void {}
+export fn wcstof64_l() void {}
+export fn wcstof64x() void {}
+export fn wcstof64x_l() void {}
+export fn wcstof_l() void {}
+export fn wcstoimax() void {}
+export fn wcstok() void {}
+export fn wcstol() void {}
+export fn wcstol_l() void {}
+export fn wcstold() void {}
+export fn wcstold_l() void {}
+export fn wcstoll() void {}
+export fn wcstoll_l() void {}
+export fn wcstombs() void {}
+export fn wcstoq() void {}
+export fn wcstoul() void {}
+export fn wcstoul_l() void {}
+export fn wcstoull() void {}
+export fn wcstoull_l() void {}
+export fn wcstoumax() void {}
+export fn wcstouq() void {}
+export fn wcswcs() void {}
+export fn wcswidth() void {}
+export fn wcsxfrm() void {}
+export fn wcsxfrm_l() void {}
+export fn wctob() void {}
+export fn wctomb() void {}
+export fn wctrans() void {}
+export fn wctrans_l() void {}
+export fn wctype() void {}
+export fn wctype_l() void {}
+export fn wcwidth() void {}
+export fn wmemchr() void {}
+export fn wmemcmp() void {}
+export fn wmemcpy() void {}
+export fn wmemmove() void {}
+export fn wmempcpy() void {}
+export fn wmemset() void {}
+export fn wordexp() void {}
+export fn wordfree() void {}
+export fn wprintf() void {}
+export fn write() void {}
+export fn writev() void {}
+export fn wscanf() void {}
+export fn xdecrypt() void {}
+export fn xdr_accepted_reply() void {}
+export fn xdr_array() void {}
+export fn xdr_authdes_cred() void {}
+export fn xdr_authdes_verf() void {}
+export fn xdr_authunix_parms() void {}
+export fn xdr_bool() void {}
+export fn xdr_bytes() void {}
+export fn xdr_callhdr() void {}
+export fn xdr_callmsg() void {}
+export fn xdr_char() void {}
+export fn xdr_cryptkeyarg() void {}
+export fn xdr_cryptkeyarg2() void {}
+export fn xdr_cryptkeyres() void {}
+export fn xdr_des_block() void {}
+export fn xdr_double() void {}
+export fn xdr_enum() void {}
+export fn xdr_float() void {}
+export fn xdr_free() void {}
+export fn xdr_getcredres() void {}
+export fn xdr_hyper() void {}
+export fn xdr_int() void {}
+export fn xdr_int16_t() void {}
+export fn xdr_int32_t() void {}
+export fn xdr_int64_t() void {}
+export fn xdr_int8_t() void {}
+export fn xdr_key_netstarg() void {}
+export fn xdr_key_netstres() void {}
+export fn xdr_keybuf() void {}
+export fn xdr_keystatus() void {}
+export fn xdr_long() void {}
+export fn xdr_longlong_t() void {}
+export fn xdr_netnamestr() void {}
+export fn xdr_netobj() void {}
+export fn xdr_opaque() void {}
+export fn xdr_opaque_auth() void {}
+export fn xdr_pmap() void {}
+export fn xdr_pmaplist() void {}
+export fn xdr_pointer() void {}
+export fn xdr_quad_t() void {}
+export fn xdr_reference() void {}
+export fn xdr_rejected_reply() void {}
+export fn xdr_replymsg() void {}
+export fn xdr_rmtcall_args() void {}
+export fn xdr_rmtcallres() void {}
+export fn xdr_short() void {}
+export fn xdr_sizeof() void {}
+export fn xdr_string() void {}
+export fn xdr_u_char() void {}
+export fn xdr_u_hyper() void {}
+export fn xdr_u_int() void {}
+export fn xdr_u_long() void {}
+export fn xdr_u_longlong_t() void {}
+export fn xdr_u_quad_t() void {}
+export fn xdr_u_short() void {}
+export fn xdr_uint16_t() void {}
+export fn xdr_uint32_t() void {}
+export fn xdr_uint64_t() void {}
+export fn xdr_uint8_t() void {}
+export fn xdr_union() void {}
+export fn xdr_unixcred() void {}
+export fn xdr_vector() void {}
+export fn xdr_void() void {}
+export fn xdr_wrapstring() void {}
+export fn xdrmem_create() void {}
+export fn xdrrec_create() void {}
+export fn xdrrec_endofrecord() void {}
+export fn xdrrec_eof() void {}
+export fn xdrrec_skiprecord() void {}
+export fn xdrstdio_create() void {}
+export fn xencrypt() void {}
+export fn xprt_register() void {}
+export fn xprt_unregister() void {}
diff --git a/libc/dummy/c/i386.zig b/libc/dummy/c/i386.zig
new file mode 100644
index 000000000000..5a9c8cdcf044
--- /dev/null
+++ b/libc/dummy/c/i386.zig
@@ -0,0 +1,71 @@
+export fn @"__x86.get_pc_thunk.bx"() void {}
+export fn _IO_stderr_() void {}
+export fn _IO_stdin_() void {}
+export fn _IO_stdout_() void {}
+export fn _Unwind_Find_FDE() void {}
+export fn ___brk_addr() void {}
+export fn __deregister_frame() void {}
+export fn __deregister_frame_info() void {}
+export fn __deregister_frame_info_bases() void {}
+export fn __divdi3() void {}
+export fn __frame_state_for() void {}
+export fn __memcpy_by2() void {}
+export fn __memcpy_by4() void {}
+export fn __memcpy_c() void {}
+export fn __memcpy_g() void {}
+export fn __mempcpy_by2() void {}
+export fn __mempcpy_by4() void {}
+export fn __mempcpy_byn() void {}
+export fn __memset_cc() void {}
+export fn __memset_ccn_by2() void {}
+export fn __memset_ccn_by4() void {}
+export fn __memset_cg() void {}
+export fn __memset_gcn_by2() void {}
+export fn __memset_gcn_by4() void {}
+export fn __memset_gg() void {}
+export fn __moddi3() void {}
+export fn __modify_ldt() void {}
+export fn __register_frame() void {}
+export fn __register_frame_info() void {}
+export fn __register_frame_info_bases() void {}
+export fn __register_frame_info_table() void {}
+export fn __register_frame_info_table_bases() void {}
+export fn __register_frame_table() void {}
+export fn __stpcpy_g() void {}
+export fn __strcat_c() void {}
+export fn __strcat_g() void {}
+export fn __strchr_c() void {}
+export fn __strchr_g() void {}
+export fn __strchrnul_c() void {}
+export fn __strchrnul_g() void {}
+export fn __strcmp_gg() void {}
+export fn __strcpy_g() void {}
+export fn __strcspn_cg() void {}
+export fn __strcspn_g() void {}
+export fn __strlen_g() void {}
+export fn __strncat_g() void {}
+export fn __strncmp_g() void {}
+export fn __strncpy_by2() void {}
+export fn __strncpy_by4() void {}
+export fn __strncpy_byn() void {}
+export fn __strncpy_gg() void {}
+export fn __strpbrk_cg() void {}
+export fn __strpbrk_g() void {}
+export fn __strrchr_c() void {}
+export fn __strrchr_g() void {}
+export fn __strspn_cg() void {}
+export fn __strspn_g() void {}
+export fn __strstr_cg() void {}
+export fn __strstr_g() void {}
+export fn __strtoq_internal() void {}
+export fn __strtouq_internal() void {}
+export fn __udivdi3() void {}
+export fn __umoddi3() void {}
+export fn __uname() void {}
+export fn atexit() void {}
+export fn gettid() void {}
+export fn res_init() void {}
+export fn scalbln() void {}
+export fn scalblnf() void {}
+export fn scalblnl() void {}
+export fn vm86() void {}
diff --git a/libc/dummy/c/x86_64.zig b/libc/dummy/c/x86_64.zig
new file mode 100644
index 000000000000..3f566a021df2
--- /dev/null
+++ b/libc/dummy/c/x86_64.zig
@@ -0,0 +1,2 @@
+export fn arch_prctl() void {}
+export fn __arch_prctl() void {}
diff --git a/libc/dummy/dl.zig b/libc/dummy/dl.zig
new file mode 100644
index 000000000000..e4cf3a20c3a5
--- /dev/null
+++ b/libc/dummy/dl.zig
@@ -0,0 +1,14 @@
+// This file exists to create a libdl.so file so that LLD has something to look at
+// and emit linker errors if an attempt to link against a non-existent C symbol happens.
+
+export fn __libdl_freeres() void {}
+export fn _dlfcn_hook() void {}
+export fn dladdr() void {}
+export fn dladdr1() void {}
+export fn dlclose() void {}
+export fn dlerror() void {}
+export fn dlinfo() void {}
+export fn dlmopen() void {}
+export fn dlopen() void {}
+export fn dlsym() void {}
+export fn dlvsym() void {}
diff --git a/libc/dummy/m.zig b/libc/dummy/m.zig
new file mode 100644
index 000000000000..abdd80b7a85f
--- /dev/null
+++ b/libc/dummy/m.zig
@@ -0,0 +1,1063 @@
+// This file exists to create a libm.so file so that LLD has something to look at
+// and emit linker errors if an attempt to link against a non-existent C symbol happens.
+
+export fn _LIB_VERSION() void {}
+export fn __acos_finite() void {}
+export fn __acosf128_finite() void {}
+export fn __acosf_finite() void {}
+export fn __acosh_finite() void {}
+export fn __acoshf128_finite() void {}
+export fn __acoshf_finite() void {}
+export fn __acoshl_finite() void {}
+export fn __acosl_finite() void {}
+export fn __asin_finite() void {}
+export fn __asinf128_finite() void {}
+export fn __asinf_finite() void {}
+export fn __asinl_finite() void {}
+export fn __atan2_finite() void {}
+export fn __atan2f128_finite() void {}
+export fn __atan2f_finite() void {}
+export fn __atan2l_finite() void {}
+export fn __atanh_finite() void {}
+export fn __atanhf128_finite() void {}
+export fn __atanhf_finite() void {}
+export fn __atanhl_finite() void {}
+export fn __clog10() void {}
+export fn __clog10f() void {}
+export fn __clog10l() void {}
+export fn __cosh_finite() void {}
+export fn __coshf128_finite() void {}
+export fn __coshf_finite() void {}
+export fn __coshl_finite() void {}
+export fn __exp10_finite() void {}
+export fn __exp10f128_finite() void {}
+export fn __exp10f_finite() void {}
+export fn __exp10l_finite() void {}
+export fn __exp2_finite() void {}
+export fn __exp2f128_finite() void {}
+export fn __exp2f_finite() void {}
+export fn __exp2l_finite() void {}
+export fn __exp_finite() void {}
+export fn __expf128_finite() void {}
+export fn __expf_finite() void {}
+export fn __expl_finite() void {}
+export fn __finite() void {}
+export fn __finitef() void {}
+export fn __finitef128() void {}
+export fn __finitel() void {}
+export fn __fmod_finite() void {}
+export fn __fmodf128_finite() void {}
+export fn __fmodf_finite() void {}
+export fn __fmodl_finite() void {}
+export fn __fpclassify() void {}
+export fn __fpclassifyf() void {}
+export fn __fpclassifyf128() void {}
+export fn __fpclassifyl() void {}
+export fn __gamma_r_finite() void {}
+export fn __gammaf128_r_finite() void {}
+export fn __gammaf_r_finite() void {}
+export fn __gammal_r_finite() void {}
+export fn __hypot_finite() void {}
+export fn __hypotf128_finite() void {}
+export fn __hypotf_finite() void {}
+export fn __hypotl_finite() void {}
+export fn __iscanonicall() void {}
+export fn __iseqsig() void {}
+export fn __iseqsigf() void {}
+export fn __iseqsigf128() void {}
+export fn __iseqsigl() void {}
+export fn __isinff128() void {}
+export fn __isnanf128() void {}
+export fn __issignaling() void {}
+export fn __issignalingf() void {}
+export fn __issignalingf128() void {}
+export fn __issignalingl() void {}
+export fn __j0_finite() void {}
+export fn __j0f128_finite() void {}
+export fn __j0f_finite() void {}
+export fn __j0l_finite() void {}
+export fn __j1_finite() void {}
+export fn __j1f128_finite() void {}
+export fn __j1f_finite() void {}
+export fn __j1l_finite() void {}
+export fn __jn_finite() void {}
+export fn __jnf128_finite() void {}
+export fn __jnf_finite() void {}
+export fn __jnl_finite() void {}
+export fn __lgamma_r_finite() void {}
+export fn __lgammaf128_r_finite() void {}
+export fn __lgammaf_r_finite() void {}
+export fn __lgammal_r_finite() void {}
+export fn __log10_finite() void {}
+export fn __log10f128_finite() void {}
+export fn __log10f_finite() void {}
+export fn __log10l_finite() void {}
+export fn __log2_finite() void {}
+export fn __log2f128_finite() void {}
+export fn __log2f_finite() void {}
+export fn __log2l_finite() void {}
+export fn __log_finite() void {}
+export fn __logf128_finite() void {}
+export fn __logf_finite() void {}
+export fn __logl_finite() void {}
+export fn __pow_finite() void {}
+export fn __powf128_finite() void {}
+export fn __powf_finite() void {}
+export fn __powl_finite() void {}
+export fn __remainder_finite() void {}
+export fn __remainderf128_finite() void {}
+export fn __remainderf_finite() void {}
+export fn __remainderl_finite() void {}
+export fn __scalb_finite() void {}
+export fn __scalbf_finite() void {}
+export fn __scalbl_finite() void {}
+export fn __signbit() void {}
+export fn __signbitf() void {}
+export fn __signbitf128() void {}
+export fn __signbitl() void {}
+export fn __signgam() void {}
+export fn __sinh_finite() void {}
+export fn __sinhf128_finite() void {}
+export fn __sinhf_finite() void {}
+export fn __sinhl_finite() void {}
+export fn __sqrt_finite() void {}
+export fn __sqrtf128_finite() void {}
+export fn __sqrtf_finite() void {}
+export fn __sqrtl_finite() void {}
+export fn __y0_finite() void {}
+export fn __y0f128_finite() void {}
+export fn __y0f_finite() void {}
+export fn __y0l_finite() void {}
+export fn __y1_finite() void {}
+export fn __y1f128_finite() void {}
+export fn __y1f_finite() void {}
+export fn __y1l_finite() void {}
+export fn __yn_finite() void {}
+export fn __ynf128_finite() void {}
+export fn __ynf_finite() void {}
+export fn __ynl_finite() void {}
+export fn acos() void {}
+export fn acosf() void {}
+export fn acosf128() void {}
+export fn acosf32() void {}
+export fn acosf32x() void {}
+export fn acosf64() void {}
+export fn acosf64x() void {}
+export fn acosh() void {}
+export fn acoshf() void {}
+export fn acoshf128() void {}
+export fn acoshf32() void {}
+export fn acoshf32x() void {}
+export fn acoshf64() void {}
+export fn acoshf64x() void {}
+export fn acoshl() void {}
+export fn acosl() void {}
+export fn asin() void {}
+export fn asinf() void {}
+export fn asinf128() void {}
+export fn asinf32() void {}
+export fn asinf32x() void {}
+export fn asinf64() void {}
+export fn asinf64x() void {}
+export fn asinh() void {}
+export fn asinhf() void {}
+export fn asinhf128() void {}
+export fn asinhf32() void {}
+export fn asinhf32x() void {}
+export fn asinhf64() void {}
+export fn asinhf64x() void {}
+export fn asinhl() void {}
+export fn asinl() void {}
+export fn atan() void {}
+export fn atan2() void {}
+export fn atan2f() void {}
+export fn atan2f128() void {}
+export fn atan2f32() void {}
+export fn atan2f32x() void {}
+export fn atan2f64() void {}
+export fn atan2f64x() void {}
+export fn atan2l() void {}
+export fn atanf() void {}
+export fn atanf128() void {}
+export fn atanf32() void {}
+export fn atanf32x() void {}
+export fn atanf64() void {}
+export fn atanf64x() void {}
+export fn atanh() void {}
+export fn atanhf() void {}
+export fn atanhf128() void {}
+export fn atanhf32() void {}
+export fn atanhf32x() void {}
+export fn atanhf64() void {}
+export fn atanhf64x() void {}
+export fn atanhl() void {}
+export fn atanl() void {}
+export fn cabs() void {}
+export fn cabsf() void {}
+export fn cabsf128() void {}
+export fn cabsf32() void {}
+export fn cabsf32x() void {}
+export fn cabsf64() void {}
+export fn cabsf64x() void {}
+export fn cabsl() void {}
+export fn cacos() void {}
+export fn cacosf() void {}
+export fn cacosf128() void {}
+export fn cacosf32() void {}
+export fn cacosf32x() void {}
+export fn cacosf64() void {}
+export fn cacosf64x() void {}
+export fn cacosh() void {}
+export fn cacoshf() void {}
+export fn cacoshf128() void {}
+export fn cacoshf32() void {}
+export fn cacoshf32x() void {}
+export fn cacoshf64() void {}
+export fn cacoshf64x() void {}
+export fn cacoshl() void {}
+export fn cacosl() void {}
+export fn canonicalize() void {}
+export fn canonicalizef() void {}
+export fn canonicalizef128() void {}
+export fn canonicalizef32() void {}
+export fn canonicalizef32x() void {}
+export fn canonicalizef64() void {}
+export fn canonicalizef64x() void {}
+export fn canonicalizel() void {}
+export fn carg() void {}
+export fn cargf() void {}
+export fn cargf128() void {}
+export fn cargf32() void {}
+export fn cargf32x() void {}
+export fn cargf64() void {}
+export fn cargf64x() void {}
+export fn cargl() void {}
+export fn casin() void {}
+export fn casinf() void {}
+export fn casinf128() void {}
+export fn casinf32() void {}
+export fn casinf32x() void {}
+export fn casinf64() void {}
+export fn casinf64x() void {}
+export fn casinh() void {}
+export fn casinhf() void {}
+export fn casinhf128() void {}
+export fn casinhf32() void {}
+export fn casinhf32x() void {}
+export fn casinhf64() void {}
+export fn casinhf64x() void {}
+export fn casinhl() void {}
+export fn casinl() void {}
+export fn catan() void {}
+export fn catanf() void {}
+export fn catanf128() void {}
+export fn catanf32() void {}
+export fn catanf32x() void {}
+export fn catanf64() void {}
+export fn catanf64x() void {}
+export fn catanh() void {}
+export fn catanhf() void {}
+export fn catanhf128() void {}
+export fn catanhf32() void {}
+export fn catanhf32x() void {}
+export fn catanhf64() void {}
+export fn catanhf64x() void {}
+export fn catanhl() void {}
+export fn catanl() void {}
+export fn cbrt() void {}
+export fn cbrtf() void {}
+export fn cbrtf128() void {}
+export fn cbrtf32() void {}
+export fn cbrtf32x() void {}
+export fn cbrtf64() void {}
+export fn cbrtf64x() void {}
+export fn cbrtl() void {}
+export fn ccos() void {}
+export fn ccosf() void {}
+export fn ccosf128() void {}
+export fn ccosf32() void {}
+export fn ccosf32x() void {}
+export fn ccosf64() void {}
+export fn ccosf64x() void {}
+export fn ccosh() void {}
+export fn ccoshf() void {}
+export fn ccoshf128() void {}
+export fn ccoshf32() void {}
+export fn ccoshf32x() void {}
+export fn ccoshf64() void {}
+export fn ccoshf64x() void {}
+export fn ccoshl() void {}
+export fn ccosl() void {}
+export fn ceil() void {}
+export fn ceilf() void {}
+export fn ceilf128() void {}
+export fn ceilf32() void {}
+export fn ceilf32x() void {}
+export fn ceilf64() void {}
+export fn ceilf64x() void {}
+export fn ceill() void {}
+export fn cexp() void {}
+export fn cexpf() void {}
+export fn cexpf128() void {}
+export fn cexpf32() void {}
+export fn cexpf32x() void {}
+export fn cexpf64() void {}
+export fn cexpf64x() void {}
+export fn cexpl() void {}
+export fn cimag() void {}
+export fn cimagf() void {}
+export fn cimagf128() void {}
+export fn cimagf32() void {}
+export fn cimagf32x() void {}
+export fn cimagf64() void {}
+export fn cimagf64x() void {}
+export fn cimagl() void {}
+export fn clog() void {}
+export fn clog10() void {}
+export fn clog10f() void {}
+export fn clog10f128() void {}
+export fn clog10f32() void {}
+export fn clog10f32x() void {}
+export fn clog10f64() void {}
+export fn clog10f64x() void {}
+export fn clog10l() void {}
+export fn clogf() void {}
+export fn clogf128() void {}
+export fn clogf32() void {}
+export fn clogf32x() void {}
+export fn clogf64() void {}
+export fn clogf64x() void {}
+export fn clogl() void {}
+export fn conj() void {}
+export fn conjf() void {}
+export fn conjf128() void {}
+export fn conjf32() void {}
+export fn conjf32x() void {}
+export fn conjf64() void {}
+export fn conjf64x() void {}
+export fn conjl() void {}
+export fn copysign() void {}
+export fn copysignf() void {}
+export fn copysignf128() void {}
+export fn copysignf32() void {}
+export fn copysignf32x() void {}
+export fn copysignf64() void {}
+export fn copysignf64x() void {}
+export fn copysignl() void {}
+export fn cos() void {}
+export fn cosf() void {}
+export fn cosf128() void {}
+export fn cosf32() void {}
+export fn cosf32x() void {}
+export fn cosf64() void {}
+export fn cosf64x() void {}
+export fn cosh() void {}
+export fn coshf() void {}
+export fn coshf128() void {}
+export fn coshf32() void {}
+export fn coshf32x() void {}
+export fn coshf64() void {}
+export fn coshf64x() void {}
+export fn coshl() void {}
+export fn cosl() void {}
+export fn cpow() void {}
+export fn cpowf() void {}
+export fn cpowf128() void {}
+export fn cpowf32() void {}
+export fn cpowf32x() void {}
+export fn cpowf64() void {}
+export fn cpowf64x() void {}
+export fn cpowl() void {}
+export fn cproj() void {}
+export fn cprojf() void {}
+export fn cprojf128() void {}
+export fn cprojf32() void {}
+export fn cprojf32x() void {}
+export fn cprojf64() void {}
+export fn cprojf64x() void {}
+export fn cprojl() void {}
+export fn creal() void {}
+export fn crealf() void {}
+export fn crealf128() void {}
+export fn crealf32() void {}
+export fn crealf32x() void {}
+export fn crealf64() void {}
+export fn crealf64x() void {}
+export fn creall() void {}
+export fn csin() void {}
+export fn csinf() void {}
+export fn csinf128() void {}
+export fn csinf32() void {}
+export fn csinf32x() void {}
+export fn csinf64() void {}
+export fn csinf64x() void {}
+export fn csinh() void {}
+export fn csinhf() void {}
+export fn csinhf128() void {}
+export fn csinhf32() void {}
+export fn csinhf32x() void {}
+export fn csinhf64() void {}
+export fn csinhf64x() void {}
+export fn csinhl() void {}
+export fn csinl() void {}
+export fn csqrt() void {}
+export fn csqrtf() void {}
+export fn csqrtf128() void {}
+export fn csqrtf32() void {}
+export fn csqrtf32x() void {}
+export fn csqrtf64() void {}
+export fn csqrtf64x() void {}
+export fn csqrtl() void {}
+export fn ctan() void {}
+export fn ctanf() void {}
+export fn ctanf128() void {}
+export fn ctanf32() void {}
+export fn ctanf32x() void {}
+export fn ctanf64() void {}
+export fn ctanf64x() void {}
+export fn ctanh() void {}
+export fn ctanhf() void {}
+export fn ctanhf128() void {}
+export fn ctanhf32() void {}
+export fn ctanhf32x() void {}
+export fn ctanhf64() void {}
+export fn ctanhf64x() void {}
+export fn ctanhl() void {}
+export fn ctanl() void {}
+export fn daddl() void {}
+export fn ddivl() void {}
+export fn dmull() void {}
+export fn drem() void {}
+export fn dremf() void {}
+export fn dreml() void {}
+export fn dsubl() void {}
+export fn erf() void {}
+export fn erfc() void {}
+export fn erfcf() void {}
+export fn erfcf128() void {}
+export fn erfcf32() void {}
+export fn erfcf32x() void {}
+export fn erfcf64() void {}
+export fn erfcf64x() void {}
+export fn erfcl() void {}
+export fn erff() void {}
+export fn erff128() void {}
+export fn erff32() void {}
+export fn erff32x() void {}
+export fn erff64() void {}
+export fn erff64x() void {}
+export fn erfl() void {}
+export fn exp() void {}
+export fn exp10() void {}
+export fn exp10f() void {}
+export fn exp10f128() void {}
+export fn exp10f32() void {}
+export fn exp10f32x() void {}
+export fn exp10f64() void {}
+export fn exp10f64x() void {}
+export fn exp10l() void {}
+export fn exp2() void {}
+export fn exp2f() void {}
+export fn exp2f128() void {}
+export fn exp2f32() void {}
+export fn exp2f32x() void {}
+export fn exp2f64() void {}
+export fn exp2f64x() void {}
+export fn exp2l() void {}
+export fn expf() void {}
+export fn expf128() void {}
+export fn expf32() void {}
+export fn expf32x() void {}
+export fn expf64() void {}
+export fn expf64x() void {}
+export fn expl() void {}
+export fn expm1() void {}
+export fn expm1f() void {}
+export fn expm1f128() void {}
+export fn expm1f32() void {}
+export fn expm1f32x() void {}
+export fn expm1f64() void {}
+export fn expm1f64x() void {}
+export fn expm1l() void {}
+export fn f32addf128() void {}
+export fn f32addf32x() void {}
+export fn f32addf64() void {}
+export fn f32addf64x() void {}
+export fn f32divf128() void {}
+export fn f32divf32x() void {}
+export fn f32divf64() void {}
+export fn f32divf64x() void {}
+export fn f32mulf128() void {}
+export fn f32mulf32x() void {}
+export fn f32mulf64() void {}
+export fn f32mulf64x() void {}
+export fn f32subf128() void {}
+export fn f32subf32x() void {}
+export fn f32subf64() void {}
+export fn f32subf64x() void {}
+export fn f32xaddf128() void {}
+export fn f32xaddf64() void {}
+export fn f32xaddf64x() void {}
+export fn f32xdivf128() void {}
+export fn f32xdivf64() void {}
+export fn f32xdivf64x() void {}
+export fn f32xmulf128() void {}
+export fn f32xmulf64() void {}
+export fn f32xmulf64x() void {}
+export fn f32xsubf128() void {}
+export fn f32xsubf64() void {}
+export fn f32xsubf64x() void {}
+export fn f64addf128() void {}
+export fn f64addf64x() void {}
+export fn f64divf128() void {}
+export fn f64divf64x() void {}
+export fn f64mulf128() void {}
+export fn f64mulf64x() void {}
+export fn f64subf128() void {}
+export fn f64subf64x() void {}
+export fn f64xaddf128() void {}
+export fn f64xdivf128() void {}
+export fn f64xmulf128() void {}
+export fn f64xsubf128() void {}
+export fn fabs() void {}
+export fn fabsf() void {}
+export fn fabsf128() void {}
+export fn fabsf32() void {}
+export fn fabsf32x() void {}
+export fn fabsf64() void {}
+export fn fabsf64x() void {}
+export fn fabsl() void {}
+export fn fadd() void {}
+export fn faddl() void {}
+export fn fdim() void {}
+export fn fdimf() void {}
+export fn fdimf128() void {}
+export fn fdimf32() void {}
+export fn fdimf32x() void {}
+export fn fdimf64() void {}
+export fn fdimf64x() void {}
+export fn fdiml() void {}
+export fn fdiv() void {}
+export fn fdivl() void {}
+export fn feclearexcept() void {}
+export fn fedisableexcept() void {}
+export fn feenableexcept() void {}
+export fn fegetenv() void {}
+export fn fegetexcept() void {}
+export fn fegetexceptflag() void {}
+export fn fegetmode() void {}
+export fn fegetround() void {}
+export fn feholdexcept() void {}
+export fn feraiseexcept() void {}
+export fn fesetenv() void {}
+export fn fesetexcept() void {}
+export fn fesetexceptflag() void {}
+export fn fesetmode() void {}
+export fn fesetround() void {}
+export fn fetestexcept() void {}
+export fn fetestexceptflag() void {}
+export fn feupdateenv() void {}
+export fn finite() void {}
+export fn finitef() void {}
+export fn finitel() void {}
+export fn floor() void {}
+export fn floorf() void {}
+export fn floorf128() void {}
+export fn floorf32() void {}
+export fn floorf32x() void {}
+export fn floorf64() void {}
+export fn floorf64x() void {}
+export fn floorl() void {}
+export fn fma() void {}
+export fn fmaf() void {}
+export fn fmaf128() void {}
+export fn fmaf32() void {}
+export fn fmaf32x() void {}
+export fn fmaf64() void {}
+export fn fmaf64x() void {}
+export fn fmal() void {}
+export fn fmax() void {}
+export fn fmaxf() void {}
+export fn fmaxf128() void {}
+export fn fmaxf32() void {}
+export fn fmaxf32x() void {}
+export fn fmaxf64() void {}
+export fn fmaxf64x() void {}
+export fn fmaxl() void {}
+export fn fmaxmag() void {}
+export fn fmaxmagf() void {}
+export fn fmaxmagf128() void {}
+export fn fmaxmagf32() void {}
+export fn fmaxmagf32x() void {}
+export fn fmaxmagf64() void {}
+export fn fmaxmagf64x() void {}
+export fn fmaxmagl() void {}
+export fn fmin() void {}
+export fn fminf() void {}
+export fn fminf128() void {}
+export fn fminf32() void {}
+export fn fminf32x() void {}
+export fn fminf64() void {}
+export fn fminf64x() void {}
+export fn fminl() void {}
+export fn fminmag() void {}
+export fn fminmagf() void {}
+export fn fminmagf128() void {}
+export fn fminmagf32() void {}
+export fn fminmagf32x() void {}
+export fn fminmagf64() void {}
+export fn fminmagf64x() void {}
+export fn fminmagl() void {}
+export fn fmod() void {}
+export fn fmodf() void {}
+export fn fmodf128() void {}
+export fn fmodf32() void {}
+export fn fmodf32x() void {}
+export fn fmodf64() void {}
+export fn fmodf64x() void {}
+export fn fmodl() void {}
+export fn fmul() void {}
+export fn fmull() void {}
+export fn frexp() void {}
+export fn frexpf() void {}
+export fn frexpf128() void {}
+export fn frexpf32() void {}
+export fn frexpf32x() void {}
+export fn frexpf64() void {}
+export fn frexpf64x() void {}
+export fn frexpl() void {}
+export fn fromfp() void {}
+export fn fromfpf() void {}
+export fn fromfpf128() void {}
+export fn fromfpf32() void {}
+export fn fromfpf32x() void {}
+export fn fromfpf64() void {}
+export fn fromfpf64x() void {}
+export fn fromfpl() void {}
+export fn fromfpx() void {}
+export fn fromfpxf() void {}
+export fn fromfpxf128() void {}
+export fn fromfpxf32() void {}
+export fn fromfpxf32x() void {}
+export fn fromfpxf64() void {}
+export fn fromfpxf64x() void {}
+export fn fromfpxl() void {}
+export fn fsub() void {}
+export fn fsubl() void {}
+export fn gamma() void {}
+export fn gammaf() void {}
+export fn gammal() void {}
+export fn getpayload() void {}
+export fn getpayloadf() void {}
+export fn getpayloadf128() void {}
+export fn getpayloadf32() void {}
+export fn getpayloadf32x() void {}
+export fn getpayloadf64() void {}
+export fn getpayloadf64x() void {}
+export fn getpayloadl() void {}
+export fn hypot() void {}
+export fn hypotf() void {}
+export fn hypotf128() void {}
+export fn hypotf32() void {}
+export fn hypotf32x() void {}
+export fn hypotf64() void {}
+export fn hypotf64x() void {}
+export fn hypotl() void {}
+export fn ilogb() void {}
+export fn ilogbf() void {}
+export fn ilogbf128() void {}
+export fn ilogbf32() void {}
+export fn ilogbf32x() void {}
+export fn ilogbf64() void {}
+export fn ilogbf64x() void {}
+export fn ilogbl() void {}
+export fn j0() void {}
+export fn j0f() void {}
+export fn j0f128() void {}
+export fn j0f32() void {}
+export fn j0f32x() void {}
+export fn j0f64() void {}
+export fn j0f64x() void {}
+export fn j0l() void {}
+export fn j1() void {}
+export fn j1f() void {}
+export fn j1f128() void {}
+export fn j1f32() void {}
+export fn j1f32x() void {}
+export fn j1f64() void {}
+export fn j1f64x() void {}
+export fn j1l() void {}
+export fn jn() void {}
+export fn jnf() void {}
+export fn jnf128() void {}
+export fn jnf32() void {}
+export fn jnf32x() void {}
+export fn jnf64() void {}
+export fn jnf64x() void {}
+export fn jnl() void {}
+export fn ldexp() void {}
+export fn ldexpf() void {}
+export fn ldexpf128() void {}
+export fn ldexpf32() void {}
+export fn ldexpf32x() void {}
+export fn ldexpf64() void {}
+export fn ldexpf64x() void {}
+export fn ldexpl() void {}
+export fn lgamma() void {}
+export fn lgamma_r() void {}
+export fn lgammaf() void {}
+export fn lgammaf128() void {}
+export fn lgammaf128_r() void {}
+export fn lgammaf32() void {}
+export fn lgammaf32_r() void {}
+export fn lgammaf32x() void {}
+export fn lgammaf32x_r() void {}
+export fn lgammaf64() void {}
+export fn lgammaf64_r() void {}
+export fn lgammaf64x() void {}
+export fn lgammaf64x_r() void {}
+export fn lgammaf_r() void {}
+export fn lgammal() void {}
+export fn lgammal_r() void {}
+export fn llogb() void {}
+export fn llogbf() void {}
+export fn llogbf128() void {}
+export fn llogbf32() void {}
+export fn llogbf32x() void {}
+export fn llogbf64() void {}
+export fn llogbf64x() void {}
+export fn llogbl() void {}
+export fn llrint() void {}
+export fn llrintf() void {}
+export fn llrintf128() void {}
+export fn llrintf32() void {}
+export fn llrintf32x() void {}
+export fn llrintf64() void {}
+export fn llrintf64x() void {}
+export fn llrintl() void {}
+export fn llround() void {}
+export fn llroundf() void {}
+export fn llroundf128() void {}
+export fn llroundf32() void {}
+export fn llroundf32x() void {}
+export fn llroundf64() void {}
+export fn llroundf64x() void {}
+export fn llroundl() void {}
+export fn log() void {}
+export fn log10() void {}
+export fn log10f() void {}
+export fn log10f128() void {}
+export fn log10f32() void {}
+export fn log10f32x() void {}
+export fn log10f64() void {}
+export fn log10f64x() void {}
+export fn log10l() void {}
+export fn log1p() void {}
+export fn log1pf() void {}
+export fn log1pf128() void {}
+export fn log1pf32() void {}
+export fn log1pf32x() void {}
+export fn log1pf64() void {}
+export fn log1pf64x() void {}
+export fn log1pl() void {}
+export fn log2() void {}
+export fn log2f() void {}
+export fn log2f128() void {}
+export fn log2f32() void {}
+export fn log2f32x() void {}
+export fn log2f64() void {}
+export fn log2f64x() void {}
+export fn log2l() void {}
+export fn logb() void {}
+export fn logbf() void {}
+export fn logbf128() void {}
+export fn logbf32() void {}
+export fn logbf32x() void {}
+export fn logbf64() void {}
+export fn logbf64x() void {}
+export fn logbl() void {}
+export fn logf() void {}
+export fn logf128() void {}
+export fn logf32() void {}
+export fn logf32x() void {}
+export fn logf64() void {}
+export fn logf64x() void {}
+export fn logl() void {}
+export fn lrint() void {}
+export fn lrintf() void {}
+export fn lrintf128() void {}
+export fn lrintf32() void {}
+export fn lrintf32x() void {}
+export fn lrintf64() void {}
+export fn lrintf64x() void {}
+export fn lrintl() void {}
+export fn lround() void {}
+export fn lroundf() void {}
+export fn lroundf128() void {}
+export fn lroundf32() void {}
+export fn lroundf32x() void {}
+export fn lroundf64() void {}
+export fn lroundf64x() void {}
+export fn lroundl() void {}
+export fn matherr() void {}
+export fn modf() void {}
+export fn modff() void {}
+export fn modff128() void {}
+export fn modff32() void {}
+export fn modff32x() void {}
+export fn modff64() void {}
+export fn modff64x() void {}
+export fn modfl() void {}
+export fn nan() void {}
+export fn nanf() void {}
+export fn nanf128() void {}
+export fn nanf32() void {}
+export fn nanf32x() void {}
+export fn nanf64() void {}
+export fn nanf64x() void {}
+export fn nanl() void {}
+export fn nearbyint() void {}
+export fn nearbyintf() void {}
+export fn nearbyintf128() void {}
+export fn nearbyintf32() void {}
+export fn nearbyintf32x() void {}
+export fn nearbyintf64() void {}
+export fn nearbyintf64x() void {}
+export fn nearbyintl() void {}
+export fn nextafter() void {}
+export fn nextafterf() void {}
+export fn nextafterf128() void {}
+export fn nextafterf32() void {}
+export fn nextafterf32x() void {}
+export fn nextafterf64() void {}
+export fn nextafterf64x() void {}
+export fn nextafterl() void {}
+export fn nextdown() void {}
+export fn nextdownf() void {}
+export fn nextdownf128() void {}
+export fn nextdownf32() void {}
+export fn nextdownf32x() void {}
+export fn nextdownf64() void {}
+export fn nextdownf64x() void {}
+export fn nextdownl() void {}
+export fn nexttoward() void {}
+export fn nexttowardf() void {}
+export fn nexttowardl() void {}
+export fn nextup() void {}
+export fn nextupf() void {}
+export fn nextupf128() void {}
+export fn nextupf32() void {}
+export fn nextupf32x() void {}
+export fn nextupf64() void {}
+export fn nextupf64x() void {}
+export fn nextupl() void {}
+export fn pow() void {}
+export fn pow10() void {}
+export fn pow10f() void {}
+export fn pow10l() void {}
+export fn powf() void {}
+export fn powf128() void {}
+export fn powf32() void {}
+export fn powf32x() void {}
+export fn powf64() void {}
+export fn powf64x() void {}
+export fn powl() void {}
+export fn remainder() void {}
+export fn remainderf() void {}
+export fn remainderf128() void {}
+export fn remainderf32() void {}
+export fn remainderf32x() void {}
+export fn remainderf64() void {}
+export fn remainderf64x() void {}
+export fn remainderl() void {}
+export fn remquo() void {}
+export fn remquof() void {}
+export fn remquof128() void {}
+export fn remquof32() void {}
+export fn remquof32x() void {}
+export fn remquof64() void {}
+export fn remquof64x() void {}
+export fn remquol() void {}
+export fn rint() void {}
+export fn rintf() void {}
+export fn rintf128() void {}
+export fn rintf32() void {}
+export fn rintf32x() void {}
+export fn rintf64() void {}
+export fn rintf64x() void {}
+export fn rintl() void {}
+export fn round() void {}
+export fn roundeven() void {}
+export fn roundevenf() void {}
+export fn roundevenf128() void {}
+export fn roundevenf32() void {}
+export fn roundevenf32x() void {}
+export fn roundevenf64() void {}
+export fn roundevenf64x() void {}
+export fn roundevenl() void {}
+export fn roundf() void {}
+export fn roundf128() void {}
+export fn roundf32() void {}
+export fn roundf32x() void {}
+export fn roundf64() void {}
+export fn roundf64x() void {}
+export fn roundl() void {}
+export fn scalb() void {}
+export fn scalbf() void {}
+export fn scalbl() void {}
+export fn scalbln() void {}
+export fn scalblnf() void {}
+export fn scalblnf128() void {}
+export fn scalblnf32() void {}
+export fn scalblnf32x() void {}
+export fn scalblnf64() void {}
+export fn scalblnf64x() void {}
+export fn scalblnl() void {}
+export fn scalbn() void {}
+export fn scalbnf() void {}
+export fn scalbnf128() void {}
+export fn scalbnf32() void {}
+export fn scalbnf32x() void {}
+export fn scalbnf64() void {}
+export fn scalbnf64x() void {}
+export fn scalbnl() void {}
+export fn setpayload() void {}
+export fn setpayloadf() void {}
+export fn setpayloadf128() void {}
+export fn setpayloadf32() void {}
+export fn setpayloadf32x() void {}
+export fn setpayloadf64() void {}
+export fn setpayloadf64x() void {}
+export fn setpayloadl() void {}
+export fn setpayloadsig() void {}
+export fn setpayloadsigf() void {}
+export fn setpayloadsigf128() void {}
+export fn setpayloadsigf32() void {}
+export fn setpayloadsigf32x() void {}
+export fn setpayloadsigf64() void {}
+export fn setpayloadsigf64x() void {}
+export fn setpayloadsigl() void {}
+export fn signgam() void {}
+export fn significand() void {}
+export fn significandf() void {}
+export fn significandl() void {}
+export fn sin() void {}
+export fn sincos() void {}
+export fn sincosf() void {}
+export fn sincosf128() void {}
+export fn sincosf32() void {}
+export fn sincosf32x() void {}
+export fn sincosf64() void {}
+export fn sincosf64x() void {}
+export fn sincosl() void {}
+export fn sinf() void {}
+export fn sinf128() void {}
+export fn sinf32() void {}
+export fn sinf32x() void {}
+export fn sinf64() void {}
+export fn sinf64x() void {}
+export fn sinh() void {}
+export fn sinhf() void {}
+export fn sinhf128() void {}
+export fn sinhf32() void {}
+export fn sinhf32x() void {}
+export fn sinhf64() void {}
+export fn sinhf64x() void {}
+export fn sinhl() void {}
+export fn sinl() void {}
+export fn sqrt() void {}
+export fn sqrtf() void {}
+export fn sqrtf128() void {}
+export fn sqrtf32() void {}
+export fn sqrtf32x() void {}
+export fn sqrtf64() void {}
+export fn sqrtf64x() void {}
+export fn sqrtl() void {}
+export fn tan() void {}
+export fn tanf() void {}
+export fn tanf128() void {}
+export fn tanf32() void {}
+export fn tanf32x() void {}
+export fn tanf64() void {}
+export fn tanf64x() void {}
+export fn tanh() void {}
+export fn tanhf() void {}
+export fn tanhf128() void {}
+export fn tanhf32() void {}
+export fn tanhf32x() void {}
+export fn tanhf64() void {}
+export fn tanhf64x() void {}
+export fn tanhl() void {}
+export fn tanl() void {}
+export fn tgamma() void {}
+export fn tgammaf() void {}
+export fn tgammaf128() void {}
+export fn tgammaf32() void {}
+export fn tgammaf32x() void {}
+export fn tgammaf64() void {}
+export fn tgammaf64x() void {}
+export fn tgammal() void {}
+export fn totalorder() void {}
+export fn totalorderf() void {}
+export fn totalorderf128() void {}
+export fn totalorderf32() void {}
+export fn totalorderf32x() void {}
+export fn totalorderf64() void {}
+export fn totalorderf64x() void {}
+export fn totalorderl() void {}
+export fn totalordermag() void {}
+export fn totalordermagf() void {}
+export fn totalordermagf128() void {}
+export fn totalordermagf32() void {}
+export fn totalordermagf32x() void {}
+export fn totalordermagf64() void {}
+export fn totalordermagf64x() void {}
+export fn totalordermagl() void {}
+export fn trunc() void {}
+export fn truncf() void {}
+export fn truncf128() void {}
+export fn truncf32() void {}
+export fn truncf32x() void {}
+export fn truncf64() void {}
+export fn truncf64x() void {}
+export fn truncl() void {}
+export fn ufromfp() void {}
+export fn ufromfpf() void {}
+export fn ufromfpf128() void {}
+export fn ufromfpf32() void {}
+export fn ufromfpf32x() void {}
+export fn ufromfpf64() void {}
+export fn ufromfpf64x() void {}
+export fn ufromfpl() void {}
+export fn ufromfpx() void {}
+export fn ufromfpxf() void {}
+export fn ufromfpxf128() void {}
+export fn ufromfpxf32() void {}
+export fn ufromfpxf32x() void {}
+export fn ufromfpxf64() void {}
+export fn ufromfpxf64x() void {}
+export fn ufromfpxl() void {}
+export fn y0() void {}
+export fn y0f() void {}
+export fn y0f128() void {}
+export fn y0f32() void {}
+export fn y0f32x() void {}
+export fn y0f64() void {}
+export fn y0f64x() void {}
+export fn y0l() void {}
+export fn y1() void {}
+export fn y1f() void {}
+export fn y1f128() void {}
+export fn y1f32() void {}
+export fn y1f32x() void {}
+export fn y1f64() void {}
+export fn y1f64x() void {}
+export fn y1l() void {}
+export fn yn() void {}
+export fn ynf() void {}
+export fn ynf128() void {}
+export fn ynf32() void {}
+export fn ynf32x() void {}
+export fn ynf64() void {}
+export fn ynf64x() void {}
+export fn ynl() void {}
diff --git a/libc/dummy/pthread.zig b/libc/dummy/pthread.zig
new file mode 100644
index 000000000000..be5e2f602c0e
--- /dev/null
+++ b/libc/dummy/pthread.zig
@@ -0,0 +1,258 @@
+// This file exists to create a libpthread.so file so that LLD has something to look at
+// and emit linker errors if an attempt to link against a non-existent C symbol happens.
+
+export fn _IO_flockfile() void {}
+export fn _IO_ftrylockfile() void {}
+export fn _IO_funlockfile() void {}
+export fn __close() void {}
+export fn __connect() void {}
+export fn __errno_location() void {}
+export fn __fcntl() void {}
+export fn __fork() void {}
+export fn __h_errno_location() void {}
+export fn __libc_allocate_rtsig() void {}
+export fn __libc_current_sigrtmax() void {}
+export fn __libc_current_sigrtmin() void {}
+export fn __libpthread_freeres() void {}
+export fn __lseek() void {}
+export fn __nanosleep() void {}
+export fn __open() void {}
+export fn __open64() void {}
+export fn __pread64() void {}
+export fn __pthread_barrier_init() void {}
+export fn __pthread_barrier_wait() void {}
+export fn __pthread_cleanup_routine() void {}
+export fn __pthread_clock_gettime() void {}
+export fn __pthread_clock_settime() void {}
+export fn __pthread_get_minstack() void {}
+export fn __pthread_getspecific() void {}
+export fn __pthread_initialize_minimal() void {}
+export fn __pthread_key_create() void {}
+export fn __pthread_mutex_destroy() void {}
+export fn __pthread_mutex_init() void {}
+export fn __pthread_mutex_lock() void {}
+export fn __pthread_mutex_trylock() void {}
+export fn __pthread_mutex_unlock() void {}
+export fn __pthread_mutexattr_destroy() void {}
+export fn __pthread_mutexattr_init() void {}
+export fn __pthread_mutexattr_settype() void {}
+export fn __pthread_once() void {}
+export fn __pthread_register_cancel() void {}
+export fn __pthread_register_cancel_defer() void {}
+export fn __pthread_rwlock_destroy() void {}
+export fn __pthread_rwlock_init() void {}
+export fn __pthread_rwlock_rdlock() void {}
+export fn __pthread_rwlock_tryrdlock() void {}
+export fn __pthread_rwlock_trywrlock() void {}
+export fn __pthread_rwlock_unlock() void {}
+export fn __pthread_rwlock_wrlock() void {}
+export fn __pthread_setspecific() void {}
+export fn __pthread_unregister_cancel() void {}
+export fn __pthread_unregister_cancel_restore() void {}
+export fn __pthread_unwind() void {}
+export fn __pthread_unwind_next() void {}
+export fn __pwrite64() void {}
+export fn __read() void {}
+export fn __res_state() void {}
+export fn __send() void {}
+export fn __shm_directory() void {}
+export fn __sigaction() void {}
+export fn __vfork() void {}
+export fn __wait() void {}
+export fn __write() void {}
+export fn _pthread_cleanup_pop() void {}
+export fn _pthread_cleanup_pop_restore() void {}
+export fn _pthread_cleanup_push() void {}
+export fn _pthread_cleanup_push_defer() void {}
+export fn accept() void {}
+export fn call_once() void {}
+export fn close() void {}
+export fn cnd_broadcast() void {}
+export fn cnd_destroy() void {}
+export fn cnd_init() void {}
+export fn cnd_signal() void {}
+export fn cnd_timedwait() void {}
+export fn cnd_wait() void {}
+export fn connect() void {}
+export fn fcntl() void {}
+export fn flockfile() void {}
+export fn fork() void {}
+export fn fsync() void {}
+export fn ftrylockfile() void {}
+export fn funlockfile() void {}
+export fn longjmp() void {}
+export fn lseek() void {}
+export fn lseek64() void {}
+export fn msync() void {}
+export fn mtx_destroy() void {}
+export fn mtx_init() void {}
+export fn mtx_lock() void {}
+export fn mtx_timedlock() void {}
+export fn mtx_trylock() void {}
+export fn mtx_unlock() void {}
+export fn nanosleep() void {}
+export fn open() void {}
+export fn open64() void {}
+export fn pause() void {}
+export fn pread() void {}
+export fn pread64() void {}
+export fn pthread_atfork() void {}
+export fn pthread_attr_destroy() void {}
+export fn pthread_attr_getaffinity_np() void {}
+export fn pthread_attr_getdetachstate() void {}
+export fn pthread_attr_getguardsize() void {}
+export fn pthread_attr_getinheritsched() void {}
+export fn pthread_attr_getschedparam() void {}
+export fn pthread_attr_getschedpolicy() void {}
+export fn pthread_attr_getscope() void {}
+export fn pthread_attr_getstack() void {}
+export fn pthread_attr_getstackaddr() void {}
+export fn pthread_attr_getstacksize() void {}
+export fn pthread_attr_init() void {}
+export fn pthread_attr_setaffinity_np() void {}
+export fn pthread_attr_setdetachstate() void {}
+export fn pthread_attr_setguardsize() void {}
+export fn pthread_attr_setinheritsched() void {}
+export fn pthread_attr_setschedparam() void {}
+export fn pthread_attr_setschedpolicy() void {}
+export fn pthread_attr_setscope() void {}
+export fn pthread_attr_setstack() void {}
+export fn pthread_attr_setstackaddr() void {}
+export fn pthread_attr_setstacksize() void {}
+export fn pthread_barrier_destroy() void {}
+export fn pthread_barrier_init() void {}
+export fn pthread_barrier_wait() void {}
+export fn pthread_barrierattr_destroy() void {}
+export fn pthread_barrierattr_getpshared() void {}
+export fn pthread_barrierattr_init() void {}
+export fn pthread_barrierattr_setpshared() void {}
+export fn pthread_cancel() void {}
+export fn pthread_cond_broadcast() void {}
+export fn pthread_cond_destroy() void {}
+export fn pthread_cond_init() void {}
+export fn pthread_cond_signal() void {}
+export fn pthread_cond_timedwait() void {}
+export fn pthread_cond_wait() void {}
+export fn pthread_condattr_destroy() void {}
+export fn pthread_condattr_getclock() void {}
+export fn pthread_condattr_getpshared() void {}
+export fn pthread_condattr_init() void {}
+export fn pthread_condattr_setclock() void {}
+export fn pthread_condattr_setpshared() void {}
+export fn pthread_create() void {}
+export fn pthread_detach() void {}
+export fn pthread_equal() void {}
+export fn pthread_exit() void {}
+export fn pthread_getaffinity_np() void {}
+export fn pthread_getattr_default_np() void {}
+export fn pthread_getattr_np() void {}
+export fn pthread_getconcurrency() void {}
+export fn pthread_getcpuclockid() void {}
+export fn pthread_getname_np() void {}
+export fn pthread_getschedparam() void {}
+export fn pthread_getspecific() void {}
+export fn pthread_join() void {}
+export fn pthread_key_create() void {}
+export fn pthread_key_delete() void {}
+export fn pthread_kill() void {}
+export fn pthread_kill_other_threads_np() void {}
+export fn pthread_mutex_consistent() void {}
+export fn pthread_mutex_consistent_np() void {}
+export fn pthread_mutex_destroy() void {}
+export fn pthread_mutex_getprioceiling() void {}
+export fn pthread_mutex_init() void {}
+export fn pthread_mutex_lock() void {}
+export fn pthread_mutex_setprioceiling() void {}
+export fn pthread_mutex_timedlock() void {}
+export fn pthread_mutex_trylock() void {}
+export fn pthread_mutex_unlock() void {}
+export fn pthread_mutexattr_destroy() void {}
+export fn pthread_mutexattr_getkind_np() void {}
+export fn pthread_mutexattr_getprioceiling() void {}
+export fn pthread_mutexattr_getprotocol() void {}
+export fn pthread_mutexattr_getpshared() void {}
+export fn pthread_mutexattr_getrobust() void {}
+export fn pthread_mutexattr_getrobust_np() void {}
+export fn pthread_mutexattr_gettype() void {}
+export fn pthread_mutexattr_init() void {}
+export fn pthread_mutexattr_setkind_np() void {}
+export fn pthread_mutexattr_setprioceiling() void {}
+export fn pthread_mutexattr_setprotocol() void {}
+export fn pthread_mutexattr_setpshared() void {}
+export fn pthread_mutexattr_setrobust() void {}
+export fn pthread_mutexattr_setrobust_np() void {}
+export fn pthread_mutexattr_settype() void {}
+export fn pthread_once() void {}
+export fn pthread_rwlock_destroy() void {}
+export fn pthread_rwlock_init() void {}
+export fn pthread_rwlock_rdlock() void {}
+export fn pthread_rwlock_timedrdlock() void {}
+export fn pthread_rwlock_timedwrlock() void {}
+export fn pthread_rwlock_tryrdlock() void {}
+export fn pthread_rwlock_trywrlock() void {}
+export fn pthread_rwlock_unlock() void {}
+export fn pthread_rwlock_wrlock() void {}
+export fn pthread_rwlockattr_destroy() void {}
+export fn pthread_rwlockattr_getkind_np() void {}
+export fn pthread_rwlockattr_getpshared() void {}
+export fn pthread_rwlockattr_init() void {}
+export fn pthread_rwlockattr_setkind_np() void {}
+export fn pthread_rwlockattr_setpshared() void {}
+export fn pthread_self() void {}
+export fn pthread_setaffinity_np() void {}
+export fn pthread_setattr_default_np() void {}
+export fn pthread_setcancelstate() void {}
+export fn pthread_setcanceltype() void {}
+export fn pthread_setconcurrency() void {}
+export fn pthread_setname_np() void {}
+export fn pthread_setschedparam() void {}
+export fn pthread_setschedprio() void {}
+export fn pthread_setspecific() void {}
+export fn pthread_sigmask() void {}
+export fn pthread_sigqueue() void {}
+export fn pthread_spin_destroy() void {}
+export fn pthread_spin_init() void {}
+export fn pthread_spin_lock() void {}
+export fn pthread_spin_trylock() void {}
+export fn pthread_spin_unlock() void {}
+export fn pthread_testcancel() void {}
+export fn pthread_timedjoin_np() void {}
+export fn pthread_tryjoin_np() void {}
+export fn pthread_yield() void {}
+export fn pwrite() void {}
+export fn pwrite64() void {}
+export fn raise() void {}
+export fn read() void {}
+export fn recv() void {}
+export fn recvfrom() void {}
+export fn recvmsg() void {}
+export fn sem_close() void {}
+export fn sem_destroy() void {}
+export fn sem_getvalue() void {}
+export fn sem_init() void {}
+export fn sem_open() void {}
+export fn sem_post() void {}
+export fn sem_timedwait() void {}
+export fn sem_trywait() void {}
+export fn sem_unlink() void {}
+export fn sem_wait() void {}
+export fn send() void {}
+export fn sendmsg() void {}
+export fn sendto() void {}
+export fn sigaction() void {}
+export fn siglongjmp() void {}
+export fn sigwait() void {}
+export fn system() void {}
+export fn tcdrain() void {}
+export fn thrd_create() void {}
+export fn thrd_detach() void {}
+export fn thrd_exit() void {}
+export fn thrd_join() void {}
+export fn tss_create() void {}
+export fn tss_delete() void {}
+export fn tss_get() void {}
+export fn tss_set() void {}
+export fn vfork() void {}
+export fn wait() void {}
+export fn waitpid() void {}
+export fn write() void {}
diff --git a/libc/dummy/rt.zig b/libc/dummy/rt.zig
new file mode 100644
index 000000000000..03272379778c
--- /dev/null
+++ b/libc/dummy/rt.zig
@@ -0,0 +1,43 @@
+// This file exists to create a librt.so file so that LLD has something to look at
+// and emit linker errors if an attempt to link against a non-existent C symbol happens.
+
+export fn __mq_open_2() void {}
+export fn aio_cancel() void {}
+export fn aio_cancel64() void {}
+export fn aio_error() void {}
+export fn aio_error64() void {}
+export fn aio_fsync() void {}
+export fn aio_fsync64() void {}
+export fn aio_init() void {}
+export fn aio_read() void {}
+export fn aio_read64() void {}
+export fn aio_return() void {}
+export fn aio_return64() void {}
+export fn aio_suspend() void {}
+export fn aio_suspend64() void {}
+export fn aio_write() void {}
+export fn aio_write64() void {}
+export fn clock_getcpuclockid() void {}
+export fn clock_getres() void {}
+export fn clock_gettime() void {}
+export fn clock_nanosleep() void {}
+export fn clock_settime() void {}
+export fn lio_listio() void {}
+export fn lio_listio64() void {}
+export fn mq_close() void {}
+export fn mq_getattr() void {}
+export fn mq_notify() void {}
+export fn mq_open() void {}
+export fn mq_receive() void {}
+export fn mq_send() void {}
+export fn mq_setattr() void {}
+export fn mq_timedreceive() void {}
+export fn mq_timedsend() void {}
+export fn mq_unlink() void {}
+export fn shm_open() void {}
+export fn shm_unlink() void {}
+export fn timer_create() void {}
+export fn timer_delete() void {}
+export fn timer_getoverrun() void {}
+export fn timer_gettime() void {}
+export fn timer_settime() void {}
diff --git a/libc/glibc/bits/byteswap.h b/libc/glibc/bits/byteswap.h
new file mode 100644
index 000000000000..83731c9eab77
--- /dev/null
+++ b/libc/glibc/bits/byteswap.h
@@ -0,0 +1,79 @@
+/* Macros and inline functions to swap the order of bytes in integer values.
+ Copyright (C) 1997-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#if !defined _BYTESWAP_H && !defined _NETINET_IN_H && !defined _ENDIAN_H
+# error "Never use directly; include instead."
+#endif
+
+#ifndef _BITS_BYTESWAP_H
+#define _BITS_BYTESWAP_H 1
+
+#include
+#include
+
+/* Swap bytes in 16-bit value. */
+#define __bswap_constant_16(x) \
+ ((__uint16_t) ((((x) >> 8) & 0xff) | (((x) & 0xff) << 8)))
+
+static __inline __uint16_t
+__bswap_16 (__uint16_t __bsx)
+{
+#if __GNUC_PREREQ (4, 8)
+ return __builtin_bswap16 (__bsx);
+#else
+ return __bswap_constant_16 (__bsx);
+#endif
+}
+
+/* Swap bytes in 32-bit value. */
+#define __bswap_constant_32(x) \
+ ((((x) & 0xff000000u) >> 24) | (((x) & 0x00ff0000u) >> 8) \
+ | (((x) & 0x0000ff00u) << 8) | (((x) & 0x000000ffu) << 24))
+
+static __inline __uint32_t
+__bswap_32 (__uint32_t __bsx)
+{
+#if __GNUC_PREREQ (4, 3)
+ return __builtin_bswap32 (__bsx);
+#else
+ return __bswap_constant_32 (__bsx);
+#endif
+}
+
+/* Swap bytes in 64-bit value. */
+#define __bswap_constant_64(x) \
+ ((((x) & 0xff00000000000000ull) >> 56) \
+ | (((x) & 0x00ff000000000000ull) >> 40) \
+ | (((x) & 0x0000ff0000000000ull) >> 24) \
+ | (((x) & 0x000000ff00000000ull) >> 8) \
+ | (((x) & 0x00000000ff000000ull) << 8) \
+ | (((x) & 0x0000000000ff0000ull) << 24) \
+ | (((x) & 0x000000000000ff00ull) << 40) \
+ | (((x) & 0x00000000000000ffull) << 56))
+
+__extension__ static __inline __uint64_t
+__bswap_64 (__uint64_t __bsx)
+{
+#if __GNUC_PREREQ (4, 3)
+ return __builtin_bswap64 (__bsx);
+#else
+ return __bswap_constant_64 (__bsx);
+#endif
+}
+
+#endif /* _BITS_BYTESWAP_H */
diff --git a/libc/glibc/bits/endian.h b/libc/glibc/bits/endian.h
new file mode 100644
index 000000000000..45afd4ae4770
--- /dev/null
+++ b/libc/glibc/bits/endian.h
@@ -0,0 +1,13 @@
+/* This file should define __BYTE_ORDER as appropriate for the machine
+ in question. See string/endian.h for how to define it.
+
+ If only the stub bits/endian.h applies to a particular configuration,
+ bytesex.h is generated by running a program on the host machine.
+ So if cross-compiling to a machine with a different byte order,
+ the bits/endian.h file for that machine must exist. */
+
+#ifndef _ENDIAN_H
+# error "Never use directly; include instead."
+#endif
+
+#error Machine byte order unknown.
diff --git a/libc/glibc/bits/floatn-common.h b/libc/glibc/bits/floatn-common.h
new file mode 100644
index 000000000000..980bfdaf89e9
--- /dev/null
+++ b/libc/glibc/bits/floatn-common.h
@@ -0,0 +1,329 @@
+/* Macros to control TS 18661-3 glibc features where the same
+ definitions are appropriate for all platforms.
+ Copyright (C) 2017-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_FLOATN_COMMON_H
+#define _BITS_FLOATN_COMMON_H
+
+#include
+#include
+
+/* This header should be included at the bottom of each bits/floatn.h.
+ It defines the following macros for each _FloatN and _FloatNx type,
+ where the same definitions, or definitions based only on the macros
+ in bits/floatn.h, are appropriate for all glibc configurations. */
+
+/* Defined to 1 if the current compiler invocation provides a
+ floating-point type with the right format for this type, and this
+ glibc includes corresponding *fN or *fNx interfaces for it. */
+#define __HAVE_FLOAT16 0
+#define __HAVE_FLOAT32 1
+#define __HAVE_FLOAT64 1
+#define __HAVE_FLOAT32X 1
+#define __HAVE_FLOAT128X 0
+
+/* Defined to 1 if the corresponding __HAVE_ macro is 1 and the
+ type is the first with its format in the sequence of (the default
+ choices for) float, double, long double, _Float16, _Float32,
+ _Float64, _Float128, _Float32x, _Float64x, _Float128x for this
+ glibc; that is, if functions present once per floating-point format
+ rather than once per type are present for this type.
+
+ All configurations supported by glibc have _Float32 the same format
+ as float, _Float64 and _Float32x the same format as double, the
+ _Float64x the same format as either long double or _Float128. No
+ configurations support _Float128x or, as of GCC 7, have compiler
+ support for a type meeting the requirements for _Float128x. */
+#define __HAVE_DISTINCT_FLOAT16 __HAVE_FLOAT16
+#define __HAVE_DISTINCT_FLOAT32 0
+#define __HAVE_DISTINCT_FLOAT64 0
+#define __HAVE_DISTINCT_FLOAT32X 0
+#define __HAVE_DISTINCT_FLOAT64X 0
+#define __HAVE_DISTINCT_FLOAT128X __HAVE_FLOAT128X
+
+/* Defined to 1 if the corresponding _FloatN type is not binary compatible
+ with the corresponding ISO C type in the current compilation unit as
+ opposed to __HAVE_DISTINCT_FLOATN, which indicates the default types built
+ in glibc. */
+#define __HAVE_FLOAT128_UNLIKE_LDBL (__HAVE_DISTINCT_FLOAT128 \
+ && __LDBL_MANT_DIG__ != 113)
+
+/* Defined to 1 if any _FloatN or _FloatNx types that are not
+ ABI-distinct are however distinct types at the C language level (so
+ for the purposes of __builtin_types_compatible_p and _Generic). */
+#if __GNUC_PREREQ (7, 0) && !defined __cplusplus
+# define __HAVE_FLOATN_NOT_TYPEDEF 1
+#else
+# define __HAVE_FLOATN_NOT_TYPEDEF 0
+#endif
+
+#ifndef __ASSEMBLER__
+
+/* Defined to concatenate the literal suffix to be used with _FloatN
+ or _FloatNx types, if __HAVE_ is 1. The corresponding
+ literal suffixes exist since GCC 7, for C only. */
+# if __HAVE_FLOAT16
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+/* No corresponding suffix available for this type. */
+# define __f16(x) ((_Float16) x##f)
+# else
+# define __f16(x) x##f16
+# endif
+# endif
+
+# if __HAVE_FLOAT32
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# define __f32(x) x##f
+# else
+# define __f32(x) x##f32
+# endif
+# endif
+
+# if __HAVE_FLOAT64
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# ifdef __NO_LONG_DOUBLE_MATH
+# define __f64(x) x##l
+# else
+# define __f64(x) x
+# endif
+# else
+# define __f64(x) x##f64
+# endif
+# endif
+
+# if __HAVE_FLOAT32X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# define __f32x(x) x
+# else
+# define __f32x(x) x##f32x
+# endif
+# endif
+
+# if __HAVE_FLOAT64X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# if __HAVE_FLOAT64X_LONG_DOUBLE
+# define __f64x(x) x##l
+# else
+# define __f64x(x) __f128 (x)
+# endif
+# else
+# define __f64x(x) x##f64x
+# endif
+# endif
+
+# if __HAVE_FLOAT128X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# error "_Float128X supported but no constant suffix"
+# else
+# define __f128x(x) x##f128x
+# endif
+# endif
+
+/* Defined to a complex type if __HAVE_ is 1. */
+# if __HAVE_FLOAT16
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef _Complex float __cfloat16 __attribute__ ((__mode__ (__HC__)));
+# define __CFLOAT16 __cfloat16
+# else
+# define __CFLOAT16 _Complex _Float16
+# endif
+# endif
+
+# if __HAVE_FLOAT32
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# define __CFLOAT32 _Complex float
+# else
+# define __CFLOAT32 _Complex _Float32
+# endif
+# endif
+
+# if __HAVE_FLOAT64
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# ifdef __NO_LONG_DOUBLE_MATH
+# define __CFLOAT64 _Complex long double
+# else
+# define __CFLOAT64 _Complex double
+# endif
+# else
+# define __CFLOAT64 _Complex _Float64
+# endif
+# endif
+
+# if __HAVE_FLOAT32X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# define __CFLOAT32X _Complex double
+# else
+# define __CFLOAT32X _Complex _Float32x
+# endif
+# endif
+
+# if __HAVE_FLOAT64X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# if __HAVE_FLOAT64X_LONG_DOUBLE
+# define __CFLOAT64X _Complex long double
+# else
+# define __CFLOAT64X __CFLOAT128
+# endif
+# else
+# define __CFLOAT64X _Complex _Float64x
+# endif
+# endif
+
+# if __HAVE_FLOAT128X
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# error "_Float128X supported but no complex type"
+# else
+# define __CFLOAT128X _Complex _Float128x
+# endif
+# endif
+
+/* The remaining of this file provides support for older compilers. */
+# if __HAVE_FLOAT16
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef float _Float16 __attribute__ ((__mode__ (__HF__)));
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf16() ((_Float16) __builtin_huge_val ())
+# define __builtin_inff16() ((_Float16) __builtin_inf ())
+# define __builtin_nanf16(x) ((_Float16) __builtin_nan (x))
+# define __builtin_nansf16(x) ((_Float16) __builtin_nans (x))
+# endif
+
+# endif
+
+# if __HAVE_FLOAT32
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef float _Float32;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf32() (__builtin_huge_valf ())
+# define __builtin_inff32() (__builtin_inff ())
+# define __builtin_nanf32(x) (__builtin_nanf (x))
+# define __builtin_nansf32(x) (__builtin_nansf (x))
+# endif
+
+# endif
+
+# if __HAVE_FLOAT64
+
+/* If double, long double and _Float64 all have the same set of
+ values, TS 18661-3 requires the usual arithmetic conversions on
+ long double and _Float64 to produce _Float64. For this to be the
+ case when building with a compiler without a distinct _Float64
+ type, _Float64 must be a typedef for long double, not for
+ double. */
+
+# ifdef __NO_LONG_DOUBLE_MATH
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef long double _Float64;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf64() (__builtin_huge_vall ())
+# define __builtin_inff64() (__builtin_infl ())
+# define __builtin_nanf64(x) (__builtin_nanl (x))
+# define __builtin_nansf64(x) (__builtin_nansl (x))
+# endif
+
+# else
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef double _Float64;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf64() (__builtin_huge_val ())
+# define __builtin_inff64() (__builtin_inf ())
+# define __builtin_nanf64(x) (__builtin_nan (x))
+# define __builtin_nansf64(x) (__builtin_nans (x))
+# endif
+
+# endif
+
+# endif
+
+# if __HAVE_FLOAT32X
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef double _Float32x;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf32x() (__builtin_huge_val ())
+# define __builtin_inff32x() (__builtin_inf ())
+# define __builtin_nanf32x(x) (__builtin_nan (x))
+# define __builtin_nansf32x(x) (__builtin_nans (x))
+# endif
+
+# endif
+
+# if __HAVE_FLOAT64X
+
+# if __HAVE_FLOAT64X_LONG_DOUBLE
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef long double _Float64x;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf64x() (__builtin_huge_vall ())
+# define __builtin_inff64x() (__builtin_infl ())
+# define __builtin_nanf64x(x) (__builtin_nanl (x))
+# define __builtin_nansf64x(x) (__builtin_nansl (x))
+# endif
+
+# else
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+typedef _Float128 _Float64x;
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf64x() (__builtin_huge_valf128 ())
+# define __builtin_inff64x() (__builtin_inff128 ())
+# define __builtin_nanf64x(x) (__builtin_nanf128 (x))
+# define __builtin_nansf64x(x) (__builtin_nansf128 (x))
+# endif
+
+# endif
+
+# endif
+
+# if __HAVE_FLOAT128X
+
+# if !__GNUC_PREREQ (7, 0) || defined __cplusplus
+# error "_Float128x supported but no type"
+# endif
+
+# if !__GNUC_PREREQ (7, 0)
+# define __builtin_huge_valf128x() ((_Float128x) __builtin_huge_val ())
+# define __builtin_inff128x() ((_Float128x) __builtin_inf ())
+# define __builtin_nanf128x(x) ((_Float128x) __builtin_nan (x))
+# define __builtin_nansf128x(x) ((_Float128x) __builtin_nans (x))
+# endif
+
+# endif
+
+#endif /* !__ASSEMBLER__. */
+
+#endif /* _BITS_FLOATN_COMMON_H */
diff --git a/libc/glibc/bits/libc-header-start.h b/libc/glibc/bits/libc-header-start.h
new file mode 100644
index 000000000000..72efab29f2cf
--- /dev/null
+++ b/libc/glibc/bits/libc-header-start.h
@@ -0,0 +1,70 @@
+/* Handle feature test macros at the start of a header.
+ Copyright (C) 2016-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+/* This header is internal to glibc and should not be included outside
+ of glibc headers. Headers including it must define
+ __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION first. This header
+ cannot have multiple include guards because ISO C feature test
+ macros depend on the definition of the macro when an affected
+ header is included, not when the first system header is
+ included. */
+
+#ifndef __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
+# error "Never include directly."
+#endif
+
+#undef __GLIBC_INTERNAL_STARTING_HEADER_IMPLEMENTATION
+
+#include
+
+/* ISO/IEC TR 24731-2:2010 defines the __STDC_WANT_LIB_EXT2__
+ macro. */
+#undef __GLIBC_USE_LIB_EXT2
+#if (defined __USE_GNU \
+ || (defined __STDC_WANT_LIB_EXT2__ && __STDC_WANT_LIB_EXT2__ > 0))
+# define __GLIBC_USE_LIB_EXT2 1
+#else
+# define __GLIBC_USE_LIB_EXT2 0
+#endif
+
+/* ISO/IEC TS 18661-1:2014 defines the __STDC_WANT_IEC_60559_BFP_EXT__
+ macro. */
+#undef __GLIBC_USE_IEC_60559_BFP_EXT
+#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_BFP_EXT__
+# define __GLIBC_USE_IEC_60559_BFP_EXT 1
+#else
+# define __GLIBC_USE_IEC_60559_BFP_EXT 0
+#endif
+
+/* ISO/IEC TS 18661-4:2015 defines the
+ __STDC_WANT_IEC_60559_FUNCS_EXT__ macro. */
+#undef __GLIBC_USE_IEC_60559_FUNCS_EXT
+#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_FUNCS_EXT__
+# define __GLIBC_USE_IEC_60559_FUNCS_EXT 1
+#else
+# define __GLIBC_USE_IEC_60559_FUNCS_EXT 0
+#endif
+
+/* ISO/IEC TS 18661-3:2015 defines the
+ __STDC_WANT_IEC_60559_TYPES_EXT__ macro. */
+#undef __GLIBC_USE_IEC_60559_TYPES_EXT
+#if defined __USE_GNU || defined __STDC_WANT_IEC_60559_TYPES_EXT__
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 1
+#else
+# define __GLIBC_USE_IEC_60559_TYPES_EXT 0
+#endif
diff --git a/libc/glibc/bits/long-double.h b/libc/glibc/bits/long-double.h
new file mode 100644
index 000000000000..ed36d97cc9c8
--- /dev/null
+++ b/libc/glibc/bits/long-double.h
@@ -0,0 +1,39 @@
+/* Properties of long double type.
+ Copyright (C) 2016-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+/* This header is included by .
+
+ If long double is ABI-compatible with double, it should define
+ __NO_LONG_DOUBLE_MATH to 1; otherwise, it should leave
+ __NO_LONG_DOUBLE_MATH undefined.
+
+ If this build of the GNU C Library supports both long double
+ ABI-compatible with double and some other long double format not
+ ABI-compatible with double, it should define
+ __LONG_DOUBLE_MATH_OPTIONAL to 1; otherwise, it should leave
+ __LONG_DOUBLE_MATH_OPTIONAL undefined.
+
+ If __NO_LONG_DOUBLE_MATH is already defined, this header must not
+ define anything; this is needed to work with the definition of
+ __NO_LONG_DOUBLE_MATH in nldbl-compat.h. */
+
+/* In the default version of this header, long double is
+ ABI-compatible with double. */
+#ifndef __NO_LONG_DOUBLE_MATH
+# define __NO_LONG_DOUBLE_MATH 1
+#endif
diff --git a/libc/glibc/bits/pthreadtypes.h b/libc/glibc/bits/pthreadtypes.h
new file mode 100644
index 000000000000..0e26952c966c
--- /dev/null
+++ b/libc/glibc/bits/pthreadtypes.h
@@ -0,0 +1 @@
+/* No thread support. */
diff --git a/libc/glibc/bits/select.h b/libc/glibc/bits/select.h
new file mode 100644
index 000000000000..71b771f7c90b
--- /dev/null
+++ b/libc/glibc/bits/select.h
@@ -0,0 +1,37 @@
+/* Copyright (C) 1997-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _SYS_SELECT_H
+# error "Never use directly; include instead."
+#endif
+
+
+/* We don't use `memset' because this would require a prototype and
+ the array isn't too big. */
+#define __FD_ZERO(s) \
+ do { \
+ unsigned int __i; \
+ fd_set *__arr = (s); \
+ for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i) \
+ __FDS_BITS (__arr)[__i] = 0; \
+ } while (0)
+#define __FD_SET(d, s) \
+ ((void) (__FDS_BITS (s)[__FD_ELT(d)] |= __FD_MASK(d)))
+#define __FD_CLR(d, s) \
+ ((void) (__FDS_BITS (s)[__FD_ELT(d)] &= ~__FD_MASK(d)))
+#define __FD_ISSET(d, s) \
+ ((__FDS_BITS (s)[__FD_ELT (d)] & __FD_MASK (d)) != 0)
diff --git a/libc/glibc/bits/signum-generic.h b/libc/glibc/bits/signum-generic.h
new file mode 100644
index 000000000000..6fbbf20a3145
--- /dev/null
+++ b/libc/glibc/bits/signum-generic.h
@@ -0,0 +1,102 @@
+/* Signal number constants. Generic template.
+ Copyright (C) 1991-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_SIGNUM_GENERIC_H
+#define _BITS_SIGNUM_GENERIC_H 1
+
+#ifndef _SIGNAL_H
+#error "Never include directly; use instead."
+#endif
+
+/* Fake signal functions. */
+
+#define SIG_ERR ((__sighandler_t) -1) /* Error return. */
+#define SIG_DFL ((__sighandler_t) 0) /* Default action. */
+#define SIG_IGN ((__sighandler_t) 1) /* Ignore signal. */
+
+#ifdef __USE_XOPEN
+# define SIG_HOLD ((__sighandler_t) 2) /* Add signal to hold mask. */
+#endif
+
+/* We define here all the signal names listed in POSIX (1003.1-2008);
+ as of 1003.1-2013, no additional signals have been added by POSIX.
+ We also define here signal names that historically exist in every
+ real-world POSIX variant (e.g. SIGWINCH).
+
+ Signals in the 1-15 range are defined with their historical numbers.
+ For other signals, we use the BSD numbers.
+ There are two unallocated signal numbers in the 1-31 range: 7 and 29.
+ Signal number 0 is reserved for use as kill(pid, 0), to test whether
+ a process exists without sending it a signal. */
+
+/* ISO C99 signals. */
+#define SIGINT 2 /* Interactive attention signal. */
+#define SIGILL 4 /* Illegal instruction. */
+#define SIGABRT 6 /* Abnormal termination. */
+#define SIGFPE 8 /* Erroneous arithmetic operation. */
+#define SIGSEGV 11 /* Invalid access to storage. */
+#define SIGTERM 15 /* Termination request. */
+
+/* Historical signals specified by POSIX. */
+#define SIGHUP 1 /* Hangup. */
+#define SIGQUIT 3 /* Quit. */
+#define SIGTRAP 5 /* Trace/breakpoint trap. */
+#define SIGKILL 9 /* Killed. */
+#define SIGBUS 10 /* Bus error. */
+#define SIGSYS 12 /* Bad system call. */
+#define SIGPIPE 13 /* Broken pipe. */
+#define SIGALRM 14 /* Alarm clock. */
+
+/* New(er) POSIX signals (1003.1-2008, 1003.1-2013). */
+#define SIGURG 16 /* Urgent data is available at a socket. */
+#define SIGSTOP 17 /* Stop, unblockable. */
+#define SIGTSTP 18 /* Keyboard stop. */
+#define SIGCONT 19 /* Continue. */
+#define SIGCHLD 20 /* Child terminated or stopped. */
+#define SIGTTIN 21 /* Background read from control terminal. */
+#define SIGTTOU 22 /* Background write to control terminal. */
+#define SIGPOLL 23 /* Pollable event occurred (System V). */
+#define SIGXCPU 24 /* CPU time limit exceeded. */
+#define SIGXFSZ 25 /* File size limit exceeded. */
+#define SIGVTALRM 26 /* Virtual timer expired. */
+#define SIGPROF 27 /* Profiling timer expired. */
+#define SIGUSR1 30 /* User-defined signal 1. */
+#define SIGUSR2 31 /* User-defined signal 2. */
+
+/* Nonstandard signals found in all modern POSIX systems
+ (including both BSD and Linux). */
+#define SIGWINCH 28 /* Window size change (4.3 BSD, Sun). */
+
+/* Archaic names for compatibility. */
+#define SIGIO SIGPOLL /* I/O now possible (4.2 BSD). */
+#define SIGIOT SIGABRT /* IOT instruction, abort() on a PDP-11. */
+#define SIGCLD SIGCHLD /* Old System V name */
+
+/* Not all systems support real-time signals. bits/signum.h indicates
+ that they are supported by overriding __SIGRTMAX to a value greater
+ than __SIGRTMIN. These constants give the kernel-level hard limits,
+ but some real-time signals may be used internally by glibc. Do not
+ use these constants in application code; use SIGRTMIN and SIGRTMAX
+ (defined in signal.h) instead. */
+#define __SIGRTMIN 32
+#define __SIGRTMAX __SIGRTMIN
+
+/* Biggest signal number + 1 (including real-time signals). */
+#define _NSIG (__SIGRTMAX + 1)
+
+#endif /* bits/signum-generic.h. */
diff --git a/libc/glibc/bits/stat.h b/libc/glibc/bits/stat.h
new file mode 100644
index 000000000000..c8d0665c3e18
--- /dev/null
+++ b/libc/glibc/bits/stat.h
@@ -0,0 +1,103 @@
+/* Copyright (C) 1992-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#if !defined _SYS_STAT_H && !defined _FCNTL_H
+# error "Never include directly; use instead."
+#endif
+
+#ifndef _BITS_STAT_H
+#define _BITS_STAT_H 1
+
+/* This structure needs to be defined in accordance with the
+ implementation of __stat, __fstat, and __lstat. */
+
+#include
+
+/* Structure describing file characteristics. */
+struct stat
+ {
+ /* These are the members that POSIX.1 requires. */
+
+ __mode_t st_mode; /* File mode. */
+#ifndef __USE_FILE_OFFSET64
+ __ino_t st_ino; /* File serial number. */
+#else
+ __ino64_t st_ino; /* File serial number. */
+#endif
+ __dev_t st_dev; /* Device containing the file. */
+ __nlink_t st_nlink; /* Link count. */
+
+ __uid_t st_uid; /* User ID of the file's owner. */
+ __gid_t st_gid; /* Group ID of the file's group. */
+#ifndef __USE_FILE_OFFSET64
+ __off_t st_size; /* Size of file, in bytes. */
+#else
+ __off64_t st_size; /* Size of file, in bytes. */
+#endif
+
+ __time_t st_atime; /* Time of last access. */
+ __time_t st_mtime; /* Time of last modification. */
+ __time_t st_ctime; /* Time of last status change. */
+
+ /* This should be defined if there is a `st_blksize' member. */
+#undef _STATBUF_ST_BLKSIZE
+ };
+
+/* Encoding of the file mode. These are the standard Unix values,
+ but POSIX.1 does not specify what values should be used. */
+
+#define __S_IFMT 0170000 /* These bits determine file type. */
+
+/* File types. */
+#define __S_IFDIR 0040000 /* Directory. */
+#define __S_IFCHR 0020000 /* Character device. */
+#define __S_IFBLK 0060000 /* Block device. */
+#define __S_IFREG 0100000 /* Regular file. */
+#define __S_IFIFO 0010000 /* FIFO. */
+
+/* POSIX.1b objects. */
+#define __S_TYPEISMQ(buf) 0
+#define __S_TYPEISSEM(buf) 0
+#define __S_TYPEISSHM(buf) 0
+
+/* Protection bits. */
+
+#define __S_ISUID 04000 /* Set user ID on execution. */
+#define __S_ISGID 02000 /* Set group ID on execution. */
+#define __S_IREAD 0400 /* Read by owner. */
+#define __S_IWRITE 0200 /* Write by owner. */
+#define __S_IEXEC 0100 /* Execute by owner. */
+
+#ifdef __USE_LARGEFILE64
+struct stat64
+ {
+ __mode_t st_mode; /* File mode. */
+ __ino64_t st_ino; /* File serial number. */
+ __dev_t st_dev; /* Device. */
+ __nlink_t st_nlink; /* Link count. */
+
+ __uid_t st_uid; /* User ID of the file's owner. */
+ __gid_t st_gid; /* Group ID of the file's group.*/
+ __off64_t st_size; /* Size of file, in bytes. */
+
+ __time_t st_atime; /* Time of last access. */
+ __time_t st_mtime; /* Time of last modification. */
+ __time_t st_ctime; /* Time of last status change. */
+ };
+#endif
+
+#endif /* bits/stat.h */
diff --git a/libc/glibc/bits/stdint-intn.h b/libc/glibc/bits/stdint-intn.h
new file mode 100644
index 000000000000..fc7b43fc043a
--- /dev/null
+++ b/libc/glibc/bits/stdint-intn.h
@@ -0,0 +1,29 @@
+/* Define intN_t types.
+ Copyright (C) 2017-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_STDINT_INTN_H
+#define _BITS_STDINT_INTN_H 1
+
+#include
+
+typedef __int8_t int8_t;
+typedef __int16_t int16_t;
+typedef __int32_t int32_t;
+typedef __int64_t int64_t;
+
+#endif /* bits/stdint-intn.h */
diff --git a/libc/glibc/bits/stdlib-bsearch.h b/libc/glibc/bits/stdlib-bsearch.h
new file mode 100644
index 000000000000..60bb70c2d200
--- /dev/null
+++ b/libc/glibc/bits/stdlib-bsearch.h
@@ -0,0 +1,43 @@
+/* Perform binary search - inline version.
+ Copyright (C) 1991-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+__extern_inline void *
+bsearch (const void *__key, const void *__base, size_t __nmemb, size_t __size,
+ __compar_fn_t __compar)
+{
+ size_t __l, __u, __idx;
+ const void *__p;
+ int __comparison;
+
+ __l = 0;
+ __u = __nmemb;
+ while (__l < __u)
+ {
+ __idx = (__l + __u) / 2;
+ __p = (void *) (((const char *) __base) + (__idx * __size));
+ __comparison = (*__compar) (__key, __p);
+ if (__comparison < 0)
+ __u = __idx;
+ else if (__comparison > 0)
+ __l = __idx + 1;
+ else
+ return (void *) __p;
+ }
+
+ return NULL;
+}
diff --git a/libc/glibc/bits/time64.h b/libc/glibc/bits/time64.h
new file mode 100644
index 000000000000..c0f8a24d8a1f
--- /dev/null
+++ b/libc/glibc/bits/time64.h
@@ -0,0 +1,36 @@
+/* bits/time64.h -- underlying types for __time64_t. Generic version.
+ Copyright (C) 2018-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_TYPES_H
+# error "Never include directly; use instead."
+#endif
+
+#ifndef _BITS_TIME64_H
+#define _BITS_TIME64_H 1
+
+/* Define __TIME64_T_TYPE so that it is always a 64-bit type. */
+
+#if __TIMESIZE == 64
+/* If we already have 64-bit time type then use it. */
+# define __TIME64_T_TYPE __TIME_T_TYPE
+#else
+/* Define a 64-bit time type alongsize the 32-bit one. */
+# define __TIME64_T_TYPE __SQUAD_TYPE
+#endif
+
+#endif /* bits/time64.h */
diff --git a/libc/glibc/bits/timesize.h b/libc/glibc/bits/timesize.h
new file mode 100644
index 000000000000..242334e4d817
--- /dev/null
+++ b/libc/glibc/bits/timesize.h
@@ -0,0 +1,22 @@
+/* Bit size of the time_t type at glibc build time, general case.
+ Copyright (C) 2018-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#include
+
+/* Size in bits of the 'time_t' type of the default ABI. */
+#define __TIMESIZE __WORDSIZE
diff --git a/libc/glibc/bits/types/__sigset_t.h b/libc/glibc/bits/types/__sigset_t.h
new file mode 100644
index 000000000000..c90d760a6e6c
--- /dev/null
+++ b/libc/glibc/bits/types/__sigset_t.h
@@ -0,0 +1,7 @@
+#ifndef ____sigset_t_defined
+#define ____sigset_t_defined 1
+
+/* A `sigset_t' has a bit for each signal. */
+typedef unsigned long int __sigset_t;
+
+#endif
diff --git a/libc/glibc/bits/types/struct_sched_param.h b/libc/glibc/bits/types/struct_sched_param.h
new file mode 100644
index 000000000000..8bf92c0fb068
--- /dev/null
+++ b/libc/glibc/bits/types/struct_sched_param.h
@@ -0,0 +1,28 @@
+/* Sched parameter structure. Generic version.
+ Copyright (C) 1996-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_TYPES_STRUCT_SCHED_PARAM
+#define _BITS_TYPES_STRUCT_SCHED_PARAM 1
+
+/* Data structure to describe a process' schedulability. */
+struct sched_param
+{
+ int sched_priority;
+};
+
+#endif /* bits/types/struct_sched_param.h */
diff --git a/libc/glibc/bits/typesizes.h b/libc/glibc/bits/typesizes.h
new file mode 100644
index 000000000000..41c89243369f
--- /dev/null
+++ b/libc/glibc/bits/typesizes.h
@@ -0,0 +1,83 @@
+/* bits/typesizes.h -- underlying types for *_t. Generic version.
+ Copyright (C) 2002-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _BITS_TYPES_H
+# error "Never include directly; use instead."
+#endif
+
+#ifndef _BITS_TYPESIZES_H
+#define _BITS_TYPESIZES_H 1
+
+/* See for the meaning of these macros. This file exists so
+ that need not vary across different GNU platforms. */
+
+#define __DEV_T_TYPE __UQUAD_TYPE
+#define __UID_T_TYPE __U32_TYPE
+#define __GID_T_TYPE __U32_TYPE
+#define __INO_T_TYPE __ULONGWORD_TYPE
+#define __INO64_T_TYPE __UQUAD_TYPE
+#define __MODE_T_TYPE __U32_TYPE
+#define __NLINK_T_TYPE __UWORD_TYPE
+#define __OFF_T_TYPE __SLONGWORD_TYPE
+#define __OFF64_T_TYPE __SQUAD_TYPE
+#define __PID_T_TYPE __S32_TYPE
+#define __RLIM_T_TYPE __ULONGWORD_TYPE
+#define __RLIM64_T_TYPE __UQUAD_TYPE
+#define __BLKCNT_T_TYPE __SLONGWORD_TYPE
+#define __BLKCNT64_T_TYPE __SQUAD_TYPE
+#define __FSBLKCNT_T_TYPE __ULONGWORD_TYPE
+#define __FSBLKCNT64_T_TYPE __UQUAD_TYPE
+#define __FSFILCNT_T_TYPE __ULONGWORD_TYPE
+#define __FSFILCNT64_T_TYPE __UQUAD_TYPE
+#define __FSWORD_T_TYPE __SWORD_TYPE
+#define __ID_T_TYPE __U32_TYPE
+#define __CLOCK_T_TYPE __SLONGWORD_TYPE
+#define __TIME_T_TYPE __SLONGWORD_TYPE
+#define __USECONDS_T_TYPE __U32_TYPE
+#define __SUSECONDS_T_TYPE __SLONGWORD_TYPE
+#define __DADDR_T_TYPE __S32_TYPE
+#define __KEY_T_TYPE __S32_TYPE
+#define __CLOCKID_T_TYPE __S32_TYPE
+#define __TIMER_T_TYPE void *
+#define __BLKSIZE_T_TYPE __SLONGWORD_TYPE
+#define __FSID_T_TYPE struct { int __val[2]; }
+#define __SSIZE_T_TYPE __SWORD_TYPE
+#define __SYSCALL_SLONG_TYPE __SLONGWORD_TYPE
+#define __SYSCALL_ULONG_TYPE __ULONGWORD_TYPE
+#define __CPU_MASK_TYPE __ULONGWORD_TYPE
+
+#ifdef __LP64__
+/* Tell the libc code that off_t and off64_t are actually the same type
+ for all ABI purposes, even if possibly expressed as different base types
+ for C type-checking purposes. */
+# define __OFF_T_MATCHES_OFF64_T 1
+
+/* Same for ino_t and ino64_t. */
+# define __INO_T_MATCHES_INO64_T 1
+
+/* And for rlim_t and rlim64_t. */
+# define __RLIM_T_MATCHES_RLIM64_T 1
+#else
+# define __RLIM_T_MATCHES_RLIM64_T 0
+#endif
+
+/* Number of descriptors that can fit in an `fd_set'. */
+#define __FD_SETSIZE 1024
+
+
+#endif /* bits/typesizes.h */
diff --git a/libc/glibc/bits/uintn-identity.h b/libc/glibc/bits/uintn-identity.h
new file mode 100644
index 000000000000..23824f9f772e
--- /dev/null
+++ b/libc/glibc/bits/uintn-identity.h
@@ -0,0 +1,50 @@
+/* Inline functions to return unsigned integer values unchanged.
+ Copyright (C) 2017-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#if !defined _NETINET_IN_H && !defined _ENDIAN_H
+# error "Never use directly; include or instead."
+#endif
+
+#ifndef _BITS_UINTN_IDENTITY_H
+#define _BITS_UINTN_IDENTITY_H 1
+
+#include
+
+/* These inline functions are to ensure the appropriate type
+ conversions and associated diagnostics from macros that convert to
+ a given endianness. */
+
+static __inline __uint16_t
+__uint16_identity (__uint16_t __x)
+{
+ return __x;
+}
+
+static __inline __uint32_t
+__uint32_identity (__uint32_t __x)
+{
+ return __x;
+}
+
+static __inline __uint64_t
+__uint64_identity (__uint64_t __x)
+{
+ return __x;
+}
+
+#endif /* _BITS_UINTN_IDENTITY_H. */
diff --git a/libc/glibc/bits/waitflags.h b/libc/glibc/bits/waitflags.h
new file mode 100644
index 000000000000..45d8fb0164b1
--- /dev/null
+++ b/libc/glibc/bits/waitflags.h
@@ -0,0 +1,26 @@
+/* Definitions of flag bits for `waitpid' et al.
+ Copyright (C) 1992-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#if !defined _SYS_WAIT_H && !defined _STDLIB_H
+# error "Never include directly; use instead."
+#endif
+
+
+/* Bits in the third argument to `waitpid'. */
+#define WNOHANG 1 /* Don't block waiting. */
+#define WUNTRACED 2 /* Report status of stopped children. */
diff --git a/libc/glibc/bits/waitstatus.h b/libc/glibc/bits/waitstatus.h
new file mode 100644
index 000000000000..9d08786c0408
--- /dev/null
+++ b/libc/glibc/bits/waitstatus.h
@@ -0,0 +1,59 @@
+/* Definitions of status bits for `wait' et al.
+ Copyright (C) 1992-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#if !defined _SYS_WAIT_H && !defined _STDLIB_H
+# error "Never include directly; use instead."
+#endif
+
+
+/* Everything extant so far uses these same bits. */
+
+
+/* If WIFEXITED(STATUS), the low-order 8 bits of the status. */
+#define __WEXITSTATUS(status) (((status) & 0xff00) >> 8)
+
+/* If WIFSIGNALED(STATUS), the terminating signal. */
+#define __WTERMSIG(status) ((status) & 0x7f)
+
+/* If WIFSTOPPED(STATUS), the signal that stopped the child. */
+#define __WSTOPSIG(status) __WEXITSTATUS(status)
+
+/* Nonzero if STATUS indicates normal termination. */
+#define __WIFEXITED(status) (__WTERMSIG(status) == 0)
+
+/* Nonzero if STATUS indicates termination by a signal. */
+#define __WIFSIGNALED(status) \
+ (((signed char) (((status) & 0x7f) + 1) >> 1) > 0)
+
+/* Nonzero if STATUS indicates the child is stopped. */
+#define __WIFSTOPPED(status) (((status) & 0xff) == 0x7f)
+
+/* Nonzero if STATUS indicates the child continued after a stop. We only
+ define this if provides the WCONTINUED flag bit. */
+#ifdef WCONTINUED
+# define __WIFCONTINUED(status) ((status) == __W_CONTINUED)
+#endif
+
+/* Nonzero if STATUS indicates the child dumped core. */
+#define __WCOREDUMP(status) ((status) & __WCOREFLAG)
+
+/* Macros for constructing status values. */
+#define __W_EXITCODE(ret, sig) ((ret) << 8 | (sig))
+#define __W_STOPCODE(sig) ((sig) << 8 | 0x7f)
+#define __W_CONTINUED 0xffff
+#define __WCOREFLAG 0x80
diff --git a/libc/glibc/csu/abi-note.S b/libc/glibc/csu/abi-note.S
new file mode 100644
index 000000000000..fa1f014a88dd
--- /dev/null
+++ b/libc/glibc/csu/abi-note.S
@@ -0,0 +1,72 @@
+/* Special .init and .fini section support.
+ Copyright (C) 1997-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ In addition to the permissions in the GNU Lesser General Public
+ License, the Free Software Foundation gives you unlimited
+ permission to link the compiled version of this file with other
+ programs, and to distribute those programs without any restriction
+ coming from the use of this file. (The Lesser General Public
+ License restrictions do apply in other respects; for example, they
+ cover modification of the file, and distribution when not linked
+ into another program.)
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+/* Define an ELF note identifying the operating-system ABI that the
+ executable was created for. The ELF note information identifies a
+ particular OS or coordinated development effort within which the
+ ELF header's e_machine value plus (for dynamically linked programs)
+ the PT_INTERP dynamic linker name and DT_NEEDED shared library
+ names fully identify the runtime environment required by an
+ executable.
+
+ The general format of ELF notes is as follows.
+ Offsets and lengths are bytes or (parenthetical references) to the
+ values in other fields.
+
+offset length contents
+0 4 length of name
+4 4 length of data
+8 4 note type
+12 (0) vendor name
+ - null-terminated ASCII string, padded to 4-byte alignment
+12+(0) (4) note data,
+
+ The GNU project and cooperating development efforts (including the
+ Linux community) use note type 1 and a vendor name string of "GNU"
+ for a note descriptor that indicates ABI requirements. The note data
+ is four 32-bit words. The first of these is an operating system
+ number (0=Linux, 1=Hurd, 2=Solaris, ...) and the remaining three
+ identify the earliest release of that OS that supports this ABI.
+ See abi-tags (top level) for details. */
+
+#include
+#include /* OS-specific ABI tag value */
+
+/* The linker (GNU ld 2.8 and later) recognizes an allocated section whose
+ name begins with `.note' and creates a PT_NOTE program header entry
+ pointing at it. */
+
+ .section ".note.ABI-tag", "a"
+ .p2align 2
+ .long 1f - 0f /* name length */
+ .long 3f - 2f /* data length */
+ .long 1 /* note type */
+0: .asciz "GNU" /* vendor name */
+1: .p2align 2
+2: .long __ABI_TAG_OS /* note data: the ABI tag */
+ .long __ABI_TAG_VERSION
+3: .p2align 2 /* pad out section */
diff --git a/libc/glibc/csu/abi-tag.h b/libc/glibc/csu/abi-tag.h
new file mode 100644
index 000000000000..85db374c6a4f
--- /dev/null
+++ b/libc/glibc/csu/abi-tag.h
@@ -0,0 +1,4 @@
+#define __ABI_TAG_OS 0
+#ifndef __ABI_TAG_VERSION
+# define __ABI_TAG_VERSION 2,0,0
+#endif
diff --git a/libc/glibc/csu/elf-init.c b/libc/glibc/csu/elf-init.c
new file mode 100644
index 000000000000..9d192dfca056
--- /dev/null
+++ b/libc/glibc/csu/elf-init.c
@@ -0,0 +1,106 @@
+/* Startup support for ELF initializers/finalizers in the main executable.
+ Copyright (C) 2002-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ In addition to the permissions in the GNU Lesser General Public
+ License, the Free Software Foundation gives you unlimited
+ permission to link the compiled version of this file with other
+ programs, and to distribute those programs without any restriction
+ coming from the use of this file. (The GNU Lesser General Public
+ License restrictions do apply in other respects; for example, they
+ cover modification of the file, and distribution when not linked
+ into another program.)
+
+ Note that people who make modified versions of this file are not
+ obligated to grant this special exception for their modified
+ versions; it is their choice whether to do so. The GNU Lesser
+ General Public License gives permission to release a modified
+ version without this exception; this exception also makes it
+ possible to release a modified version which carries forward this
+ exception.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#include
+
+
+/* These magic symbols are provided by the linker. */
+extern void (*__preinit_array_start []) (int, char **, char **)
+ attribute_hidden;
+extern void (*__preinit_array_end []) (int, char **, char **)
+ attribute_hidden;
+extern void (*__init_array_start []) (int, char **, char **)
+ attribute_hidden;
+extern void (*__init_array_end []) (int, char **, char **)
+ attribute_hidden;
+extern void (*__fini_array_start []) (void) attribute_hidden;
+extern void (*__fini_array_end []) (void) attribute_hidden;
+
+
+#ifndef NO_INITFINI
+/* These function symbols are provided for the .init/.fini section entry
+ points automagically by the linker. */
+extern void _init (void);
+extern void _fini (void);
+#endif
+
+
+/* These functions are passed to __libc_start_main by the startup code.
+ These get statically linked into each program. For dynamically linked
+ programs, this module will come from libc_nonshared.a and differs from
+ the libc.a module in that it doesn't call the preinit array. */
+
+
+void
+__libc_csu_init (int argc, char **argv, char **envp)
+{
+ /* For dynamically linked executables the preinit array is executed by
+ the dynamic linker (before initializing any shared object). */
+
+#ifndef LIBC_NONSHARED
+ /* For static executables, preinit happens right before init. */
+ {
+ const size_t size = __preinit_array_end - __preinit_array_start;
+ size_t i;
+ for (i = 0; i < size; i++)
+ (*__preinit_array_start [i]) (argc, argv, envp);
+ }
+#endif
+
+#ifndef NO_INITFINI
+ _init ();
+#endif
+
+ const size_t size = __init_array_end - __init_array_start;
+ for (size_t i = 0; i < size; i++)
+ (*__init_array_start [i]) (argc, argv, envp);
+}
+
+/* This function should not be used anymore. We run the executable's
+ destructor now just like any other. We cannot remove the function,
+ though. */
+void
+__libc_csu_fini (void)
+{
+#ifndef LIBC_NONSHARED
+ size_t i = __fini_array_end - __fini_array_start;
+ while (i-- > 0)
+ (*__fini_array_start [i]) ();
+
+# ifndef NO_INITFINI
+ _fini ();
+# endif
+#endif
+}
diff --git a/libc/glibc/csu/init.c b/libc/glibc/csu/init.c
new file mode 100644
index 000000000000..c7a6da07d0ae
--- /dev/null
+++ b/libc/glibc/csu/init.c
@@ -0,0 +1,23 @@
+/* Special startup support.
+ Copyright (C) 1997-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+/* Vestigial libio version number. Some code in libio checks whether
+ this symbol exists in the executable, but nothing looks at its
+ value anymore; the value it was historically set to has been
+ preserved out of an abundance of caution. */
+const int _IO_stdin_used = 0x20001;
diff --git a/libc/glibc/debug/stack_chk_fail_local.c b/libc/glibc/debug/stack_chk_fail_local.c
new file mode 100644
index 000000000000..ae5aa181a39f
--- /dev/null
+++ b/libc/glibc/debug/stack_chk_fail_local.c
@@ -0,0 +1,46 @@
+/* Copyright (C) 2005-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ In addition to the permissions in the GNU Lesser General Public
+ License, the Free Software Foundation gives you unlimited
+ permission to link the compiled version of this file with other
+ programs, and to distribute those programs without any restriction
+ coming from the use of this file. (The GNU Lesser General Public
+ License restrictions do apply in other respects; for example, they
+ cover modification of the file, and distribution when not linked
+ into another program.)
+
+ Note that people who make modified versions of this file are not
+ obligated to grant this special exception for their modified
+ versions; it is their choice whether to do so. The GNU Lesser
+ General Public License gives permission to release a modified
+ version without this exception; this exception also makes it
+ possible to release a modified version which carries forward this
+ exception.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#include
+
+extern void __stack_chk_fail (void) __attribute__ ((noreturn));
+
+/* On some architectures, this helps needless PIC pointer setup
+ that would be needed just for the __stack_chk_fail call. */
+
+void __attribute__ ((noreturn)) attribute_hidden
+__stack_chk_fail_local (void)
+{
+ __stack_chk_fail ();
+}
diff --git a/libc/glibc/elf/elf.h b/libc/glibc/elf/elf.h
new file mode 100644
index 000000000000..47a514a389f0
--- /dev/null
+++ b/libc/glibc/elf/elf.h
@@ -0,0 +1,4001 @@
+/* This file defines standard ELF types, structures, and macros.
+ Copyright (C) 1995-2019 Free Software Foundation, Inc.
+ This file is part of the GNU C Library.
+
+ The GNU C Library is free software; you can redistribute it and/or
+ modify it under the terms of the GNU Lesser General Public
+ License as published by the Free Software Foundation; either
+ version 2.1 of the License, or (at your option) any later version.
+
+ The GNU C Library is distributed in the hope that it will be useful,
+ but WITHOUT ANY WARRANTY; without even the implied warranty of
+ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ Lesser General Public License for more details.
+
+ You should have received a copy of the GNU Lesser General Public
+ License along with the GNU C Library; if not, see
+ . */
+
+#ifndef _ELF_H
+#define _ELF_H 1
+
+#include
+
+__BEGIN_DECLS
+
+/* Standard ELF types. */
+
+#include
+
+/* Type for a 16-bit quantity. */
+typedef uint16_t Elf32_Half;
+typedef uint16_t Elf64_Half;
+
+/* Types for signed and unsigned 32-bit quantities. */
+typedef uint32_t Elf32_Word;
+typedef int32_t Elf32_Sword;
+typedef uint32_t Elf64_Word;
+typedef int32_t Elf64_Sword;
+
+/* Types for signed and unsigned 64-bit quantities. */
+typedef uint64_t Elf32_Xword;
+typedef int64_t Elf32_Sxword;
+typedef uint64_t Elf64_Xword;
+typedef int64_t Elf64_Sxword;
+
+/* Type of addresses. */
+typedef uint32_t Elf32_Addr;
+typedef uint64_t Elf64_Addr;
+
+/* Type of file offsets. */
+typedef uint32_t Elf32_Off;
+typedef uint64_t Elf64_Off;
+
+/* Type for section indices, which are 16-bit quantities. */
+typedef uint16_t Elf32_Section;
+typedef uint16_t Elf64_Section;
+
+/* Type for version symbol information. */
+typedef Elf32_Half Elf32_Versym;
+typedef Elf64_Half Elf64_Versym;
+
+
+/* The ELF file header. This appears at the start of every ELF file. */
+
+#define EI_NIDENT (16)
+
+typedef struct
+{
+ unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
+ Elf32_Half e_type; /* Object file type */
+ Elf32_Half e_machine; /* Architecture */
+ Elf32_Word e_version; /* Object file version */
+ Elf32_Addr e_entry; /* Entry point virtual address */
+ Elf32_Off e_phoff; /* Program header table file offset */
+ Elf32_Off e_shoff; /* Section header table file offset */
+ Elf32_Word e_flags; /* Processor-specific flags */
+ Elf32_Half e_ehsize; /* ELF header size in bytes */
+ Elf32_Half e_phentsize; /* Program header table entry size */
+ Elf32_Half e_phnum; /* Program header table entry count */
+ Elf32_Half e_shentsize; /* Section header table entry size */
+ Elf32_Half e_shnum; /* Section header table entry count */
+ Elf32_Half e_shstrndx; /* Section header string table index */
+} Elf32_Ehdr;
+
+typedef struct
+{
+ unsigned char e_ident[EI_NIDENT]; /* Magic number and other info */
+ Elf64_Half e_type; /* Object file type */
+ Elf64_Half e_machine; /* Architecture */
+ Elf64_Word e_version; /* Object file version */
+ Elf64_Addr e_entry; /* Entry point virtual address */
+ Elf64_Off e_phoff; /* Program header table file offset */
+ Elf64_Off e_shoff; /* Section header table file offset */
+ Elf64_Word e_flags; /* Processor-specific flags */
+ Elf64_Half e_ehsize; /* ELF header size in bytes */
+ Elf64_Half e_phentsize; /* Program header table entry size */
+ Elf64_Half e_phnum; /* Program header table entry count */
+ Elf64_Half e_shentsize; /* Section header table entry size */
+ Elf64_Half e_shnum; /* Section header table entry count */
+ Elf64_Half e_shstrndx; /* Section header string table index */
+} Elf64_Ehdr;
+
+/* Fields in the e_ident array. The EI_* macros are indices into the
+ array. The macros under each EI_* macro are the values the byte
+ may have. */
+
+#define EI_MAG0 0 /* File identification byte 0 index */
+#define ELFMAG0 0x7f /* Magic number byte 0 */
+
+#define EI_MAG1 1 /* File identification byte 1 index */
+#define ELFMAG1 'E' /* Magic number byte 1 */
+
+#define EI_MAG2 2 /* File identification byte 2 index */
+#define ELFMAG2 'L' /* Magic number byte 2 */
+
+#define EI_MAG3 3 /* File identification byte 3 index */
+#define ELFMAG3 'F' /* Magic number byte 3 */
+
+/* Conglomeration of the identification bytes, for easy testing as a word. */
+#define ELFMAG "\177ELF"
+#define SELFMAG 4
+
+#define EI_CLASS 4 /* File class byte index */
+#define ELFCLASSNONE 0 /* Invalid class */
+#define ELFCLASS32 1 /* 32-bit objects */
+#define ELFCLASS64 2 /* 64-bit objects */
+#define ELFCLASSNUM 3
+
+#define EI_DATA 5 /* Data encoding byte index */
+#define ELFDATANONE 0 /* Invalid data encoding */
+#define ELFDATA2LSB 1 /* 2's complement, little endian */
+#define ELFDATA2MSB 2 /* 2's complement, big endian */
+#define ELFDATANUM 3
+
+#define EI_VERSION 6 /* File version byte index */
+ /* Value must be EV_CURRENT */
+
+#define EI_OSABI 7 /* OS ABI identification */
+#define ELFOSABI_NONE 0 /* UNIX System V ABI */
+#define ELFOSABI_SYSV 0 /* Alias. */
+#define ELFOSABI_HPUX 1 /* HP-UX */
+#define ELFOSABI_NETBSD 2 /* NetBSD. */
+#define ELFOSABI_GNU 3 /* Object uses GNU ELF extensions. */
+#define ELFOSABI_LINUX ELFOSABI_GNU /* Compatibility alias. */
+#define ELFOSABI_SOLARIS 6 /* Sun Solaris. */
+#define ELFOSABI_AIX 7 /* IBM AIX. */
+#define ELFOSABI_IRIX 8 /* SGI Irix. */
+#define ELFOSABI_FREEBSD 9 /* FreeBSD. */
+#define ELFOSABI_TRU64 10 /* Compaq TRU64 UNIX. */
+#define ELFOSABI_MODESTO 11 /* Novell Modesto. */
+#define ELFOSABI_OPENBSD 12 /* OpenBSD. */
+#define ELFOSABI_ARM_AEABI 64 /* ARM EABI */
+#define ELFOSABI_ARM 97 /* ARM */
+#define ELFOSABI_STANDALONE 255 /* Standalone (embedded) application */
+
+#define EI_ABIVERSION 8 /* ABI version */
+
+#define EI_PAD 9 /* Byte index of padding bytes */
+
+/* Legal values for e_type (object file type). */
+
+#define ET_NONE 0 /* No file type */
+#define ET_REL 1 /* Relocatable file */
+#define ET_EXEC 2 /* Executable file */
+#define ET_DYN 3 /* Shared object file */
+#define ET_CORE 4 /* Core file */
+#define ET_NUM 5 /* Number of defined types */
+#define ET_LOOS 0xfe00 /* OS-specific range start */
+#define ET_HIOS 0xfeff /* OS-specific range end */
+#define ET_LOPROC 0xff00 /* Processor-specific range start */
+#define ET_HIPROC 0xffff /* Processor-specific range end */
+
+/* Legal values for e_machine (architecture). */
+
+#define EM_NONE 0 /* No machine */
+#define EM_M32 1 /* AT&T WE 32100 */
+#define EM_SPARC 2 /* SUN SPARC */
+#define EM_386 3 /* Intel 80386 */
+#define EM_68K 4 /* Motorola m68k family */
+#define EM_88K 5 /* Motorola m88k family */
+#define EM_IAMCU 6 /* Intel MCU */
+#define EM_860 7 /* Intel 80860 */
+#define EM_MIPS 8 /* MIPS R3000 big-endian */
+#define EM_S370 9 /* IBM System/370 */
+#define EM_MIPS_RS3_LE 10 /* MIPS R3000 little-endian */
+ /* reserved 11-14 */
+#define EM_PARISC 15 /* HPPA */
+ /* reserved 16 */
+#define EM_VPP500 17 /* Fujitsu VPP500 */
+#define EM_SPARC32PLUS 18 /* Sun's "v8plus" */
+#define EM_960 19 /* Intel 80960 */
+#define EM_PPC 20 /* PowerPC */
+#define EM_PPC64 21 /* PowerPC 64-bit */
+#define EM_S390 22 /* IBM S390 */
+#define EM_SPU 23 /* IBM SPU/SPC */
+ /* reserved 24-35 */
+#define EM_V800 36 /* NEC V800 series */
+#define EM_FR20 37 /* Fujitsu FR20 */
+#define EM_RH32 38 /* TRW RH-32 */
+#define EM_RCE 39 /* Motorola RCE */
+#define EM_ARM 40 /* ARM */
+#define EM_FAKE_ALPHA 41 /* Digital Alpha */
+#define EM_SH 42 /* Hitachi SH */
+#define EM_SPARCV9 43 /* SPARC v9 64-bit */
+#define EM_TRICORE 44 /* Siemens Tricore */
+#define EM_ARC 45 /* Argonaut RISC Core */
+#define EM_H8_300 46 /* Hitachi H8/300 */
+#define EM_H8_300H 47 /* Hitachi H8/300H */
+#define EM_H8S 48 /* Hitachi H8S */
+#define EM_H8_500 49 /* Hitachi H8/500 */
+#define EM_IA_64 50 /* Intel Merced */
+#define EM_MIPS_X 51 /* Stanford MIPS-X */
+#define EM_COLDFIRE 52 /* Motorola Coldfire */
+#define EM_68HC12 53 /* Motorola M68HC12 */
+#define EM_MMA 54 /* Fujitsu MMA Multimedia Accelerator */
+#define EM_PCP 55 /* Siemens PCP */
+#define EM_NCPU 56 /* Sony nCPU embeeded RISC */
+#define EM_NDR1 57 /* Denso NDR1 microprocessor */
+#define EM_STARCORE 58 /* Motorola Start*Core processor */
+#define EM_ME16 59 /* Toyota ME16 processor */
+#define EM_ST100 60 /* STMicroelectronic ST100 processor */
+#define EM_TINYJ 61 /* Advanced Logic Corp. Tinyj emb.fam */
+#define EM_X86_64 62 /* AMD x86-64 architecture */
+#define EM_PDSP 63 /* Sony DSP Processor */
+#define EM_PDP10 64 /* Digital PDP-10 */
+#define EM_PDP11 65 /* Digital PDP-11 */
+#define EM_FX66 66 /* Siemens FX66 microcontroller */
+#define EM_ST9PLUS 67 /* STMicroelectronics ST9+ 8/16 mc */
+#define EM_ST7 68 /* STmicroelectronics ST7 8 bit mc */
+#define EM_68HC16 69 /* Motorola MC68HC16 microcontroller */
+#define EM_68HC11 70 /* Motorola MC68HC11 microcontroller */
+#define EM_68HC08 71 /* Motorola MC68HC08 microcontroller */
+#define EM_68HC05 72 /* Motorola MC68HC05 microcontroller */
+#define EM_SVX 73 /* Silicon Graphics SVx */
+#define EM_ST19 74 /* STMicroelectronics ST19 8 bit mc */
+#define EM_VAX 75 /* Digital VAX */
+#define EM_CRIS 76 /* Axis Communications 32-bit emb.proc */
+#define EM_JAVELIN 77 /* Infineon Technologies 32-bit emb.proc */
+#define EM_FIREPATH 78 /* Element 14 64-bit DSP Processor */
+#define EM_ZSP 79 /* LSI Logic 16-bit DSP Processor */
+#define EM_MMIX 80 /* Donald Knuth's educational 64-bit proc */
+#define EM_HUANY 81 /* Harvard University machine-independent object files */
+#define EM_PRISM 82 /* SiTera Prism */
+#define EM_AVR 83 /* Atmel AVR 8-bit microcontroller */
+#define EM_FR30 84 /* Fujitsu FR30 */
+#define EM_D10V 85 /* Mitsubishi D10V */
+#define EM_D30V 86 /* Mitsubishi D30V */
+#define EM_V850 87 /* NEC v850 */
+#define EM_M32R 88 /* Mitsubishi M32R */
+#define EM_MN10300 89 /* Matsushita MN10300 */
+#define EM_MN10200 90 /* Matsushita MN10200 */
+#define EM_PJ 91 /* picoJava */
+#define EM_OPENRISC 92 /* OpenRISC 32-bit embedded processor */
+#define EM_ARC_COMPACT 93 /* ARC International ARCompact */
+#define EM_XTENSA 94 /* Tensilica Xtensa Architecture */
+#define EM_VIDEOCORE 95 /* Alphamosaic VideoCore */
+#define EM_TMM_GPP 96 /* Thompson Multimedia General Purpose Proc */
+#define EM_NS32K 97 /* National Semi. 32000 */
+#define EM_TPC 98 /* Tenor Network TPC */
+#define EM_SNP1K 99 /* Trebia SNP 1000 */
+#define EM_ST200 100 /* STMicroelectronics ST200 */
+#define EM_IP2K 101 /* Ubicom IP2xxx */
+#define EM_MAX 102 /* MAX processor */
+#define EM_CR 103 /* National Semi. CompactRISC */
+#define EM_F2MC16 104 /* Fujitsu F2MC16 */
+#define EM_MSP430 105 /* Texas Instruments msp430 */
+#define EM_BLACKFIN 106 /* Analog Devices Blackfin DSP */
+#define EM_SE_C33 107 /* Seiko Epson S1C33 family */
+#define EM_SEP 108 /* Sharp embedded microprocessor */
+#define EM_ARCA 109 /* Arca RISC */
+#define EM_UNICORE 110 /* PKU-Unity & MPRC Peking Uni. mc series */
+#define EM_EXCESS 111 /* eXcess configurable cpu */
+#define EM_DXP 112 /* Icera Semi. Deep Execution Processor */
+#define EM_ALTERA_NIOS2 113 /* Altera Nios II */
+#define EM_CRX 114 /* National Semi. CompactRISC CRX */
+#define EM_XGATE 115 /* Motorola XGATE */
+#define EM_C166 116 /* Infineon C16x/XC16x */
+#define EM_M16C 117 /* Renesas M16C */
+#define EM_DSPIC30F 118 /* Microchip Technology dsPIC30F */
+#define EM_CE 119 /* Freescale Communication Engine RISC */
+#define EM_M32C 120 /* Renesas M32C */
+ /* reserved 121-130 */
+#define EM_TSK3000 131 /* Altium TSK3000 */
+#define EM_RS08 132 /* Freescale RS08 */
+#define EM_SHARC 133 /* Analog Devices SHARC family */
+#define EM_ECOG2 134 /* Cyan Technology eCOG2 */
+#define EM_SCORE7 135 /* Sunplus S+core7 RISC */
+#define EM_DSP24 136 /* New Japan Radio (NJR) 24-bit DSP */
+#define EM_VIDEOCORE3 137 /* Broadcom VideoCore III */
+#define EM_LATTICEMICO32 138 /* RISC for Lattice FPGA */
+#define EM_SE_C17 139 /* Seiko Epson C17 */
+#define EM_TI_C6000 140 /* Texas Instruments TMS320C6000 DSP */
+#define EM_TI_C2000 141 /* Texas Instruments TMS320C2000 DSP */
+#define EM_TI_C5500 142 /* Texas Instruments TMS320C55x DSP */
+#define EM_TI_ARP32 143 /* Texas Instruments App. Specific RISC */
+#define EM_TI_PRU 144 /* Texas Instruments Prog. Realtime Unit */
+ /* reserved 145-159 */
+#define EM_MMDSP_PLUS 160 /* STMicroelectronics 64bit VLIW DSP */
+#define EM_CYPRESS_M8C 161 /* Cypress M8C */
+#define EM_R32C 162 /* Renesas R32C */
+#define EM_TRIMEDIA 163 /* NXP Semi. TriMedia */
+#define EM_QDSP6 164 /* QUALCOMM DSP6 */
+#define EM_8051 165 /* Intel 8051 and variants */
+#define EM_STXP7X 166 /* STMicroelectronics STxP7x */
+#define EM_NDS32 167 /* Andes Tech. compact code emb. RISC */
+#define EM_ECOG1X 168 /* Cyan Technology eCOG1X */
+#define EM_MAXQ30 169 /* Dallas Semi. MAXQ30 mc */
+#define EM_XIMO16 170 /* New Japan Radio (NJR) 16-bit DSP */
+#define EM_MANIK 171 /* M2000 Reconfigurable RISC */
+#define EM_CRAYNV2 172 /* Cray NV2 vector architecture */
+#define EM_RX 173 /* Renesas RX */
+#define EM_METAG 174 /* Imagination Tech. META */
+#define EM_MCST_ELBRUS 175 /* MCST Elbrus */
+#define EM_ECOG16 176 /* Cyan Technology eCOG16 */
+#define EM_CR16 177 /* National Semi. CompactRISC CR16 */
+#define EM_ETPU 178 /* Freescale Extended Time Processing Unit */
+#define EM_SLE9X 179 /* Infineon Tech. SLE9X */
+#define EM_L10M 180 /* Intel L10M */
+#define EM_K10M 181 /* Intel K10M */
+ /* reserved 182 */
+#define EM_AARCH64 183 /* ARM AARCH64 */
+ /* reserved 184 */
+#define EM_AVR32 185 /* Amtel 32-bit microprocessor */
+#define EM_STM8 186 /* STMicroelectronics STM8 */
+#define EM_TILE64 187 /* Tileta TILE64 */
+#define EM_TILEPRO 188 /* Tilera TILEPro */
+#define EM_MICROBLAZE 189 /* Xilinx MicroBlaze */
+#define EM_CUDA 190 /* NVIDIA CUDA */
+#define EM_TILEGX 191 /* Tilera TILE-Gx */
+#define EM_CLOUDSHIELD 192 /* CloudShield */
+#define EM_COREA_1ST 193 /* KIPO-KAIST Core-A 1st gen. */
+#define EM_COREA_2ND 194 /* KIPO-KAIST Core-A 2nd gen. */
+#define EM_ARC_COMPACT2 195 /* Synopsys ARCompact V2 */
+#define EM_OPEN8 196 /* Open8 RISC */
+#define EM_RL78 197 /* Renesas RL78 */
+#define EM_VIDEOCORE5 198 /* Broadcom VideoCore V */
+#define EM_78KOR 199 /* Renesas 78KOR */
+#define EM_56800EX 200 /* Freescale 56800EX DSC */
+#define EM_BA1 201 /* Beyond BA1 */
+#define EM_BA2 202 /* Beyond BA2 */
+#define EM_XCORE 203 /* XMOS xCORE */
+#define EM_MCHP_PIC 204 /* Microchip 8-bit PIC(r) */
+ /* reserved 205-209 */
+#define EM_KM32 210 /* KM211 KM32 */
+#define EM_KMX32 211 /* KM211 KMX32 */
+#define EM_EMX16 212 /* KM211 KMX16 */
+#define EM_EMX8 213 /* KM211 KMX8 */
+#define EM_KVARC 214 /* KM211 KVARC */
+#define EM_CDP 215 /* Paneve CDP */
+#define EM_COGE 216 /* Cognitive Smart Memory Processor */
+#define EM_COOL 217 /* Bluechip CoolEngine */
+#define EM_NORC 218 /* Nanoradio Optimized RISC */
+#define EM_CSR_KALIMBA 219 /* CSR Kalimba */
+#define EM_Z80 220 /* Zilog Z80 */
+#define EM_VISIUM 221 /* Controls and Data Services VISIUMcore */
+#define EM_FT32 222 /* FTDI Chip FT32 */
+#define EM_MOXIE 223 /* Moxie processor */
+#define EM_AMDGPU 224 /* AMD GPU */
+ /* reserved 225-242 */
+#define EM_RISCV 243 /* RISC-V */
+
+#define EM_BPF 247 /* Linux BPF -- in-kernel virtual machine */
+#define EM_CSKY 252 /* C_SKY */
+
+#define EM_NUM 253
+
+/* Old spellings/synonyms. */
+
+#define EM_ARC_A5 EM_ARC_COMPACT
+
+/* If it is necessary to assign new unofficial EM_* values, please
+ pick large random numbers (0x8523, 0xa7f2, etc.) to minimize the
+ chances of collision with official or non-GNU unofficial values. */
+
+#define EM_ALPHA 0x9026
+
+/* Legal values for e_version (version). */
+
+#define EV_NONE 0 /* Invalid ELF version */
+#define EV_CURRENT 1 /* Current version */
+#define EV_NUM 2
+
+/* Section header. */
+
+typedef struct
+{
+ Elf32_Word sh_name; /* Section name (string tbl index) */
+ Elf32_Word sh_type; /* Section type */
+ Elf32_Word sh_flags; /* Section flags */
+ Elf32_Addr sh_addr; /* Section virtual addr at execution */
+ Elf32_Off sh_offset; /* Section file offset */
+ Elf32_Word sh_size; /* Section size in bytes */
+ Elf32_Word sh_link; /* Link to another section */
+ Elf32_Word sh_info; /* Additional section information */
+ Elf32_Word sh_addralign; /* Section alignment */
+ Elf32_Word sh_entsize; /* Entry size if section holds table */
+} Elf32_Shdr;
+
+typedef struct
+{
+ Elf64_Word sh_name; /* Section name (string tbl index) */
+ Elf64_Word sh_type; /* Section type */
+ Elf64_Xword sh_flags; /* Section flags */
+ Elf64_Addr sh_addr; /* Section virtual addr at execution */
+ Elf64_Off sh_offset; /* Section file offset */
+ Elf64_Xword sh_size; /* Section size in bytes */
+ Elf64_Word sh_link; /* Link to another section */
+ Elf64_Word sh_info; /* Additional section information */
+ Elf64_Xword sh_addralign; /* Section alignment */
+ Elf64_Xword sh_entsize; /* Entry size if section holds table */
+} Elf64_Shdr;
+
+/* Special section indices. */
+
+#define SHN_UNDEF 0 /* Undefined section */
+#define SHN_LORESERVE 0xff00 /* Start of reserved indices */
+#define SHN_LOPROC 0xff00 /* Start of processor-specific */
+#define SHN_BEFORE 0xff00 /* Order section before all others
+ (Solaris). */
+#define SHN_AFTER 0xff01 /* Order section after all others
+ (Solaris). */
+#define SHN_HIPROC 0xff1f /* End of processor-specific */
+#define SHN_LOOS 0xff20 /* Start of OS-specific */
+#define SHN_HIOS 0xff3f /* End of OS-specific */
+#define SHN_ABS 0xfff1 /* Associated symbol is absolute */
+#define SHN_COMMON 0xfff2 /* Associated symbol is common */
+#define SHN_XINDEX 0xffff /* Index is in extra table. */
+#define SHN_HIRESERVE 0xffff /* End of reserved indices */
+
+/* Legal values for sh_type (section type). */
+
+#define SHT_NULL 0 /* Section header table entry unused */
+#define SHT_PROGBITS 1 /* Program data */
+#define SHT_SYMTAB 2 /* Symbol table */
+#define SHT_STRTAB 3 /* String table */
+#define SHT_RELA 4 /* Relocation entries with addends */
+#define SHT_HASH 5 /* Symbol hash table */
+#define SHT_DYNAMIC 6 /* Dynamic linking information */
+#define SHT_NOTE 7 /* Notes */
+#define SHT_NOBITS 8 /* Program space with no data (bss) */
+#define SHT_REL 9 /* Relocation entries, no addends */
+#define SHT_SHLIB 10 /* Reserved */
+#define SHT_DYNSYM 11 /* Dynamic linker symbol table */
+#define SHT_INIT_ARRAY 14 /* Array of constructors */
+#define SHT_FINI_ARRAY 15 /* Array of destructors */
+#define SHT_PREINIT_ARRAY 16 /* Array of pre-constructors */
+#define SHT_GROUP 17 /* Section group */
+#define SHT_SYMTAB_SHNDX 18 /* Extended section indeces */
+#define SHT_NUM 19 /* Number of defined types. */
+#define SHT_LOOS 0x60000000 /* Start OS-specific. */
+#define SHT_GNU_ATTRIBUTES 0x6ffffff5 /* Object attributes. */
+#define SHT_GNU_HASH 0x6ffffff6 /* GNU-style hash table. */
+#define SHT_GNU_LIBLIST 0x6ffffff7 /* Prelink library list */
+#define SHT_CHECKSUM 0x6ffffff8 /* Checksum for DSO content. */
+#define SHT_LOSUNW 0x6ffffffa /* Sun-specific low bound. */
+#define SHT_SUNW_move 0x6ffffffa
+#define SHT_SUNW_COMDAT 0x6ffffffb
+#define SHT_SUNW_syminfo 0x6ffffffc
+#define SHT_GNU_verdef 0x6ffffffd /* Version definition section. */
+#define SHT_GNU_verneed 0x6ffffffe /* Version needs section. */
+#define SHT_GNU_versym 0x6fffffff /* Version symbol table. */
+#define SHT_HISUNW 0x6fffffff /* Sun-specific high bound. */
+#define SHT_HIOS 0x6fffffff /* End OS-specific type */
+#define SHT_LOPROC 0x70000000 /* Start of processor-specific */
+#define SHT_HIPROC 0x7fffffff /* End of processor-specific */
+#define SHT_LOUSER 0x80000000 /* Start of application-specific */
+#define SHT_HIUSER 0x8fffffff /* End of application-specific */
+
+/* Legal values for sh_flags (section flags). */
+
+#define SHF_WRITE (1 << 0) /* Writable */
+#define SHF_ALLOC (1 << 1) /* Occupies memory during execution */
+#define SHF_EXECINSTR (1 << 2) /* Executable */
+#define SHF_MERGE (1 << 4) /* Might be merged */
+#define SHF_STRINGS (1 << 5) /* Contains nul-terminated strings */
+#define SHF_INFO_LINK (1 << 6) /* `sh_info' contains SHT index */
+#define SHF_LINK_ORDER (1 << 7) /* Preserve order after combining */
+#define SHF_OS_NONCONFORMING (1 << 8) /* Non-standard OS specific handling
+ required */
+#define SHF_GROUP (1 << 9) /* Section is member of a group. */
+#define SHF_TLS (1 << 10) /* Section hold thread-local data. */
+#define SHF_COMPRESSED (1 << 11) /* Section with compressed data. */
+#define SHF_MASKOS 0x0ff00000 /* OS-specific. */
+#define SHF_MASKPROC 0xf0000000 /* Processor-specific */
+#define SHF_ORDERED (1 << 30) /* Special ordering requirement
+ (Solaris). */
+#define SHF_EXCLUDE (1U << 31) /* Section is excluded unless
+ referenced or allocated (Solaris).*/
+
+/* Section compression header. Used when SHF_COMPRESSED is set. */
+
+typedef struct
+{
+ Elf32_Word ch_type; /* Compression format. */
+ Elf32_Word ch_size; /* Uncompressed data size. */
+ Elf32_Word ch_addralign; /* Uncompressed data alignment. */
+} Elf32_Chdr;
+
+typedef struct
+{
+ Elf64_Word ch_type; /* Compression format. */
+ Elf64_Word ch_reserved;
+ Elf64_Xword ch_size; /* Uncompressed data size. */
+ Elf64_Xword ch_addralign; /* Uncompressed data alignment. */
+} Elf64_Chdr;
+
+/* Legal values for ch_type (compression algorithm). */
+#define ELFCOMPRESS_ZLIB 1 /* ZLIB/DEFLATE algorithm. */
+#define ELFCOMPRESS_LOOS 0x60000000 /* Start of OS-specific. */
+#define ELFCOMPRESS_HIOS 0x6fffffff /* End of OS-specific. */
+#define ELFCOMPRESS_LOPROC 0x70000000 /* Start of processor-specific. */
+#define ELFCOMPRESS_HIPROC 0x7fffffff /* End of processor-specific. */
+
+/* Section group handling. */
+#define GRP_COMDAT 0x1 /* Mark group as COMDAT. */
+
+/* Symbol table entry. */
+
+typedef struct
+{
+ Elf32_Word st_name; /* Symbol name (string tbl index) */
+ Elf32_Addr st_value; /* Symbol value */
+ Elf32_Word st_size; /* Symbol size */
+ unsigned char st_info; /* Symbol type and binding */
+ unsigned char st_other; /* Symbol visibility */
+ Elf32_Section st_shndx; /* Section index */
+} Elf32_Sym;
+
+typedef struct
+{
+ Elf64_Word st_name; /* Symbol name (string tbl index) */
+ unsigned char st_info; /* Symbol type and binding */
+ unsigned char st_other; /* Symbol visibility */
+ Elf64_Section st_shndx; /* Section index */
+ Elf64_Addr st_value; /* Symbol value */
+ Elf64_Xword st_size; /* Symbol size */
+} Elf64_Sym;
+
+/* The syminfo section if available contains additional information about
+ every dynamic symbol. */
+
+typedef struct
+{
+ Elf32_Half si_boundto; /* Direct bindings, symbol bound to */
+ Elf32_Half si_flags; /* Per symbol flags */
+} Elf32_Syminfo;
+
+typedef struct
+{
+ Elf64_Half si_boundto; /* Direct bindings, symbol bound to */
+ Elf64_Half si_flags; /* Per symbol flags */
+} Elf64_Syminfo;
+
+/* Possible values for si_boundto. */
+#define SYMINFO_BT_SELF 0xffff /* Symbol bound to self */
+#define SYMINFO_BT_PARENT 0xfffe /* Symbol bound to parent */
+#define SYMINFO_BT_LOWRESERVE 0xff00 /* Beginning of reserved entries */
+
+/* Possible bitmasks for si_flags. */
+#define SYMINFO_FLG_DIRECT 0x0001 /* Direct bound symbol */
+#define SYMINFO_FLG_PASSTHRU 0x0002 /* Pass-thru symbol for translator */
+#define SYMINFO_FLG_COPY 0x0004 /* Symbol is a copy-reloc */
+#define SYMINFO_FLG_LAZYLOAD 0x0008 /* Symbol bound to object to be lazy
+ loaded */
+/* Syminfo version values. */
+#define SYMINFO_NONE 0
+#define SYMINFO_CURRENT 1
+#define SYMINFO_NUM 2
+
+
+/* How to extract and insert information held in the st_info field. */
+
+#define ELF32_ST_BIND(val) (((unsigned char) (val)) >> 4)
+#define ELF32_ST_TYPE(val) ((val) & 0xf)
+#define ELF32_ST_INFO(bind, type) (((bind) << 4) + ((type) & 0xf))
+
+/* Both Elf32_Sym and Elf64_Sym use the same one-byte st_info field. */
+#define ELF64_ST_BIND(val) ELF32_ST_BIND (val)
+#define ELF64_ST_TYPE(val) ELF32_ST_TYPE (val)
+#define ELF64_ST_INFO(bind, type) ELF32_ST_INFO ((bind), (type))
+
+/* Legal values for ST_BIND subfield of st_info (symbol binding). */
+
+#define STB_LOCAL 0 /* Local symbol */
+#define STB_GLOBAL 1 /* Global symbol */
+#define STB_WEAK 2 /* Weak symbol */
+#define STB_NUM 3 /* Number of defined types. */
+#define STB_LOOS 10 /* Start of OS-specific */
+#define STB_GNU_UNIQUE 10 /* Unique symbol. */
+#define STB_HIOS 12 /* End of OS-specific */
+#define STB_LOPROC 13 /* Start of processor-specific */
+#define STB_HIPROC 15 /* End of processor-specific */
+
+/* Legal values for ST_TYPE subfield of st_info (symbol type). */
+
+#define STT_NOTYPE 0 /* Symbol type is unspecified */
+#define STT_OBJECT 1 /* Symbol is a data object */
+#define STT_FUNC 2 /* Symbol is a code object */
+#define STT_SECTION 3 /* Symbol associated with a section */
+#define STT_FILE 4 /* Symbol's name is file name */
+#define STT_COMMON 5 /* Symbol is a common data object */
+#define STT_TLS 6 /* Symbol is thread-local data object*/
+#define STT_NUM 7 /* Number of defined types. */
+#define STT_LOOS 10 /* Start of OS-specific */
+#define STT_GNU_IFUNC 10 /* Symbol is indirect code object */
+#define STT_HIOS 12 /* End of OS-specific */
+#define STT_LOPROC 13 /* Start of processor-specific */
+#define STT_HIPROC 15 /* End of processor-specific */
+
+
+/* Symbol table indices are found in the hash buckets and chain table
+ of a symbol hash table section. This special index value indicates
+ the end of a chain, meaning no further symbols are found in that bucket. */
+
+#define STN_UNDEF 0 /* End of a chain. */
+
+
+/* How to extract and insert information held in the st_other field. */
+
+#define ELF32_ST_VISIBILITY(o) ((o) & 0x03)
+
+/* For ELF64 the definitions are the same. */
+#define ELF64_ST_VISIBILITY(o) ELF32_ST_VISIBILITY (o)
+
+/* Symbol visibility specification encoded in the st_other field. */
+#define STV_DEFAULT 0 /* Default symbol visibility rules */
+#define STV_INTERNAL 1 /* Processor specific hidden class */
+#define STV_HIDDEN 2 /* Sym unavailable in other modules */
+#define STV_PROTECTED 3 /* Not preemptible, not exported */
+
+
+/* Relocation table entry without addend (in section of type SHT_REL). */
+
+typedef struct
+{
+ Elf32_Addr r_offset; /* Address */
+ Elf32_Word r_info; /* Relocation type and symbol index */
+} Elf32_Rel;
+
+/* I have seen two different definitions of the Elf64_Rel and
+ Elf64_Rela structures, so we'll leave them out until Novell (or
+ whoever) gets their act together. */
+/* The following, at least, is used on Sparc v9, MIPS, and Alpha. */
+
+typedef struct
+{
+ Elf64_Addr r_offset; /* Address */
+ Elf64_Xword r_info; /* Relocation type and symbol index */
+} Elf64_Rel;
+
+/* Relocation table entry with addend (in section of type SHT_RELA). */
+
+typedef struct
+{
+ Elf32_Addr r_offset; /* Address */
+ Elf32_Word r_info; /* Relocation type and symbol index */
+ Elf32_Sword r_addend; /* Addend */
+} Elf32_Rela;
+
+typedef struct
+{
+ Elf64_Addr r_offset; /* Address */
+ Elf64_Xword r_info; /* Relocation type and symbol index */
+ Elf64_Sxword r_addend; /* Addend */
+} Elf64_Rela;
+
+/* How to extract and insert information held in the r_info field. */
+
+#define ELF32_R_SYM(val) ((val) >> 8)
+#define ELF32_R_TYPE(val) ((val) & 0xff)
+#define ELF32_R_INFO(sym, type) (((sym) << 8) + ((type) & 0xff))
+
+#define ELF64_R_SYM(i) ((i) >> 32)
+#define ELF64_R_TYPE(i) ((i) & 0xffffffff)
+#define ELF64_R_INFO(sym,type) ((((Elf64_Xword) (sym)) << 32) + (type))
+
+/* Program segment header. */
+
+typedef struct
+{
+ Elf32_Word p_type; /* Segment type */
+ Elf32_Off p_offset; /* Segment file offset */
+ Elf32_Addr p_vaddr; /* Segment virtual address */
+ Elf32_Addr p_paddr; /* Segment physical address */
+ Elf32_Word p_filesz; /* Segment size in file */
+ Elf32_Word p_memsz; /* Segment size in memory */
+ Elf32_Word p_flags; /* Segment flags */
+ Elf32_Word p_align; /* Segment alignment */
+} Elf32_Phdr;
+
+typedef struct
+{
+ Elf64_Word p_type; /* Segment type */
+ Elf64_Word p_flags; /* Segment flags */
+ Elf64_Off p_offset; /* Segment file offset */
+ Elf64_Addr p_vaddr; /* Segment virtual address */
+ Elf64_Addr p_paddr; /* Segment physical address */
+ Elf64_Xword p_filesz; /* Segment size in file */
+ Elf64_Xword p_memsz; /* Segment size in memory */
+ Elf64_Xword p_align; /* Segment alignment */
+} Elf64_Phdr;
+
+/* Special value for e_phnum. This indicates that the real number of
+ program headers is too large to fit into e_phnum. Instead the real
+ value is in the field sh_info of section 0. */
+
+#define PN_XNUM 0xffff
+
+/* Legal values for p_type (segment type). */
+
+#define PT_NULL 0 /* Program header table entry unused */
+#define PT_LOAD 1 /* Loadable program segment */
+#define PT_DYNAMIC 2 /* Dynamic linking information */
+#define PT_INTERP 3 /* Program interpreter */
+#define PT_NOTE 4 /* Auxiliary information */
+#define PT_SHLIB 5 /* Reserved */
+#define PT_PHDR 6 /* Entry for header table itself */
+#define PT_TLS 7 /* Thread-local storage segment */
+#define PT_NUM 8 /* Number of defined types */
+#define PT_LOOS 0x60000000 /* Start of OS-specific */
+#define PT_GNU_EH_FRAME 0x6474e550 /* GCC .eh_frame_hdr segment */
+#define PT_GNU_STACK 0x6474e551 /* Indicates stack executability */
+#define PT_GNU_RELRO 0x6474e552 /* Read-only after relocation */
+#define PT_LOSUNW 0x6ffffffa
+#define PT_SUNWBSS 0x6ffffffa /* Sun Specific segment */
+#define PT_SUNWSTACK 0x6ffffffb /* Stack segment */
+#define PT_HISUNW 0x6fffffff
+#define PT_HIOS 0x6fffffff /* End of OS-specific */
+#define PT_LOPROC 0x70000000 /* Start of processor-specific */
+#define PT_HIPROC 0x7fffffff /* End of processor-specific */
+
+/* Legal values for p_flags (segment flags). */
+
+#define PF_X (1 << 0) /* Segment is executable */
+#define PF_W (1 << 1) /* Segment is writable */
+#define PF_R (1 << 2) /* Segment is readable */
+#define PF_MASKOS 0x0ff00000 /* OS-specific */
+#define PF_MASKPROC 0xf0000000 /* Processor-specific */
+
+/* Legal values for note segment descriptor types for core files. */
+
+#define NT_PRSTATUS 1 /* Contains copy of prstatus struct */
+#define NT_PRFPREG 2 /* Contains copy of fpregset
+ struct. */
+#define NT_FPREGSET 2 /* Contains copy of fpregset struct */
+#define NT_PRPSINFO 3 /* Contains copy of prpsinfo struct */
+#define NT_PRXREG 4 /* Contains copy of prxregset struct */
+#define NT_TASKSTRUCT 4 /* Contains copy of task structure */
+#define NT_PLATFORM 5 /* String from sysinfo(SI_PLATFORM) */
+#define NT_AUXV 6 /* Contains copy of auxv array */
+#define NT_GWINDOWS 7 /* Contains copy of gwindows struct */
+#define NT_ASRS 8 /* Contains copy of asrset struct */
+#define NT_PSTATUS 10 /* Contains copy of pstatus struct */
+#define NT_PSINFO 13 /* Contains copy of psinfo struct */
+#define NT_PRCRED 14 /* Contains copy of prcred struct */
+#define NT_UTSNAME 15 /* Contains copy of utsname struct */
+#define NT_LWPSTATUS 16 /* Contains copy of lwpstatus struct */
+#define NT_LWPSINFO 17 /* Contains copy of lwpinfo struct */
+#define NT_PRFPXREG 20 /* Contains copy of fprxregset struct */
+#define NT_SIGINFO 0x53494749 /* Contains copy of siginfo_t,
+ size might increase */
+#define NT_FILE 0x46494c45 /* Contains information about mapped
+ files */
+#define NT_PRXFPREG 0x46e62b7f /* Contains copy of user_fxsr_struct */
+#define NT_PPC_VMX 0x100 /* PowerPC Altivec/VMX registers */
+#define NT_PPC_SPE 0x101 /* PowerPC SPE/EVR registers */
+#define NT_PPC_VSX 0x102 /* PowerPC VSX registers */
+#define NT_PPC_TAR 0x103 /* Target Address Register */
+#define NT_PPC_PPR 0x104 /* Program Priority Register */
+#define NT_PPC_DSCR 0x105 /* Data Stream Control Register */
+#define NT_PPC_EBB 0x106 /* Event Based Branch Registers */
+#define NT_PPC_PMU 0x107 /* Performance Monitor Registers */
+#define NT_PPC_TM_CGPR 0x108 /* TM checkpointed GPR Registers */
+#define NT_PPC_TM_CFPR 0x109 /* TM checkpointed FPR Registers */
+#define NT_PPC_TM_CVMX 0x10a /* TM checkpointed VMX Registers */
+#define NT_PPC_TM_CVSX 0x10b /* TM checkpointed VSX Registers */
+#define NT_PPC_TM_SPR 0x10c /* TM Special Purpose Registers */
+#define NT_PPC_TM_CTAR 0x10d /* TM checkpointed Target Address
+ Register */
+#define NT_PPC_TM_CPPR 0x10e /* TM checkpointed Program Priority
+ Register */
+#define NT_PPC_TM_CDSCR 0x10f /* TM checkpointed Data Stream Control
+ Register */
+#define NT_PPC_PKEY 0x110 /* Memory Protection Keys
+ registers. */
+#define NT_386_TLS 0x200 /* i386 TLS slots (struct user_desc) */
+#define NT_386_IOPERM 0x201 /* x86 io permission bitmap (1=deny) */
+#define NT_X86_XSTATE 0x202 /* x86 extended state using xsave */
+#define NT_S390_HIGH_GPRS 0x300 /* s390 upper register halves */
+#define NT_S390_TIMER 0x301 /* s390 timer register */
+#define NT_S390_TODCMP 0x302 /* s390 TOD clock comparator register */
+#define NT_S390_TODPREG 0x303 /* s390 TOD programmable register */
+#define NT_S390_CTRS 0x304 /* s390 control registers */
+#define NT_S390_PREFIX 0x305 /* s390 prefix register */
+#define NT_S390_LAST_BREAK 0x306 /* s390 breaking event address */
+#define NT_S390_SYSTEM_CALL 0x307 /* s390 system call restart data */
+#define NT_S390_TDB 0x308 /* s390 transaction diagnostic block */
+#define NT_S390_VXRS_LOW 0x309 /* s390 vector registers 0-15
+ upper half. */
+#define NT_S390_VXRS_HIGH 0x30a /* s390 vector registers 16-31. */
+#define NT_S390_GS_CB 0x30b /* s390 guarded storage registers. */
+#define NT_S390_GS_BC 0x30c /* s390 guarded storage
+ broadcast control block. */
+#define NT_S390_RI_CB 0x30d /* s390 runtime instrumentation. */
+#define NT_ARM_VFP 0x400 /* ARM VFP/NEON registers */
+#define NT_ARM_TLS 0x401 /* ARM TLS register */
+#define NT_ARM_HW_BREAK 0x402 /* ARM hardware breakpoint registers */
+#define NT_ARM_HW_WATCH 0x403 /* ARM hardware watchpoint registers */
+#define NT_ARM_SYSTEM_CALL 0x404 /* ARM system call number */
+#define NT_ARM_SVE 0x405 /* ARM Scalable Vector Extension
+ registers */
+#define NT_VMCOREDD 0x700 /* Vmcore Device Dump Note. */
+#define NT_MIPS_DSP 0x800 /* MIPS DSP ASE registers. */
+#define NT_MIPS_FP_MODE 0x801 /* MIPS floating-point mode. */
+
+/* Legal values for the note segment descriptor types for object files. */
+
+#define NT_VERSION 1 /* Contains a version string. */
+
+
+/* Dynamic section entry. */
+
+typedef struct
+{
+ Elf32_Sword d_tag; /* Dynamic entry type */
+ union
+ {
+ Elf32_Word d_val; /* Integer value */
+ Elf32_Addr d_ptr; /* Address value */
+ } d_un;
+} Elf32_Dyn;
+
+typedef struct
+{
+ Elf64_Sxword d_tag; /* Dynamic entry type */
+ union
+ {
+ Elf64_Xword d_val; /* Integer value */
+ Elf64_Addr d_ptr; /* Address value */
+ } d_un;
+} Elf64_Dyn;
+
+/* Legal values for d_tag (dynamic entry type). */
+
+#define DT_NULL 0 /* Marks end of dynamic section */
+#define DT_NEEDED 1 /* Name of needed library */
+#define DT_PLTRELSZ 2 /* Size in bytes of PLT relocs */
+#define DT_PLTGOT 3 /* Processor defined value */
+#define DT_HASH 4 /* Address of symbol hash table */
+#define DT_STRTAB 5 /* Address of string table */
+#define DT_SYMTAB 6 /* Address of symbol table */
+#define DT_RELA 7 /* Address of Rela relocs */
+#define DT_RELASZ 8 /* Total size of Rela relocs */
+#define DT_RELAENT 9 /* Size of one Rela reloc */
+#define DT_STRSZ 10 /* Size of string table */
+#define DT_SYMENT 11 /* Size of one symbol table entry */
+#define DT_INIT 12 /* Address of init function */
+#define DT_FINI 13 /* Address of termination function */
+#define DT_SONAME 14 /* Name of shared object */
+#define DT_RPATH 15 /* Library search path (deprecated) */
+#define DT_SYMBOLIC 16 /* Start symbol search here */
+#define DT_REL 17 /* Address of Rel relocs */
+#define DT_RELSZ 18 /* Total size of Rel relocs */
+#define DT_RELENT 19 /* Size of one Rel reloc */
+#define DT_PLTREL 20 /* Type of reloc in PLT */
+#define DT_DEBUG 21 /* For debugging; unspecified */
+#define DT_TEXTREL 22 /* Reloc might modify .text */
+#define DT_JMPREL 23 /* Address of PLT relocs */
+#define DT_BIND_NOW 24 /* Process relocations of object */
+#define DT_INIT_ARRAY 25 /* Array with addresses of init fct */
+#define DT_FINI_ARRAY 26 /* Array with addresses of fini fct */
+#define DT_INIT_ARRAYSZ 27 /* Size in bytes of DT_INIT_ARRAY */
+#define DT_FINI_ARRAYSZ 28 /* Size in bytes of DT_FINI_ARRAY */
+#define DT_RUNPATH 29 /* Library search path */
+#define DT_FLAGS 30 /* Flags for the object being loaded */
+#define DT_ENCODING 32 /* Start of encoded range */
+#define DT_PREINIT_ARRAY 32 /* Array with addresses of preinit fct*/
+#define DT_PREINIT_ARRAYSZ 33 /* size in bytes of DT_PREINIT_ARRAY */
+#define DT_SYMTAB_SHNDX 34 /* Address of SYMTAB_SHNDX section */
+#define DT_NUM 35 /* Number used */
+#define DT_LOOS 0x6000000d /* Start of OS-specific */
+#define DT_HIOS 0x6ffff000 /* End of OS-specific */
+#define DT_LOPROC 0x70000000 /* Start of processor-specific */
+#define DT_HIPROC 0x7fffffff /* End of processor-specific */
+#define DT_PROCNUM DT_MIPS_NUM /* Most used by any processor */
+
+/* DT_* entries which fall between DT_VALRNGHI & DT_VALRNGLO use the
+ Dyn.d_un.d_val field of the Elf*_Dyn structure. This follows Sun's
+ approach. */
+#define DT_VALRNGLO 0x6ffffd00
+#define DT_GNU_PRELINKED 0x6ffffdf5 /* Prelinking timestamp */
+#define DT_GNU_CONFLICTSZ 0x6ffffdf6 /* Size of conflict section */
+#define DT_GNU_LIBLISTSZ 0x6ffffdf7 /* Size of library list */
+#define DT_CHECKSUM 0x6ffffdf8
+#define DT_PLTPADSZ 0x6ffffdf9
+#define DT_MOVEENT 0x6ffffdfa
+#define DT_MOVESZ 0x6ffffdfb
+#define DT_FEATURE_1 0x6ffffdfc /* Feature selection (DTF_*). */
+#define DT_POSFLAG_1 0x6ffffdfd /* Flags for DT_* entries, effecting
+ the following DT_* entry. */
+#define DT_SYMINSZ 0x6ffffdfe /* Size of syminfo table (in bytes) */
+#define DT_SYMINENT 0x6ffffdff /* Entry size of syminfo */
+#define DT_VALRNGHI 0x6ffffdff
+#define DT_VALTAGIDX(tag) (DT_VALRNGHI - (tag)) /* Reverse order! */
+#define DT_VALNUM 12
+
+/* DT_* entries which fall between DT_ADDRRNGHI & DT_ADDRRNGLO use the
+ Dyn.d_un.d_ptr field of the Elf*_Dyn structure.
+
+ If any adjustment is made to the ELF object after it has been
+ built these entries will need to be adjusted. */
+#define DT_ADDRRNGLO 0x6ffffe00
+#define DT_GNU_HASH 0x6ffffef5 /* GNU-style hash table. */
+#define DT_TLSDESC_PLT 0x6ffffef6
+#define DT_TLSDESC_GOT 0x6ffffef7
+#define DT_GNU_CONFLICT 0x6ffffef8 /* Start of conflict section */
+#define DT_GNU_LIBLIST 0x6ffffef9 /* Library list */
+#define DT_CONFIG 0x6ffffefa /* Configuration information. */
+#define DT_DEPAUDIT 0x6ffffefb /* Dependency auditing. */
+#define DT_AUDIT 0x6ffffefc /* Object auditing. */
+#define DT_PLTPAD 0x6ffffefd /* PLT padding. */
+#define DT_MOVETAB 0x6ffffefe /* Move table. */
+#define DT_SYMINFO 0x6ffffeff /* Syminfo table. */
+#define DT_ADDRRNGHI 0x6ffffeff
+#define DT_ADDRTAGIDX(tag) (DT_ADDRRNGHI - (tag)) /* Reverse order! */
+#define DT_ADDRNUM 11
+
+/* The versioning entry types. The next are defined as part of the
+ GNU extension. */
+#define DT_VERSYM 0x6ffffff0
+
+#define DT_RELACOUNT 0x6ffffff9
+#define DT_RELCOUNT 0x6ffffffa
+
+/* These were chosen by Sun. */
+#define DT_FLAGS_1 0x6ffffffb /* State flags, see DF_1_* below. */
+#define DT_VERDEF 0x6ffffffc /* Address of version definition
+ table */
+#define DT_VERDEFNUM 0x6ffffffd /* Number of version definitions */
+#define DT_VERNEED 0x6ffffffe /* Address of table with needed
+ versions */
+#define DT_VERNEEDNUM 0x6fffffff /* Number of needed versions */
+#define DT_VERSIONTAGIDX(tag) (DT_VERNEEDNUM - (tag)) /* Reverse order! */
+#define DT_VERSIONTAGNUM 16
+
+/* Sun added these machine-independent extensions in the "processor-specific"
+ range. Be compatible. */
+#define DT_AUXILIARY 0x7ffffffd /* Shared object to load before self */
+#define DT_FILTER 0x7fffffff /* Shared object to get values from */
+#define DT_EXTRATAGIDX(tag) ((Elf32_Word)-((Elf32_Sword) (tag) <<1>>1)-1)
+#define DT_EXTRANUM 3
+
+/* Values of `d_un.d_val' in the DT_FLAGS entry. */
+#define DF_ORIGIN 0x00000001 /* Object may use DF_ORIGIN */
+#define DF_SYMBOLIC 0x00000002 /* Symbol resolutions starts here */
+#define DF_TEXTREL 0x00000004 /* Object contains text relocations */
+#define DF_BIND_NOW 0x00000008 /* No lazy binding for this object */
+#define DF_STATIC_TLS 0x00000010 /* Module uses the static TLS model */
+
+/* State flags selectable in the `d_un.d_val' element of the DT_FLAGS_1
+ entry in the dynamic section. */
+#define DF_1_NOW 0x00000001 /* Set RTLD_NOW for this object. */
+#define DF_1_GLOBAL 0x00000002 /* Set RTLD_GLOBAL for this object. */
+#define DF_1_GROUP 0x00000004 /* Set RTLD_GROUP for this object. */
+#define DF_1_NODELETE 0x00000008 /* Set RTLD_NODELETE for this object.*/
+#define DF_1_LOADFLTR 0x00000010 /* Trigger filtee loading at runtime.*/
+#define DF_1_INITFIRST 0x00000020 /* Set RTLD_INITFIRST for this object*/
+#define DF_1_NOOPEN 0x00000040 /* Set RTLD_NOOPEN for this object. */
+#define DF_1_ORIGIN 0x00000080 /* $ORIGIN must be handled. */
+#define DF_1_DIRECT 0x00000100 /* Direct binding enabled. */
+#define DF_1_TRANS 0x00000200
+#define DF_1_INTERPOSE 0x00000400 /* Object is used to interpose. */
+#define DF_1_NODEFLIB 0x00000800 /* Ignore default lib search path. */
+#define DF_1_NODUMP 0x00001000 /* Object can't be dldump'ed. */
+#define DF_1_CONFALT 0x00002000 /* Configuration alternative created.*/
+#define DF_1_ENDFILTEE 0x00004000 /* Filtee terminates filters search. */
+#define DF_1_DISPRELDNE 0x00008000 /* Disp reloc applied at build time. */
+#define DF_1_DISPRELPND 0x00010000 /* Disp reloc applied at run-time. */
+#define DF_1_NODIRECT 0x00020000 /* Object has no-direct binding. */
+#define DF_1_IGNMULDEF 0x00040000
+#define DF_1_NOKSYMS 0x00080000
+#define DF_1_NOHDR 0x00100000
+#define DF_1_EDITED 0x00200000 /* Object is modified after built. */
+#define DF_1_NORELOC 0x00400000
+#define DF_1_SYMINTPOSE 0x00800000 /* Object has individual interposers. */
+#define DF_1_GLOBAUDIT 0x01000000 /* Global auditing required. */
+#define DF_1_SINGLETON 0x02000000 /* Singleton symbols are used. */
+#define DF_1_STUB 0x04000000
+#define DF_1_PIE 0x08000000
+
+/* Flags for the feature selection in DT_FEATURE_1. */
+#define DTF_1_PARINIT 0x00000001
+#define DTF_1_CONFEXP 0x00000002
+
+/* Flags in the DT_POSFLAG_1 entry effecting only the next DT_* entry. */
+#define DF_P1_LAZYLOAD 0x00000001 /* Lazyload following object. */
+#define DF_P1_GROUPPERM 0x00000002 /* Symbols from next object are not
+ generally available. */
+
+/* Version definition sections. */
+
+typedef struct
+{
+ Elf32_Half vd_version; /* Version revision */
+ Elf32_Half vd_flags; /* Version information */
+ Elf32_Half vd_ndx; /* Version Index */
+ Elf32_Half vd_cnt; /* Number of associated aux entries */
+ Elf32_Word vd_hash; /* Version name hash value */
+ Elf32_Word vd_aux; /* Offset in bytes to verdaux array */
+ Elf32_Word vd_next; /* Offset in bytes to next verdef
+ entry */
+} Elf32_Verdef;
+
+typedef struct
+{
+ Elf64_Half vd_version; /* Version revision */
+ Elf64_Half vd_flags; /* Version information */
+ Elf64_Half vd_ndx; /* Version Index */
+ Elf64_Half vd_cnt; /* Number of associated aux entries */
+ Elf64_Word vd_hash; /* Version name hash value */
+ Elf64_Word vd_aux; /* Offset in bytes to verdaux array */
+ Elf64_Word vd_next; /* Offset in bytes to next verdef
+ entry */
+} Elf64_Verdef;
+
+
+/* Legal values for vd_version (version revision). */
+#define VER_DEF_NONE 0 /* No version */
+#define VER_DEF_CURRENT 1 /* Current version */
+#define VER_DEF_NUM 2 /* Given version number */
+
+/* Legal values for vd_flags (version information flags). */
+#define VER_FLG_BASE 0x1 /* Version definition of file itself */
+#define VER_FLG_WEAK 0x2 /* Weak version identifier */
+
+/* Versym symbol index values. */
+#define VER_NDX_LOCAL 0 /* Symbol is local. */
+#define VER_NDX_GLOBAL 1 /* Symbol is global. */
+#define VER_NDX_LORESERVE 0xff00 /* Beginning of reserved entries. */
+#define VER_NDX_ELIMINATE 0xff01 /* Symbol is to be eliminated. */
+
+/* Auxialiary version information. */
+
+typedef struct
+{
+ Elf32_Word vda_name; /* Version or dependency names */
+ Elf32_Word vda_next; /* Offset in bytes to next verdaux
+ entry */
+} Elf32_Verdaux;
+
+typedef struct
+{
+ Elf64_Word vda_name; /* Version or dependency names */
+ Elf64_Word vda_next; /* Offset in bytes to next verdaux
+ entry */
+} Elf64_Verdaux;
+
+
+/* Version dependency section. */
+
+typedef struct
+{
+ Elf32_Half vn_version; /* Version of structure */
+ Elf32_Half vn_cnt; /* Number of associated aux entries */
+ Elf32_Word vn_file; /* Offset of filename for this
+ dependency */
+ Elf32_Word vn_aux; /* Offset in bytes to vernaux array */
+ Elf32_Word vn_next; /* Offset in bytes to next verneed
+ entry */
+} Elf32_Verneed;
+
+typedef struct
+{
+ Elf64_Half vn_version; /* Version of structure */
+ Elf64_Half vn_cnt; /* Number of associated aux entries */
+ Elf64_Word vn_file; /* Offset of filename for this
+ dependency */
+ Elf64_Word vn_aux; /* Offset in bytes to vernaux array */
+ Elf64_Word vn_next; /* Offset in bytes to next verneed
+ entry */
+} Elf64_Verneed;
+
+
+/* Legal values for vn_version (version revision). */
+#define VER_NEED_NONE 0 /* No version */
+#define VER_NEED_CURRENT 1 /* Current version */
+#define VER_NEED_NUM 2 /* Given version number */
+
+/* Auxiliary needed version information. */
+
+typedef struct
+{
+ Elf32_Word vna_hash; /* Hash value of dependency name */
+ Elf32_Half vna_flags; /* Dependency specific information */
+ Elf32_Half vna_other; /* Unused */
+ Elf32_Word vna_name; /* Dependency name string offset */
+ Elf32_Word vna_next; /* Offset in bytes to next vernaux
+ entry */
+} Elf32_Vernaux;
+
+typedef struct
+{
+ Elf64_Word vna_hash; /* Hash value of dependency name */
+ Elf64_Half vna_flags; /* Dependency specific information */
+ Elf64_Half vna_other; /* Unused */
+ Elf64_Word vna_name; /* Dependency name string offset */
+ Elf64_Word vna_next; /* Offset in bytes to next vernaux
+ entry */
+} Elf64_Vernaux;
+
+
+/* Legal values for vna_flags. */
+#define VER_FLG_WEAK 0x2 /* Weak version identifier */
+
+
+/* Auxiliary vector. */
+
+/* This vector is normally only used by the program interpreter. The
+ usual definition in an ABI supplement uses the name auxv_t. The
+ vector is not usually defined in a standard file, but it
+ can't hurt. We rename it to avoid conflicts. The sizes of these
+ types are an arrangement between the exec server and the program
+ interpreter, so we don't fully specify them here. */
+
+typedef struct
+{
+ uint32_t a_type; /* Entry type */
+ union
+ {
+ uint32_t a_val; /* Integer value */
+ /* We use to have pointer elements added here. We cannot do that,
+ though, since it does not work when using 32-bit definitions
+ on 64-bit platforms and vice versa. */
+ } a_un;
+} Elf32_auxv_t;
+
+typedef struct
+{
+ uint64_t a_type; /* Entry type */
+ union
+ {
+ uint64_t a_val; /* Integer value */
+ /* We use to have pointer elements added here. We cannot do that,
+ though, since it does not work when using 32-bit definitions
+ on 64-bit platforms and vice versa. */
+ } a_un;
+} Elf64_auxv_t;
+
+/* Legal values for a_type (entry type). */
+
+#define AT_NULL 0 /* End of vector */
+#define AT_IGNORE 1 /* Entry should be ignored */
+#define AT_EXECFD 2 /* File descriptor of program */
+#define AT_PHDR 3 /* Program headers for program */
+#define AT_PHENT 4 /* Size of program header entry */
+#define AT_PHNUM 5 /* Number of program headers */
+#define AT_PAGESZ 6 /* System page size */
+#define AT_BASE 7 /* Base address of interpreter */
+#define AT_FLAGS 8 /* Flags */
+#define AT_ENTRY 9 /* Entry point of program */
+#define AT_NOTELF 10 /* Program is not ELF */
+#define AT_UID 11 /* Real uid */
+#define AT_EUID 12 /* Effective uid */
+#define AT_GID 13 /* Real gid */
+#define AT_EGID 14 /* Effective gid */
+#define AT_CLKTCK 17 /* Frequency of times() */
+
+/* Some more special a_type values describing the hardware. */
+#define AT_PLATFORM 15 /* String identifying platform. */
+#define AT_HWCAP 16 /* Machine-dependent hints about
+ processor capabilities. */
+
+/* This entry gives some information about the FPU initialization
+ performed by the kernel. */
+#define AT_FPUCW 18 /* Used FPU control word. */
+
+/* Cache block sizes. */
+#define AT_DCACHEBSIZE 19 /* Data cache block size. */
+#define AT_ICACHEBSIZE 20 /* Instruction cache block size. */
+#define AT_UCACHEBSIZE 21 /* Unified cache block size. */
+
+/* A special ignored value for PPC, used by the kernel to control the
+ interpretation of the AUXV. Must be > 16. */
+#define AT_IGNOREPPC 22 /* Entry should be ignored. */
+
+#define AT_SECURE 23 /* Boolean, was exec setuid-like? */
+
+#define AT_BASE_PLATFORM 24 /* String identifying real platforms.*/
+
+#define AT_RANDOM 25 /* Address of 16 random bytes. */
+
+#define AT_HWCAP2 26 /* More machine-dependent hints about
+ processor capabilities. */
+
+#define AT_EXECFN 31 /* Filename of executable. */
+
+/* Pointer to the global system page used for system calls and other
+ nice things. */
+#define AT_SYSINFO 32
+#define AT_SYSINFO_EHDR 33
+
+/* Shapes of the caches. Bits 0-3 contains associativity; bits 4-7 contains
+ log2 of line size; mask those to get cache size. */
+#define AT_L1I_CACHESHAPE 34
+#define AT_L1D_CACHESHAPE 35
+#define AT_L2_CACHESHAPE 36
+#define AT_L3_CACHESHAPE 37
+
+/* Shapes of the caches, with more room to describe them.
+ *GEOMETRY are comprised of cache line size in bytes in the bottom 16 bits
+ and the cache associativity in the next 16 bits. */
+#define AT_L1I_CACHESIZE 40
+#define AT_L1I_CACHEGEOMETRY 41
+#define AT_L1D_CACHESIZE 42
+#define AT_L1D_CACHEGEOMETRY 43
+#define AT_L2_CACHESIZE 44
+#define AT_L2_CACHEGEOMETRY 45
+#define AT_L3_CACHESIZE 46
+#define AT_L3_CACHEGEOMETRY 47
+
+#define AT_MINSIGSTKSZ 51 /* Stack needed for signal delivery
+ (AArch64). */
+
+/* Note section contents. Each entry in the note section begins with
+ a header of a fixed form. */
+
+typedef struct
+{
+ Elf32_Word n_namesz; /* Length of the note's name. */
+ Elf32_Word n_descsz; /* Length of the note's descriptor. */
+ Elf32_Word n_type; /* Type of the note. */
+} Elf32_Nhdr;
+
+typedef struct
+{
+ Elf64_Word n_namesz; /* Length of the note's name. */
+ Elf64_Word n_descsz; /* Length of the note's descriptor. */
+ Elf64_Word n_type; /* Type of the note. */
+} Elf64_Nhdr;
+
+/* Known names of notes. */
+
+/* Solaris entries in the note section have this name. */
+#define ELF_NOTE_SOLARIS "SUNW Solaris"
+
+/* Note entries for GNU systems have this name. */
+#define ELF_NOTE_GNU "GNU"
+
+
+/* Defined types of notes for Solaris. */
+
+/* Value of descriptor (one word) is desired pagesize for the binary. */
+#define ELF_NOTE_PAGESIZE_HINT 1
+
+
+/* Defined note types for GNU systems. */
+
+/* ABI information. The descriptor consists of words:
+ word 0: OS descriptor
+ word 1: major version of the ABI
+ word 2: minor version of the ABI
+ word 3: subminor version of the ABI
+*/
+#define NT_GNU_ABI_TAG 1
+#define ELF_NOTE_ABI NT_GNU_ABI_TAG /* Old name. */
+
+/* Known OSes. These values can appear in word 0 of an
+ NT_GNU_ABI_TAG note section entry. */
+#define ELF_NOTE_OS_LINUX 0
+#define ELF_NOTE_OS_GNU 1
+#define ELF_NOTE_OS_SOLARIS2 2
+#define ELF_NOTE_OS_FREEBSD 3
+
+/* Synthetic hwcap information. The descriptor begins with two words:
+ word 0: number of entries
+ word 1: bitmask of enabled entries
+ Then follow variable-length entries, one byte followed by a
+ '\0'-terminated hwcap name string. The byte gives the bit
+ number to test if enabled, (1U << bit) & bitmask. */
+#define NT_GNU_HWCAP 2
+
+/* Build ID bits as generated by ld --build-id.
+ The descriptor consists of any nonzero number of bytes. */
+#define NT_GNU_BUILD_ID 3
+
+/* Version note generated by GNU gold containing a version string. */
+#define NT_GNU_GOLD_VERSION 4
+
+/* Program property. */
+#define NT_GNU_PROPERTY_TYPE_0 5
+
+/* Note section name of program property. */
+#define NOTE_GNU_PROPERTY_SECTION_NAME ".note.gnu.property"
+
+/* Values used in GNU .note.gnu.property notes (NT_GNU_PROPERTY_TYPE_0). */
+
+/* Stack size. */
+#define GNU_PROPERTY_STACK_SIZE 1
+/* No copy relocation on protected data symbol. */
+#define GNU_PROPERTY_NO_COPY_ON_PROTECTED 2
+
+/* Processor-specific semantics, lo */
+#define GNU_PROPERTY_LOPROC 0xc0000000
+/* Processor-specific semantics, hi */
+#define GNU_PROPERTY_HIPROC 0xdfffffff
+/* Application-specific semantics, lo */
+#define GNU_PROPERTY_LOUSER 0xe0000000
+/* Application-specific semantics, hi */
+#define GNU_PROPERTY_HIUSER 0xffffffff
+
+/* The x86 instruction sets indicated by the corresponding bits are
+ used in program. Their support in the hardware is optional. */
+#define GNU_PROPERTY_X86_ISA_1_USED 0xc0000000
+/* The x86 instruction sets indicated by the corresponding bits are
+ used in program and they must be supported by the hardware. */
+#define GNU_PROPERTY_X86_ISA_1_NEEDED 0xc0000001
+/* X86 processor-specific features used in program. */
+#define GNU_PROPERTY_X86_FEATURE_1_AND 0xc0000002
+
+#define GNU_PROPERTY_X86_ISA_1_486 (1U << 0)
+#define GNU_PROPERTY_X86_ISA_1_586 (1U << 1)
+#define GNU_PROPERTY_X86_ISA_1_686 (1U << 2)
+#define GNU_PROPERTY_X86_ISA_1_SSE (1U << 3)
+#define GNU_PROPERTY_X86_ISA_1_SSE2 (1U << 4)
+#define GNU_PROPERTY_X86_ISA_1_SSE3 (1U << 5)
+#define GNU_PROPERTY_X86_ISA_1_SSSE3 (1U << 6)
+#define GNU_PROPERTY_X86_ISA_1_SSE4_1 (1U << 7)
+#define GNU_PROPERTY_X86_ISA_1_SSE4_2 (1U << 8)
+#define GNU_PROPERTY_X86_ISA_1_AVX (1U << 9)
+#define GNU_PROPERTY_X86_ISA_1_AVX2 (1U << 10)
+#define GNU_PROPERTY_X86_ISA_1_AVX512F (1U << 11)
+#define GNU_PROPERTY_X86_ISA_1_AVX512CD (1U << 12)
+#define GNU_PROPERTY_X86_ISA_1_AVX512ER (1U << 13)
+#define GNU_PROPERTY_X86_ISA_1_AVX512PF (1U << 14)
+#define GNU_PROPERTY_X86_ISA_1_AVX512VL (1U << 15)
+#define GNU_PROPERTY_X86_ISA_1_AVX512DQ (1U << 16)
+#define GNU_PROPERTY_X86_ISA_1_AVX512BW (1U << 17)
+
+/* This indicates that all executable sections are compatible with
+ IBT. */
+#define GNU_PROPERTY_X86_FEATURE_1_IBT (1U << 0)
+/* This indicates that all executable sections are compatible with
+ SHSTK. */
+#define GNU_PROPERTY_X86_FEATURE_1_SHSTK (1U << 1)
+
+/* Move records. */
+typedef struct
+{
+ Elf32_Xword m_value; /* Symbol value. */
+ Elf32_Word m_info; /* Size and index. */
+ Elf32_Word m_poffset; /* Symbol offset. */
+ Elf32_Half m_repeat; /* Repeat count. */
+ Elf32_Half m_stride; /* Stride info. */
+} Elf32_Move;
+
+typedef struct
+{
+ Elf64_Xword m_value; /* Symbol value. */
+ Elf64_Xword m_info; /* Size and index. */
+ Elf64_Xword m_poffset; /* Symbol offset. */
+ Elf64_Half m_repeat; /* Repeat count. */
+ Elf64_Half m_stride; /* Stride info. */
+} Elf64_Move;
+
+/* Macro to construct move records. */
+#define ELF32_M_SYM(info) ((info) >> 8)
+#define ELF32_M_SIZE(info) ((unsigned char) (info))
+#define ELF32_M_INFO(sym, size) (((sym) << 8) + (unsigned char) (size))
+
+#define ELF64_M_SYM(info) ELF32_M_SYM (info)
+#define ELF64_M_SIZE(info) ELF32_M_SIZE (info)
+#define ELF64_M_INFO(sym, size) ELF32_M_INFO (sym, size)
+
+
+/* Motorola 68k specific definitions. */
+
+/* Values for Elf32_Ehdr.e_flags. */
+#define EF_CPU32 0x00810000
+
+/* m68k relocs. */
+
+#define R_68K_NONE 0 /* No reloc */
+#define R_68K_32 1 /* Direct 32 bit */
+#define R_68K_16 2 /* Direct 16 bit */
+#define R_68K_8 3 /* Direct 8 bit */
+#define R_68K_PC32 4 /* PC relative 32 bit */
+#define R_68K_PC16 5 /* PC relative 16 bit */
+#define R_68K_PC8 6 /* PC relative 8 bit */
+#define R_68K_GOT32 7 /* 32 bit PC relative GOT entry */
+#define R_68K_GOT16 8 /* 16 bit PC relative GOT entry */
+#define R_68K_GOT8 9 /* 8 bit PC relative GOT entry */
+#define R_68K_GOT32O 10 /* 32 bit GOT offset */
+#define R_68K_GOT16O 11 /* 16 bit GOT offset */
+#define R_68K_GOT8O 12 /* 8 bit GOT offset */
+#define R_68K_PLT32 13 /* 32 bit PC relative PLT address */
+#define R_68K_PLT16 14 /* 16 bit PC relative PLT address */
+#define R_68K_PLT8 15 /* 8 bit PC relative PLT address */
+#define R_68K_PLT32O 16 /* 32 bit PLT offset */
+#define R_68K_PLT16O 17 /* 16 bit PLT offset */
+#define R_68K_PLT8O 18 /* 8 bit PLT offset */
+#define R_68K_COPY 19 /* Copy symbol at runtime */
+#define R_68K_GLOB_DAT 20 /* Create GOT entry */
+#define R_68K_JMP_SLOT 21 /* Create PLT entry */
+#define R_68K_RELATIVE 22 /* Adjust by program base */
+#define R_68K_TLS_GD32 25 /* 32 bit GOT offset for GD */
+#define R_68K_TLS_GD16 26 /* 16 bit GOT offset for GD */
+#define R_68K_TLS_GD8 27 /* 8 bit GOT offset for GD */
+#define R_68K_TLS_LDM32 28 /* 32 bit GOT offset for LDM */
+#define R_68K_TLS_LDM16 29 /* 16 bit GOT offset for LDM */
+#define R_68K_TLS_LDM8 30 /* 8 bit GOT offset for LDM */
+#define R_68K_TLS_LDO32 31 /* 32 bit module-relative offset */
+#define R_68K_TLS_LDO16 32 /* 16 bit module-relative offset */
+#define R_68K_TLS_LDO8 33 /* 8 bit module-relative offset */
+#define R_68K_TLS_IE32 34 /* 32 bit GOT offset for IE */
+#define R_68K_TLS_IE16 35 /* 16 bit GOT offset for IE */
+#define R_68K_TLS_IE8 36 /* 8 bit GOT offset for IE */
+#define R_68K_TLS_LE32 37 /* 32 bit offset relative to
+ static TLS block */
+#define R_68K_TLS_LE16 38 /* 16 bit offset relative to
+ static TLS block */
+#define R_68K_TLS_LE8 39 /* 8 bit offset relative to
+ static TLS block */
+#define R_68K_TLS_DTPMOD32 40 /* 32 bit module number */
+#define R_68K_TLS_DTPREL32 41 /* 32 bit module-relative offset */
+#define R_68K_TLS_TPREL32 42 /* 32 bit TP-relative offset */
+/* Keep this the last entry. */
+#define R_68K_NUM 43
+
+/* Intel 80386 specific definitions. */
+
+/* i386 relocs. */
+
+#define R_386_NONE 0 /* No reloc */
+#define R_386_32 1 /* Direct 32 bit */
+#define R_386_PC32 2 /* PC relative 32 bit */
+#define R_386_GOT32 3 /* 32 bit GOT entry */
+#define R_386_PLT32 4 /* 32 bit PLT address */
+#define R_386_COPY 5 /* Copy symbol at runtime */
+#define R_386_GLOB_DAT 6 /* Create GOT entry */
+#define R_386_JMP_SLOT 7 /* Create PLT entry */
+#define R_386_RELATIVE 8 /* Adjust by program base */
+#define R_386_GOTOFF 9 /* 32 bit offset to GOT */
+#define R_386_GOTPC 10 /* 32 bit PC relative offset to GOT */
+#define R_386_32PLT 11
+#define R_386_TLS_TPOFF 14 /* Offset in static TLS block */
+#define R_386_TLS_IE 15 /* Address of GOT entry for static TLS
+ block offset */
+#define R_386_TLS_GOTIE 16 /* GOT entry for static TLS block
+ offset */
+#define R_386_TLS_LE 17 /* Offset relative to static TLS
+ block */
+#define R_386_TLS_GD 18 /* Direct 32 bit for GNU version of
+ general dynamic thread local data */
+#define R_386_TLS_LDM 19 /* Direct 32 bit for GNU version of
+ local dynamic thread local data
+ in LE code */
+#define R_386_16 20
+#define R_386_PC16 21
+#define R_386_8 22
+#define R_386_PC8 23
+#define R_386_TLS_GD_32 24 /* Direct 32 bit for general dynamic
+ thread local data */
+#define R_386_TLS_GD_PUSH 25 /* Tag for pushl in GD TLS code */
+#define R_386_TLS_GD_CALL 26 /* Relocation for call to
+ __tls_get_addr() */
+#define R_386_TLS_GD_POP 27 /* Tag for popl in GD TLS code */
+#define R_386_TLS_LDM_32 28 /* Direct 32 bit for local dynamic
+ thread local data in LE code */
+#define R_386_TLS_LDM_PUSH 29 /* Tag for pushl in LDM TLS code */
+#define R_386_TLS_LDM_CALL 30 /* Relocation for call to
+ __tls_get_addr() in LDM code */
+#define R_386_TLS_LDM_POP 31 /* Tag for popl in LDM TLS code */
+#define R_386_TLS_LDO_32 32 /* Offset relative to TLS block */
+#define R_386_TLS_IE_32 33 /* GOT entry for negated static TLS
+ block offset */
+#define R_386_TLS_LE_32 34 /* Negated offset relative to static
+ TLS block */
+#define R_386_TLS_DTPMOD32 35 /* ID of module containing symbol */
+#define R_386_TLS_DTPOFF32 36 /* Offset in TLS block */
+#define R_386_TLS_TPOFF32 37 /* Negated offset in static TLS block */
+#define R_386_SIZE32 38 /* 32-bit symbol size */
+#define R_386_TLS_GOTDESC 39 /* GOT offset for TLS descriptor. */
+#define R_386_TLS_DESC_CALL 40 /* Marker of call through TLS
+ descriptor for
+ relaxation. */
+#define R_386_TLS_DESC 41 /* TLS descriptor containing
+ pointer to code and to
+ argument, returning the TLS
+ offset for the symbol. */
+#define R_386_IRELATIVE 42 /* Adjust indirectly by program base */
+#define R_386_GOT32X 43 /* Load from 32 bit GOT entry,
+ relaxable. */
+/* Keep this the last entry. */
+#define R_386_NUM 44
+
+/* SUN SPARC specific definitions. */
+
+/* Legal values for ST_TYPE subfield of st_info (symbol type). */
+
+#define STT_SPARC_REGISTER 13 /* Global register reserved to app. */
+
+/* Values for Elf64_Ehdr.e_flags. */
+
+#define EF_SPARCV9_MM 3
+#define EF_SPARCV9_TSO 0
+#define EF_SPARCV9_PSO 1
+#define EF_SPARCV9_RMO 2
+#define EF_SPARC_LEDATA 0x800000 /* little endian data */
+#define EF_SPARC_EXT_MASK 0xFFFF00
+#define EF_SPARC_32PLUS 0x000100 /* generic V8+ features */
+#define EF_SPARC_SUN_US1 0x000200 /* Sun UltraSPARC1 extensions */
+#define EF_SPARC_HAL_R1 0x000400 /* HAL R1 extensions */
+#define EF_SPARC_SUN_US3 0x000800 /* Sun UltraSPARCIII extensions */
+
+/* SPARC relocs. */
+
+#define R_SPARC_NONE 0 /* No reloc */
+#define R_SPARC_8 1 /* Direct 8 bit */
+#define R_SPARC_16 2 /* Direct 16 bit */
+#define R_SPARC_32 3 /* Direct 32 bit */
+#define R_SPARC_DISP8 4 /* PC relative 8 bit */
+#define R_SPARC_DISP16 5 /* PC relative 16 bit */
+#define R_SPARC_DISP32 6 /* PC relative 32 bit */
+#define R_SPARC_WDISP30 7 /* PC relative 30 bit shifted */
+#define R_SPARC_WDISP22 8 /* PC relative 22 bit shifted */
+#define R_SPARC_HI22 9 /* High 22 bit */
+#define R_SPARC_22 10 /* Direct 22 bit */
+#define R_SPARC_13 11 /* Direct 13 bit */
+#define R_SPARC_LO10 12 /* Truncated 10 bit */
+#define R_SPARC_GOT10 13 /* Truncated 10 bit GOT entry */
+#define R_SPARC_GOT13 14 /* 13 bit GOT entry */
+#define R_SPARC_GOT22 15 /* 22 bit GOT entry shifted */
+#define R_SPARC_PC10 16 /* PC relative 10 bit truncated */
+#define R_SPARC_PC22 17 /* PC relative 22 bit shifted */
+#define R_SPARC_WPLT30 18 /* 30 bit PC relative PLT address */
+#define R_SPARC_COPY 19 /* Copy symbol at runtime */
+#define R_SPARC_GLOB_DAT 20 /* Create GOT entry */
+#define R_SPARC_JMP_SLOT 21 /* Create PLT entry */
+#define R_SPARC_RELATIVE 22 /* Adjust by program base */
+#define R_SPARC_UA32 23 /* Direct 32 bit unaligned */
+
+/* Additional Sparc64 relocs. */
+
+#define R_SPARC_PLT32 24 /* Direct 32 bit ref to PLT entry */
+#define R_SPARC_HIPLT22 25 /* High 22 bit PLT entry */
+#define R_SPARC_LOPLT10 26 /* Truncated 10 bit PLT entry */
+#define R_SPARC_PCPLT32 27 /* PC rel 32 bit ref to PLT entry */
+#define R_SPARC_PCPLT22 28 /* PC rel high 22 bit PLT entry */
+#define R_SPARC_PCPLT10 29 /* PC rel trunc 10 bit PLT entry */
+#define R_SPARC_10 30 /* Direct 10 bit */
+#define R_SPARC_11 31 /* Direct 11 bit */
+#define R_SPARC_64 32 /* Direct 64 bit */
+#define R_SPARC_OLO10 33 /* 10bit with secondary 13bit addend */
+#define R_SPARC_HH22 34 /* Top 22 bits of direct 64 bit */
+#define R_SPARC_HM10 35 /* High middle 10 bits of ... */
+#define R_SPARC_LM22 36 /* Low middle 22 bits of ... */
+#define R_SPARC_PC_HH22 37 /* Top 22 bits of pc rel 64 bit */
+#define R_SPARC_PC_HM10 38 /* High middle 10 bit of ... */
+#define R_SPARC_PC_LM22 39 /* Low miggle 22 bits of ... */
+#define R_SPARC_WDISP16 40 /* PC relative 16 bit shifted */
+#define R_SPARC_WDISP19 41 /* PC relative 19 bit shifted */
+#define R_SPARC_GLOB_JMP 42 /* was part of v9 ABI but was removed */
+#define R_SPARC_7 43 /* Direct 7 bit */
+#define R_SPARC_5 44 /* Direct 5 bit */
+#define R_SPARC_6 45 /* Direct 6 bit */
+#define R_SPARC_DISP64 46 /* PC relative 64 bit */
+#define R_SPARC_PLT64 47 /* Direct 64 bit ref to PLT entry */
+#define R_SPARC_HIX22 48 /* High 22 bit complemented */
+#define R_SPARC_LOX10 49 /* Truncated 11 bit complemented */
+#define R_SPARC_H44 50 /* Direct high 12 of 44 bit */
+#define R_SPARC_M44 51 /* Direct mid 22 of 44 bit */
+#define R_SPARC_L44 52 /* Direct low 10 of 44 bit */
+#define R_SPARC_REGISTER 53 /* Global register usage */
+#define R_SPARC_UA64 54 /* Direct 64 bit unaligned */
+#define R_SPARC_UA16 55 /* Direct 16 bit unaligned */
+#define R_SPARC_TLS_GD_HI22 56
+#define R_SPARC_TLS_GD_LO10 57
+#define R_SPARC_TLS_GD_ADD 58
+#define R_SPARC_TLS_GD_CALL 59
+#define R_SPARC_TLS_LDM_HI22 60
+#define R_SPARC_TLS_LDM_LO10 61
+#define R_SPARC_TLS_LDM_ADD 62
+#define R_SPARC_TLS_LDM_CALL 63
+#define R_SPARC_TLS_LDO_HIX22 64
+#define R_SPARC_TLS_LDO_LOX10 65
+#define R_SPARC_TLS_LDO_ADD 66
+#define R_SPARC_TLS_IE_HI22 67
+#define R_SPARC_TLS_IE_LO10 68
+#define R_SPARC_TLS_IE_LD 69
+#define R_SPARC_TLS_IE_LDX 70
+#define R_SPARC_TLS_IE_ADD 71
+#define R_SPARC_TLS_LE_HIX22 72
+#define R_SPARC_TLS_LE_LOX10 73
+#define R_SPARC_TLS_DTPMOD32 74
+#define R_SPARC_TLS_DTPMOD64 75
+#define R_SPARC_TLS_DTPOFF32 76
+#define R_SPARC_TLS_DTPOFF64 77
+#define R_SPARC_TLS_TPOFF32 78
+#define R_SPARC_TLS_TPOFF64 79
+#define R_SPARC_GOTDATA_HIX22 80
+#define R_SPARC_GOTDATA_LOX10 81
+#define R_SPARC_GOTDATA_OP_HIX22 82
+#define R_SPARC_GOTDATA_OP_LOX10 83
+#define R_SPARC_GOTDATA_OP 84
+#define R_SPARC_H34 85
+#define R_SPARC_SIZE32 86
+#define R_SPARC_SIZE64 87
+#define R_SPARC_WDISP10 88
+#define R_SPARC_JMP_IREL 248
+#define R_SPARC_IRELATIVE 249
+#define R_SPARC_GNU_VTINHERIT 250
+#define R_SPARC_GNU_VTENTRY 251
+#define R_SPARC_REV32 252
+/* Keep this the last entry. */
+#define R_SPARC_NUM 253
+
+/* For Sparc64, legal values for d_tag of Elf64_Dyn. */
+
+#define DT_SPARC_REGISTER 0x70000001
+#define DT_SPARC_NUM 2
+
+/* MIPS R3000 specific definitions. */
+
+/* Legal values for e_flags field of Elf32_Ehdr. */
+
+#define EF_MIPS_NOREORDER 1 /* A .noreorder directive was used. */
+#define EF_MIPS_PIC 2 /* Contains PIC code. */
+#define EF_MIPS_CPIC 4 /* Uses PIC calling sequence. */
+#define EF_MIPS_XGOT 8
+#define EF_MIPS_64BIT_WHIRL 16
+#define EF_MIPS_ABI2 32
+#define EF_MIPS_ABI_ON32 64
+#define EF_MIPS_FP64 512 /* Uses FP64 (12 callee-saved). */
+#define EF_MIPS_NAN2008 1024 /* Uses IEEE 754-2008 NaN encoding. */
+#define EF_MIPS_ARCH 0xf0000000 /* MIPS architecture level. */
+
+/* Legal values for MIPS architecture level. */
+
+#define EF_MIPS_ARCH_1 0x00000000 /* -mips1 code. */
+#define EF_MIPS_ARCH_2 0x10000000 /* -mips2 code. */
+#define EF_MIPS_ARCH_3 0x20000000 /* -mips3 code. */
+#define EF_MIPS_ARCH_4 0x30000000 /* -mips4 code. */
+#define EF_MIPS_ARCH_5 0x40000000 /* -mips5 code. */
+#define EF_MIPS_ARCH_32 0x50000000 /* MIPS32 code. */
+#define EF_MIPS_ARCH_64 0x60000000 /* MIPS64 code. */
+#define EF_MIPS_ARCH_32R2 0x70000000 /* MIPS32r2 code. */
+#define EF_MIPS_ARCH_64R2 0x80000000 /* MIPS64r2 code. */
+
+/* The following are unofficial names and should not be used. */
+
+#define E_MIPS_ARCH_1 EF_MIPS_ARCH_1
+#define E_MIPS_ARCH_2 EF_MIPS_ARCH_2
+#define E_MIPS_ARCH_3 EF_MIPS_ARCH_3
+#define E_MIPS_ARCH_4 EF_MIPS_ARCH_4
+#define E_MIPS_ARCH_5 EF_MIPS_ARCH_5
+#define E_MIPS_ARCH_32 EF_MIPS_ARCH_32
+#define E_MIPS_ARCH_64 EF_MIPS_ARCH_64
+
+/* Special section indices. */
+
+#define SHN_MIPS_ACOMMON 0xff00 /* Allocated common symbols. */
+#define SHN_MIPS_TEXT 0xff01 /* Allocated test symbols. */
+#define SHN_MIPS_DATA 0xff02 /* Allocated data symbols. */
+#define SHN_MIPS_SCOMMON 0xff03 /* Small common symbols. */
+#define SHN_MIPS_SUNDEFINED 0xff04 /* Small undefined symbols. */
+
+/* Legal values for sh_type field of Elf32_Shdr. */
+
+#define SHT_MIPS_LIBLIST 0x70000000 /* Shared objects used in link. */
+#define SHT_MIPS_MSYM 0x70000001
+#define SHT_MIPS_CONFLICT 0x70000002 /* Conflicting symbols. */
+#define SHT_MIPS_GPTAB 0x70000003 /* Global data area sizes. */
+#define SHT_MIPS_UCODE 0x70000004 /* Reserved for SGI/MIPS compilers */
+#define SHT_MIPS_DEBUG 0x70000005 /* MIPS ECOFF debugging info. */
+#define SHT_MIPS_REGINFO 0x70000006 /* Register usage information. */
+#define SHT_MIPS_PACKAGE 0x70000007
+#define SHT_MIPS_PACKSYM 0x70000008
+#define SHT_MIPS_RELD 0x70000009
+#define SHT_MIPS_IFACE 0x7000000b
+#define SHT_MIPS_CONTENT 0x7000000c
+#define SHT_MIPS_OPTIONS 0x7000000d /* Miscellaneous options. */
+#define SHT_MIPS_SHDR 0x70000010
+#define SHT_MIPS_FDESC 0x70000011
+#define SHT_MIPS_EXTSYM 0x70000012
+#define SHT_MIPS_DENSE 0x70000013
+#define SHT_MIPS_PDESC 0x70000014
+#define SHT_MIPS_LOCSYM 0x70000015
+#define SHT_MIPS_AUXSYM 0x70000016
+#define SHT_MIPS_OPTSYM 0x70000017
+#define SHT_MIPS_LOCSTR 0x70000018
+#define SHT_MIPS_LINE 0x70000019
+#define SHT_MIPS_RFDESC 0x7000001a
+#define SHT_MIPS_DELTASYM 0x7000001b
+#define SHT_MIPS_DELTAINST 0x7000001c
+#define SHT_MIPS_DELTACLASS 0x7000001d
+#define SHT_MIPS_DWARF 0x7000001e /* DWARF debugging information. */
+#define SHT_MIPS_DELTADECL 0x7000001f
+#define SHT_MIPS_SYMBOL_LIB 0x70000020
+#define SHT_MIPS_EVENTS 0x70000021 /* Event section. */
+#define SHT_MIPS_TRANSLATE 0x70000022
+#define SHT_MIPS_PIXIE 0x70000023
+#define SHT_MIPS_XLATE 0x70000024
+#define SHT_MIPS_XLATE_DEBUG 0x70000025
+#define SHT_MIPS_WHIRL 0x70000026
+#define SHT_MIPS_EH_REGION 0x70000027
+#define SHT_MIPS_XLATE_OLD 0x70000028
+#define SHT_MIPS_PDR_EXCEPTION 0x70000029
+
+/* Legal values for sh_flags field of Elf32_Shdr. */
+
+#define SHF_MIPS_GPREL 0x10000000 /* Must be in global data area. */
+#define SHF_MIPS_MERGE 0x20000000
+#define SHF_MIPS_ADDR 0x40000000
+#define SHF_MIPS_STRINGS 0x80000000
+#define SHF_MIPS_NOSTRIP 0x08000000
+#define SHF_MIPS_LOCAL 0x04000000
+#define SHF_MIPS_NAMES 0x02000000
+#define SHF_MIPS_NODUPE 0x01000000
+
+
+/* Symbol tables. */
+
+/* MIPS specific values for `st_other'. */
+#define STO_MIPS_DEFAULT 0x0
+#define STO_MIPS_INTERNAL 0x1
+#define STO_MIPS_HIDDEN 0x2
+#define STO_MIPS_PROTECTED 0x3
+#define STO_MIPS_PLT 0x8
+#define STO_MIPS_SC_ALIGN_UNUSED 0xff
+
+/* MIPS specific values for `st_info'. */
+#define STB_MIPS_SPLIT_COMMON 13
+
+/* Entries found in sections of type SHT_MIPS_GPTAB. */
+
+typedef union
+{
+ struct
+ {
+ Elf32_Word gt_current_g_value; /* -G value used for compilation. */
+ Elf32_Word gt_unused; /* Not used. */
+ } gt_header; /* First entry in section. */
+ struct
+ {
+ Elf32_Word gt_g_value; /* If this value were used for -G. */
+ Elf32_Word gt_bytes; /* This many bytes would be used. */
+ } gt_entry; /* Subsequent entries in section. */
+} Elf32_gptab;
+
+/* Entry found in sections of type SHT_MIPS_REGINFO. */
+
+typedef struct
+{
+ Elf32_Word ri_gprmask; /* General registers used. */
+ Elf32_Word ri_cprmask[4]; /* Coprocessor registers used. */
+ Elf32_Sword ri_gp_value; /* $gp register value. */
+} Elf32_RegInfo;
+
+/* Entries found in sections of type SHT_MIPS_OPTIONS. */
+
+typedef struct
+{
+ unsigned char kind; /* Determines interpretation of the
+ variable part of descriptor. */
+ unsigned char size; /* Size of descriptor, including header. */
+ Elf32_Section section; /* Section header index of section affected,
+ 0 for global options. */
+ Elf32_Word info; /* Kind-specific information. */
+} Elf_Options;
+
+/* Values for `kind' field in Elf_Options. */
+
+#define ODK_NULL 0 /* Undefined. */
+#define ODK_REGINFO 1 /* Register usage information. */
+#define ODK_EXCEPTIONS 2 /* Exception processing options. */
+#define ODK_PAD 3 /* Section padding options. */
+#define ODK_HWPATCH 4 /* Hardware workarounds performed */
+#define ODK_FILL 5 /* record the fill value used by the linker. */
+#define ODK_TAGS 6 /* reserve space for desktop tools to write. */
+#define ODK_HWAND 7 /* HW workarounds. 'AND' bits when merging. */
+#define ODK_HWOR 8 /* HW workarounds. 'OR' bits when merging. */
+
+/* Values for `info' in Elf_Options for ODK_EXCEPTIONS entries. */
+
+#define OEX_FPU_MIN 0x1f /* FPE's which MUST be enabled. */
+#define OEX_FPU_MAX 0x1f00 /* FPE's which MAY be enabled. */
+#define OEX_PAGE0 0x10000 /* page zero must be mapped. */
+#define OEX_SMM 0x20000 /* Force sequential memory mode? */
+#define OEX_FPDBUG 0x40000 /* Force floating point debug mode? */
+#define OEX_PRECISEFP OEX_FPDBUG
+#define OEX_DISMISS 0x80000 /* Dismiss invalid address faults? */
+
+#define OEX_FPU_INVAL 0x10
+#define OEX_FPU_DIV0 0x08
+#define OEX_FPU_OFLO 0x04
+#define OEX_FPU_UFLO 0x02
+#define OEX_FPU_INEX 0x01
+
+/* Masks for `info' in Elf_Options for an ODK_HWPATCH entry. */
+
+#define OHW_R4KEOP 0x1 /* R4000 end-of-page patch. */
+#define OHW_R8KPFETCH 0x2 /* may need R8000 prefetch patch. */
+#define OHW_R5KEOP 0x4 /* R5000 end-of-page patch. */
+#define OHW_R5KCVTL 0x8 /* R5000 cvt.[ds].l bug. clean=1. */
+
+#define OPAD_PREFIX 0x1
+#define OPAD_POSTFIX 0x2
+#define OPAD_SYMBOL 0x4
+
+/* Entry found in `.options' section. */
+
+typedef struct
+{
+ Elf32_Word hwp_flags1; /* Extra flags. */
+ Elf32_Word hwp_flags2; /* Extra flags. */
+} Elf_Options_Hw;
+
+/* Masks for `info' in ElfOptions for ODK_HWAND and ODK_HWOR entries. */
+
+#define OHWA0_R4KEOP_CHECKED 0x00000001
+#define OHWA1_R4KEOP_CLEAN 0x00000002
+
+/* MIPS relocs. */
+
+#define R_MIPS_NONE 0 /* No reloc */
+#define R_MIPS_16 1 /* Direct 16 bit */
+#define R_MIPS_32 2 /* Direct 32 bit */
+#define R_MIPS_REL32 3 /* PC relative 32 bit */
+#define R_MIPS_26 4 /* Direct 26 bit shifted */
+#define R_MIPS_HI16 5 /* High 16 bit */
+#define R_MIPS_LO16 6 /* Low 16 bit */
+#define R_MIPS_GPREL16 7 /* GP relative 16 bit */
+#define R_MIPS_LITERAL 8 /* 16 bit literal entry */
+#define R_MIPS_GOT16 9 /* 16 bit GOT entry */
+#define R_MIPS_PC16 10 /* PC relative 16 bit */
+#define R_MIPS_CALL16 11 /* 16 bit GOT entry for function */
+#define R_MIPS_GPREL32 12 /* GP relative 32 bit */
+
+#define R_MIPS_SHIFT5 16
+#define R_MIPS_SHIFT6 17
+#define R_MIPS_64 18
+#define R_MIPS_GOT_DISP 19
+#define R_MIPS_GOT_PAGE 20
+#define R_MIPS_GOT_OFST 21
+#define R_MIPS_GOT_HI16 22
+#define R_MIPS_GOT_LO16 23
+#define R_MIPS_SUB 24
+#define R_MIPS_INSERT_A 25
+#define R_MIPS_INSERT_B 26
+#define R_MIPS_DELETE 27
+#define R_MIPS_HIGHER 28
+#define R_MIPS_HIGHEST 29
+#define R_MIPS_CALL_HI16 30
+#define R_MIPS_CALL_LO16 31
+#define R_MIPS_SCN_DISP 32
+#define R_MIPS_REL16 33
+#define R_MIPS_ADD_IMMEDIATE 34
+#define R_MIPS_PJUMP 35
+#define R_MIPS_RELGOT 36
+#define R_MIPS_JALR 37
+#define R_MIPS_TLS_DTPMOD32 38 /* Module number 32 bit */
+#define R_MIPS_TLS_DTPREL32 39 /* Module-relative offset 32 bit */
+#define R_MIPS_TLS_DTPMOD64 40 /* Module number 64 bit */
+#define R_MIPS_TLS_DTPREL64 41 /* Module-relative offset 64 bit */
+#define R_MIPS_TLS_GD 42 /* 16 bit GOT offset for GD */
+#define R_MIPS_TLS_LDM 43 /* 16 bit GOT offset for LDM */
+#define R_MIPS_TLS_DTPREL_HI16 44 /* Module-relative offset, high 16 bits */
+#define R_MIPS_TLS_DTPREL_LO16 45 /* Module-relative offset, low 16 bits */
+#define R_MIPS_TLS_GOTTPREL 46 /* 16 bit GOT offset for IE */
+#define R_MIPS_TLS_TPREL32 47 /* TP-relative offset, 32 bit */
+#define R_MIPS_TLS_TPREL64 48 /* TP-relative offset, 64 bit */
+#define R_MIPS_TLS_TPREL_HI16 49 /* TP-relative offset, high 16 bits */
+#define R_MIPS_TLS_TPREL_LO16 50 /* TP-relative offset, low 16 bits */
+#define R_MIPS_GLOB_DAT 51
+#define R_MIPS_COPY 126
+#define R_MIPS_JUMP_SLOT 127
+/* Keep this the last entry. */
+#define R_MIPS_NUM 128
+
+/* Legal values for p_type field of Elf32_Phdr. */
+
+#define PT_MIPS_REGINFO 0x70000000 /* Register usage information. */
+#define PT_MIPS_RTPROC 0x70000001 /* Runtime procedure table. */
+#define PT_MIPS_OPTIONS 0x70000002
+#define PT_MIPS_ABIFLAGS 0x70000003 /* FP mode requirement. */
+
+/* Special program header types. */
+
+#define PF_MIPS_LOCAL 0x10000000
+
+/* Legal values for d_tag field of Elf32_Dyn. */
+
+#define DT_MIPS_RLD_VERSION 0x70000001 /* Runtime linker interface version */
+#define DT_MIPS_TIME_STAMP 0x70000002 /* Timestamp */
+#define DT_MIPS_ICHECKSUM 0x70000003 /* Checksum */
+#define DT_MIPS_IVERSION 0x70000004 /* Version string (string tbl index) */
+#define DT_MIPS_FLAGS 0x70000005 /* Flags */
+#define DT_MIPS_BASE_ADDRESS 0x70000006 /* Base address */
+#define DT_MIPS_MSYM 0x70000007
+#define DT_MIPS_CONFLICT 0x70000008 /* Address of CONFLICT section */
+#define DT_MIPS_LIBLIST 0x70000009 /* Address of LIBLIST section */
+#define DT_MIPS_LOCAL_GOTNO 0x7000000a /* Number of local GOT entries */
+#define DT_MIPS_CONFLICTNO 0x7000000b /* Number of CONFLICT entries */
+#define DT_MIPS_LIBLISTNO 0x70000010 /* Number of LIBLIST entries */
+#define DT_MIPS_SYMTABNO 0x70000011 /* Number of DYNSYM entries */
+#define DT_MIPS_UNREFEXTNO 0x70000012 /* First external DYNSYM */
+#define DT_MIPS_GOTSYM 0x70000013 /* First GOT entry in DYNSYM */
+#define DT_MIPS_HIPAGENO 0x70000014 /* Number of GOT page table entries */
+#define DT_MIPS_RLD_MAP 0x70000016 /* Address of run time loader map. */
+#define DT_MIPS_DELTA_CLASS 0x70000017 /* Delta C++ class definition. */
+#define DT_MIPS_DELTA_CLASS_NO 0x70000018 /* Number of entries in
+ DT_MIPS_DELTA_CLASS. */
+#define DT_MIPS_DELTA_INSTANCE 0x70000019 /* Delta C++ class instances. */
+#define DT_MIPS_DELTA_INSTANCE_NO 0x7000001a /* Number of entries in
+ DT_MIPS_DELTA_INSTANCE. */
+#define DT_MIPS_DELTA_RELOC 0x7000001b /* Delta relocations. */
+#define DT_MIPS_DELTA_RELOC_NO 0x7000001c /* Number of entries in
+ DT_MIPS_DELTA_RELOC. */
+#define DT_MIPS_DELTA_SYM 0x7000001d /* Delta symbols that Delta
+ relocations refer to. */
+#define DT_MIPS_DELTA_SYM_NO 0x7000001e /* Number of entries in
+ DT_MIPS_DELTA_SYM. */
+#define DT_MIPS_DELTA_CLASSSYM 0x70000020 /* Delta symbols that hold the
+ class declaration. */
+#define DT_MIPS_DELTA_CLASSSYM_NO 0x70000021 /* Number of entries in
+ DT_MIPS_DELTA_CLASSSYM. */
+#define DT_MIPS_CXX_FLAGS 0x70000022 /* Flags indicating for C++ flavor. */
+#define DT_MIPS_PIXIE_INIT 0x70000023
+#define DT_MIPS_SYMBOL_LIB 0x70000024
+#define DT_MIPS_LOCALPAGE_GOTIDX 0x70000025
+#define DT_MIPS_LOCAL_GOTIDX 0x70000026
+#define DT_MIPS_HIDDEN_GOTIDX 0x70000027
+#define DT_MIPS_PROTECTED_GOTIDX 0x70000028
+#define DT_MIPS_OPTIONS 0x70000029 /* Address of .options. */
+#define DT_MIPS_INTERFACE 0x7000002a /* Address of .interface. */
+#define DT_MIPS_DYNSTR_ALIGN 0x7000002b
+#define DT_MIPS_INTERFACE_SIZE 0x7000002c /* Size of the .interface section. */
+#define DT_MIPS_RLD_TEXT_RESOLVE_ADDR 0x7000002d /* Address of rld_text_rsolve
+ function stored in GOT. */
+#define DT_MIPS_PERF_SUFFIX 0x7000002e /* Default suffix of dso to be added
+ by rld on dlopen() calls. */
+#define DT_MIPS_COMPACT_SIZE 0x7000002f /* (O32)Size of compact rel section. */
+#define DT_MIPS_GP_VALUE 0x70000030 /* GP value for aux GOTs. */
+#define DT_MIPS_AUX_DYNAMIC 0x70000031 /* Address of aux .dynamic. */
+/* The address of .got.plt in an executable using the new non-PIC ABI. */
+#define DT_MIPS_PLTGOT 0x70000032
+/* The base of the PLT in an executable using the new non-PIC ABI if that
+ PLT is writable. For a non-writable PLT, this is omitted or has a zero
+ value. */
+#define DT_MIPS_RWPLT 0x70000034
+/* An alternative description of the classic MIPS RLD_MAP that is usable
+ in a PIE as it stores a relative offset from the address of the tag
+ rather than an absolute address. */
+#define DT_MIPS_RLD_MAP_REL 0x70000035
+#define DT_MIPS_NUM 0x36
+
+/* Legal values for DT_MIPS_FLAGS Elf32_Dyn entry. */
+
+#define RHF_NONE 0 /* No flags */
+#define RHF_QUICKSTART (1 << 0) /* Use quickstart */
+#define RHF_NOTPOT (1 << 1) /* Hash size not power of 2 */
+#define RHF_NO_LIBRARY_REPLACEMENT (1 << 2) /* Ignore LD_LIBRARY_PATH */
+#define RHF_NO_MOVE (1 << 3)
+#define RHF_SGI_ONLY (1 << 4)
+#define RHF_GUARANTEE_INIT (1 << 5)
+#define RHF_DELTA_C_PLUS_PLUS (1 << 6)
+#define RHF_GUARANTEE_START_INIT (1 << 7)
+#define RHF_PIXIE (1 << 8)
+#define RHF_DEFAULT_DELAY_LOAD (1 << 9)
+#define RHF_REQUICKSTART (1 << 10)
+#define RHF_REQUICKSTARTED (1 << 11)
+#define RHF_CORD (1 << 12)
+#define RHF_NO_UNRES_UNDEF (1 << 13)
+#define RHF_RLD_ORDER_SAFE (1 << 14)
+
+/* Entries found in sections of type SHT_MIPS_LIBLIST. */
+
+typedef struct
+{
+ Elf32_Word l_name; /* Name (string table index) */
+ Elf32_Word l_time_stamp; /* Timestamp */
+ Elf32_Word l_checksum; /* Checksum */
+ Elf32_Word l_version; /* Interface version */
+ Elf32_Word l_flags; /* Flags */
+} Elf32_Lib;
+
+typedef struct
+{
+ Elf64_Word l_name; /* Name (string table index) */
+ Elf64_Word l_time_stamp; /* Timestamp */
+ Elf64_Word l_checksum; /* Checksum */
+ Elf64_Word l_version; /* Interface version */
+ Elf64_Word l_flags; /* Flags */
+} Elf64_Lib;
+
+
+/* Legal values for l_flags. */
+
+#define LL_NONE 0
+#define LL_EXACT_MATCH (1 << 0) /* Require exact match */
+#define LL_IGNORE_INT_VER (1 << 1) /* Ignore interface version */
+#define LL_REQUIRE_MINOR (1 << 2)
+#define LL_EXPORTS (1 << 3)
+#define LL_DELAY_LOAD (1 << 4)
+#define LL_DELTA (1 << 5)
+
+/* Entries found in sections of type SHT_MIPS_CONFLICT. */
+
+typedef Elf32_Addr Elf32_Conflict;
+
+typedef struct
+{
+ /* Version of flags structure. */
+ Elf32_Half version;
+ /* The level of the ISA: 1-5, 32, 64. */
+ unsigned char isa_level;
+ /* The revision of ISA: 0 for MIPS V and below, 1-n otherwise. */
+ unsigned char isa_rev;
+ /* The size of general purpose registers. */
+ unsigned char gpr_size;
+ /* The size of co-processor 1 registers. */
+ unsigned char cpr1_size;
+ /* The size of co-processor 2 registers. */
+ unsigned char cpr2_size;
+ /* The floating-point ABI. */
+ unsigned char fp_abi;
+ /* Processor-specific extension. */
+ Elf32_Word isa_ext;
+ /* Mask of ASEs used. */
+ Elf32_Word ases;
+ /* Mask of general flags. */
+ Elf32_Word flags1;
+ Elf32_Word flags2;
+} Elf_MIPS_ABIFlags_v0;
+
+/* Values for the register size bytes of an abi flags structure. */
+
+#define MIPS_AFL_REG_NONE 0x00 /* No registers. */
+#define MIPS_AFL_REG_32 0x01 /* 32-bit registers. */
+#define MIPS_AFL_REG_64 0x02 /* 64-bit registers. */
+#define MIPS_AFL_REG_128 0x03 /* 128-bit registers. */
+
+/* Masks for the ases word of an ABI flags structure. */
+
+#define MIPS_AFL_ASE_DSP 0x00000001 /* DSP ASE. */
+#define MIPS_AFL_ASE_DSPR2 0x00000002 /* DSP R2 ASE. */
+#define MIPS_AFL_ASE_EVA 0x00000004 /* Enhanced VA Scheme. */
+#define MIPS_AFL_ASE_MCU 0x00000008 /* MCU (MicroController) ASE. */
+#define MIPS_AFL_ASE_MDMX 0x00000010 /* MDMX ASE. */
+#define MIPS_AFL_ASE_MIPS3D 0x00000020 /* MIPS-3D ASE. */
+#define MIPS_AFL_ASE_MT 0x00000040 /* MT ASE. */
+#define MIPS_AFL_ASE_SMARTMIPS 0x00000080 /* SmartMIPS ASE. */
+#define MIPS_AFL_ASE_VIRT 0x00000100 /* VZ ASE. */
+#define MIPS_AFL_ASE_MSA 0x00000200 /* MSA ASE. */
+#define MIPS_AFL_ASE_MIPS16 0x00000400 /* MIPS16 ASE. */
+#define MIPS_AFL_ASE_MICROMIPS 0x00000800 /* MICROMIPS ASE. */
+#define MIPS_AFL_ASE_XPA 0x00001000 /* XPA ASE. */
+#define MIPS_AFL_ASE_MASK 0x00001fff /* All ASEs. */
+
+/* Values for the isa_ext word of an ABI flags structure. */
+
+#define MIPS_AFL_EXT_XLR 1 /* RMI Xlr instruction. */
+#define MIPS_AFL_EXT_OCTEON2 2 /* Cavium Networks Octeon2. */
+#define MIPS_AFL_EXT_OCTEONP 3 /* Cavium Networks OcteonP. */
+#define MIPS_AFL_EXT_LOONGSON_3A 4 /* Loongson 3A. */
+#define MIPS_AFL_EXT_OCTEON 5 /* Cavium Networks Octeon. */
+#define MIPS_AFL_EXT_5900 6 /* MIPS R5900 instruction. */
+#define MIPS_AFL_EXT_4650 7 /* MIPS R4650 instruction. */
+#define MIPS_AFL_EXT_4010 8 /* LSI R4010 instruction. */
+#define MIPS_AFL_EXT_4100 9 /* NEC VR4100 instruction. */
+#define MIPS_AFL_EXT_3900 10 /* Toshiba R3900 instruction. */
+#define MIPS_AFL_EXT_10000 11 /* MIPS R10000 instruction. */
+#define MIPS_AFL_EXT_SB1 12 /* Broadcom SB-1 instruction. */
+#define MIPS_AFL_EXT_4111 13 /* NEC VR4111/VR4181 instruction. */
+#define MIPS_AFL_EXT_4120 14 /* NEC VR4120 instruction. */
+#define MIPS_AFL_EXT_5400 15 /* NEC VR5400 instruction. */
+#define MIPS_AFL_EXT_5500 16 /* NEC VR5500 instruction. */
+#define MIPS_AFL_EXT_LOONGSON_2E 17 /* ST Microelectronics Loongson 2E. */
+#define MIPS_AFL_EXT_LOONGSON_2F 18 /* ST Microelectronics Loongson 2F. */
+
+/* Masks for the flags1 word of an ABI flags structure. */
+#define MIPS_AFL_FLAGS1_ODDSPREG 1 /* Uses odd single-precision registers. */
+
+/* Object attribute values. */
+enum
+{
+ /* Not tagged or not using any ABIs affected by the differences. */
+ Val_GNU_MIPS_ABI_FP_ANY = 0,
+ /* Using hard-float -mdouble-float. */
+ Val_GNU_MIPS_ABI_FP_DOUBLE = 1,
+ /* Using hard-float -msingle-float. */
+ Val_GNU_MIPS_ABI_FP_SINGLE = 2,
+ /* Using soft-float. */
+ Val_GNU_MIPS_ABI_FP_SOFT = 3,
+ /* Using -mips32r2 -mfp64. */
+ Val_GNU_MIPS_ABI_FP_OLD_64 = 4,
+ /* Using -mfpxx. */
+ Val_GNU_MIPS_ABI_FP_XX = 5,
+ /* Using -mips32r2 -mfp64. */
+ Val_GNU_MIPS_ABI_FP_64 = 6,
+ /* Using -mips32r2 -mfp64 -mno-odd-spreg. */
+ Val_GNU_MIPS_ABI_FP_64A = 7,
+ /* Maximum allocated FP ABI value. */
+ Val_GNU_MIPS_ABI_FP_MAX = 7
+};
+
+/* HPPA specific definitions. */
+
+/* Legal values for e_flags field of Elf32_Ehdr. */
+
+#define EF_PARISC_TRAPNIL 0x00010000 /* Trap nil pointer dereference. */
+#define EF_PARISC_EXT 0x00020000 /* Program uses arch. extensions. */
+#define EF_PARISC_LSB 0x00040000 /* Program expects little endian. */
+#define EF_PARISC_WIDE 0x00080000 /* Program expects wide mode. */
+#define EF_PARISC_NO_KABP 0x00100000 /* No kernel assisted branch
+ prediction. */
+#define EF_PARISC_LAZYSWAP 0x00400000 /* Allow lazy swapping. */
+#define EF_PARISC_ARCH 0x0000ffff /* Architecture version. */
+
+/* Defined values for `e_flags & EF_PARISC_ARCH' are: */
+
+#define EFA_PARISC_1_0 0x020b /* PA-RISC 1.0 big-endian. */
+#define EFA_PARISC_1_1 0x0210 /* PA-RISC 1.1 big-endian. */
+#define EFA_PARISC_2_0 0x0214 /* PA-RISC 2.0 big-endian. */
+
+/* Additional section indeces. */
+
+#define SHN_PARISC_ANSI_COMMON 0xff00 /* Section for tenatively declared
+ symbols in ANSI C. */
+#define SHN_PARISC_HUGE_COMMON 0xff01 /* Common blocks in huge model. */
+
+/* Legal values for sh_type field of Elf32_Shdr. */
+
+#define SHT_PARISC_EXT 0x70000000 /* Contains product specific ext. */
+#define SHT_PARISC_UNWIND 0x70000001 /* Unwind information. */
+#define SHT_PARISC_DOC 0x70000002 /* Debug info for optimized code. */
+
+/* Legal values for sh_flags field of Elf32_Shdr. */
+
+#define SHF_PARISC_SHORT 0x20000000 /* Section with short addressing. */
+#define SHF_PARISC_HUGE 0x40000000 /* Section far from gp. */
+#define SHF_PARISC_SBP 0x80000000 /* Static branch prediction code. */
+
+/* Legal values for ST_TYPE subfield of st_info (symbol type). */
+
+#define STT_PARISC_MILLICODE 13 /* Millicode function entry point. */
+
+#define STT_HP_OPAQUE (STT_LOOS + 0x1)
+#define STT_HP_STUB (STT_LOOS + 0x2)
+
+/* HPPA relocs. */
+
+#define R_PARISC_NONE 0 /* No reloc. */
+#define R_PARISC_DIR32 1 /* Direct 32-bit reference. */
+#define R_PARISC_DIR21L 2 /* Left 21 bits of eff. address. */
+#define R_PARISC_DIR17R 3 /* Right 17 bits of eff. address. */
+#define R_PARISC_DIR17F 4 /* 17 bits of eff. address. */
+#define R_PARISC_DIR14R 6 /* Right 14 bits of eff. address. */
+#define R_PARISC_PCREL32 9 /* 32-bit rel. address. */
+#define R_PARISC_PCREL21L 10 /* Left 21 bits of rel. address. */
+#define R_PARISC_PCREL17R 11 /* Right 17 bits of rel. address. */
+#define R_PARISC_PCREL17F 12 /* 17 bits of rel. address. */
+#define R_PARISC_PCREL14R 14 /* Right 14 bits of rel. address. */
+#define R_PARISC_DPREL21L 18 /* Left 21 bits of rel. address. */
+#define R_PARISC_DPREL14R 22 /* Right 14 bits of rel. address. */
+#define R_PARISC_GPREL21L 26 /* GP-relative, left 21 bits. */
+#define R_PARISC_GPREL14R 30 /* GP-relative, right 14 bits. */
+#define R_PARISC_LTOFF21L 34 /* LT-relative, left 21 bits. */
+#define R_PARISC_LTOFF14R 38 /* LT-relative, right 14 bits. */
+#define R_PARISC_SECREL32 41 /* 32 bits section rel. address. */
+#define R_PARISC_SEGBASE 48 /* No relocation, set segment base. */
+#define R_PARISC_SEGREL32 49 /* 32 bits segment rel. address. */
+#define R_PARISC_PLTOFF21L 50 /* PLT rel. address, left 21 bits. */
+#define R_PARISC_PLTOFF14R 54 /* PLT rel. address, right 14 bits. */
+#define R_PARISC_LTOFF_FPTR32 57 /* 32 bits LT-rel. function pointer. */
+#define R_PARISC_LTOFF_FPTR21L 58 /* LT-rel. fct ptr, left 21 bits. */
+#define R_PARISC_LTOFF_FPTR14R 62 /* LT-rel. fct ptr, right 14 bits. */
+#define R_PARISC_FPTR64 64 /* 64 bits function address. */
+#define R_PARISC_PLABEL32 65 /* 32 bits function address. */
+#define R_PARISC_PLABEL21L 66 /* Left 21 bits of fdesc address. */
+#define R_PARISC_PLABEL14R 70 /* Right 14 bits of fdesc address. */
+#define R_PARISC_PCREL64 72 /* 64 bits PC-rel. address. */
+#define R_PARISC_PCREL22F 74 /* 22 bits PC-rel. address. */
+#define R_PARISC_PCREL14WR 75 /* PC-rel. address, right 14 bits. */
+#define R_PARISC_PCREL14DR 76 /* PC rel. address, right 14 bits. */
+#define R_PARISC_PCREL16F 77 /* 16 bits PC-rel. address. */
+#define R_PARISC_PCREL16WF 78 /* 16 bits PC-rel. address. */
+#define R_PARISC_PCREL16DF 79 /* 16 bits PC-rel. address. */
+#define R_PARISC_DIR64 80 /* 64 bits of eff. address. */
+#define R_PARISC_DIR14WR 83 /* 14 bits of eff. address. */
+#define R_PARISC_DIR14DR 84 /* 14 bits of eff. address. */
+#define R_PARISC_DIR16F 85 /* 16 bits of eff. address. */
+#define R_PARISC_DIR16WF 86 /* 16 bits of eff. address. */
+#define R_PARISC_DIR16DF 87 /* 16 bits of eff. address. */
+#define R_PARISC_GPREL64 88 /* 64 bits of GP-rel. address. */
+#define R_PARISC_GPREL14WR 91 /* GP-rel. address, right 14 bits. */
+#define R_PARISC_GPREL14DR 92 /* GP-rel. address, right 14 bits. */
+#define R_PARISC_GPREL16F 93 /* 16 bits GP-rel. address. */
+#define R_PARISC_GPREL16WF 94 /* 16 bits GP-rel. address. */
+#define R_PARISC_GPREL16DF 95 /* 16 bits GP-rel. address. */
+#define R_PARISC_LTOFF64 96 /* 64 bits LT-rel. address. */
+#define R_PARISC_LTOFF14WR 99 /* LT-rel. address, right 14 bits. */
+#define R_PARISC_LTOFF14DR 100 /* LT-rel. address, right 14 bits. */
+#define R_PARISC_LTOFF16F 101 /* 16 bits LT-rel. address. */
+#define R_PARISC_LTOFF16WF 102 /* 16 bits LT-rel. address. */
+#define R_PARISC_LTOFF16DF 103 /* 16 bits LT-rel. address. */
+#define R_PARISC_SECREL64 104 /* 64 bits section rel. address. */
+#define R_PARISC_SEGREL64 112 /* 64 bits segment rel. address. */
+#define R_PARISC_PLTOFF14WR 115 /* PLT-rel. address, right 14 bits. */
+#define R_PARISC_PLTOFF14DR 116 /* PLT-rel. address, right 14 bits. */
+#define R_PARISC_PLTOFF16F 117 /* 16 bits LT-rel. address. */
+#define R_PARISC_PLTOFF16WF 118 /* 16 bits PLT-rel. address. */
+#define R_PARISC_PLTOFF16DF 119 /* 16 bits PLT-rel. address. */
+#define R_PARISC_LTOFF_FPTR64 120 /* 64 bits LT-rel. function ptr. */
+#define R_PARISC_LTOFF_FPTR14WR 123 /* LT-rel. fct. ptr., right 14 bits. */
+#define R_PARISC_LTOFF_FPTR14DR 124 /* LT-rel. fct. ptr., right 14 bits. */
+#define R_PARISC_LTOFF_FPTR16F 125 /* 16 bits LT-rel. function ptr. */
+#define R_PARISC_LTOFF_FPTR16WF 126 /* 16 bits LT-rel. function ptr. */
+#define R_PARISC_LTOFF_FPTR16DF 127 /* 16 bits LT-rel. function ptr. */
+#define R_PARISC_LORESERVE 128
+#define R_PARISC_COPY 128 /* Copy relocation. */
+#define R_PARISC_IPLT 129 /* Dynamic reloc, imported PLT */
+#define R_PARISC_EPLT 130 /* Dynamic reloc, exported PLT */
+#define R_PARISC_TPREL32 153 /* 32 bits TP-rel. address. */
+#define R_PARISC_TPREL21L 154 /* TP-rel. address, left 21 bits. */
+#define R_PARISC_TPREL14R 158 /* TP-rel. address, right 14 bits. */
+#define R_PARISC_LTOFF_TP21L 162 /* LT-TP-rel. address, left 21 bits. */
+#define R_PARISC_LTOFF_TP14R 166 /* LT-TP-rel. address, right 14 bits.*/
+#define R_PARISC_LTOFF_TP14F 167 /* 14 bits LT-TP-rel. address. */
+#define R_PARISC_TPREL64 216 /* 64 bits TP-rel. address. */
+#define R_PARISC_TPREL14WR 219 /* TP-rel. address, right 14 bits. */
+#define R_PARISC_TPREL14DR 220 /* TP-rel. address, right 14 bits. */
+#define R_PARISC_TPREL16F 221 /* 16 bits TP-rel. address. */
+#define R_PARISC_TPREL16WF 222 /* 16 bits TP-rel. address. */
+#define R_PARISC_TPREL16DF 223 /* 16 bits TP-rel. address. */
+#define R_PARISC_LTOFF_TP64 224 /* 64 bits LT-TP-rel. address. */
+#define R_PARISC_LTOFF_TP14WR 227 /* LT-TP-rel. address, right 14 bits.*/
+#define R_PARISC_LTOFF_TP14DR 228 /* LT-TP-rel. address, right 14 bits.*/
+#define R_PARISC_LTOFF_TP16F 229 /* 16 bits LT-TP-rel. address. */
+#define R_PARISC_LTOFF_TP16WF 230 /* 16 bits LT-TP-rel. address. */
+#define R_PARISC_LTOFF_TP16DF 231 /* 16 bits LT-TP-rel. address. */
+#define R_PARISC_GNU_VTENTRY 232
+#define R_PARISC_GNU_VTINHERIT 233
+#define R_PARISC_TLS_GD21L 234 /* GD 21-bit left. */
+#define R_PARISC_TLS_GD14R 235 /* GD 14-bit right. */
+#define R_PARISC_TLS_GDCALL 236 /* GD call to __t_g_a. */
+#define R_PARISC_TLS_LDM21L 237 /* LD module 21-bit left. */
+#define R_PARISC_TLS_LDM14R 238 /* LD module 14-bit right. */
+#define R_PARISC_TLS_LDMCALL 239 /* LD module call to __t_g_a. */
+#define R_PARISC_TLS_LDO21L 240 /* LD offset 21-bit left. */
+#define R_PARISC_TLS_LDO14R 241 /* LD offset 14-bit right. */
+#define R_PARISC_TLS_DTPMOD32 242 /* DTP module 32-bit. */
+#define R_PARISC_TLS_DTPMOD64 243 /* DTP module 64-bit. */
+#define R_PARISC_TLS_DTPOFF32 244 /* DTP offset 32-bit. */
+#define R_PARISC_TLS_DTPOFF64 245 /* DTP offset 32-bit. */
+#define R_PARISC_TLS_LE21L R_PARISC_TPREL21L
+#define R_PARISC_TLS_LE14R R_PARISC_TPREL14R
+#define R_PARISC_TLS_IE21L R_PARISC_LTOFF_TP21L
+#define R_PARISC_TLS_IE14R R_PARISC_LTOFF_TP14R
+#define R_PARISC_TLS_TPREL32 R_PARISC_TPREL32
+#define R_PARISC_TLS_TPREL64 R_PARISC_TPREL64
+#define R_PARISC_HIRESERVE 255
+
+/* Legal values for p_type field of Elf32_Phdr/Elf64_Phdr. */
+
+#define PT_HP_TLS (PT_LOOS + 0x0)
+#define PT_HP_CORE_NONE (PT_LOOS + 0x1)
+#define PT_HP_CORE_VERSION (PT_LOOS + 0x2)
+#define PT_HP_CORE_KERNEL (PT_LOOS + 0x3)
+#define PT_HP_CORE_COMM (PT_LOOS + 0x4)
+#define PT_HP_CORE_PROC (PT_LOOS + 0x5)
+#define PT_HP_CORE_LOADABLE (PT_LOOS + 0x6)
+#define PT_HP_CORE_STACK (PT_LOOS + 0x7)
+#define PT_HP_CORE_SHM (PT_LOOS + 0x8)
+#define PT_HP_CORE_MMF (PT_LOOS + 0x9)
+#define PT_HP_PARALLEL (PT_LOOS + 0x10)
+#define PT_HP_FASTBIND (PT_LOOS + 0x11)
+#define PT_HP_OPT_ANNOT (PT_LOOS + 0x12)
+#define PT_HP_HSL_ANNOT (PT_LOOS + 0x13)
+#define PT_HP_STACK (PT_LOOS + 0x14)
+
+#define PT_PARISC_ARCHEXT 0x70000000
+#define PT_PARISC_UNWIND 0x70000001
+
+/* Legal values for p_flags field of Elf32_Phdr/Elf64_Phdr. */
+
+#define PF_PARISC_SBP 0x08000000
+
+#define PF_HP_PAGE_SIZE 0x00100000
+#define PF_HP_FAR_SHARED 0x00200000
+#define PF_HP_NEAR_SHARED 0x00400000
+#define PF_HP_CODE 0x01000000
+#define PF_HP_MODIFY 0x02000000
+#define PF_HP_LAZYSWAP 0x04000000
+#define PF_HP_SBP 0x08000000
+
+
+/* Alpha specific definitions. */
+
+/* Legal values for e_flags field of Elf64_Ehdr. */
+
+#define EF_ALPHA_32BIT 1 /* All addresses must be < 2GB. */
+#define EF_ALPHA_CANRELAX 2 /* Relocations for relaxing exist. */
+
+/* Legal values for sh_type field of Elf64_Shdr. */
+
+/* These two are primerily concerned with ECOFF debugging info. */
+#define SHT_ALPHA_DEBUG 0x70000001
+#define SHT_ALPHA_REGINFO 0x70000002
+
+/* Legal values for sh_flags field of Elf64_Shdr. */
+
+#define SHF_ALPHA_GPREL 0x10000000
+
+/* Legal values for st_other field of Elf64_Sym. */
+#define STO_ALPHA_NOPV 0x80 /* No PV required. */
+#define STO_ALPHA_STD_GPLOAD 0x88 /* PV only used for initial ldgp. */
+
+/* Alpha relocs. */
+
+#define R_ALPHA_NONE 0 /* No reloc */
+#define R_ALPHA_REFLONG 1 /* Direct 32 bit */
+#define R_ALPHA_REFQUAD 2 /* Direct 64 bit */
+#define R_ALPHA_GPREL32 3 /* GP relative 32 bit */
+#define R_ALPHA_LITERAL 4 /* GP relative 16 bit w/optimization */
+#define R_ALPHA_LITUSE 5 /* Optimization hint for LITERAL */
+#define R_ALPHA_GPDISP 6 /* Add displacement to GP */
+#define R_ALPHA_BRADDR 7 /* PC+4 relative 23 bit shifted */
+#define R_ALPHA_HINT 8 /* PC+4 relative 16 bit shifted */
+#define R_ALPHA_SREL16 9 /* PC relative 16 bit */
+#define R_ALPHA_SREL32 10 /* PC relative 32 bit */
+#define R_ALPHA_SREL64 11 /* PC relative 64 bit */
+#define R_ALPHA_GPRELHIGH 17 /* GP relative 32 bit, high 16 bits */
+#define R_ALPHA_GPRELLOW 18 /* GP relative 32 bit, low 16 bits */
+#define R_ALPHA_GPREL16 19 /* GP relative 16 bit */
+#define R_ALPHA_COPY 24 /* Copy symbol at runtime */
+#define R_ALPHA_GLOB_DAT 25 /* Create GOT entry */
+#define R_ALPHA_JMP_SLOT 26 /* Create PLT entry */
+#define R_ALPHA_RELATIVE 27 /* Adjust by program base */
+#define R_ALPHA_TLS_GD_HI 28
+#define R_ALPHA_TLSGD 29
+#define R_ALPHA_TLS_LDM 30
+#define R_ALPHA_DTPMOD64 31
+#define R_ALPHA_GOTDTPREL 32
+#define R_ALPHA_DTPREL64 33
+#define R_ALPHA_DTPRELHI 34
+#define R_ALPHA_DTPRELLO 35
+#define R_ALPHA_DTPREL16 36
+#define R_ALPHA_GOTTPREL 37
+#define R_ALPHA_TPREL64 38
+#define R_ALPHA_TPRELHI 39
+#define R_ALPHA_TPRELLO 40
+#define R_ALPHA_TPREL16 41
+/* Keep this the last entry. */
+#define R_ALPHA_NUM 46
+
+/* Magic values of the LITUSE relocation addend. */
+#define LITUSE_ALPHA_ADDR 0
+#define LITUSE_ALPHA_BASE 1
+#define LITUSE_ALPHA_BYTOFF 2
+#define LITUSE_ALPHA_JSR 3
+#define LITUSE_ALPHA_TLS_GD 4
+#define LITUSE_ALPHA_TLS_LDM 5
+
+/* Legal values for d_tag of Elf64_Dyn. */
+#define DT_ALPHA_PLTRO (DT_LOPROC + 0)
+#define DT_ALPHA_NUM 1
+
+/* PowerPC specific declarations */
+
+/* Values for Elf32/64_Ehdr.e_flags. */
+#define EF_PPC_EMB 0x80000000 /* PowerPC embedded flag */
+
+/* Cygnus local bits below */
+#define EF_PPC_RELOCATABLE 0x00010000 /* PowerPC -mrelocatable flag*/
+#define EF_PPC_RELOCATABLE_LIB 0x00008000 /* PowerPC -mrelocatable-lib
+ flag */
+
+/* PowerPC relocations defined by the ABIs */
+#define R_PPC_NONE 0
+#define R_PPC_ADDR32 1 /* 32bit absolute address */
+#define R_PPC_ADDR24 2 /* 26bit address, 2 bits ignored. */
+#define R_PPC_ADDR16 3 /* 16bit absolute address */
+#define R_PPC_ADDR16_LO 4 /* lower 16bit of absolute address */
+#define R_PPC_ADDR16_HI 5 /* high 16bit of absolute address */
+#define R_PPC_ADDR16_HA 6 /* adjusted high 16bit */
+#define R_PPC_ADDR14 7 /* 16bit address, 2 bits ignored */
+#define R_PPC_ADDR14_BRTAKEN 8
+#define R_PPC_ADDR14_BRNTAKEN 9
+#define R_PPC_REL24 10 /* PC relative 26 bit */
+#define R_PPC_REL14 11 /* PC relative 16 bit */
+#define R_PPC_REL14_BRTAKEN 12
+#define R_PPC_REL14_BRNTAKEN 13
+#define R_PPC_GOT16 14
+#define R_PPC_GOT16_LO 15
+#define R_PPC_GOT16_HI 16
+#define R_PPC_GOT16_HA 17
+#define R_PPC_PLTREL24 18
+#define R_PPC_COPY 19
+#define R_PPC_GLOB_DAT 20
+#define R_PPC_JMP_SLOT 21
+#define R_PPC_RELATIVE 22
+#define R_PPC_LOCAL24PC 23
+#define R_PPC_UADDR32 24
+#define R_PPC_UADDR16 25
+#define R_PPC_REL32 26
+#define R_PPC_PLT32 27
+#define R_PPC_PLTREL32 28
+#define R_PPC_PLT16_LO 29
+#define R_PPC_PLT16_HI 30
+#define R_PPC_PLT16_HA 31
+#define R_PPC_SDAREL16 32
+#define R_PPC_SECTOFF 33
+#define R_PPC_SECTOFF_LO 34
+#define R_PPC_SECTOFF_HI 35
+#define R_PPC_SECTOFF_HA 36
+
+/* PowerPC relocations defined for the TLS access ABI. */
+#define R_PPC_TLS 67 /* none (sym+add)@tls */
+#define R_PPC_DTPMOD32 68 /* word32 (sym+add)@dtpmod */
+#define R_PPC_TPREL16 69 /* half16* (sym+add)@tprel */
+#define R_PPC_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */
+#define R_PPC_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */
+#define R_PPC_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */
+#define R_PPC_TPREL32 73 /* word32 (sym+add)@tprel */
+#define R_PPC_DTPREL16 74 /* half16* (sym+add)@dtprel */
+#define R_PPC_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */
+#define R_PPC_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */
+#define R_PPC_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */
+#define R_PPC_DTPREL32 78 /* word32 (sym+add)@dtprel */
+#define R_PPC_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */
+#define R_PPC_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */
+#define R_PPC_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */
+#define R_PPC_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */
+#define R_PPC_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */
+#define R_PPC_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */
+#define R_PPC_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */
+#define R_PPC_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */
+#define R_PPC_GOT_TPREL16 87 /* half16* (sym+add)@got@tprel */
+#define R_PPC_GOT_TPREL16_LO 88 /* half16 (sym+add)@got@tprel@l */
+#define R_PPC_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */
+#define R_PPC_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */
+#define R_PPC_GOT_DTPREL16 91 /* half16* (sym+add)@got@dtprel */
+#define R_PPC_GOT_DTPREL16_LO 92 /* half16* (sym+add)@got@dtprel@l */
+#define R_PPC_GOT_DTPREL16_HI 93 /* half16* (sym+add)@got@dtprel@h */
+#define R_PPC_GOT_DTPREL16_HA 94 /* half16* (sym+add)@got@dtprel@ha */
+#define R_PPC_TLSGD 95 /* none (sym+add)@tlsgd */
+#define R_PPC_TLSLD 96 /* none (sym+add)@tlsld */
+
+/* The remaining relocs are from the Embedded ELF ABI, and are not
+ in the SVR4 ELF ABI. */
+#define R_PPC_EMB_NADDR32 101
+#define R_PPC_EMB_NADDR16 102
+#define R_PPC_EMB_NADDR16_LO 103
+#define R_PPC_EMB_NADDR16_HI 104
+#define R_PPC_EMB_NADDR16_HA 105
+#define R_PPC_EMB_SDAI16 106
+#define R_PPC_EMB_SDA2I16 107
+#define R_PPC_EMB_SDA2REL 108
+#define R_PPC_EMB_SDA21 109 /* 16 bit offset in SDA */
+#define R_PPC_EMB_MRKREF 110
+#define R_PPC_EMB_RELSEC16 111
+#define R_PPC_EMB_RELST_LO 112
+#define R_PPC_EMB_RELST_HI 113
+#define R_PPC_EMB_RELST_HA 114
+#define R_PPC_EMB_BIT_FLD 115
+#define R_PPC_EMB_RELSDA 116 /* 16 bit relative offset in SDA */
+
+/* Diab tool relocations. */
+#define R_PPC_DIAB_SDA21_LO 180 /* like EMB_SDA21, but lower 16 bit */
+#define R_PPC_DIAB_SDA21_HI 181 /* like EMB_SDA21, but high 16 bit */
+#define R_PPC_DIAB_SDA21_HA 182 /* like EMB_SDA21, adjusted high 16 */
+#define R_PPC_DIAB_RELSDA_LO 183 /* like EMB_RELSDA, but lower 16 bit */
+#define R_PPC_DIAB_RELSDA_HI 184 /* like EMB_RELSDA, but high 16 bit */
+#define R_PPC_DIAB_RELSDA_HA 185 /* like EMB_RELSDA, adjusted high 16 */
+
+/* GNU extension to support local ifunc. */
+#define R_PPC_IRELATIVE 248
+
+/* GNU relocs used in PIC code sequences. */
+#define R_PPC_REL16 249 /* half16 (sym+add-.) */
+#define R_PPC_REL16_LO 250 /* half16 (sym+add-.)@l */
+#define R_PPC_REL16_HI 251 /* half16 (sym+add-.)@h */
+#define R_PPC_REL16_HA 252 /* half16 (sym+add-.)@ha */
+
+/* This is a phony reloc to handle any old fashioned TOC16 references
+ that may still be in object files. */
+#define R_PPC_TOC16 255
+
+/* PowerPC specific values for the Dyn d_tag field. */
+#define DT_PPC_GOT (DT_LOPROC + 0)
+#define DT_PPC_OPT (DT_LOPROC + 1)
+#define DT_PPC_NUM 2
+
+/* PowerPC specific values for the DT_PPC_OPT Dyn entry. */
+#define PPC_OPT_TLS 1
+
+/* PowerPC64 relocations defined by the ABIs */
+#define R_PPC64_NONE R_PPC_NONE
+#define R_PPC64_ADDR32 R_PPC_ADDR32 /* 32bit absolute address */
+#define R_PPC64_ADDR24 R_PPC_ADDR24 /* 26bit address, word aligned */
+#define R_PPC64_ADDR16 R_PPC_ADDR16 /* 16bit absolute address */
+#define R_PPC64_ADDR16_LO R_PPC_ADDR16_LO /* lower 16bits of address */
+#define R_PPC64_ADDR16_HI R_PPC_ADDR16_HI /* high 16bits of address. */
+#define R_PPC64_ADDR16_HA R_PPC_ADDR16_HA /* adjusted high 16bits. */
+#define R_PPC64_ADDR14 R_PPC_ADDR14 /* 16bit address, word aligned */
+#define R_PPC64_ADDR14_BRTAKEN R_PPC_ADDR14_BRTAKEN
+#define R_PPC64_ADDR14_BRNTAKEN R_PPC_ADDR14_BRNTAKEN
+#define R_PPC64_REL24 R_PPC_REL24 /* PC-rel. 26 bit, word aligned */
+#define R_PPC64_REL14 R_PPC_REL14 /* PC relative 16 bit */
+#define R_PPC64_REL14_BRTAKEN R_PPC_REL14_BRTAKEN
+#define R_PPC64_REL14_BRNTAKEN R_PPC_REL14_BRNTAKEN
+#define R_PPC64_GOT16 R_PPC_GOT16
+#define R_PPC64_GOT16_LO R_PPC_GOT16_LO
+#define R_PPC64_GOT16_HI R_PPC_GOT16_HI
+#define R_PPC64_GOT16_HA R_PPC_GOT16_HA
+
+#define R_PPC64_COPY R_PPC_COPY
+#define R_PPC64_GLOB_DAT R_PPC_GLOB_DAT
+#define R_PPC64_JMP_SLOT R_PPC_JMP_SLOT
+#define R_PPC64_RELATIVE R_PPC_RELATIVE
+
+#define R_PPC64_UADDR32 R_PPC_UADDR32
+#define R_PPC64_UADDR16 R_PPC_UADDR16
+#define R_PPC64_REL32 R_PPC_REL32
+#define R_PPC64_PLT32 R_PPC_PLT32
+#define R_PPC64_PLTREL32 R_PPC_PLTREL32
+#define R_PPC64_PLT16_LO R_PPC_PLT16_LO
+#define R_PPC64_PLT16_HI R_PPC_PLT16_HI
+#define R_PPC64_PLT16_HA R_PPC_PLT16_HA
+
+#define R_PPC64_SECTOFF R_PPC_SECTOFF
+#define R_PPC64_SECTOFF_LO R_PPC_SECTOFF_LO
+#define R_PPC64_SECTOFF_HI R_PPC_SECTOFF_HI
+#define R_PPC64_SECTOFF_HA R_PPC_SECTOFF_HA
+#define R_PPC64_ADDR30 37 /* word30 (S + A - P) >> 2 */
+#define R_PPC64_ADDR64 38 /* doubleword64 S + A */
+#define R_PPC64_ADDR16_HIGHER 39 /* half16 #higher(S + A) */
+#define R_PPC64_ADDR16_HIGHERA 40 /* half16 #highera(S + A) */
+#define R_PPC64_ADDR16_HIGHEST 41 /* half16 #highest(S + A) */
+#define R_PPC64_ADDR16_HIGHESTA 42 /* half16 #highesta(S + A) */
+#define R_PPC64_UADDR64 43 /* doubleword64 S + A */
+#define R_PPC64_REL64 44 /* doubleword64 S + A - P */
+#define R_PPC64_PLT64 45 /* doubleword64 L + A */
+#define R_PPC64_PLTREL64 46 /* doubleword64 L + A - P */
+#define R_PPC64_TOC16 47 /* half16* S + A - .TOC */
+#define R_PPC64_TOC16_LO 48 /* half16 #lo(S + A - .TOC.) */
+#define R_PPC64_TOC16_HI 49 /* half16 #hi(S + A - .TOC.) */
+#define R_PPC64_TOC16_HA 50 /* half16 #ha(S + A - .TOC.) */
+#define R_PPC64_TOC 51 /* doubleword64 .TOC */
+#define R_PPC64_PLTGOT16 52 /* half16* M + A */
+#define R_PPC64_PLTGOT16_LO 53 /* half16 #lo(M + A) */
+#define R_PPC64_PLTGOT16_HI 54 /* half16 #hi(M + A) */
+#define R_PPC64_PLTGOT16_HA 55 /* half16 #ha(M + A) */
+
+#define R_PPC64_ADDR16_DS 56 /* half16ds* (S + A) >> 2 */
+#define R_PPC64_ADDR16_LO_DS 57 /* half16ds #lo(S + A) >> 2 */
+#define R_PPC64_GOT16_DS 58 /* half16ds* (G + A) >> 2 */
+#define R_PPC64_GOT16_LO_DS 59 /* half16ds #lo(G + A) >> 2 */
+#define R_PPC64_PLT16_LO_DS 60 /* half16ds #lo(L + A) >> 2 */
+#define R_PPC64_SECTOFF_DS 61 /* half16ds* (R + A) >> 2 */
+#define R_PPC64_SECTOFF_LO_DS 62 /* half16ds #lo(R + A) >> 2 */
+#define R_PPC64_TOC16_DS 63 /* half16ds* (S + A - .TOC.) >> 2 */
+#define R_PPC64_TOC16_LO_DS 64 /* half16ds #lo(S + A - .TOC.) >> 2 */
+#define R_PPC64_PLTGOT16_DS 65 /* half16ds* (M + A) >> 2 */
+#define R_PPC64_PLTGOT16_LO_DS 66 /* half16ds #lo(M + A) >> 2 */
+
+/* PowerPC64 relocations defined for the TLS access ABI. */
+#define R_PPC64_TLS 67 /* none (sym+add)@tls */
+#define R_PPC64_DTPMOD64 68 /* doubleword64 (sym+add)@dtpmod */
+#define R_PPC64_TPREL16 69 /* half16* (sym+add)@tprel */
+#define R_PPC64_TPREL16_LO 70 /* half16 (sym+add)@tprel@l */
+#define R_PPC64_TPREL16_HI 71 /* half16 (sym+add)@tprel@h */
+#define R_PPC64_TPREL16_HA 72 /* half16 (sym+add)@tprel@ha */
+#define R_PPC64_TPREL64 73 /* doubleword64 (sym+add)@tprel */
+#define R_PPC64_DTPREL16 74 /* half16* (sym+add)@dtprel */
+#define R_PPC64_DTPREL16_LO 75 /* half16 (sym+add)@dtprel@l */
+#define R_PPC64_DTPREL16_HI 76 /* half16 (sym+add)@dtprel@h */
+#define R_PPC64_DTPREL16_HA 77 /* half16 (sym+add)@dtprel@ha */
+#define R_PPC64_DTPREL64 78 /* doubleword64 (sym+add)@dtprel */
+#define R_PPC64_GOT_TLSGD16 79 /* half16* (sym+add)@got@tlsgd */
+#define R_PPC64_GOT_TLSGD16_LO 80 /* half16 (sym+add)@got@tlsgd@l */
+#define R_PPC64_GOT_TLSGD16_HI 81 /* half16 (sym+add)@got@tlsgd@h */
+#define R_PPC64_GOT_TLSGD16_HA 82 /* half16 (sym+add)@got@tlsgd@ha */
+#define R_PPC64_GOT_TLSLD16 83 /* half16* (sym+add)@got@tlsld */
+#define R_PPC64_GOT_TLSLD16_LO 84 /* half16 (sym+add)@got@tlsld@l */
+#define R_PPC64_GOT_TLSLD16_HI 85 /* half16 (sym+add)@got@tlsld@h */
+#define R_PPC64_GOT_TLSLD16_HA 86 /* half16 (sym+add)@got@tlsld@ha */
+#define R_PPC64_GOT_TPREL16_DS 87 /* half16ds* (sym+add)@got@tprel */
+#define R_PPC64_GOT_TPREL16_LO_DS 88 /* half16ds (sym+add)@got@tprel@l */
+#define R_PPC64_GOT_TPREL16_HI 89 /* half16 (sym+add)@got@tprel@h */
+#define R_PPC64_GOT_TPREL16_HA 90 /* half16 (sym+add)@got@tprel@ha */
+#define R_PPC64_GOT_DTPREL16_DS 91 /* half16ds* (sym+add)@got@dtprel */
+#define R_PPC64_GOT_DTPREL16_LO_DS 92 /* half16ds (sym+add)@got@dtprel@l */
+#define R_PPC64_GOT_DTPREL16_HI 93 /* half16 (sym+add)@got@dtprel@h */
+#define R_PPC64_GOT_DTPREL16_HA 94 /* half16 (sym+add)@got@dtprel@ha */
+#define R_PPC64_TPREL16_DS 95 /* half16ds* (sym+add)@tprel */
+#define R_PPC64_TPREL16_LO_DS 96 /* half16ds (sym+add)@tprel@l */
+#define R_PPC64_TPREL16_HIGHER 97 /* half16 (sym+add)@tprel@higher */
+#define R_PPC64_TPREL16_HIGHERA 98 /* half16 (sym+add)@tprel@highera */
+#define R_PPC64_TPREL16_HIGHEST 99 /* half16 (sym+add)@tprel@highest */
+#define R_PPC64_TPREL16_HIGHESTA 100 /* half16 (sym+add)@tprel@highesta */
+#define R_PPC64_DTPREL16_DS 101 /* half16ds* (sym+add)@dtprel */
+#define R_PPC64_DTPREL16_LO_DS 102 /* half16ds (sym+add)@dtprel@l */
+#define R_PPC64_DTPREL16_HIGHER 103 /* half16 (sym+add)@dtprel@higher */
+#define R_PPC64_DTPREL16_HIGHERA 104 /* half16 (sym+add)@dtprel@highera */
+#define R_PPC64_DTPREL16_HIGHEST 105 /* half16 (sym+add)@dtprel@highest */
+#define R_PPC64_DTPREL16_HIGHESTA 106 /* half16 (sym+add)@dtprel@highesta */
+#define R_PPC64_TLSGD 107 /* none (sym+add)@tlsgd */
+#define R_PPC64_TLSLD 108 /* none (sym+add)@tlsld */
+#define R_PPC64_TOCSAVE 109 /* none */
+
+/* Added when HA and HI relocs were changed to report overflows. */
+#define R_PPC64_ADDR16_HIGH 110
+#define R_PPC64_ADDR16_HIGHA 111
+#define R_PPC64_TPREL16_HIGH 112
+#define R_PPC64_TPREL16_HIGHA 113
+#define R_PPC64_DTPREL16_HIGH 114
+#define R_PPC64_DTPREL16_HIGHA 115
+
+/* GNU extension to support local ifunc. */
+#define R_PPC64_JMP_IREL 247
+#define R_PPC64_IRELATIVE 248
+#define R_PPC64_REL16 249 /* half16 (sym+add-.) */
+#define R_PPC64_REL16_LO 250 /* half16 (sym+add-.)@l */
+#define R_PPC64_REL16_HI 251 /* half16 (sym+add-.)@h */
+#define R_PPC64_REL16_HA 252 /* half16 (sym+add-.)@ha */
+
+/* e_flags bits specifying ABI.
+ 1 for original function descriptor using ABI,
+ 2 for revised ABI without function descriptors,
+ 0 for unspecified or not using any features affected by the differences. */
+#define EF_PPC64_ABI 3
+
+/* PowerPC64 specific values for the Dyn d_tag field. */
+#define DT_PPC64_GLINK (DT_LOPROC + 0)
+#define DT_PPC64_OPD (DT_LOPROC + 1)
+#define DT_PPC64_OPDSZ (DT_LOPROC + 2)
+#define DT_PPC64_OPT (DT_LOPROC + 3)
+#define DT_PPC64_NUM 4
+
+/* PowerPC64 specific bits in the DT_PPC64_OPT Dyn entry. */
+#define PPC64_OPT_TLS 1
+#define PPC64_OPT_MULTI_TOC 2
+#define PPC64_OPT_LOCALENTRY 4
+
+/* PowerPC64 specific values for the Elf64_Sym st_other field. */
+#define STO_PPC64_LOCAL_BIT 5
+#define STO_PPC64_LOCAL_MASK (7 << STO_PPC64_LOCAL_BIT)
+#define PPC64_LOCAL_ENTRY_OFFSET(other) \
+ (((1 << (((other) & STO_PPC64_LOCAL_MASK) >> STO_PPC64_LOCAL_BIT)) >> 2) << 2)
+
+
+/* ARM specific declarations */
+
+/* Processor specific flags for the ELF header e_flags field. */
+#define EF_ARM_RELEXEC 0x01
+#define EF_ARM_HASENTRY 0x02
+#define EF_ARM_INTERWORK 0x04
+#define EF_ARM_APCS_26 0x08
+#define EF_ARM_APCS_FLOAT 0x10
+#define EF_ARM_PIC 0x20
+#define EF_ARM_ALIGN8 0x40 /* 8-bit structure alignment is in use */
+#define EF_ARM_NEW_ABI 0x80
+#define EF_ARM_OLD_ABI 0x100
+#define EF_ARM_SOFT_FLOAT 0x200
+#define EF_ARM_VFP_FLOAT 0x400
+#define EF_ARM_MAVERICK_FLOAT 0x800
+
+#define EF_ARM_ABI_FLOAT_SOFT 0x200 /* NB conflicts with EF_ARM_SOFT_FLOAT */
+#define EF_ARM_ABI_FLOAT_HARD 0x400 /* NB conflicts with EF_ARM_VFP_FLOAT */
+
+
+/* Other constants defined in the ARM ELF spec. version B-01. */
+/* NB. These conflict with values defined above. */
+#define EF_ARM_SYMSARESORTED 0x04
+#define EF_ARM_DYNSYMSUSESEGIDX 0x08
+#define EF_ARM_MAPSYMSFIRST 0x10
+#define EF_ARM_EABIMASK 0XFF000000
+
+/* Constants defined in AAELF. */
+#define EF_ARM_BE8 0x00800000
+#define EF_ARM_LE8 0x00400000
+
+#define EF_ARM_EABI_VERSION(flags) ((flags) & EF_ARM_EABIMASK)
+#define EF_ARM_EABI_UNKNOWN 0x00000000
+#define EF_ARM_EABI_VER1 0x01000000
+#define EF_ARM_EABI_VER2 0x02000000
+#define EF_ARM_EABI_VER3 0x03000000
+#define EF_ARM_EABI_VER4 0x04000000
+#define EF_ARM_EABI_VER5 0x05000000
+
+/* Additional symbol types for Thumb. */
+#define STT_ARM_TFUNC STT_LOPROC /* A Thumb function. */
+#define STT_ARM_16BIT STT_HIPROC /* A Thumb label. */
+
+/* ARM-specific values for sh_flags */
+#define SHF_ARM_ENTRYSECT 0x10000000 /* Section contains an entry point */
+#define SHF_ARM_COMDEF 0x80000000 /* Section may be multiply defined
+ in the input to a link step. */
+
+/* ARM-specific program header flags */
+#define PF_ARM_SB 0x10000000 /* Segment contains the location
+ addressed by the static base. */
+#define PF_ARM_PI 0x20000000 /* Position-independent segment. */
+#define PF_ARM_ABS 0x40000000 /* Absolute segment. */
+
+/* Processor specific values for the Phdr p_type field. */
+#define PT_ARM_EXIDX (PT_LOPROC + 1) /* ARM unwind segment. */
+
+/* Processor specific values for the Shdr sh_type field. */
+#define SHT_ARM_EXIDX (SHT_LOPROC + 1) /* ARM unwind section. */
+#define SHT_ARM_PREEMPTMAP (SHT_LOPROC + 2) /* Preemption details. */
+#define SHT_ARM_ATTRIBUTES (SHT_LOPROC + 3) /* ARM attributes section. */
+
+
+/* AArch64 relocs. */
+
+#define R_AARCH64_NONE 0 /* No relocation. */
+
+/* ILP32 AArch64 relocs. */
+#define R_AARCH64_P32_ABS32 1 /* Direct 32 bit. */
+#define R_AARCH64_P32_COPY 180 /* Copy symbol at runtime. */
+#define R_AARCH64_P32_GLOB_DAT 181 /* Create GOT entry. */
+#define R_AARCH64_P32_JUMP_SLOT 182 /* Create PLT entry. */
+#define R_AARCH64_P32_RELATIVE 183 /* Adjust by program base. */
+#define R_AARCH64_P32_TLS_DTPMOD 184 /* Module number, 32 bit. */
+#define R_AARCH64_P32_TLS_DTPREL 185 /* Module-relative offset, 32 bit. */
+#define R_AARCH64_P32_TLS_TPREL 186 /* TP-relative offset, 32 bit. */
+#define R_AARCH64_P32_TLSDESC 187 /* TLS Descriptor. */
+#define R_AARCH64_P32_IRELATIVE 188 /* STT_GNU_IFUNC relocation. */
+
+/* LP64 AArch64 relocs. */
+#define R_AARCH64_ABS64 257 /* Direct 64 bit. */
+#define R_AARCH64_ABS32 258 /* Direct 32 bit. */
+#define R_AARCH64_ABS16 259 /* Direct 16-bit. */
+#define R_AARCH64_PREL64 260 /* PC-relative 64-bit. */
+#define R_AARCH64_PREL32 261 /* PC-relative 32-bit. */
+#define R_AARCH64_PREL16 262 /* PC-relative 16-bit. */
+#define R_AARCH64_MOVW_UABS_G0 263 /* Dir. MOVZ imm. from bits 15:0. */
+#define R_AARCH64_MOVW_UABS_G0_NC 264 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_UABS_G1 265 /* Dir. MOVZ imm. from bits 31:16. */
+#define R_AARCH64_MOVW_UABS_G1_NC 266 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_UABS_G2 267 /* Dir. MOVZ imm. from bits 47:32. */
+#define R_AARCH64_MOVW_UABS_G2_NC 268 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_UABS_G3 269 /* Dir. MOV{K,Z} imm. from 63:48. */
+#define R_AARCH64_MOVW_SABS_G0 270 /* Dir. MOV{N,Z} imm. from 15:0. */
+#define R_AARCH64_MOVW_SABS_G1 271 /* Dir. MOV{N,Z} imm. from 31:16. */
+#define R_AARCH64_MOVW_SABS_G2 272 /* Dir. MOV{N,Z} imm. from 47:32. */
+#define R_AARCH64_LD_PREL_LO19 273 /* PC-rel. LD imm. from bits 20:2. */
+#define R_AARCH64_ADR_PREL_LO21 274 /* PC-rel. ADR imm. from bits 20:0. */
+#define R_AARCH64_ADR_PREL_PG_HI21 275 /* Page-rel. ADRP imm. from 32:12. */
+#define R_AARCH64_ADR_PREL_PG_HI21_NC 276 /* Likewise; no overflow check. */
+#define R_AARCH64_ADD_ABS_LO12_NC 277 /* Dir. ADD imm. from bits 11:0. */
+#define R_AARCH64_LDST8_ABS_LO12_NC 278 /* Likewise for LD/ST; no check. */
+#define R_AARCH64_TSTBR14 279 /* PC-rel. TBZ/TBNZ imm. from 15:2. */
+#define R_AARCH64_CONDBR19 280 /* PC-rel. cond. br. imm. from 20:2. */
+#define R_AARCH64_JUMP26 282 /* PC-rel. B imm. from bits 27:2. */
+#define R_AARCH64_CALL26 283 /* Likewise for CALL. */
+#define R_AARCH64_LDST16_ABS_LO12_NC 284 /* Dir. ADD imm. from bits 11:1. */
+#define R_AARCH64_LDST32_ABS_LO12_NC 285 /* Likewise for bits 11:2. */
+#define R_AARCH64_LDST64_ABS_LO12_NC 286 /* Likewise for bits 11:3. */
+#define R_AARCH64_MOVW_PREL_G0 287 /* PC-rel. MOV{N,Z} imm. from 15:0. */
+#define R_AARCH64_MOVW_PREL_G0_NC 288 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_PREL_G1 289 /* PC-rel. MOV{N,Z} imm. from 31:16. */
+#define R_AARCH64_MOVW_PREL_G1_NC 290 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_PREL_G2 291 /* PC-rel. MOV{N,Z} imm. from 47:32. */
+#define R_AARCH64_MOVW_PREL_G2_NC 292 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_PREL_G3 293 /* PC-rel. MOV{N,Z} imm. from 63:48. */
+#define R_AARCH64_LDST128_ABS_LO12_NC 299 /* Dir. ADD imm. from bits 11:4. */
+#define R_AARCH64_MOVW_GOTOFF_G0 300 /* GOT-rel. off. MOV{N,Z} imm. 15:0. */
+#define R_AARCH64_MOVW_GOTOFF_G0_NC 301 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_GOTOFF_G1 302 /* GOT-rel. o. MOV{N,Z} imm. 31:16. */
+#define R_AARCH64_MOVW_GOTOFF_G1_NC 303 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_GOTOFF_G2 304 /* GOT-rel. o. MOV{N,Z} imm. 47:32. */
+#define R_AARCH64_MOVW_GOTOFF_G2_NC 305 /* Likewise for MOVK; no check. */
+#define R_AARCH64_MOVW_GOTOFF_G3 306 /* GOT-rel. o. MOV{N,Z} imm. 63:48. */
+#define R_AARCH64_GOTREL64 307 /* GOT-relative 64-bit. */
+#define R_AARCH64_GOTREL32 308 /* GOT-relative 32-bit. */
+#define R_AARCH64_GOT_LD_PREL19 309 /* PC-rel. GOT off. load imm. 20:2. */
+#define R_AARCH64_LD64_GOTOFF_LO15 310 /* GOT-rel. off. LD/ST imm. 14:3. */
+#define R_AARCH64_ADR_GOT_PAGE 311 /* P-page-rel. GOT off. ADRP 32:12. */
+#define R_AARCH64_LD64_GOT_LO12_NC 312 /* Dir. GOT off. LD/ST imm. 11:3. */
+#define R_AARCH64_LD64_GOTPAGE_LO15 313 /* GOT-page-rel. GOT off. LD/ST 14:3 */
+#define R_AARCH64_TLSGD_ADR_PREL21 512 /* PC-relative ADR imm. 20:0. */
+#define R_AARCH64_TLSGD_ADR_PAGE21 513 /* page-rel. ADRP imm. 32:12. */
+#define R_AARCH64_TLSGD_ADD_LO12_NC 514 /* direct ADD imm. from 11:0. */
+#define R_AARCH64_TLSGD_MOVW_G1 515 /* GOT-rel. MOV{N,Z} 31:16. */
+#define R_AARCH64_TLSGD_MOVW_G0_NC 516 /* GOT-rel. MOVK imm. 15:0. */
+#define R_AARCH64_TLSLD_ADR_PREL21 517 /* Like 512; local dynamic model. */
+#define R_AARCH64_TLSLD_ADR_PAGE21 518 /* Like 513; local dynamic model. */
+#define R_AARCH64_TLSLD_ADD_LO12_NC 519 /* Like 514; local dynamic model. */
+#define R_AARCH64_TLSLD_MOVW_G1 520 /* Like 515; local dynamic model. */
+#define R_AARCH64_TLSLD_MOVW_G0_NC 521 /* Like 516; local dynamic model. */
+#define R_AARCH64_TLSLD_LD_PREL19 522 /* TLS PC-rel. load imm. 20:2. */
+#define R_AARCH64_TLSLD_MOVW_DTPREL_G2 523 /* TLS DTP-rel. MOV{N,Z} 47:32. */
+#define R_AARCH64_TLSLD_MOVW_DTPREL_G1 524 /* TLS DTP-rel. MOV{N,Z} 31:16. */
+#define R_AARCH64_TLSLD_MOVW_DTPREL_G1_NC 525 /* Likewise; MOVK; no check. */
+#define R_AARCH64_TLSLD_MOVW_DTPREL_G0 526 /* TLS DTP-rel. MOV{N,Z} 15:0. */
+#define R_AARCH64_TLSLD_MOVW_DTPREL_G0_NC 527 /* Likewise; MOVK; no check. */
+#define R_AARCH64_TLSLD_ADD_DTPREL_HI12 528 /* DTP-rel. ADD imm. from 23:12. */
+#define R_AARCH64_TLSLD_ADD_DTPREL_LO12 529 /* DTP-rel. ADD imm. from 11:0. */
+#define R_AARCH64_TLSLD_ADD_DTPREL_LO12_NC 530 /* Likewise; no ovfl. check. */
+#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12 531 /* DTP-rel. LD/ST imm. 11:0. */
+#define R_AARCH64_TLSLD_LDST8_DTPREL_LO12_NC 532 /* Likewise; no check. */
+#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12 533 /* DTP-rel. LD/ST imm. 11:1. */
+#define R_AARCH64_TLSLD_LDST16_DTPREL_LO12_NC 534 /* Likewise; no check. */
+#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12 535 /* DTP-rel. LD/ST imm. 11:2. */
+#define R_AARCH64_TLSLD_LDST32_DTPREL_LO12_NC 536 /* Likewise; no check. */
+#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12 537 /* DTP-rel. LD/ST imm. 11:3. */
+#define R_AARCH64_TLSLD_LDST64_DTPREL_LO12_NC 538 /* Likewise; no check. */
+#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G1 539 /* GOT-rel. MOV{N,Z} 31:16. */
+#define R_AARCH64_TLSIE_MOVW_GOTTPREL_G0_NC 540 /* GOT-rel. MOVK 15:0. */
+#define R_AARCH64_TLSIE_ADR_GOTTPREL_PAGE21 541 /* Page-rel. ADRP 32:12. */
+#define R_AARCH64_TLSIE_LD64_GOTTPREL_LO12_NC 542 /* Direct LD off. 11:3. */
+#define R_AARCH64_TLSIE_LD_GOTTPREL_PREL19 543 /* PC-rel. load imm. 20:2. */
+#define R_AARCH64_TLSLE_MOVW_TPREL_G2 544 /* TLS TP-rel. MOV{N,Z} 47:32. */
+#define R_AARCH64_TLSLE_MOVW_TPREL_G1 545 /* TLS TP-rel. MOV{N,Z} 31:16. */
+#define R_AARCH64_TLSLE_MOVW_TPREL_G1_NC 546 /* Likewise; MOVK; no check. */
+#define R_AARCH64_TLSLE_MOVW_TPREL_G0 547 /* TLS TP-rel. MOV{N,Z} 15:0. */
+#define R_AARCH64_TLSLE_MOVW_TPREL_G0_NC 548 /* Likewise; MOVK; no check. */
+#define R_AARCH64_TLSLE_ADD_TPREL_HI12 549 /* TP-rel. ADD imm. 23:12. */
+#define R_AARCH64_TLSLE_ADD_TPREL_LO12 550 /* TP-rel. ADD imm. 11:0. */
+#define R_AARCH64_TLSLE_ADD_TPREL_LO12_NC 551 /* Likewise; no ovfl. check. */
+#define R_AARCH64_TLSLE_LDST8_TPREL_LO12 552 /* TP-rel. LD/ST off. 11:0. */
+#define R_AARCH64_TLSLE_LDST8_TPREL_LO12_NC 553 /* Likewise; no ovfl. check. */
+#define R_AARCH64_TLSLE_LDST16_TPREL_LO12 554 /* TP-rel. LD/ST off. 11:1. */
+#define R_AARCH64_TLSLE_LDST16_TPREL_LO12_NC 555 /* Likewise; no check. */
+#define R_AARCH64_TLSLE_LDST32_TPREL_LO12 556 /* TP-rel. LD/ST off. 11:2. */
+#define R_AARCH64_TLSLE_LDST32_TPREL_LO12_NC 557 /* Likewise; no check. */
+#define R_AARCH64_TLSLE_LDST64_TPREL_LO12 558 /* TP-rel. LD/ST off. 11:3. */
+#define R_AARCH64_TLSLE_LDST64_TPREL_LO12_NC 559 /* Likewise; no check. */
+#define R_AARCH64_TLSDESC_LD_PREL19 560 /* PC-rel. load immediate 20:2. */
+#define R_AARCH64_TLSDESC_ADR_PREL21 561 /* PC-rel. ADR immediate 20:0. */
+#define R_AARCH64_TLSDESC_ADR_PAGE21 562 /* Page-rel. ADRP imm. 32:12. */
+#define R_AARCH64_TLSDESC_LD64_LO12 563 /* Direct LD off. from 11:3. */
+#define R_AARCH64_TLSDESC_ADD_LO12 564 /* Direct ADD imm. from 11:0. */
+#define R_AARCH64_TLSDESC_OFF_G1 565 /* GOT-rel. MOV{N,Z} imm. 31:16. */
+#define R_AARCH64_TLSDESC_OFF_G0_NC 566 /* GOT-rel. MOVK imm. 15:0; no ck. */
+#define R_AARCH64_TLSDESC_LDR 567 /* Relax LDR. */
+#define R_AARCH64_TLSDESC_ADD 568 /* Relax ADD. */
+#define R_AARCH64_TLSDESC_CALL 569 /* Relax BLR. */
+#define R_AARCH64_TLSLE_LDST128_TPREL_LO12 570 /* TP-rel. LD/ST off. 11:4. */
+#define R_AARCH64_TLSLE_LDST128_TPREL_LO12_NC 571 /* Likewise; no check. */
+#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12 572 /* DTP-rel. LD/ST imm. 11:4. */
+#define R_AARCH64_TLSLD_LDST128_DTPREL_LO12_NC 573 /* Likewise; no check. */
+#define R_AARCH64_COPY 1024 /* Copy symbol at runtime. */
+#define R_AARCH64_GLOB_DAT 1025 /* Create GOT entry. */
+#define R_AARCH64_JUMP_SLOT 1026 /* Create PLT entry. */
+#define R_AARCH64_RELATIVE 1027 /* Adjust by program base. */
+#define R_AARCH64_TLS_DTPMOD 1028 /* Module number, 64 bit. */
+#define R_AARCH64_TLS_DTPREL 1029 /* Module-relative offset, 64 bit. */
+#define R_AARCH64_TLS_TPREL 1030 /* TP-relative offset, 64 bit. */
+#define R_AARCH64_TLSDESC 1031 /* TLS Descriptor. */
+#define R_AARCH64_IRELATIVE 1032 /* STT_GNU_IFUNC relocation. */
+
+/* ARM relocs. */
+
+#define R_ARM_NONE 0 /* No reloc */
+#define R_ARM_PC24 1 /* Deprecated PC relative 26
+ bit branch. */
+#define R_ARM_ABS32 2 /* Direct 32 bit */
+#define R_ARM_REL32 3 /* PC relative 32 bit */
+#define R_ARM_PC13 4
+#define R_ARM_ABS16 5 /* Direct 16 bit */
+#define R_ARM_ABS12 6 /* Direct 12 bit */
+#define R_ARM_THM_ABS5 7 /* Direct & 0x7C (LDR, STR). */
+#define R_ARM_ABS8 8 /* Direct 8 bit */
+#define R_ARM_SBREL32 9
+#define R_ARM_THM_PC22 10 /* PC relative 24 bit (Thumb32 BL). */
+#define R_ARM_THM_PC8 11 /* PC relative & 0x3FC
+ (Thumb16 LDR, ADD, ADR). */
+#define R_ARM_AMP_VCALL9 12
+#define R_ARM_SWI24 13 /* Obsolete static relocation. */
+#define R_ARM_TLS_DESC 13 /* Dynamic relocation. */
+#define R_ARM_THM_SWI8 14 /* Reserved. */
+#define R_ARM_XPC25 15 /* Reserved. */
+#define R_ARM_THM_XPC22 16 /* Reserved. */
+#define R_ARM_TLS_DTPMOD32 17 /* ID of module containing symbol */
+#define R_ARM_TLS_DTPOFF32 18 /* Offset in TLS block */
+#define R_ARM_TLS_TPOFF32 19 /* Offset in static TLS block */
+#define R_ARM_COPY 20 /* Copy symbol at runtime */
+#define R_ARM_GLOB_DAT 21 /* Create GOT entry */
+#define R_ARM_JUMP_SLOT 22 /* Create PLT entry */
+#define R_ARM_RELATIVE 23 /* Adjust by program base */
+#define R_ARM_GOTOFF 24 /* 32 bit offset to GOT */
+#define R_ARM_GOTPC 25 /* 32 bit PC relative offset to GOT */
+#define R_ARM_GOT32 26 /* 32 bit GOT entry */
+#define R_ARM_PLT32 27 /* Deprecated, 32 bit PLT address. */
+#define R_ARM_CALL 28 /* PC relative 24 bit (BL, BLX). */
+#define R_ARM_JUMP24 29 /* PC relative 24 bit
+ (B, BL). */
+#define R_ARM_THM_JUMP24 30 /* PC relative 24 bit (Thumb32 B.W). */
+#define R_ARM_BASE_ABS 31 /* Adjust by program base. */
+#define R_ARM_ALU_PCREL_7_0 32 /* Obsolete. */
+#define R_ARM_ALU_PCREL_15_8 33 /* Obsolete. */
+#define R_ARM_ALU_PCREL_23_15 34 /* Obsolete. */
+#define R_ARM_LDR_SBREL_11_0 35 /* Deprecated, prog. base relative. */
+#define R_ARM_ALU_SBREL_19_12 36 /* Deprecated, prog. base relative. */
+#define R_ARM_ALU_SBREL_27_20 37 /* Deprecated, prog. base relative. */
+#define R_ARM_TARGET1 38
+#define R_ARM_SBREL31 39 /* Program base relative. */
+#define R_ARM_V4BX 40
+#define R_ARM_TARGET2 41
+#define R_ARM_PREL31 42 /* 32 bit PC relative. */
+#define R_ARM_MOVW_ABS_NC 43 /* Direct 16-bit (MOVW). */
+#define R_ARM_MOVT_ABS 44 /* Direct high 16-bit (MOVT). */
+#define R_ARM_MOVW_PREL_NC 45 /* PC relative 16-bit (MOVW). */
+#define R_ARM_MOVT_PREL 46 /* PC relative (MOVT). */
+#define R_ARM_THM_MOVW_ABS_NC 47 /* Direct 16 bit (Thumb32 MOVW). */
+#define R_ARM_THM_MOVT_ABS 48 /* Direct high 16 bit
+ (Thumb32 MOVT). */
+#define R_ARM_THM_MOVW_PREL_NC 49 /* PC relative 16 bit
+ (Thumb32 MOVW). */
+#define R_ARM_THM_MOVT_PREL 50 /* PC relative high 16 bit
+ (Thumb32 MOVT). */
+#define R_ARM_THM_JUMP19 51 /* PC relative 20 bit
+ (Thumb32 B.W). */
+#define R_ARM_THM_JUMP6 52 /* PC relative X & 0x7E
+ (Thumb16 CBZ, CBNZ). */
+#define R_ARM_THM_ALU_PREL_11_0 53 /* PC relative 12 bit
+ (Thumb32 ADR.W). */
+#define R_ARM_THM_PC12 54 /* PC relative 12 bit
+ (Thumb32 LDR{D,SB,H,SH}). */
+#define R_ARM_ABS32_NOI 55 /* Direct 32-bit. */
+#define R_ARM_REL32_NOI 56 /* PC relative 32-bit. */
+#define R_ARM_ALU_PC_G0_NC 57 /* PC relative (ADD, SUB). */
+#define R_ARM_ALU_PC_G0 58 /* PC relative (ADD, SUB). */
+#define R_ARM_ALU_PC_G1_NC 59 /* PC relative (ADD, SUB). */
+#define R_ARM_ALU_PC_G1 60 /* PC relative (ADD, SUB). */
+#define R_ARM_ALU_PC_G2 61 /* PC relative (ADD, SUB). */
+#define R_ARM_LDR_PC_G1 62 /* PC relative (LDR,STR,LDRB,STRB). */
+#define R_ARM_LDR_PC_G2 63 /* PC relative (LDR,STR,LDRB,STRB). */
+#define R_ARM_LDRS_PC_G0 64 /* PC relative (STR{D,H},
+ LDR{D,SB,H,SH}). */
+#define R_ARM_LDRS_PC_G1 65 /* PC relative (STR{D,H},
+ LDR{D,SB,H,SH}). */
+#define R_ARM_LDRS_PC_G2 66 /* PC relative (STR{D,H},
+ LDR{D,SB,H,SH}). */
+#define R_ARM_LDC_PC_G0 67 /* PC relative (LDC, STC). */
+#define R_ARM_LDC_PC_G1 68 /* PC relative (LDC, STC). */
+#define R_ARM_LDC_PC_G2 69 /* PC relative (LDC, STC). */
+#define R_ARM_ALU_SB_G0_NC 70 /* Program base relative (ADD,SUB). */
+#define R_ARM_ALU_SB_G0 71 /* Program base relative (ADD,SUB). */
+#define R_ARM_ALU_SB_G1_NC 72 /* Program base relative (ADD,SUB). */
+#define R_ARM_ALU_SB_G1 73 /* Program base relative (ADD,SUB). */
+#define R_ARM_ALU_SB_G2 74 /* Program base relative (ADD,SUB). */
+#define R_ARM_LDR_SB_G0 75 /* Program base relative (LDR,
+ STR, LDRB, STRB). */
+#define R_ARM_LDR_SB_G1 76 /* Program base relative
+ (LDR, STR, LDRB, STRB). */
+#define R_ARM_LDR_SB_G2 77 /* Program base relative
+ (LDR, STR, LDRB, STRB). */
+#define R_ARM_LDRS_SB_G0 78 /* Program base relative
+ (LDR, STR, LDRB, STRB). */
+#define R_ARM_LDRS_SB_G1 79 /* Program base relative
+ (LDR, STR, LDRB, STRB). */
+#define R_ARM_LDRS_SB_G2 80 /* Program base relative
+ (LDR, STR, LDRB, STRB). */
+#define R_ARM_LDC_SB_G0 81 /* Program base relative (LDC,STC). */
+#define R_ARM_LDC_SB_G1 82 /* Program base relative (LDC,STC). */
+#define R_ARM_LDC_SB_G2 83 /* Program base relative (LDC,STC). */
+#define R_ARM_MOVW_BREL_NC 84 /* Program base relative 16
+ bit (MOVW). */
+#define R_ARM_MOVT_BREL 85 /* Program base relative high
+ 16 bit (MOVT). */
+#define R_ARM_MOVW_BREL 86 /* Program base relative 16
+ bit (MOVW). */
+#define R_ARM_THM_MOVW_BREL_NC 87 /* Program base relative 16
+ bit (Thumb32 MOVW). */
+#define R_ARM_THM_MOVT_BREL 88 /* Program base relative high
+ 16 bit (Thumb32 MOVT). */
+#define R_ARM_THM_MOVW_BREL 89 /* Program base relative 16
+ bit (Thumb32 MOVW). */
+#define R_ARM_TLS_GOTDESC 90
+#define R_ARM_TLS_CALL 91
+#define R_ARM_TLS_DESCSEQ 92 /* TLS relaxation. */
+#define R_ARM_THM_TLS_CALL 93
+#define R_ARM_PLT32_ABS 94
+#define R_ARM_GOT_ABS 95 /* GOT entry. */
+#define R_ARM_GOT_PREL 96 /* PC relative GOT entry. */
+#define R_ARM_GOT_BREL12 97 /* GOT entry relative to GOT
+ origin (LDR). */
+#define R_ARM_GOTOFF12 98 /* 12 bit, GOT entry relative
+ to GOT origin (LDR, STR). */
+#define R_ARM_GOTRELAX 99
+#define R_ARM_GNU_VTENTRY 100
+#define R_ARM_GNU_VTINHERIT 101
+#define R_ARM_THM_PC11 102 /* PC relative & 0xFFE (Thumb16 B). */
+#define R_ARM_THM_PC9 103 /* PC relative & 0x1FE
+ (Thumb16 B/B). */
+#define R_ARM_TLS_GD32 104 /* PC-rel 32 bit for global dynamic
+ thread local data */
+#define R_ARM_TLS_LDM32 105 /* PC-rel 32 bit for local dynamic
+ thread local data */
+#define R_ARM_TLS_LDO32 106 /* 32 bit offset relative to TLS
+ block */
+#define R_ARM_TLS_IE32 107 /* PC-rel 32 bit for GOT entry of
+ static TLS block offset */
+#define R_ARM_TLS_LE32 108 /* 32 bit offset relative to static
+ TLS block */
+#define R_ARM_TLS_LDO12 109 /* 12 bit relative to TLS
+ block (LDR, STR). */
+#define R_ARM_TLS_LE12 110 /* 12 bit relative to static
+ TLS block (LDR, STR). */
+#define R_ARM_TLS_IE12GP 111 /* 12 bit GOT entry relative
+ to GOT origin (LDR). */
+#define R_ARM_ME_TOO 128 /* Obsolete. */
+#define R_ARM_THM_TLS_DESCSEQ 129
+#define R_ARM_THM_TLS_DESCSEQ16 129
+#define R_ARM_THM_TLS_DESCSEQ32 130
+#define R_ARM_THM_GOT_BREL12 131 /* GOT entry relative to GOT
+ origin, 12 bit (Thumb32 LDR). */
+#define R_ARM_IRELATIVE 160
+#define R_ARM_RXPC25 249
+#define R_ARM_RSBREL32 250
+#define R_ARM_THM_RPC22 251
+#define R_ARM_RREL32 252
+#define R_ARM_RABS22 253
+#define R_ARM_RPC24 254
+#define R_ARM_RBASE 255
+/* Keep this the last entry. */
+#define R_ARM_NUM 256
+
+/* csky */
+#define R_CKCORE_NONE 0 /* no reloc */
+#define R_CKCORE_ADDR32 1 /* direct 32 bit (S + A) */
+#define R_CKCORE_PCRELIMM8BY4 2 /* disp ((S + A - P) >> 2) & 0xff */
+#define R_CKCORE_PCRELIMM11BY2 3 /* disp ((S + A - P) >> 1) & 0x7ff */
+#define R_CKCORE_PCREL32 5 /* 32-bit rel (S + A - P) */
+#define R_CKCORE_PCRELJSR_IMM11BY2 6 /* disp ((S + A - P) >>1) & 0x7ff */
+#define R_CKCORE_RELATIVE 9 /* 32 bit adjust program base(B + A)*/
+#define R_CKCORE_COPY 10 /* 32 bit adjust by program base */
+#define R_CKCORE_GLOB_DAT 11 /* off between got and sym (S) */
+#define R_CKCORE_JUMP_SLOT 12 /* PLT entry (S) */
+#define R_CKCORE_GOTOFF 13 /* offset to GOT (S + A - GOT) */
+#define R_CKCORE_GOTPC 14 /* PC offset to GOT (GOT + A - P) */
+#define R_CKCORE_GOT32 15 /* 32 bit GOT entry (G) */
+#define R_CKCORE_PLT32 16 /* 32 bit PLT entry (G) */
+#define R_CKCORE_ADDRGOT 17 /* GOT entry in GLOB_DAT (GOT + G) */
+#define R_CKCORE_ADDRPLT 18 /* PLT entry in GLOB_DAT (GOT + G) */
+#define R_CKCORE_PCREL_IMM26BY2 19 /* ((S + A - P) >> 1) & 0x3ffffff */
+#define R_CKCORE_PCREL_IMM16BY2 20 /* disp ((S + A - P) >> 1) & 0xffff */
+#define R_CKCORE_PCREL_IMM16BY4 21 /* disp ((S + A - P) >> 2) & 0xffff */
+#define R_CKCORE_PCREL_IMM10BY2 22 /* disp ((S + A - P) >> 1) & 0x3ff */
+#define R_CKCORE_PCREL_IMM10BY4 23 /* disp ((S + A - P) >> 2) & 0x3ff */
+#define R_CKCORE_ADDR_HI16 24 /* high & low 16 bit ADDR */
+ /* ((S + A) >> 16) & 0xffff */
+#define R_CKCORE_ADDR_LO16 25 /* (S + A) & 0xffff */
+#define R_CKCORE_GOTPC_HI16 26 /* high & low 16 bit GOTPC */
+ /* ((GOT + A - P) >> 16) & 0xffff */
+#define R_CKCORE_GOTPC_LO16 27 /* (GOT + A - P) & 0xffff */
+#define R_CKCORE_GOTOFF_HI16 28 /* high & low 16 bit GOTOFF */
+ /* ((S + A - GOT) >> 16) & 0xffff */
+#define R_CKCORE_GOTOFF_LO16 29 /* (S + A - GOT) & 0xffff */
+#define R_CKCORE_GOT12 30 /* 12 bit disp GOT entry (G) */
+#define R_CKCORE_GOT_HI16 31 /* high & low 16 bit GOT */
+ /* (G >> 16) & 0xffff */
+#define R_CKCORE_GOT_LO16 32 /* (G & 0xffff) */
+#define R_CKCORE_PLT12 33 /* 12 bit disp PLT entry (G) */
+#define R_CKCORE_PLT_HI16 34 /* high & low 16 bit PLT */
+ /* (G >> 16) & 0xffff */
+#define R_CKCORE_PLT_LO16 35 /* G & 0xffff */
+#define R_CKCORE_ADDRGOT_HI16 36 /* high & low 16 bit ADDRGOT */
+ /* (GOT + G * 4) & 0xffff */
+#define R_CKCORE_ADDRGOT_LO16 37 /* (GOT + G * 4) & 0xffff */
+#define R_CKCORE_ADDRPLT_HI16 38 /* high & low 16 bit ADDRPLT */
+ /* ((GOT + G * 4) >> 16) & 0xFFFF */
+#define R_CKCORE_ADDRPLT_LO16 39 /* (GOT+G*4) & 0xffff */
+#define R_CKCORE_PCREL_JSR_IMM26BY2 40 /* disp ((S+A-P) >>1) & x3ffffff */
+#define R_CKCORE_TOFFSET_LO16 41 /* (S+A-BTEXT) & 0xffff */
+#define R_CKCORE_DOFFSET_LO16 42 /* (S+A-BTEXT) & 0xffff */
+#define R_CKCORE_PCREL_IMM18BY2 43 /* disp ((S+A-P) >>1) & 0x3ffff */
+#define R_CKCORE_DOFFSET_IMM18 44 /* disp (S+A-BDATA) & 0x3ffff */
+#define R_CKCORE_DOFFSET_IMM18BY2 45 /* disp ((S+A-BDATA)>>1) & 0x3ffff */
+#define R_CKCORE_DOFFSET_IMM18BY4 46 /* disp ((S+A-BDATA)>>2) & 0x3ffff */
+#define R_CKCORE_GOT_IMM18BY4 48 /* disp (G >> 2) */
+#define R_CKCORE_PLT_IMM18BY4 49 /* disp (G >> 2) */
+#define R_CKCORE_PCREL_IMM7BY4 50 /* disp ((S+A-P) >>2) & 0x7f */
+#define R_CKCORE_TLS_LE32 51 /* 32 bit offset to TLS block */
+#define R_CKCORE_TLS_IE32 52
+#define R_CKCORE_TLS_GD32 53
+#define R_CKCORE_TLS_LDM32 54
+#define R_CKCORE_TLS_LDO32 55
+#define R_CKCORE_TLS_DTPMOD32 56
+#define R_CKCORE_TLS_DTPOFF32 57
+#define R_CKCORE_TLS_TPOFF32 58
+
+/* IA-64 specific declarations. */
+
+/* Processor specific flags for the Ehdr e_flags field. */
+#define EF_IA_64_MASKOS 0x0000000f /* os-specific flags */
+#define EF_IA_64_ABI64 0x00000010 /* 64-bit ABI */
+#define EF_IA_64_ARCH 0xff000000 /* arch. version mask */
+
+/* Processor specific values for the Phdr p_type field. */
+#define PT_IA_64_ARCHEXT (PT_LOPROC + 0) /* arch extension bits */
+#define PT_IA_64_UNWIND (PT_LOPROC + 1) /* ia64 unwind bits */
+#define PT_IA_64_HP_OPT_ANOT (PT_LOOS + 0x12)
+#define PT_IA_64_HP_HSL_ANOT (PT_LOOS + 0x13)
+#define PT_IA_64_HP_STACK (PT_LOOS + 0x14)
+
+/* Processor specific flags for the Phdr p_flags field. */
+#define PF_IA_64_NORECOV 0x80000000 /* spec insns w/o recovery */
+
+/* Processor specific values for the Shdr sh_type field. */
+#define SHT_IA_64_EXT (SHT_LOPROC + 0) /* extension bits */
+#define SHT_IA_64_UNWIND (SHT_LOPROC + 1) /* unwind bits */
+
+/* Processor specific flags for the Shdr sh_flags field. */
+#define SHF_IA_64_SHORT 0x10000000 /* section near gp */
+#define SHF_IA_64_NORECOV 0x20000000 /* spec insns w/o recovery */
+
+/* Processor specific values for the Dyn d_tag field. */
+#define DT_IA_64_PLT_RESERVE (DT_LOPROC + 0)
+#define DT_IA_64_NUM 1
+
+/* IA-64 relocations. */
+#define R_IA64_NONE 0x00 /* none */
+#define R_IA64_IMM14 0x21 /* symbol + addend, add imm14 */
+#define R_IA64_IMM22 0x22 /* symbol + addend, add imm22 */
+#define R_IA64_IMM64 0x23 /* symbol + addend, mov imm64 */
+#define R_IA64_DIR32MSB 0x24 /* symbol + addend, data4 MSB */
+#define R_IA64_DIR32LSB 0x25 /* symbol + addend, data4 LSB */
+#define R_IA64_DIR64MSB 0x26 /* symbol + addend, data8 MSB */
+#define R_IA64_DIR64LSB 0x27 /* symbol + addend, data8 LSB */
+#define R_IA64_GPREL22 0x2a /* @gprel(sym + add), add imm22 */
+#define R_IA64_GPREL64I 0x2b /* @gprel(sym + add), mov imm64 */
+#define R_IA64_GPREL32MSB 0x2c /* @gprel(sym + add), data4 MSB */
+#define R_IA64_GPREL32LSB 0x2d /* @gprel(sym + add), data4 LSB */
+#define R_IA64_GPREL64MSB 0x2e /* @gprel(sym + add), data8 MSB */
+#define R_IA64_GPREL64LSB 0x2f /* @gprel(sym + add), data8 LSB */
+#define R_IA64_LTOFF22 0x32 /* @ltoff(sym + add), add imm22 */
+#define R_IA64_LTOFF64I 0x33 /* @ltoff(sym + add), mov imm64 */
+#define R_IA64_PLTOFF22 0x3a /* @pltoff(sym + add), add imm22 */
+#define R_IA64_PLTOFF64I 0x3b /* @pltoff(sym + add), mov imm64 */
+#define R_IA64_PLTOFF64MSB 0x3e /* @pltoff(sym + add), data8 MSB */
+#define R_IA64_PLTOFF64LSB 0x3f /* @pltoff(sym + add), data8 LSB */
+#define R_IA64_FPTR64I 0x43 /* @fptr(sym + add), mov imm64 */
+#define R_IA64_FPTR32MSB 0x44 /* @fptr(sym + add), data4 MSB */
+#define R_IA64_FPTR32LSB 0x45 /* @fptr(sym + add), data4 LSB */
+#define R_IA64_FPTR64MSB 0x46 /* @fptr(sym + add), data8 MSB */
+#define R_IA64_FPTR64LSB 0x47 /* @fptr(sym + add), data8 LSB */
+#define R_IA64_PCREL60B 0x48 /* @pcrel(sym + add), brl */
+#define R_IA64_PCREL21B 0x49 /* @pcrel(sym + add), ptb, call */
+#define R_IA64_PCREL21M 0x4a /* @pcrel(sym + add), chk.s */
+#define R_IA64_PCREL21F 0x4b /* @pcrel(sym + add), fchkf */
+#define R_IA64_PCREL32MSB 0x4c /* @pcrel(sym + add), data4 MSB */
+#define R_IA64_PCREL32LSB 0x4d /* @pcrel(sym + add), data4 LSB */
+#define R_IA64_PCREL64MSB 0x4e /* @pcrel(sym + add), data8 MSB */
+#define R_IA64_PCREL64LSB 0x4f /* @pcrel(sym + add), data8 LSB */
+#define R_IA64_LTOFF_FPTR22 0x52 /* @ltoff(@fptr(s+a)), imm22 */
+#define R_IA64_LTOFF_FPTR64I 0x53 /* @ltoff(@fptr(s+a)), imm64 */
+#define R_IA64_LTOFF_FPTR32MSB 0x54 /* @ltoff(@fptr(s+a)), data4 MSB */
+#define R_IA64_LTOFF_FPTR32LSB 0x55 /* @ltoff(@fptr(s+a)), data4 LSB */
+#define R_IA64_LTOFF_FPTR64MSB 0x56 /* @ltoff(@fptr(s+a)), data8 MSB */
+#define R_IA64_LTOFF_FPTR64LSB 0x57 /* @ltoff(@fptr(s+a)), data8 LSB */
+#define R_IA64_SEGREL32MSB 0x5c /* @segrel(sym + add), data4 MSB */
+#define R_IA64_SEGREL32LSB 0x5d /* @segrel(sym + add), data4 LSB */
+#define R_IA64_SEGREL64MSB 0x5e /* @segrel(sym + add), data8 MSB */
+#define R_IA64_SEGREL64LSB 0x5f /* @segrel(sym + add), data8 LSB */
+#define R_IA64_SECREL32MSB 0x64 /* @secrel(sym + add), data4 MSB */
+#define R_IA64_SECREL32LSB 0x65 /* @secrel(sym + add), data4 LSB */
+#define R_IA64_SECREL64MSB 0x66 /* @secrel(sym + add), data8 MSB */
+#define R_IA64_SECREL64LSB 0x67 /* @secrel(sym + add), data8 LSB */
+#define R_IA64_REL32MSB 0x6c /* data 4 + REL */
+#define R_IA64_REL32LSB 0x6d /* data 4 + REL */
+#define R_IA64_REL64MSB 0x6e /* data 8 + REL */
+#define R_IA64_REL64LSB 0x6f /* data 8 + REL */
+#define R_IA64_LTV32MSB 0x74 /* symbol + addend, data4 MSB */
+#define R_IA64_LTV32LSB 0x75 /* symbol + addend, data4 LSB */
+#define R_IA64_LTV64MSB 0x76 /* symbol + addend, data8 MSB */
+#define R_IA64_LTV64LSB 0x77 /* symbol + addend, data8 LSB */
+#define R_IA64_PCREL21BI 0x79 /* @pcrel(sym + add), 21bit inst */
+#define R_IA64_PCREL22 0x7a /* @pcrel(sym + add), 22bit inst */
+#define R_IA64_PCREL64I 0x7b /* @pcrel(sym + add), 64bit inst */
+#define R_IA64_IPLTMSB 0x80 /* dynamic reloc, imported PLT, MSB */
+#define R_IA64_IPLTLSB 0x81 /* dynamic reloc, imported PLT, LSB */
+#define R_IA64_COPY 0x84 /* copy relocation */
+#define R_IA64_SUB 0x85 /* Addend and symbol difference */
+#define R_IA64_LTOFF22X 0x86 /* LTOFF22, relaxable. */
+#define R_IA64_LDXMOV 0x87 /* Use of LTOFF22X. */
+#define R_IA64_TPREL14 0x91 /* @tprel(sym + add), imm14 */
+#define R_IA64_TPREL22 0x92 /* @tprel(sym + add), imm22 */
+#define R_IA64_TPREL64I 0x93 /* @tprel(sym + add), imm64 */
+#define R_IA64_TPREL64MSB 0x96 /* @tprel(sym + add), data8 MSB */
+#define R_IA64_TPREL64LSB 0x97 /* @tprel(sym + add), data8 LSB */
+#define R_IA64_LTOFF_TPREL22 0x9a /* @ltoff(@tprel(s+a)), imm2 */
+#define R_IA64_DTPMOD64MSB 0xa6 /* @dtpmod(sym + add), data8 MSB */
+#define R_IA64_DTPMOD64LSB 0xa7 /* @dtpmod(sym + add), data8 LSB */
+#define R_IA64_LTOFF_DTPMOD22 0xaa /* @ltoff(@dtpmod(sym + add)), imm22 */
+#define R_IA64_DTPREL14 0xb1 /* @dtprel(sym + add), imm14 */
+#define R_IA64_DTPREL22 0xb2 /* @dtprel(sym + add), imm22 */
+#define R_IA64_DTPREL64I 0xb3 /* @dtprel(sym + add), imm64 */
+#define R_IA64_DTPREL32MSB 0xb4 /* @dtprel(sym + add), data4 MSB */
+#define R_IA64_DTPREL32LSB 0xb5 /* @dtprel(sym + add), data4 LSB */
+#define R_IA64_DTPREL64MSB 0xb6 /* @dtprel(sym + add), data8 MSB */
+#define R_IA64_DTPREL64LSB 0xb7 /* @dtprel(sym + add), data8 LSB */
+#define R_IA64_LTOFF_DTPREL22 0xba /* @ltoff(@dtprel(s+a)), imm22 */
+
+/* SH specific declarations */
+
+/* Processor specific flags for the ELF header e_flags field. */
+#define EF_SH_MACH_MASK 0x1f
+#define EF_SH_UNKNOWN 0x0
+#define EF_SH1 0x1
+#define EF_SH2 0x2
+#define EF_SH3 0x3
+#define EF_SH_DSP 0x4
+#define EF_SH3_DSP 0x5
+#define EF_SH4AL_DSP 0x6
+#define EF_SH3E 0x8
+#define EF_SH4 0x9
+#define EF_SH2E 0xb
+#define EF_SH4A 0xc
+#define EF_SH2A 0xd
+#define EF_SH4_NOFPU 0x10
+#define EF_SH4A_NOFPU 0x11
+#define EF_SH4_NOMMU_NOFPU 0x12
+#define EF_SH2A_NOFPU 0x13
+#define EF_SH3_NOMMU 0x14
+#define EF_SH2A_SH4_NOFPU 0x15
+#define EF_SH2A_SH3_NOFPU 0x16
+#define EF_SH2A_SH4 0x17
+#define EF_SH2A_SH3E 0x18
+
+/* SH relocs. */
+#define R_SH_NONE 0
+#define R_SH_DIR32 1
+#define R_SH_REL32 2
+#define R_SH_DIR8WPN 3
+#define R_SH_IND12W 4
+#define R_SH_DIR8WPL 5
+#define R_SH_DIR8WPZ 6
+#define R_SH_DIR8BP 7
+#define R_SH_DIR8W 8
+#define R_SH_DIR8L 9
+#define R_SH_SWITCH16 25
+#define R_SH_SWITCH32 26
+#define R_SH_USES 27
+#define R_SH_COUNT 28
+#define R_SH_ALIGN 29
+#define R_SH_CODE 30
+#define R_SH_DATA 31
+#define R_SH_LABEL 32
+#define R_SH_SWITCH8 33
+#define R_SH_GNU_VTINHERIT 34
+#define R_SH_GNU_VTENTRY 35
+#define R_SH_TLS_GD_32 144
+#define R_SH_TLS_LD_32 145
+#define R_SH_TLS_LDO_32 146
+#define R_SH_TLS_IE_32 147
+#define R_SH_TLS_LE_32 148
+#define R_SH_TLS_DTPMOD32 149
+#define R_SH_TLS_DTPOFF32 150
+#define R_SH_TLS_TPOFF32 151
+#define R_SH_GOT32 160
+#define R_SH_PLT32 161
+#define R_SH_COPY 162
+#define R_SH_GLOB_DAT 163
+#define R_SH_JMP_SLOT 164
+#define R_SH_RELATIVE 165
+#define R_SH_GOTOFF 166
+#define R_SH_GOTPC 167
+/* Keep this the last entry. */
+#define R_SH_NUM 256
+
+/* S/390 specific definitions. */
+
+/* Valid values for the e_flags field. */
+
+#define EF_S390_HIGH_GPRS 0x00000001 /* High GPRs kernel facility needed. */
+
+/* Additional s390 relocs */
+
+#define R_390_NONE 0 /* No reloc. */
+#define R_390_8 1 /* Direct 8 bit. */
+#define R_390_12 2 /* Direct 12 bit. */
+#define R_390_16 3 /* Direct 16 bit. */
+#define R_390_32 4 /* Direct 32 bit. */
+#define R_390_PC32 5 /* PC relative 32 bit. */
+#define R_390_GOT12 6 /* 12 bit GOT offset. */
+#define R_390_GOT32 7 /* 32 bit GOT offset. */
+#define R_390_PLT32 8 /* 32 bit PC relative PLT address. */
+#define R_390_COPY 9 /* Copy symbol at runtime. */
+#define R_390_GLOB_DAT 10 /* Create GOT entry. */
+#define R_390_JMP_SLOT 11 /* Create PLT entry. */
+#define R_390_RELATIVE 12 /* Adjust by program base. */
+#define R_390_GOTOFF32 13 /* 32 bit offset to GOT. */
+#define R_390_GOTPC 14 /* 32 bit PC relative offset to GOT. */
+#define R_390_GOT16 15 /* 16 bit GOT offset. */
+#define R_390_PC16 16 /* PC relative 16 bit. */
+#define R_390_PC16DBL 17 /* PC relative 16 bit shifted by 1. */
+#define R_390_PLT16DBL 18 /* 16 bit PC rel. PLT shifted by 1. */
+#define R_390_PC32DBL 19 /* PC relative 32 bit shifted by 1. */
+#define R_390_PLT32DBL 20 /* 32 bit PC rel. PLT shifted by 1. */
+#define R_390_GOTPCDBL 21 /* 32 bit PC rel. GOT shifted by 1. */
+#define R_390_64 22 /* Direct 64 bit. */
+#define R_390_PC64 23 /* PC relative 64 bit. */
+#define R_390_GOT64 24 /* 64 bit GOT offset. */
+#define R_390_PLT64 25 /* 64 bit PC relative PLT address. */
+#define R_390_GOTENT 26 /* 32 bit PC rel. to GOT entry >> 1. */
+#define R_390_GOTOFF16 27 /* 16 bit offset to GOT. */
+#define R_390_GOTOFF64 28 /* 64 bit offset to GOT. */
+#define R_390_GOTPLT12 29 /* 12 bit offset to jump slot. */
+#define R_390_GOTPLT16 30 /* 16 bit offset to jump slot. */
+#define R_390_GOTPLT32 31 /* 32 bit offset to jump slot. */
+#define R_390_GOTPLT64 32 /* 64 bit offset to jump slot. */
+#define R_390_GOTPLTENT 33 /* 32 bit rel. offset to jump slot. */
+#define R_390_PLTOFF16 34 /* 16 bit offset from GOT to PLT. */
+#define R_390_PLTOFF32 35 /* 32 bit offset from GOT to PLT. */
+#define R_390_PLTOFF64 36 /* 16 bit offset from GOT to PLT. */
+#define R_390_TLS_LOAD 37 /* Tag for load insn in TLS code. */
+#define R_390_TLS_GDCALL 38 /* Tag for function call in general
+ dynamic TLS code. */
+#define R_390_TLS_LDCALL 39 /* Tag for function call in local
+ dynamic TLS code. */
+#define R_390_TLS_GD32 40 /* Direct 32 bit for general dynamic
+ thread local data. */
+#define R_390_TLS_GD64 41 /* Direct 64 bit for general dynamic
+ thread local data. */
+#define R_390_TLS_GOTIE12 42 /* 12 bit GOT offset for static TLS
+ block offset. */
+#define R_390_TLS_GOTIE32 43 /* 32 bit GOT offset for static TLS
+ block offset. */
+#define R_390_TLS_GOTIE64 44 /* 64 bit GOT offset for static TLS
+ block offset. */
+#define R_390_TLS_LDM32 45 /* Direct 32 bit for local dynamic
+ thread local data in LE code. */
+#define R_390_TLS_LDM64 46 /* Direct 64 bit for local dynamic
+ thread local data in LE code. */
+#define R_390_TLS_IE32 47 /* 32 bit address of GOT entry for
+ negated static TLS block offset. */
+#define R_390_TLS_IE64 48 /* 64 bit address of GOT entry for
+ negated static TLS block offset. */
+#define R_390_TLS_IEENT 49 /* 32 bit rel. offset to GOT entry for
+ negated static TLS block offset. */
+#define R_390_TLS_LE32 50 /* 32 bit negated offset relative to
+ static TLS block. */
+#define R_390_TLS_LE64 51 /* 64 bit negated offset relative to
+ static TLS block. */
+#define R_390_TLS_LDO32 52 /* 32 bit offset relative to TLS
+ block. */
+#define R_390_TLS_LDO64 53 /* 64 bit offset relative to TLS
+ block. */
+#define R_390_TLS_DTPMOD 54 /* ID of module containing symbol. */
+#define R_390_TLS_DTPOFF 55 /* Offset in TLS block. */
+#define R_390_TLS_TPOFF 56 /* Negated offset in static TLS
+ block. */
+#define R_390_20 57 /* Direct 20 bit. */
+#define R_390_GOT20 58 /* 20 bit GOT offset. */
+#define R_390_GOTPLT20 59 /* 20 bit offset to jump slot. */
+#define R_390_TLS_GOTIE20 60 /* 20 bit GOT offset for static TLS
+ block offset. */
+#define R_390_IRELATIVE 61 /* STT_GNU_IFUNC relocation. */
+/* Keep this the last entry. */
+#define R_390_NUM 62
+
+
+/* CRIS relocations. */
+#define R_CRIS_NONE 0
+#define R_CRIS_8 1
+#define R_CRIS_16 2
+#define R_CRIS_32 3
+#define R_CRIS_8_PCREL 4
+#define R_CRIS_16_PCREL 5
+#define R_CRIS_32_PCREL 6
+#define R_CRIS_GNU_VTINHERIT 7
+#define R_CRIS_GNU_VTENTRY 8
+#define R_CRIS_COPY 9
+#define R_CRIS_GLOB_DAT 10
+#define R_CRIS_JUMP_SLOT 11
+#define R_CRIS_RELATIVE 12
+#define R_CRIS_16_GOT 13
+#define R_CRIS_32_GOT 14
+#define R_CRIS_16_GOTPLT 15
+#define R_CRIS_32_GOTPLT 16
+#define R_CRIS_32_GOTREL 17
+#define R_CRIS_32_PLT_GOTREL 18
+#define R_CRIS_32_PLT_PCREL 19
+
+#define R_CRIS_NUM 20
+
+
+/* AMD x86-64 relocations. */
+#define R_X86_64_NONE 0 /* No reloc */
+#define R_X86_64_64 1 /* Direct 64 bit */
+#define R_X86_64_PC32 2 /* PC relative 32 bit signed */
+#define R_X86_64_GOT32 3 /* 32 bit GOT entry */
+#define R_X86_64_PLT32 4 /* 32 bit PLT address */
+#define R_X86_64_COPY 5 /* Copy symbol at runtime */
+#define R_X86_64_GLOB_DAT 6 /* Create GOT entry */
+#define R_X86_64_JUMP_SLOT 7 /* Create PLT entry */
+#define R_X86_64_RELATIVE 8 /* Adjust by program base */
+#define R_X86_64_GOTPCREL 9 /* 32 bit signed PC relative
+ offset to GOT */
+#define R_X86_64_32 10 /* Direct 32 bit zero extended */
+#define R_X86_64_32S 11 /* Direct 32 bit sign extended */
+#define R_X86_64_16 12 /* Direct 16 bit zero extended */
+#define R_X86_64_PC16 13 /* 16 bit sign extended pc relative */
+#define R_X86_64_8 14 /* Direct 8 bit sign extended */
+#define R_X86_64_PC8 15 /* 8 bit sign extended pc relative */
+#define R_X86_64_DTPMOD64 16 /* ID of module containing symbol */
+#define R_X86_64_DTPOFF64 17 /* Offset in module's TLS block */
+#define R_X86_64_TPOFF64 18 /* Offset in initial TLS block */
+#define R_X86_64_TLSGD 19 /* 32 bit signed PC relative offset
+ to two GOT entries for GD symbol */
+#define R_X86_64_TLSLD 20 /* 32 bit signed PC relative offset
+ to two GOT entries for LD symbol */
+#define R_X86_64_DTPOFF32 21 /* Offset in TLS block */
+#define R_X86_64_GOTTPOFF 22 /* 32 bit signed PC relative offset
+ to GOT entry for IE symbol */
+#define R_X86_64_TPOFF32 23 /* Offset in initial TLS block */
+#define R_X86_64_PC64 24 /* PC relative 64 bit */
+#define R_X86_64_GOTOFF64 25 /* 64 bit offset to GOT */
+#define R_X86_64_GOTPC32 26 /* 32 bit signed pc relative
+ offset to GOT */
+#define R_X86_64_GOT64 27 /* 64-bit GOT entry offset */
+#define R_X86_64_GOTPCREL64 28 /* 64-bit PC relative offset
+ to GOT entry */
+#define R_X86_64_GOTPC64 29 /* 64-bit PC relative offset to GOT */
+#define R_X86_64_GOTPLT64 30 /* like GOT64, says PLT entry needed */
+#define R_X86_64_PLTOFF64 31 /* 64-bit GOT relative offset
+ to PLT entry */
+#define R_X86_64_SIZE32 32 /* Size of symbol plus 32-bit addend */
+#define R_X86_64_SIZE64 33 /* Size of symbol plus 64-bit addend */
+#define R_X86_64_GOTPC32_TLSDESC 34 /* GOT offset for TLS descriptor. */
+#define R_X86_64_TLSDESC_CALL 35 /* Marker for call through TLS
+ descriptor. */
+#define R_X86_64_TLSDESC 36 /* TLS descriptor. */
+#define R_X86_64_IRELATIVE 37 /* Adjust indirectly by program base */
+#define R_X86_64_RELATIVE64 38 /* 64-bit adjust by program base */
+ /* 39 Reserved was R_X86_64_PC32_BND */
+ /* 40 Reserved was R_X86_64_PLT32_BND */
+#define R_X86_64_GOTPCRELX 41 /* Load from 32 bit signed pc relative
+ offset to GOT entry without REX
+ prefix, relaxable. */
+#define R_X86_64_REX_GOTPCRELX 42 /* Load from 32 bit signed pc relative
+ offset to GOT entry with REX prefix,
+ relaxable. */
+#define R_X86_64_NUM 43
+
+/* x86-64 sh_type values. */
+#define SHT_X86_64_UNWIND 0x70000001 /* Unwind information. */
+
+
+/* AM33 relocations. */
+#define R_MN10300_NONE 0 /* No reloc. */
+#define R_MN10300_32 1 /* Direct 32 bit. */
+#define R_MN10300_16 2 /* Direct 16 bit. */
+#define R_MN10300_8 3 /* Direct 8 bit. */
+#define R_MN10300_PCREL32 4 /* PC-relative 32-bit. */
+#define R_MN10300_PCREL16 5 /* PC-relative 16-bit signed. */
+#define R_MN10300_PCREL8 6 /* PC-relative 8-bit signed. */
+#define R_MN10300_GNU_VTINHERIT 7 /* Ancient C++ vtable garbage... */
+#define R_MN10300_GNU_VTENTRY 8 /* ... collection annotation. */
+#define R_MN10300_24 9 /* Direct 24 bit. */
+#define R_MN10300_GOTPC32 10 /* 32-bit PCrel offset to GOT. */
+#define R_MN10300_GOTPC16 11 /* 16-bit PCrel offset to GOT. */
+#define R_MN10300_GOTOFF32 12 /* 32-bit offset from GOT. */
+#define R_MN10300_GOTOFF24 13 /* 24-bit offset from GOT. */
+#define R_MN10300_GOTOFF16 14 /* 16-bit offset from GOT. */
+#define R_MN10300_PLT32 15 /* 32-bit PCrel to PLT entry. */
+#define R_MN10300_PLT16 16 /* 16-bit PCrel to PLT entry. */
+#define R_MN10300_GOT32 17 /* 32-bit offset to GOT entry. */
+#define R_MN10300_GOT24 18 /* 24-bit offset to GOT entry. */
+#define R_MN10300_GOT16 19 /* 16-bit offset to GOT entry. */
+#define R_MN10300_COPY 20 /* Copy symbol at runtime. */
+#define R_MN10300_GLOB_DAT 21 /* Create GOT entry. */
+#define R_MN10300_JMP_SLOT 22 /* Create PLT entry. */
+#define R_MN10300_RELATIVE 23 /* Adjust by program base. */
+#define R_MN10300_TLS_GD 24 /* 32-bit offset for global dynamic. */
+#define R_MN10300_TLS_LD 25 /* 32-bit offset for local dynamic. */
+#define R_MN10300_TLS_LDO 26 /* Module-relative offset. */
+#define R_MN10300_TLS_GOTIE 27 /* GOT offset for static TLS block
+ offset. */
+#define R_MN10300_TLS_IE 28 /* GOT address for static TLS block
+ offset. */
+#define R_MN10300_TLS_LE 29 /* Offset relative to static TLS
+ block. */
+#define R_MN10300_TLS_DTPMOD 30 /* ID of module containing symbol. */
+#define R_MN10300_TLS_DTPOFF 31 /* Offset in module TLS block. */
+#define R_MN10300_TLS_TPOFF 32 /* Offset in static TLS block. */
+#define R_MN10300_SYM_DIFF 33 /* Adjustment for next reloc as needed
+ by linker relaxation. */
+#define R_MN10300_ALIGN 34 /* Alignment requirement for linker
+ relaxation. */
+#define R_MN10300_NUM 35
+
+
+/* M32R relocs. */
+#define R_M32R_NONE 0 /* No reloc. */
+#define R_M32R_16 1 /* Direct 16 bit. */
+#define R_M32R_32 2 /* Direct 32 bit. */
+#define R_M32R_24 3 /* Direct 24 bit. */
+#define R_M32R_10_PCREL 4 /* PC relative 10 bit shifted. */
+#define R_M32R_18_PCREL 5 /* PC relative 18 bit shifted. */
+#define R_M32R_26_PCREL 6 /* PC relative 26 bit shifted. */
+#define R_M32R_HI16_ULO 7 /* High 16 bit with unsigned low. */
+#define R_M32R_HI16_SLO 8 /* High 16 bit with signed low. */
+#define R_M32R_LO16 9 /* Low 16 bit. */
+#define R_M32R_SDA16 10 /* 16 bit offset in SDA. */
+#define R_M32R_GNU_VTINHERIT 11
+#define R_M32R_GNU_VTENTRY 12
+/* M32R relocs use SHT_RELA. */
+#define R_M32R_16_RELA 33 /* Direct 16 bit. */
+#define R_M32R_32_RELA 34 /* Direct 32 bit. */
+#define R_M32R_24_RELA 35 /* Direct 24 bit. */
+#define R_M32R_10_PCREL_RELA 36 /* PC relative 10 bit shifted. */
+#define R_M32R_18_PCREL_RELA 37 /* PC relative 18 bit shifted. */
+#define R_M32R_26_PCREL_RELA 38 /* PC relative 26 bit shifted. */
+#define R_M32R_HI16_ULO_RELA 39 /* High 16 bit with unsigned low */
+#define R_M32R_HI16_SLO_RELA 40 /* High 16 bit with signed low */
+#define R_M32R_LO16_RELA 41 /* Low 16 bit */
+#define R_M32R_SDA16_RELA 42 /* 16 bit offset in SDA */
+#define R_M32R_RELA_GNU_VTINHERIT 43
+#define R_M32R_RELA_GNU_VTENTRY 44
+#define R_M32R_REL32 45 /* PC relative 32 bit. */
+
+#define R_M32R_GOT24 48 /* 24 bit GOT entry */
+#define R_M32R_26_PLTREL 49 /* 26 bit PC relative to PLT shifted */
+#define R_M32R_COPY 50 /* Copy symbol at runtime */
+#define R_M32R_GLOB_DAT 51 /* Create GOT entry */
+#define R_M32R_JMP_SLOT 52 /* Create PLT entry */
+#define R_M32R_RELATIVE 53 /* Adjust by program base */
+#define R_M32R_GOTOFF 54 /* 24 bit offset to GOT */
+#define R_M32R_GOTPC24 55 /* 24 bit PC relative offset to GOT */
+#define R_M32R_GOT16_HI_ULO 56 /* High 16 bit GOT entry with unsigned
+ low */
+#define R_M32R_GOT16_HI_SLO 57 /* High 16 bit GOT entry with signed
+ low */
+#define R_M32R_GOT16_LO 58 /* Low 16 bit GOT entry */
+#define R_M32R_GOTPC_HI_ULO 59 /* High 16 bit PC relative offset to
+ GOT with unsigned low */
+#define R_M32R_GOTPC_HI_SLO 60 /* High 16 bit PC relative offset to
+ GOT with signed low */
+#define R_M32R_GOTPC_LO 61 /* Low 16 bit PC relative offset to
+ GOT */
+#define R_M32R_GOTOFF_HI_ULO 62 /* High 16 bit offset to GOT
+ with unsigned low */
+#define R_M32R_GOTOFF_HI_SLO 63 /* High 16 bit offset to GOT
+ with signed low */
+#define R_M32R_GOTOFF_LO 64 /* Low 16 bit offset to GOT */
+#define R_M32R_NUM 256 /* Keep this the last entry. */
+
+/* MicroBlaze relocations */
+#define R_MICROBLAZE_NONE 0 /* No reloc. */
+#define R_MICROBLAZE_32 1 /* Direct 32 bit. */
+#define R_MICROBLAZE_32_PCREL 2 /* PC relative 32 bit. */
+#define R_MICROBLAZE_64_PCREL 3 /* PC relative 64 bit. */
+#define R_MICROBLAZE_32_PCREL_LO 4 /* Low 16 bits of PCREL32. */
+#define R_MICROBLAZE_64 5 /* Direct 64 bit. */
+#define R_MICROBLAZE_32_LO 6 /* Low 16 bit. */
+#define R_MICROBLAZE_SRO32 7 /* Read-only small data area. */
+#define R_MICROBLAZE_SRW32 8 /* Read-write small data area. */
+#define R_MICROBLAZE_64_NONE 9 /* No reloc. */
+#define R_MICROBLAZE_32_SYM_OP_SYM 10 /* Symbol Op Symbol relocation. */
+#define R_MICROBLAZE_GNU_VTINHERIT 11 /* GNU C++ vtable hierarchy. */
+#define R_MICROBLAZE_GNU_VTENTRY 12 /* GNU C++ vtable member usage. */
+#define R_MICROBLAZE_GOTPC_64 13 /* PC-relative GOT offset. */
+#define R_MICROBLAZE_GOT_64 14 /* GOT entry offset. */
+#define R_MICROBLAZE_PLT_64 15 /* PLT offset (PC-relative). */
+#define R_MICROBLAZE_REL 16 /* Adjust by program base. */
+#define R_MICROBLAZE_JUMP_SLOT 17 /* Create PLT entry. */
+#define R_MICROBLAZE_GLOB_DAT 18 /* Create GOT entry. */
+#define R_MICROBLAZE_GOTOFF_64 19 /* 64 bit offset to GOT. */
+#define R_MICROBLAZE_GOTOFF_32 20 /* 32 bit offset to GOT. */
+#define R_MICROBLAZE_COPY 21 /* Runtime copy. */
+#define R_MICROBLAZE_TLS 22 /* TLS Reloc. */
+#define R_MICROBLAZE_TLSGD 23 /* TLS General Dynamic. */
+#define R_MICROBLAZE_TLSLD 24 /* TLS Local Dynamic. */
+#define R_MICROBLAZE_TLSDTPMOD32 25 /* TLS Module ID. */
+#define R_MICROBLAZE_TLSDTPREL32 26 /* TLS Offset Within TLS Block. */
+#define R_MICROBLAZE_TLSDTPREL64 27 /* TLS Offset Within TLS Block. */
+#define R_MICROBLAZE_TLSGOTTPREL32 28 /* TLS Offset From Thread Pointer. */
+#define R_MICROBLAZE_TLSTPREL32 29 /* TLS Offset From Thread Pointer. */
+
+/* Legal values for d_tag (dynamic entry type). */
+#define DT_NIOS2_GP 0x70000002 /* Address of _gp. */
+
+/* Nios II relocations. */
+#define R_NIOS2_NONE 0 /* No reloc. */
+#define R_NIOS2_S16 1 /* Direct signed 16 bit. */
+#define R_NIOS2_U16 2 /* Direct unsigned 16 bit. */
+#define R_NIOS2_PCREL16 3 /* PC relative 16 bit. */
+#define R_NIOS2_CALL26 4 /* Direct call. */
+#define R_NIOS2_IMM5 5 /* 5 bit constant expression. */
+#define R_NIOS2_CACHE_OPX 6 /* 5 bit expression, shift 22. */
+#define R_NIOS2_IMM6 7 /* 6 bit constant expression. */
+#define R_NIOS2_IMM8 8 /* 8 bit constant expression. */
+#define R_NIOS2_HI16 9 /* High 16 bit. */
+#define R_NIOS2_LO16 10 /* Low 16 bit. */
+#define R_NIOS2_HIADJ16 11 /* High 16 bit, adjusted. */
+#define R_NIOS2_BFD_RELOC_32 12 /* 32 bit symbol value + addend. */
+#define R_NIOS2_BFD_RELOC_16 13 /* 16 bit symbol value + addend. */
+#define R_NIOS2_BFD_RELOC_8 14 /* 8 bit symbol value + addend. */
+#define R_NIOS2_GPREL 15 /* 16 bit GP pointer offset. */
+#define R_NIOS2_GNU_VTINHERIT 16 /* GNU C++ vtable hierarchy. */
+#define R_NIOS2_GNU_VTENTRY 17 /* GNU C++ vtable member usage. */
+#define R_NIOS2_UJMP 18 /* Unconditional branch. */
+#define R_NIOS2_CJMP 19 /* Conditional branch. */
+#define R_NIOS2_CALLR 20 /* Indirect call through register. */
+#define R_NIOS2_ALIGN 21 /* Alignment requirement for
+ linker relaxation. */
+#define R_NIOS2_GOT16 22 /* 16 bit GOT entry. */
+#define R_NIOS2_CALL16 23 /* 16 bit GOT entry for function. */
+#define R_NIOS2_GOTOFF_LO 24 /* %lo of offset to GOT pointer. */
+#define R_NIOS2_GOTOFF_HA 25 /* %hiadj of offset to GOT pointer. */
+#define R_NIOS2_PCREL_LO 26 /* %lo of PC relative offset. */
+#define R_NIOS2_PCREL_HA 27 /* %hiadj of PC relative offset. */
+#define R_NIOS2_TLS_GD16 28 /* 16 bit GOT offset for TLS GD. */
+#define R_NIOS2_TLS_LDM16 29 /* 16 bit GOT offset for TLS LDM. */
+#define R_NIOS2_TLS_LDO16 30 /* 16 bit module relative offset. */
+#define R_NIOS2_TLS_IE16 31 /* 16 bit GOT offset for TLS IE. */
+#define R_NIOS2_TLS_LE16 32 /* 16 bit LE TP-relative offset. */
+#define R_NIOS2_TLS_DTPMOD 33 /* Module number. */
+#define R_NIOS2_TLS_DTPREL 34 /* Module-relative offset. */
+#define R_NIOS2_TLS_TPREL 35 /* TP-relative offset. */
+#define R_NIOS2_COPY 36 /* Copy symbol at runtime. */
+#define R_NIOS2_GLOB_DAT 37 /* Create GOT entry. */
+#define R_NIOS2_JUMP_SLOT 38 /* Create PLT entry. */
+#define R_NIOS2_RELATIVE 39 /* Adjust by program base. */
+#define R_NIOS2_GOTOFF 40 /* 16 bit offset to GOT pointer. */
+#define R_NIOS2_CALL26_NOAT 41 /* Direct call in .noat section. */
+#define R_NIOS2_GOT_LO 42 /* %lo() of GOT entry. */
+#define R_NIOS2_GOT_HA 43 /* %hiadj() of GOT entry. */
+#define R_NIOS2_CALL_LO 44 /* %lo() of function GOT entry. */
+#define R_NIOS2_CALL_HA 45 /* %hiadj() of function GOT entry. */
+
+/* TILEPro relocations. */
+#define R_TILEPRO_NONE 0 /* No reloc */
+#define R_TILEPRO_32 1 /* Direct 32 bit */
+#define R_TILEPRO_16 2 /* Direct 16 bit */
+#define R_TILEPRO_8 3 /* Direct 8 bit */
+#define R_TILEPRO_32_PCREL 4 /* PC relative 32 bit */
+#define R_TILEPRO_16_PCREL 5 /* PC relative 16 bit */
+#define R_TILEPRO_8_PCREL 6 /* PC relative 8 bit */
+#define R_TILEPRO_LO16 7 /* Low 16 bit */
+#define R_TILEPRO_HI16 8 /* High 16 bit */
+#define R_TILEPRO_HA16 9 /* High 16 bit, adjusted */
+#define R_TILEPRO_COPY 10 /* Copy relocation */
+#define R_TILEPRO_GLOB_DAT 11 /* Create GOT entry */
+#define R_TILEPRO_JMP_SLOT 12 /* Create PLT entry */
+#define R_TILEPRO_RELATIVE 13 /* Adjust by program base */
+#define R_TILEPRO_BROFF_X1 14 /* X1 pipe branch offset */
+#define R_TILEPRO_JOFFLONG_X1 15 /* X1 pipe jump offset */
+#define R_TILEPRO_JOFFLONG_X1_PLT 16 /* X1 pipe jump offset to PLT */
+#define R_TILEPRO_IMM8_X0 17 /* X0 pipe 8-bit */
+#define R_TILEPRO_IMM8_Y0 18 /* Y0 pipe 8-bit */
+#define R_TILEPRO_IMM8_X1 19 /* X1 pipe 8-bit */
+#define R_TILEPRO_IMM8_Y1 20 /* Y1 pipe 8-bit */
+#define R_TILEPRO_MT_IMM15_X1 21 /* X1 pipe mtspr */
+#define R_TILEPRO_MF_IMM15_X1 22 /* X1 pipe mfspr */
+#define R_TILEPRO_IMM16_X0 23 /* X0 pipe 16-bit */
+#define R_TILEPRO_IMM16_X1 24 /* X1 pipe 16-bit */
+#define R_TILEPRO_IMM16_X0_LO 25 /* X0 pipe low 16-bit */
+#define R_TILEPRO_IMM16_X1_LO 26 /* X1 pipe low 16-bit */
+#define R_TILEPRO_IMM16_X0_HI 27 /* X0 pipe high 16-bit */
+#define R_TILEPRO_IMM16_X1_HI 28 /* X1 pipe high 16-bit */
+#define R_TILEPRO_IMM16_X0_HA 29 /* X0 pipe high 16-bit, adjusted */
+#define R_TILEPRO_IMM16_X1_HA 30 /* X1 pipe high 16-bit, adjusted */
+#define R_TILEPRO_IMM16_X0_PCREL 31 /* X0 pipe PC relative 16 bit */
+#define R_TILEPRO_IMM16_X1_PCREL 32 /* X1 pipe PC relative 16 bit */
+#define R_TILEPRO_IMM16_X0_LO_PCREL 33 /* X0 pipe PC relative low 16 bit */
+#define R_TILEPRO_IMM16_X1_LO_PCREL 34 /* X1 pipe PC relative low 16 bit */
+#define R_TILEPRO_IMM16_X0_HI_PCREL 35 /* X0 pipe PC relative high 16 bit */
+#define R_TILEPRO_IMM16_X1_HI_PCREL 36 /* X1 pipe PC relative high 16 bit */
+#define R_TILEPRO_IMM16_X0_HA_PCREL 37 /* X0 pipe PC relative ha() 16 bit */
+#define R_TILEPRO_IMM16_X1_HA_PCREL 38 /* X1 pipe PC relative ha() 16 bit */
+#define R_TILEPRO_IMM16_X0_GOT 39 /* X0 pipe 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X1_GOT 40 /* X1 pipe 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X0_GOT_LO 41 /* X0 pipe low 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X1_GOT_LO 42 /* X1 pipe low 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X0_GOT_HI 43 /* X0 pipe high 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X1_GOT_HI 44 /* X1 pipe high 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X0_GOT_HA 45 /* X0 pipe ha() 16-bit GOT offset */
+#define R_TILEPRO_IMM16_X1_GOT_HA 46 /* X1 pipe ha() 16-bit GOT offset */
+#define R_TILEPRO_MMSTART_X0 47 /* X0 pipe mm "start" */
+#define R_TILEPRO_MMEND_X0 48 /* X0 pipe mm "end" */
+#define R_TILEPRO_MMSTART_X1 49 /* X1 pipe mm "start" */
+#define R_TILEPRO_MMEND_X1 50 /* X1 pipe mm "end" */
+#define R_TILEPRO_SHAMT_X0 51 /* X0 pipe shift amount */
+#define R_TILEPRO_SHAMT_X1 52 /* X1 pipe shift amount */
+#define R_TILEPRO_SHAMT_Y0 53 /* Y0 pipe shift amount */
+#define R_TILEPRO_SHAMT_Y1 54 /* Y1 pipe shift amount */
+#define R_TILEPRO_DEST_IMM8_X1 55 /* X1 pipe destination 8-bit */
+/* Relocs 56-59 are currently not defined. */
+#define R_TILEPRO_TLS_GD_CALL 60 /* "jal" for TLS GD */
+#define R_TILEPRO_IMM8_X0_TLS_GD_ADD 61 /* X0 pipe "addi" for TLS GD */
+#define R_TILEPRO_IMM8_X1_TLS_GD_ADD 62 /* X1 pipe "addi" for TLS GD */
+#define R_TILEPRO_IMM8_Y0_TLS_GD_ADD 63 /* Y0 pipe "addi" for TLS GD */
+#define R_TILEPRO_IMM8_Y1_TLS_GD_ADD 64 /* Y1 pipe "addi" for TLS GD */
+#define R_TILEPRO_TLS_IE_LOAD 65 /* "lw_tls" for TLS IE */
+#define R_TILEPRO_IMM16_X0_TLS_GD 66 /* X0 pipe 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X1_TLS_GD 67 /* X1 pipe 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X0_TLS_GD_LO 68 /* X0 pipe low 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X1_TLS_GD_LO 69 /* X1 pipe low 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X0_TLS_GD_HI 70 /* X0 pipe high 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X1_TLS_GD_HI 71 /* X1 pipe high 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X0_TLS_GD_HA 72 /* X0 pipe ha() 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X1_TLS_GD_HA 73 /* X1 pipe ha() 16-bit TLS GD offset */
+#define R_TILEPRO_IMM16_X0_TLS_IE 74 /* X0 pipe 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X1_TLS_IE 75 /* X1 pipe 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X0_TLS_IE_LO 76 /* X0 pipe low 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X1_TLS_IE_LO 77 /* X1 pipe low 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X0_TLS_IE_HI 78 /* X0 pipe high 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X1_TLS_IE_HI 79 /* X1 pipe high 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X0_TLS_IE_HA 80 /* X0 pipe ha() 16-bit TLS IE offset */
+#define R_TILEPRO_IMM16_X1_TLS_IE_HA 81 /* X1 pipe ha() 16-bit TLS IE offset */
+#define R_TILEPRO_TLS_DTPMOD32 82 /* ID of module containing symbol */
+#define R_TILEPRO_TLS_DTPOFF32 83 /* Offset in TLS block */
+#define R_TILEPRO_TLS_TPOFF32 84 /* Offset in static TLS block */
+#define R_TILEPRO_IMM16_X0_TLS_LE 85 /* X0 pipe 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X1_TLS_LE 86 /* X1 pipe 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X0_TLS_LE_LO 87 /* X0 pipe low 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X1_TLS_LE_LO 88 /* X1 pipe low 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X0_TLS_LE_HI 89 /* X0 pipe high 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X1_TLS_LE_HI 90 /* X1 pipe high 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X0_TLS_LE_HA 91 /* X0 pipe ha() 16-bit TLS LE offset */
+#define R_TILEPRO_IMM16_X1_TLS_LE_HA 92 /* X1 pipe ha() 16-bit TLS LE offset */
+
+#define R_TILEPRO_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */
+#define R_TILEPRO_GNU_VTENTRY 129 /* GNU C++ vtable member usage */
+
+#define R_TILEPRO_NUM 130
+
+
+/* TILE-Gx relocations. */
+#define R_TILEGX_NONE 0 /* No reloc */
+#define R_TILEGX_64 1 /* Direct 64 bit */
+#define R_TILEGX_32 2 /* Direct 32 bit */
+#define R_TILEGX_16 3 /* Direct 16 bit */
+#define R_TILEGX_8 4 /* Direct 8 bit */
+#define R_TILEGX_64_PCREL 5 /* PC relative 64 bit */
+#define R_TILEGX_32_PCREL 6 /* PC relative 32 bit */
+#define R_TILEGX_16_PCREL 7 /* PC relative 16 bit */
+#define R_TILEGX_8_PCREL 8 /* PC relative 8 bit */
+#define R_TILEGX_HW0 9 /* hword 0 16-bit */
+#define R_TILEGX_HW1 10 /* hword 1 16-bit */
+#define R_TILEGX_HW2 11 /* hword 2 16-bit */
+#define R_TILEGX_HW3 12 /* hword 3 16-bit */
+#define R_TILEGX_HW0_LAST 13 /* last hword 0 16-bit */
+#define R_TILEGX_HW1_LAST 14 /* last hword 1 16-bit */
+#define R_TILEGX_HW2_LAST 15 /* last hword 2 16-bit */
+#define R_TILEGX_COPY 16 /* Copy relocation */
+#define R_TILEGX_GLOB_DAT 17 /* Create GOT entry */
+#define R_TILEGX_JMP_SLOT 18 /* Create PLT entry */
+#define R_TILEGX_RELATIVE 19 /* Adjust by program base */
+#define R_TILEGX_BROFF_X1 20 /* X1 pipe branch offset */
+#define R_TILEGX_JUMPOFF_X1 21 /* X1 pipe jump offset */
+#define R_TILEGX_JUMPOFF_X1_PLT 22 /* X1 pipe jump offset to PLT */
+#define R_TILEGX_IMM8_X0 23 /* X0 pipe 8-bit */
+#define R_TILEGX_IMM8_Y0 24 /* Y0 pipe 8-bit */
+#define R_TILEGX_IMM8_X1 25 /* X1 pipe 8-bit */
+#define R_TILEGX_IMM8_Y1 26 /* Y1 pipe 8-bit */
+#define R_TILEGX_DEST_IMM8_X1 27 /* X1 pipe destination 8-bit */
+#define R_TILEGX_MT_IMM14_X1 28 /* X1 pipe mtspr */
+#define R_TILEGX_MF_IMM14_X1 29 /* X1 pipe mfspr */
+#define R_TILEGX_MMSTART_X0 30 /* X0 pipe mm "start" */
+#define R_TILEGX_MMEND_X0 31 /* X0 pipe mm "end" */
+#define R_TILEGX_SHAMT_X0 32 /* X0 pipe shift amount */
+#define R_TILEGX_SHAMT_X1 33 /* X1 pipe shift amount */
+#define R_TILEGX_SHAMT_Y0 34 /* Y0 pipe shift amount */
+#define R_TILEGX_SHAMT_Y1 35 /* Y1 pipe shift amount */
+#define R_TILEGX_IMM16_X0_HW0 36 /* X0 pipe hword 0 */
+#define R_TILEGX_IMM16_X1_HW0 37 /* X1 pipe hword 0 */
+#define R_TILEGX_IMM16_X0_HW1 38 /* X0 pipe hword 1 */
+#define R_TILEGX_IMM16_X1_HW1 39 /* X1 pipe hword 1 */
+#define R_TILEGX_IMM16_X0_HW2 40 /* X0 pipe hword 2 */
+#define R_TILEGX_IMM16_X1_HW2 41 /* X1 pipe hword 2 */
+#define R_TILEGX_IMM16_X0_HW3 42 /* X0 pipe hword 3 */
+#define R_TILEGX_IMM16_X1_HW3 43 /* X1 pipe hword 3 */
+#define R_TILEGX_IMM16_X0_HW0_LAST 44 /* X0 pipe last hword 0 */
+#define R_TILEGX_IMM16_X1_HW0_LAST 45 /* X1 pipe last hword 0 */
+#define R_TILEGX_IMM16_X0_HW1_LAST 46 /* X0 pipe last hword 1 */
+#define R_TILEGX_IMM16_X1_HW1_LAST 47 /* X1 pipe last hword 1 */
+#define R_TILEGX_IMM16_X0_HW2_LAST 48 /* X0 pipe last hword 2 */
+#define R_TILEGX_IMM16_X1_HW2_LAST 49 /* X1 pipe last hword 2 */
+#define R_TILEGX_IMM16_X0_HW0_PCREL 50 /* X0 pipe PC relative hword 0 */
+#define R_TILEGX_IMM16_X1_HW0_PCREL 51 /* X1 pipe PC relative hword 0 */
+#define R_TILEGX_IMM16_X0_HW1_PCREL 52 /* X0 pipe PC relative hword 1 */
+#define R_TILEGX_IMM16_X1_HW1_PCREL 53 /* X1 pipe PC relative hword 1 */
+#define R_TILEGX_IMM16_X0_HW2_PCREL 54 /* X0 pipe PC relative hword 2 */
+#define R_TILEGX_IMM16_X1_HW2_PCREL 55 /* X1 pipe PC relative hword 2 */
+#define R_TILEGX_IMM16_X0_HW3_PCREL 56 /* X0 pipe PC relative hword 3 */
+#define R_TILEGX_IMM16_X1_HW3_PCREL 57 /* X1 pipe PC relative hword 3 */
+#define R_TILEGX_IMM16_X0_HW0_LAST_PCREL 58 /* X0 pipe PC-rel last hword 0 */
+#define R_TILEGX_IMM16_X1_HW0_LAST_PCREL 59 /* X1 pipe PC-rel last hword 0 */
+#define R_TILEGX_IMM16_X0_HW1_LAST_PCREL 60 /* X0 pipe PC-rel last hword 1 */
+#define R_TILEGX_IMM16_X1_HW1_LAST_PCREL 61 /* X1 pipe PC-rel last hword 1 */
+#define R_TILEGX_IMM16_X0_HW2_LAST_PCREL 62 /* X0 pipe PC-rel last hword 2 */
+#define R_TILEGX_IMM16_X1_HW2_LAST_PCREL 63 /* X1 pipe PC-rel last hword 2 */
+#define R_TILEGX_IMM16_X0_HW0_GOT 64 /* X0 pipe hword 0 GOT offset */
+#define R_TILEGX_IMM16_X1_HW0_GOT 65 /* X1 pipe hword 0 GOT offset */
+#define R_TILEGX_IMM16_X0_HW0_PLT_PCREL 66 /* X0 pipe PC-rel PLT hword 0 */
+#define R_TILEGX_IMM16_X1_HW0_PLT_PCREL 67 /* X1 pipe PC-rel PLT hword 0 */
+#define R_TILEGX_IMM16_X0_HW1_PLT_PCREL 68 /* X0 pipe PC-rel PLT hword 1 */
+#define R_TILEGX_IMM16_X1_HW1_PLT_PCREL 69 /* X1 pipe PC-rel PLT hword 1 */
+#define R_TILEGX_IMM16_X0_HW2_PLT_PCREL 70 /* X0 pipe PC-rel PLT hword 2 */
+#define R_TILEGX_IMM16_X1_HW2_PLT_PCREL 71 /* X1 pipe PC-rel PLT hword 2 */
+#define R_TILEGX_IMM16_X0_HW0_LAST_GOT 72 /* X0 pipe last hword 0 GOT offset */
+#define R_TILEGX_IMM16_X1_HW0_LAST_GOT 73 /* X1 pipe last hword 0 GOT offset */
+#define R_TILEGX_IMM16_X0_HW1_LAST_GOT 74 /* X0 pipe last hword 1 GOT offset */
+#define R_TILEGX_IMM16_X1_HW1_LAST_GOT 75 /* X1 pipe last hword 1 GOT offset */
+#define R_TILEGX_IMM16_X0_HW3_PLT_PCREL 76 /* X0 pipe PC-rel PLT hword 3 */
+#define R_TILEGX_IMM16_X1_HW3_PLT_PCREL 77 /* X1 pipe PC-rel PLT hword 3 */
+#define R_TILEGX_IMM16_X0_HW0_TLS_GD 78 /* X0 pipe hword 0 TLS GD offset */
+#define R_TILEGX_IMM16_X1_HW0_TLS_GD 79 /* X1 pipe hword 0 TLS GD offset */
+#define R_TILEGX_IMM16_X0_HW0_TLS_LE 80 /* X0 pipe hword 0 TLS LE offset */
+#define R_TILEGX_IMM16_X1_HW0_TLS_LE 81 /* X1 pipe hword 0 TLS LE offset */
+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_LE 82 /* X0 pipe last hword 0 LE off */
+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_LE 83 /* X1 pipe last hword 0 LE off */
+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_LE 84 /* X0 pipe last hword 1 LE off */
+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_LE 85 /* X1 pipe last hword 1 LE off */
+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_GD 86 /* X0 pipe last hword 0 GD off */
+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_GD 87 /* X1 pipe last hword 0 GD off */
+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_GD 88 /* X0 pipe last hword 1 GD off */
+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_GD 89 /* X1 pipe last hword 1 GD off */
+/* Relocs 90-91 are currently not defined. */
+#define R_TILEGX_IMM16_X0_HW0_TLS_IE 92 /* X0 pipe hword 0 TLS IE offset */
+#define R_TILEGX_IMM16_X1_HW0_TLS_IE 93 /* X1 pipe hword 0 TLS IE offset */
+#define R_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL 94 /* X0 pipe PC-rel PLT last hword 0 */
+#define R_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL 95 /* X1 pipe PC-rel PLT last hword 0 */
+#define R_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL 96 /* X0 pipe PC-rel PLT last hword 1 */
+#define R_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL 97 /* X1 pipe PC-rel PLT last hword 1 */
+#define R_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL 98 /* X0 pipe PC-rel PLT last hword 2 */
+#define R_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL 99 /* X1 pipe PC-rel PLT last hword 2 */
+#define R_TILEGX_IMM16_X0_HW0_LAST_TLS_IE 100 /* X0 pipe last hword 0 IE off */
+#define R_TILEGX_IMM16_X1_HW0_LAST_TLS_IE 101 /* X1 pipe last hword 0 IE off */
+#define R_TILEGX_IMM16_X0_HW1_LAST_TLS_IE 102 /* X0 pipe last hword 1 IE off */
+#define R_TILEGX_IMM16_X1_HW1_LAST_TLS_IE 103 /* X1 pipe last hword 1 IE off */
+/* Relocs 104-105 are currently not defined. */
+#define R_TILEGX_TLS_DTPMOD64 106 /* 64-bit ID of symbol's module */
+#define R_TILEGX_TLS_DTPOFF64 107 /* 64-bit offset in TLS block */
+#define R_TILEGX_TLS_TPOFF64 108 /* 64-bit offset in static TLS block */
+#define R_TILEGX_TLS_DTPMOD32 109 /* 32-bit ID of symbol's module */
+#define R_TILEGX_TLS_DTPOFF32 110 /* 32-bit offset in TLS block */
+#define R_TILEGX_TLS_TPOFF32 111 /* 32-bit offset in static TLS block */
+#define R_TILEGX_TLS_GD_CALL 112 /* "jal" for TLS GD */
+#define R_TILEGX_IMM8_X0_TLS_GD_ADD 113 /* X0 pipe "addi" for TLS GD */
+#define R_TILEGX_IMM8_X1_TLS_GD_ADD 114 /* X1 pipe "addi" for TLS GD */
+#define R_TILEGX_IMM8_Y0_TLS_GD_ADD 115 /* Y0 pipe "addi" for TLS GD */
+#define R_TILEGX_IMM8_Y1_TLS_GD_ADD 116 /* Y1 pipe "addi" for TLS GD */
+#define R_TILEGX_TLS_IE_LOAD 117 /* "ld_tls" for TLS IE */
+#define R_TILEGX_IMM8_X0_TLS_ADD 118 /* X0 pipe "addi" for TLS GD/IE */
+#define R_TILEGX_IMM8_X1_TLS_ADD 119 /* X1 pipe "addi" for TLS GD/IE */
+#define R_TILEGX_IMM8_Y0_TLS_ADD 120 /* Y0 pipe "addi" for TLS GD/IE */
+#define R_TILEGX_IMM8_Y1_TLS_ADD 121 /* Y1 pipe "addi" for TLS GD/IE */
+
+#define R_TILEGX_GNU_VTINHERIT 128 /* GNU C++ vtable hierarchy */
+#define R_TILEGX_GNU_VTENTRY 129 /* GNU C++ vtable member usage */
+
+#define R_TILEGX_NUM 130
+
+/* RISC-V ELF Flags */
+#define EF_RISCV_RVC 0x0001
+#define EF_RISCV_FLOAT_ABI 0x0006
+#define EF_RISCV_FLOAT_ABI_SOFT 0x0000
+#define EF_RISCV_FLOAT_ABI_SINGLE 0x0002
+#define EF_RISCV_FLOAT_ABI_DOUBLE 0x0004
+#define EF_RISCV_FLOAT_ABI_QUAD 0x0006
+
+/* RISC-V relocations. */
+#define R_RISCV_NONE 0
+#define R_RISCV_32 1
+#define R_RISCV_64 2
+#define R_RISCV_RELATIVE 3
+#define R_RISCV_COPY 4
+#define R_RISCV_JUMP_SLOT 5
+#define R_RISCV_TLS_DTPMOD32 6
+#define R_RISCV_TLS_DTPMOD64 7
+#define R_RISCV_TLS_DTPREL32 8
+#define R_RISCV_TLS_DTPREL64 9
+#define R_RISCV_TLS_TPREL32 10
+#define R_RISCV_TLS_TPREL64 11
+#define R_RISCV_BRANCH 16
+#define R_RISCV_JAL 17
+#define R_RISCV_CALL 18
+#define R_RISCV_CALL_PLT 19
+#define R_RISCV_GOT_HI20 20
+#define R_RISCV_TLS_GOT_HI20 21
+#define R_RISCV_TLS_GD_HI20 22
+#define R_RISCV_PCREL_HI20 23
+#define R_RISCV_PCREL_LO12_I 24
+#define R_RISCV_PCREL_LO12_S 25
+#define R_RISCV_HI20 26
+#define R_RISCV_LO12_I 27
+#define R_RISCV_LO12_S 28
+#define R_RISCV_TPREL_HI20 29
+#define R_RISCV_TPREL_LO12_I 30
+#define R_RISCV_TPREL_LO12_S 31
+#define R_RISCV_TPREL_ADD 32
+#define R_RISCV_ADD8 33
+#define R_RISCV_ADD16 34
+#define R_RISCV_ADD32 35
+#define R_RISCV_ADD64 36
+#define R_RISCV_SUB8 37
+#define R_RISCV_SUB16 38
+#define R_RISCV_SUB32 39
+#define R_RISCV_SUB64 40
+#define R_RISCV_GNU_VTINHERIT 41
+#define R_RISCV_GNU_VTENTRY 42
+#define R_RISCV_ALIGN 43
+#define R_RISCV_RVC_BRANCH 44
+#define R_RISCV_RVC_JUMP 45
+#define R_RISCV_RVC_LUI 46
+#define R_RISCV_GPREL_I 47
+#define R_RISCV_GPREL_S 48
+#define R_RISCV_TPREL_I 49
+#define R_RISCV_TPREL_S 50
+#define R_RISCV_RELAX 51
+#define R_RISCV_SUB6 52
+#define R_RISCV_SET6 53
+#define R_RISCV_SET8 54
+#define R_RISCV_SET16 55
+#define R_RISCV_SET32 56
+#define R_RISCV_32_PCREL 57
+
+#define R_RISCV_NUM 58
+
+/* BPF specific declarations. */
+
+#define R_BPF_NONE 0 /* No reloc */
+#define R_BPF_64_64 1
+#define R_BPF_64_32 10
+
+/* Imagination Meta specific relocations. */
+
+#define R_METAG_HIADDR16 0
+#define R_METAG_LOADDR16 1
+#define R_METAG_ADDR32 2 /* 32bit absolute address */
+#define R_METAG_NONE 3 /* No reloc */
+#define R_METAG_RELBRANCH 4
+#define R_METAG_GETSETOFF 5
+
+/* Backward compatability */
+#define R_METAG_REG32OP1 6
+#define R_METAG_REG32OP2 7
+#define R_METAG_REG32OP3 8
+#define R_METAG_REG16OP1 9
+#define R_METAG_REG16OP2 10
+#define R_METAG_REG16OP3 11
+#define R_METAG_REG32OP4 12
+
+#define R_METAG_HIOG 13
+#define R_METAG_LOOG 14
+
+#define R_METAG_REL8 15
+#define R_METAG_REL16 16
+
+/* GNU */
+#define R_METAG_GNU_VTINHERIT 30
+#define R_METAG_GNU_VTENTRY 31
+
+/* PIC relocations */
+#define R_METAG_HI16_GOTOFF 32
+#define R_METAG_LO16_GOTOFF 33
+#define R_METAG_GETSET_GOTOFF 34
+#define R_METAG_GETSET_GOT 35
+#define R_METAG_HI16_GOTPC 36
+#define R_METAG_LO16_GOTPC 37
+#define R_METAG_HI16_PLT 38
+#define R_METAG_LO16_PLT 39
+#define R_METAG_RELBRANCH_PLT 40
+#define R_METAG_GOTOFF 41
+#define R_METAG_PLT 42
+#define R_METAG_COPY 43
+#define R_METAG_JMP_SLOT 44
+#define R_METAG_RELATIVE 45
+#define R_METAG_GLOB_DAT 46
+
+/* TLS relocations */
+#define R_METAG_TLS_GD 47
+#define R_METAG_TLS_LDM 48
+#define R_METAG_TLS_LDO_HI16 49
+#define R_METAG_TLS_LDO_LO16 50
+#define R_METAG_TLS_LDO 51
+#define R_METAG_TLS_IE 52
+#define R_METAG_TLS_IENONPIC 53
+#define R_METAG_TLS_IENONPIC_HI16 54
+#define R_METAG_TLS_IENONPIC_LO16 55
+#define R_METAG_TLS_TPOFF 56
+#define R_METAG_TLS_DTPMOD 57
+#define R_METAG_TLS_DTPOFF 58
+#define R_METAG_TLS_LE 59
+#define R_METAG_TLS_LE_HI16 60
+#define R_METAG_TLS_LE_LO16 61
+
+/* NDS32 relocations. */
+#define R_NDS32_NONE 0
+#define R_NDS32_32_RELA 20
+#define R_NDS32_COPY 39
+#define R_NDS32_GLOB_DAT 40
+#define R_NDS32_JMP_SLOT 41
+#define R_NDS32_RELATIVE 42
+#define R_NDS32_TLS_TPOFF 102
+#define R_NDS32_TLS_DESC 119
+
+__END_DECLS
+
+#endif /* elf.h */
diff --git a/libc/glibc/include/alloca.h b/libc/glibc/include/alloca.h
new file mode 100644
index 000000000000..c0b83954436e
--- /dev/null
+++ b/libc/glibc/include/alloca.h
@@ -0,0 +1,40 @@
+#ifndef _ALLOCA_H
+
+#include
+
+# ifndef _ISOMAC
+
+#include
+
+#undef __alloca
+
+/* Now define the internal interfaces. */
+extern void *__alloca (size_t __size);
+
+#ifdef __GNUC__
+# define __alloca(size) __builtin_alloca (size)
+#endif /* GCC. */
+
+extern int __libc_use_alloca (size_t size) __attribute__ ((const));
+extern int __libc_alloca_cutoff (size_t size) __attribute__ ((const));
+libc_hidden_proto (__libc_alloca_cutoff)
+
+#define __MAX_ALLOCA_CUTOFF 65536
+
+#include
+
+#if defined stackinfo_get_sp && defined stackinfo_sub_sp
+# define alloca_account(size, avar) \
+ ({ void *old__ = stackinfo_get_sp (); \
+ void *m__ = __alloca (size); \
+ avar += stackinfo_sub_sp (old__); \
+ m__; })
+#else
+# define alloca_account(size, avar) \
+ ({ size_t s__ = (size); \
+ avar += s__; \
+ __alloca (s__); })
+#endif
+
+# endif /* !_ISOMAC */
+#endif
diff --git a/libc/glibc/include/bits/cpu-set.h b/libc/glibc/include/bits/cpu-set.h
new file mode 100644
index 000000000000..388f03cfbd16
--- /dev/null
+++ b/libc/glibc/include/bits/cpu-set.h
@@ -0,0 +1 @@
+#include
diff --git a/libc/glibc/include/bits/statx.h b/libc/glibc/include/bits/statx.h
new file mode 100644
index 000000000000..8ec78a4f37e5
--- /dev/null
+++ b/libc/glibc/include/bits/statx.h
@@ -0,0 +1 @@
+#include
diff --git a/libc/glibc/include/bits/stdlib-float.h b/libc/glibc/include/bits/stdlib-float.h
new file mode 100644
index 000000000000..54ab57198165
--- /dev/null
+++ b/libc/glibc/include/bits/stdlib-float.h
@@ -0,0 +1,8 @@
+/* No floating-point inline functions in rtld and for the conform tests. */
+#ifdef _ISOMAC
+# include
+#else
+# if !IS_IN (rtld)
+# include
+# endif
+#endif
diff --git a/libc/glibc/include/bits/types.h b/libc/glibc/include/bits/types.h
new file mode 100644
index 000000000000..1c479106072c
--- /dev/null
+++ b/libc/glibc/include/bits/types.h
@@ -0,0 +1 @@
+#include
diff --git a/libc/glibc/include/bits/types/__locale_t.h b/libc/glibc/include/bits/types/__locale_t.h
new file mode 100644
index 000000000000..610b8197c795
--- /dev/null
+++ b/libc/glibc/include/bits/types/__locale_t.h
@@ -0,0 +1 @@
+#include
diff --git a/libc/glibc/include/bits/types/clock_t.h b/libc/glibc/include/bits/types/clock_t.h
new file mode 100644
index 000000000000..4cfe8e7e8b27
--- /dev/null
+++ b/libc/glibc/include/bits/types/clock_t.h
@@ -0,0 +1 @@
+#include