Permalink
Switch branches/tags
Nothing to show
Commits on Mar 30, 2013
  1. Apply Debian Patch: klibc-linux-libc-dev from klibc-2.0.1 to fix prob…

    codehelp committed Mar 30, 2013
    …lem with headers_install target.
Commits on Mar 27, 2013
  1. Update crt0.S to stop using temporary registers. Prevents illegal ins…

    codehelp committed Mar 27, 2013
    …truction on execution.
Commits on Mar 14, 2013
Commits on Jan 13, 2013
  1. delete obsolete files imported from armv5 and leave an empty asmacros…

    codehelp committed Jan 13, 2013
    ….h file as the rest of klibc expects to find it.
Commits on Jan 12, 2013
Commits on Jan 7, 2013
  1. add changes for debian/rules to use the new directory and populate th…

    codehelp committed Jan 7, 2013
    …e include with, so far, unchanged files from the arm include folder.
  2. Initial commit

    codehelp committed Jan 7, 2013
Commits on Oct 5, 2012
  1. [klibc] 2.0.2 released, next version is 2.0.3

    H. Peter Anvin
    H. Peter Anvin committed Oct 5, 2012
Commits on Oct 3, 2012
  1. [klibc] [PATCH] fix ARM longjmp with zero 'val'.

    Bill Pringlemeir authored and brainflux committed Oct 2, 2012
    We need to set the condition codes on the ARM.  The previous version was
    using a left over condition code from the caller.  Also, use conditional
    execution to eliminate branch and reduce size.
    
    Signed-off-by: Bill Pringlemeir <bpringle@sympatico.ca>
    Signed-off-by: maximilian attems <max@stro.at>
Commits on Oct 1, 2012
  1. [klibc] dash: resync with latest git

    brainflux committed Oct 1, 2012
    Signed-off-by: maximilian attems <max@stro.at>
  2. [klibc] [BUILTIN] Add support for ulimit -r

    eraserix authored and brainflux committed Jul 3, 2012
    I recently found myself in need to have dash support 'ulimit -r' to
    set maximum realtime priority. Attached is a patch that adds the
    parameter to the builtin ulimit command and updates the manpage.
    
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>
  3. [klibc] Avoid overflow for very long variable name

    meyering authored and brainflux committed Jul 3, 2012
    Otherwise, this:
      $ perl -le 'print "v"x(2**31+1) ."=1"' | dash
    provokes integer overflow:
    
      (gdb) bt
      #0  doformat (dest=0x61d580, f=0x416a08 "%s: %d: %s: ", ap=0x7fffffffd308)
          at output.c:310
      #1  0x00000000004128c1 in outfmt (file=0x61d580, fmt=0x416a08 "%s: %d: %s: ")
          at output.c:257
      #2  0x000000000040382e in exvwarning2 (msg=0x417339 "Out of space",
          ap=0x7fffffffd468) at error.c:125
      #3  0x000000000040387e in exverror (cond=1, msg=0x417339 "Out of space",
          ap=0x7fffffffd468) at error.c:156
      #4  0x0000000000403938 in sh_error (msg=0x417339 "Out of space") at error.c:172
      #5  0x000000000040c970 in ckmalloc (nbytes=18446744071562067984)
          at memalloc.c:57
      #6  0x000000000040ca78 in stalloc (nbytes=18446744071562067972)
          at memalloc.c:132
      #7  0x000000000040ece9 in grabstackblock (len=18446744071562067972)
          at memalloc.h:67
      #8  0x00000000004106b5 in readtoken1 (firstc=118, syntax=0x419522 "",
          eofmark=0x0, striptabs=0) at parser.c:1040
      #9  0x00000000004101a4 in xxreadtoken () at parser.c:826
      #10 0x000000000040fe1d in readtoken () at parser.c:697
      #11 0x000000000040edcc in parsecmd (interact=0) at parser.c:145
      #12 0x000000000040c679 in cmdloop (top=1) at main.c:224
      #13 0x000000000040c603 in main (argc=2, argv=0x7fffffffd9f8) at main.c:178
    
      #8  0x00000000004106b5 in readtoken1 (firstc=118, syntax=0x419522 "",
          eofmark=0x0, striptabs=0) at parser.c:1040
      1040    grabstackblock(len);
      (gdb) p len
      $30 = -2147483644
    
    Signed-off-by: Jim Meyering <meyering@redhat.com>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>
  4. [klibc] include: [sys/time.h] fix for Linux 3.5.1

    cjwatson authored and brainflux committed Sep 25, 2012
    From 3.5.1, <linux/time.h> does not even define FD_ZERO etc.
    
    With Linux 3.5.1, 'make test' fails with:
    
      usr/klibc/tests/select.c: In function ‘main’:
      usr/klibc/tests/select.c:31:14: error: ‘FD_SETSIZE’ undeclared (first use in this function)
      usr/klibc/tests/select.c:31:14: note: each undeclared identifier is reported only once for each function it appears in
    
    This is due to Linux commit 8ded2bbc1845e19c771eb55209aab166ef011243.
    Handle it by making sure that FD_SETSIZE is defined.
    
    Signed-off-by: Colin Watson <cjwatson@ubuntu.com>
    Signed-off-by: maximilian attems <max@stro.at>
  5. [klibc] arm: remove unused variable

    mirabilos authored and brainflux committed Sep 29, 2012
    MCONFIG containing a no longer recognised gcc flag.
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
    Signed-off-by: maximilian attems <max@stro.at>
  6. [klibc] arm: unbreak armhf shared binaries (those with thumb)

    mirabilos authored and brainflux committed Sep 29, 2012
    The linker command was wrong.
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
    Signed-off-by: maximilian attems <max@stro.at>
  7. [klibc] arm: fix trashing of callee-saved registers in thumb setjmp()

    mirabilos authored and brainflux committed Sep 29, 2012
    fixes http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=634890
    (although dynamically-linked binaries seem to have another bug)
    
    Signed-off-by: Thorsten Glaser <tg@mirbsd.org>
    Signed-off-by: maximilian attems <max@stro.at>
