Alex Rønne Petersen
675b1a15a1
glibc: update crt0 code to 2.42
2025-08-01 09:00:27 +02:00
Alex Rønne Petersen
5702d67af6
glibc: Update source files to 2.41.
2025-01-31 14:38:21 +01:00
Alex Rønne Petersen
f1f269c6ee
libc: Remove a bunch of code for architectures we don't actually support.
...
Namely:
* alpha
* hppa
* ia64
* microblaze
* nios2
* or1k
* s390
* sh
2025-01-21 09:30:16 +01:00
Alex Rønne Petersen
c1cc63e5ff
libc: Work around LLVM's misassembly of j <reg> on mips r6.
...
See: https://github.com/ziglang/zig/issues/21315
2024-09-23 17:26:30 -07:00
Alex Rønne Petersen
945fc7064b
glibc: Add missing xstatver.h for some linux architectures.
...
Specifically for alpha, arm, hppa, microblaze, and sh.
Closes #20054 .
2024-08-23 00:58:16 -07:00
YANG Xudong
0f0f543a9a
loongarch: add glibc start.S to make zig-bootstrap work for loongarch64-linux-gnu ( #21015 )
2024-08-14 21:32:03 +00:00
Alex Rønne Petersen
21ff35590c
Update glibc start files to 2.40.
2024-08-08 04:41:04 +02:00
Andrew Kelley
fd8b50ca5c
glibc patch: remove some static asserts from fstatat
...
These are tripping on 32-bit x86 but are intended to prevent glibc
itself from being built with a bad configuration. Zig is only using this
file to create libc_nonshared.a, so it's not relevant.
2024-06-05 22:43:53 -07:00
Andrew Kelley
090025c457
glibc patch: add missing includes for inttypes.h
...
I don't know where glibc thinks uintptr_t is coming from, but here it
is.
2024-06-05 22:43:53 -07:00
Andrew Kelley
eead70f2d6
glibc patch: make fstatat.c and fstatat64.c compile
...
instead of importing every header file under the sun, I copied a couple
inline functions into these files to make them work.
2024-06-05 22:43:53 -07:00
Andrew Kelley
ad34de32a8
update glibc start files to 2.39
...
README file stays intact.
2024-06-05 22:43:53 -07:00
Kang Seonghoon
f1bd218a88
glibc: remove unused stat-related files for 2.33+
...
Effectively reverts 3dcd3612dc .
2024-01-04 17:12:07 -07:00
Andrew Kelley
701ef1f8c2
glibc patch: remove some static asserts from fstatat
...
These are tripping on 32-bit x86 but are intended to prevent glibc
itself from being built with a bad configuration. Zig is only using this
file to create libc_nonshared.a, so it's not relevant.
2023-10-13 19:32:54 -07:00
Andrew Kelley
6d8b7e95b5
glibc patch: add missing includes for inttypes.h
...
I don't know where glibc thinks uintptr_t is coming from, but here it
is.
2023-10-13 18:12:00 -07:00
Andrew Kelley
50e18343a9
glibc patch: make fstatat.c and fstatat64.c compile
...
instead of importing every header file under the sun, I copied a couple
inline functions into these files to make them work.
2023-10-13 18:06:12 -07:00
Andrew Kelley
2314051aca
update glibc start files to 2.38
...
I went ahead and left the README.md file deleted because it had broken
git hashes. Better to use `git log -- lib/libc/glibc/` to find out the
patches.
2023-10-13 17:44:27 -07:00
Andrew Kelley
e03c951a79
glibc: libc_nonshared.a: add missing includes for inttypes.h
...
I don't know where glibc thinks uintptr_t is coming from, but here it
is.
2021-12-16 03:01:13 -07:00
Andrew Kelley
37fa6f955d
glibc: add stat_t64_cp.c to libnonshared.a
...
Fixes 32-bit architectures.
2021-12-16 03:01:13 -07:00
Andrew Kelley
bf2bd8e722
glibc: patches to make fstatat.c and fstatat64.c compile
...
instead of importing every header file under the sun, I copied a couple
inline functions into these files to make them work.
2021-12-16 03:01:13 -07:00
Andrew Kelley
5aeffab693
glibc: import sysdep.h from upstream
...
it's needed for mipsel-linux-gnueabihf
2021-12-15 19:12:24 -07:00
Andrew Kelley
e977455f7c
glibc: improve RISC-V support
...
* omit crti.o / crtn.o for this architecture
* add missing entry.h header from upstream
2021-12-15 18:34:27 -07:00
Andrew Kelley
3dcd3612dc
glibc: use linux-specific files for nonshared
...
Upstream, some of the nonshared functions moved to be different for hurd
and for linux. Since our glibc is linux-only we update to use the
linux-specific files.
This fixes std lib tests for x86_64 when linking glibc.
2021-12-15 15:23:56 -07:00
Andrew Kelley
19ca2415f2
update glibc start files to 2.34
...
This commit introduces tools/update_glibc.zig to update the start files
for next time.
Some notable changes in recent glibc:
* abi-note.S has been changed to abi-note.c but we resist the change to
keep it easier to compile the start files.
* elf-init.c has been deleted upstream. Further testing should be done
to verify that binaries against glibc omitting elf-init.c still run
properly on oldel glibc linux systems.
Closes #4926
2021-12-15 14:30:03 -07:00
Andrew Kelley
3ff2381042
update glibc source files to 2.31
...
This is mostly minor modifications to license text.
2020-03-04 14:59:09 -05:00
Andrew Kelley
7101e583d6
update glibc src files to 2.30
2019-09-10 16:40:54 -04:00
Andrew Kelley
49d1a4c562
move lib dirs to lib subdir
...
also start prefering NtDll API. so far:
* NtQueryInformationFile
* NtClose
adds a performance workaround for windows unicode conversion. but that
should probably be removed before merging
2019-07-15 17:54:50 -04:00