Age | Commit message (Collapse) | Author | Files | Lines |
|
Correct __*_finite math functions
See merge request adelie/gcompat!8
|
|
Implement: __fwprintf_chk, wcstoul_l, wcstoul_l, wcstod_l
See merge request adelie/gcompat!7
|
|
This corrects a mistake in the finite math functions in which it
was asserted that the return values had to be infinite, instead of
the intended behavior of asserting that they were not infinite.
Signed-off-by: George Matsumura <gmmatsumura01@bvsd.org>
|
|
This is similar to strtoll_l() in a way it ignores
the locale_t argument and uses the global locale
settings.
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
|
|
This is similar to strtoll_l() in a way it ignores
the locale_t argument and uses the global locale
settings.
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
|
|
This is similar to strtoll_l() in a way it ignores
the locale_t argument and uses the global locale
settings.
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
|
|
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
|
|
Signed-off-by: Michal Kazior <kazikcz@gmail.com>
|
|
|
|
|
|
|
|
|
|
Newer releases of Chromium directly execv /proc/self/exe, missing our
readlink(3) interposing. We go ahead and interpose all three execv*
functions just to ensure wider compatibility.
|
|
The assertion should be that the return value was 0.
Additionally, show the result code if the return value is not 0.
|
|
|
|
internal: add a wrapper for __libc_start_main for PowerPC(64(le))
See merge request adelie/gcompat!6
|
|
This is necessary because the musl and glibc function signatures
differ significantly.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
pthread: Fix pthread_getname_np
Remove the trailing newline, and ensure the string
returned is always null-terminated.
Signed-off-by: Samuel Holland <samuel@sholland.org>
See merge request !5
|
|
Remove the trailing newline, and ensure the string
returned is always null-terminated.
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
New kernel compatibility; obstack; pthread_getname_np
The gcompat loader compiled as a static binary doesn't work on Linux since [a4ff8e8620d3f4](https://github.com/torvalds/linux/commit/a4ff8e8620d3f4f50ac4b41e8067b7d395056843), failing with an error like:
```
[349055.473655] 13325 (cmake): Uhuuh, elf segment at 0000000000400000 requested but the memory is mapped already
```
This is because the actual binary we want to run is also loaded at 0x400000. While it's actually okay to overlap the binary, since we're going to call `execve` again, the kernel doesn't allow the overlap anymore. Fix that by compiling the loader as static PIE, so it can be put at a different address.
Also add `pthread_getname_np` and the option to link `obstack`.
See merge request !4
|
|
The gcompat loader compiled as a static binary doesn't work on Linux
since commit a4ff8e8620d3f4, failing with the error:
```
Uhuuh, elf segment at 0000000000400000 requested but the memory is mapped already
```
This is because the binary we are the ELF interpreter for is also loaded
at 0x400000. While it's actually okay to overlap the binary, since we're
going to call `execve` again, the kernel doesn't allow the overlap
anymore. Fix that by compiling the loader as static PIE, so it can be
loaded at a different address.
Signed-off-by: Samuel Holland <samuel@sholland.org>
|
|
Signed-off-by: Samuel Holland <samuel@sholland.org>
|