summaryrefslogtreecommitdiffstats
path: root/ldso
Commit message (Collapse)AuthorAgeFilesLines
...
* Move _dl_iterate_phdr into libc.so.0 and libc.a (as glibc does).Carmelo Amoroso2008-11-184-34/+22
| | | | | | Currently we have an implementation in ld.so and libdl.a. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - less verbose make cleanBernhard Reutner-Fischer2008-11-072-4/+4
|
* Prefix variables defined in INIT_GOT define for AVR32 archHans-Christian Egtvedt2008-11-031-4/+4
| | | | | | | | | | | This patch will prefix the i and nr_got variable with an underscore to seperate them from any variables already present in the functions where the macro is used. Needed to silence compiler warnings. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* Make sure functions in dl-sysdep.h for AVR32 are always inlinedHans-Christian Egtvedt2008-11-031-3/+3
| | | | | | | Replace __inline__ with __always_inline. Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* Fix whitespace damage in file.Hans-Christian Egtvedt2008-11-031-1/+1
| | | | | Signed-off-by: Hans-Christian Egtvedt <hans-christian.egtvedt@atmel.com>
* - jmp on coldfire accepts only address registersBernhard Reutner-Fischer2008-11-031-0/+5
| | | | Closes #3824
* - fix use after free (Kevin Day)Bernhard Reutner-Fischer2008-10-291-3/+5
| | | | | dl_cleanup will call do_dlclose with the handle. Inside of do_dlclose, the handle will ultimately get free'd.
* - tidy up inline:Bernhard Reutner-Fischer2008-10-247-50/+50
| | | | ldso and syscalls are __always_inline (the latter would need more cleanup)
* - use c89-style commentsBernhard Reutner-Fischer2008-10-032-8/+8
| | | | Closes issue #5194
* - avoid warning about undefined preprocessor tokenBernhard Reutner-Fischer2008-09-301-1/+1
|
* - remove shadows declaration of struct st (already declared in function scope)Bernhard Reutner-Fischer2008-09-301-1/+0
|
* sh_ldso: Fix typo: missing semi-colon.Carmelo Amoroso2008-09-291-1/+1
|
* Fix comment.Carmelo Amoroso2008-09-291-2/+5
|
* ldso: allow undefined references to weak symbolsCarmelo Amoroso2008-09-291-3/+6
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* libdl: use stderr consistently.Carmelo Amoroso2008-09-291-2/+2
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* ldso: do not use hard-coded fd in _dl_dprintf. Use dl_debug_file consinstently.Carmelo Amoroso2008-09-291-6/+6
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - ARMV5 can use STRD and LDRD access instructions but these accesses need to beBernhard Reutner-Fischer2008-09-251-0/+4
| | | | | | 8 byte aligned. The dynamic linker's malloc needs to match this so structures become 8 byte aligned to void unaligned accesses. (71_all_uClibc-arm_fix_alignment.patch from gentoo)
* ldso: removed dead code.Carmelo Amoroso2008-09-231-10/+0
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Use __always_inline for _dl_gettimeofday as well.Carmelo Amoroso2008-09-181-1/+1
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - commentary typo fixBernhard Reutner-Fischer2008-09-1513-13/+13
|
* xtensa: Stack unwinding on Xtensa requires that the return address register ↵Chris Zankel2008-09-131-8/+4
| | | | always be valid. This patch fixes a part of ldso that had been using an Xtensa CALL0 instruction to get the current PC value, which temporarily clobbered the return address register. The revised code just loads the address of a label in the code. See my change to GCC from 2007-12-20 for more info (http://gcc.gnu.org/ml/gcc-patches/2007-12/msg01023.html).
* - remove a couple of duplicate includesBernhard Reutner-Fischer2008-08-271-3/+1
|
* 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)Bernhard Reutner-Fischer2008-08-061-1/+1
|
* - trim any trailing whitespaceBernhard Reutner-Fischer2008-07-2312-40/+40
|
* - fix inline keywordBernhard Reutner-Fischer2008-07-2318-48/+48
|
* - fix asm and volatile keywordsBernhard Reutner-Fischer2008-07-239-10/+10
|
* avr32: Put underscores around asm, inline, etc.Haavard Skinnemoen2008-07-232-7/+7
| | | | | This fixes build breakage introduced in r22868.
* - move stripping into do_ar resp compile-m for the sake of simplicityBernhard Reutner-Fischer2008-06-172-3/+0
|
* - strip the targets and not prerequisitesBernhard Reutner-Fischer2008-06-042-3/+3
| | | | | | - tidy up PTHREADS_DEBUG_SUPPORT by using per-target STRIP_FLAGS for the few This fixes the spurious rebuilds bernd and vda were seeing with libpthreads.
* - Revert _dl_exit touch-up.Bernhard Reutner-Fischer2008-06-031-5/+1
| | | | It breaks on arches that don't define proper/complete/nice syscall facilities.
* - adds several config-options to allow for turning off certain featuresBernhard Reutner-Fischer2008-06-031-1/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | like o UCLIBC_HAS_GNU_ERROR o UCLIBC_HAS_BSD_ERR o UCLIBC_HAS_PTY o UCLIBC_HAS_GETPT (1) o UCLIBC_SYSCALL_STUBS o UCLIBC_SYSCALL_STUB_WARNING o UCLIBC_LINUX_SPECIFIC (2) o UCLIBC_BSD_SPECIFIC (3) o UCLIBC_NTP_LEGACY (4) o UCLIBC_SV4_DEPRECATED (5) o UCLIBC_HAVE_REALTIME (6) o UCLIBC_HAVE_ADVANCED_REALTIME (7) o UCLIBC_HAVE_EPOLL (8) o UCLIBC_HAVE_XATTR (9) o UCLIBC_HAVE_PROFILING (10) (1) make non-standard getpt optional and implement standard posix_openpt (2) fstatfs(), inotify_*(), ioperm(), iopl(), madvise(), modify_ldt(), personality() ppoll(), setresuid() (3) mincore(), getdomainname(), setdomainname() (4) ntp_adjtime(), ntp_gettime() aliases (5) ustat() [use statfs(2) in your code instead] (6) All marked as "(REALTIME)" in SUSv3 (7) All marked as "(ADVANCED REALTIME)" in SUSv3 (8) epoll_create(), epoll_ctl(), epoll_wait() (9) all Extended Attributes (10) helpers for gcc's -finstrument-functions - Fixes _dl_exit() - Implements sleep(3) for !UCLIBC_HAVE_REALTIME - Implements usleep(3) for !UCLIBC_HAVE_REALTIME - adds #warning about incorrect posix_fadvise{,64}() - removes unused and unwanted uselib() Net outcome is that an allnoconfig with HAVE_SHARED is now about 88k instead of formerly 130k.
* A slight improvement over my previous commit which ensured we always rebuildBernd Schmidt2008-06-011-1/+1
| | | | | | | | | libc when one of the source files changes. Since there are more places which want to depend on $(libc), fix them all to use a new variable $(libc.depend), which contains the filename for which we have a rule.
* - fix the macros rather than the callees as rightfully noted by bernds (duh!)Bernhard Reutner-Fischer2008-05-303-7/+6
|
* - nlist is unsigned. Adjust iterator variables accordingly to avoid ↵Bernhard Reutner-Fischer2008-05-301-2/+2
| | | | signedness warnings.
* - Avoid warning about missing brace. No obj-code changes.Bernhard Reutner-Fischer2008-05-301-1/+2
|
* - fix dependencies of ldso.cBernhard Reutner-Fischer2008-05-301-1/+8
| | | | Previously a touch ldso/ldso/dl-debug.c && make ldso/ldso/ldso.oS did nothing
* - Avoid warning about missing brace.Bernhard Reutner-Fischer2008-05-301-4/+4
|
* - Avoid warning about missing brace. No obj-code changes.Bernhard Reutner-Fischer2008-05-301-1/+2
|
* Fix the ELF magic number for SPARCV9: by Friedrich Oslage ↵Carmelo Amoroso2008-05-281-1/+8
| | | | <bluebird@porno-bullen.de>
* - fix compilation errorBernhard Reutner-Fischer2008-05-231-2/+3
|
* Introduce and use small[u]int type. Changes in size:Denis Vlasenko2008-05-201-1/+1
| | | | | | | | | | | | | | - 79 0 28 107 6b libc/inet/rpc/create_xid.o + 76 0 25 101 65 libc/inet/rpc/create_xid.o - 126 0 4 130 82 libc/misc/assert/__assert.o + 123 0 1 124 7c libc/misc/assert/__assert.o - 648 4 24 676 2a4 libc/misc/internals/__uClibc_main.o + 645 4 21 670 29e libc/misc/internals/__uClibc_main.o - 230 0 4 234 ea libc/stdlib/abort.o + 216 0 1 217 d9 libc/stdlib/abort.o - 129 0 4 133 85 libc/termios/tcgetsid.o + 126 0 1 127 7f libc/termios/tcgetsid.o
* - fixup asm. No object-code changesBernhard Reutner-Fischer2008-04-2412-32/+32
|
* Fix whitespace damage in AVR32 part of ldso.Hans-Christian Egtvedt2008-04-164-241/+241
|
* Paul Brook writes:Bernhard Reutner-Fischer2008-03-261-1/+2
| | | | | | | | | | | | | | | The attached patch adds support for compiling arm uClibc as pure Thumb code. This is needed because some recent ARM codes do not implement traditional ARM mode. Specifically: * Cortex-M1 - An extremely minimal FPGA based core that only implements Thumb-1 (aka ARMv6-M). * Cortex-M3 - A Thumb-2 only ARMv7-M core. Most of uClibc already builds in Thumb mode, all that is left are a handful of assembly bits. Tested on arm-uclinuxeabi.
* Add missing cast in pointer assignmentCarmelo Amoroso2008-03-251-1/+1
|
* Move calculation of rem within if (unlikely statementCarmelo Amoroso2008-03-111-3/+5
| | | | | Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com> SIgned-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Khem Raj <kraj@mvista.com> writes:Carmelo Amoroso2008-03-091-2/+3
| | | | | | | | | | While compiling trunk on ARM with GCC 4.2 and enabling LDSO_GNU_HASH_SUPPORT I stumbled upon this problem. GCC made a call to libgcc function __aeabi_uidivmod()->__div0()->__raise() and raise is not yet compiled in at the time of compiling ldso so I got well known undefined symbol __raise problem This patch uses the do_rem () macro to do the same operation.
* Fix typos in commentCarmelo Amoroso2008-02-201-1/+1
|
* Do not call _dl_de ug_state() before recording ld.so. Signed-off-by: Daniel ↵Carmelo Amoroso2008-02-201-3/+1
| | | | Jacobowit <dan@codesourcery.com>