about summary refs log tree commit diff
path: root/elf
Commit message (Collapse)AuthorAgeFilesLines
* Fix typos.Ondřej Bílka2013-08-215-5/+5
|
* * elf/setup-vdso.h (setup_vdso): Fix missing string termination.Andreas Arnez2013-08-201-1/+1
|
* Add GLRO(dl_hwcap2) for new AT_HWCAP2 auxv_t a_type.Ryan S. Arnold2013-06-282-3/+11
|
* Test for mprotect failure in dl-load.c (bug 12492).Pierre Ynard2013-06-281-1/+5
|
* Mark packed structure element used with atomic operation aligned.Nathan Froyd2013-06-281-1/+12
|
* [BZ #15022] Correct global-scope dlopen issues in static executables.Maciej W. Rozycki2013-06-283-31/+46
| | | | | | | | This change creates a link map in static executables to serve as the global search list for dlopen. It fixes a problem with the inability to access the global symbol object and a crash on an attempt to map a DSO into the global scope. Some code that has become dead after the addition of this link map is removed too and test cases are provided.
* [BZ #15022] Avoid repeated calls to DL_STATIC_INIT for the same module.Maciej W. Rozycki2013-06-261-4/+4
|
* Add AT_HWCAP2 as a new auxv_t a_type to elf.h.Ryan S. Arnold2013-06-261-1/+4
|
* Remove dead DL_DST_REQ_STATIC code.Maciej W. Rozycki2013-06-221-13/+0
|
* Use rtld-CPPFLAGS in rtld-%.os rules for generated sources.Roland McGrath2013-06-181-12/+22
|
* Don't let ld.so that failed its sanity check land in place.Roland McGrath2013-06-131-2/+5
|
* Fix leading whitespaces.Ondrej Bilka2013-06-061-4/+4
|
* Remove trailing whitespace.Joseph Myers2013-06-055-12/+12
|
* Avoid crashing in LD_DEBUG when program name is unavailableSiddhesh Poyarekar2013-05-2914-49/+92
| | | | | | | | | 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.
* Update comments in ldconfig.c and dl-hwcaps.c.Carlos O'Donell2013-05-222-8/+10
| | | | | | | | | | | | | | | | | In dl-hwcaps.c the comment read that rounding was done to ElfW(Addr), but it's actually rounded to ElfW(Word). In ldconfig.c we make each comment a sentence and mention that the "tls" pseudo-hwcap is just for legacy installations where TLS was optional. --- 2013-05-22 Carlos O'Donell <carlos@redhat.com> * elf/ldconfig.c (is_hwcap_platform): Make comments full setences. (main): Mention "tls" pseudo-hwcap is legacy. * elf/dl-hwcaps.c (_dl_important_hwcaps): Correct rounding comment.
* Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold2013-05-167-1/+7
|
* Add comments to vDSO hwcap loading process.Carlos O'Donell2013-05-142-1/+19
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Loading of the vDSO pseudo-hwcap from the type 2 GNU note is a rather arcane and poorly documented process. Given that I had a chance to review this code today I thought I would add all of the things I had to lookup to verify the validity of the process. With a single .note.GNU the vDSO can register up to 64 flags, though in practice you are limited to 64 - _DL_FIRST_EXTRA bits which on x86 is 12 bits. The only use of this that I know of is in the Xen support in Linux where they use the 1st bit to indicate "nosegneg". I see "We use bit 1 to avoid bugs in some versions of glibc when bit 0 is used; the choice is otherwise arbitrary.", but no reference to a glibc bug anywhere. The code as-is should support bit zero, so we still have that free for future use. The kernel, glibc, and ld.so.cache must coordinate to ensure that bit values don't go too high and are used consistently. --- 2013-05-13 Carlos O'Donell <carlos@redhat.com> * elf/dl-hwcaps.c (_dl_important_hwcaps): Comment vDSO hwcap loading. * elf/ldconfig.c (is_hwcap_platform): Comment each hwcap check. (main): Comment "tls" pseudo-hwcap.
* Use *stat64 instead of *stat in installed programsFlorian Weimer2013-05-101-2/+2
| | | | | This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits.
* Add more comments to dlclose() algorithm.Carlos O'Donell2013-05-091-0/+6
| | | | | | | | | | | | | | The algorithm for scanning dependencies upon dlclose is less than immediately obvious. This patch adds two bits of comments that explain why you start the dependency search at l_initfini[1], and why you need to restart the search. --- 2013-05-09 Carlos O'Donell <carlos@redhat.com> * elf/dl-close.c (_dl_close_worker): Add comments.
* Remove a dead declaration.Roland McGrath2013-05-061-7/+0
|
* Split _dl_writev out from _dl_debug_vdprintf.Roland McGrath2013-05-062-20/+59
|
* Fix NEED_DL_SYSINFO{,_DSO} conditionalization in _dl_sysdep_start.Roland McGrath2013-05-031-4/+9
|
* Move x86_64-specific audit tests to sysdeps/x86_64/.Joseph Myers2013-04-2517-1518/+0
|
* Adding MicroBlaze support to elf/elf.hDavid Holsgrove2013-04-161-0/+32
| | | | Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
* Fix invalid free of memory allocated during rtld initAndreas Schwab2013-04-111-0/+6
|
* dl_open_worker: Memset all of seen array.Carlos O'Donell2013-04-061-1/+1
| | | | | | | | | | | | | The seen array was doubled in size recently, but the memset to clear the array was not adjusted. We adjust the memset to always be correct regardless of the size of seen. --- 2013-04-06 Carlos O'Donell <carlos@redhat.com> [BZ #15309] * elf/dl-open.c (dl_open_worker): memset all of seen array.
* Make _dl_phdr pointer to const.Roland McGrath2013-03-281-2/+2
|
* Consolidate declarations of _dl_phdr, _dl_phnum.Roland McGrath2013-03-281-4/+0
|
* Add support for rtld directory different from slib directoryAndreas Schwab2013-03-191-5/+6
|
* Clean up _dl_pagesize initialization.Roland McGrath2013-03-151-4/+2
|
* Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath2013-03-015-8/+8
|
* Add ARM relocation constants to elf/elf.h.Petr Machata2013-02-201-18/+119
|
* unify xmalloc prototypes & friendsMike Frysinger2013-02-181-4/+1
| | | | | | | | These prototypes are duplicated in many places. Add a dedicated header for holding prototypes for program-specific functions to avoid that. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* New function _dl_find_dso_for_objectSiddhesh Poyarekar2013-02-184-38/+38
| | | | Consolidate code to search for an address within a DSO.
* Sort Versions filesAndreas Jaeger2013-02-171-12/+11
|
* Remove miscellaneous bounded-pointers relics in C code.Joseph Myers2013-02-151-1/+1
|
* Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers2013-02-141-2/+1
|
* Remove __ptrvalue, __bounded and __unbounded.Joseph Myers2013-02-131-3/+1
|
* Add more comments to _dl_load_cache_lookup().Carlos O'Donell2013-02-081-2/+3
| | | | | | Calling _dl_load_cache_lookup will load the cache if not already. If loading the cache fails no more attempts will be made to load the cache.
* ARM: Support loading unmarked objects from cache.Carlos O'Donell2013-02-081-0/+4
| | | | | | | | | | | | ARM now supports loading unmarked objects from the dynamic loader cache. Unmarked objects can be used with the hard-float or soft-float ABI. We must support loading unmarked objects during the transition period from a binutils that does not mark objects to one that does mark them with the correct ELF flags. Signed-off-by: Carlos O'Donell <carlos@redhat.com>
* Remove lots of inline keywords.Roland McGrath2013-02-072-5/+3
|
* Replace an alloca use with a variable-length array.Roland McGrath2013-02-051-3/+2
|
* Don't use GLIBC_PRIVATE errno outside of librariesAndreas Schwab2013-02-041-0/+1
|
* Improve link_map.l_addr comment.Jan Kratochvil2013-02-021-1/+2
|
* Build elf/tst-array2 and elf/tst-array5 with --no-as-neededAdam Conrad2013-01-221-0/+3
| | | | | * elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed). (LDFLAGS-tst-array5): Likewise.
* Implement x86 SIZE32/SIZE64 relocationsH.J. Lu2013-01-161-1/+1
|
* 2013-01-11 Steve Ellcey <sellcey@mips.com>Steve Ellcey2013-01-111-2/+4
| | | | | | | * elf/elf.h (EF_MIPS_ARCH_32): Fix value. (EF_MIPS_ARCH_64): Fix value. (EF_MIPS_ARCH_32R2): New. (EF_MIPS_ARCH_64R2): New.
* Add --enable-hardcoded-path-in-tests configure optionH.J. Lu2013-01-111-20/+12
|
* Fix whitespace in elf.h MIPS macros.Roland McGrath2013-01-101-86/+86
|
* Use __extension__ with long long in installed headers.Joseph Myers2013-01-101-2/+2
|