summaryrefslogtreecommitdiffstats
path: root/ldso
Commit message (Collapse)AuthorAgeFilesLines
...
* - _syscall?() need to superfluous trailing ';'Bernhard Reutner-Fischer2008-12-231-2/+2
| | | | - reduce patch noise a little bit
* ldso/ldso/mips/*: non-pic support from trunkDenis Vlasenko2008-12-233-64/+160
| | | | | | | | | | libc/string/*: small fixes sync from trunk test/regex/tst-regex2.c: small fixes sync from trunk libc/misc/time/time.c: optimization from trunk: text data bss dec hex filename - 854 24 0 878 36e libc/misc/time/_time_localtime_tzi.os + 818 16 0 834 342 libc/misc/time/_time_localtime_tzi.os
* sync with trunk. Compile tested on i386Denis Vlasenko2008-12-231-2/+2
|
* Get i386 non nptl builds going.Khem Raj2008-12-232-2/+7
|
* Add comment to explain why O2 is used for ldso.cKhem Raj2008-12-181-0/+4
|
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-12-181-1/+1
| | | | | | | | | | Use -O2 for optlevel. -Os doesnt go well with arm and gcc 4.3.x because -Os enables -fearly-inlining as a result some of libgcc functions which call _div0 get emitted. div0 needs raise () and it comes from libc so a catch 22. We avoid this by avoiding division functions as much as we can. So either we can use -Os -fno-early-inlining or use other opt level like O1 or O2. I chose O2.
* Fix kernl-features.h include path.Carmelo Amoroso2008-12-111-1/+1
| | | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk @ 24261Carmelo Amoroso2008-12-0414-75/+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.
* rel_addr is already correctly computed: so do not add the load_addr.Carmelo Amoroso2008-12-041-1/+1
| | | | | | | Anyway, being the ldso linked with -Bsymbolic, this piece of code is not actually executed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk @ 24160Carmelo Amoroso2008-11-272-4/+4
| | | | Step 13: build system updates.
* Synch with trunk @ 24157Carmelo Amoroso2008-11-2623-84/+89
| | | | Step 12: ldso minor changes: code tidy-up, inline, comments.
* ldso: Initialize fully dtv before calling the constructors.Carmelo Amoroso2008-11-171-21/+21
| | | | | | | | | | If a shared object has a constructor that accesses a TLS variable using the localor global synamic access model (that is by calling the __tls_get_addr function), all the filed of each dtv entry must be already initialized to point to the right address in the TLS static block Signed-off-by: Filippo Arcidiacono <filippo.arcidiacono@st.com> Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Fix SH ldso sequence startup.Carmelo Amoroso2008-08-081-2/+12
| | | | | | | | | | | | | | | | | | Pass via r4 the rtld finalizer _dl_fini to the user application. This will be the 6^ arg of __uClibc_main and will be registered with 'atexit'. In this way the dynamic linker will be able to call destructors defined within the loaded DSOs. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com> Acked-by: Paul Mundt <lethal@linux-sh.org> Add missing 7th arg "stack_end". add comment of undocumented usage of r4. fix comment of expected __uClibc_main() prototype. Signed-off-by: Yoshii Takashi <yoshii.takashi@renesas.com> Acked-by: Paul Mundt <lethal@linux-sh.org>
* some more asm keyword fixes (Yann E. MORIN)Carmelo Amoroso2008-08-061-1/+1
|
* Revert recent changes to previous version at rev 20454.Carmelo Amoroso2008-08-041-8/+7
| | | | | | Functionally the code is the same, just a matter of coding style. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synch with trunk at rev 22997.Carmelo Amoroso2008-07-3139-111/+110
| | | | | | | 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>
* Use rtld_hidden_{proto,def} properly within ld.soCarmelo Amoroso2008-07-291-4/+4
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Signed-off-by: Khem Raj <raj.khem@gmail.com>Khem Raj2008-07-112-31/+45
| | | | Replace the code which could force gcc to use libgcc division functions, the libgcc function inturn call 'raise' which is expected from uclibc which we are compiling. This avoids this circular dependency problem.
* Adjust for correct return values from dl_find_hashKhem Raj2008-07-101-11/+10
|
* Handle ARM TLS relocationsKhem Raj2008-07-103-13/+52
|
* Thumb atomic operations and makefile changes to accomodate NPTLKhem Raj2008-07-102-0/+143
|
* Add TLS reltypes for ARMKhem Raj2008-07-101-1/+3
|
* Revert the mips related fixed that got in due to the trunk merge and also ↵Khem Raj2008-07-091-6/+6
| | | | add pt-__syscall_rt_sigaction.c for mips
* BIG BIG commit: all left files merged from trunk [rev 22714]. Currenntly ↵Carmelo Amoroso2008-07-0932-620/+1146
| | | | 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>
* SYnch with trunk: new filesCarmelo Amoroso2008-07-092-0/+105
|
* Synch the whole build system. Also including recent fix on testsuite build ↵Carmelo Amoroso2008-07-092-5/+14
| | | | system
* Sync build machinery stuff from trunk. Some more fixed for mips nptl portKhem Raj2008-06-271-6/+6
|
* Change one missing inline to __always_inlineCarmelo Amoroso2008-04-081-1/+1
|
* Merge nptl branch tree with trunk. Carmelo Amoroso2008-03-1612-0/+1141
| | | | | | | Step 8: add xtensa, cris and avr32 architecture dependent files, as is. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge nptl branch tree with trunk. Carmelo Amoroso2008-03-162-5/+5
| | | | | | | Step 6: fix Makefiles to use $(VERSION) and the compiler-driver for the link stage Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Merge ldso tree with trunk. Carmelo Amoroso2008-03-0512-146/+192
| | | | | | Step 1: basically code formatting and minor changes Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Synchronize ldso tree with trunk. Only architecturesCarmelo Amoroso2008-03-0512-97/+72
| | | | | | | that don't support TLS yet in the nptl branch. Just to speed-up final merge. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* This patch solves a problem in dladdr caused by the wrong valueCarmelo Amoroso2008-01-184-17/+52
| | | | | | | 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>
* Removed #if USE_TLS guard around tls_tpnt, otherwise it will not compileCarmelo Amoroso2007-11-222-6/+2
| | | | | | | if TLS is disabled (once merged into the trunk) Pointed out by Peter Mazinger. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Added GNU hash support to ld.soCarmelo Amoroso2007-11-1914-319/+534
| | | | | | | | | | | 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>
* Add missing dl_error_names string for TLS relocation error. Submitted by ↵"Steven J. Hill"2007-03-051-0/+1
| | | | Khem Raj.
* Merge from trunk."Steven J. Hill"2007-01-203-58/+114
|
* Merge from trunk."Steven J. Hill"2006-12-164-52/+234
|
* Copy from trunk."Steven J. Hill"2006-12-167-0/+1605
|
* Fix regression that showed up from merge done on 20060619. Test 'tst-tls6' ↵"Steven J. Hill"2006-11-231-10/+14
| | | | was giving an incorrect return code due to memory being dynamically allocated on the stack. This is not allowed when using TLS.
* Check in all code for TLS relocations. There is still clean up that"Steven J. Hill"2006-08-2118-372/+872
| | | | | needs to be done, but I would rather wait until after merging with the other architectures.
* Add in macro for TLS."Steven J. Hill"2006-08-211-2/+0
|
* Merge from trunk."Steven J. Hill"2006-08-214-9/+0
|
* Merge from trunk."Steven J. Hill"2006-08-187-27/+28
|
* Merge from trunk."Steven J. Hill"2006-08-187-149/+48
|
* Merge from trunk."Steven J. Hill"2006-06-182-8/+4
|
* Merge from trunk."Steven J. Hill"2006-03-274-65/+80
|
* Merge from trunk."Steven J. Hill"2006-02-2624-689/+841
|
* Get rid of more glibc NPTL symbol and alias madness. Also disable usage of"Steven J. Hill"2006-01-142-10/+2
| | | | | | 'libc/sysdeps/linux/common/fork.c' when NPTL is being used. Finally, there are additional weak functions that need to be defined when using NPTL which have also been added.
* Merge from trunk."Steven J. Hill"2006-01-143-19/+82
|