summaryrefslogtreecommitdiffstats
path: root/ldso/include/ldso.h
Commit message (Collapse)AuthorAgeFilesLines
* ldso: clean up breakage in tls mergeMike Frysinger2009-10-161-2/+2
| | | | | | | | | | | The TLS merge 534661b91c9849 introduced multiple style problems as well as random breakage: - missing _dl_free - incomplete parametrization of _dl_lookup_hash - restore FDPIC handling in _dl_lookup_hash Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: pull in missing bits/fcntl.h header for O_CLOEXECMike Frysinger2009-10-161-0/+2
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* fix building for systems w/out ldso supportMike Frysinger2009-08-191-0/+5
| | | | | | | | If an arch (like alpha and others) have no ldso support at all, then there is no point in attempting to walk loaded modules in the dl-* helper funcs. Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Use __UCLIBC_HAS_TLS__ (now available) as guard for TLS relatedCarmelo Amoroso2009-02-201-1/+1
| | | | | | | | stuff, instead of __UCLIBC_HAS_THREADS_NATIVE__. This is in preparation on trunk merge to make TLS compatible with LT (new) and NPTL. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: do not comment out unused variables, just delete it.Carmelo Amoroso2009-01-121-1/+0
| | | | | SIgned-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* simple optimizations and style fixes in dynamic loadingDenis Vlasenko2009-01-101-1/+1
| | | | | | | | | | | 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
* Synch with trunk @ 24261Carmelo Amoroso2008-12-041-0/+13
| | | | | | | Step 19: merge change in rev 24250 - Use runtime pagesize (Jeremy Kerr) Some powerpc machines can support 64k pages, enabled by the CONFIG_64K_PAGES option in linux.
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-311-3/+3
| | | | | | | Basically trailing whitespaces removal, fix non standard keywords asm -> __asm__ inline -> __inline__ and some minor changes on trunk. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-091-3/+18
| | | | NPTL sh4 port build and work fine. All committed to allow Khem Ray working on a working branch to integrate the ARM nptl port. MIPS nptl port not tested but should still building and working fine. There are some other part non yet merged with trunk (misc/internals and some headers file that need some more work). Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge ldso tree with trunk. Carmelo Amoroso2008-03-051-7/+16
| | | | | | Step 1: basically code formatting and minor changes Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge from trunk."Steven J. Hill"2006-03-271-2/+2
|
* Merge from trunk that gives us a valid NPTL dynamic loader and the start of ↵"Steven J. Hill"2005-11-291-0/+7
| | | | the new build system. I have probably another 300 and some files to go *sigh*.
* Removed old 'assert' function and created new '_dl_assert' macro and"Steven J. Hill"2005-10-291-1/+9
| | | | | | update usage of it. Also removed '_dl_fatal_printf' macro and usage of it. All of these changes were prompted due to issue when building the 'libdl' libraries. These are also much cleaner.
* Cleaned up 'struct link_map' and 'struct elf_resolve' such that the TLS data ↵"Steven J. Hill"2005-09-251-2/+2
| | | | items are located in the same place. This allows for casting the types back and forth between the pthreads library and the dynamic loader. Cleaned up 'ldsodefs.h' and imported all of the functions from 'dl-tls.c' into the dynamic loader. Consequently, the dynamic loader grew in size by 50%. MIPS is probably the worst case as far as size, but still expect the other architectures to have a double digit percentage size increase.
* Rename option PTHREADS_NATIVE to be UCLIBC_HAS_THREADS_NATIVE instead. What ↵"Steven J. Hill"2005-09-241-1/+1
| | | | a stupid name to start with. What idiot thought of that?
* Big sync with trunk."Steven J. Hill"2005-09-241-0/+2
|
* Added TLS variables to 'struct elf_resolve' which will be needed for TLS ↵"Steven J. Hill"2005-09-211-0/+2
| | | | support. Created 'dl-tls.c' specifically for ldso instead of trying to share with the one used by the C library. It was getting to be too much of a hassle and this way hopefully all of the TLS functions can be in one place making maintenance much easier. Added new TLS relocation handlers for MIPS. The code is correct, but the variables used to perform the relocations are not set properly as more changes are necessary to the core of ldso.
* Sync with trunk."Steven J. Hill"2005-08-301-0/+1
|
* Merge/sync with trunk."Steven J. Hill"2005-08-171-1/+0
|
* Last of the merges along with latest changes for NPTL. Nothing much"Steven J. Hill"2005-07-301-5/+15
| | | | new on the NPTL stuff other than cleaning a few things up.
* Get rid of extern references to ldso variables."Steven J. Hill"2005-04-271-2/+0
|
* Second attempt to fix the INIT/FINI order. This time I think I got it right :)Joakim Tjernlund2004-09-081-2/+1
| | | | This needs testing with apps that have complex dependencies.
* First attempt to fix the INIT/FINI ordering. Fingers crossed :)Joakim Tjernlund2004-09-031-0/+7
|
* Remove unused variables. From Peter Mazinger.Joakim Tjernlund2004-09-021-2/+0
|
* Remove poor man's malloc. Not needed anymore.Joakim Tjernlund2004-08-191-2/+1
|
* Move "debug_addr" ptr from dl-startup.c to ldso.cJoakim Tjernlund2004-08-191-1/+1
|
* Move the app specific stuff from dl-startup.c to ldso.c.Joakim Tjernlund2004-08-191-2/+1
|
* Fixup PAGE_SIZE problemsEric Andersen2004-08-131-5/+1
| | | | -Erik
* Teach libdl to use normal libc symbols whenever possible, i.e. mallocEric Andersen2004-07-301-0/+1
| | | | | rather than _dl_malloc, fprintf rather than _dl_printf, etc. -Erik
* Revert this stuff for nowEric Andersen2004-07-161-1/+1
|
* Sigh. I got things working this morning, then checked stuff in from the wrongEric Andersen2004-07-141-1/+0
| | | | | tree. Bad boy, No doughnut. -Erik
* Based on a patch from Alexandre Oliva, make sure _dl_malloc returns a nicelyEric Andersen2004-07-141-0/+1
| | | | aligned pointer that may be aligned up to page_size. Also add _dl_free,
* make certain that getpagesize() returns correct the value for mipsEric Andersen2004-05-111-0/+1
| | | | by extracting the value from the ELF header.
* Fixup support for gcc 2.95Eric Andersen2004-02-171-15/+15
|
* Provide the ldso syscalls and string funcs earlier in the listEric Andersen2004-02-171-3/+4
|
* Rework file naming, aiming for at least a vague level of consistancyEric Andersen2004-02-101-4/+4
|
* Step one, begin shuffling things around a bitEric Andersen2004-02-071-0/+46
|
* Scrub up use of ELF_USES_RELOCA and eliminte some unsightly ifdefsEric Andersen2004-01-291-0/+15
|
* Some badly behaved arches fail to provide a PAGE_SIZE defineEric Andersen2004-01-061-0/+4
|
* Use PAGE_SIZE rather than hard coding 4096Eric Andersen2003-12-171-0/+2
|
* Phase one of my evil plan to clean up ld.so...Eric Andersen2003-08-191-0/+11