From: Wolfgang Denk Date: Tue, 22 Mar 2011 23:32:22 +0100 Subject: [U-Boot] [PATCH v3] Introduce a new linker flag LDFLAGS_FINAL In-Reply-To: <1298410685-21335-1-git-send-email-Haiying.Wang@freescale.com> References: <1298410685-21335-1-git-send-email-Haiying.Wang@freescale.com> Message-ID: <20110322223222.6F8DB151F7D@gemini.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 Haiying.Wang at freescale.com, In message <1298410685-21335-1-git-send-email-Haiying.Wang@freescale.com> you wrote: > From: Haiying Wang > > commit 8aba9dceebb14144e07d19593111ee3a999c37fc > Divides variable of linker flags to LDFLAGS-u-boot and LDFLAGS > > breaks the usage of --gc-section to build nand_spl. We still need linker option > --gc-section for every uboot image, not only the main one. LDFLAGS_FINAL passes > the --gc-sections to each uboot image. > > To get the proper linker flags, we use LDFLAGS and LDFLAGS_FINAL to replace > PLATFORM_LDFLAGS in the Makefile of each nand_spl board. > > Signed-off-by: Scott Wood > Signed-off-by: Haiying Wang > --- > v3: remove LDFLAGS from LDFLAGS_FINAL since it is already in LDFLAGS_u-boot, and > add LDFLAGS to each nand_spl board's LDFLAGS > arch/blackfin/config.mk | 2 +- > arch/i386/config.mk | 2 +- > arch/nios2/config.mk | 2 +- > arch/powerpc/config.mk | 2 +- > arch/sh/config.mk | 2 +- > config.mk | 3 ++- > nand_spl/board/amcc/acadia/Makefile | 3 ++- > nand_spl/board/amcc/bamboo/Makefile | 3 ++- > nand_spl/board/amcc/canyonlands/Makefile | 3 ++- > nand_spl/board/amcc/kilauea/Makefile | 3 ++- > nand_spl/board/amcc/sequoia/Makefile | 3 ++- > nand_spl/board/davinci/da8xxevm/Makefile | 3 ++- > nand_spl/board/freescale/mpc8313erdb/Makefile | 4 ++-- > nand_spl/board/freescale/mpc8315erdb/Makefile | 4 ++-- > nand_spl/board/freescale/mpc8536ds/Makefile | 3 ++- > nand_spl/board/freescale/mpc8569mds/Makefile | 3 ++- > nand_spl/board/freescale/mpc8572ds/Makefile | 3 ++- > nand_spl/board/freescale/mx31pdk/Makefile | 3 ++- > nand_spl/board/freescale/p1_p2_rdb/Makefile | 3 ++- > nand_spl/board/karo/tx25/Makefile | 3 ++- > nand_spl/board/samsung/smdk6400/Makefile | 3 ++- > nand_spl/board/sheldon/simpc8313/Makefile | 4 ++-- > 22 files changed, 39 insertions(+), 25 deletions(-) Applied, thanks. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de A dog always bit deepest on the veterinary hand. - Terry Pratchett, _Wyrd Sisters_