This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: assemble_external on .class files
- To: Mark Klein <mklein at dis dot com>
- Subject: Re: assemble_external on .class files
- From: Jeffrey A Law <law at upchuck dot cygnus dot com>
- Date: Sat, 22 May 1999 15:19:14 -0600
- cc: egcs at egcs dot cygnus dot com, java-discuss at sourceware dot cygnus dot com
- Reply-To: law at cygnus dot com
In message <4.1.19990520204749.00c7fa90@garfield.dis.com>you write:
> External procedure labels need to be .IMPORTED before they can
> be used on my platform. Some of these are part of a dispatch table
> created from classes such as java::lang::Object. My first attempt at
> resolving this was to place an assemble_external() in layout_class(),
> but that results in a lot of clutter with .IMPORT statements for a
> whole bunch of things that really are not referenced. I suppose this
> could be my brute force method, but I would prefer to only do the
> .IMPORT for referenced methods/classes.
I wouldn't worry about the extra .IMPORTs. In fact, it's a little known
aspect of SOM that the assembler is responsible for _not_ adding an imported
symbol to the undefined symbols for a module if that symbol is not actually
referenced.
Jeff