Age | Commit message (Collapse) | Author | |
---|---|---|---|
2017-11-15 | Tweak bitmask calculation to match i386 and avoid clang warning. | Mark Kettenis | |
ok tom@ | |||
2017-11-05 | Consolidate lib.so.*.a, ld.so.a and the kernel relink kit into | Robert Peichaer | |
one location under /usr/share/relink. Be more specific in src/etc/rc reorder_libs() what filesystems need r/w remount and ensure that their mount state is restored. Idea and positive feedback from deraadt@ OK aja@ tb@ | |||
2017-10-29 | Prefer <elf.h> to the non portable <sys/exec_elf.h>. | Martin Pieuchot | |
ok jca@, deraadt@ | |||
2017-10-27 | Use <elf.h> instead of <elf_abi.h> | Martin Pieuchot | |
ok jasper@, jca@, deraadt@ | |||
2017-10-26 | If LD_BIND_NOW is in force then all relocations are performed eagerly, | Philip Guenther | |
when the object is loaded. Since kbind(2) will never be used in that case, disable it early, before invoking any library or application code. ok deraadt@ kettenis@ | |||
2017-10-24 | R_AARCH64_NONE should be zero, not 256. The latter was a deprecated | Philip Guenther | |
assignment and isn't used by clang/lld. ok jsg@ | |||
2017-10-10 | __plt_{start,end} are no longer generated or necessary, having been | Philip Guenther | |
superseded by the generic ?WX and RELRO support. Stop trying to look up and use them. ok kettenis@ deraadt@ | |||
2017-10-05 | Sync with libc malloc, doing delayed free double-free check always | Otto Moerbeek | |
2017-09-09 | Remove superfluous mprotect()ing of the PLT that's been obsoleted by | Philip Guenther | |
the generic handling of RWX segments. ok aoyama@ | |||
2017-09-03 | Fix m88k problem in recent ld.so changes. | Kenji Aoyama | |
- move _dl_cerror function from SYS.h to ldasm.S to avoid duplicate definition when linking - [SYS.h] pull some macros from lib/libc/arch/m88k/DEFS.h - [ldasm.S] add "'never hit' but needed" br again in _dl_cacheflush (thanks to Miod Vallat) - [ldasm.S] change ld.hu into ld.h in order to get a correctly signed and sign-extended value (also thanks to Miod Vallat) ok deraadt@ | |||
2017-08-29 | rename *fdprint function to *dprintf, like libc version | Theo de Raadt | |
2017-08-28 | whitespace | Theo de Raadt | |
2017-08-28 | whitespace | Theo de Raadt | |
2017-08-28 | fix arm64 build | Jonathan Gray | |
ok deraadt@ | |||
2017-08-27 | Place all .o files, Symbols.map, and the test program into /usr/libdata/ld.so.a. | Theo de Raadt | |
My work is done; the next piece is coming from rpe. ok visa kettenis | |||
2017-08-27 | The test program run before ld.so is installed was encoding the $OBJDIR | Theo de Raadt | |
path to ld.so. Since the testprogram is run from inside $OBJDIR, encode with a ./ path instead. ok kettenis visa | |||
2017-08-27 | Link the ~45 .o which become ld.so in a random order. | Theo de Raadt | |
ok kettenis visa | |||
2017-08-27 | hppa & sh use support functions from libgcc. Rather than linking against | Theo de Raadt | |
the library, extract the specific pieces and link them directly. ok kettenis visa | |||
2017-08-27 | Replace heaps of hand-written syscall stubs with a simpler framework | Theo de Raadt | |
which is largely MI. ok visa kettenis | |||
2017-08-26 | Remove -fno-stack-protector; works fine without it. | Mark Kettenis | |
ok deraadt@ | |||
2017-08-19 | Build ld.so with ${DEBUG} which defults to -g, like other "libraries" are. | Theo de Raadt | |
This provides some unwind benefits. ok kettenis dlg | |||
2017-08-16 | remove accidentally duplicated cpp chunks | Theo de Raadt | |
ok kettenis | |||
2017-08-16 | Adapt the commit in libc that changes how a string like "0xy" is | Todd C. Miller | |
parsed. OK deraadt@ | |||
2017-08-15 | Align text locations to 16 (instead of 4) to match modern recommendations | Theo de Raadt | |
(generally associated with hardwired BTC limitations). And then fill those alignments with 0xcc (int 3) to match our trapsled model. Resulting binaries show no sequential nop's. ok mlarkin kettenis mortimer | |||
2017-08-13 | Get R_MIPS_* defines via <machine/reloc.h>. | Visa Hankala | |
OK guenther@ | |||
2017-07-23 | from libc malloc: only access offset if canaries are enabled *and* size > 0 | Otto Moerbeek | |
and initialize ->offset to a definite value in the size == 0 case | |||
2017-07-02 | Fixed a typo in error message. | Tobias Stoeckmann | |
ok jmc@ | |||
2017-06-22 | Do not interpret an empty path as current working directory "." when | Sebastian Benoit | |
parsing LD_LIBRARY_PATH, and in DT_RPATH and DT_RUNPATH attributes and in ld.so.hints. ok deraadt@ | |||
2017-06-04 | Remove the sigprocmask stub that has long been made unused since | Patrick Wildt | |
the use of kbind. The code was #if 0'd anyway. Reminded by miod@ | |||
2017-06-04 | For the memory operand, clang passes in an address relative to the | Christian Weisgerber | |
stack pointer. We cannot use this twice while pushing values on the stack. Instead load the operand address into a register and use this as base address. Use %edx since it is already marked as clobbered. Also fixes a syntax problem for clang. ok mlarkin@ | |||
2017-05-08 | Always use the same callback to unlock as was used to lock. Permits | Philip Guenther | |
libpthread initialization from a shared object's init (or fini, I suppose) routines. ok kurt@ kettenis@ espie@ | |||
2017-02-18 | Add NULL tests to wrterror() to avoid a NULL deref when called from | Philip Guenther | |
malloc initialization or a free() error path. Prompted by libc's malloc.c rev 1.214; with correction from jsg@ and otto@ ok jsg@ krw@ | |||
2017-02-16 | correct format strings, ok guenther | Theo de Raadt | |
2017-02-16 | Match the recent change in the kernel and ask for a generic armv8-a | Jonathan Gray | |
encoding rather than one based on and tuned for cortex-a57 when using +nofp+nosimd. | |||
2017-02-15 | Make this build (and run) with gcc 4. | Miod Vallat | |
2017-02-08 | Provide size-generic ELF_NO_ADDR in <sys/exec_elf.h> and use that instead | Philip Guenther | |
of ELFDEFNNAME(NO_ADDR) ok jca@ | |||
2017-01-30 | Fix ELF64_R_TYPE(reloc->r_info) to have the same type on mips64le | Philip Guenther | |
as on other LP64 archs, __uint64_t, so that printf-like functions don't require extra casting...then eliminate the extra cast in ld.so/mips64/rtld_machine.c discussed with miod ok visa@ | |||
2017-01-29 | Previous commit broke build on loongson. Refix by adding | Visa Hankala | |
an explicit type cast. Reported and tested by matthieu@ | |||
2017-01-25 | Fix build on mips64. | Visa Hankala | |
2017-01-24 | make ldso[] const; OK guenther@ | Todd C. Miller | |
2017-01-24 | For consistentcy, use 'void *' with %p instead of 'char *' | Philip Guenther | |
2017-01-24 | To format r_addr, use %p and cast to 'void *'. From comparison with | Philip Guenther | |
other archs | |||
2017-01-24 | On fatal errors, kill ourselves with thrkill(0,9,NULL) instead of | Philip Guenther | |
simply exiting, via helper functions _dl_die(), _dl_diedie(), and _dl_oom(). prompted by a complaint from jsing@ ok jsing@ deraadt@ | |||
2017-01-24 | Unbreak $ORIGIN support when only one of DT_RUNPATH and DT_RPATH is used | Philip Guenther | |
2017-01-23 | remove line that slipped in with rev 1.77 but doesn't belong there; ok sthen@ | Christian Weisgerber | |
2017-01-23 | Whoops, lost the adjustment of DT_RUNPATH value as a DT_STRTAB value. | Philip Guenther | |
problem reported by semarie@ | |||
2017-01-23 | Mark a bunch of stuff static | Philip Guenther | |
ok kettenis@ | |||
2017-01-23 | The functionality of _dl_allocate_tib() is used internally, so rename | Philip Guenther | |
it to allocate_tib(), mark that hidden, then make the exported function an alias of that. ok kettenis@ | |||
2017-01-23 | Wrap function declarations with __{BEGIN,END}_HIDDEN_DECLS to reduce | Philip Guenther | |
relocations inside ld.so that it has to bootstrap ok kettenis@ | |||
2017-01-23 | Fix format string mismatches | Philip Guenther | |