[Cegcc-devel] stdio problems with 0.51.0 - fprintf / fputs / fwrite ..

2007-12-17 Thread Pavel Chernikov
Hi All, I'm having trouble running the following code on my Axim X51v: #include #include #include #include #define FN "fibo222.txt" int fibo(int n) { if (n < 3) return 1; return fibo(n-1) + fibo(n-2); } int APIENTRY WinMain(HINSTANCE a,HINSTANCE b,LPWSTR c,int d) { FIL

Re: [Cegcc-devel] Position independant code

2007-12-17 Thread Pedro Alves
Pedro Alves wrote: > There is *NO* GOT in a Windows dll. Dlls always use relocations. > Googling helps. > Although a patch was once posted at gcc-patches@ implementing a transparent GOT like scheme on i386 PE. -- Pedro Alves

Re: [Cegcc-devel] Position independant code

2007-12-17 Thread Pedro Alves
On the trying-to-feed-invalid-stuff-into-the-compilers-mouth show tonight we have, ... <[EMAIL PROTECTED]> wrote: > I try to compile a file with -fPIC (same problem with -fpic) and I have this > error , which is removed whithout -fPIC : > > {standard input}: Assembler messages: > {standard input}:

[Cegcc-devel] Position independant code

2007-12-17 Thread pascal . georges1
Hi, I try to compile a file with -fPIC (same problem with -fpic) and I have this error , which is removed whithout -fPIC : {standard input}: Assembler messages: {standard input}:146: Error: undefined symbol `_GLOBAL_OFFSET_TABLE_' in operation {standard input}:276: Error: undefined symbol `_GLOBA