From mboxrd@z Thu Jan 1 00:00:00 1970 From: Marek Vasut Date: Sat, 2 Feb 2013 18:53:53 +0100 Subject: [U-Boot] [PATCH v1] Refactor linker-generated arrays In-Reply-To: References: <1359824574-32627-1-git-send-email-albert.u.boot@aribaud.net> <1359824574-32627-2-git-send-email-albert.u.boot@aribaud.net> Message-ID: <201302021853.53682.marex@denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Daniel Schwierzeck, > Hi Albert, > > 2013/2/2 Albert ARIBAUD : > > Refactor linker-generated array code so that symbols > > which were previously linker-generated are now compiler- > > generated. This causes relocation records of type > > R_ARM_ABS32 to become R_ARM_RELATIVE, which makes > > code which uses LGA able to run before relocation as > > well as after. > > > > Note: this affects more than ARM targets, as linker- > > lists span possibly all target architectures, notably > > PowerPC. > > > > Signed-off-by: Albert ARIBAUD > > --- > > for the MIPS part: > Tested-by: Daniel Schwierzeck > > > BTW: if we use > > .u_boot_list : { > KEEP(*(SORT(.u_boot_list*))) > } > > we can get rid of the undef magic in the final link of u-boot UUuuuu, that's amazing. We're shifting from one kind of black magic onto another voodoo. But certainly, this KEEP() is much cleaner, I like it :) Best regards, Marek Vasut