mirror of
https://github.com/ziglang/zig.git
synced 2026-01-18 13:25:15 +00:00
This was a bit trickier than it should be due to symbol conflicts with zig's compiler-rt implementation. We attempt to use weak linkage in our compiler-rt, but this does not seem to be working in all cases. I manually disabled export of the problematic compiler-rt math functions in order to cross compile musl's libc.so for all targets as input to `tools/gen_stubs.zig`. Other than that, this update went fairly smoothly. Quite a few additional symbols were added to the blacklist in `tools/gen_stubs.zig` due to recent reorganization of zig's compiler-rt.
20 lines
586 B
C
20 lines
586 B
C
#ifndef STDLIB_H
|
|
#define STDLIB_H
|
|
|
|
#include "../../include/stdlib.h"
|
|
|
|
hidden int __putenv(char *, size_t, char *);
|
|
hidden void __env_rm_add(char *, char *);
|
|
hidden int __mkostemps(char *, int, int);
|
|
hidden int __ptsname_r(int, char *, size_t);
|
|
hidden char *__randname(char *);
|
|
hidden void __qsort_r (void *, size_t, size_t, int (*)(const void *, const void *, void *), void *);
|
|
|
|
hidden void *__libc_malloc(size_t);
|
|
hidden void *__libc_malloc_impl(size_t);
|
|
hidden void *__libc_calloc(size_t, size_t);
|
|
hidden void *__libc_realloc(void *, size_t);
|
|
hidden void __libc_free(void *);
|
|
|
|
#endif
|