Hi,

Anton Ertl wrote:
> The only problem is that we have to find the start and the end of the
> code to copy, and the code has to be contiguous, and that's what 3.3
> apparently fouls up.

The way I would do this is to put the to-be-moved code into a distinct ELF 
section. That way you can force it to be contiguous. You can then let the 
linker fill a function start/end address table, and when copying you can 
adjust the addresses relative to the start of that section.

The Linux kernel uses these techniques quite extensively.

-- 
Matthias Urlichs  |  {M:U} IT Design @ m-u-it.de  |   [EMAIL PROTECTED]
Disclaimer: Das Zitat wurde zuf�llig ausgew�hlt.  |   http://smurf.noris.de
-- 
Ich glaube, der Klaus wird noch tierisch verklagt werden.
                -- Karsten Droste


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to