More questions about _GLOBAL
Adam Megacz
gcj@lists.megacz.com
Tue Jan 29 15:28:00 GMT 2002
Anthony Green <green@redhat.com> writes:
> 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.
Yeah, I tried that one too. That creates a _global_ symbol FOO, in
addition to the preexisting _local_ symbol FOO. The linker honors the
local symbol over the global symbol.
I couldn't find a --def-local-sym command line switch for ld.
Welcome to the world of my frustration =)
- a
More information about the Java
mailing list