[uClibc] Re: Gentoo (x86|ppc|arm)-uClibc experimental stages ready for consumption (Ned Ludd)

Peter S. Mazinger ps.m at gmx.net
Sat Oct 23 12:11:24 UTC 2004


Has someone tried ppc PIE building?
The test can be done w/ any gcc-3.4.x and binutils >= 2.15.91
1. check gcc for -fpie support 
gcc -fpie -S -o /dev/null -xc /dev/null
2. check binutils' ld for -pie support (ld --help)
3. enable PIE_SUPPORT in uClibc (it will be compat. w/ the earlier 
version, it adds only the required Scrt1.o file)
4. build hello.c (or any *.c) w/
gcc -pie -fpie -o hello hello.c
file hello (it should return shared, not executable)
5. if gcc was not rebuilt after binutils was updated
gcc -fpie -o hello.o -c hello.c
ld -pie -o hello hello.o

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