Commit graph

69 commits

Author SHA1 Message Date
ensc
68a7e0f0a9 This patch fixes/enhances the testsuite:
I removed the checks which called endmntent() multiple times resp. with a
    NULL pointer. Behavior in first case is undefined and latter causes a
    segfault (I could not find documentation that this is allowed). Hence,
    it does not make sense to test this.
test 'malloc(0)' only, when WANT_MALLOC_ZERO is set
the '%Zu' printf format specifier is bogus (from libc5 ages). I replaced it
    with the '%zu' one.
Please note, that this test still fails because it uses glibc specific
    features.
removed tests which set a non-C locale. Broken usage of 'strptime()' result
    was fixed too. This test should succeed now.
this test was added while working on the '%F/%G' patch and verifies the
    isinf() + isnan() functions.
Please see
http://cvs.fedora.redhat.com/viewcvs/rpms/dietlibc/devel/runtests-X.sh?root
    =extras&view=markup
for tests which are known to be broken.
2008-06-21 13:50:40 +00:00
ensc
1b0354a677 The tst-fseek testsuite is bogus on 64 bit platforms because the
*stat64 functions/structures are not available there. This patch defines
    '_FILE_OFFSET_BITS 64' and uses the plain *stat instead of.
2008-06-21 13:49:56 +00:00
ensc
bce265ae63 This patch changes the used format for %x and %X specifiers in strptime(3)
to match these specified by SUSv2. It adds support for '%F' in
    strftime(3) too.
2008-06-21 13:49:04 +00:00
ensc
f0a88b1bb1 This patch adds support for uppercase 'F' and 'G' printf format specifiers.
It fixes handling of -INF values in __dtostr() too; previously, there
    was
| unsigned int i; | if ((i=isinf(d))) return
    copystring(buf,maxlen,i>0?"inf":"-inf"); ~~~ which evaluated to true
    everytime. The copystring() function worked for 3-letter words only but
    not for '-inf'.
The last argument of __dtostr() was changed from a boolean flag to a
    bitmask. Bit 0 encodes 'g' or 'f', and bit 1 lower-/uppercase. There
    should be probably added some macros for them; for now, these values
    are used directly.
Please note that this might affect other applications (liblowfat?) too
    which are using __dtostr().
2008-06-21 13:48:12 +00:00
ensc
5ce1baa9fa This patch adds support for dynamic PAGE_SIZE values to 'dietlibc'. It is a
little bit invasive in several aspects:
it modifies the startup code. We need to know the position of the elf-info
    auxilary table which is located after 'environ'. We can not use
    'environ' directly because it might be modified by the application.
Hence, an additional __elfinfo variable is placed into .bss and filled in
    the startup code. Depending on platform, this adds 1-3 instructions and
    an additional pointer to .bss.
I tested only the i386 and x86_64 modifications; it would be nice when
    people with corresponding hardware would test the other ones. I am
    especially uncertain regarding the parisc changes.
The elf-info stuff (which might be interesting e.g. for dynamic linking or
    sysconf(_SC_CLK_TCK)) can be enabled without the dynamic pagesize too.
it removes the 'PAGE_SIZE' macro from <sys/shm.h>; this will break
    compilation of existing userspace application which are using this
    deprecated macro
I added a new internal 'dietpagesize.h' header which defines
| __DIET_PAGE_SIZE | __DIET_PAGE_SHIFT
macros. These return either builtin constants (when WANT_DYN_PAGESIZE is
    not selected), or values derived from __libc_getpagesize().
Every usage of PAGE_SIZE in dietlibc code was replaced by these macros.
due to the previous point, the internal 'struct __dirstream' was modified.
    I replaced
| getdents64(d->fd,(struct dirent64*)d->buf, sizeof (d->buf)-1);
with
| getdents64(d->fd,(struct dirent64*)d->buf, __DIRSTREAM_BUF_SIZE-1);
literally but I am not sure where the '-1' is coming from. There is one
    hunk, where this '-1' is missing so I think the '-1' should be removed
    from all calls to getdents64().
changes affect the *alloc() functions too; on x86_64 around 64 bytes where
    added to .text of alloc.o
the new testprogramm requires a 'getconf' binary which returns the correct
    values for PAGE_SIZE and CLK_TCK
2008-06-21 13:47:27 +00:00
ensc
6cd264d613 removed as now in upstream 2008-06-21 13:46:39 +00:00
ensc
bc72590883 updated to CVS snapshot 20080409 2008-06-21 13:45:23 +00:00
ensc
ae725ff328 fixed CFLAGS for check 2008-06-21 13:44:09 +00:00
ensc
754e437ece fixed optimized memcpy(3) 2008-06-21 13:43:05 +00:00
ensc
d5c0a2be8c - updated to CVS snapshot 20080221; removed most of the last patches as
they are now in upstream
- moved files into platform neutral /usr/lib dir (not using %%_lib or
    %%_libdir macro)
- added -devel subpackage due to multiarch issues; main package contains
    only the 'diet' binary plus some tools while -devel holds all the
    header and object files.
