117 Commits (1969500402bc4f80452e1c066401223a3c998f54)

Author SHA1 Message Date
Ilya Matveychikov 7784680072 fix the use of syscall result in dl_mmap 7 years ago
Ray 086a12b920 delete a redundant if in dynamic linker ctor execution loop 7 years ago
Rich Felker 50cd02386b fix invalid-/double-/use-after-free in new dlopen ctor execution 7 years ago
Rich Felker 43e7efb465 avoid malloc of ctor queue for programs with no external deps 7 years ago
Rich Felker f034f145bd avoid malloc of deps arrays for ldso and vdso 7 years ago
Rich Felker e612d094b1 avoid malloc of deps array for programs with no external deps 7 years ago
Rich Felker 2f1f51ae7b fix malloc misuse for startup ctor queue, breakage on fdpic archs 7 years ago
Rich Felker 8e43b5613e synchronize shared library dtor exec against concurrent loads/ctors 7 years ago
Rich Felker 188759bbee overhaul shared library ctor execution for dependency order, concurrency 7 years ago
Rich Felker 88207361ea record preloaded libraries as direct pseudo-dependencies of main app 7 years ago
Rich Felker 0c5c8f5da6 fix unsafety of new ldso dep tracking in presence of malloc replacement 7 years ago
Rich Felker 4035556907 fix and overhaul dlsym depedency order, always record direct deps 7 years ago
Rich Felker 71db5dfaa9 fix crash/misbehavior from oob read in new dynamic tls installation 7 years ago
Rich Felker 6516282d2a fix crash in new dynamic tls installation when last dep lacks tls 7 years ago
Rich Felker ba18c1ecc6 add membarrier syscall wrapper, refactor dynamic tls install to use it 7 years ago
Rich Felker 609dd57c4e fix loop logic cruft in dynamic tls installation 7 years ago
Rich Felker 9d44b6460a install dynamic tls synchronously at dlopen, streamline access 7 years ago
Rich Felker 1c84c99913 add new stage 2b to dynamic linker bootstrap for thread pointer 8 years ago
Rich Felker b36c37f6fa fix misleading placement of statement on same line as for loop in ldso 8 years ago
Rich Felker 37cd167639 fix dlsym of thread-local symbols on archs with DTP_OFFSET!=0 8 years ago
Rich Felker b6d701a475 combine arch ABI's DTP_OFFSET into DTV pointers 8 years ago
Rich Felker 0beb9dfbec add TLSDESC support for 32-bit arm 8 years ago
Rich Felker 7b3348a98c support setting of default thread stack size via PT_GNU_STACK header 8 years ago
Rich Felker 13d1afa46f overhaul internally-public declarations using wrapper headers 8 years ago
Rich Felker 1bbe166e15 move tlsdesc and internal dl function declarations to dynlink.h 8 years ago
Rich Felker 91c6a187b8 move declarations of tls setup/access functions to pthread_impl.h 8 years ago
Rich Felker 55a1c9c890 move declarations for malloc internals to malloc_impl.h 8 years ago
Rich Felker 18bf0829a7 improve machinery for ldso to report libc version 8 years ago
Rich Felker 9b95fd0944 define and use internal macros for hidden visibility, weak refs 8 years ago
Rich Felker 5c2f46a214 block dlopen of libraries with initial-exec refs to dynamic TLS 8 years ago
Rich Felker 5fdccbcd8f fix inefficient choice of tlsdesc function due to off-by-one 8 years ago
Rich Felker 193338e619 avoid spurious dso matches by dladdr outside bounds of load segments 8 years ago
Rich Felker f6870d6b4f make dladdr consistently produce the first symbol in presence of aliases 8 years ago
Rich Felker c8b49b2fbc fix symtab-order-dependent spurious matches in dladdr 8 years ago
Rich Felker 8b8fb7f037 correctly handle non-matching symbols in dladdr 8 years ago
Rich Felker e829695fcc avoid using undefined pointer arithmetic in dladdr 8 years ago
Rich Felker 68a5a23abc fix dynamic linker mapping/clearing bss in first/only LOAD segment 8 years ago
Szabolcs Nagy 610c5a8524 fix TLS layout of TLS variant I when there is a gap above TP 8 years ago
Rich Felker b4b1e10364 reintroduce hardening against partially-replaced allocator 8 years ago
Rich Felker d610c14855 enable reclaim_gaps for fdpic 8 years ago
Alexander Monakov ce7ae11acf ldso, malloc: implement reclaim_gaps via __malloc_donate 8 years ago
Rich Felker 376b3c54bb disallow non-absolute rpath $ORIGIN for suid/sgid/AT_SECURE processes 8 years ago
Rich Felker f0b235c138 honor rpath $ORIGIN for ldd/ldso command with program in working dir 8 years ago
Rich Felker b3ae7beabb adjust dladdr dli_fbase definition to match other implementations 8 years ago
Rich Felker a71b46cfd2 fix malloc state corruption when ldso rejects loading a second libc 9 years ago
Rich Felker f3055e0163 allow specifying argv[0] when invoking a program via ldso command 9 years ago
Rich Felker 43c423af5b fix regression in dlopen promotion from RTLD_LOCAL to RTLD_GLOBAL 9 years ago
Rich Felker 66b53cfa88 ldso: avoid spurious & possible erroneous work for libs with no deps 9 years ago
Rich Felker 0c53178ec0 fix dlopen/dlsym regression opening libs already loaded at startup 9 years ago
Rich Felker a393d5cc8d precalculate gnu hash rather than doing it lazily in find_sym inner loop 9 years ago