aboutsummaryrefslogtreecommitdiff
path: root/elf
AgeCommit message (Collapse)AuthorFilesLines
2013-05-22Update comments in ldconfig.c and dl-hwcaps.c.Carlos O'Donell2-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.
2013-05-16Add #include <stdint.h> for uint[32|64]_t usage (except installed headers).Ryan S. Arnold7-1/+7
2013-05-14Add comments to vDSO hwcap loading process.Carlos O'Donell2-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.
2013-05-10Use *stat64 instead of *stat in installed programsFlorian Weimer1-2/+2
This ensures reliable operation on file systems with inode numbers which do not fit into 32 bits.
2013-05-09Add more comments to dlclose() algorithm.Carlos O'Donell1-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.
2013-05-06Remove a dead declaration.Roland McGrath1-7/+0
2013-05-06Split _dl_writev out from _dl_debug_vdprintf.Roland McGrath2-20/+59
2013-05-03Fix NEED_DL_SYSINFO{,_DSO} conditionalization in _dl_sysdep_start.Roland McGrath1-4/+9
2013-04-25Move x86_64-specific audit tests to sysdeps/x86_64/.Joseph Myers17-1518/+0
2013-04-16Adding MicroBlaze support to elf/elf.hDavid Holsgrove1-0/+32
Signed-off-by: David Holsgrove <david.holsgrove@xilinx.com>
2013-04-11Fix invalid free of memory allocated during rtld initAndreas Schwab1-0/+6
2013-04-06dl_open_worker: Memset all of seen array.Carlos O'Donell1-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.
2013-03-28Make _dl_phdr pointer to const.Roland McGrath1-2/+2
2013-03-28Consolidate declarations of _dl_phdr, _dl_phnum.Roland McGrath1-4/+0
2013-03-19Add support for rtld directory different from slib directoryAndreas Schwab1-5/+6
2013-03-15Clean up _dl_pagesize initialization.Roland McGrath1-4/+2
2013-03-01Fix NEED_DL_SYSINFO_DSO conditionals.Roland McGrath5-8/+8
2013-02-20Add ARM relocation constants to elf/elf.h.Petr Machata1-18/+119
2013-02-18unify xmalloc prototypes & friendsMike Frysinger1-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>
2013-02-18New function _dl_find_dso_for_objectSiddhesh Poyarekar4-38/+38
Consolidate code to search for an address within a DSO.
2013-02-17Sort Versions filesAndreas Jaeger1-12/+11
2013-02-15Remove miscellaneous bounded-pointers relics in C code.Joseph Myers1-1/+1
2013-02-14Remove bp-sym.h and BP_SYM uses from C code.Joseph Myers1-2/+1
2013-02-13Remove __ptrvalue, __bounded and __unbounded.Joseph Myers1-3/+1
2013-02-08Add more comments to _dl_load_cache_lookup().Carlos O'Donell1-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.
2013-02-08ARM: Support loading unmarked objects from cache.Carlos O'Donell1-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>
2013-02-07Remove lots of inline keywords.Roland McGrath2-5/+3
2013-02-05Replace an alloca use with a variable-length array.Roland McGrath1-3/+2
2013-02-04Don't use GLIBC_PRIVATE errno outside of librariesAndreas Schwab1-0/+1
2013-02-02Improve link_map.l_addr comment.Jan Kratochvil1-1/+2
2013-01-22Build elf/tst-array2 and elf/tst-array5 with --no-as-neededAdam Conrad1-0/+3
* elf/Makefile (LDFLAGS-tst-array2): Add $(no-as-needed). (LDFLAGS-tst-array5): Likewise.
2013-01-16Implement x86 SIZE32/SIZE64 relocationsH.J. Lu1-1/+1
2013-01-112013-01-11 Steve Ellcey <sellcey@mips.com>Steve Ellcey1-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.
2013-01-11Add --enable-hardcoded-path-in-tests configure optionH.J. Lu1-20/+12
2013-01-10Fix whitespace in elf.h MIPS macros.Roland McGrath1-86/+86
2013-01-10Use __extension__ with long long in installed headers.Joseph Myers1-2/+2
2013-01-02Update copyright notices with scripts/update-copyrights.Joseph Myers73-74/+73
2013-01-01Add script to update copyright notices and reformat some to facilitate its use.Joseph Myers3-6/+3
2013-01-01Update copyright years.David S. Miller5-10/+10
* catgets/gencat.c: Update copyright year. * csu/version.c: Likewise. * debug/catchsegv.sh: Likewise. * debug/pcprofiledump.c: Likewise. * debug/xtrace.sh: Likewise. * elf/ldconfig.c: Likewise. * elf/ldd.bash.in: Likewise. * elf/pldd.c: Likewise. * elf/sotruss.ksh: Likewise. * elf/sprof.c: Likewise. * iconv/iconv_prog.c: Likewise. * iconv/iconvconfig.c: Likewise. * locale/programs/locale.c: Likewise. * locale/programs/localedef.c: Likewise. * login/programs/pt_chown.c: Likewise. * malloc/memusage.sh: Likewise. * malloc/memusagestat.c: Likewise. * malloc/mtrace.pl: Likewise. * nscd/nscd.c: Likewise. * nss/getent.c: Likewise. * nss/makedb.c: Likewise. * posix/getconf.c: Likewise.
2012-12-28Add values from Linux 3.7 to <elf.h>Andreas Jaeger1-0/+5
2012-11-29Warn about unsupported DT_FLAGS_1 flags.Carlos O'Donell1-2/+10
The dynamic loader will now warn about unsupported DT_FLAGS_1 flags when run with LD_DEBUG=files or LD_DEBUG=all.
2012-11-26Cast to __intptr_t before casting pointer to int64H.J. Lu1-1/+2
2012-11-26sotruss: fix argument parsingAndreas Schwab1-2/+2
2012-11-23use $(READELF) rather than readelfMike Frysinger1-1/+1
We setup $(READELF) and use it everywhere, so fix the two places that were using readelf directly. Reported-by: Denis M. <god@politeia.in> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2012-11-21Check supported DF_1_XXX bitsH.J. Lu2-0/+12
2012-11-19Add ldconfig cache tag handling for AArch64Steve McIntyre1-0/+3
* sysdeps/generic/ldconfig.h (FLAG_AARCH64_LIB64): New macro. * elf/cache.c (print_entry): Print ",AArch64" for FLAG_AARCH64_LIB64. Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org> Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-19Add ldconfig cache tag handling for ARM hard-float ABISteve McIntyre1-1/+4
* sysdeps/generic/ldconfig.h (FLAG_ARM_LIBHF): New macro. * elf/cache.c (print_entry): Print ",hard-float" for FLAG_ARM_LIBHF. Signed-off-by: Steve McIntyre <steve.mcintyre@linaro.org> Reviewed-by: Carlos O'Donell <carlos@systemhalted.org>
2012-11-17Remove ELF_MACHINE_NO_PLT conditionals.Joseph Myers1-4/+2
2012-11-16Set constructor/destructor priority to 1000H.J. Lu2-4/+8
2012-11-14Skip audit if l_reloc_result is NULLH.J. Lu3-2/+27