2008-06-21 13:41:48 +00:00
ensc
24c467e92c - updated to CVS snapshot 20080221; removed most of the last patches as
they are now in upstream
2008-06-21 13:40:43 +00:00
ensc
3dab01d127 ok; was hard work, but it should build now... 2008-06-21 13:39:09 +00:00
ensc
eb805d8f68 further fixes 2008-06-21 13:37:57 +00:00
ensc
5646d0fd66 fixed big-endian problems in strcpy + strcmp 2008-06-21 13:36:26 +00:00
ensc
ae21b491f0 added ulong patch 2008-06-21 13:34:29 +00:00
ensc
9776bedc72 avoid compiler warnings 2008-06-21 13:33:05 +00:00
ensc
6ec9567eba further strlen fixes... 2008-06-21 13:31:53 +00:00
ensc
c9e2805de8 fixed strlen patch 2008-06-21 13:30:39 +00:00
ensc
1bf67bf820 added strlen patch; build testsuite with -fno-builtin 2008-06-21 13:29:30 +00:00
ensc
6b40cce111 BR gdb 2008-06-21 13:28:09 +00:00
ensc
8076590c55 further hacks... 2008-06-21 13:27:01 +00:00
ensc
62e8fcf646 further tests... 2008-06-21 13:25:47 +00:00
ensc
b0ae7bf11b added temporary code to trace down ppc problems 2008-06-21 13:24:17 +00:00
ensc
b1c14b3c8d use --with dynamic + --with ssp constructs 2008-06-21 13:23:09 +00:00
ensc
440d112a50 fixup status output; made it a bash script 2008-06-21 13:13:48 +00:00
ensc
7cc2662c39 - updated to CVS snapshot 20080212
- fixed printf regression for '%+04i' style formats
- added %%check and run a testsuite; it does not succeed now so it is for
    informational purposes only...
2008-06-21 13:12:17 +00:00
ensc
71b3ce9a98 updated to CVS snapshot 20080212 2008-06-21 13:11:05 +00:00
ensc
128547dd31 added 'cvs-sources' target 2008-06-21 13:09:50 +00:00
ensc
12753e6b7e initial checkin 2008-06-21 13:08:54 +00:00
Jesse Keating
9aa665e9dc Initialize branch F-8 for dietlibc 2007-10-20 05:24:15 +00:00
ensc
5106ea25cd fixed typo F-8-split F-8-start dietlibc-0_31-1_fc8 2007-09-01 13:22:12 +00:00
ensc
e182b8e14a made binaries non-executable to avoid "No build ID note" errors 2007-09-01 13:20:41 +00:00
ensc
899a2daa2e reenabled '-fno-stack-protector' for non-i386/x86_64 archs 2007-09-01 13:09:57 +00:00
ensc
1f3f73ff62 - updated to 0.31
- removed the no-stack-protector bits
- improved stack-smash code a little bit
- disabled dynamic lib for all arches
2007-09-01 12:35:38 +00:00
ensc
4173584a42 initial checkin 2007-09-01 12:34:41 +00:00
David Woodhouse
b3951c2923 bump release. 0.30-3.fc6 is already tagger for some reason F-7-split F-7-start dietlibc-0_30-4_fc7 2007-01-17 01:02:35 +00:00
David Woodhouse
8ca44eddcb It's 2007 dietlibc-0_30-3_fc7 2007-01-17 00:46:47 +00:00
David Woodhouse
e0571fb43f Apply GCC PR26374 workaround; enable build on PPC 2007-01-17 00:45:12 +00:00
ensc
c7baf3fd04 reverted last commit; PPC builds are still broken FC-6-split FC-6-start 2006-10-08 15:35:58 +00:00
ensc
56e8c1a3bd reenabled PPC 2006-10-08 15:13:09 +00:00
ensc
1798b6cf42 rebuilt dietlibc-0_30-2_fc6 2006-09-15 06:23:01 +00:00
Ville Skyttä
a8e998fa18 http://fedoraproject.org/wiki/Extras/Schedule/FC6MassRebuild 2006-08-27 20:21:12 +00:00
ensc
314daadcd4 - updated to 0.30 dietlibc-0_30-1_fc6
- removed cross-arch support
- disable (non-working) SSP support; enable old stackgap code instead of
2006-07-09 14:18:32 +00:00
ensc
3e59b46bce Exclude PPC arch due to strange compilation errors FC-5-split dietlibc-0_29-6_fc5 2006-02-20 17:41:36 +00:00
ensc
6a7ed38f0e rebuilt for FC5 dietlibc-0_29-5_fc5 2006-02-18 09:35:47 +00:00
ensc
02a8b986e0 added '-fno-stack-protector' to the CFLAGS dietlibc-0_29-4_fc5 2005-10-30 15:58:24 +00:00
ensc
5269040ab5 remove '-fstack-protector' from CLI because it uses __stack_chk_fail which dietlibc-0_29-3_fc5
is not provided by dietlibc
2005-10-30 14:15:03 +00:00
ensc
926e7f17ac rebuild it; checked in the wrong .sources files :( FC-4-split dietlibc-0_29-2_fc4 2005-05-26 05:19:25 +00:00
ensc
dcc722e220 fixed build with gcc4 dietlibc-0_29-1_fc4 2005-05-24 21:21:57 +00:00
ensc
ffd749e625 version 0.29 2005-05-24 12:09:24 +00:00