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}:146: Error: undefined symbol `_GLOBAL_OFFSET_TABLE_' in > operation > {standard input}:276: Error: undefined symbol `_GLOBAL_OFFSET_TABLE_' in > operation > {standard input}:306: Error: attempt to get value of unresolved symbol `L0 ' > {standard input}:306: Error: attempt to get value of unresolved symbol `L0 ' > {standard input}:146: Error: cannot represent BFD_RELOC_32_PCREL relocation in > this object file format > {standard input}:276: Error: cannot represent BFD_RELOC_32_PCREL relocation in > this object file format > > I am not sure the library I try compile will work properly without -fPIC. > There is *NO* GOT in a Windows dll. Dlls always use relocations. Googling helps. http://en.wikipedia.org/wiki/Position_independent_code#Windows_DLLs The bug is that we should ignore the -f{PIC|pic} flags like Cygwin/MinGW versions of gcc do. -- Pedro Alves ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ Cegcc-devel mailing list Cegcc-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/cegcc-devel