Age | Commit message (Collapse) | Author | |
---|---|---|---|
2008-12-03 | - Use runtime pagesize (Jeremy Kerr) | Bernhard Reutner-Fischer | |
Some powerpc machines can support 64k pages, enabled by the CONFIG_64K_PAGES option in linux. However, the uClibc dynamic loader won't currently work on these machines, as it uses hard-coded values (PAGE_ALIGN, ADDR_ALIGN and OFFS_ALIGN) in the ldso architecture-specific headers. When running on a kernel with 64k pages, ld.so tries to mmap with 4k-aligned addresses, rather than 64k, so mmap fails with -EINVAL. When booting a 64k machine with a uClibc dynamic linker, init fails with: /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init:500: can't map '/lib/libc.so.0' /init: can't load library 'libc.so.0' Kernel panic - not syncing: Attempted to kill init! This change allows ld.so determine these alignment masks at runtime, rather than compile-time. Since we have the _dl_pagesize variable available, we can use that to generate the appropriate masks. Since almost all of the architectures can use the common definitions for the _ALIGN macros, we can consolidate them all in ldso.h, and override in the sysdep headers where necessary (ie, mips). This allows me to start a uClibc-based root fs on a 64k machine. Signed-off-by: Jeremy Kerr <jk at ozlabs org> | |||
2008-05-30 | - fix the macros rather than the callees as rightfully noted by bernds (duh!) | Bernhard Reutner-Fischer | |
2008-01-09 | fix broken whitespace in many places; no functional changes | Mike Frysinger | |
2008-01-08 | Some more Blackfin/FDPIC ldso merging work. Include dl-inlines.h when it | Bernd Schmidt | |
exists, and move some definitions to their proper place. | |||
2007-12-03 | Blackfin FD-PIC patches 5/6. | Bernd Schmidt | |
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. | |||
2007-12-03 | Blackfin FD-PIC patch 1/6. | Bernd Schmidt | |
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. | |||
2007-11-09 | Define _dl_assert in libdl only if __DOASSERTS__ is defined. Thanks to Peter ↵ | Carmelo Amoroso | |
Mazinger | |||
2007-11-07 | Added support for GNU hash style into dynamic linker | Carmelo Amoroso | |
2007-01-29 | - see if defined foo before trying to look at the value of foo (that should ↵ | Bernhard Reutner-Fischer | |
be 0 in this case. Avoids some warnings). | |||
2006-07-05 | patch from Bernd Schmidt to abstract away load address types | Mike Frysinger | |
2006-07-05 | missed an ElfW(Addr) change | Mike Frysinger | |
2006-07-05 | revert fdpic patch so we can merge it in bit by bit | Mike Frysinger | |
2006-06-30 | Bernd Schmidt writes: abstract away addresses so we can support FDPIC ELFs | Mike Frysinger | |
2006-02-23 | Include bits/uClibc_page.h before dl-syscall.h as the latter may | Peter Kjellerstedt | |
need the defines from the former. | |||
2005-11-23 | change to Lesser GPL 2.1 as pointed out by psm | Mike Frysinger | |
2005-11-22 | add some copyright info | Mike Frysinger | |
2005-08-29 | some fixes by anemo in Bug 9 to play nicely with 32 or 64 bit hosts | Mike Frysinger | |
2005-08-12 | Remove hardcoded ld-uClibc.so.0 name in ldso. | Joakim Tjernlund | |
2005-07-11 | create a new wrapper macro for debug early output | Mike Frysinger | |
2005-06-30 | change all Elf32_* usage to ElfW(*) usage since we shouldnt care about the ↵ | Mike Frysinger | |
bitsize | |||
2005-06-25 | move _dl_if_debug_dprint() to shared ldso header | Mike Frysinger | |
2005-04-27 | Get rid of extern references to ldso variables. | "Steven J. Hill" | |
2004-09-08 | Second attempt to fix the INIT/FINI order. This time I think I got it right :) | Joakim Tjernlund | |
This needs testing with apps that have complex dependencies. | |||
2004-09-03 | First attempt to fix the INIT/FINI ordering. Fingers crossed :) | Joakim Tjernlund | |
2004-09-02 | Remove unused variables. From Peter Mazinger. | Joakim Tjernlund | |
2004-08-19 | Remove poor man's malloc. Not needed anymore. | Joakim Tjernlund | |
2004-08-19 | Move "debug_addr" ptr from dl-startup.c to ldso.c | Joakim Tjernlund | |
2004-08-19 | Move the app specific stuff from dl-startup.c to ldso.c. | Joakim Tjernlund | |
2004-08-13 | Fixup PAGE_SIZE problems | Eric Andersen | |
-Erik | |||
2004-07-30 | Teach libdl to use normal libc symbols whenever possible, i.e. malloc | Eric Andersen | |
rather than _dl_malloc, fprintf rather than _dl_printf, etc. -Erik | |||
2004-07-16 | Revert this stuff for now | Eric Andersen | |
2004-07-14 | Sigh. I got things working this morning, then checked stuff in from the wrong | Eric Andersen | |
tree. Bad boy, No doughnut. -Erik | |||
2004-07-14 | Based on a patch from Alexandre Oliva, make sure _dl_malloc returns a nicely | Eric Andersen | |
aligned pointer that may be aligned up to page_size. Also add _dl_free, | |||
2004-05-11 | make certain that getpagesize() returns correct the value for mips | Eric Andersen | |
by extracting the value from the ELF header. | |||
2004-02-17 | Fixup support for gcc 2.95 | Eric Andersen | |
2004-02-17 | Provide the ldso syscalls and string funcs earlier in the list | Eric Andersen | |
2004-02-10 | Rework file naming, aiming for at least a vague level of consistancy | Eric Andersen | |
2004-02-07 | Step one, begin shuffling things around a bit | Eric Andersen | |
2004-01-29 | Scrub up use of ELF_USES_RELOCA and eliminte some unsightly ifdefs | Eric Andersen | |
2004-01-06 | Some badly behaved arches fail to provide a PAGE_SIZE define | Eric Andersen | |
2003-12-17 | Use PAGE_SIZE rather than hard coding 4096 | Eric Andersen | |
2003-08-19 | Phase one of my evil plan to clean up ld.so... | Eric Andersen | |