svn commit: trunk/uClibc/libc/sysdeps/linux/vax

Peter S. Mazinger ps.m at gmx.net
Mon Jan 30 22:03:12 UTC 2006


On Mon, 30 Jan 2006 jbglaw at uclibc.org wrote:

> Author: jbglaw
> Date: 2006-01-30 13:23:23 -0800 (Mon, 30 Jan 2006)
> New Revision: 13727

[...]

> 
> Modified: trunk/uClibc/libc/sysdeps/linux/vax/crt1.S
> ===================================================================
> --- trunk/uClibc/libc/sysdeps/linux/vax/crt1.S	2006-01-30 21:01:49 UTC (rev 13726)
> +++ trunk/uClibc/libc/sysdeps/linux/vax/crt1.S	2006-01-30 21:23:23 UTC (rev 13727)

current usage within this file is 

#ifdef __PIC__
	this goes into Scrt1.o (for PIE/ET_DYN binaries)
#else
	this goes into crt1.o (for ET_EXEC binaries)
#endif

Scrt1.o is compiled w/ -fPIE/-fpie
crt1.o is compiled independently of DO_PIC always w/o -fPIC/-fpic

there is no support for gcrt1.o (should be added to Makefile.commonarch 
if needed)

PIE is only relevant if you have also CTOR_DTOR (and shared lib support)

>  
> -	/* The above __uClibc_start_main() shouldn't ever return. If it
> -	   does, we just crash.  */
> +	/* The above __uClibc_start_main() shouldn't ever return. If it	*/
> +	/* does, we just crash.						*/
>  	halt
>  .align 2

__uClibc_main() here

some other files:
Makefile.arch:fpu_control.h is handled generally in topdir/Makefile.in, if 
it exists for this arch it is linked into include/
This file changed somewhat, it includes as last ../Makefile.commonarch,
you have to list only CSRC, SSRC (excluding crt?.S). if you need some 
special header added as link, see mips/Makefile.arch

vfork.c: add libc_hidden_proto(fork) and s/__fork/fork/ (this way it will 
use the internal version of fork)

_mmap.c: rename to mmap.c, else you get duplicate object conflicting w/ 
common/mmap.o[s] (ARCH_OBJS are excluded from common and built here)

Thanks, Peter

-- 
Peter S. Mazinger <ps dot m at gmx dot net>           ID: 0xA5F059F2
Key fingerprint = 92A4 31E1 56BC 3D5A 2D08  BB6E C389 975E A5F0 59F2




More information about the uClibc mailing list