OSDN Git Service
Mike Frysinger [Thu, 30 Jun 2005 22:34:54 +0000 (22:34 -0000)]
fix typo in umount2() emulation of umount()
Mike Frysinger [Thu, 30 Jun 2005 22:34:00 +0000 (22:34 -0000)]
if the include files get updated we want to rebuild
Mike Frysinger [Thu, 30 Jun 2005 22:32:29 +0000 (22:32 -0000)]
create generic ELF_* macros to hide 32/64 bit differences
Mike Frysinger [Thu, 30 Jun 2005 22:29:02 +0000 (22:29 -0000)]
whitespace tweaks
Mike Frysinger [Thu, 30 Jun 2005 22:03:11 +0000 (22:03 -0000)]
change all Elf32_* usage to ElfW(*) usage since we shouldnt care about the bitsize
Joakim Tjernlund [Thu, 30 Jun 2005 11:27:24 +0000 (11:27 -0000)]
Quick and dirty hack to prevent ld.so from beeing loaded twice.
Bug exposed by the new __libc_stack_end feature in libc.so.
Mike Frysinger [Thu, 30 Jun 2005 04:47:50 +0000 (04:47 -0000)]
typecast to long instead of int so pointers on 64bit arches can be typecast safely
Mike Frysinger [Thu, 30 Jun 2005 04:16:22 +0000 (04:16 -0000)]
small whitespace fix
Mike Frysinger [Thu, 30 Jun 2005 04:12:48 +0000 (04:12 -0000)]
err revert %p->%x change since _dl_printf() is not fprintf()
Mike Frysinger [Thu, 30 Jun 2005 04:08:19 +0000 (04:08 -0000)]
use %p instead of %x to show addresses so we dont have to worry about the sizeof pointers
Mike Frysinger [Thu, 30 Jun 2005 04:05:52 +0000 (04:05 -0000)]
use %p instead of %x to show addresses so we dont have to worry about the sizeof pointers
"Steven J. Hill" [Thu, 30 Jun 2005 02:26:21 +0000 (02:26 -0000)]
The function '_dl_memset' should always be inlined regardless of the
optimization level chosen. This allows uClibc to be compiled with the
latest GCC-4.1.0. While tracking down the specific culprit causing
the segmentation fault of the dynamic loader with GCC-4.1.0 I was
able to force inlining of other functions such that I shaved 512 bytes
off the size of the loader, yay. Also fixed warning in 'dl-hash.c'.
Joakim Tjernlund [Thu, 30 Jun 2005 00:18:51 +0000 (00:18 -0000)]
Oops, fix link fail.
Joakim Tjernlund [Wed, 29 Jun 2005 23:21:45 +0000 (23:21 -0000)]
Add __libc_stack_end to libc.
Mike Frysinger [Wed, 29 Jun 2005 23:12:02 +0000 (23:12 -0000)]
need stdlib.h for some things
Mike Frysinger [Wed, 29 Jun 2005 23:11:41 +0000 (23:11 -0000)]
need to include string.h for some mem funcs
Mike Frysinger [Wed, 29 Jun 2005 23:10:59 +0000 (23:10 -0000)]
simplify TESTDIR setting and touchup
Mike Frysinger [Wed, 29 Jun 2005 23:06:49 +0000 (23:06 -0000)]
clean up and use topdir .config instead of local Config
Mike Frysinger [Wed, 29 Jun 2005 22:58:06 +0000 (22:58 -0000)]
touchup syntax
Mike Frysinger [Wed, 29 Jun 2005 22:44:26 +0000 (22:44 -0000)]
touchups syntax and fix warning when using 64bit arches
Joakim Tjernlund [Wed, 29 Jun 2005 22:42:27 +0000 (22:42 -0000)]
declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off
Mike Frysinger [Wed, 29 Jun 2005 22:30:12 +0000 (22:30 -0000)]
need to include features.h to get uclibc defines
Mike Frysinger [Wed, 29 Jun 2005 22:24:53 +0000 (22:24 -0000)]
need to include features.h to get uclibc defines
Mike Frysinger [Wed, 29 Jun 2005 22:17:49 +0000 (22:17 -0000)]
previous commit of trimming __IPC_64 wasnt quite correct ... rework __IPC_64 so that it will compile and it is correct
Mike Frysinger [Wed, 29 Jun 2005 22:09:29 +0000 (22:09 -0000)]
if both __NR_send and __NR_socketcall do not exist, fall back to __NR_sendto (same goes for recv/recvfrom)
Joakim Tjernlund [Wed, 29 Jun 2005 20:13:21 +0000 (20:13 -0000)]
Minor cleanup.
Mike Frysinger [Wed, 29 Jun 2005 02:12:50 +0000 (02:12 -0000)]
syntax tweaks
Mike Frysinger [Wed, 29 Jun 2005 00:58:06 +0000 (00:58 -0000)]
update Makefile to match ppc and new files
Mike Frysinger [Wed, 29 Jun 2005 00:57:46 +0000 (00:57 -0000)]
make sure we setup stat64 too
Mike Frysinger [Wed, 29 Jun 2005 00:56:09 +0000 (00:56 -0000)]
add syscall error handling with jockes simple errno setting solution
Mike Frysinger [Wed, 29 Jun 2005 00:55:04 +0000 (00:55 -0000)]
unneeded quotes
Mike Frysinger [Wed, 29 Jun 2005 00:54:38 +0000 (00:54 -0000)]
rename crt0.S to crt1.S and clean up so it actually works :)
Mike Frysinger [Wed, 29 Jun 2005 00:43:31 +0000 (00:43 -0000)]
declare init/fini as weak if __UCLIBC_CTOR_DTOR__ is turned off
Mike Frysinger [Wed, 29 Jun 2005 00:37:19 +0000 (00:37 -0000)]
cast buf as void* to fix warning
Mike Frysinger [Wed, 29 Jun 2005 00:33:06 +0000 (00:33 -0000)]
always define __IPC_64 regardless of __NR_ipc
Mike Frysinger [Wed, 29 Jun 2005 00:26:18 +0000 (00:26 -0000)]
tweak to get rid of warning when TZ is disabled
Mike Frysinger [Wed, 29 Jun 2005 00:25:29 +0000 (00:25 -0000)]
whitespace/syntax updates
Mike Frysinger [Wed, 29 Jun 2005 00:20:39 +0000 (00:20 -0000)]
if we have a signal handler in place to cover SIGABRT, we have to make sure the code that unregisters it raises SIGABRT again so the program actually aborts
Mike Frysinger [Wed, 29 Jun 2005 00:18:33 +0000 (00:18 -0000)]
ifdef out check which always fails
Mike Frysinger [Wed, 29 Jun 2005 00:17:40 +0000 (00:17 -0000)]
also symlink asm-$TARGET_ARCH if it exists
Mike Frysinger [Mon, 27 Jun 2005 23:31:24 +0000 (23:31 -0000)]
remove __IPC_64 in syscall() macro since real 64bit arches dont need it (and it doesnt compile)
Joakim Tjernlund [Mon, 27 Jun 2005 22:20:44 +0000 (22:20 -0000)]
Add __libc_stack_end to ld.so. The libc.a version remains to do.
sjhill, feel free to comment :)
Joakim Tjernlund [Sun, 26 Jun 2005 07:52:45 +0000 (07:52 -0000)]
Oops.
Joakim Tjernlund [Sun, 26 Jun 2005 00:11:34 +0000 (00:11 -0000)]
stack_end in __uClibc_main must point to where argc is.
Joakim Tjernlund [Sat, 25 Jun 2005 22:39:44 +0000 (22:39 -0000)]
Change L_Scrt1 to __PIC__ and delete old crt0.S
Joakim Tjernlund [Sat, 25 Jun 2005 22:35:23 +0000 (22:35 -0000)]
Delete old stuff.
Joakim Tjernlund [Sat, 25 Jun 2005 22:33:25 +0000 (22:33 -0000)]
Change L_Scrt1 to __PIC__
Joakim Tjernlund [Sat, 25 Jun 2005 22:27:41 +0000 (22:27 -0000)]
Change L_Scrt1 to __PIC__
Joakim Tjernlund [Sat, 25 Jun 2005 16:56:04 +0000 (16:56 -0000)]
Hopefully fix PIE apps.
Mike Frysinger [Sat, 25 Jun 2005 08:48:04 +0000 (08:48 -0000)]
use _dl_debug_file instead of hardcode 2
Mike Frysinger [Sat, 25 Jun 2005 08:47:43 +0000 (08:47 -0000)]
move _dl_if_debug_dprint() to shared ldso header
Mike Frysinger [Sat, 25 Jun 2005 08:41:38 +0000 (08:41 -0000)]
create some DEBUG macros for the ld debug early
Mike Frysinger [Sat, 25 Jun 2005 08:34:42 +0000 (08:34 -0000)]
whitespace/syntax cleanups
Mike Frysinger [Sat, 25 Jun 2005 08:28:09 +0000 (08:28 -0000)]
rework the debug _dl_dprintf usage to avoid #ifdef macros and make more readable
Mike Frysinger [Sat, 25 Jun 2005 08:25:20 +0000 (08:25 -0000)]
would help if it actually compiled :/
Mike Frysinger [Sat, 25 Jun 2005 08:15:16 +0000 (08:15 -0000)]
hide the #ifdef debug macros/printfs behind one function to make the code more readable
Mike Frysinger [Sat, 25 Jun 2005 01:45:19 +0000 (01:45 -0000)]
whitespace tweak, dont mind me
Joakim Tjernlund [Tue, 21 Jun 2005 14:03:15 +0000 (14:03 -0000)]
Fic gcc 4.0 compilation. Still no confimation that this works on
gcc 4.0 but I don't want to wait anymore.
Mike Frysinger [Fri, 17 Jun 2005 02:20:24 +0000 (02:20 -0000)]
sync whitespace with glibc
Eric Andersen [Thu, 16 Jun 2005 20:29:47 +0000 (20:29 -0000)]
Jim Ramsay writes:
<lack> andersee: Yes. But why does it expose the prototype for _sys_siglist
but NOT provide it in the library? It should either be put into the
library or taken out of the header.
<lack> I just replace the prototype for _sys_siglist with '#define _sys_siglist
sys_siglist' and it seemed to work.
Mike Frysinger [Sat, 11 Jun 2005 00:24:20 +0000 (00:24 -0000)]
change the old pads to the new nano sec fields
Mike Frysinger [Sat, 11 Jun 2005 00:01:24 +0000 (00:01 -0000)]
touchup syntax for no real good reason ;)
Eric Andersen [Fri, 10 Jun 2005 23:22:23 +0000 (23:22 -0000)]
Based on start.S from debian's glibc, this gets arm working
properly with the new ABI
Eric Andersen [Fri, 10 Jun 2005 21:03:18 +0000 (21:03 -0000)]
Add missing file needed for arm to compile
Eric Andersen [Fri, 10 Jun 2005 20:06:11 +0000 (20:06 -0000)]
Based in part on related code in glibc, this might even be correct.
Joakim Tjernlund [Fri, 10 Jun 2005 18:25:35 +0000 (18:25 -0000)]
Remove TEXTREL relocations for ARM.
Hide __syscall_error from outside libc.
From Peter Mazinger.
Eric Andersen [Fri, 10 Jun 2005 10:31:37 +0000 (10:31 -0000)]
oops. I'd left some junk in there
Eric Andersen [Fri, 10 Jun 2005 10:28:42 +0000 (10:28 -0000)]
rework arm crt1 properly this time around
Eric Andersen [Fri, 10 Jun 2005 09:31:21 +0000 (09:31 -0000)]
silly rabbit
Eric Andersen [Fri, 10 Jun 2005 09:18:20 +0000 (09:18 -0000)]
Dunno yet if I got this right or not, but it now at least
has a chance of perhaps working...
Eric Andersen [Fri, 10 Jun 2005 07:22:28 +0000 (07:22 -0000)]
Finish updating mips for the new ABI
Mike Frysinger [Tue, 7 Jun 2005 00:58:04 +0000 (00:58 -0000)]
move tv def back with gettimeofday() func
Eric Andersen [Fri, 3 Jun 2005 17:51:35 +0000 (17:51 -0000)]
Fix a broken link
Mike Frysinger [Fri, 3 Jun 2005 00:00:50 +0000 (00:00 -0000)]
clean up syntax/whitespace and a few variables to minimize diffs between i386/m68k
Mike Frysinger [Fri, 3 Jun 2005 00:00:08 +0000 (00:00 -0000)]
tweak whitespace to minimize diffs between i386/m68k
Joakim Tjernlund [Wed, 1 Jun 2005 14:57:14 +0000 (14:57 -0000)]
Add debug printout of RTLD_GLOBAL and RTLD_NOW flag.
Joakim Tjernlund [Wed, 1 Jun 2005 14:08:13 +0000 (14:08 -0000)]
Initial support for both RUNPATH support.
RPATH sematics changed to match RUNPATH. Only difference is
that RPATH is searched before LD_LIBRARY_PATH and RUNPATH
after. This is not complete but better than the current mess(I think).
Joakim Tjernlund [Tue, 31 May 2005 11:49:10 +0000 (11:49 -0000)]
Fix bug 60
Joakim Tjernlund [Sat, 28 May 2005 23:44:06 +0000 (23:44 -0000)]
Add Peter Mazinger fini/crt compat patch. Select DL_FINI_CRT_COMPAT to
be able to run apps built with 0.9.27. This also renames
__uClibc_start_main to __uClibc_main.
This compat option should be removed some time after 0.9.28 is released.
Let me know if you don't like this change.
Joakim Tjernlund [Sat, 28 May 2005 23:22:12 +0000 (23:22 -0000)]
Filter out any -z defs since this lib will have undefined symbols that
are in gdb.
Joakim Tjernlund [Sat, 28 May 2005 22:11:25 +0000 (22:11 -0000)]
fix warnings like
td_thr_tls_get_addr.c:30: warning: `__used__' attribute ignored
Joakim Tjernlund [Sat, 28 May 2005 21:59:38 +0000 (21:59 -0000)]
gcc says
spinlock.c:35: warning: matching constraint does not allow a register
Update the asm to match glibc.
Joakim Tjernlund [Sat, 28 May 2005 21:58:09 +0000 (21:58 -0000)]
I added, then removed and now I add this again :). Hopefully I got it rigth this time.
Joakim Tjernlund [Sat, 28 May 2005 21:18:22 +0000 (21:18 -0000)]
Add patch at bugs 274. From Peter Manzinger.
Joakim Tjernlund [Sat, 28 May 2005 16:36:52 +0000 (16:36 -0000)]
Add back .size for __start
Joakim Tjernlund [Sat, 28 May 2005 16:30:11 +0000 (16:30 -0000)]
Add back .size for _start
Mike Frysinger [Fri, 27 May 2005 22:09:40 +0000 (22:09 -0000)]
touchup defines so that we can use same ssp.c in both glibc and uclibc
Ned Ludd [Fri, 27 May 2005 19:46:34 +0000 (19:46 -0000)]
- keep gcc-4.x happy
Eric Andersen [Fri, 27 May 2005 05:53:52 +0000 (05:53 -0000)]
erik 0, stupid 1
Mike Frysinger [Fri, 27 May 2005 03:29:03 +0000 (03:29 -0000)]
style updates
Eric Andersen [Fri, 27 May 2005 00:23:45 +0000 (00:23 -0000)]
With a bit of luck, this might just get mips working again
Eric Andersen [Fri, 27 May 2005 00:22:50 +0000 (00:22 -0000)]
minor tweak for correctness
Joakim Tjernlund [Thu, 26 May 2005 23:32:38 +0000 (23:32 -0000)]
Pass the aligned stack ptr, not the unaligned.
Joakim Tjernlund [Thu, 26 May 2005 23:11:49 +0000 (23:11 -0000)]
Clean it up a little.
Joakim Tjernlund [Thu, 26 May 2005 23:05:31 +0000 (23:05 -0000)]
Adapt x86 to new __uClibc_start_main.
Joakim Tjernlund [Thu, 26 May 2005 22:27:40 +0000 (22:27 -0000)]
Fix PPC wrt new __uClibc_start_main.
Eric Andersen [Thu, 26 May 2005 22:19:19 +0000 (22:19 -0000)]
This commit breaks the entire world (yet again). Calculate the
position of envp in C code based on argv and argp. No need to
caclulate that in asm for N arches. This way, we better match
what glibc does. All arches will need to be fixed to match up
with this change.
Joakim Tjernlund [Thu, 26 May 2005 21:23:03 +0000 (21:23 -0000)]
Add PIE support to ARM. From Peter Mazinger
Joakim Tjernlund [Thu, 26 May 2005 21:10:13 +0000 (21:10 -0000)]
Removed -z defs as a more general solution is in the works.
Joakim Tjernlund [Thu, 26 May 2005 08:43:30 +0000 (08:43 -0000)]
Fix "off by one" bug.