[comp.sys.mips] mips linker

gregory@pescadero (Gregory R. Whitehead) (12/09/89)

I want to link a ZMAGIC executable so that a certain routine is
located at a predetermined address.

With other linkers (e.g. on Ultrix/VAX), I have been successful in
making this routine the first text to be linked and specifying the
desired address with the -T option.  This doesn't work with the mips
linker though.

The -T address corresponds to the beginning of the first page of the
executable that contains text, as it should, but it seems that the
text is just glued onto the end of the variable length header.  Thus,
more often than not, what you have at the -T address is part of the
header, not the start of the text.

So, is there some way to force the linker to pad out the area between
the end of the header and the start of the text to a page boundary?

-Greg


     Gregory R. Whitehead
   Distributed Systems Group        gregory@pescadero.stanford.edu
      Stanford University