summaryrefslogtreecommitdiffstats
path: root/ldso
Commit message (Collapse)AuthorAgeFilesLines
...
* - 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>
* Use DL_RELOC_ADDR when dealing with DL_LOADADDR_TYPE types. Fixes gnu-hashBernd Schmidt2008-02-121-1/+1
| | | | compilation on Blackfin.
* Fix the recent dladdr changes so that they compile on FD-PIC targets.Bernd Schmidt2008-02-085-9/+10
|
* Update dl-inlines.h from Blackfin repository.Bernd Schmidt2008-01-181-12/+43
|
* This patch solves a problem in dladdr caused by the wrong valueCarmelo Amoroso2008-01-185-7/+44
| | | | | | | 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>
* Make sh4 build works again adding a temporary work-aroundCarmelo Amoroso2008-01-121-4/+7
| | | | | | | | iby redefining __always_inline to inline until gcc 4.x.x will get fixed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Make sh4 build works again adding a temporary work-aroundCarmelo Amoroso2008-01-121-0/+5
| | | | | | | | iby redefining __always_inline to inline until gcc 4.x.x will get fixed. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* fix broken whitespace in many places; no functional changesMike Frysinger2008-01-098-95/+94
|
* Some more Blackfin/FDPIC ldso merging work. Include dl-inlines.h when itBernd Schmidt2008-01-083-11/+17
| | | | exists, and move some definitions to their proper place.
* change NO_UNDERSCORES to just UNDERSCORES so as to be less confusing when ↵Mike Frysinger2008-01-082-5/+5
| | | | doing double negatives
* the _dl_errno extern already exists in common headers, so no need for a ↵Mike Frysinger2008-01-081-1/+0
| | | | local one
* Chris Zankel writes:Mike Frysinger2008-01-057-1/+653
| | | | | | | | | | | | | | | | | | The following patches add support for the Xtensa processor architecture to uClibc. They are based on a recent SVN checkout (12/05/2007). The first patch (attached to this post) adds Xtensa support to various shared configuration and make files. The following patches then include the Xtensa specific files and directories. I welcome any feedback and would appreciate it if you could include the patches into the mainline tree. I am certainly committed to maintain the port. Bob Wilson was kind enough to review the patches. Some notes about the architecture: Xtensa is a configurable and extensible processor architecture developed by Tensilica. For more information, please visit: www.linux-xtensa.org.
* whitespace only: fix indentationMike Frysinger2008-01-051-1/+1
|
* Blackfin FD-PIC patch 6/6.Bernd Schmidt2007-12-043-51/+222
| | | | | | | 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.
* Fix a few warnings introduced by my previous commits.Bernd Schmidt2007-12-032-3/+3
|
* Blackfin FD-PIC patches 5/6.Bernd Schmidt2007-12-034-8/+35
| | | | | | | A couple more target macros for ld.so to deal with FD-PIC support. We need special code to compute the initial got and dpnt, and we need to pass extra arguments to _dl_get_ready_to_run.
* Blackfin FD-PIC patch 4/6.Bernd Schmidt2007-12-031-0/+7
| | | | Add a hash table for function descriptors on FD-PIC targets.
* Blackfin FD-PIC patch 3/6.Bernd Schmidt2007-12-036-14/+61
| | | | | | | | | | | | | | | Change _dl_find_hash to _dl_lookup_hash, as on the NPTL branch. _dl_find_hash is now a wrapper function around it; unlike on the NPTL branch, it retains the old interface so that not all callers need to be changed. _dl_lookup_hash can optionally give its caller a pointer to the module where the symbol was found. Introduce ELF_RTYPE_CLASS_DLSYM for lookups from libdl. Spelling fixes in the Blackfin port, since Alex Oliva's original version of these patches used _dl_find_hash_mod as the name of the function rather than _dl_lookup_hash.
* Blackfin FD-PIC patch 2/6.Bernd Schmidt2007-12-033-6/+33
| | | | | | Add the necessary changes in ld.so and libdl to deal with targets that prepend an underscore to symbol names.
* Blackfin FD-PIC patch 1/6.Bernd Schmidt2007-12-033-5/+43
| | | | | | | Add a new function _dl_free. In _dl_malloc, ensure we always get back a full page from mmap. Reset _dl_malloc_function and _dl_free_function when libdl is initialized.
* Some versions of gcc consider inline merely a hint. AVR32 depends on theCarmelo Amoroso2007-12-031-20/+20
| | | | | | | | | system calls actually being inlined, so AVR32 needs to use __always_inline instead of just inline. The attached patch changes this for the system calls. Signed-off-by: Hans-Christian Egtvedt <hcegtvedt@atmel.com>
* Fix merging error: a macro was renamed.Bernd Schmidt2007-11-281-1/+2
|
* Change test for a define that got renamed a while ago.Bernd Schmidt2007-11-231-1/+1
|
* If uClibc's ld.so encounters text relocations in a shared library - one Carmelo Amoroso2007-11-161-0/+7
| | | | | | | | | | | | | | | | | | | | | | | | | | | containing an object built without -fpic/-fPIC - then: * If __FORCE_SHAREABLE_TEXT_SEGMENTS__, then it gives an error "Can't modify %s's text section. Use GCC option -fPIC for shared objects, please.\n" and exits. * Otherwise, it makes the library's pages writable and relocates it. If it encounters text relocations in a position-independent executable - one containing an object built without -fpie/-fPIE/-fpic/-fPIC - then: * If __FORCE_SHAREABLE_TEXT_SEGMENTS__, it does nothing about making the pages writable, leading to a crash. * Otherwise, the loop to make the pages writable uses the same variable ppnt as used in an outer loop, messing up that outer loop and also causing a crash. This patch fixes both cases, by giving an error if __FORCE_SHAREABLE_TEXT_SEGMENTS__ and saving and restoring ppnt otherwise. Tested in both cases on ARM EABI. Joseph S. Myers joseph@codesourcery.com
* Added AVR32 support to uClibc. Signed-off-by: Hans-Christian Egtvedt ↵Carmelo Amoroso2007-11-168-2/+494
| | | | <hcegtvedt@atmel.com>
* Define _dl_assert in libdl only if __DOASSERTS__ is defined. Thanks to Peter ↵Carmelo Amoroso2007-11-091-7/+16
| | | | Mazinger
* Added support for GNU hash style into dynamic linkerCarmelo Amoroso2007-11-074-32/+215
|
* Handle STT_COMMON symbols too. Following binutils releaseJoakim Tjernlund2007-10-211-1/+6
| | | | | | | | | | will set the type of common symbols to STT_COMMON instead of STT_OBJECTS, so the dynamic linker needs to handle this type os symbols too. Same changes have been added to glibc (See: bugzilla #5104). This patch ensures the uclibc will work with later bintuils. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* - use the compiler-driver instead of the linkerBernhard Reutner-Fischer2007-10-132-3/+3
| | | | | | | | | - adjust setting flags accordingly to use (hardcoded, see below) -Wl, Potential improvements: *) --warn-unresolved-symbols should perhaps be used for all libs *) eventually rename LDFLAGS to CC_LDFLAGS *) probe for compiler driver's notion of flag to use for passing in linker flags (i.e. don't hardcode "-Wl,")
* Do string comparisos as late as possible during symbol lookup.Mike Frysinger2007-10-081-2/+2
| | | | Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Make sure that the DSO has an hash table into its elf, otherwise skipMike Frysinger2007-09-281-0/+4
| | | | | | the lookup over next DSO. Signed-off-by: Carmelo Amoroso <carmelo.amoroso@st.com>
* Blue Swirl writes:Mike Frysinger2007-09-152-0/+5
| | | | | | | | | | | | | | | | | | | | I got the library to compile with the attached patches, though dynamic loader crashes early. In buildroot I changed the architecture name by hand from sparc to sparc64, otherwise the compiler produced 32-bit files with V9 (64-bit) instructions. This configuration is not supported by QEMU, so I aimed for pure 64-bit. I think Sparc64 option needs to be added to buildroot. The _Qp_ ops seem to be required by the ABI. This and setjmp patches are just hacks to get the compilation further. The _Qp_ ops can be found in glibc, would it be OK to use those? V9 assembler requires declarations for global register use. The mem* functions in sparc32 directory did not work. They are actually used only by the hybrid 32-bit + V9 CPU configuration.
* Remove stray code alignment (.align 16 and .align 4 directives)Denis Vlasenko2007-07-294-4/+0
| | | | | from i386 and x86_64.
* Apply patch as submitted by Blue Smurfy Swirly <blauwirbel@gmail.com> for ↵"Steven J. Hill"2007-07-181-0/+6
| | | | Sparc32.
* Correct return value. Pointed out by psm.Joakim Tjernlund2007-06-041-1/+1
|
* fix ld.so.cache handling on no-mmu setupsMike Frysinger2007-04-172-1/+7
|
* Bernd Schmidt writes:Joakim Tjernlund2007-03-313-55/+86
| | | | | | | | | | Currently a static libdl.a doesn't run all the constructors or destructors of the libraries it loads. I can't see a good reason for that, and it does cause aborts in the destructors it does run for things like libgcc.so on the Blackfin. Fixed with the patch below - untested in mainline, but the equivalent has been in our Blackfin tree for a while now.
* #1273 if EXTRAVERSION is set, make sure we respect itMike Frysinger2007-03-192-2/+2
|