summaryrefslogtreecommitdiffstats
path: root/ldso/include/dl-hash.h
Commit message (Collapse)AuthorAgeFilesLines
* ldso: simplify handling of extra _dl_lookup_hash() argMike Frysinger2009-10-161-14/+6
| | | | | Signed-off-by: Mike Frysinger <vapier@gentoo.org> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* ldso: clean up breakage in tls mergeMike Frysinger2009-10-161-7/+6
| | | | | | | | | | | 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>
* whitespace cleanupBernhard Reutner-Fischer2009-10-161-4/+4
| | | | | Signed-off-by: Bernhard Reutner-Fischer <rep.dot.nop@gmail.com> Signed-off-by: Austin Foxley <austinf@cetoncorp.com>
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-311-1/+1
| | | | | | | 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-16/+28
| | | | 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-10/+5
| | | | | | Step 1: basically code formatting and minor changes Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* This patch solves a problem in dladdr caused by the wrong valueCarmelo Amoroso2008-01-181-0/+1
| | | | | | | of elf_resolve's loadaddr field for the main application. Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Added GNU hash support to ld.soCarmelo Amoroso2007-11-191-4/+41
| | | | | | | | | | | Added TLS support to sh4 Replaced _dl_find_hash implementation with sh4 based code. Merged some fixes into libdl.c Changes committes as requested by sjhill for the mips-sh4 nptl merge. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Check in all code for TLS relocations. There is still clean up that"Steven J. Hill"2006-08-211-0/+4
| | | | | needs to be done, but I would rather wait until after merging with the other architectures.
* 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*.
* Latest 'ldso' changes for TLS support dated 20050930. I just did not get ↵"Steven J. Hill"2005-10-011-3/+4
| | | | them checked in last night.
* Cleaned up 'struct link_map' and 'struct elf_resolve' such that the TLS data ↵"Steven J. Hill"2005-09-251-27/+29
| | | | 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.
* Big sync with trunk."Steven J. Hill"2005-09-241-0/+3
|
* Sync with trunk."Steven J. Hill"2005-09-211-1/+0
|
* Added TLS variables to 'struct elf_resolve' which will be needed for TLS ↵"Steven J. Hill"2005-09-211-1/+23
| | | | 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-4/+4
|
* Finalize the merge from the trunk. There are more files to be"Steven J. Hill"2005-07-301-5/+5
| | | | merged, but they will be done manually.
* Add missing definition for DL_OPENEDEric Andersen2005-04-131-4/+5
|
* Moved the addition of load address from the fast pathJoakim Tjernlund2005-03-291-1/+0
| | | | | where possible. This will also make ldso smaller. However the patch touches all archs and I have only tested PPC and x86.
* Add RTLD_LOCAL support for dlopened libs. Reported byJoakim Tjernlund2004-11-101-2/+2
| | | | | | | Andrew de Quincey, who has been most helpful getting this sorted out, thanks. Thanks also to Peter Mazinger who did alot of testing. Removed all traces of dl_parse_copy_information() since it is no longer used.
* - Remove dynamic_size from struct elf_resolve.Joakim Tjernlund2004-11-021-8/+3
| | | | | | | | | | - 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.
* Remove usage of _dl_parse_copy_information() from generic code.Joakim Tjernlund2004-10-071-5/+4
| | | | | | Remove definition of _dl_parse_copy_information() for powerpc. Remaining archs can do the same. Make debugging output of "relocation processing: xxx" a bit more sane.
* Second attempt to fix the INIT/FINI order. This time I think I got it right :)Joakim Tjernlund2004-09-081-1/+8
| | | | This needs testing with apps that have complex dependencies.
* First attempt to fix the INIT/FINI ordering. Fingers crossed :)Joakim Tjernlund2004-09-031-0/+2
|
* Let ldso decide if it should relocate itselft a second time. ThisJoakim Tjernlund2004-08-171-1/+1
| | | | | | | is needed if ldso should use libcs malloc whenever possible. Fix RTLD_LAZY propagation to RTLD_NOW relocation when requested by libdl.
* Joakim Tjernlund writes:Eric Andersen2004-02-141-2/+1
| | | | | | | | | | | | | | | | | | Hi it is me again. This is the latest ldso patch. the NEW weak symbol handling works now with a little special handling in _dl_find_hash(). You get to chose if you want the new or old handling :) There was 2 missing _dl_check_if_named_library_is_loaded() calls in _dlopen(). I then disabled the _dl_check_if_named_library_is_loaded() in dl-elf.c since it is rendundant. Question, why does some _dl_linux_resolver(), like i386, have 2 calls to _dl_find_hash()? I think that is wrong, isn't it? I really hope you can check this out soon ...
* Fix function prototype to match the official ELF standard hash functionEric Andersen2004-02-101-1/+1
|
* Cool. Found most of the problem. Turns out we were inadvertanly loading someEric Andersen2003-08-191-23/+8
| | | | | | | libraries multiple times, wasting memory and causing different libraries to use different symbol sets, some of which were not properly resolved. Continue scrubbing ld.so and converting it to use proper types.
* Phase one of my evil plan to clean up ld.so...Eric Andersen2003-08-191-0/+118