mirror of
https://github.com/adtools/clib2.git
synced 2025-12-08 14:59:05 +00:00
- getcwd() now considers a buffer size of 0 an error, and it sets the errno code to ERANGE if the buffer is too small. - With Unix path semantics enabled, rename() now fails if either the old or the new name are empty strings. Same thing for opendir(), utime(), unlink(), chown(), link(), readlink(), realpath(), chdir(), access(), stat(), rmdir(), lstat(), chmod(), statfs() and open()/fopen(). - Fixed several issues with the formatted output of strftime() for the "C" locale: "%p" could return " PM", "%c" is now equivalent to "%a %b %e %T %Y", "%x" is equivalent to "%m/%d/%y" and "%X" is now equivalent to "%T". git-svn-id: file:///Users/olsen/Code/migration-svn-zu-git/logical-line-staging/clib2/trunk@15020 87f5fb63-7c3d-0410-a384-fd976d0f7a62
29 lines
503 B
ArmAsm
29 lines
503 B
ArmAsm
//
|
|
// $Id: crt0.S,v 1.5 2005-08-26 12:39:33 obarthel Exp $
|
|
//
|
|
// :ts=4
|
|
//
|
|
|
|
.text
|
|
|
|
.globl main | This enforces linkage against the main() function
|
|
.globl _main
|
|
.globl _start
|
|
|
|
_start:
|
|
|
|
#if defined(SMALL_DATA)
|
|
/* Don't do a function call here, since that
|
|
means LR has to be saved */
|
|
lis r13, _SDA_BASE_@ha
|
|
addi r13, r13, _SDA_BASE_@l
|
|
#endif
|
|
|
|
#if defined(BASEREL_DATA)
|
|
/* We also need to set up the data segment pointer */
|
|
lis r2, _DATA_BASE_@ha
|
|
addi r2, r2, _DATA_BASE_@l
|
|
#endif
|
|
|
|
b _main
|