mirror of
https://github.com/ziglang/zig.git
synced 2025-12-07 06:43:07 +00:00
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).
29 lines
1.5 KiB
C
Vendored
29 lines
1.5 KiB
C
Vendored
/* This file is automatically generated. */
|
|
#ifndef __GNU_LIB_NAMES_H
|
|
# error "Never use <gnu/lib-names-o32_soft.h> directly; include <gnu/lib-names.h> instead."
|
|
#endif
|
|
|
|
#define LD_SO "ld.so.1"
|
|
#define LIBANL_SO "libanl.so.1"
|
|
#define LIBBROKENLOCALE_SO "libBrokenLocale.so.1"
|
|
#define LIBCRYPT_SO "libcrypt.so.1"
|
|
#define LIBC_MALLOC_DEBUG_SO "libc_malloc_debug.so.0"
|
|
#define LIBC_SO "libc.so.6"
|
|
#define LIBDL_SO "libdl.so.2"
|
|
#define LIBGCC_S_SO "libgcc_s.so.1"
|
|
#define LIBMVEC_SO "libmvec.so.1"
|
|
#define LIBM_SO "libm.so.6"
|
|
#define LIBNSL_SO "libnsl.so.1"
|
|
#define LIBNSS_COMPAT_SO "libnss_compat.so.2"
|
|
#define LIBNSS_DB_SO "libnss_db.so.2"
|
|
#define LIBNSS_DNS_SO "libnss_dns.so.2"
|
|
#define LIBNSS_FILES_SO "libnss_files.so.2"
|
|
#define LIBNSS_HESIOD_SO "libnss_hesiod.so.2"
|
|
#define LIBNSS_LDAP_SO "libnss_ldap.so.2"
|
|
#define LIBNSS_TEST1_SO "libnss_test1.so.2"
|
|
#define LIBNSS_TEST2_SO "libnss_test2.so.2"
|
|
#define LIBPTHREAD_SO "libpthread.so.0"
|
|
#define LIBRESOLV_SO "libresolv.so.2"
|
|
#define LIBRT_SO "librt.so.1"
|
|
#define LIBTHREAD_DB_SO "libthread_db.so.1"
|
|
#define LIBUTIL_SO "libutil.so.1" |