summaryrefslogtreecommitdiff
path: root/ldso/ldso/dl-elf.c
AgeCommit message (Collapse)Author
2009-07-05Avoid type-punned pointers that break strict-aliasingRon
Signed-off-by: Ron Lee <ron@debian.org> Signed-off-by: Mike Frysinger <vapier@gentoo.org>
2009-01-10simple optimizations and style fixes in dynamic loadingDenis Vlasenko
text data bss dec hex filename - 16709 240 92 17041 4291 lib/ld-uClibc.so + 16634 236 92 16962 4242 lib/ld-uClibc.so - 4602 344 4 4950 1356 lib/libdl-0.9.30-svn.so + 4571 328 4 4903 1327 lib/libdl-0.9.30-svn.so - 4602 344 4 4950 1356 lib/libdl.so + 4571 328 4 4903 1327 lib/libdl.so
2008-12-03- use proper macrosBernhard Reutner-Fischer
2008-12-03- use proper macro (no obj-code changes)Bernhard Reutner-Fischer
2008-11-18Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).Carmelo Amoroso
Currently we have an implementation in ld.so and libdl.a. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-09-23ldso: removed dead code.Carmelo Amoroso
Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
2008-05-30- fix the macros rather than the callees as rightfully noted by bernds (duh!)Bernhard Reutner-Fischer
2008-05-30- Avoid warning about missing brace.Bernhard Reutner-Fischer
2008-01-09fix broken whitespace in many places; no functional changesMike Frysinger
2007-12-04Blackfin FD-PIC patch 6/6.Bernd Schmidt
These are mostly the changes necessary to deal with loading the libraries into memory. A couple new target macros are defined for this purpose, and the code in dl-elf.c is modified to deal with nommu systems.
2007-04-17fix ld.so.cache handling on no-mmu setupsMike Frysinger
2007-02-16Fix dlopen for static apps.Joakim Tjernlund
From Carmelo Amoroso.
2006-09-19merge some more FDPIC related fixes from Bernd SchmidtMike Frysinger
2006-07-05patch from Bernd Schmidt to abstract away initializing of relocation addressesMike Frysinger
2006-07-05patch from Bernd Schmidt to abstract away load address typesMike Frysinger
2006-07-05use ElfW(Addr) in more placesMike Frysinger
2006-07-05revert fdpic patch so we can merge it in bit by bitMike Frysinger
2006-06-30Bernd Schmidt writes: abstract away addresses so we can support FDPIC ELFsMike Frysinger
2006-06-19eat whitespaceMike Frysinger
2006-04-12doh, forgot to copy the final \0Eric Andersen
2006-04-12micro-optimization -- we already know how long the source isEric Andersen
2006-04-12cleanup whitespaceEric Andersen
2006-04-12fixup a big 'ol memory leak in search_for_named_library()Eric Andersen
2006-03-02make all the warnings the same and add line #s so we can pick em out at runtimeMike Frysinger
2006-03-02kill spurious semicolonsMike Frysinger
2006-01-26Get rid of missing prototype warningsPeter S. Mazinger
2006-01-12fix a (very unlikely) page leakMike Frysinger
2005-12-10Remove trailing ';' from strong_alias, thx Bernhard FischerPeter S. Mazinger
2005-11-20fix up ifdef checks so dl_iterate_phdr is defined in all the proper objectsMike Frysinger
2005-11-06Do not set the RELOCS_DONE flag until it is actually done. This order ↵"Steven J. Hill"
matters for NPTL libpthreads to work. Well, that was a nice waste of 3 hours.
2005-10-29Hopefully fix the bug Oleg reported in ↵Joakim Tjernlund
http://uclibc.org/lists/uclibc/2005-October/012809.html This will only fix powerpc. Should be easy to fix the other arches.
2005-09-17Fix bug 430 and reduce ldso size with 1KB :). Not sure if I need to use ↵Joakim Tjernlund
fstat64, but I am sure someone will tell me.
2005-08-29some fixes by anemo in Bug 9 to play nicely with 32 or 64 bit hostsMike Frysinger
2005-07-11use the debug dprint macros to clean up readabilityMike Frysinger
2005-07-11use the debug dprint macros to clean up readabilityMike Frysinger
2005-07-11declare reloc_addr as ElfW(Addr) instead of Word since it is an Addr, not a ↵Mike Frysinger
Word (and it will truncate addresses on 64bit hosts)
2005-07-09make sure we use long instead of int so we dont truncate 64bit valuesMike Frysinger
2005-07-07make RUNPATH/RPATH support configurableMike Frysinger
2005-06-30change all Elf32_* usage to ElfW(*) usage since we shouldnt care about the ↵Mike Frysinger
bitsize
2005-06-25move _dl_if_debug_dprint() to shared ldso headerMike Frysinger
2005-06-25rework the debug _dl_dprintf usage to avoid #ifdef macros and make more readableMike Frysinger
2005-06-01Initial support for both RUNPATH support.Joakim Tjernlund
RPATH sematics changed to match RUNPATH. Only difference is that RPATH is searched before LD_LIBRARY_PATH and RUNPATH after. This is not complete but better than the current mess(I think).
2005-05-31Fix bug 60Joakim Tjernlund
2005-04-23Cleanup library loading.Joakim Tjernlund
2005-03-29Moved the addition of load address from the fast pathJoakim Tjernlund
where possible. This will also make ldso smaller. However the patch touches all archs and I have only tested PPC and x86.
2005-03-14Generalize optimized relative reloc procesing.Joakim Tjernlund
Add elf_machine_dynamic() and elf_machine_load_address() for all archs. elf_machine_dynamic() replaces the #ifdef mess to get at the GOT. elf_machine_load_address() is needed to execute ldso directly, this is not complete yet. I probably broke one or two archs(only tested PPC) so please try and report problems. For a report to be useful you need to enable __SUPPORT_LD_DEBUG_EARLY__ and __SUPPORT_LD_DEBUG__
2005-01-05fix eriks e-mail addressMike Frysinger
2004-11-02- Remove dynamic_size from struct elf_resolve.Joakim Tjernlund
- Replace all open coded dynamic handling with a function. Reduces size. - Fold special MIPS dynamic code into the dynamic_info item. - Add RELRO support. - Support linking with "-z now". - prepare for DT_RELACOUNT/DT_RELCOUNT optimization. - Add -z now to ld.so linking, this is what ld.so does anyway so let the linker know that.
2004-10-11Undo previous change. Leave SUID programs alone until I know what to doJoakim Tjernlund
with them.
2004-10-11Don't use ld.so.cache for SUID programs.Joakim Tjernlund