summaryrefslogtreecommitdiffstats
path: root/ldso
Commit message (Collapse)AuthorAgeFilesLines
...
* 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
|
* Carmelo Amoroso writes:Joakim Tjernlund2007-03-131-0/+1
| | | | | | | | I experiencied some problems while trying to debug the ld.so (sh4) in debug mode. I found that the _start code was not placed into any PT_LOAD segment causing a SIGSEV. I solved this issue explicitely placing the _start code into the .text section (see attached patch).
* Carmelo Amoroso writes:Joakim Tjernlund2007-03-131-0/+33
| | | | | | | | | Hi All, the attached patch completes my previous patch on statically linked application calling dlopen enabling the support for LD_DEBUG. Further it fixes the missing initialization of the _dl_library_path variable. This patch has been fully tested with the uClibc-nptl branch (sh4).
* make sure we have rtld_hidden_def(_dl_debug_state)Mike Frysinger2007-02-211-0/+1
|
* Make _dl_malloc alignment arch configurable.Joakim Tjernlund2007-02-173-3/+13
| | | | From Atsushi Nemoto.
* Fix dlopen for static apps.Joakim Tjernlund2007-02-161-2/+12
| | | | From Carmelo Amoroso.
* use /*...*/ comments rather than #... so we can preprocessMike Frysinger2007-02-131-16/+16
|
* - see if defined foo before trying to look at the value of foo (that should ↵Bernhard Reutner-Fischer2007-01-291-1/+1
| | | | be 0 in this case. Avoids some warnings).
* fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and ↵Mike Frysinger2007-01-281-1/+6
| | | | does not generate relocs
* as pointed out by Jocke, use "2" for actual error messages and ↵Mike Frysinger2007-01-281-6/+6
| | | | _dl_debug_file for debug messages
* Fix libdl bug reported by Cedric Hombourger inJoakim Tjernlund2007-01-262-30/+32
| | | | http://uclibc.org/lists/uclibc/2007-January/017165.html
* Joseph S. Myers writes:Joakim Tjernlund2007-01-091-2/+2
| | | | | | | | | ELF symbol names are arbitrary 0-terminated sequences of bytes, and the ELF hash function is defined in the ELF specification to use unsigned char. Thus uClibc's _dl_elf_hash, using plain char, breaks when char is signed and symbol names contain bytes with the high bit set, as with GCC's ucnid-* tests. This patch fixes this problem.
* Support SecurePLTs for PowerPC. You need a toolchain that supportsJoakim Tjernlund2007-01-053-58/+114
| | | | | | config option --enable-secureplt. The assembler must also supports R_PPC_REL16* relocations. gcc 4.1.1 and binutils 2.17 is known to do this.
* bits/kernel_stat.h is for internal uClibc use only, fix a few otherEric Andersen2006-12-061-1/+2
| | | | minor include file issues