[parisc-linux] init and exit text problem

James Bottomley James.Bottomley at steeleye.com
Fri Jan 16 10:30:17 MST 2004


On Fri, 2004-01-16 at 11:50, Joel Soete wrote:
> +  /* When something in the kernel is NOT compiled as a module, the
> +   * module cleanup code and data are put into these segments.  Both
> +   * can then be thrown away, as cleanup code is never called unless
> +   * it's a module.
> +   */
> +  /DISCARD/ : {
> +	*(.exit.text)
> +	*(.exit.data)

This is wrong...exit.text and exit.data are runtime discards, not link
time ones, precisely because of the compile failures you get.

> +	*(.exitcall.exit)

This one should be OK.

I'm not sure we can actually do this, though...I seem to remember that
our 64 bit toolchain is not too happy doing discard sections.

James





More information about the parisc-linux mailing list