zig/lib/libc/include/generic-glibc/bits
Andrew Kelley 5b6d26e97b glibc: fix inconsistency of mips ABI mapping
Before this commit, glibc headers did the following mapping:

 * (zig) mipsel-linux-gnu      => (glibc) mipsel-linux-gnu
 * (zig) mipsel-linux-gnu-soft => (glibc) (none)
 * (zig) mips-linux-gnu        => (glibc) mips-linux-gnu
 * (zig) mips-linux-gnu-soft   => (glibc) (none)

While the glibc ABI stubs used the (zig) gnueabi and gnueabihf ABIs,
and the stage2 available_libcs array listed:

 * (zig) mipsel-linux-gnu
 * (zig) mips-linux-gnu

The problem is the mismatch between the ABI component of the headers and
the stubs.

This commit makes the following clarifications:

 * (zig) mips-linux-gnueabi     means soft-float
 * (zig) mipsel-linux-gnueabi   means soft-float
 * (zig) mips-linux-gnueabihf   means hard-float
 * (zig) mipsel-linux-gnueabihf means hard-float

Consequently, the glibc headers now do this mapping:

 * (zig) mips-linux-gnueabihf   => (glibc) mips-linux-gnu
 * (zig) mipsel-linux-gnueabihf => (glibc) mipsel-linux-gnu
 * (zig) mips-linux-gnueabi     => (glibc) mips-linux-gnu-soft
 * (zig) mipsel-linux-gnueabi   => (glibc) mipsel-linux-gnu-soft

The glibc ABI stubs are unchanged, and the stage2 available_libcs
array's 2 entries are modified and it gains 2 more:

 * (zig) mipsel-linux-gnueabi
 * (zig) mipsel-linux-gnueabihf
 * (zig) mips-linux-gnueabi
 * (zig) mips-linux-gnueabihf

Now everything is consistent. Zig no longer recognizes a `mips-linux-gnu`
triple; one must use `mips-linux-gnueabi` (soft float) or
`mips-linux-gnueabihf` (hard float).
2021-12-15 19:09:50 -07:00
..
platform update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
types update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
a.out.h Revert "Merge pull request #6137 from Jan200101/update/glibc-2.32" 2020-08-24 15:19:34 -07:00
argp-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
byteswap.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
cmathcalls.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
confname.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
cpu-set.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
dirent.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
dirent_ext.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
dlfcn.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
elfclass.h move lib dirs to lib subdir 2019-07-15 17:54:50 -04:00
endian.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
endianness.h Revert "Merge pull request #6137 from Jan200101/update/glibc-2.32" 2020-08-24 15:19:34 -07:00
environments.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
epoll.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
err-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
errno.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
error-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
error.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
eventfd.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fcntl-linux.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fcntl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fcntl2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fenv.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
floatn-common.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
floatn.h glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
flt-eval-method.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fp-fast.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
fp-logb.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
getopt_core.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
getopt_ext.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
getopt_posix.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
hwcap.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
in.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
indirect-return.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
initspin.h move lib dirs to lib subdir 2019-07-15 17:54:50 -04:00
inotify.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ioctl-types.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ioctls.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ipc-perm.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ipc.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ipctypes.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
iscanonical.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
libc-header-start.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
libm-simd-decl-stubs.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
link.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
local_lim.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
locale.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
long-double.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
math-vector.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mathcalls-helper-functions.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mathcalls-narrow.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mathcalls.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
mathdef.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mman-linux.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mman-map-flags-generic.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mman-shared.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mman.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
monetary-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mqueue.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
mqueue2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
msq.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
netdb.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
param.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
poll.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
poll2.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
posix1_lim.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
posix2_lim.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
posix_opt.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ppc.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
printf-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
procfs-extra.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
procfs-id.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
procfs-prregset.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
procfs.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
pthread_stack_min-dynamic.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
pthread_stack_min.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
pthreadtypes-arch.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
pthreadtypes.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ptrace-shared.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
resource.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sched.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
select.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
select2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sem.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
semaphore.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
setjmp.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
setjmp2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
shm.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
shmlba.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sigaction.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sigcontext.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sigevent-consts.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
siginfo-arch.h Revert "Merge pull request #6137 from Jan200101/update/glibc-2.32" 2020-08-24 15:19:34 -07:00
siginfo-consts-arch.h move lib dirs to lib subdir 2019-07-15 17:54:50 -04:00
siginfo-consts.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
signal_ext.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
signalfd.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
signum-arch.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
signum-generic.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sigstack.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sigstksz.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
sigthread.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sockaddr.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
socket-constants.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
socket.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
socket2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
socket_type.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
ss_flags.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stab.def glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stat.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
statfs.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
statvfs.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
statx-generic.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
statx.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdint-intn.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdint-uintn.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdio-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdio.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdio2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdio_lim.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdlib-bsearch.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdlib-float.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdlib-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
stdlib.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
string_fortified.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
strings_fortified.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
struct_mutex.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
struct_rwlock.h glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
struct_stat.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
struct_stat_time64_helper.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
syscall.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
syslog-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
syslog-path.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
syslog.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
sysmacros.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-baud.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-c_cc.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-c_cflag.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-c_iflag.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-c_lflag.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-c_oflag.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-misc.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-struct.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios-tcflow.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
termios.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
thread-shared-types.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
time.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
time64.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
timerfd.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
timesize.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
timex.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
types.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
typesizes.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
uintn-identity.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
uio-ext.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
uio_lim.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
unistd.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
unistd_ext.h update glibc headers to 2.34 2021-12-15 14:30:03 -07:00
utmp.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
utmpx.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
utsname.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
waitflags.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
waitstatus.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
wchar-ldbl.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
wchar.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
wchar2.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
wctype-wchar.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00
wordsize.h glibc: fix inconsistency of mips ABI mapping 2021-12-15 19:09:50 -07:00
xopen_lim.h glibc: update headers to 2.33 2021-04-04 12:04:02 -07:00