Commits on Jul 3, 2012
  1. [klibc] kbuild: Fix permissions of headers

    brainflux committed Jul 2, 2012
    Small build fix carried in Debian, triggered by paranoid umask.
    
    Cc: Sam Ravnborg <sam@ravnborg.org>
    Signed-off-by: maximilian attems <max@stro.at>
Commits on Jul 2, 2012
  1. [klibc] dash: sync with latest git

    brainflux committed Jul 2, 2012
    Gains us compile and runtime fixes including newer dash >= 0.5.7.
    
    For now disable faccessat() as we yet miss AT_EACCESS definition.
    
    Signed-off-by: maximilian attems <max@stro.at>
  2. [klibc] [VAR] Sanitise environment variable names on entry

    herbertx authored and brainflux committed Feb 25, 2012
    On Tue, Feb 14, 2012 at 10:48:48AM +0000, harald@redhat.com wrote:
    >
    > "export -p" prints all environment variables, without checking if the
    > environment variable is a valid dash variable name.
    >
    > IMHO, the only valid usecase for "export -p" is to eval the output.
    >
    > $ eval $(export -p); echo OK
    > OK
    >
    > Without this patch the following test does error out with:
    >
    > test.py:
    > import os
    > os.environ["test-test"]="test"
    > os.environ["test_test"]="test"
    > os.execv("./dash", [ './dash', '-c', 'eval $(export -p); echo OK' ])
    >
    > $ python test.py
    > ./dash: 1: export: test-test: bad variable name
    >
    > Of course the results can be more evil, if the environment variable
    > name is crafted, that it injects valid shell code.
    
    This patch fixes the issue by sanitising all environment variable names
    upon entry into the shell.
    
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>
  3. [klibc] [SHELL] Allow building without LINEO support

    davem330 authored and brainflux committed Aug 17, 2011
    Simply specify --disable-lineno to configure.
    
    Signed-off-by: David S. Miller <davem@davemloft.net>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>
  4. [klibc] [ARITH] Avoid imaxdiv when only one of the results is wanted

    hvdijk authored and brainflux committed Aug 17, 2011
    dash rather pointlessly calls imaxdiv, only to discard one of its
    results. The call was already made conditional a while back because some
    systems don't have imaxdiv, but the generated code for the version with
    imaxdiv and the one with / and % is identical (with GCC 4.6.1 or ICC
    12.0.2, with -O0, -O2 or -Os), so it could just as well go entirely to
    clean up the code a little bit.
    
    Signed-off-by: Harald van Dijk <harald@gigawatt.nl>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>
  5. [klibc] [SHELL] Fix klibc DEBUG compilation

    brainflux committed Jul 15, 2011
    dash didn't compile in DEBUG mode against klibc for all long time.
    Now it only fails at link stage for not having setlinebuf(3) and
    freopen(3).
    
    Fixes:
    
    usr/dash/show.o: In function `opentrace':
    show.c:(.text+0x36): undefined reference to `freopen'
    show.c:(.text+0x86): undefined reference to `setlinebuf'
    
    Skip setlinebuf and use fclose/fopen inside __KLIBC__
    Compile tested with debug in klibc and against glibc in dash repo.
    
    Signed-off-by: maximilian attems <max@stro.at>
    Signed-off-by: Herbert Xu <herbert@gondor.apana.org.au>
    Signed-off-by: maximilian attems <max@stro.at>