More questions about _GLOBAL

Anthony Green green@redhat.com
Tue Jan 29 14:44:00 GMT 2002


On Tue, 2002-01-29 at 14:12, Adam Megacz wrote:
> Tried that too, unfortunately strip and ld don't work the way I think
> they should. The address of the class$ symbol is inserted into the
> __GLOBAL_ symbol using a file-local symbol relocation. When I strip
> that symbol before linking, or if I remove the section, strip/ld seems
> to randomly pick another symbol to use, instead of writing a 0x0.

You should be able to provide a definition for the symbol on the command
link with --defsym FOO=0.

AG




More information about the Java mailing list