Re: [PATCH] x86 Boot enhancements, pic 16 4/9

From: Maciej W. Rozycki (macro@ds2.pg.gda.pl)
Date: Fri Apr 05 2002 - 11:24:07 EST


On Fri, 5 Apr 2002, Martin Mares wrote:

> For such purposes, it would be wonderful if somebody could teach gas
> how to assemble absolute code and make real location of code and base
> for calculation of symbols independent. It probably could be done with
> sections and a cleverly written ldscript (modulo ld bugs), but it's
> nowhere near elegant.

 The location of code is already independent from symbol addresses. The
default location is identity-mapped to addresses but that can be changed.
You normally do that by setting a different LMA in a linker script with
the "AT" keyword.

-- 
+  Maciej W. Rozycki, Technical University of Gdansk, Poland   +
+--------------------------------------------------------------+
+        e-mail: macro@ds2.pg.gda.pl, PGP key available        +

- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Sun Apr 07 2002 - 22:00:18 EST