OSDN Git Service
Manuel Novoa III [Tue, 2 Dec 2003 19:06:32 +0000 (19:06 -0000)]
Add a syscall() implementation using a hacked version of the syscall6 macro.
Untested, but syscall() is needed by busybox for pivot_root at least.
Eric Andersen [Tue, 2 Dec 2003 17:59:06 +0000 (17:59 -0000)]
Add function versions of ntohl and friends
Eric Andersen [Tue, 2 Dec 2003 17:58:24 +0000 (17:58 -0000)]
Avoid a potentially undefined operation with a veriable++ in a macro
Manuel Novoa III [Tue, 2 Dec 2003 04:58:41 +0000 (04:58 -0000)]
Put in a dummy reference to main so busybox will link.
Manuel Novoa III [Sat, 29 Nov 2003 21:23:42 +0000 (21:23 -0000)]
Minor typo fix.
Manuel Novoa III [Sat, 29 Nov 2003 20:48:18 +0000 (20:48 -0000)]
Minor update... Config no longer used.
Manuel Novoa III [Sat, 29 Nov 2003 02:17:24 +0000 (02:17 -0000)]
Patch by "Bradley D. LaRonde" <brad@ltc.com> for boehm garbage collector.
Manuel Novoa III [Fri, 28 Nov 2003 19:39:51 +0000 (19:39 -0000)]
Another missing mips function, needed by the boehm garbage collector.
Manuel Novoa III [Fri, 28 Nov 2003 18:28:41 +0000 (18:28 -0000)]
Add sysmips(), based on a patch by Atsushi Nemoto <anemo@mba.ocn.ne.jp>.
Manuel Novoa III [Mon, 24 Nov 2003 04:24:31 +0000 (04:24 -0000)]
Add -msoft-float to CPU_CFLAGS instead of CFLAGS, since ldso and libdl
Makefiles ignore CFLAGS.
Manuel Novoa III [Mon, 24 Nov 2003 04:23:31 +0000 (04:23 -0000)]
Don't bother checking, since we want an error if -msoft-float doesn't work.
Manuel Novoa III [Sun, 23 Nov 2003 20:24:32 +0000 (20:24 -0000)]
Ok.. this fixes the buildroot soft-float arm build.
Also try to make sure the build breaks if we want soft float but
don't know how to request it.
Manuel Novoa III [Sun, 23 Nov 2003 18:47:56 +0000 (18:47 -0000)]
Make sure we use the right CC setting when building utils.
Not doing so was breaking the buildroot softfloat arm build.
Manuel Novoa III [Sun, 23 Nov 2003 18:46:00 +0000 (18:46 -0000)]
Hopefully this is correct for cris.
Manuel Novoa III [Sun, 23 Nov 2003 18:45:12 +0000 (18:45 -0000)]
Protect against quoting changes.
Eric Andersen [Sat, 22 Nov 2003 21:22:28 +0000 (21:22 -0000)]
Remove SAFECFLAGS. It was a workaround for failures in old awk script
used to generate the crti.S and crtn.S files. Since we don't use that
anymore, keeping the workaround makes no sense.
Furthermore, in most cases, SAFECFLAGS was not picking up all the
needed flags, causing crti.o and crtn.o to not be built PIC.
Which is very bad. Removing SAFECFLAGS and using CFLAGS fixes
that as well.
Eric Andersen [Sat, 22 Nov 2003 18:32:59 +0000 (18:32 -0000)]
Only enable debugging when SUPPORT_LD_DEBUG is enabled, not DEBUGGING
Eric Andersen [Sat, 22 Nov 2003 18:11:47 +0000 (18:11 -0000)]
Oops. Only enable debug when debugging...
Manuel Novoa III [Sat, 22 Nov 2003 06:51:17 +0000 (06:51 -0000)]
Fix arm detection for libfloat.
Manuel Novoa III [Sat, 22 Nov 2003 04:42:22 +0000 (04:42 -0000)]
Make sure the utils build gets the setting for CROSS.
Eric Andersen [Fri, 21 Nov 2003 07:47:43 +0000 (07:47 -0000)]
prevent some needless warnings when building w/2.6.x kernel headers
Eric Andersen [Thu, 20 Nov 2003 20:05:53 +0000 (20:05 -0000)]
Add missing weak alias for bcmp
Manuel Novoa III [Thu, 20 Nov 2003 17:13:53 +0000 (17:13 -0000)]
Always include locale.h, which was included by libintl.h only when
optimizing.
Eric Andersen [Thu, 20 Nov 2003 15:28:24 +0000 (15:28 -0000)]
Don't depend on BSD naming
Eric Andersen [Thu, 20 Nov 2003 15:23:03 +0000 (15:23 -0000)]
Add an initial set of arm optimized string functions. These
do seem to make noticable speed improvement...
-Erik
Eric Andersen [Thu, 20 Nov 2003 15:05:27 +0000 (15:05 -0000)]
Lets try that one again...
Eric Andersen [Thu, 20 Nov 2003 14:42:42 +0000 (14:42 -0000)]
Make certain that arch specific stuff is compiled last
Eric Andersen [Thu, 20 Nov 2003 14:40:50 +0000 (14:40 -0000)]
Make certain that the arch specific stuff is always compiled last
Eric Andersen [Thu, 20 Nov 2003 14:35:06 +0000 (14:35 -0000)]
Fixup dependancies to ensure arch specific string functions
will always win
Manuel Novoa III [Wed, 19 Nov 2003 07:21:10 +0000 (07:21 -0000)]
Fix the return value for fputs when passed an empty string.
Indirectly detected by gmp-4.1.2 self-tests and reported by
"Peter S. Mazinger" <ps.m@gmx.net>.
Manuel Novoa III [Tue, 18 Nov 2003 19:57:06 +0000 (19:57 -0000)]
Kill ARCH_HAS_NO_MMU and use HAS_FPU only. Wether floating point ops
are implemented in hardware or via kernel emulation doesn't matter to
the libc code.
Manuel Novoa III [Mon, 17 Nov 2003 01:24:07 +0000 (01:24 -0000)]
If __NR_ftruncate64 isn't defined, do the best we can.
Manuel Novoa III [Sun, 16 Nov 2003 21:10:07 +0000 (21:10 -0000)]
I forgot to update the thread locking in the last dst fix.
Manuel Novoa III [Sun, 16 Nov 2003 16:26:35 +0000 (16:26 -0000)]
Patch from Jeffrey Baitis <baitisj@evolution.com> for mips arch tuning.
Manuel Novoa III [Sun, 16 Nov 2003 15:58:33 +0000 (15:58 -0000)]
Don't install shadow.h if shadow password support is disabled.
Manuel Novoa III [Sun, 16 Nov 2003 04:50:49 +0000 (04:50 -0000)]
Fix a build problem when using 2.2.x kernel headers.
Eric Andersen [Thu, 13 Nov 2003 12:45:53 +0000 (12:45 -0000)]
Prepare for release
Eric Andersen [Thu, 13 Nov 2003 12:30:10 +0000 (12:30 -0000)]
Joakim Tjernlund writes:
I think I messed up a little in my latest patch to Erik. Can you try
this on top of CVS(which I think you have already)
Jocke
And later writes:
Hi Erik
I just saw something that might be a problem.
The "delta" variable is signed and
the "delta" calculations, such as delta = PLT_LONGBRANCH_ENTRY_WORDS*4 - (insn_addr-plt_addr+4),
are supposed to be unsigned.
Jocke
Eric Andersen [Thu, 13 Nov 2003 10:19:01 +0000 (10:19 -0000)]
Update the debian packaging for use in a standalone uClibc
system, rather than being a subordinate lib under a glibc
based system.
-Erik
Eric Andersen [Thu, 13 Nov 2003 09:16:37 +0000 (09:16 -0000)]
Kill off these headers, which are supposed to be part of binutils-dev,
not part of uClibc.
Eric Andersen [Thu, 13 Nov 2003 09:04:21 +0000 (09:04 -0000)]
Teach the install_dev target to behave itself and install
the correct stuff with the correct names, and not install
yet another set of shared libs in the wrong place
-Erik
Eric Andersen [Wed, 12 Nov 2003 20:50:03 +0000 (20:50 -0000)]
Add support for missing ntp_gettime and ntp_adjtime
Eric Andersen [Wed, 12 Nov 2003 10:50:18 +0000 (10:50 -0000)]
Revert the stupid quoting junk I inadvertantly committed
Eric Andersen [Wed, 12 Nov 2003 10:19:32 +0000 (10:19 -0000)]
Bump version number
Eric Andersen [Wed, 12 Nov 2003 08:21:58 +0000 (08:21 -0000)]
Fix a stupid potential segfault
Manuel Novoa III [Tue, 11 Nov 2003 23:44:13 +0000 (23:44 -0000)]
Fix for the last "fix".
Eric Andersen [Tue, 11 Nov 2003 23:40:10 +0000 (23:40 -0000)]
It seems that the powerpc ldso doesn't like -O0
Manuel Novoa III [Tue, 11 Nov 2003 22:54:43 +0000 (22:54 -0000)]
Protect some header inclusions.
Eric Andersen [Tue, 11 Nov 2003 21:50:11 +0000 (21:50 -0000)]
Joakim Tjernlund writes:
Comparing glibc with uClibc makes me think that the delta calculations are
wrong here. Comparing some more I still think there are a
data_words[index] assignments missing. Here is a path that has both the
data_words[index] and the above delta calclations.
This also fixes a terribly obvious bug, also spotted by Joakim, which Erik
introduced when he copied things from the i386 ldso code.
With this patch applied, things now seem to be working perfectly!
Eric Andersen [Tue, 11 Nov 2003 20:52:14 +0000 (20:52 -0000)]
Stefan Allius writes:
Another little patch fix the configuration for the SH3 targets. The SH3 has
no FPU, but our ldso runs fine on a SH3 target. (I think the
ldso should also run on a SH2 target, so you might want to enable the ldso
for SH2 targets too. But I can't test it, since I have no such a system) :
Eric Andersen [Tue, 11 Nov 2003 20:49:46 +0000 (20:49 -0000)]
Stefan Allius writes:
Hello Erik,
to compile the new uClibc release for a SH3 we need some little
modifications:
First I fix the crt[in].S files, so we can use them for big endian and
little endian targets.
Eric Andersen [Tue, 11 Nov 2003 08:59:53 +0000 (08:59 -0000)]
Another cleanup patch from Joakim Tjernlund:
Hi again
Back at work. Here is a patch that fixes the 2 errors I found yesterday.
I have excluded the "data_words[index]" part for now.
Eric Andersen [Mon, 10 Nov 2003 18:42:30 +0000 (18:42 -0000)]
Strip off quotes from TARGET_ARCH
Eric Andersen [Sat, 8 Nov 2003 21:21:44 +0000 (21:21 -0000)]
Darn. Fix compilation for soft-float, which I inadvertantly
broke a couple of days ago. :-(
Eric Andersen [Sat, 8 Nov 2003 20:41:24 +0000 (20:41 -0000)]
Sigh. I can't type this morning.
Eric Andersen [Sat, 8 Nov 2003 20:33:49 +0000 (20:33 -0000)]
Joakim Tjernlund writes:
Oops, found another ppc 8xx bug.
8xx CPUs may need this as well to work:
Eric Andersen [Sat, 8 Nov 2003 08:58:07 +0000 (08:58 -0000)]
hide the wrapper in with the debian stuff
Eric Andersen [Sat, 8 Nov 2003 08:48:34 +0000 (08:48 -0000)]
Update docs in preparation for release
Eric Andersen [Sat, 8 Nov 2003 08:09:02 +0000 (08:09 -0000)]
kill mention of the wrapper
Eric Andersen [Sat, 8 Nov 2003 08:06:38 +0000 (08:06 -0000)]
For now, disable the iconv utility
Eric Andersen [Sat, 8 Nov 2003 07:42:34 +0000 (07:42 -0000)]
Joakim Tjernlund writes:
> Very interesting. Do you have any suggestions for how
> we could fix our powerpc shared library loader
Removing those instr. comes with a very big performance
penalty. To flush the dcache you will have read up to 8KB
dummy data and to invalidate the icache you will have to
execute up to 16KB nops. I don't know of any other way from
user space.
hmm, actually I think it will work reliable to perform a
store to the same page(s) as the dcbst/icbi will act on. That
way you will make the DTLB Error happen(if any) prior to the
dcbst/icbi. The worst thing that can happen then is a regular
DTLB Miss and that works for dcbst/icbi.
You will have to lookout for if dcbst/icbi crosses a page
boundary. Then you will have to perform a store to both
pages.
Jocke
# And again later writes:
Hi again
I think I know what the problem is. The
PPC_DCBST;PPC_SYNC;PPC_ICBI;PPC_ISYNC sequence is executed
even if no modification has been done i some cases:
_dl_linux_resolver(), the last else has no store for insns[0].
these is a insns[1] = OPCODE_B(delta - 4) that
does not have a PPC_DCBST.
_dl_do_lazy_reloc(), for R_PPC_NONE there is no store.
for R_PPC_JMP_SLOT there is a
insns[1] = OPCODE_B(delta)that does not
have a PPC_DCBST.
_dl_do_reloc(), for R_PPC_COPY there is no store.
for R_PPC_JMP_SLOT there is a
reloc_addr[1] = OPCODE_B(delta) that does not
have a PPC_DCBST.
_dl_init_got(), I THINK that the
PPC_DCBST(plt);
PPC_DCBST(plt+4);
PPC_DCBST(plt+8);
PPC_SYNC;
PPC_ICBI(plt);
PPC_ICBI(plt+4);
PPC_ICBI(plt+8);
PPC_ISYNC;
is off a bit. The address range does not match the sum
of the plt[] and tramp[] address range.
Jocke
# And then later added the comment:
I think that the tramp[] part should be included in the
PPC_DCBST/PPC_ICBI sequence. Then you have to add entries for
plt+12 and plt+16. If the tramp[] part should be excluded,
then all is well.
Jocke
Eric Andersen [Sat, 8 Nov 2003 06:33:36 +0000 (06:33 -0000)]
Fix up several errors related to filename length and errno that
showed up while running the latest LTP testsuite.
-Erik
Eric Andersen [Sat, 8 Nov 2003 00:33:02 +0000 (00:33 -0000)]
Add some basic cvs usage info
Eric Andersen [Fri, 7 Nov 2003 06:22:12 +0000 (06:22 -0000)]
Sigh. I forgot to define INSTALL which, understandable,
broke the install target
Manuel Novoa III [Fri, 7 Nov 2003 06:08:27 +0000 (06:08 -0000)]
Add clock_gettime() submitted by Justus Pendleton <uc@ryoohki.net>.
Eric Andersen [Fri, 7 Nov 2003 05:44:10 +0000 (05:44 -0000)]
remove some junk I added while debugging
Eric Andersen [Fri, 7 Nov 2003 04:13:30 +0000 (04:13 -0000)]
It is remotely possible the utils might even compile this time
around...
Eric Andersen [Thu, 6 Nov 2003 22:38:49 +0000 (22:38 -0000)]
Begin converting the client utils
Eric Andersen [Thu, 6 Nov 2003 22:09:38 +0000 (22:09 -0000)]
Revert change 1.26, which breaks everything. :-(
Manuel Novoa III [Thu, 6 Nov 2003 22:01:03 +0000 (22:01 -0000)]
Sigh... I wasn't checking if the gid field in a group line actually
contained a digit. Also adjust a comment.
Eric Andersen [Thu, 6 Nov 2003 21:23:34 +0000 (21:23 -0000)]
s,(RUNTIME_PREFIX)/,(RUNTIME_PREFIX),g
Eric Andersen [Thu, 6 Nov 2003 21:22:21 +0000 (21:22 -0000)]
s,(DEVEL_PREFIX)/,(DEVEL_PREFIX),g
Manuel Novoa III [Thu, 6 Nov 2003 21:14:22 +0000 (21:14 -0000)]
Add a utility macro.
Manuel Novoa III [Thu, 6 Nov 2003 21:13:03 +0000 (21:13 -0000)]
Oops... don't need recursive mutexes.
Manuel Novoa III [Thu, 6 Nov 2003 20:56:04 +0000 (20:56 -0000)]
Rewrite the pwd.h, grp.h, and shadow.h functions (except lckpwdf/ulckpwdf).
Eric Andersen [Thu, 6 Nov 2003 20:29:35 +0000 (20:29 -0000)]
Add in aliases provided by the non arch specific implementations
Eric Andersen [Thu, 6 Nov 2003 19:44:47 +0000 (19:44 -0000)]
George Thanos writes:
Dear Erik,
We downloded uClibc lattest version from the CVS. Still there are some
minor problems with extra/Configs/Config.e1
You have actually set ARCH_HAS_C_SYMBOL_PREFIX to NO which is not
correct for our architecture. Please apply the patch that will fix the
problem.
Best Regards,
- George
P.S. Patch also removes some irritating comments we have added in the past.
Eric Andersen [Thu, 6 Nov 2003 13:03:42 +0000 (13:03 -0000)]
A few debugging cleanups
Eric Andersen [Thu, 6 Nov 2003 09:39:45 +0000 (09:39 -0000)]
The curse of cut-n-paste
Eric Andersen [Thu, 6 Nov 2003 09:14:26 +0000 (09:14 -0000)]
Add some initial x86 string optimizations. These make no attempt to use nifty
things like mmx/3dnow/etc. These are not inline, and will therefore not be as
fast as modifying the headers to use inlines (and cannot therefore do tricky
things when dealing with const memory). But they should (I hope!) be faster
than their generic equivalents....
More importantly, these should provide a good example for others to follow when
adding arch specific optimizations.
-Erik
Manuel Novoa III [Wed, 5 Nov 2003 19:12:35 +0000 (19:12 -0000)]
Remove erroneous trailing semicolon.
Eric Andersen [Wed, 5 Nov 2003 10:47:01 +0000 (10:47 -0000)]
Fix a misnamed array
Eric Andersen [Wed, 5 Nov 2003 10:46:42 +0000 (10:46 -0000)]
tiny cleanup
Eric Andersen [Wed, 5 Nov 2003 10:12:08 +0000 (10:12 -0000)]
Rework the powerpc lib loader to better match the other architectures
Eric Andersen [Wed, 5 Nov 2003 07:08:20 +0000 (07:08 -0000)]
Rip the guts out of the dynamically generated sysconf.c, and live with a simple
static version. This will need further work later on, but should do the job for
the time being,
Eric Andersen [Wed, 5 Nov 2003 06:44:22 +0000 (06:44 -0000)]
last but certinaly not least, kill off initfini.c
Eric Andersen [Wed, 5 Nov 2003 06:42:49 +0000 (06:42 -0000)]
Add quick hacks to create fake crti.o and crtn.o files. These architectures
need to be fixed properly. I tried, but I was unable to build a cross
toolchain for each of these (using stock binutils and gcc) so it is someone
else's problem to fix them now.
Eric Andersen [Wed, 5 Nov 2003 06:31:40 +0000 (06:31 -0000)]
Kill initfini.awk
Eric Andersen [Wed, 5 Nov 2003 05:57:19 +0000 (05:57 -0000)]
Continue the conversion to using per-arch crti.S and crtn.S
Eric Andersen [Wed, 5 Nov 2003 05:43:31 +0000 (05:43 -0000)]
Continue the conversion to using per-arch crti.S and crtn.S
Eric Andersen [Wed, 5 Nov 2003 05:30:07 +0000 (05:30 -0000)]
Continue the conversion to using per-arch crti.S and crtn.S
Eric Andersen [Wed, 5 Nov 2003 05:20:36 +0000 (05:20 -0000)]
v850 appers to be little endian only
Eric Andersen [Wed, 5 Nov 2003 05:13:53 +0000 (05:13 -0000)]
Continue the conversion to using per-arch crti.S and crtn.S
Eric Andersen [Wed, 5 Nov 2003 05:08:30 +0000 (05:08 -0000)]
duh. the alpha has an fpu
Eric Andersen [Wed, 5 Nov 2003 05:04:23 +0000 (05:04 -0000)]
Yet more messing with selecting sane default configs
Eric Andersen [Wed, 5 Nov 2003 04:27:32 +0000 (04:27 -0000)]
Yet more config system updates
Eric Andersen [Wed, 5 Nov 2003 03:32:14 +0000 (03:32 -0000)]
Continue the conversion to using per-arch crti.S and crtn.S
Eric Andersen [Wed, 5 Nov 2003 02:45:34 +0000 (02:45 -0000)]
Fix a buglet that shows up on powerpc
Eric Andersen [Wed, 5 Nov 2003 02:41:22 +0000 (02:41 -0000)]
m68k is always big endian afaik
Eric Andersen [Wed, 5 Nov 2003 02:26:15 +0000 (02:26 -0000)]
powerpc is always big endian