OSDN Git Service
Mike Frysinger [Thu, 1 Feb 2007 07:16:04 +0000 (07:16 -0000)]
document future need for larger time values
Bernhard Reutner-Fischer [Tue, 30 Jan 2007 17:26:38 +0000 (17:26 -0000)]
- should look if LFS is enabled as suggested by pkj in #1131. This generates identical cc1 input for LFS enabled (compared to before r17652) but makes sure that we pickup the non-LFS if LFS is turned off (like r17652 did in this case).
Bernhard Reutner-Fischer [Mon, 29 Jan 2007 22:40:38 +0000 (22:40 -0000)]
- fix compilation of GNU glob with !LFS
Sounds like a typo, really
Mike Frysinger [Mon, 29 Jan 2007 17:52:29 +0000 (17:52 -0000)]
Richard Sandiford writes:
However, retesting on m68k showed up a problem that had appeared in
uClibc since the last time I tried. Specifically, revision 15785 did:
-#define HEAP_GRANULARITY (sizeof (HEAP_GRANULARITY_TYPE))
+#define HEAP_GRANULARITY (__alignof__ (HEAP_GRANULARITY_TYPE))
-#define MALLOC_ALIGNMENT (sizeof (double))
+#define MALLOC_ALIGNMENT (__alignof__ (double))
The problem is that
(a) MALLOC_HEADER_SIZE == MALLOC_ALIGNMENT
(b) the header contains a size value of type size_t
(c) sizeof (size_t) is 4 on m68k, but...
(d) __alignof__ (double) is only 2 (the largest alignment used on m68k)
So we only allocate 2 bytes for the 4-byte header, and the least
significant 2 bytes of the size are in the user's area rather than
the header. The patch below fixes that problem by redefining
MALLOC_HEADER_SIZE to:
MAX (MALLOC_ALIGNMENT, sizeof (size_t))
(but without the help of the MAX macro ;)). However, we really would
like to have word alignment on Coldfire. It makes a big performance
difference, and because we have to allocate a 4-byte header anyway,
what wastage there is will be confined to the end of the allocated block.
Any wastage will also be limited to 2 bytes per allocation compared to
the current alignment.
I've therefore used the __aligned__ type attribute to create a double
type that has at least sizeof (size_t) bytes of alignment. I've
introduced a new __attribute_aligned__ macro for this. It might seem
silly protecting against old or non-GNU compilers here, but the extra
alignment is only an optimisation, and having the macro is more in the
spirit of the other attribute code.
Bernhard Reutner-Fischer [Mon, 29 Jan 2007 14:56:56 +0000 (14:56 -0000)]
- s/if USE___THREAD/if defined USE___THREAD && USE___THREAD/g
Bernhard Reutner-Fischer [Mon, 29 Jan 2007 14:33:27 +0000 (14:33 -0000)]
- see if defined foo before trying to look at the value of foo (that should be 0 in this case. Avoids some warnings).
Bernhard Reutner-Fischer [Mon, 29 Jan 2007 14:31:16 +0000 (14:31 -0000)]
- sync with glibc (and provide a check for icc).
Only affects gcc <2.7 or non-gcc compilers that bailed earlier due to missing int64_t
Mike Frysinger [Mon, 29 Jan 2007 04:32:20 +0000 (04:32 -0000)]
pull in unistd.h for syscall() prototype
Mike Frysinger [Mon, 29 Jan 2007 04:28:46 +0000 (04:28 -0000)]
use ifdef rather than if for stack direction
Mike Frysinger [Mon, 29 Jan 2007 04:07:37 +0000 (04:07 -0000)]
fix from Atsushi Nemoto for displaying of 64bit types
Mike Frysinger [Mon, 29 Jan 2007 04:04:19 +0000 (04:04 -0000)]
fix from Roman Kononov for reading in of 64bit types
Mike Frysinger [Mon, 29 Jan 2007 04:03:31 +0000 (04:03 -0000)]
make sure reading 64bit types works
Mike Frysinger [Mon, 29 Jan 2007 03:59:09 +0000 (03:59 -0000)]
make sure 64bit output is correct
Mike Frysinger [Mon, 29 Jan 2007 03:22:36 +0000 (03:22 -0000)]
since these functions get exported, namespace the arguments
Mike Frysinger [Mon, 29 Jan 2007 03:21:52 +0000 (03:21 -0000)]
mark local function static
Mike Frysinger [Mon, 29 Jan 2007 03:18:59 +0000 (03:18 -0000)]
fixup shadowed warnings
Mike Frysinger [Mon, 29 Jan 2007 03:06:31 +0000 (03:06 -0000)]
mark some funcs as noreturn
Mike Frysinger [Mon, 29 Jan 2007 02:56:45 +0000 (02:56 -0000)]
fixup prototype warnings
Mike Frysinger [Mon, 29 Jan 2007 02:34:01 +0000 (02:34 -0000)]
check to see if __USE_FILE_OFFSET64 is defined rather than if it evaluates to true
Mike Frysinger [Mon, 29 Jan 2007 02:31:59 +0000 (02:31 -0000)]
make error output a little more helpful
Mike Frysinger [Mon, 29 Jan 2007 02:31:43 +0000 (02:31 -0000)]
fixup warnings
Mike Frysinger [Mon, 29 Jan 2007 02:31:32 +0000 (02:31 -0000)]
fix test to work even if CPPFLAGS contains -DNDEBUG
Mike Frysinger [Mon, 29 Jan 2007 02:04:51 +0000 (02:04 -0000)]
sync some fixes from glibc
Mike Frysinger [Mon, 29 Jan 2007 01:43:26 +0000 (01:43 -0000)]
missed an underscore in previous commit
Mike Frysinger [Sun, 28 Jan 2007 23:05:17 +0000 (23:05 -0000)]
Bernhard Fischer writes: add undef/nonnull warnings to EXTRA_WARNINGS
Mike Frysinger [Sun, 28 Jan 2007 23:04:06 +0000 (23:04 -0000)]
Bernhard Fischer writes: note how uClibc chooses to handle __resolved==NULL
Mike Frysinger [Sun, 28 Jan 2007 23:02:24 +0000 (23:02 -0000)]
sync with glibc as pointed out by Bernhard Fischer
Bernhard Reutner-Fischer [Sun, 28 Jan 2007 13:16:58 +0000 (13:16 -0000)]
- commentary typo fix
Mike Frysinger [Sun, 28 Jan 2007 10:32:59 +0000 (10:32 -0000)]
fix from Bernd Schmidt to make sure _dl_debug_state isnt optimized away and does not generate relocs
Mike Frysinger [Sun, 28 Jan 2007 10:29:23 +0000 (10:29 -0000)]
as pointed out by Jocke, use "2" for actual error messages and _dl_debug_file for debug messages
Mike Frysinger [Sun, 28 Jan 2007 10:23:07 +0000 (10:23 -0000)]
initial waitid() implementation
Mike Frysinger [Sun, 28 Jan 2007 08:20:00 +0000 (08:20 -0000)]
need string.h for memset()
Mike Frysinger [Sun, 28 Jan 2007 08:14:03 +0000 (08:14 -0000)]
note 0.9.28.1 release
Mike Frysinger [Sun, 28 Jan 2007 07:59:59 +0000 (07:59 -0000)]
its a new year
Mike Frysinger [Sun, 28 Jan 2007 07:26:32 +0000 (07:26 -0000)]
make sure we clear out the buffer so that random garbage on the stack doesnt screw us up
Mike Frysinger [Sun, 28 Jan 2007 06:58:44 +0000 (06:58 -0000)]
Paul Brook writes:
The patch below tweaks the ARM nommu startup code so that doubleword stack
alignment is preserved. This is required on EABI targets.
Mike Frysinger [Sun, 28 Jan 2007 06:55:56 +0000 (06:55 -0000)]
fix typo as pointed out by Tony Wu and cleanup source
Mike Frysinger [Sun, 28 Jan 2007 06:29:33 +0000 (06:29 -0000)]
dont rely on random stack state to trigger this issue; force the default stat structs to alternative bit masks
Mike Frysinger [Sun, 28 Jan 2007 06:18:24 +0000 (06:18 -0000)]
new test taken from stat issue with new tar
Mike Frysinger [Sun, 28 Jan 2007 05:37:54 +0000 (05:37 -0000)]
use .bz2 rather than .gz
Mike Frysinger [Sat, 27 Jan 2007 08:19:09 +0000 (08:19 -0000)]
fix from blackfin repo: Jie Zhang writes: update __kernel_ipc_pid_t, __kernel_uid_t and __kernel_gid_t types to match actual kernel types
Mike Frysinger [Sat, 27 Jan 2007 08:17:38 +0000 (08:17 -0000)]
fix from blackfin repo: Jie Zhang writes: Passing NULL as the second argument to utimes () if the second argument to utime () is NULL as the kernel will take care of getting/setting current time
Bernhard Reutner-Fischer [Fri, 26 Jan 2007 08:55:28 +0000 (08:55 -0000)]
- fix format of comment
Mike Frysinger [Fri, 26 Jan 2007 00:31:29 +0000 (00:31 -0000)]
dont actually have to worry about local changes as svn export takes care of that
Joakim Tjernlund [Fri, 26 Jan 2007 00:25:10 +0000 (00:25 -0000)]
Fix libdl bug reported by Cedric Hombourger in
http://uclibc.org/lists/uclibc/2007-January/017165.html
Mike Frysinger [Wed, 24 Jan 2007 10:09:41 +0000 (10:09 -0000)]
fix from Bryan Wu: return NULL upon error, not the NULL string
Peter Kjellerstedt [Mon, 22 Jan 2007 09:20:55 +0000 (09:20 -0000)]
Recognize _SC_MONOTONIC_CLOCK in sysconf() even if __NR_clock_getres
is not defined.
Bernhard Reutner-Fischer [Sun, 21 Jan 2007 10:46:53 +0000 (10:46 -0000)]
- repair misplaced #endif that got introduced in r17410. Fixes compilation.
"Steven J. Hill" [Sat, 20 Jan 2007 22:03:02 +0000 (22:03 -0000)]
Disable declarations for NPTL.
"Steven J. Hill" [Sat, 20 Jan 2007 20:40:53 +0000 (20:40 -0000)]
The case for _SC_MONOTONIC_CLOCK should only exist if 'clock_getres' does.
Bernhard Reutner-Fischer [Sat, 20 Jan 2007 18:32:10 +0000 (18:32 -0000)]
- Trim superfluous trailing whitespace. No obj-code changes.
Joakim Tjernlund [Thu, 11 Jan 2007 22:52:23 +0000 (22:52 -0000)]
I fixed that item long ago.
Joakim Tjernlund [Thu, 11 Jan 2007 22:39:13 +0000 (22:39 -0000)]
Peter Mazinger pointed out that my last commit was faulty.
This should fix it.
Mike Frysinger [Wed, 10 Jan 2007 22:18:39 +0000 (22:18 -0000)]
merge from blackfin.uclinux.org: Adjust
crt1.S so that __uClibc_main is called properly
Joakim Tjernlund [Wed, 10 Jan 2007 22:03:34 +0000 (22:03 -0000)]
Fix SEGV for static builds in exit() path.
Leave the now obsolete libc/misc/pthread dir in for now.
Mike Frysinger [Wed, 10 Jan 2007 17:46:19 +0000 (17:46 -0000)]
need to keep __check_rhosts_file exported for proper rhost control
Mike Frysinger [Wed, 10 Jan 2007 17:02:16 +0000 (17:02 -0000)]
sync with upstream blackfin.uclinux.org
Joakim Tjernlund [Tue, 9 Jan 2007 22:38:55 +0000 (22:38 -0000)]
Aurelien Jacobs writes:
After our last update a new compilation breakage appeared when compiling
gcc:
/home/aurel/geex/geexbox/build.i386/toolchain/i386-pc-linux-uclibc/sysroot/usr/include/bits/uClibc_stdio.h:346: error: expected initializer before 'attribute_hidden'
Some investigations revealed that the following changeset is responsible
for this breakage:
http://uclibc.org/cgi-bin/viewcvs.cgi/trunk/uClibc/libc/sysdeps/linux/common/bits/uClibc_stdio.h?rev=16801&r1=16793&r2=16801&diff_format=h
Reverting just one hunk of this changeset fixed the problem us.
I'm not sure this is the right fix, but please see attached patch.
Look good to me.
Joakim Tjernlund [Tue, 9 Jan 2007 22:30:16 +0000 (22:30 -0000)]
Joseph S. Myers writes:
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.
Joakim Tjernlund [Fri, 5 Jan 2007 10:20:37 +0000 (10:20 -0000)]
Support SecurePLTs for PowerPC. You need a toolchain that supports
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.
Mike Frysinger [Fri, 5 Jan 2007 09:09:22 +0000 (09:09 -0000)]
Atle Nissestad writes: The attached patch fixes compilation of the current svn on the nios2 platform, and updates the crt1/n/i.S files to get CTOR/DTOR-support to work.
Bernhard Reutner-Fischer [Wed, 3 Jan 2007 22:53:41 +0000 (22:53 -0000)]
- s/Attemt/Attempt/
Bernhard Reutner-Fischer [Sat, 23 Dec 2006 14:12:40 +0000 (14:12 -0000)]
- r16732 forgot to checkin the sync of the __UCLIBC_SUSV3_LEGACY_MACROS__ from string.h
Bernhard Reutner-Fischer [Fri, 22 Dec 2006 14:03:06 +0000 (14:03 -0000)]
- provide a hidden_def for fputc_unlocked that is aliased to __fputc_unlocked.
Fixes undefined references to __fputc_unlocked when calling fputc().
Mike Frysinger [Wed, 20 Dec 2006 16:17:33 +0000 (16:17 -0000)]
make sure UCLIBC_LDSO can be found via path
Mike Frysinger [Wed, 20 Dec 2006 04:30:25 +0000 (04:30 -0000)]
Paul Brook writes:
When building an arm-uclinux toolchain withthreading disabled I get:
libc/stdio/getchar.c:26: error: 'getchar' aliased to undefined
symbol 'getchar_unlocked'
It looks like it's missing libc_hidden_def(getchar_unlocked). Patch below
fixes this.
Mike Frysinger [Sun, 17 Dec 2006 20:56:01 +0000 (20:56 -0000)]
rename local "brk" var so it doesnt namespace collide with the brk() function
Mike Frysinger [Sun, 17 Dec 2006 20:49:10 +0000 (20:49 -0000)]
for now, dont allow mmu users to select file format
Mike Frysinger [Sat, 16 Dec 2006 19:18:08 +0000 (19:18 -0000)]
actually scrub it, dont just comment it out
Mike Frysinger [Sat, 16 Dec 2006 19:13:21 +0000 (19:13 -0000)]
start pulling in top level Rules.mak so we get access to import CFLAGS/LDFLAGS/CPPFLAGS
Mike Frysinger [Sat, 16 Dec 2006 19:12:45 +0000 (19:12 -0000)]
scrub prototype so we dont conflict with the pthread header
Mike Frysinger [Sat, 16 Dec 2006 19:12:19 +0000 (19:12 -0000)]
clean up
Mike Frysinger [Sat, 16 Dec 2006 19:08:54 +0000 (19:08 -0000)]
small cleanups
Eric Andersen [Fri, 15 Dec 2006 00:12:23 +0000 (00:12 -0000)]
Patch from Bernhard Fischer:
fix compilation if PUTC_MACRO and/or GETC_MACRO is turned off
Mike Frysinger [Thu, 14 Dec 2006 00:37:57 +0000 (00:37 -0000)]
fix building when __NR_sigalstack does not exist
Mike Frysinger [Thu, 14 Dec 2006 00:33:55 +0000 (00:33 -0000)]
if __NR_lseek is not defined, then we fall back to calling the 64bit lseek
Mike Frysinger [Wed, 13 Dec 2006 23:01:56 +0000 (23:01 -0000)]
force LFS support since blackfin no longer supports non-lfs
Mike Frysinger [Wed, 13 Dec 2006 04:26:28 +0000 (04:26 -0000)]
be more specific as to what arguments to __uClibc_main() people can skim on during initial port
Eric Andersen [Tue, 12 Dec 2006 21:43:59 +0000 (21:43 -0000)]
Fix/disable locking when pthreads is disabled
Bernhard Reutner-Fischer [Tue, 12 Dec 2006 12:15:04 +0000 (12:15 -0000)]
- fix compilation of __LDSO_CACHE_SUPPORT__
s/dprintf(2/fprintf(stderr/g
Eric Andersen [Tue, 12 Dec 2006 06:02:05 +0000 (06:02 -0000)]
sort out a few issues that show up on mips
Mike Frysinger [Tue, 12 Dec 2006 03:56:42 +0000 (03:56 -0000)]
since we dont symlink the headers, theres nothing to filter
Mike Frysinger [Tue, 12 Dec 2006 03:30:02 +0000 (03:30 -0000)]
we just want the kernel headers, not the whole kernel source ... so people may need to update their paths slightly
Eric Andersen [Mon, 11 Dec 2006 05:28:24 +0000 (05:28 -0000)]
mostly revert the locking changes for 'malloc', as the implementation
does not easily lend itself to becoming complete pthread cancelation
safe without first investing in some deep and serious thought...
The other malloc implementations are pthread cancelation safe, and
this one is mostly used for uClinux, where the lack is at least less
likely to be a common problem.
Mike Frysinger [Mon, 11 Dec 2006 04:24:55 +0000 (04:24 -0000)]
fix building when pthread support is disabled
Mike Frysinger [Mon, 11 Dec 2006 04:19:50 +0000 (04:19 -0000)]
disable LDSO when FLAT format is selected
Mike Frysinger [Mon, 11 Dec 2006 04:09:06 +0000 (04:09 -0000)]
dont try and compile if the MMU is disabled
Mike Frysinger [Mon, 11 Dec 2006 04:06:55 +0000 (04:06 -0000)]
need endian.h for __LONG_LONG_PAIR() macro
Mike Frysinger [Mon, 11 Dec 2006 04:06:36 +0000 (04:06 -0000)]
cleanup style
Mike Frysinger [Mon, 11 Dec 2006 00:52:12 +0000 (00:52 -0000)]
kill off the need for fix_includes.sh by utilizing KERNEL_SOURCE directly
Mike Frysinger [Mon, 11 Dec 2006 00:32:40 +0000 (00:32 -0000)]
set some default vars to prevent env pollution
Mike Frysinger [Mon, 11 Dec 2006 00:27:48 +0000 (00:27 -0000)]
tie PICFLAG:=-mfdpic to format rather than architecture
Mike Frysinger [Mon, 11 Dec 2006 00:25:23 +0000 (00:25 -0000)]
create new menu so people can select what format they wish to build uClibc
Eric Andersen [Sat, 9 Dec 2006 08:50:41 +0000 (08:50 -0000)]
these weaks are also needed in libc.so for the time being
Eric Andersen [Sat, 9 Dec 2006 08:35:37 +0000 (08:35 -0000)]
oops, use __pthread_mutex_unlock() not pthread_mutex_unlock()
Eric Andersen [Sat, 9 Dec 2006 04:57:11 +0000 (04:57 -0000)]
Add missing sys/types.h header
Eric Andersen [Sat, 9 Dec 2006 01:32:13 +0000 (01:32 -0000)]
silence a lot of warnings and fix a few genuine bugs while I'm at it.
Mike Frysinger [Fri, 8 Dec 2006 22:53:40 +0000 (22:53 -0000)]
Richard Sandiford writes: add support for init/fini arrays in shared flat libraries
Eric Andersen [Fri, 8 Dec 2006 21:52:02 +0000 (21:52 -0000)]
seems this is the newfangled way to tell folks this stuff
is really really and we mean it this time, for uClibc only
Mike Frysinger [Fri, 8 Dec 2006 21:24:15 +0000 (21:24 -0000)]
only define msync cancellation point if the syscall exists