diff options
author | Justus Winter <justus@gnupg.org> | 2017-08-11 18:10:15 +0200 |
---|---|---|
committer | Justus Winter <justus@gnupg.org> | 2017-08-11 22:07:11 +0200 |
commit | 01ced1f5856659f4f457f39c270dd10f64ccaab8 (patch) | |
tree | 1b57c0aa31276f7b596d7eca20533a7017a8576a /startup/startup.c | |
parent | e2823ba8f994292ecb92b83dfa3174e6f11c92fd (diff) | |
download | hurd-01ced1f5856659f4f457f39c270dd10f64ccaab8.tar.gz hurd-01ced1f5856659f4f457f39c270dd10f64ccaab8.tar.bz2 hurd-01ced1f5856659f4f457f39c270dd10f64ccaab8.zip |
libshouldbeinlibc: Fix wiring code.
* libshouldbeinlibc/wire.c (statically_linked): New function.
(loaded): Remove check.
(wire_segment_internal): Fix error handling. Be smarter about the
wiring, inspired by the mach-defpager code.
(wire_segment): Fix error handling.
(wire_task_self): Fix error handling. Distinguish between static
binaries and dynamic binaries without DT_DEBUG or link map. When we
don't have a map, fall back to wiring the whole space. Wire future
allocations.
* libshouldbeinlibc/wire.h (wire_task_self): Return error_t.
(wire_segment): Likewise.
Diffstat (limited to 'startup/startup.c')
0 files changed, 0 insertions, 0 deletions