From mboxrd@z Thu Jan 1 00:00:00 1970 From: Albert ARIBAUD Date: Tue, 05 Oct 2010 12:11:34 +0200 Subject: [U-Boot] [RFC] [PATCH V2] arm: arm926ejs: use ELF relocations In-Reply-To: <4CAAF264.6030305@emk-elektronik.de> References: <1286260287-1571-1-git-send-email-albert.aribaud@free.fr> <20101005064516.AEA4C153A7E@gemini.denx.de> <4CAACE47.5090105@emk-elektronik.de> <4CAAD255.1080501@emk-elektronik.de> <4CAAD944.2040309@emk-elektronik.de> <4CAAE2C5.4040304@denx.de> <4CAAE4BF.3030306@free.fr> <4CAAE949.1010200@denx.de> <4CAAEB84.2070602@emk-elektronik.de> <4CAAECA1.8090903@denx.de> <4CAAEDAE.9040908@emk-elektronik.de> <4CAAEFDF.5080803@denx.de> <4CAAF0E3.20801@emk-elektronik.de> <4CAAF264.6030305@emk-elektronik.de> Message-ID: <4CAAF9D6.6040803@free.fr> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Le 05/10/2010 11:39, Reinhard Meyer a ?crit : >> for (p = start; p< end; p += 8) >> work; >> and not > > Give me some time, and I will complete this loop to do > relocation in "C". > > Reinhard Be careful, though, that you need a way to obtain the 'source' address of the .rel.dyn start and end and of the .dynsym start, plus the offset from 'source' to 'target'; these may not be easy to compute in C I think the right balance might be to have an ASM framework to prepare these four values and pass them to the C relocation routine. Note that you may also have to make sure the routine itself is insensitive to relocation too. Amicalement, -- Albert.