At 7:58 PM +0200 28/5/04, Adriaan van Os wrote:
Grant Jacobs wrote:
- The error indicates (to me) that the compiler thinks its
generating an enormous code or that the linker/loader is doing strange things. Its not *that* big! Any ideas? I'm developing this on OSX 10.2.8. (I can't locate a la_symbol_ptr in the source code, btw.)
e.g.
/usr/bin/ld: /usr/lib/crt1.o can't create relocation entry for prebinding (address of section (__DATA,__la_symbol_ptr) more than 24-bits away from first segment, use -noprebind)
Well, did you try to disable prebinding by passing "-Wl,-noprebind" on the command line ? What if you pass "-Wl,-prebind_allow_overlap" or "-Wl,-prebind_all_twolevel_modules" or "-Wl,-noprebind_all_twolevel_modules" ? Are you, by the way, linking with dynamic libraries ?
Thanks for that. I vaguely recalled you writing something about some options to do with prebinding but I couldn't find any message with 'prebind' in my archive of gpc posts. Is this documented somewhere btw? Its not in gpc's PDF help file.
I'm not linking any libraries explicitly (yet); any ones that gpc are linking in are done whatever way it does them...
- I've been warned about using underscores at the end of
identifiers. Obviously I can rename them, but there is a reason for this naming. Does this really do any harm? I can understand issues with underscores at the start of identifiers, but at the end?
Just pass "-Wno-underscore".
Ta, missed that one when scanning the options.
Grant