Re: [arm-gnu] Re: global static problem
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [arm-gnu] Re: global static problem



Hi,
   We are using the 2008q1 release of the Codesourcery G++ for ARM
SymbianOS platform with the posix PIPS C libraries (
http://developer.symbian.com/wiki/display/pub/P.I.P.S.), and these are the
command lines:

To compile:

arm-none-symbianelf-g++ -w -fno-exceptions -fpermissive -c
-fno-unit-at-a-time -nostdinc -march=armv5t -mapcs -msoft-float
-__SYMBIAN32__
-D__UIQ30_SDK__ -D__UIQ31_SDK__ -D__GCCE__ -D__GCC32__ -D__EPOC32__
-D__MARM__ -D__EABI__ -D__MARM_ARMV5__ -D__EXE__ -D_UNICODE
-D__PRODUCT_INCLUDE__=\"d:/UIQ/UIQ3.1SDK/epoc32/include/variant/UIQ_3.1.hrh\"
-DPLATFORM_UIQ3 -DDEBUG -D_DEBUG -I. -I.. -I d:/UIQ/UIQ3.1SDK/epoc32/include
-I d:/UIQ/UIQ3.1SDK/epoc32/include/stdapis -c myhelloworld.cpp -o
myhelloworld.o

To link:

arm-none-symbianelf-ld -o helloworld myhelloworld.o
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/UREL/eexe.lib
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/UREL/usrt2_2.lib
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/UREL/stlport_s.lib
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/UREL/libcrt0.lib
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/dfpaeabi.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/drtaeabi.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/euser.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/drtrvct2_2.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/libc.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/libm.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/efsrv.dso
d:/UIQ/UIQ3.1SDK/epoc32/release/ARMV5/LIB/libpthread.dso
-LD:/UIQ/GCC/arm-none-symbianelf/lib/ -lsupc++
-LD:/UIQ/GCC/lib/gcc/arm-none-symbianelf/4.2.3 -lgcc -shared --no-undefined
--target1-abs -Ttext 0x8000 -Tdata 0xa00000 --default-symver -soname
helloworld{00040000}[e0001001].exe --entry _E32Startup -u _E32Startup

And to create a symbian binary:

elf2e32 --sid=0xe0001001 --version=10.0 --uid1=0x1000007a --uid2=0x20004c45
--uid3=0xe0001001 --capability=none --fpu=softvfp --targettype=EXE
--output="..\..\build\helloworld\targets\HelloWorld.exe"
--elfinput=..\..\build\helloworld\targets\helloworld
--linkas=helloworld{00040000}[e0001001].exe
--libpath="%UIQ_SDK_DIR%/epoc32/release/ARMV5/LIB"

If you need I can send you a complete test application, but you must have
the UIQ symbian SDK 3.1 with PIPS installed, and a UIQ Symbian device to be
able to test it.

Best Regards,
Gabor Posz
Developer


2008/4/22, Nathan Sidwell <nathan@xxxxxxxxxxxxxxxx>:
>
> Gabor POSZ wrote:
>
> > Hi,
> > We made some more experimenting, and we unfortunatelly realised that it
> > is the same with the local static variables too:
> >
>
> We've not seen this problem.  Do you have a complete testcase?  How are
> you compiling and linking your application?
>
> nathan
>
> --
> Nathan Sidwell    ::   http://www.codesourcery.com   ::
> CodeSourcery
>
>