aboutsummaryrefslogtreecommitdiff
path: root/elf/rtld.c
AgeCommit message (Collapse)Author
2014-07-03Rely on HP_TIMING_AVAIL implies HP_SMALL_TIMING_AVAILRichard Henderson
2014-07-03Remove HP_TIMING_DIFF_INIT and dl_hp_timing_overheadRichard Henderson
Without HP_TIMING_ACCUM, dl_hp_timing_overhead is write-only. If we remove it, there's no point in HP_TIMING_DIFF_INIT either.
2014-05-27Remove second argument from TLS_INIT_TP macroAndreas Schwab
2014-05-14Remove last use of USE___THREADAndreas Schwab
2014-03-13Use __ehdr_start, when available, for rtld to get its own headers.Roland McGrath
2014-03-122014-03-12 Paul Pluzhnikov <ppluzhnikov@google.com>Paul Pluzhnikov
[BZ #16381] * elf/Makefile (tests): Add tst-pie2. (tests-pie): Add tst-pie2. * elf/tst-pie2.c: New file. * elf/dl-load.c (_dl_map_object_from_fd): Assert correct l_type for ET_EXEC. * elf/rtld.c (map_doit): Load executable as lt_executable. (dl_main): Likewise.
2014-02-25BZ #16613: Support TLS in audit libraries.Carlos O'Donell
This commit fixes a bug where the dynamic loader would crash when loading audit libraries, via LD_AUDIT, where those libraries used TLS. The dynamic loader was not considering that the audit libraries would use TLS and failed to bump the TLS generation counter leaving TLS usage inconsistent after loading the audit libraries. https://sourceware.org/ml/libc-alpha/2014-02/msg00569.html
2014-02-10Use glibc_likely instead __builtin_expect.Ondřej Bílka
2014-01-01Update copyright notices with scripts/update-copyrightsAllan McRae
2013-11-18Adjust AT_EXECFN when using explicit loader invocation.Paul Pluzhnikov
2013-11-18 Paul Pluzhnikov <ppluzhnikov@google.com> * elf/Makefile (tst-auxv): New test. * elf/tst-auxv.c: New * elf/rtld.c (dl_main): Adjust AT_EXECFN
2013-11-03Remove unused NONTLS_INIT_TP.Ondřej Bílka
2013-10-20Print the reason why preloading failed in do_preload()Michael Stahl
2013-05-29Avoid crashing in LD_DEBUG when program name is unavailableSiddhesh Poyarekar
Resolves: #15465 The program name may be unavailable if the user application tampers with argc and argv[]. Some parts of the dynamic linker caters for this while others don't, so this patch consolidates the check and fallback into a single macro and updates all users.
2013-03-01Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers
2012-10-05Set up the data structures for vDSO in libc.aH.J. Lu
2012-10-03Clean up conditionalize of ld.so.cache support.Roland McGrath
2012-09-28Define VERSYMIDX/VALIDX/ADDRIDX in ldsodefs.hH.J. Lu
2012-09-19rtld: limit self loading check to normal mode onlyDmitry V. Levin
Commit glibc-2.14~10 disallowed rtld self loading to avoid a segfault that used to happen when rtld was loading itself in normal mode. Unfortunately, that commit disallowed all modes of self loading, including those that used to work before. This change limits the check for self loading to normal mode only, so that instruments like ldd could handle rtld properly.
2012-07-30Fix lots of bitrot for stub configurations.Roland McGrath
2012-07-27Add SystemTap static probes to the runtime linker. [BZ #14298]Gary Benson
2012-06-22Fix invalid memory access in do_lookup_x.Andreas Schwab
[BZ #13579] Do not free l_initfini and allow it to be reused on subsequent dl_open calls for the same library. This fixes the invalid memory access in do_lookup_x when the previously free'd l_initfini was accessed through l_searchlist when a library had been opened for the second time.
2012-05-14Use _dl_fatal_printf instead of a private variant.Roland McGrath
2012-04-11New ld.so argument --inhibit-ldcache to disable ld.so.cache lookupSiddhesh Poyarekar
It may sometimes be desirable to make the dynamic linker only pick up libraries from the library path and rpath and not look at the ld.so.cache that ldconfig generates. An example of such a use case is the glibc testsuite where the dynamic linker must not be influenced by any external paths or caches. This change adds a new option --inhibit-ldcache that when used, tells the dynamic linker to not use ld.so.cache even if it is available.
2012-04-05Fix DL_DEBUG_UNUSED to elide the VDSO and handle PLT references properly.David S. Miller
* elf/rtld.c (dl_main): If DL_DEBUG_UNUSED is enabled, turn off lazy binding. * elf/dl-lookup (_dl_lookup_symbol_x): If DL_DEBUG_UNUSED, ignore undefined symbol errors. * elf/rtlc.c (dl_main): Skip VDSO when checking for unused DT_NEEDED entries.
2012-03-20Move stdio-common/_itoa.h to sysdeps/genericH.J. Lu
2012-02-29Always set l_used for vDSO.Marek Polacek
2012-02-09Replace FSF snail mail address with URLs.Paul Eggert
2011-10-05Don't call ifunc functions in trace modeAndreas Schwab
2011-09-14Also relocate in dependency order when doing symbol dependency testingAndreas Schwab
2011-09-13Only use USE___THREAD when definedAndreas Schwab
2011-09-12Revert "Remove last use of USE___THREAD"Ulrich Drepper
This reverts commit de82006d43e198fd162807c9adc720c7ebd728a3. Conflicts: ChangeLog
2011-09-12Remove last use of USE___THREADAndreas Schwab
2011-09-10Simplify malloc initializationUlrich Drepper
Singificantly reduce the code needed at malloc initialization. In the process getpagesize is simplified by always initializing GLRO(dl_pagesize).
2011-08-30Relocate objects in dependency orderAndreas Schwab
2011-08-16Improve printing of lookup scopesUlrich Drepper
The scope of a new object should be printed earlier and when the scope of an already loaded object is extended only the changes should be printed.
2011-08-14Warning patrol.Roland McGrath
2011-08-13Implement LD_DEBUG=scopesUlrich Drepper
2011-05-30Handle DSOs without any dependency in ld.soUlrich Drepper
2011-05-30One more thinko in CLUlrich Drepper
2011-05-30Prevent loader from loading itselfUlrich Drepper
2011-02-20Move setting variable in relro data earlier in ld.so.Andreas Schwab
2010-12-19Make PowerPC64 default to nonexecutable stackRyan S. Arnold
2010-10-26Fix assertion in ld.so, introduced by delayed adding to global list.Ulrich Drepper
2010-10-26Fix concurrency problem between dl_open and dl_iterate_phdrAndreas Krebbel
2010-10-24Require suid bit on audit objects in privileged programsAndreas Schwab
2010-09-15Don't try to free rpath strings allocated during startupAndreas Schwab
2010-05-03Don't deadlock in __dl_iterate_phdr while (un)loading objects.Andreas Schwab
2010-04-05elf/rtld.c (dl_main) [HAVE_AUX_VECTOR]: Add a cast.Roland McGrath
2010-03-29Handle platforms without aux vectorThomas Schwinge