-Tbss on ELF harmful?

H . J . Lu hjl@lucon.org
Mon Oct 29 22:54:00 GMT 2001


On Mon, Oct 29, 2001 at 11:21:13PM -0500, DJ Delorie wrote:
> 
> > these options seem to sort-of work for ELF.  many of the NetBSD
> > ELF ports use -Ttext to link the kernel and that seems to work
> > just fine...  so disabling them (while possibly correct) will
> > break features that are used and do work ...
> 
> Yeah, that's what I was afraid of.  They work sometimes, but not
> always, and it depends on what linker script you're using.  Difficult
> to detect reliably.

I don't think it is a big problem. It is not that hard to write a
linker script to do what you want. In fact, I believe it is the
right thing to do for those binaries which don't follow the ABI,
like kernel, ....



H.J.



More information about the Binutils mailing list