This is the mail archive of the java@gcc.gnu.org mailing list for the Java project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: More questions about _GLOBAL



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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]