From mboxrd@z Thu Jan 1 00:00:00 1970 From: =?utf-8?Q?Beno=C3=AEt_Th=C3=A9baudeau?= Date: Thu, 13 Jun 2013 00:38:24 +0200 (CEST) Subject: [U-Boot] [PATCH v3 0/6] Optimize ARM relocation In-Reply-To: <1370953055-13482-1-git-send-email-albert.u.boot@aribaud.net> References: <1369724512-4047-1-git-send-email-albert.u.boot@aribaud.net> <1370953055-13482-1-git-send-email-albert.u.boot@aribaud.net> Message-ID: <14102706.1924060.1371076704447.JavaMail.root@advansee.com> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Albert, On Tuesday, June 11, 2013 2:17:29 PM, Albert ARIBAUD wrote: > This series optimizes relocation by ensuring ARM > binaries only use one type of relocation record, > R_ARM_RELATIVE., then optimizing relocation code > accordingly. > > 1. A Makefile rule is added that checks that no > other relocation record types are generated except > R_ARM_RELATIVE; build fails if this is the case. > > 2. All references to dymsym are removed, as this > table is not used for R_ARM_RELATIVE relocations. > > 3. arch/arm/lib/bss.c is replaced by a more generic > arch/arm/lib/sections.c where all section symbols will > be defined. > > 4. __image_copy_start and __image_copy_end symbols > are moved from linker scripts to arch/arm/lib/sections.c > > 5. __rel_dyn_start and __rel_dyn_end are moved from > linker scripts into arch/arm/lib/sections.c > > 6. relocate_code is optimized based on the fact that > symbol references are now always valid even before > relcation, and that only R_ARM_RELATIVE relocations > will be met. > > Changes in v3: > - fix commit message typo (of -> if) > - fix commit message typo (breaks -> break) For this v3 series: Reviewed-by: Beno?t Th?baudeau Best regards, Beno?t