Permalink
Switch branches/tags
Nothing to show
Commits on Apr 10, 2013
  1. Add a few more comments on strlcpy

    shinh committed Apr 10, 2013
  2. Improve strlcpy performance on most case.

    yoshisatoyanagisawa committed with shinh Apr 10, 2013
    glibc strncpy is unbelievably slow if size is much larger than
    strlen(src); e.g. 16K bytes vs 64 bytes.
    
    Bug fix:
    The length of src should be returned.
    https://developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man3/strlcpy.3.html
  3. Add a testcase for strlcpy

    shinh committed Apr 10, 2013
Commits on Mar 19, 2013
  1. Stub implementation of statfs64 and fstatfs64.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Mar 19, 2013
Commits on Mar 18, 2013
  1. Fixed a wrong size argument of memset.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Mar 18, 2013
  2. GCCFLAGS can be added by the user.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Mar 18, 2013
Commits on Mar 6, 2013
  1. Merge pull request #10 from mayah/master

    shinh committed Mar 6, 2013
    Reduce link warning and make CXX_LDFLAGS more flexible to add user options.
Commits on Mar 5, 2013
  1. Reduce link warning and make LD_FLAGS settings more flexible.

    mayah committed Mar 5, 2013
    Since -lc++ and -lsupc++ are not necessary for $(CC),
    we would like to define CXX_LDFLAGS, and use it only for $(CXX).
Commits on Mar 4, 2013
  1. Simplify Makefile a bit

    shinh committed Mar 4, 2013
  2. Merge pull request #8 from mayah/master

    shinh committed Mar 4, 2013
    Supports to build maloader with clang and libc++
  3. Supports clang with libc++.

    mayah committed Mar 4, 2013
    When maloader wants to load a binary which is built with clang and libc++, we have to compile maloader with clang and libc++. Otherwise, you will see a lot of errors that undefined symbols are found.
    
    When compiling with clang and libc++, you have to set CC and CXX, and define USE_LIBCXX=1 like the following:
    CC=/path/to/clang CXX=/path/to/clang++ USE_LIBCXX=1 make
Commits on Feb 26, 2013
  1. Remove -lcrypto

    Shinichiro Hamaji committed Feb 26, 2013
    I believe we don't need this anymore thanks to
    c38b589
  2. Fake implementation of Block.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Feb 26, 2013
    If we need real implementation, we might need to consider to import:
    http://compiler-rt.llvm.org/
  3. Fix pthread_mutex_lock not to halt.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Feb 26, 2013
    Since PTHREAD_MUTEX_INITIALIZER is different between Linux and Mac,
    ld-mac halted when the program calls pthread_mutex_lock with
    mutex initialized with PTHREAD_MUTEX_INITIALIZER.
    
    To avoid the problem, I have inserted a hook to pthread_mutex_lock
    to be initialized with Linux mutex lock.
  4. emulate OSAtomicAdd32 and OSAtomicAdd32.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Feb 26, 2013
    See Also:
    OSAtomicAdd32 and OSAtomicAdd64 manual:
    https://developer.apple.com/library/mac/#documentation/Darwin/Reference/ManPages/man3/OSAtomicAdd64.3.html
    
    GCC online document:
    5.44 Built-in functions for atomic memory access.
    http://gcc.gnu.org/onlinedocs/gcc-4.1.1/gcc/Atomic-Builtins.html
  5. force to load MD5 related functions.

    yoshisatoyanagisawa committed with Shinichiro Hamaji Feb 26, 2013
  6. Fix build on fedora

    shinh committed Feb 26, 2013
Commits on Dec 14, 2012
  1. Fix clang build

    Shinichiro Hamaji committed Dec 14, 2012
Commits on Oct 25, 2012
  1. BSD or GPLv3

    shinh committed Oct 25, 2012
Commits on Oct 11, 2012
  1. Remove old @executable_path code in loadDylibs

    shinh committed Oct 11, 2012
    This should be handled in loadDylib
Commits on Jul 2, 2012
  1. Handle compat_mode, used from uname(1)

    shinh committed Jul 2, 2012
    This change is suggested by Yoshi. Thanks!
Commits on Jun 19, 2012
  1. Translate en_US.* into C

    Shinichiro Hamaji committed Jun 19, 2012
    It seems this is necessary to run clang for linux without locale info.
  2. Handle newlocale

    Shinichiro Hamaji committed Jun 19, 2012
  3. Add two functions recent clang uses

    Shinichiro Hamaji committed Jun 19, 2012
    - It seems seekg is used only by nVidia's backend
    - This arc4random might be not secure, but LLVM does use rand() as
      the fallback of arc4random so this might be OK for LLVM's purpose.
Commits on Apr 24, 2012
  1. Define some *_l functions, as new clang uses this

    Shinichiro Hamaji committed Apr 24, 2012
    Currently, we just call the version which uses global locale
Commits on Apr 2, 2012
  1. Handle fflush(NULL) properly

    shinh committed Apr 2, 2012
Commits on Dec 28, 2011
  1. Don't try mmapping empty segments

    shinh committed Dec 28, 2011
    It seems atos in xcode 4 has an empty segment named __RESTRICT.
    May need further investigation.
Commits on Dec 13, 2011
  1. Version 0.4

    Shinichiro Hamaji committed Dec 13, 2011
Commits on Dec 12, 2011
  1. Handle classic (<10.5) stat

    Shinichiro Hamaji committed Dec 12, 2011
  2. Fix opendir/readdir/closedir

    Shinichiro Hamaji committed Dec 12, 2011
    For symbols with $INODE64, we should return the dirent with the new layout.
  3. Fixes for classic (<10.5) binaries

    Shinichiro Hamaji committed Dec 12, 2011
    - Read LC_DYLD_INFO
    - Handle exports before binds
    - Check export table even for weak binds
Commits on Dec 7, 2011
  1. Use values in classic weak binds

    shinh committed Dec 7, 2011
  2. Use nlist for classic binds

    shinh committed Dec 7, 2011
    Also add a log output
  3. Add a test for C++ class

    shinh committed Dec 7, 2011