Skip to contentSkip to conversation

Linker-generated arrays (take 2)

PATCH Superseded Marek Vasut 5 participants 48 messages Sep 30, 2012 – Oct 22, 2012 Page 1 of 3

Subsystems (11)
lore
Share & tools
lore
#0 lore raw

cover Linker-generated arrays (take 2)

This is a second stab at the linker-generated array. Basically, this concept is a generic abstraction of how u_boot_cmd works today. The patch 2/4 contains a huge pile of documentation which should clarify most of the questions.

I don't see size growth, I see size fluctiation in the order of tens of bytes with these patches applied. Subsequent patch added to this series removes the __u_boot_cmd section completely.

NOTE: This patchset has a cross-dependency on:
[PATCH 0/4 V2] Implant kernel-doc from Linux kernel

TAKE 2: Start again, try aligning it with patchwork workflow ... didn't
quite work out before due to my sloppiness.

Marek Vasut (5):
common: Add symbol handling for generic lists into Makefile
common: Implement support for linker-generated arrays
common: Add .u_boot_list into all linker files
common: Convert the U-Boot commands to LG-arrays
common: Discard the __u_boot_cmd section

 .gitignore                                       |    1 +
 Makefile                                         |   13 +-
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    8 +-
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    7 +-
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    7 +-
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds    |    5 +
 arch/arm/cpu/ixp/u-boot.lds                      |    8 +-
 arch/arm/cpu/u-boot.lds                          |    8 +-
 arch/arm/imx-common/cmd_bmode.c                  |   11 +-
 arch/avr32/cpu/u-boot.lds                        |    8 +-
 arch/avr32/lib/board.c                           |    4 +-
 arch/blackfin/cpu/u-boot.lds                     |    8 +-
 arch/m68k/lib/board.c                            |    4 +-
 arch/microblaze/cpu/u-boot.lds                   |    6 -
 arch/mips/lib/board.c                            |    4 +-
 arch/nds32/cpu/n1213/u-boot.lds                  |    8 +-
 arch/nds32/lib/board.c                           |    4 +-
 arch/nios2/cpu/u-boot.lds                        |   10 +-
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    8 +-
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    8 +-
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    6 +-
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    7 +-
 arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds     |    4 +
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    8 +-
 arch/sandbox/cpu/u-boot.lds                      |    8 +-
 arch/sh/cpu/sh2/u-boot.lds                       |    9 +-
 arch/sh/cpu/sh3/u-boot.lds                       |    9 +-
 arch/sh/cpu/sh4/u-boot.lds                       |    9 +-
 arch/sparc/lib/board.c                           |    4 +-
 arch/x86/cpu/u-boot.lds                          |    7 +-
 board/BuS/eb_cpu5282/u-boot.lds                  |    8 +-
 board/LEOX/elpt860/u-boot.lds                    |    8 +-
 board/RPXClassic/u-boot.lds                      |    8 +-
 board/RPXClassic/u-boot.lds.debug                |    8 +-
 board/RPXlite/u-boot.lds                         |    8 +-
 board/RPXlite/u-boot.lds.debug                   |    8 +-
 board/RPXlite_dw/u-boot.lds                      |    8 +-
 board/RPXlite_dw/u-boot.lds.debug                |    8 +-
 board/RRvision/u-boot.lds                        |    8 +-
 board/actux1/u-boot.lds                          |    8 +-
 board/actux2/u-boot.lds                          |    8 +-
 board/actux3/u-boot.lds                          |    8 +-
 board/adder/u-boot.lds                           |    8 +-
 board/ait/cam_enc_4xx/u-boot-spl.lds             |    4 +
 board/altera/nios2-generic/u-boot.lds            |   10 +-
 board/amcc/acadia/u-boot-nand.lds                |    6 +-
 board/amcc/bamboo/u-boot-nand.lds                |    6 +-
 board/amcc/canyonlands/u-boot-nand.lds           |    6 +-
 board/amcc/kilauea/u-boot-nand.lds               |    6 +-
 board/amcc/sequoia/u-boot-nand.lds               |    6 +-
 board/amcc/sequoia/u-boot-ram.lds                |    6 +-
 board/amirix/ap1000/u-boot.lds                   |    8 +-
 board/astro/mcf5373l/u-boot.lds                  |    8 +-
 board/c2mon/u-boot.lds                           |    8 +-
 board/c2mon/u-boot.lds.debug                     |    8 +-
 board/cobra5272/u-boot.lds                       |    8 +-
 board/cogent/u-boot.lds                          |    8 +-
 board/cogent/u-boot.lds.debug                    |    8 +-
 board/cray/L1/u-boot.lds.debug                   |    8 +-
 board/dave/PPChameleonEVB/u-boot.lds             |    8 +-
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds   |    6 +
 board/davinci/da8xxevm/u-boot-spl-hawk.lds       |    5 +
 board/dbau1x00/u-boot.lds                        |    4 -
 board/dvlhost/u-boot.lds                         |    8 +-
 board/eltec/mhpc/u-boot.lds                      |    8 +-
 board/eltec/mhpc/u-boot.lds.debug                |    8 +-
 board/emk/top860/u-boot.lds                      |    8 +-
 board/ep88x/u-boot.lds                           |    8 +-
 board/esd/dasa_sim/u-boot.lds                    |    8 +-
 board/esd/pmc440/u-boot-nand.lds                 |    6 +-
 board/esd/tasreg/u-boot.lds                      |    8 +-
 board/esteem192e/u-boot.lds                      |    8 +-
 board/etx094/u-boot.lds                          |    8 +-
 board/evb64260/u-boot.lds                        |    8 +-
 board/fads/u-boot.lds                            |    8 +-
 board/flagadm/u-boot.lds                         |    8 +-
 board/flagadm/u-boot.lds.debug                   |    8 +-
 board/freescale/m5208evbe/u-boot.lds             |    8 +-
 board/freescale/m52277evb/u-boot.lds             |    8 +-
 board/freescale/m5235evb/u-boot.lds              |    8 +-
 board/freescale/m5249evb/u-boot.lds              |    8 +-
 board/freescale/m5253demo/u-boot.lds             |    8 +-
 board/freescale/m5253evbe/u-boot.lds             |    8 +-
 board/freescale/m5271evb/u-boot.lds              |    8 +-
 board/freescale/m5272c3/u-boot.lds               |    8 +-
 board/freescale/m5275evb/u-boot.lds              |    8 +-
 board/freescale/m5282evb/u-boot.lds              |    8 +-
 board/freescale/m53017evb/u-boot.lds             |    8 +-
 board/freescale/m5329evb/u-boot.lds              |    8 +-
 board/freescale/m5373evb/u-boot.lds              |    8 +-
 board/freescale/m54451evb/u-boot.lds             |    8 +-
 board/freescale/m54455evb/u-boot.lds             |    8 +-
 board/freescale/m547xevb/u-boot.lds              |    8 +-
 board/freescale/m548xevb/u-boot.lds              |    8 +-
 board/freescale/mx31ads/u-boot.lds               |    8 +-
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    7 +-
 board/gaisler/gr_ep2s60/u-boot.lds               |    7 +-
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    7 +-
 board/gaisler/grsim/u-boot.lds                   |    7 +-
 board/gaisler/grsim_leon2/u-boot.lds             |    7 +-
 board/gen860t/u-boot-flashenv.lds                |    7 +-
 board/gen860t/u-boot.lds                         |    8 +-
 board/genietv/u-boot.lds                         |    8 +-
 board/genietv/u-boot.lds.debug                   |    8 +-
 board/hermes/u-boot.lds                          |    8 +-
 board/hermes/u-boot.lds.debug                    |    8 +-
 board/hymod/u-boot.lds                           |    8 +-
 board/hymod/u-boot.lds.debug                     |    8 +-
 board/icu862/u-boot.lds                          |    8 +-
 board/icu862/u-boot.lds.debug                    |    8 +-
 board/idmr/u-boot.lds                            |    8 +-
 board/incaip/u-boot.lds                          |    4 -
 board/ip860/u-boot.lds                           |    8 +-
 board/ip860/u-boot.lds.debug                     |    8 +-
 board/ivm/u-boot.lds                             |    8 +-
 board/ivm/u-boot.lds.debug                       |    8 +-
 board/korat/u-boot-F7FC.lds                      |    6 +-
 board/kup/kup4k/u-boot.lds                       |    8 +-
 board/kup/kup4k/u-boot.lds.debug                 |    8 +-
 board/kup/kup4x/u-boot.lds                       |    8 +-
 board/kup/kup4x/u-boot.lds.debug                 |    8 +-
 board/lantec/u-boot.lds                          |    8 +-
 board/lantec/u-boot.lds.debug                    |    8 +-
 board/lwmon/u-boot.lds                           |    8 +-
 board/lwmon/u-boot.lds.debug                     |    8 +-
 board/manroland/uc100/u-boot.lds                 |    8 +-
 board/matrix_vision/mvsmr/u-boot.lds             |    8 +-
 board/mbx8xx/u-boot.lds                          |    8 +-
 board/mbx8xx/u-boot.lds.debug                    |    8 +-
 board/micronas/vct/u-boot.lds                    |    4 -
 board/ml2/u-boot.lds                             |    8 +-
 board/ml2/u-boot.lds.debug                       |    8 +-
 board/mousse/u-boot.lds                          |    8 +-
 board/mousse/u-boot.lds.ram                      |    3 -
 board/mousse/u-boot.lds.rom                      |    3 -
 board/mpl/pip405/u-boot.lds.debug                |    8 +-
 board/mvblue/u-boot.lds                          |    8 +-
 board/netphone/u-boot.lds                        |    8 +-
 board/netphone/u-boot.lds.debug                  |    8 +-
 board/netta/u-boot.lds                           |    8 +-
 board/netta/u-boot.lds.debug                     |    8 +-
 board/netta2/u-boot.lds                          |    8 +-
 board/netta2/u-boot.lds.debug                    |    8 +-
 board/netvia/u-boot.lds                          |    8 +-
 board/netvia/u-boot.lds.debug                    |    8 +-
 board/nx823/u-boot.lds                           |    8 +-
 board/nx823/u-boot.lds.debug                     |    8 +-
 board/openrisc/openrisc-generic/u-boot.lds       |    8 +-
 board/pb1x00/u-boot.lds                          |    4 -
 board/qemu-mips/u-boot.lds                       |    4 -
 board/qi/qi_lb60/u-boot.lds                      |    8 +-
 board/quantum/u-boot.lds                         |    8 +-
 board/r360mpi/u-boot.lds                         |    8 +-
 board/rbc823/u-boot.lds                          |    8 +-
 board/renesas/sh7757lcr/u-boot.lds               |    9 +-
 board/rsdproto/u-boot.lds                        |    8 +-
 board/samsung/smdk5250/smdk5250-uboot-spl.lds    |    5 +
 board/samsung/smdk6400/u-boot-nand.lds           |   10 +-
 board/sandburst/karef/u-boot.lds.debug           |    8 +-
 board/sandburst/metrobox/u-boot.lds.debug        |    8 +-
 board/sandpoint/u-boot.lds                       |    8 +-
 board/siemens/IAD210/u-boot.lds                  |    8 +-
 board/sixnet/u-boot.lds                          |    8 +-
 board/snmc/qs850/u-boot.lds                      |    8 +-
 board/snmc/qs860t/u-boot.lds                     |    8 +-
 board/spc1920/u-boot.lds                         |    8 +-
 board/spd8xx/u-boot.lds                          |    8 +-
 board/spd8xx/u-boot.lds.debug                    |    8 +-
 board/stx/stxxtc/u-boot.lds                      |    8 +-
 board/stx/stxxtc/u-boot.lds.debug                |    8 +-
 board/svm_sc8xx/u-boot.lds                       |    8 +-
 board/tqc/tqm8xx/u-boot.lds                      |    8 +-
 board/v37/u-boot.lds                             |    8 +-
 board/vpac270/u-boot-spl.lds                     |    4 +
 board/w7o/u-boot.lds.debug                       |    8 +-
 board/westel/amx860/u-boot.lds                   |    8 +-
 board/westel/amx860/u-boot.lds.debug             |    8 +-
 board/xes/xpedite1000/u-boot.lds.debug           |    8 +-
 common/cmd_help.c                                |    8 +-
 common/command.c                                 |   17 ++-
 config.mk                                        |    2 +
 doc/README.commands                              |   10 +-
 examples/standalone/mips.lds                     |    4 +
 examples/standalone/nds32.lds                    |    4 +
 examples/standalone/sparc.lds                    |    5 +
 helper.mk                                        |   64 ++++++++++
 include/command.h                                |   28 ++--
 include/linker_lists.h                           |  148 ++++++++++++++++++++++
 nand_spl/board/freescale/mpc8536ds/Makefile      |    9 +-
 nand_spl/board/freescale/mpc8569mds/Makefile     |    9 +-
 nand_spl/board/freescale/mpc8572ds/Makefile      |    9 +-
 nand_spl/board/freescale/mx31pdk/Makefile        |    9 +-
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    8 +-
 nand_spl/board/freescale/p1010rdb/Makefile       |    9 +-
 nand_spl/board/freescale/p1023rds/Makefile       |    9 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile      |    9 +-
 nand_spl/board/freescale/p1_p2_rdb_pc/Makefile   |    9 +-
 nand_spl/board/karo/tx25/Makefile                |    9 +-
 nand_spl/board/karo/tx25/u-boot.lds              |    8 +-
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    8 +-
 spl/.gitignore                                   |    1 +
 spl/Makefile                                     |    6 +-
 210 files changed, 1176 insertions(+), 622 deletions(-)
 create mode 100644 helper.mk
 create mode 100644 include/linker_lists.h
Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
Signature · 1 line
1.7.10.4
#1 lore raw

PATCH 1/5 common: Add symbol handling for generic lists into Makefile

This patch adds essential components for generation of the contents of the linker section that is used by the linker-generated array. All of the contents is held in a separate file, u-boot.lst, which is generated at runtime just before U-Boot is linked.

The purpose of this code is to especially generate the appropriate boundary symbols around each subsection in the section carrying the linker-generated arrays. Obviously, the interim linker code for actual placement of the variables into the section is generated too. The generated file, u-boot.lst, is included into u-boot.lds via the linker INCLUDE directive in u-boot.lds .

Adjustments are made in the Makefile and spl/Makefile so that the u-boot.lds and u-boot-spl.lds depend on their respective .lst files.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 .gitignore                                     |    1 +
 Makefile                                       |   13 +++--
 config.mk                                      |    2 +
 helper.mk                                      |   64 ++++++++++++++++++++++++
 nand_spl/board/freescale/mpc8536ds/Makefile    |    9 +++-
 nand_spl/board/freescale/mpc8569mds/Makefile   |    9 +++-
 nand_spl/board/freescale/mpc8572ds/Makefile    |    9 +++-
 nand_spl/board/freescale/mx31pdk/Makefile      |    9 +++-
 nand_spl/board/freescale/p1010rdb/Makefile     |    9 +++-
 nand_spl/board/freescale/p1023rds/Makefile     |    9 +++-
 nand_spl/board/freescale/p1_p2_rdb/Makefile    |    9 +++-
 nand_spl/board/freescale/p1_p2_rdb_pc/Makefile |    9 +++-
 nand_spl/board/karo/tx25/Makefile              |    9 +++-
 spl/.gitignore                                 |    1 +
 spl/Makefile                                   |    6 ++-
 15 files changed, 146 insertions(+), 22 deletions(-)
 create mode 100644 helper.mk
.gitignore +1 -0
index d91e91b..1ac43f2 100644
@@ -38,6 +38,7 @@
 /u-boot.sha1
 /u-boot.dis
 /u-boot.lds
+/u-boot.lst
 /u-boot.ubl
 /u-boot.ais
 /u-boot.dtb
Makefile +10 -3
index 4c515ac..ab9ff4e 100644
@@ -515,7 +515,10 @@ else
 GEN_UBOOT = \
 		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
 		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
-		cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__OBJS) \
+		UNDEF_LST=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
+		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_list_.*\)/-u\1/p'|sort|uniq`;\
+		cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
+			$$UNDEF_SYM $$UNDEF_LST $(__OBJS) \
 			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
 			-Map u-boot.map -o u-boot
 endif
@@ -548,8 +551,12 @@ $(SUBDIR_EXAMPLES): $(obj)u-boot
 $(LDSCRIPT):	depend
 		$(MAKE) -C $(dir $@) $(notdir $@)
 
-$(obj)u-boot.lds: $(LDSCRIPT)
-		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates u-boot.lst,
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBBOARD) $(LIBS)))
+$(obj)u-boot.lds: $(LDSCRIPT) $(obj)u-boot.lst
+		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 nand_spl:	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
 		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
config.mk +2 -0
index c3822a2..d2ed5bf 100644
@@ -23,6 +23,8 @@
 
 #########################################################################
 
+include $(TOPDIR)/helper.mk
+
 ifeq ($(CURDIR),$(SRCTREE))
 dir :=
 else
helper.mk new file +64 -0

64 lines not on this page · raw message

nand_spl/board/freescale/mpc8536ds/Makefile +7 -2
index 43da3df..fe6a8e0 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mpc8569mds/Makefile +7 -2
index 43da3df..fe6a8e0 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mpc8572ds/Makefile +7 -2
index 43da3df..fe6a8e0 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mx31pdk/Makefile +7 -2
index 87784d2..4beb3f3 100644
@@ -6,6 +6,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_SPL_BUILD -DCONFIG_NAND_SPL
@@ -36,8 +37,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $@
 
-$(nandobj)u-boot.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 #########################################################################
 
nand_spl/board/freescale/p1010rdb/Makefile +7 -2
index cdbd492..9c2c588 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -62,8 +63,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1023rds/Makefile +7 -2
index da43521..8c71ee1 100644
@@ -27,6 +27,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -57,8 +58,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1_p2_rdb/Makefile +7 -2
index 43da3df..fe6a8e0 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1_p2_rdb_pc/Makefile +7 -2
index 46cf709..abd6e68 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -62,8 +63,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/karo/tx25/Makefile +7 -2
index 0336346..bfd5bde 100644
@@ -27,6 +27,7 @@ include $(TOPDIR)/nand_spl/board/$(BOARDDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_SPL_BUILD -DCONFIG_NAND_SPL
@@ -57,8 +58,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $@
 
-$(nandobj)u-boot.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS)))
+$(nandobj)u-boot.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 #########################################################################
 
spl/.gitignore +1 -0
index 7c88147..8cf487e 100644
@@ -2,3 +2,4 @@ u-boot-spl
 u-boot-spl.bin
 u-boot-spl.lds
 u-boot-spl.map
+u-boot.lst
spl/Makefile +5 -1
index d9b1c2f..6b37339 100644
@@ -149,7 +149,11 @@ $(START):	depend
 $(LIBS):	depend
 	$(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@))
 
-$(obj)u-boot-spl.lds: $(LDSCRIPT) depend
+# The following line expands into whole rule which generates u-boot.lst,
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBS)))
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot.lst depend
 	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@
 
 depend:	$(obj).depend
Signature · 1 line
1.7.10.4
#2 lore raw

PATCH 1/5 common: Add symbol handling for generic lists into Makefile

Hi Marek,

Quoted 12 lines · Marek Vasut

This patch adds essential components for generation of the contents of the linker section that is used by the linker-generated array. All of the contents is held in a separate file, u-boot.lst, which is generated at runtime just before U-Boot is linked.

The purpose of this code is to especially generate the appropriate boundary symbols around each subsection in the section carrying the linker-generated arrays. Obviously, the interim linker code for actual placement of the variables into the section is generated too. The generated file, u-boot.lst, is included into u-boot.lds via the linker INCLUDE directive in u-boot.lds .

Quoted 7 lines

Adjustments are made in the Makefile and spl/Makefile so that the u-boot.lds and u-boot-spl.lds depend on their respective .lst files.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

#3 lore raw

PATCH 2/5 common: Implement support for linker-generated arrays

In reply to Marek Vasut

This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach.

Basically, the idea is to generate an array, where elements of the array are statically initialized at compile time and each element is declared separatelly at different place. Such array is assembled together into continuous piece of memory by linker and a pointer to it's first entry can then be retrieved via accessor.

The actual implementation relies on placing any variable that is to represent an element of LG-array into particular subsection of the .u_boot_list linker section . The subsection is determined by user options. Once compiled, it is possible to dump all symbols placed in .u_boot_list section and the subsections in which they should be and generate appropriate bounds for each requested subsection of the .u_boot_list section. Each such subsection thus contains __start and __end entries at the begining and end respecitively.

This allows for simple run-time traversing of the array, since the symbols are properly defined.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 include/linker_lists.h |  148 ++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 148 insertions(+)
 create mode 100644 include/linker_lists.h
include/linker_lists.h new file +148 -0
new file mode 100644
index 0000000..0b405d7
@@ -0,0 +1,148 @@
+/*
+ * include/linker_lists.h
+ *
+ * Implementation of linker-generated arrays
+ *
+ * Copyright (C) 2012 Marek Vasut <[email protected]>
+ *
+ * See file CREDITS for list of people who contributed to this
+ * project.
+ *
+ * This program is free software; you can redistribute it and/or
+ * modify it under the terms of the GNU General Public License as
+ * published by the Free Software Foundation; either version 2 of
+ * the License, or (at your option) any later version.
+ */
+#ifndef __LINKER_LISTS_H__
+#define __LINKER_LISTS_H__
+
+/**
+ * ll_entry_declare() - Declare linker-generated array entry
+ * @_type:	Data type of the entry
+ * @_name:	Name of the entry
+ * @_section_u:	Subsection of u_boot_list in which this entry is placed
+ *		(with underscores instead of dots, for name concatenation)
+ * @_section_d:	Subsection of u_boot_list in which this entry is placed
+ *		(with dots, for section concatenation)
+ *
+ * This macro declares a variable that is placed into a linker-generated
+ * array. This is a basic building block for more advanced use of linker-
+ * generated arrays. The user is expected to build their own macro wrapper
+ * around this one.
+ *
+ * A variable declared using this macro must be compile-time initialized
+ * and is as such placed into subsection of special section, .u_boot_list.
+ * The subsection is specified by the _section_[u,d] parameter, see below.
+ * The base name of the variable is _name, yet the actual variable is
+ * declared as concatenation of
+ *
+ *   %_u_boot_list_ + @_section_u + _ + @_name
+ *
+ * which ensures name uniqueness. This variable shall never be refered
+ * directly though.
+ *
+ * Special precaution must be made when using this macro:
+ * 1) The _type must not contain the "static" keyword, otherwise the entry
+ *    is not generated.
+ *
+ * 2) The @_section_u and @_section_d variables must match, the only difference
+ *    is that in @_section_u is every dot "." character present in @_section_d
+ *    replaced by a single underscore "_" character in @_section_u. The actual
+ *    purpose of these parameters is to select proper subsection in the global
+ *    .u_boot_list section.
+ *
+ * 3) In case a section is declared that contains some array elements AND a
+ *    subsection of this section is declared and contains some elements, it is
+ *    imperative that the elements are of the same type.
+ *
+ * 4) In case an outer section is declared that contains some array elements
+ *    AND am inner subsection of this section is declared and contains some
+ *    elements, then when traversing the outer section, even the elements of
+ *    the inner sections are present in the array.
+ *
+ * Example:
+ * ll_entry_declare(struct my_sub_cmd, my_sub_cmd, cmd_sub, cmd.sub) = {
+ *         .x = 3,
+ *         .y = 4,
+ * };
+ */
+#define ll_entry_declare(_type, _name, _section_u, _section_d)		\
+	_type _u_boot_list_##_section_u##_##_name __attribute__((	\
+			unused,	aligned(4),				\
+			section(".u_boot_list."#_section_d"."#_name)))
+
+/**
+ * ll_entry_start() - Point to first entry of linker-generated array
+ * @_type:	Data type of the entry
+ * @_section_u:	Subsection of u_boot_list in which this entry is placed
+ *		(with underscores instead of dots)
+ *
+ * This function returns (_type *) pointer to the very first entry of a
+ * linker-generated array placed into subsection of .u_boot_list section
+ * specified by _section_u argument.
+ *
+ * Example:
+ * struct my_sub_cmd *msc = ll_entry_start(struct my_sub_cmd, cmd_sub);
+ */
+#define ll_entry_start(_type, _section_u)				\
+	({								\
+		extern _type _u_boot_list_##_section_u##__start;	\
+		_type *_ll_result = &_u_boot_list_##_section_u##__start;\
+		_ll_result;						\
+	})
+
+/**
+ * ll_entry_count() - Return the number of elements in linker-generated array
+ * @_type:	Data type of the entry
+ * @_section_u:	Subsection of u_boot_list in which this entry is placed
+ *		(with underscores instead of dots)
+ *
+ * This function returns the number of elements of a linker-generated array
+ * placed into subsection of .u_boot_list section specified by _section_u
+ * argument. The result is of an unsigned int type.
+ *
+ * Example:
+ * int i;
+ * const unsigned int count = ll_entry_count(struct my_sub_cmd, cmd_sub);
+ * struct my_sub_cmd *msc = ll_entry_start(struct my_sub_cmd, cmd_sub);
+ * for (i = 0; i < count; i++, msc++)
+ *         printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y);
+ */
+#define ll_entry_count(_type, _section_u)				\
+	({								\
+		extern _type _u_boot_list_##_section_u##__start;	\
+		extern _type _u_boot_list_##_section_u##__end;		\
+		unsigned int _ll_result =				\
+			&_u_boot_list_##_section_u##__end -		\
+			&_u_boot_list_##_section_u##__start;		\
+		_ll_result;						\
+	})
+
+
+/**
+ * ll_entry_get() - Retrieve entry from linker-generated array by name
+ * @_type:	Data type of the entry
+ * @_name:	Name of the entry
+ * @_section_u:	Subsection of u_boot_list in which this entry is placed
+ *		(with underscores instead of dots)
+ *
+ * This function returns a pointer to a particular entry in LG-array
+ * identified by the subsection of u_boot_list where the entry resides
+ * and it's name.
+ *
+ * Example:
+ * ll_entry_declare(struct my_sub_cmd, my_sub_cmd, cmd_sub, cmd.sub) = {
+ *         .x = 3,
+ *         .y = 4,
+ * };
+ * ...
+ * struct my_sub_cmd *c = ll_entry_get(struct my_sub_cmd, my_sub_cmd, cmd_sub);
+ */
+#define ll_entry_get(_type, _name, _section_u)				\
+	({								\
+		extern _type _u_boot_list_##_section_u##_##_name;	\
+		_type *_ll_result = &_u_boot_list_##_section_u##_##_name;\
+		_ll_result;						\
+	})
+
+#endif	/* __LINKER_LISTS_H__ */
Signature · 1 line
1.7.10.4
#4 lore raw

PATCH 2/5 common: Implement support for linker-generated arrays

Hi Marek,

Quoted 18 lines · Marek Vasut

This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach.

Basically, the idea is to generate an array, where elements of the array are statically initialized at compile time and each element is declared separatelly at different place. Such array is assembled together into continuous piece of memory by linker and a pointer to it's first entry can then be retrieved via accessor.

The actual implementation relies on placing any variable that is to represent an element of LG-array into particular subsection of the .u_boot_list linker section . The subsection is determined by user options. Once compiled, it is possible to dump all symbols placed in .u_boot_list section and the subsections in which they should be and generate appropriate bounds for each requested subsection of the .u_boot_list section. Each such subsection thus contains __start and __end entries at the begining and end respecitively.

Quoted 7 lines

This allows for simple run-time traversing of the array, since the symbols are properly defined.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

#5 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

In reply to Marek Vasut

Add section for the linker-generated lists into all possible linker files, so that everyone can easily use these lists. This is mostly a mechanical adjustment.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    5 +++++
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    4 ++++
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    4 ++++
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds    |    5 +++++
 arch/arm/cpu/ixp/u-boot.lds                      |    5 +++++
 arch/arm/cpu/u-boot.lds                          |    5 +++++
 arch/avr32/cpu/u-boot.lds                        |    5 +++++
 arch/blackfin/cpu/u-boot.lds                     |    4 ++++
 arch/microblaze/cpu/u-boot.lds                   |    5 +++++
 arch/nds32/cpu/n1213/u-boot.lds                  |    5 +++++
 arch/nios2/cpu/u-boot.lds                        |    5 +++++
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    5 +++++
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    5 +++++
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    3 +++
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    4 ++++
 arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds     |    4 ++++
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    5 +++++
 arch/sandbox/cpu/u-boot.lds                      |    5 +++++
 arch/sh/cpu/sh2/u-boot.lds                       |    4 ++++
 arch/sh/cpu/sh3/u-boot.lds                       |    4 ++++
 arch/sh/cpu/sh4/u-boot.lds                       |    4 ++++
 arch/x86/cpu/u-boot.lds                          |    5 +++++
 board/BuS/eb_cpu5282/u-boot.lds                  |    5 +++++
 board/LEOX/elpt860/u-boot.lds                    |    5 +++++
 board/RPXClassic/u-boot.lds                      |    5 +++++
 board/RPXClassic/u-boot.lds.debug                |    5 +++++
 board/RPXlite/u-boot.lds                         |    5 +++++
 board/RPXlite/u-boot.lds.debug                   |    5 +++++
 board/RPXlite_dw/u-boot.lds                      |    5 +++++
 board/RPXlite_dw/u-boot.lds.debug                |    5 +++++
 board/RRvision/u-boot.lds                        |    5 +++++
 board/actux1/u-boot.lds                          |    5 +++++
 board/actux2/u-boot.lds                          |    5 +++++
 board/actux3/u-boot.lds                          |    5 +++++
 board/adder/u-boot.lds                           |    5 +++++
 board/ait/cam_enc_4xx/u-boot-spl.lds             |    4 ++++
 board/altera/nios2-generic/u-boot.lds            |    5 +++++
 board/amcc/acadia/u-boot-nand.lds                |    3 +++
 board/amcc/bamboo/u-boot-nand.lds                |    3 +++
 board/amcc/canyonlands/u-boot-nand.lds           |    3 +++
 board/amcc/kilauea/u-boot-nand.lds               |    3 +++
 board/amcc/sequoia/u-boot-nand.lds               |    3 +++
 board/amcc/sequoia/u-boot-ram.lds                |    3 +++
 board/amirix/ap1000/u-boot.lds                   |    5 +++++
 board/astro/mcf5373l/u-boot.lds                  |    5 +++++
 board/c2mon/u-boot.lds                           |    5 +++++
 board/c2mon/u-boot.lds.debug                     |    5 +++++
 board/cobra5272/u-boot.lds                       |    5 +++++
 board/cogent/u-boot.lds                          |    5 +++++
 board/cogent/u-boot.lds.debug                    |    5 +++++
 board/cray/L1/u-boot.lds.debug                   |    5 +++++
 board/dave/PPChameleonEVB/u-boot.lds             |    5 +++++
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds   |    6 ++++++
 board/davinci/da8xxevm/u-boot-spl-hawk.lds       |    5 +++++
 board/dbau1x00/u-boot.lds                        |    5 +++++
 board/dvlhost/u-boot.lds                         |    5 +++++
 board/eltec/mhpc/u-boot.lds                      |    5 +++++
 board/eltec/mhpc/u-boot.lds.debug                |    5 +++++
 board/emk/top860/u-boot.lds                      |    5 +++++
 board/ep88x/u-boot.lds                           |    5 +++++
 board/esd/dasa_sim/u-boot.lds                    |    5 +++++
 board/esd/pmc440/u-boot-nand.lds                 |    3 +++
 board/esd/tasreg/u-boot.lds                      |    5 +++++
 board/esteem192e/u-boot.lds                      |    5 +++++
 board/etx094/u-boot.lds                          |    5 +++++
 board/evb64260/u-boot.lds                        |    5 +++++
 board/fads/u-boot.lds                            |    5 +++++
 board/flagadm/u-boot.lds                         |    5 +++++
 board/flagadm/u-boot.lds.debug                   |    5 +++++
 board/freescale/m5208evbe/u-boot.lds             |    5 +++++
 board/freescale/m52277evb/u-boot.lds             |    5 +++++
 board/freescale/m5235evb/u-boot.lds              |    5 +++++
 board/freescale/m5249evb/u-boot.lds              |    5 +++++
 board/freescale/m5253demo/u-boot.lds             |    5 +++++
 board/freescale/m5253evbe/u-boot.lds             |    5 +++++
 board/freescale/m5271evb/u-boot.lds              |    5 +++++
 board/freescale/m5272c3/u-boot.lds               |    5 +++++
 board/freescale/m5275evb/u-boot.lds              |    5 +++++
 board/freescale/m5282evb/u-boot.lds              |    5 +++++
 board/freescale/m53017evb/u-boot.lds             |    5 +++++
 board/freescale/m5329evb/u-boot.lds              |    5 +++++
 board/freescale/m5373evb/u-boot.lds              |    5 +++++
 board/freescale/m54451evb/u-boot.lds             |    5 +++++
 board/freescale/m54455evb/u-boot.lds             |    5 +++++
 board/freescale/m547xevb/u-boot.lds              |    5 +++++
 board/freescale/m548xevb/u-boot.lds              |    5 +++++
 board/freescale/mx31ads/u-boot.lds               |    5 +++++
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    5 +++++
 board/gaisler/gr_ep2s60/u-boot.lds               |    5 +++++
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    5 +++++
 board/gaisler/grsim/u-boot.lds                   |    5 +++++
 board/gaisler/grsim_leon2/u-boot.lds             |    5 +++++
 board/gen860t/u-boot-flashenv.lds                |    4 ++++
 board/gen860t/u-boot.lds                         |    5 +++++
 board/genietv/u-boot.lds                         |    5 +++++
 board/genietv/u-boot.lds.debug                   |    5 +++++
 board/hermes/u-boot.lds                          |    5 +++++
 board/hermes/u-boot.lds.debug                    |    5 +++++
 board/hymod/u-boot.lds                           |    5 +++++
 board/hymod/u-boot.lds.debug                     |    5 +++++
 board/icu862/u-boot.lds                          |    5 +++++
 board/icu862/u-boot.lds.debug                    |    5 +++++
 board/idmr/u-boot.lds                            |    5 +++++
 board/incaip/u-boot.lds                          |    5 +++++
 board/ip860/u-boot.lds                           |    5 +++++
 board/ip860/u-boot.lds.debug                     |    5 +++++
 board/ivm/u-boot.lds                             |    5 +++++
 board/ivm/u-boot.lds.debug                       |    5 +++++
 board/korat/u-boot-F7FC.lds                      |    3 +++
 board/kup/kup4k/u-boot.lds                       |    5 +++++
 board/kup/kup4k/u-boot.lds.debug                 |    5 +++++
 board/kup/kup4x/u-boot.lds                       |    5 +++++
 board/kup/kup4x/u-boot.lds.debug                 |    5 +++++
 board/lantec/u-boot.lds                          |    5 +++++
 board/lantec/u-boot.lds.debug                    |    5 +++++
 board/lwmon/u-boot.lds                           |    5 +++++
 board/lwmon/u-boot.lds.debug                     |    5 +++++
 board/manroland/uc100/u-boot.lds                 |    5 +++++
 board/matrix_vision/mvsmr/u-boot.lds             |    5 +++++
 board/mbx8xx/u-boot.lds                          |    5 +++++
 board/mbx8xx/u-boot.lds.debug                    |    5 +++++
 board/micronas/vct/u-boot.lds                    |    5 +++++
 board/ml2/u-boot.lds                             |    5 +++++
 board/ml2/u-boot.lds.debug                       |    5 +++++
 board/mousse/u-boot.lds                          |    5 +++++
 board/mpl/pip405/u-boot.lds.debug                |    5 +++++
 board/mvblue/u-boot.lds                          |    5 +++++
 board/netphone/u-boot.lds                        |    5 +++++
 board/netphone/u-boot.lds.debug                  |    5 +++++
 board/netta/u-boot.lds                           |    5 +++++
 board/netta/u-boot.lds.debug                     |    5 +++++
 board/netta2/u-boot.lds                          |    5 +++++
 board/netta2/u-boot.lds.debug                    |    5 +++++
 board/netvia/u-boot.lds                          |    5 +++++
 board/netvia/u-boot.lds.debug                    |    5 +++++
 board/nx823/u-boot.lds                           |    5 +++++
 board/nx823/u-boot.lds.debug                     |    5 +++++
 board/openrisc/openrisc-generic/u-boot.lds       |    5 +++++
 board/pb1x00/u-boot.lds                          |    5 +++++
 board/qemu-mips/u-boot.lds                       |    5 +++++
 board/qi/qi_lb60/u-boot.lds                      |    5 +++++
 board/quantum/u-boot.lds                         |    5 +++++
 board/r360mpi/u-boot.lds                         |    5 +++++
 board/rbc823/u-boot.lds                          |    5 +++++
 board/renesas/sh7757lcr/u-boot.lds               |    4 ++++
 board/rsdproto/u-boot.lds                        |    5 +++++
 board/samsung/smdk5250/smdk5250-uboot-spl.lds    |    5 +++++
 board/samsung/smdk6400/u-boot-nand.lds           |    7 ++++++-
 board/sandburst/karef/u-boot.lds.debug           |    5 +++++
 board/sandburst/metrobox/u-boot.lds.debug        |    5 +++++
 board/sandpoint/u-boot.lds                       |    5 +++++
 board/siemens/IAD210/u-boot.lds                  |    5 +++++
 board/sixnet/u-boot.lds                          |    5 +++++
 board/snmc/qs850/u-boot.lds                      |    5 +++++
 board/snmc/qs860t/u-boot.lds                     |    5 +++++
 board/spc1920/u-boot.lds                         |    5 +++++
 board/spd8xx/u-boot.lds                          |    5 +++++
 board/spd8xx/u-boot.lds.debug                    |    5 +++++
 board/stx/stxxtc/u-boot.lds                      |    5 +++++
 board/stx/stxxtc/u-boot.lds.debug                |    5 +++++
 board/svm_sc8xx/u-boot.lds                       |    5 +++++
 board/tqc/tqm8xx/u-boot.lds                      |    5 +++++
 board/v37/u-boot.lds                             |    5 +++++
 board/vpac270/u-boot-spl.lds                     |    4 ++++
 board/w7o/u-boot.lds.debug                       |    5 +++++
 board/westel/amx860/u-boot.lds                   |    5 +++++
 board/westel/amx860/u-boot.lds.debug             |    5 +++++
 board/xes/xpedite1000/u-boot.lds.debug           |    5 +++++
 examples/standalone/mips.lds                     |    4 ++++
 examples/standalone/nds32.lds                    |    4 ++++
 examples/standalone/sparc.lds                    |    5 +++++
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    5 +++++
 nand_spl/board/karo/tx25/u-boot.lds              |    5 +++++
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    5 +++++
 182 files changed, 880 insertions(+), 1 deletion(-)
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5 -0
index dc6ba34..6ad9169 100644
@@ -53,6 +53,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	__bss_start = .;
 	.bss : { *(.bss) }
 	__bss_end__ = .;
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +4 -0
index f8ea38c..dd12607 100644
@@ -54,6 +54,10 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +4 -0
index afd3381..65f80c2 100644
@@ -54,6 +54,10 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
arch/arm/cpu/armv7/omap-common/u-boot-spl.lds +5 -0
index 1d8efb2..c24c4e9 100644
@@ -47,6 +47,11 @@ SECTIONS
 
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
+
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 	__image_copy_end = .;
 	_end = .;
arch/arm/cpu/ixp/u-boot.lds +5 -0
index 7199de4..e08f10b 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
arch/arm/cpu/u-boot.lds +5 -0
index e49ca0c..18eaf73 100644
@@ -54,6 +54,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	__image_copy_end = .;
 
arch/avr32/cpu/u-boot.lds +5 -0
index 0e532f2..5aef19b 100644
@@ -54,6 +54,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	_got = .;
 	.got : {
 		*(.got)
arch/blackfin/cpu/u-boot.lds +4 -0
index 2b8d285..be70d81 100644
@@ -119,6 +119,10 @@ SECTIONS
 		___u_boot_cmd_end = .;
 	} >ram_data
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >ram_data
+
 	.text_l1 :
 	{
 		. = ALIGN(4);
arch/microblaze/cpu/u-boot.lds +5 -0
index d033a28..86773b5e 100644
@@ -56,6 +56,11 @@ SECTIONS
 		__u_boot_cmd_start = .;
 		*(.u_boot_cmd)
 		__u_boot_cmd_end = .;
+
+		. = ALIGN(4);
+		.u_boot_list : {
+	INCLUDE u-boot.lst;
+		}
 	}
 
 	.bss ALIGN(0x4):
arch/nds32/cpu/n1213/u-boot.lds +5 -0
index 1903420..48d5b90 100644
@@ -57,6 +57,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	_end = .;
 
arch/nios2/cpu/u-boot.lds +5 -0
index 4856bd3..33cd0e2 100644
@@ -53,6 +53,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	/* INIT DATA sections - "Small" data (see the gcc -G option)
 	 * is always gp-relative. Here we make all init data sections
 	 * adjacent to simplify the startup code -- and provide
arch/powerpc/cpu/74xx_7xx/u-boot.lds +5 -0
index 24823cd..049ae63 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc512x/u-boot.lds +5 -0
index 7a4d927..d93c097 100644
@@ -61,6 +61,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xx/u-boot.lds +5 -0
index e02b213..2fbc379 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds +3 -0
index 0c6c54e..1574767 100644
@@ -70,6 +70,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xxx/u-boot.lds +5 -0
index 5dcaec1..52755e6 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc8220/u-boot.lds +5 -0
index 39bb42e..222f907 100644
@@ -63,6 +63,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc824x/u-boot.lds +5 -0
index b30ce76..bb16926 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc8260/u-boot.lds +5 -0
index 60b71ec..722d7fb 100644
@@ -63,6 +63,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc83xx/u-boot.lds +5 -0
index 2f4b9ad..416bc07 100644
@@ -62,6 +62,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds +4 -0
index 8ba9399..5563b5f 100644
@@ -74,6 +74,10 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds +4 -0
index 668158f..6c8ae9a 100644
@@ -53,6 +53,10 @@ SECTIONS
 	}
 	_edata  =  .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(8);
 	__init_begin = .;
 	__init_end = .;
arch/powerpc/cpu/mpc85xx/u-boot.lds +5 -0
index efe34b7..009214b 100644
@@ -81,6 +81,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/mpc86xx/u-boot.lds +5 -0
index 121e529..e3b19d4 100644
@@ -68,6 +68,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/ppc4xx/u-boot.lds +5 -0
index 2466b79..005ec61 100644
@@ -82,6 +82,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/sandbox/cpu/u-boot.lds +5 -0
index 9960138..0a37657 100644
@@ -28,6 +28,11 @@ SECTIONS
 	_u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	__u_boot_sandbox_option_start = .;
 	_u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) }
 	__u_boot_sandbox_option_end = .;
arch/sh/cpu/sh2/u-boot.lds +4 -0
index b86a822..2331152 100644
@@ -80,6 +80,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 
 	PROVIDE (bss_start = .);
arch/sh/cpu/sh3/u-boot.lds +4 -0
index 9bf8503..9d99434 100644
@@ -86,6 +86,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
arch/sh/cpu/sh4/u-boot.lds +4 -0
index d9c70bc..8702c9e 100644
@@ -83,6 +83,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
arch/x86/cpu/u-boot.lds +5 -0
index fe28030..aa2b653 100644
@@ -39,6 +39,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
 	. = ALIGN(4);
board/BuS/eb_cpu5282/u-boot.lds +5 -0
index 4ba1964..3132a55 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/LEOX/elpt860/u-boot.lds +5 -0
index 5aaf6b3..d85943c 100644
@@ -90,6 +90,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXClassic/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXClassic/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXlite/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXlite/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXlite_dw/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXlite_dw/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RRvision/u-boot.lds +5 -0
index 8385373..3c2c708 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/actux1/u-boot.lds +5 -0
index 9dbaa6f..e5d59db 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/actux2/u-boot.lds +5 -0
index 3575ed9..09bb7ab 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/actux3/u-boot.lds +5 -0
index 35aab29..71b6791 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/adder/u-boot.lds +5 -0
index a762769..62afcb80 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ait/cam_enc_4xx/u-boot-spl.lds +4 -0
index 52c986e..9403c3c 100644
@@ -48,6 +48,10 @@ SECTIONS
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+	. = ALIGN(4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
 		*(.rel*)
board/altera/nios2-generic/u-boot.lds +5 -0
index 88ced62..764cc7d 100644
@@ -54,6 +54,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	/* INIT DATA sections - "Small" data (see the gcc -G option)
 	 * is always gp-relative. Here we make all init data sections
 	 * adjacent to simplify the startup code -- and provide
board/amcc/acadia/u-boot-nand.lds +3 -0
index ab67de2..bc0356b 100644
@@ -76,6 +76,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/bamboo/u-boot-nand.lds +3 -0
index 3ad8709..2382ea9 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/canyonlands/u-boot-nand.lds +3 -0
index 76f89f1..0816387 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/kilauea/u-boot-nand.lds +3 -0
index ab67de2..bc0356b 100644
@@ -76,6 +76,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/sequoia/u-boot-nand.lds +3 -0
index 07ae8b1..94234de 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/sequoia/u-boot-ram.lds +3 -0
index 423400a..0f594f5 100644
@@ -68,6 +68,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amirix/ap1000/u-boot.lds +5 -0
index cd8f5ce..575d390 100644
@@ -71,6 +71,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/astro/mcf5373l/u-boot.lds +5 -0
index a1d8e0f..d800805 100644
@@ -113,6 +113,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/c2mon/u-boot.lds +5 -0
index b9b8e3c..a170f06 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/c2mon/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cobra5272/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cogent/u-boot.lds +5 -0
index 2393d8d..3a3d988 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/cogent/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cray/L1/u-boot.lds.debug +5 -0
index fcf8ebb..78fe44c 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/dave/PPChameleonEVB/u-boot.lds +5 -0
index 3b10114..fb40e3d 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/davinci/da8xxevm/u-boot-spl-da850evm.lds +6 -0
index 6f6e065..f1b53aa 100644
@@ -47,6 +47,12 @@ SECTIONS
 
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
+
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+
 	. = ALIGN(4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/davinci/da8xxevm/u-boot-spl-hawk.lds +5 -0
index b3a41af..15fa53a 100644
@@ -58,6 +58,11 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	__rel_dyn_start = .;
 	__rel_dyn_end = .;
 	__dynsym_start = .;
board/dbau1x00/u-boot.lds +5 -0
index 4a59cea..0569133 100644
@@ -58,6 +58,11 @@ SECTIONS
 	  __u_boot_cmd_start = .;
 	  *(.u_boot_cmd)
 	  __u_boot_cmd_end = .;
+
+	  . = ALIGN(4);
+	  .u_boot_list : {
+	INCLUDE u-boot.lst;
+	  }
 	}
 
 	uboot_end_data = .;
board/dvlhost/u-boot.lds +5 -0
index 01ec390..897263e 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/eltec/mhpc/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/eltec/mhpc/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/emk/top860/u-boot.lds +5 -0
index fb06648..887ee6b 100644
@@ -71,6 +71,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ep88x/u-boot.lds +5 -0
index 332b35a..0c5a03e 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/esd/dasa_sim/u-boot.lds +5 -0
index b15948d..9a3249d 100644
@@ -77,6 +77,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/esd/pmc440/u-boot-nand.lds +3 -0
index 71f0fd2..d4ef403 100644
@@ -106,6 +106,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+		INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/esd/tasreg/u-boot.lds +5 -0
index f697ccd..b302ba0 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/esteem192e/u-boot.lds +5 -0
index 163b83d..83d9ec0 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/etx094/u-boot.lds +5 -0
index 8465937..a98ee23 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/evb64260/u-boot.lds +5 -0
index 2d031ef..1eb7f30 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/fads/u-boot.lds +5 -0
index 9ea0674..deee255 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/flagadm/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/flagadm/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5208evbe/u-boot.lds +5 -0
index 6e39be1..e184013 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m52277evb/u-boot.lds +5 -0
index 3e9f4c3..6214098 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5235evb/u-boot.lds +5 -0
index d39e734..9b5e5e2 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5249evb/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5253demo/u-boot.lds +5 -0
index cbd2831..3487a8d 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5253evbe/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5271evb/u-boot.lds +5 -0
index 4717036..3a86350 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5272c3/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5275evb/u-boot.lds +5 -0
index 6c2dfe8..b37b06b 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5282evb/u-boot.lds +5 -0
index 4ba1964..3132a55 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m53017evb/u-boot.lds +5 -0
index 80935f2..662bd31 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5329evb/u-boot.lds +5 -0
index 40af8bc..fe5be41 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5373evb/u-boot.lds +5 -0
index 19342ac..8ff6fc9 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m54451evb/u-boot.lds +5 -0
index 45924b7..ea0984f 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m54455evb/u-boot.lds +5 -0
index f341449..fe1b58c 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m547xevb/u-boot.lds +5 -0
index 5472689..877eaf2 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m548xevb/u-boot.lds +5 -0
index cf3f38c..33e054b 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/mx31ads/u-boot.lds +5 -0
index 79eb7ac..3db5dc3 100644
@@ -62,6 +62,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/gaisler/gr_cpci_ax2000/u-boot.lds +5 -0
index 87cb8e3..416761b 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/gr_ep2s60/u-boot.lds +5 -0
index 2fb44aa..43faf26 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/gr_xc3s_1500/u-boot.lds +5 -0
index 8719e97..14c631e 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/grsim/u-boot.lds +5 -0
index 33890b5..4766465 100644
@@ -89,6 +89,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/grsim_leon2/u-boot.lds +5 -0
index cf6e502..cbd4ed6 100644
@@ -89,6 +89,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gen860t/u-boot-flashenv.lds +4 -0
index 5bb6c62..1302eaa 100644
@@ -75,6 +75,10 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+		INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/gen860t/u-boot.lds +5 -0
index be99b51..de57dd1 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/genietv/u-boot.lds +5 -0
index 1d66a9b..45c56bb 100644
@@ -84,6 +84,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/genietv/u-boot.lds.debug +5 -0
index cfa4ef3..4783367 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/hermes/u-boot.lds +5 -0
index ca97115..8b90f6c 100644
@@ -76,6 +76,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/hermes/u-boot.lds.debug +5 -0
index 8a197de..53ffee1 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/hymod/u-boot.lds +5 -0
index 1309f20..83d2dd4 100644
@@ -114,6 +114,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/hymod/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/icu862/u-boot.lds +5 -0
index 93c79a6..23d4405 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/icu862/u-boot.lds.debug +5 -0
index 91d3e67..203f704 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/idmr/u-boot.lds +5 -0
index f697ccd..b302ba0 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/incaip/u-boot.lds +5 -0
index 4a59cea..0569133 100644
@@ -58,6 +58,11 @@ SECTIONS
 	  __u_boot_cmd_start = .;
 	  *(.u_boot_cmd)
 	  __u_boot_cmd_end = .;
+
+	  . = ALIGN(4);
+	  .u_boot_list : {
+	INCLUDE u-boot.lst;
+	  }
 	}
 
 	uboot_end_data = .;
board/ip860/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ip860/u-boot.lds.debug +5 -0
index 2f61b11..4fc4c0f 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/ivm/u-boot.lds +5 -0
index 1e843eb..d0d9a37 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ivm/u-boot.lds.debug +5 -0
index 732a46f..f4c04b3 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/korat/u-boot-F7FC.lds +3 -0
index 6a017e3..da33f00 100644
@@ -112,6 +112,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/kup/kup4k/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/kup/kup4k/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/kup/kup4x/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/kup/kup4x/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/lantec/u-boot.lds +5 -0
index de0b355..9360839 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/lantec/u-boot.lds.debug +5 -0
index 856a99b..7c1ccb2 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/lwmon/u-boot.lds +5 -0
index 8bf7324..7dfa157 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/lwmon/u-boot.lds.debug +5 -0
index 2412234..0778758 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/manroland/uc100/u-boot.lds +5 -0
index 731cec9..d291d60 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/matrix_vision/mvsmr/u-boot.lds +5 -0
index 57c37de..2445b97 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mbx8xx/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mbx8xx/u-boot.lds.debug +5 -0
index a95c47f..7e62932 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/micronas/vct/u-boot.lds +5 -0
index 3a05ef9..273d190 100644
@@ -57,6 +57,11 @@ SECTIONS
 	  __u_boot_cmd_start = .;
 	  *(.u_boot_cmd)
 	  __u_boot_cmd_end = .;
+
+	  . = ALIGN(4);
+	  .u_boot_list : {
+	INCLUDE u-boot.lst;
+	  }
 	}
 
 	. = ALIGN(4);
board/ml2/u-boot.lds +5 -0
index 9f9ddb8..a6cad6d 100644
@@ -68,6 +68,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ml2/u-boot.lds.debug +5 -0
index fcf8ebb..78fe44c 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/mousse/u-boot.lds +5 -0
index dae2cfc..863468e 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mpl/pip405/u-boot.lds.debug +5 -0
index fcf8ebb..78fe44c 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/mvblue/u-boot.lds +5 -0
index 11624d2..4610de9 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netphone/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netphone/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netta/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netta/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netta2/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netta2/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netvia/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netvia/u-boot.lds.debug +5 -0
index 6c7d698..2e3f83e 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/nx823/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/nx823/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/openrisc/openrisc-generic/u-boot.lds +5 -0
index 1aed197..bc610bd 100644
@@ -30,6 +30,11 @@ SECTIONS
 	 .u_boot_cmd : { *(.u_boot_cmd) } > ram
 	 __u_boot_cmd_end = .;
 
+	 . = ALIGN(4);
+	 .u_boot_list : {
+	INCLUDE u-boot.lst;
+	 }
+
 	.rodata : {
 		*(.rodata);
 		*(.rodata.*)
board/pb1x00/u-boot.lds +5 -0
index bd0dee1..cac9188 100644
@@ -58,6 +58,11 @@ SECTIONS
 	  __u_boot_cmd_start = .;
 	  *(.u_boot_cmd)
 	  __u_boot_cmd_end = .;
+
+	  . = ALIGN(4);
+	  .u_boot_list : {
+	INCLUDE u-boot.lst;
+	  }
 	}
 
 	uboot_end_data = .;
board/qemu-mips/u-boot.lds +5 -0
index 9460b20..1f37e8b 100644
@@ -60,6 +60,11 @@ SECTIONS
 	__u_boot_cmd_start = .;
 	*(.u_boot_cmd)
 	__u_boot_cmd_end = .;
+
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
 	}
 
 	uboot_end_data = .;
board/qi/qi_lb60/u-boot.lds +5 -0
index 7317652..e1bb826 100644
@@ -51,6 +51,11 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/quantum/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/r360mpi/u-boot.lds +5 -0
index 2fa085a..181468d 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/rbc823/u-boot.lds +5 -0
index d943fb6..50c3eee 100644
@@ -81,6 +81,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/renesas/sh7757lcr/u-boot.lds +4 -0
index 38ebe88..cff6ff5 100644
@@ -85,6 +85,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
board/rsdproto/u-boot.lds +5 -0
index a729c52..ee651d4 100644
@@ -101,6 +101,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/samsung/smdk5250/smdk5250-uboot-spl.lds +5 -0
index d78dd77..c6e6414 100644
@@ -48,6 +48,11 @@ SECTIONS
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 	. = ALIGN(4);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+	. = ALIGN(4);
+
 	/* Align .machine_param on 256 byte boundary for easier searching */
 	.machine_param ALIGN(0x100) : { *(.machine_param) } >.sram
 	. = ALIGN(4);
board/samsung/smdk6400/u-boot-nand.lds +6 -1
index f162815..27693f0e 100644
@@ -51,7 +51,12 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
-	. = ALIGN(4);
+	. = align(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = align(4);
 	.mmudata : { *(.mmudata) }
 
 	. = ALIGN(4);
board/sandburst/karef/u-boot.lds.debug +5 -0
index 31746e3..586dc95 100644
@@ -119,6 +119,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/sandburst/metrobox/u-boot.lds.debug +5 -0
index 4922bd2..48f5be0 100644
@@ -119,6 +119,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/sandpoint/u-boot.lds +5 -0
index e382fd1..a4421a7 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/siemens/IAD210/u-boot.lds +5 -0
index 0e78e4f..3532d3b 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/sixnet/u-boot.lds +5 -0
index 02d1980..4153927 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/snmc/qs850/u-boot.lds +5 -0
index 9ab248a..039597e 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/snmc/qs860t/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spc1920/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spd8xx/u-boot.lds +5 -0
index a84e7fd..ada68f1 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spd8xx/u-boot.lds.debug +5 -0
index a95c47f..7e62932 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/stx/stxxtc/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/stx/stxxtc/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/svm_sc8xx/u-boot.lds +5 -0
index c65f022..af83956 100644
@@ -87,6 +87,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/tqc/tqm8xx/u-boot.lds +5 -0
index 4f08be6..226cfc1 100644
@@ -87,6 +87,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/v37/u-boot.lds +5 -0
index e62d53d..feb3870 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/vpac270/u-boot-spl.lds +4 -0
index 1958c2f..b3551dd 100644
@@ -57,6 +57,10 @@ SECTIONS
 		*(.data)
 	}
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
board/w7o/u-boot.lds.debug +5 -0
index 1c67b30..520acd5 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/westel/amx860/u-boot.lds +5 -0
index 3470b43..e642a3a 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/westel/amx860/u-boot.lds.debug +5 -0
index 91d3e67..203f704 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/xes/xpedite1000/u-boot.lds.debug +5 -0
index e2e66ae..d685738 100644
@@ -115,6 +115,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
examples/standalone/mips.lds +4 -0
index 5f766ed..65c654d 100644
@@ -39,6 +39,10 @@ SECTIONS
 	. = ALIGN(4);
 	.data  : { *(.data*) }
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = .;
 	_gp = ALIGN(16) + 0x7ff0;
 
examples/standalone/nds32.lds +4 -0
index 50b4c4b..4e581ad 100644
@@ -36,6 +36,10 @@ SECTIONS
 	. = ALIGN(4);
 	.data : { *(.data) }
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.got : {
examples/standalone/sparc.lds +5 -0
index 9733daa..908a9be 100644
@@ -46,6 +46,11 @@ SECTIONS
 	{
 		*(.data)
 	}
+
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 	__data_end = .;
 
nand_spl/board/freescale/mx31pdk/u-boot.lds +5 -0
index d2b08f6..363690f 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
nand_spl/board/karo/tx25/u-boot.lds +5 -0
index d2b08f6..8332710 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
nand_spl/board/samsung/smdk6400/u-boot.lds +5 -0
index 567f635..7ceae32 100644
@@ -55,6 +55,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 	__rel_dyn_start = .;
Signature · 1 line
1.7.10.4
#6 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

Marek,

Quoted 8 lines · Marek Vasut

Add section for the linker-generated lists into all possible linker files, so that everyone can easily use these lists. This is mostly a mechanical adjustment.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

#7 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

In reply to Marek Vasut

Hi Marek,

2012/9/30 Marek Vasut <[email protected]>:

Quoted 8 lines

Add section for the linker-generated lists into all possible linker files, so that everyone can easily use these lists. This is mostly a mechanical adjustment.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

<snip>

Quoted 95 lines
examples/standalone/mips.lds +4 -0
index 5f766ed..65c654d 100644
@@ -39,6 +39,10 @@ SECTIONS
        . = ALIGN(4);
        .data  : { *(.data*) }
 
+       .u_boot_list : {
+               INCLUDE u-boot.lst;
+       }
+
        . = .;
        _gp = ALIGN(16) + 0x7ff0;
 
examples/standalone/nds32.lds +4 -0
index 50b4c4b..4e581ad 100644
@@ -36,6 +36,10 @@ SECTIONS
        . = ALIGN(4);
        .data : { *(.data) }
 
+       .u_boot_list : {
+               INCLUDE u-boot.lst;
+       }
+
        . = ALIGN(4);
 
        .got : {
examples/standalone/sparc.lds +5 -0
index 9733daa..908a9be 100644
@@ -46,6 +46,11 @@ SECTIONS
        {
                *(.data)
        }
+
+       .u_boot_list : {
+               INCLUDE u-boot.lst;
+       }
+
        . = ALIGN(4);
        __data_end = .;
 
nand_spl/board/freescale/mx31pdk/u-boot.lds +5 -0
index d2b08f6..363690f 100644
@@ -51,6 +51,11 @@ SECTIONS
        __u_boot_cmd_end = .;
 
        . = ALIGN(4);
+       .u_boot_list : {
+               INCLUDE u-boot.lst;
+       }
+
+       . = ALIGN(4);
 
        .rel.dyn : {
                __rel_dyn_start = .;
nand_spl/board/karo/tx25/u-boot.lds +5 -0
index d2b08f6..8332710 100644
@@ -51,6 +51,11 @@ SECTIONS
        __u_boot_cmd_end = .;
 
        . = ALIGN(4);
+       .u_boot_list : {
+       INCLUDE u-boot.lst;
+       }
+
+       . = ALIGN(4);
 
        .rel.dyn : {
                __rel_dyn_start = .;
nand_spl/board/samsung/smdk6400/u-boot.lds +5 -1
index 567f635..7ceae32 100644
@@ -55,6 +55,11 @@ SECTIONS
        __u_boot_cmd_end = .;
 
        . = ALIGN(4);
+       .u_boot_list : {
+       INCLUDE u-boot.lst;
+       }
+
+       . = ALIGN(4);
 
        .rel.dyn : {
        __rel_dyn_start = .;
--
Quoted 2 lines

1.7.10.4

this can't work because u-boot.lst is genereated in top-level directory but linking of standalone code happens in the according subdirectories. Thus the linker can't find u-boot.lst.

Example for MIPS standalone:

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-linux-ld.bfd

 -G 0 -static -n -nostdlib -EB -g -Ttext 0x80200000 -T mips.lds \
			-o hello_world -e hello_world hello_world.o libstubs.o \
			-L/opt/eldk-5.2.1/mips/sysroots/mips32-linux/usr/lib/mips-linux/4.6.4 -lgcc

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-linux-ld.bfd:
cannot open linker script file u-boot.lst: No such file or directory

Signature · 2 lines
Best regards,
Daniel
#8 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

Dear Daniel Schwierzeck,

[...]

Quoted 10 lines

this can't work because u-boot.lst is genereated in top-level directory but linking of standalone code happens in the according subdirectories. Thus the linker can't find u-boot.lst.

Example for MIPS standalone:

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-lin

ux-ld.bfd -G 0 -static -n -nostdlib -EB -g -Ttext 0x80200000 -T mips.lds \
			-o hello_world -e hello_world hello_world.o libstubs.o \
			-L/opt/eldk-5.2.1/mips/sysroots/mips32-

linux/usr/lib/mips-linux/4.6.4

Quoted 4 lines

-lgcc /opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-li nux-ld.bfd: cannot open linker script file u-boot.lst: No such file or directory

Do you have any suggestion? I recall compiling it for mips ...

Best regards,
Marek Vasut

#9 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

2012/10/3 Marek Vasut <[email protected]>:

Quoted 14 lines

Dear Daniel Schwierzeck,

[...]

Quoted 10 lines

this can't work because u-boot.lst is genereated in top-level directory but linking of standalone code happens in the according subdirectories. Thus the linker can't find u-boot.lst.

Example for MIPS standalone:

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-lin

ux-ld.bfd -G 0 -static -n -nostdlib -EB -g -Ttext 0x80200000 -T mips.lds \
                      -o hello_world -e hello_world hello_world.o libstubs.o \
                      -L/opt/eldk-5.2.1/mips/sysroots/mips32-
Quoted 7 lines

linux/usr/lib/mips-linux/4.6.4

Quoted 4 lines

-lgcc /opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips-li nux-ld.bfd: cannot open linker script file u-boot.lst: No such file or directory

Do you have any suggestion? I recall compiling it for mips ...

Do we really need u-boot.lst in standalone applications? I think there is no need for u_boot_cmd or DM.

Signature · 2 lines
Best regards,
Daniel
#10 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

Dear Daniel Schwierzeck,

Quoted 26 lines

2012/10/3 Marek Vasut <[email protected]>:

Quoted 25 lines

Dear Daniel Schwierzeck,

[...]

Quoted 6 lines

this can't work because u-boot.lst is genereated in top-level directory but linking of standalone code happens in the according subdirectories. Thus the linker can't find u-boot.lst.

Example for MIPS standalone:

Quoted 7 lines

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips- lin ux-ld.bfd -G 0 -static -n -nostdlib -EB -g -Ttext 0x80200000 -T mips.lds \

                      -o hello_world -e hello_world hello_world.o
                      libstubs.o \
                      -L/opt/eldk-5.2.1/mips/sysroots/mips32-

linux/usr/lib/mips-linux/4.6.4

Quoted 4 lines

-lgcc /opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips- li nux-ld.bfd: cannot open linker script file u-boot.lst: No such file or directory

Quoted 4 lines
Quoted 1 line

Do you have any suggestion? I recall compiling it for mips ...

Do we really need u-boot.lst in standalone applications? I think there is no need for u_boot_cmd or DM.

Wait, it got linked into standalone apps? I thought it broke your precious mips
...

Best regards,
Marek Vasut

#11 lore raw

PATCH 3/5 common: Add .u_boot_list into all linker files

2012/10/3 Marek Vasut <[email protected]>:

Quoted 28 lines

Dear Daniel Schwierzeck,

Quoted 26 lines

2012/10/3 Marek Vasut <[email protected]>:

Quoted 25 lines

Dear Daniel Schwierzeck,

[...]

Quoted 6 lines

this can't work because u-boot.lst is genereated in top-level directory but linking of standalone code happens in the according subdirectories. Thus the linker can't find u-boot.lst.

Example for MIPS standalone:

Quoted 7 lines

/opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips- lin ux-ld.bfd -G 0 -static -n -nostdlib -EB -g -Ttext 0x80200000 -T mips.lds \

                      -o hello_world -e hello_world hello_world.o
                      libstubs.o \
                      -L/opt/eldk-5.2.1/mips/sysroots/mips32-

linux/usr/lib/mips-linux/4.6.4

Quoted 4 lines

-lgcc /opt/eldk-5.2.1/mips/sysroots/i686-eldk-linux/usr/bin/mips32-linux/mips- li nux-ld.bfd: cannot open linker script file u-boot.lst: No such file or directory

Quoted 7 lines
Quoted 4 lines
Quoted 1 line

Do you have any suggestion? I recall compiling it for mips ...

Do we really need u-boot.lst in standalone applications? I think there is no need for u_boot_cmd or DM.

Wait, it got linked into standalone apps? I thought it broke your precious mips
...

it did. MIPS, NDS32 and Sparc have extra LDS files for standalone applications where you also
added "INCLUDE u-boot.lst". Because standalone applications are always built unconditionally,
all MIPS boards fail at final link of the application binary.

Signature · 2 lines
Best regards,
Daniel
#12 lore raw

PATCH v2 3/5 common: Add .u_boot_list into all linker files

In reply to Marek Vasut

Add section for the linker-generated lists into all possible linker files, so that everyone can easily use these lists. This is mostly a mechanical adjustment.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    5 +++++
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    4 ++++
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    4 ++++
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds    |    5 +++++
 arch/arm/cpu/ixp/u-boot.lds                      |    5 +++++
 arch/arm/cpu/u-boot.lds                          |    5 +++++
 arch/avr32/cpu/u-boot.lds                        |    5 +++++
 arch/blackfin/cpu/u-boot.lds                     |    4 ++++
 arch/microblaze/cpu/u-boot.lds                   |    5 +++++
 arch/nds32/cpu/n1213/u-boot.lds                  |    5 +++++
 arch/nios2/cpu/u-boot.lds                        |    5 +++++
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    5 +++++
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    5 +++++
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    3 +++
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    4 ++++
 arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds     |    4 ++++
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    5 +++++
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    5 +++++
 arch/sandbox/cpu/u-boot.lds                      |    5 +++++
 arch/sh/cpu/sh2/u-boot.lds                       |    4 ++++
 arch/sh/cpu/sh3/u-boot.lds                       |    4 ++++
 arch/sh/cpu/sh4/u-boot.lds                       |    4 ++++
 arch/x86/cpu/u-boot.lds                          |    5 +++++
 board/BuS/eb_cpu5282/u-boot.lds                  |    5 +++++
 board/LEOX/elpt860/u-boot.lds                    |    5 +++++
 board/RPXClassic/u-boot.lds                      |    5 +++++
 board/RPXClassic/u-boot.lds.debug                |    5 +++++
 board/RPXlite/u-boot.lds                         |    5 +++++
 board/RPXlite/u-boot.lds.debug                   |    5 +++++
 board/RPXlite_dw/u-boot.lds                      |    5 +++++
 board/RPXlite_dw/u-boot.lds.debug                |    5 +++++
 board/RRvision/u-boot.lds                        |    5 +++++
 board/actux1/u-boot.lds                          |    5 +++++
 board/actux2/u-boot.lds                          |    5 +++++
 board/actux3/u-boot.lds                          |    5 +++++
 board/adder/u-boot.lds                           |    5 +++++
 board/ait/cam_enc_4xx/u-boot-spl.lds             |    4 ++++
 board/altera/nios2-generic/u-boot.lds            |    5 +++++
 board/amcc/acadia/u-boot-nand.lds                |    3 +++
 board/amcc/bamboo/u-boot-nand.lds                |    3 +++
 board/amcc/canyonlands/u-boot-nand.lds           |    3 +++
 board/amcc/kilauea/u-boot-nand.lds               |    3 +++
 board/amcc/sequoia/u-boot-nand.lds               |    3 +++
 board/amcc/sequoia/u-boot-ram.lds                |    3 +++
 board/astro/mcf5373l/u-boot.lds                  |    5 +++++
 board/c2mon/u-boot.lds                           |    5 +++++
 board/c2mon/u-boot.lds.debug                     |    5 +++++
 board/cobra5272/u-boot.lds                       |    5 +++++
 board/cogent/u-boot.lds                          |    5 +++++
 board/cogent/u-boot.lds.debug                    |    5 +++++
 board/cray/L1/u-boot.lds.debug                   |    5 +++++
 board/dave/PPChameleonEVB/u-boot.lds             |    5 +++++
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds   |    6 ++++++
 board/davinci/da8xxevm/u-boot-spl-hawk.lds       |    5 +++++
 board/dbau1x00/u-boot.lds                        |    5 +++++
 board/dvlhost/u-boot.lds                         |    5 +++++
 board/eltec/mhpc/u-boot.lds                      |    5 +++++
 board/eltec/mhpc/u-boot.lds.debug                |    5 +++++
 board/emk/top860/u-boot.lds                      |    5 +++++
 board/ep88x/u-boot.lds                           |    5 +++++
 board/esd/dasa_sim/u-boot.lds                    |    5 +++++
 board/esd/pmc440/u-boot-nand.lds                 |    3 +++
 board/esd/tasreg/u-boot.lds                      |    5 +++++
 board/esteem192e/u-boot.lds                      |    5 +++++
 board/etx094/u-boot.lds                          |    5 +++++
 board/evb64260/u-boot.lds                        |    5 +++++
 board/fads/u-boot.lds                            |    5 +++++
 board/flagadm/u-boot.lds                         |    5 +++++
 board/flagadm/u-boot.lds.debug                   |    5 +++++
 board/freescale/m5208evbe/u-boot.lds             |    5 +++++
 board/freescale/m52277evb/u-boot.lds             |    5 +++++
 board/freescale/m5235evb/u-boot.lds              |    5 +++++
 board/freescale/m5249evb/u-boot.lds              |    5 +++++
 board/freescale/m5253demo/u-boot.lds             |    5 +++++
 board/freescale/m5253evbe/u-boot.lds             |    5 +++++
 board/freescale/m5271evb/u-boot.lds              |    5 +++++
 board/freescale/m5272c3/u-boot.lds               |    5 +++++
 board/freescale/m5275evb/u-boot.lds              |    5 +++++
 board/freescale/m5282evb/u-boot.lds              |    5 +++++
 board/freescale/m53017evb/u-boot.lds             |    5 +++++
 board/freescale/m5329evb/u-boot.lds              |    5 +++++
 board/freescale/m5373evb/u-boot.lds              |    5 +++++
 board/freescale/m54451evb/u-boot.lds             |    5 +++++
 board/freescale/m54455evb/u-boot.lds             |    5 +++++
 board/freescale/m547xevb/u-boot.lds              |    5 +++++
 board/freescale/m548xevb/u-boot.lds              |    5 +++++
 board/freescale/mx31ads/u-boot.lds               |    5 +++++
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    5 +++++
 board/gaisler/gr_ep2s60/u-boot.lds               |    5 +++++
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    5 +++++
 board/gaisler/grsim/u-boot.lds                   |    5 +++++
 board/gaisler/grsim_leon2/u-boot.lds             |    5 +++++
 board/gen860t/u-boot-flashenv.lds                |    4 ++++
 board/gen860t/u-boot.lds                         |    5 +++++
 board/genietv/u-boot.lds                         |    5 +++++
 board/genietv/u-boot.lds.debug                   |    5 +++++
 board/hermes/u-boot.lds                          |    5 +++++
 board/hermes/u-boot.lds.debug                    |    5 +++++
 board/hymod/u-boot.lds                           |    5 +++++
 board/hymod/u-boot.lds.debug                     |    5 +++++
 board/icu862/u-boot.lds                          |    5 +++++
 board/icu862/u-boot.lds.debug                    |    5 +++++
 board/idmr/u-boot.lds                            |    5 +++++
 board/incaip/u-boot.lds                          |    5 +++++
 board/ip860/u-boot.lds                           |    5 +++++
 board/ip860/u-boot.lds.debug                     |    5 +++++
 board/ivm/u-boot.lds                             |    5 +++++
 board/ivm/u-boot.lds.debug                       |    5 +++++
 board/korat/u-boot-F7FC.lds                      |    3 +++
 board/kup/kup4k/u-boot.lds                       |    5 +++++
 board/kup/kup4k/u-boot.lds.debug                 |    5 +++++
 board/kup/kup4x/u-boot.lds                       |    5 +++++
 board/kup/kup4x/u-boot.lds.debug                 |    5 +++++
 board/lantec/u-boot.lds                          |    5 +++++
 board/lantec/u-boot.lds.debug                    |    5 +++++
 board/lwmon/u-boot.lds                           |    5 +++++
 board/lwmon/u-boot.lds.debug                     |    5 +++++
 board/manroland/uc100/u-boot.lds                 |    5 +++++
 board/matrix_vision/mvsmr/u-boot.lds             |    5 +++++
 board/mbx8xx/u-boot.lds                          |    5 +++++
 board/mbx8xx/u-boot.lds.debug                    |    5 +++++
 board/micronas/vct/u-boot.lds                    |    5 +++++
 board/mousse/u-boot.lds                          |    5 +++++
 board/mpl/pip405/u-boot.lds.debug                |    5 +++++
 board/mvblue/u-boot.lds                          |    5 +++++
 board/netphone/u-boot.lds                        |    5 +++++
 board/netphone/u-boot.lds.debug                  |    5 +++++
 board/netta/u-boot.lds                           |    5 +++++
 board/netta/u-boot.lds.debug                     |    5 +++++
 board/netta2/u-boot.lds                          |    5 +++++
 board/netta2/u-boot.lds.debug                    |    5 +++++
 board/netvia/u-boot.lds                          |    5 +++++
 board/netvia/u-boot.lds.debug                    |    5 +++++
 board/nx823/u-boot.lds                           |    5 +++++
 board/nx823/u-boot.lds.debug                     |    5 +++++
 board/openrisc/openrisc-generic/u-boot.lds       |    5 +++++
 board/pb1x00/u-boot.lds                          |    5 +++++
 board/qemu-mips/u-boot.lds                       |    5 +++++
 board/qi/qi_lb60/u-boot.lds                      |    5 +++++
 board/quantum/u-boot.lds                         |    5 +++++
 board/r360mpi/u-boot.lds                         |    5 +++++
 board/rbc823/u-boot.lds                          |    5 +++++
 board/renesas/sh7757lcr/u-boot.lds               |    4 ++++
 board/rsdproto/u-boot.lds                        |    5 +++++
 board/samsung/smdk5250/smdk5250-uboot-spl.lds    |    5 +++++
 board/samsung/smdk6400/u-boot-nand.lds           |    7 ++++++-
 board/sandburst/karef/u-boot.lds.debug           |    5 +++++
 board/sandburst/metrobox/u-boot.lds.debug        |    5 +++++
 board/sandpoint/u-boot.lds                       |    5 +++++
 board/siemens/IAD210/u-boot.lds                  |    5 +++++
 board/sixnet/u-boot.lds                          |    5 +++++
 board/snmc/qs850/u-boot.lds                      |    5 +++++
 board/snmc/qs860t/u-boot.lds                     |    5 +++++
 board/spc1920/u-boot.lds                         |    5 +++++
 board/spd8xx/u-boot.lds                          |    5 +++++
 board/spd8xx/u-boot.lds.debug                    |    5 +++++
 board/stx/stxxtc/u-boot.lds                      |    5 +++++
 board/stx/stxxtc/u-boot.lds.debug                |    5 +++++
 board/svm_sc8xx/u-boot.lds                       |    5 +++++
 board/tqc/tqm8xx/u-boot.lds                      |    5 +++++
 board/v37/u-boot.lds                             |    5 +++++
 board/vpac270/u-boot-spl.lds                     |    4 ++++
 board/w7o/u-boot.lds.debug                       |    5 +++++
 board/westel/amx860/u-boot.lds                   |    5 +++++
 board/westel/amx860/u-boot.lds.debug             |    5 +++++
 board/xes/xpedite1000/u-boot.lds.debug           |    5 +++++
 examples/standalone/sparc.lds                    |    1 +
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    5 +++++
 nand_spl/board/karo/tx25/u-boot.lds              |    5 +++++
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    5 +++++
 177 files changed, 853 insertions(+), 1 deletion(-)

V2: Insert u_boot_list linker script parts properly for mips boards
Drop support for LG-arrays from standalone code, it makes no sense there

arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5 -0
index dc6ba34..6ad9169 100644
@@ -53,6 +53,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	__bss_start = .;
 	.bss : { *(.bss) }
 	__bss_end__ = .;
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +4 -0
index f8ea38c..dd12607 100644
@@ -54,6 +54,10 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +4 -0
index afd3381..65f80c2 100644
@@ -54,6 +54,10 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
arch/arm/cpu/armv7/omap-common/u-boot-spl.lds +5 -0
index 1d8efb2..c24c4e9 100644
@@ -47,6 +47,11 @@ SECTIONS
 
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
+
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 	__image_copy_end = .;
 	_end = .;
arch/arm/cpu/ixp/u-boot.lds +5 -0
index 7199de4..e08f10b 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
arch/arm/cpu/u-boot.lds +5 -0
index e49ca0c..18eaf73 100644
@@ -54,6 +54,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	__image_copy_end = .;
 
arch/avr32/cpu/u-boot.lds +5 -0
index 0e532f2..5aef19b 100644
@@ -54,6 +54,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	_got = .;
 	.got : {
 		*(.got)
arch/blackfin/cpu/u-boot.lds +4 -0
index 2b8d285..be70d81 100644
@@ -119,6 +119,10 @@ SECTIONS
 		___u_boot_cmd_end = .;
 	} >ram_data
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >ram_data
+
 	.text_l1 :
 	{
 		. = ALIGN(4);
arch/microblaze/cpu/u-boot.lds +5 -0
index d033a28..fca0c52 100644
@@ -58,6 +58,11 @@ SECTIONS
 		__u_boot_cmd_end = .;
 	}
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	.bss ALIGN(0x4):
 	{
 		__bss_start = .;
arch/nds32/cpu/n1213/u-boot.lds +5 -0
index 1903420..48d5b90 100644
@@ -57,6 +57,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	_end = .;
 
arch/nios2/cpu/u-boot.lds +5 -0
index 4856bd3..33cd0e2 100644
@@ -53,6 +53,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	/* INIT DATA sections - "Small" data (see the gcc -G option)
 	 * is always gp-relative. Here we make all init data sections
 	 * adjacent to simplify the startup code -- and provide
arch/powerpc/cpu/74xx_7xx/u-boot.lds +5 -0
index 24823cd..049ae63 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc512x/u-boot.lds +5 -0
index 7a4d927..d93c097 100644
@@ -61,6 +61,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xx/u-boot.lds +5 -0
index e02b213..2fbc379 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds +3 -0
index 0c6c54e..1574767 100644
@@ -70,6 +70,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc5xxx/u-boot.lds +5 -0
index 5dcaec1..52755e6 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc8220/u-boot.lds +5 -0
index 39bb42e..222f907 100644
@@ -63,6 +63,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc824x/u-boot.lds +5 -0
index b30ce76..bb16926 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc8260/u-boot.lds +5 -0
index 60b71ec..722d7fb 100644
@@ -63,6 +63,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc83xx/u-boot.lds +5 -0
index 2f4b9ad..416bc07 100644
@@ -62,6 +62,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds +4 -0
index 8ba9399..5563b5f 100644
@@ -74,6 +74,10 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds +4 -0
index 668158f..6c8ae9a 100644
@@ -53,6 +53,10 @@ SECTIONS
 	}
 	_edata  =  .;
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(8);
 	__init_begin = .;
 	__init_end = .;
arch/powerpc/cpu/mpc85xx/u-boot.lds +5 -0
index efe34b7..009214b 100644
@@ -81,6 +81,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/mpc86xx/u-boot.lds +5 -0
index 121e529..e3b19d4 100644
@@ -68,6 +68,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/powerpc/cpu/ppc4xx/u-boot.lds +5 -0
index 2466b79..005ec61 100644
@@ -82,6 +82,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
arch/sandbox/cpu/u-boot.lds +5 -0
index 9960138..0a37657 100644
@@ -28,6 +28,11 @@ SECTIONS
 	_u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	__u_boot_sandbox_option_start = .;
 	_u_boot_sandbox_getopt : { *(.u_boot_sandbox_getopt) }
 	__u_boot_sandbox_option_end = .;
arch/sh/cpu/sh2/u-boot.lds +4 -0
index b86a822..2331152 100644
@@ -80,6 +80,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 
 	PROVIDE (bss_start = .);
arch/sh/cpu/sh3/u-boot.lds +4 -0
index 9bf8503..9d99434 100644
@@ -86,6 +86,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
arch/sh/cpu/sh4/u-boot.lds +4 -0
index d9c70bc..8702c9e 100644
@@ -83,6 +83,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
arch/x86/cpu/u-boot.lds +5 -0
index fe28030..aa2b653 100644
@@ -39,6 +39,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	.rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) }
 
 	. = ALIGN(4);
board/BuS/eb_cpu5282/u-boot.lds +5 -0
index 4ba1964..3132a55 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/LEOX/elpt860/u-boot.lds +5 -0
index 5aaf6b3..d85943c 100644
@@ -90,6 +90,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXClassic/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXClassic/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXlite/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXlite/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RPXlite_dw/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/RPXlite_dw/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/RRvision/u-boot.lds +5 -0
index 8385373..3c2c708 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/actux1/u-boot.lds +5 -0
index 9dbaa6f..e5d59db 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/actux2/u-boot.lds +5 -0
index 3575ed9..09bb7ab 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/actux3/u-boot.lds +5 -0
index 35aab29..71b6791 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/adder/u-boot.lds +5 -0
index a762769..62afcb80 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ait/cam_enc_4xx/u-boot-spl.lds +4 -0
index 52c986e..9403c3c 100644
@@ -48,6 +48,10 @@ SECTIONS
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+	. = ALIGN(4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
 		*(.rel*)
board/altera/nios2-generic/u-boot.lds +5 -0
index 88ced62..764cc7d 100644
@@ -54,6 +54,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	/* INIT DATA sections - "Small" data (see the gcc -G option)
 	 * is always gp-relative. Here we make all init data sections
 	 * adjacent to simplify the startup code -- and provide
board/amcc/acadia/u-boot-nand.lds +3 -0
index ab67de2..bc0356b 100644
@@ -76,6 +76,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/bamboo/u-boot-nand.lds +3 -0
index 3ad8709..2382ea9 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/canyonlands/u-boot-nand.lds +3 -0
index 76f89f1..0816387 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/kilauea/u-boot-nand.lds +3 -0
index ab67de2..bc0356b 100644
@@ -76,6 +76,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/sequoia/u-boot-nand.lds +3 -0
index 07ae8b1..94234de 100644
@@ -77,6 +77,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/amcc/sequoia/u-boot-ram.lds +3 -0
index 423400a..0f594f5 100644
@@ -68,6 +68,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/astro/mcf5373l/u-boot.lds +5 -0
index a1d8e0f..d800805 100644
@@ -113,6 +113,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/c2mon/u-boot.lds +5 -0
index b9b8e3c..a170f06 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/c2mon/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cobra5272/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cogent/u-boot.lds +5 -0
index 2393d8d..3a3d988 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/cogent/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/cray/L1/u-boot.lds.debug +5 -0
index fcf8ebb..78fe44c 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/dave/PPChameleonEVB/u-boot.lds +5 -0
index 3b10114..fb40e3d 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/davinci/da8xxevm/u-boot-spl-da850evm.lds +6 -0
index 6f6e065..f1b53aa 100644
@@ -47,6 +47,12 @@ SECTIONS
 
 	. = ALIGN(4);
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
+
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+
 	. = ALIGN(4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/davinci/da8xxevm/u-boot-spl-hawk.lds +5 -0
index b3a41af..15fa53a 100644
@@ -58,6 +58,11 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	__rel_dyn_start = .;
 	__rel_dyn_end = .;
 	__dynsym_start = .;
board/dbau1x00/u-boot.lds +5 -0
index 4a59cea..1b43dac 100644
@@ -60,6 +60,11 @@ SECTIONS
 	  __u_boot_cmd_end = .;
 	}
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/dvlhost/u-boot.lds +5 -0
index 01ec390..897263e 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 	__u_boot_cmd_end =.;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN (4);
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/eltec/mhpc/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/eltec/mhpc/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/emk/top860/u-boot.lds +5 -0
index fb06648..887ee6b 100644
@@ -71,6 +71,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ep88x/u-boot.lds +5 -0
index 332b35a..0c5a03e 100644
@@ -66,6 +66,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/esd/dasa_sim/u-boot.lds +5 -0
index b15948d..9a3249d 100644
@@ -77,6 +77,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/esd/pmc440/u-boot-nand.lds +3 -0
index 71f0fd2..d4ef403 100644
@@ -106,6 +106,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+		INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/esd/tasreg/u-boot.lds +5 -0
index f697ccd..b302ba0 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/esteem192e/u-boot.lds +5 -0
index 163b83d..83d9ec0 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/etx094/u-boot.lds +5 -0
index 8465937..a98ee23 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/evb64260/u-boot.lds +5 -0
index 2d031ef..1eb7f30 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/fads/u-boot.lds +5 -0
index 9ea0674..deee255 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/flagadm/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/flagadm/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5208evbe/u-boot.lds +5 -0
index 6e39be1..e184013 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m52277evb/u-boot.lds +5 -0
index 3e9f4c3..6214098 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5235evb/u-boot.lds +5 -0
index d39e734..9b5e5e2 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5249evb/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5253demo/u-boot.lds +5 -0
index cbd2831..3487a8d 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5253evbe/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5271evb/u-boot.lds +5 -0
index 4717036..3a86350 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5272c3/u-boot.lds +5 -0
index c4039ed..d49b0ef 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5275evb/u-boot.lds +5 -0
index 6c2dfe8..b37b06b 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5282evb/u-boot.lds +5 -0
index 4ba1964..3132a55 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m53017evb/u-boot.lds +5 -0
index 80935f2..662bd31 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5329evb/u-boot.lds +5 -0
index 40af8bc..fe5be41 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m5373evb/u-boot.lds +5 -0
index 19342ac..8ff6fc9 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m54451evb/u-boot.lds +5 -0
index 45924b7..ea0984f 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m54455evb/u-boot.lds +5 -0
index f341449..fe1b58c 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m547xevb/u-boot.lds +5 -0
index 5472689..877eaf2 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/m548xevb/u-boot.lds +5 -0
index cf3f38c..33e054b 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/freescale/mx31ads/u-boot.lds +5 -0
index 79eb7ac..3db5dc3 100644
@@ -62,6 +62,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
board/gaisler/gr_cpci_ax2000/u-boot.lds +5 -0
index 87cb8e3..416761b 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/gr_ep2s60/u-boot.lds +5 -0
index 2fb44aa..43faf26 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/gr_xc3s_1500/u-boot.lds +5 -0
index 8719e97..14c631e 100644
@@ -90,6 +90,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/grsim/u-boot.lds +5 -0
index 33890b5..4766465 100644
@@ -89,6 +89,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gaisler/grsim_leon2/u-boot.lds +5 -0
index cf6e502..cbd4ed6 100644
@@ -89,6 +89,11 @@ SECTIONS
 	. = ALIGN(4);
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	.data	:
 	{
 		*(.data)
board/gen860t/u-boot-flashenv.lds +4 -0
index 5bb6c62..1302eaa 100644
@@ -75,6 +75,10 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+		INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/gen860t/u-boot.lds +5 -0
index be99b51..de57dd1 100644
@@ -75,6 +75,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/genietv/u-boot.lds +5 -0
index 1d66a9b..45c56bb 100644
@@ -84,6 +84,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/genietv/u-boot.lds.debug +5 -0
index cfa4ef3..4783367 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/hermes/u-boot.lds +5 -0
index ca97115..8b90f6c 100644
@@ -76,6 +76,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/hermes/u-boot.lds.debug +5 -0
index 8a197de..53ffee1 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/hymod/u-boot.lds +5 -0
index 1309f20..83d2dd4 100644
@@ -114,6 +114,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/hymod/u-boot.lds.debug +5 -0
index 99c48f2..47ad2e7 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/icu862/u-boot.lds +5 -0
index 93c79a6..23d4405 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/icu862/u-boot.lds.debug +5 -0
index 91d3e67..203f704 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/idmr/u-boot.lds +5 -0
index f697ccd..b302ba0 100644
@@ -69,6 +69,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/incaip/u-boot.lds +5 -0
index 4a59cea..1b43dac 100644
@@ -60,6 +60,11 @@ SECTIONS
 	  __u_boot_cmd_end = .;
 	}
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/ip860/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ip860/u-boot.lds.debug +5 -0
index 2f61b11..4fc4c0f 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/ivm/u-boot.lds +5 -0
index 1e843eb..d0d9a37 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/ivm/u-boot.lds.debug +5 -0
index 732a46f..f4c04b3 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/korat/u-boot-F7FC.lds +3 -0
index 6a017e3..da33f00 100644
@@ -112,6 +112,9 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
 
   . = .;
   __start___ex_table = .;
board/kup/kup4k/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/kup/kup4k/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/kup/kup4x/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/kup/kup4x/u-boot.lds.debug +5 -0
index 4491edd..c76f9d0 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/lantec/u-boot.lds +5 -0
index de0b355..9360839 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/lantec/u-boot.lds.debug +5 -0
index 856a99b..7c1ccb2 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/lwmon/u-boot.lds +5 -0
index 8bf7324..7dfa157 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/lwmon/u-boot.lds.debug +5 -0
index 2412234..0778758 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/manroland/uc100/u-boot.lds +5 -0
index 731cec9..d291d60 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/matrix_vision/mvsmr/u-boot.lds +5 -0
index 57c37de..2445b97 100644
@@ -78,6 +78,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mbx8xx/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mbx8xx/u-boot.lds.debug +5 -0
index a95c47f..7e62932 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/micronas/vct/u-boot.lds +5 -0
index 3a05ef9..4d9fab9 100644
@@ -60,6 +60,11 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/mousse/u-boot.lds +5 -0
index dae2cfc..863468e 100644
@@ -64,6 +64,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/mpl/pip405/u-boot.lds.debug +5 -0
index fcf8ebb..78fe44c 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/mvblue/u-boot.lds +5 -0
index 11624d2..4610de9 100644
@@ -74,6 +74,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netphone/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netphone/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netta/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netta/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netta2/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netta2/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/netvia/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/netvia/u-boot.lds.debug +5 -0
index 6c7d698..2e3f83e 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/nx823/u-boot.lds +5 -0
index fd4e8a5..4385876 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/nx823/u-boot.lds.debug +5 -0
index c771102..fd278a4 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/openrisc/openrisc-generic/u-boot.lds +5 -0
index 1aed197..bc610bd 100644
@@ -30,6 +30,11 @@ SECTIONS
 	 .u_boot_cmd : { *(.u_boot_cmd) } > ram
 	 __u_boot_cmd_end = .;
 
+	 . = ALIGN(4);
+	 .u_boot_list : {
+	INCLUDE u-boot.lst;
+	 }
+
 	.rodata : {
 		*(.rodata);
 		*(.rodata.*)
board/pb1x00/u-boot.lds +5 -0
index bd0dee1..522c438 100644
@@ -60,6 +60,11 @@ SECTIONS
 	  __u_boot_cmd_end = .;
 	}
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/qemu-mips/u-boot.lds +5 -0
index 9460b20..c45ccd0 100644
@@ -62,6 +62,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 	}
 
+	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/qi/qi_lb60/u-boot.lds +5 -0
index 7317652..e1bb826 100644
@@ -51,6 +51,11 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
+	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
 	uboot_end_data = .;
 	num_got_entries = (__got_end - __got_start) >> 2;
 
board/quantum/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/r360mpi/u-boot.lds +5 -0
index 2fa085a..181468d 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/rbc823/u-boot.lds +5 -0
index d943fb6..50c3eee 100644
@@ -81,6 +81,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
   . = .;
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/renesas/sh7757lcr/u-boot.lds +4 -0
index 38ebe88..cff6ff5 100644
@@ -85,6 +85,10 @@ SECTIONS
 	}
 	PROVIDE (__u_boot_cmd_end = .);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	PROVIDE (reloc_dst_end = .);
 	/* _reloc_dst_end = .; */
 
board/rsdproto/u-boot.lds +5 -0
index a729c52..ee651d4 100644
@@ -101,6 +101,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/samsung/smdk5250/smdk5250-uboot-spl.lds +5 -0
index d78dd77..c6e6414 100644
@@ -48,6 +48,11 @@ SECTIONS
 	.data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram
 	. = ALIGN(4);
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	} >.sram
+	. = ALIGN(4);
+
 	/* Align .machine_param on 256 byte boundary for easier searching */
 	.machine_param ALIGN(0x100) : { *(.machine_param) } >.sram
 	. = ALIGN(4);
board/samsung/smdk6400/u-boot-nand.lds +6 -1
index f162815..27693f0e 100644
@@ -51,7 +51,12 @@ SECTIONS
 	.u_boot_cmd : { *(.u_boot_cmd) }
 	__u_boot_cmd_end = .;
 
-	. = ALIGN(4);
+	. = align(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = align(4);
 	.mmudata : { *(.mmudata) }
 
 	. = ALIGN(4);
board/sandburst/karef/u-boot.lds.debug +5 -0
index 31746e3..586dc95 100644
@@ -119,6 +119,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/sandburst/metrobox/u-boot.lds.debug +5 -0
index 4922bd2..48f5be0 100644
@@ -119,6 +119,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/sandpoint/u-boot.lds +5 -0
index e382fd1..a4421a7 100644
@@ -72,6 +72,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/siemens/IAD210/u-boot.lds +5 -0
index 0e78e4f..3532d3b 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/sixnet/u-boot.lds +5 -0
index 02d1980..4153927 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/snmc/qs850/u-boot.lds +5 -0
index 9ab248a..039597e 100644
@@ -73,6 +73,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/snmc/qs860t/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spc1920/u-boot.lds +5 -0
index d0b60cf..92f78be 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spd8xx/u-boot.lds +5 -0
index a84e7fd..ada68f1 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/spd8xx/u-boot.lds.debug +5 -0
index a95c47f..7e62932 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/stx/stxxtc/u-boot.lds +5 -0
index a949e4f..86bb3b4 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/stx/stxxtc/u-boot.lds.debug +5 -0
index a001f3f..480feff 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/svm_sc8xx/u-boot.lds +5 -0
index c65f022..af83956 100644
@@ -87,6 +87,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/tqc/tqm8xx/u-boot.lds +5 -0
index 4f08be6..226cfc1 100644
@@ -87,6 +87,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/v37/u-boot.lds +5 -0
index e62d53d..feb3870 100644
@@ -70,6 +70,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/vpac270/u-boot-spl.lds +4 -0
index 1958c2f..b3551dd 100644
@@ -57,6 +57,10 @@ SECTIONS
 		*(.data)
 	}
 
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
 	. = ALIGN(4);
 
 	.rel.dyn : {
board/w7o/u-boot.lds.debug +5 -0
index 1c67b30..520acd5 100644
@@ -110,6 +110,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/westel/amx860/u-boot.lds +5 -0
index 3470b43..e642a3a 100644
@@ -79,6 +79,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   . = .;
   __start___ex_table = .;
board/westel/amx860/u-boot.lds.debug +5 -0
index 91d3e67..203f704 100644
@@ -111,6 +111,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/xes/xpedite1000/u-boot.lds.debug +5 -0
index e2e66ae..d685738 100644
@@ -115,6 +115,11 @@ SECTIONS
   .u_boot_cmd : { *(.u_boot_cmd) }
   __u_boot_cmd_end = .;
 
+  . = ALIGN(4);
+  .u_boot_list : {
+	INCLUDE u-boot.lst;
+  }
+
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
examples/standalone/sparc.lds +1 -0
index 9733daa..646b80f 100644
@@ -46,6 +46,7 @@ SECTIONS
 	{
 		*(.data)
 	}
+
 	. = ALIGN(4);
 	__data_end = .;
 
nand_spl/board/freescale/mx31pdk/u-boot.lds +5 -0
index d2b08f6..363690f 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+		INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
nand_spl/board/karo/tx25/u-boot.lds +5 -0
index d2b08f6..8332710 100644
@@ -51,6 +51,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 		__rel_dyn_start = .;
nand_spl/board/samsung/smdk6400/u-boot.lds +5 -0
index 567f635..7ceae32 100644
@@ -55,6 +55,11 @@ SECTIONS
 	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
+
+	. = ALIGN(4);
 
 	.rel.dyn : {
 	__rel_dyn_start = .;
Signature · 1 line
1.7.10.4
#13 lore raw

PATCH 4/5 common: Convert the U-Boot commands to LG-arrays

In reply to Marek Vasut

This patch converts the old method of creating a list of command onto the new LG-arrays code. The old u_boot_cmd section is converted to new u_boot_list_cmd subsection and LG-array macros used as needed.

Minor adjustments had to be made to the common code to work with the LG-array macros, mostly the fixup_cmdtable() calls are now passed the ll_entry_start and ll_entry_count instead of linker-generated symbols.

The command.c had to be adjusted as well so it would use the newly introduced LG-array API instead of directly using linker-generated symbols.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 arch/arm/imx-common/cmd_bmode.c |   11 +++++++----
 arch/avr32/lib/board.c          |    4 ++--
 arch/m68k/lib/board.c           |    4 ++--
 arch/mips/lib/board.c           |    4 ++--
 arch/nds32/lib/board.c          |    4 ++--
 arch/sparc/lib/board.c          |    4 ++--
 common/cmd_help.c               |    8 ++++----
 common/command.c                |   17 ++++++++++-------
 doc/README.commands             |   10 +++++-----
 include/command.h               |   26 ++++++++++++++------------
 10 files changed, 50 insertions(+), 42 deletions(-)
arch/arm/imx-common/cmd_bmode.c +7 -4
index 02fe72e..ddc14b0 100644
@@ -24,6 +24,7 @@
 #include <asm/io.h>
 #include <asm/imx-common/boot_mode.h>
 #include <malloc.h>
+#include <command.h>
 
 static const struct boot_mode *modes[2];
 
@@ -103,9 +104,11 @@ void add_board_boot_modes(const struct boot_mode *p)
 	int size;
 	char *dest;
 
-	if (__u_boot_cmd_bmode.usage) {
-		free(__u_boot_cmd_bmode.usage);
-		__u_boot_cmd_bmode.usage = NULL;
+	cmd_tbl_t *entry = ll_entry_get(cmd_tbl_t, bmode, cmd);
+
+	if (entry->usage) {
+		free(entry->usage);
+		entry->usage = NULL;
 	}
 
 	modes[0] = p;
@@ -114,6 +117,6 @@ void add_board_boot_modes(const struct boot_mode *p)
 	dest = malloc(size);
 	if (dest) {
 		create_usage(dest);
-		__u_boot_cmd_bmode.usage = dest;
+		entry->usage = dest;
 	}
 }
arch/avr32/lib/board.c +2 -2
index 9d3b76e..e3287c4 100644
@@ -272,8 +272,8 @@ void board_init_r(gd_t *new_gd, ulong dest_addr)
 	/*
 	 * We have to relocate the command table manually
 	 */
-	fixup_cmdtable(&__u_boot_cmd_start,
-		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start));
+	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
+			ll_entry_count(cmd_tbl_t, cmd));
 #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */
 
 	/* there are some other pointer constants we must deal with */
arch/m68k/lib/board.c +2 -2
index 2add630..fc94f2b 100644
@@ -417,8 +417,8 @@ void board_init_r (gd_t *id, ulong dest_addr)
 	/*
 	 * We have to relocate the command table manually
 	 */
-	fixup_cmdtable(&__u_boot_cmd_start,
-		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start));
+	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
+			ll_entry_count(cmd_tbl_t, cmd));
 #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */
 
 	/* there are some other pointer constants we must deal with */
arch/mips/lib/board.c +2 -2
index b14b33e..7ddd778 100644
@@ -266,8 +266,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
 	/*
 	 * We have to relocate the command table manually
 	 */
-	fixup_cmdtable(&__u_boot_cmd_start,
-		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start));
+	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
+			ll_entry_count(cmd_tbl_t, cmd));
 #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */
 
 	/* there are some other pointer constants we must deal with */
arch/nds32/lib/board.c +2 -2
index 17d3ee0..b2fa40d 100644
@@ -320,8 +320,8 @@ void board_init_r(gd_t *id, ulong dest_addr)
 	/*
 	 * We have to relocate the command table manually
 	 */
-	fixup_cmdtable(&__u_boot_cmd_start,
-		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start));
+	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
+			ll_entry_count(cmd_tbl_t, cmd));
 #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */
 
 #ifdef CONFIG_SERIAL_MULTI
arch/sparc/lib/board.c +2 -2
index ff0e0f2..32d025a 100644
@@ -246,8 +246,8 @@ void board_init_f(ulong bootflag)
 	/*
 	 * We have to relocate the command table manually
 	 */
-	fixup_cmdtable(&__u_boot_cmd_start,
-		(ulong)(&__u_boot_cmd_end - &__u_boot_cmd_start));
+	fixup_cmdtable(ll_entry_start(cmd_tbl_t, cmd),
+			ll_entry_count(cmd_tbl_t, cmd));
 #endif /* defined(CONFIG_NEEDS_MANUAL_RELOC) */
 
 #if defined(CONFIG_CMD_AMBAPP) && defined(CONFIG_SYS_AMBAPP_PRINT_ON_STARTUP)
common/cmd_help.c +4 -4
index 8c8178e..3178a1a 100644
@@ -26,9 +26,9 @@
 
 int do_help(cmd_tbl_t * cmdtp, int flag, int argc, char * const argv[])
 {
-	return _do_help(&__u_boot_cmd_start,
-			&__u_boot_cmd_end - &__u_boot_cmd_start,
-			cmdtp, flag, argc, argv);
+	cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd);
+	const int len = ll_entry_count(cmd_tbl_t, cmd);
+	return _do_help(start, len, cmdtp, flag, argc, argv);
 }
 
 U_BOOT_CMD(
@@ -41,7 +41,7 @@ U_BOOT_CMD(
 );
 
 /* This does not use the U_BOOT_CMD macro as ? can't be used in symbol names */
-cmd_tbl_t __u_boot_cmd_question_mark Struct_Section = {
+ll_entry_declare(cmd_tbl_t, question_mark, cmd, cmd) = {
 	"?",	CONFIG_SYS_MAXARGS,	1,	do_help,
 	"alias for 'help'",
 #ifdef  CONFIG_SYS_LONGHELP
common/command.c +10 -7
index aa0fb0a..50c8429 100644
@@ -137,8 +137,9 @@ cmd_tbl_t *find_cmd_tbl (const char *cmd, cmd_tbl_t *table, int table_len)
 
 cmd_tbl_t *find_cmd (const char *cmd)
 {
-	int len = &__u_boot_cmd_end - &__u_boot_cmd_start;
-	return find_cmd_tbl(cmd, &__u_boot_cmd_start, len);
+	cmd_tbl_t *start = ll_entry_start(cmd_tbl_t, cmd);
+	const int len = ll_entry_count(cmd_tbl_t, cmd);
+	return find_cmd_tbl(cmd, start, len);
 }
 
 int cmd_usage(const cmd_tbl_t *cmdtp)
@@ -181,7 +182,9 @@ int var_complete(int argc, char * const argv[], char last_char, int maxv, char *
 
 static int complete_cmdv(int argc, char * const argv[], char last_char, int maxv, char *cmdv[])
 {
-	cmd_tbl_t *cmdtp;
+	cmd_tbl_t *cmdtp = ll_entry_start(cmd_tbl_t, cmd);
+	const int count = ll_entry_count(cmd_tbl_t, cmd);
+	const cmd_tbl_t *cmdend = cmdtp + count;
 	const char *p;
 	int len, clen;
 	int n_found = 0;
@@ -195,12 +198,12 @@ static int complete_cmdv(int argc, char * const argv[], char last_char, int maxv
 
 	if (argc == 0) {
 		/* output full list of commands */
-		for (cmdtp = &__u_boot_cmd_start; cmdtp != &__u_boot_cmd_end; cmdtp++) {
+		for (; cmdtp != cmdend; cmdtp++) {
 			if (n_found >= maxv - 2) {
-				cmdv[n_found++] = "...";
+				cmdv[n_found] = "...";
 				break;
 			}
-			cmdv[n_found++] = cmdtp->name;
+			cmdv[n_found] = cmdtp->name;
 		}
 		cmdv[n_found] = NULL;
 		return n_found;
@@ -228,7 +231,7 @@ static int complete_cmdv(int argc, char * const argv[], char last_char, int maxv
 		len = p - cmd;
 
 	/* return the partial matches */
-	for (cmdtp = &__u_boot_cmd_start; cmdtp != &__u_boot_cmd_end; cmdtp++) {
+	for (; cmdtp != cmdend; cmdtp++) {
 
 		clen = strlen(cmdtp->name);
 		if (clen < len)
doc/README.commands +5 -5
index 125f077..ec492b2 100644
@@ -15,12 +15,12 @@ help:	 Long description. This is a string
 
 **** Behind the scene ******
 
-The structure created is named with a special prefix (__u_boot_cmd_)
+The structure created is named with a special prefix (__u_boot_list_cmd_)
 and placed by the linker in a special section.
 
 This makes it possible for the final link to extract all commands
 compiled into any object code and construct a static array so the
-command can be found in an array starting at __u_boot_cmd_start.
+command can be found in an array starting@_u_boot_list_cmd__start.
 
 To ensure that the linker does not discard these symbols when linking
 full U-Boot we generate a list of all the commands we have built (based
@@ -33,6 +33,6 @@ If a new board is defined do not forget to define the command section
 by writing in u-boot.lds ($(TOPDIR)/board/boardname/u-boot.lds) these
 3 lines:
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
+	.u_boot_list : {
+	INCLUDE u-boot.lst;
+	}
include/command.h +14 -12
index 1f06aa1..24864d5 100644
@@ -28,6 +28,7 @@
 #define __COMMAND_H
 
 #include <config.h>
+#include <linker_lists.h>
 
 #ifndef NULL
 #define NULL	0
@@ -153,9 +154,6 @@ int cmd_process(int flag, int argc, char * const argv[],
 #define CMD_FLAG_REPEAT		0x0001	/* repeat last command		*/
 #define CMD_FLAG_BOOTD		0x0002	/* command is from bootd	*/
 
-#define Struct_Section  __attribute__((unused, section(".u_boot_cmd"), \
-		aligned(4)))
-
 #ifdef CONFIG_AUTO_COMPLETE
 # define _CMD_COMPLETE(x) x,
 #else
@@ -167,18 +165,22 @@ int cmd_process(int flag, int argc, char * const argv[],
 # define _CMD_HELP(x)
 #endif
 
-#define U_BOOT_CMD_MKENT_COMPLETE(name,maxargs,rep,cmd,usage,help,comp) \
-	{#name, maxargs, rep, cmd, usage, _CMD_HELP(help) _CMD_COMPLETE(comp)}
+#define U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd,		\
+				_usage, _help, _comp)			\
+		{ #_name, _maxargs, _rep, _cmd, _usage,			\
+			_CMD_HELP(_help) _CMD_COMPLETE(_comp) }
 
-#define U_BOOT_CMD_MKENT(name,maxargs,rep,cmd,usage,help) \
-	U_BOOT_CMD_MKENT_COMPLETE(name,maxargs,rep,cmd,usage,help,NULL)
+#define U_BOOT_CMD_MKENT(_name, _maxargs, _rep, _cmd, _usage, _help)	\
+	U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd,		\
+					_usage, _help, NULL)
 
-#define U_BOOT_CMD_COMPLETE(name,maxargs,rep,cmd,usage,help,comp) \
-	cmd_tbl_t __u_boot_cmd_##name Struct_Section = \
-		U_BOOT_CMD_MKENT_COMPLETE(name,maxargs,rep,cmd,usage,help,comp)
+#define U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, _comp) \
+	ll_entry_declare(cmd_tbl_t, _name, cmd, cmd) =			\
+		U_BOOT_CMD_MKENT_COMPLETE(_name, _maxargs, _rep, _cmd,	\
+						_usage, _help, _comp);
 
-#define U_BOOT_CMD(name,maxargs,rep,cmd,usage,help) \
-	U_BOOT_CMD_COMPLETE(name,maxargs,rep,cmd,usage,help,NULL)
+#define U_BOOT_CMD(_name, _maxargs, _rep, _cmd, _usage, _help)		\
+	U_BOOT_CMD_COMPLETE(_name, _maxargs, _rep, _cmd, _usage, _help, NULL)
 
 #if defined(CONFIG_NEEDS_MANUAL_RELOC)
 void fixup_cmdtable(cmd_tbl_t *cmdtp, int size);
Signature · 1 line
1.7.10.4
#14 lore raw

PATCH 4/5 common: Convert the U-Boot commands to LG-arrays

Hi Marek,

Quoted 8 lines · Marek Vasut

This patch converts the old method of creating a list of command onto the new LG-arrays code. The old u_boot_cmd section is converted to new u_boot_list_cmd subsection and LG-array macros used as needed.

Minor adjustments had to be made to the common code to work with the LG-array macros, mostly the fixup_cmdtable() calls are now passed the ll_entry_start and ll_entry_count instead of linker-generated symbols.

Quoted 8 lines

The command.c had to be adjusted as well so it would use the newly introduced LG-array API instead of directly using linker-generated symbols.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

#15 lore raw

PATCH 5/5 common: Discard the __u_boot_cmd section

In reply to Marek Vasut

The command declaration now uses the new LG-array method to generate list of commands. Thus the __u_boot_cmd section is now superseded and redundant and therefore can be removed. Also, remove externed symbols associated with this section from include/command.h .

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    3 ---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    3 ---
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    3 ---
 arch/arm/cpu/ixp/u-boot.lds                      |    3 ---
 arch/arm/cpu/u-boot.lds                          |    3 ---
 arch/avr32/cpu/u-boot.lds                        |    5 -----
 arch/blackfin/cpu/u-boot.lds                     |    6 ------
 arch/microblaze/cpu/u-boot.lds                   |   11 -----------
 arch/nds32/cpu/n1213/u-boot.lds                  |    3 ---
 arch/nios2/cpu/u-boot.lds                        |    7 -------
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    3 ---
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    3 ---
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    3 ---
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    3 ---
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    3 ---
 arch/sandbox/cpu/u-boot.lds                      |    3 ---
 arch/sh/cpu/sh2/u-boot.lds                       |    7 -------
 arch/sh/cpu/sh3/u-boot.lds                       |    7 -------
 arch/sh/cpu/sh4/u-boot.lds                       |    7 -------
 arch/x86/cpu/u-boot.lds                          |    4 ----
 board/BuS/eb_cpu5282/u-boot.lds                  |    3 ---
 board/LEOX/elpt860/u-boot.lds                    |    3 ---
 board/RPXClassic/u-boot.lds                      |    3 ---
 board/RPXClassic/u-boot.lds.debug                |    3 ---
 board/RPXlite/u-boot.lds                         |    3 ---
 board/RPXlite/u-boot.lds.debug                   |    3 ---
 board/RPXlite_dw/u-boot.lds                      |    3 ---
 board/RPXlite_dw/u-boot.lds.debug                |    3 ---
 board/RRvision/u-boot.lds                        |    3 ---
 board/actux1/u-boot.lds                          |    5 -----
 board/actux2/u-boot.lds                          |    5 -----
 board/actux3/u-boot.lds                          |    5 -----
 board/adder/u-boot.lds                           |    3 ---
 board/altera/nios2-generic/u-boot.lds            |    7 -------
 board/amcc/acadia/u-boot-nand.lds                |    3 ---
 board/amcc/bamboo/u-boot-nand.lds                |    3 ---
 board/amcc/canyonlands/u-boot-nand.lds           |    3 ---
 board/amcc/kilauea/u-boot-nand.lds               |    3 ---
 board/amcc/sequoia/u-boot-nand.lds               |    3 ---
 board/amcc/sequoia/u-boot-ram.lds                |    3 ---
 board/amirix/ap1000/u-boot.lds                   |    3 ---
 board/astro/mcf5373l/u-boot.lds                  |    3 ---
 board/c2mon/u-boot.lds                           |    3 ---
 board/c2mon/u-boot.lds.debug                     |    3 ---
 board/cobra5272/u-boot.lds                       |    3 ---
 board/cogent/u-boot.lds                          |    3 ---
 board/cogent/u-boot.lds.debug                    |    3 ---
 board/cray/L1/u-boot.lds.debug                   |    3 ---
 board/dave/PPChameleonEVB/u-boot.lds             |    3 ---
 board/dbau1x00/u-boot.lds                        |    9 ---------
 board/dvlhost/u-boot.lds                         |    5 -----
 board/eltec/mhpc/u-boot.lds                      |    3 ---
 board/eltec/mhpc/u-boot.lds.debug                |    3 ---
 board/emk/top860/u-boot.lds                      |    3 ---
 board/ep88x/u-boot.lds                           |    3 ---
 board/esd/dasa_sim/u-boot.lds                    |    3 ---
 board/esd/pmc440/u-boot-nand.lds                 |    3 ---
 board/esd/tasreg/u-boot.lds                      |    3 ---
 board/esteem192e/u-boot.lds                      |    3 ---
 board/etx094/u-boot.lds                          |    3 ---
 board/evb64260/u-boot.lds                        |    3 ---
 board/fads/u-boot.lds                            |    3 ---
 board/flagadm/u-boot.lds                         |    3 ---
 board/flagadm/u-boot.lds.debug                   |    3 ---
 board/freescale/m5208evbe/u-boot.lds             |    3 ---
 board/freescale/m52277evb/u-boot.lds             |    3 ---
 board/freescale/m5235evb/u-boot.lds              |    3 ---
 board/freescale/m5249evb/u-boot.lds              |    3 ---
 board/freescale/m5253demo/u-boot.lds             |    3 ---
 board/freescale/m5253evbe/u-boot.lds             |    3 ---
 board/freescale/m5271evb/u-boot.lds              |    3 ---
 board/freescale/m5272c3/u-boot.lds               |    3 ---
 board/freescale/m5275evb/u-boot.lds              |    3 ---
 board/freescale/m5282evb/u-boot.lds              |    3 ---
 board/freescale/m53017evb/u-boot.lds             |    3 ---
 board/freescale/m5329evb/u-boot.lds              |    3 ---
 board/freescale/m5373evb/u-boot.lds              |    3 ---
 board/freescale/m54451evb/u-boot.lds             |    3 ---
 board/freescale/m54455evb/u-boot.lds             |    3 ---
 board/freescale/m547xevb/u-boot.lds              |    3 ---
 board/freescale/m548xevb/u-boot.lds              |    3 ---
 board/freescale/mx31ads/u-boot.lds               |    3 ---
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    4 ----
 board/gaisler/gr_ep2s60/u-boot.lds               |    4 ----
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    4 ----
 board/gaisler/grsim/u-boot.lds                   |    4 ----
 board/gaisler/grsim_leon2/u-boot.lds             |    4 ----
 board/gen860t/u-boot-flashenv.lds                |    3 ---
 board/gen860t/u-boot.lds                         |    3 ---
 board/genietv/u-boot.lds                         |    3 ---
 board/genietv/u-boot.lds.debug                   |    3 ---
 board/hermes/u-boot.lds                          |    3 ---
 board/hermes/u-boot.lds.debug                    |    3 ---
 board/hymod/u-boot.lds                           |    3 ---
 board/hymod/u-boot.lds.debug                     |    3 ---
 board/icu862/u-boot.lds                          |    3 ---
 board/icu862/u-boot.lds.debug                    |    3 ---
 board/idmr/u-boot.lds                            |    3 ---
 board/incaip/u-boot.lds                          |    9 ---------
 board/ip860/u-boot.lds                           |    3 ---
 board/ip860/u-boot.lds.debug                     |    3 ---
 board/ivm/u-boot.lds                             |    3 ---
 board/ivm/u-boot.lds.debug                       |    3 ---
 board/korat/u-boot-F7FC.lds                      |    3 ---
 board/kup/kup4k/u-boot.lds                       |    3 ---
 board/kup/kup4k/u-boot.lds.debug                 |    3 ---
 board/kup/kup4x/u-boot.lds                       |    3 ---
 board/kup/kup4x/u-boot.lds.debug                 |    3 ---
 board/lantec/u-boot.lds                          |    3 ---
 board/lantec/u-boot.lds.debug                    |    3 ---
 board/lwmon/u-boot.lds                           |    3 ---
 board/lwmon/u-boot.lds.debug                     |    3 ---
 board/manroland/uc100/u-boot.lds                 |    3 ---
 board/matrix_vision/mvsmr/u-boot.lds             |    3 ---
 board/mbx8xx/u-boot.lds                          |    3 ---
 board/mbx8xx/u-boot.lds.debug                    |    3 ---
 board/micronas/vct/u-boot.lds                    |    9 ---------
 board/ml2/u-boot.lds                             |    3 ---
 board/ml2/u-boot.lds.debug                       |    3 ---
 board/mousse/u-boot.lds                          |    3 ---
 board/mousse/u-boot.lds.ram                      |    3 ---
 board/mousse/u-boot.lds.rom                      |    3 ---
 board/mpl/pip405/u-boot.lds.debug                |    3 ---
 board/mvblue/u-boot.lds                          |    3 ---
 board/netphone/u-boot.lds                        |    3 ---
 board/netphone/u-boot.lds.debug                  |    3 ---
 board/netta/u-boot.lds                           |    3 ---
 board/netta/u-boot.lds.debug                     |    3 ---
 board/netta2/u-boot.lds                          |    3 ---
 board/netta2/u-boot.lds.debug                    |    3 ---
 board/netvia/u-boot.lds                          |    3 ---
 board/netvia/u-boot.lds.debug                    |    3 ---
 board/nx823/u-boot.lds                           |    3 ---
 board/nx823/u-boot.lds.debug                     |    3 ---
 board/openrisc/openrisc-generic/u-boot.lds       |    3 ---
 board/pb1x00/u-boot.lds                          |    9 ---------
 board/qemu-mips/u-boot.lds                       |    9 ---------
 board/qi/qi_lb60/u-boot.lds                      |    3 ---
 board/quantum/u-boot.lds                         |    3 ---
 board/r360mpi/u-boot.lds                         |    3 ---
 board/rbc823/u-boot.lds                          |    3 ---
 board/renesas/sh7757lcr/u-boot.lds               |    7 -------
 board/rsdproto/u-boot.lds                        |    3 ---
 board/samsung/smdk6400/u-boot-nand.lds           |    3 ---
 board/sandburst/karef/u-boot.lds.debug           |    3 ---
 board/sandburst/metrobox/u-boot.lds.debug        |    3 ---
 board/sandpoint/u-boot.lds                       |    3 ---
 board/siemens/IAD210/u-boot.lds                  |    3 ---
 board/sixnet/u-boot.lds                          |    3 ---
 board/snmc/qs850/u-boot.lds                      |    3 ---
 board/snmc/qs860t/u-boot.lds                     |    3 ---
 board/spc1920/u-boot.lds                         |    3 ---
 board/spd8xx/u-boot.lds                          |    3 ---
 board/spd8xx/u-boot.lds.debug                    |    3 ---
 board/stx/stxxtc/u-boot.lds                      |    3 ---
 board/stx/stxxtc/u-boot.lds.debug                |    3 ---
 board/svm_sc8xx/u-boot.lds                       |    3 ---
 board/tqc/tqm8xx/u-boot.lds                      |    3 ---
 board/v37/u-boot.lds                             |    3 ---
 board/w7o/u-boot.lds.debug                       |    3 ---
 board/westel/amx860/u-boot.lds                   |    3 ---
 board/westel/amx860/u-boot.lds.debug             |    3 ---
 board/xes/xpedite1000/u-boot.lds.debug           |    3 ---
 include/command.h                                |    2 --
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    3 ---
 nand_spl/board/karo/tx25/u-boot.lds              |    3 ---
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    3 ---
 175 files changed, 605 deletions(-)
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +0 -3
index 6ad9169..7da65ab 100644
@@ -48,9 +48,6 @@ SECTIONS
 	.got : { *(.got) }
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -3
index dd12607..2a9b150 100644
@@ -50,9 +50,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +0 -3
index 65f80c2..abb8aa1 100644
@@ -50,9 +50,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/arm/cpu/ixp/u-boot.lds +0 -3
index e08f10b..e444619 100644
@@ -46,9 +46,6 @@ SECTIONS
 	. = ALIGN(4);
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/arm/cpu/u-boot.lds +0 -3
index 18eaf73..71adb6c 100644
@@ -49,9 +49,6 @@ SECTIONS
 	. = ALIGN(4);
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/avr32/cpu/u-boot.lds +0 -5
index 5aef19b..d035502 100644
@@ -47,11 +47,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : {
-		KEEP(*(.u_boot_cmd))
-	}
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/blackfin/cpu/u-boot.lds +0 -6
index be70d81..0c87618 100644
@@ -112,12 +112,6 @@ SECTIONS
 		CONSTRUCTORS
 	} >ram_data
 
-	.u_boot_cmd :
-	{
-		___u_boot_cmd_start = .;
-		*(.u_boot_cmd)
-		___u_boot_cmd_end = .;
-	} >ram_data
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/microblaze/cpu/u-boot.lds +0 -11
index 86773b5e..7ef14a6 100644
@@ -50,17 +50,6 @@ SECTIONS
 		__data_end = .;
 	}
 
-	.u_boot_cmd ALIGN(0x4):
-	{
-		. = .;
-		__u_boot_cmd_start = .;
-		*(.u_boot_cmd)
-		__u_boot_cmd_end = .;
-
-		. = ALIGN(4);
-		.u_boot_list : {
-	INCLUDE u-boot.lst;
-		}
 	}
 
 	.bss ALIGN(0x4):
arch/nds32/cpu/n1213/u-boot.lds +0 -3
index 48d5b90..c46d8bb 100644
@@ -52,9 +52,6 @@ SECTIONS
 	}
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/nios2/cpu/u-boot.lds +0 -7
index 33cd0e2..4fd2fb0 100644
@@ -45,13 +45,6 @@ SECTIONS
 	 * the initialization code relocates the command table as
 	 * well -- admittedly, this is just pure laziness ;-)
 	 */
-	__u_boot_cmd_start = .;
-	.u_boot_cmd :
-	{
-	  *(.u_boot_cmd)
-	}
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/powerpc/cpu/74xx_7xx/u-boot.lds +0 -3
index 049ae63..0575b68 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc512x/u-boot.lds +0 -3
index d93c097..4056af4 100644
@@ -57,9 +57,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc5xx/u-boot.lds +0 -3
index 2fbc379..7d1fc30 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds +0 -3
index 1574767..6f66ee0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
arch/powerpc/cpu/mpc5xxx/u-boot.lds +0 -3
index 52755e6..0d0fe22 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc8220/u-boot.lds +0 -3
index 222f907..db586ab 100644
@@ -59,9 +59,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc824x/u-boot.lds +0 -3
index bb16926..c2f1469 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc8260/u-boot.lds +0 -3
index 722d7fb..50f1713 100644
@@ -59,9 +59,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc83xx/u-boot.lds +0 -3
index 416bc07..be604a1 100644
@@ -58,9 +58,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds +0 -3
index 5563b5f..39886b5 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
arch/powerpc/cpu/mpc85xx/u-boot.lds +0 -3
index 009214b..4c26da9 100644
@@ -77,9 +77,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc86xx/u-boot.lds +0 -3
index e3b19d4..19b36f9 100644
@@ -64,9 +64,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/ppc4xx/u-boot.lds +0 -3
index 005ec61..6907b18 100644
@@ -78,9 +78,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/sandbox/cpu/u-boot.lds +0 -3
index 0a37657..dba1a32 100644
@@ -24,9 +24,6 @@
 
 SECTIONS
 {
-	__u_boot_cmd_start = .;
-	_u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/sh/cpu/sh2/u-boot.lds +0 -7
index 2331152..41a783d 100644
@@ -72,13 +72,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/sh/cpu/sh3/u-boot.lds +0 -7
index 9d99434..1c7cc80 100644
@@ -78,13 +78,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/sh/cpu/sh4/u-boot.lds +0 -7
index 8702c9e..70e7c54 100644
@@ -75,13 +75,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/x86/cpu/u-boot.lds +0 -4
index aa2b653..7c1eb6a 100644
@@ -33,10 +33,6 @@ SECTIONS
 	.text  : { *(.text*); }
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/BuS/eb_cpu5282/u-boot.lds +0 -3
index 3132a55..2d27f06 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/LEOX/elpt860/u-boot.lds +0 -3
index d85943c..5aafcfb 100644
@@ -86,9 +86,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXClassic/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXClassic/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite_dw/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite_dw/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RRvision/u-boot.lds +0 -3
index 3c2c708..3c42391 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/actux1/u-boot.lds +0 -5
index e5d59db..9ae694d 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/actux2/u-boot.lds +0 -5
index 09bb7ab..879bb07 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/actux3/u-boot.lds +0 -5
index 71b6791..843fc73 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/adder/u-boot.lds +0 -3
index 62afcb80..d6d3bd5 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/altera/nios2-generic/u-boot.lds +0 -7
index 764cc7d..13661c7 100644
@@ -46,13 +46,6 @@ SECTIONS
 	 * the initialization code relocates the command table as
 	 * well -- admittedly, this is just pure laziness ;-)
 	 */
-	__u_boot_cmd_start = .;
-	.u_boot_cmd :
-	{
-	  *(.u_boot_cmd)
-	}
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/amcc/acadia/u-boot-nand.lds +0 -3
index bc0356b..9e28604 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/bamboo/u-boot-nand.lds +0 -3
index 2382ea9..b9f9de1 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/canyonlands/u-boot-nand.lds +0 -3
index 0816387..001fa7f 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/kilauea/u-boot-nand.lds +0 -3
index bc0356b..9e28604 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/sequoia/u-boot-nand.lds +0 -3
index 94234de..163980e 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/sequoia/u-boot-ram.lds +0 -3
index 0f594f5..568529e 100644
@@ -64,9 +64,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amirix/ap1000/u-boot.lds +0 -3
index 575d390..d45dba6 100644
@@ -67,9 +67,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/astro/mcf5373l/u-boot.lds +0 -3
index d800805..9242af2 100644
@@ -109,9 +109,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/c2mon/u-boot.lds +0 -3
index a170f06..5652797 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/c2mon/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cobra5272/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cogent/u-boot.lds +0 -3
index 3a3d988..723c26f 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cogent/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cray/L1/u-boot.lds.debug +0 -3
index 78fe44c..0e3940f 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/dave/PPChameleonEVB/u-boot.lds +0 -3
index fb40e3d..9b9264b 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/dbau1x00/u-boot.lds +0 -9
index 0569133..471efc1 100644
@@ -54,15 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-
-	  . = ALIGN(4);
-	  .u_boot_list : {
-	INCLUDE u-boot.lst;
-	  }
 	}
 
 	uboot_end_data = .;
board/dvlhost/u-boot.lds +0 -5
index 897263e..83e3913 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/eltec/mhpc/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/eltec/mhpc/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/emk/top860/u-boot.lds +0 -3
index 887ee6b..2d738a4 100644
@@ -67,9 +67,6 @@ SECTIONS
 
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ep88x/u-boot.lds +0 -3
index 0c5a03e..47ea19c 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esd/dasa_sim/u-boot.lds +0 -3
index 9a3249d..b1842e1 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esd/pmc440/u-boot-nand.lds +0 -3
index d4ef403..910793b 100644
@@ -102,9 +102,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 		INCLUDE u-boot.lst;
board/esd/tasreg/u-boot.lds +0 -3
index b302ba0..053a54a 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esteem192e/u-boot.lds +0 -3
index 83d9ec0..ec757ad 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/etx094/u-boot.lds +0 -3
index a98ee23..f26e473 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/evb64260/u-boot.lds +0 -3
index 1eb7f30..e4f735a 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/fads/u-boot.lds +0 -3
index deee255..0549239 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/flagadm/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/flagadm/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5208evbe/u-boot.lds +0 -3
index e184013..41b1cc9 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m52277evb/u-boot.lds +0 -3
index 6214098..dc5150a 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5235evb/u-boot.lds +0 -3
index 9b5e5e2..8ddda1a 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5249evb/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5253demo/u-boot.lds +0 -3
index 3487a8d..1c2e067 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5253evbe/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5271evb/u-boot.lds +0 -3
index 3a86350..04ca088 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5272c3/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5275evb/u-boot.lds +0 -3
index b37b06b..335acbc 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5282evb/u-boot.lds +0 -3
index 3132a55..2d27f06 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m53017evb/u-boot.lds +0 -3
index 662bd31..dab62bf 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5329evb/u-boot.lds +0 -3
index fe5be41..e3ac171 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5373evb/u-boot.lds +0 -3
index 8ff6fc9..fe0bb7d 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m54451evb/u-boot.lds +0 -3
index ea0984f..3eb25dd 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m54455evb/u-boot.lds +0 -3
index fe1b58c..186d122 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m547xevb/u-boot.lds +0 -3
index 877eaf2..87744e7 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m548xevb/u-boot.lds +0 -3
index 33e054b..d877872 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/mx31ads/u-boot.lds +0 -3
index 3db5dc3..8f97de5 100644
@@ -57,9 +57,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_cpci_ax2000/u-boot.lds +0 -4
index 416761b..8c4a0e5 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_ep2s60/u-boot.lds +0 -4
index 43faf26..c647246 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_xc3s_1500/u-boot.lds +0 -4
index 14c631e..96c98f3 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/grsim/u-boot.lds +0 -4
index 4766465..df7f187 100644
@@ -84,10 +84,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/grsim_leon2/u-boot.lds +0 -4
index cbd4ed6..ebcdf1c 100644
@@ -84,10 +84,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gen860t/u-boot-flashenv.lds +0 -3
index 1302eaa..e72e168 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 		INCLUDE u-boot.lst;
board/gen860t/u-boot.lds +0 -3
index de57dd1..6433828 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/genietv/u-boot.lds +0 -3
index 45c56bb..d1303ff 100644
@@ -80,9 +80,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/genietv/u-boot.lds.debug +0 -3
index 4783367..06ee03d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hermes/u-boot.lds +0 -3
index 8b90f6c..e912128 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hermes/u-boot.lds.debug +0 -3
index 53ffee1..3618c37 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hymod/u-boot.lds +0 -3
index 83d2dd4..b266ec5 100644
@@ -110,9 +110,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hymod/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/icu862/u-boot.lds +0 -3
index 23d4405..34f6b75 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/icu862/u-boot.lds.debug +0 -3
index 203f704..598b07d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/idmr/u-boot.lds +0 -3
index b302ba0..053a54a 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/incaip/u-boot.lds +0 -9
index 0569133..471efc1 100644
@@ -54,15 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-
-	  . = ALIGN(4);
-	  .u_boot_list : {
-	INCLUDE u-boot.lst;
-	  }
 	}
 
 	uboot_end_data = .;
board/ip860/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ip860/u-boot.lds.debug +0 -3
index 4fc4c0f..aedab36 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ivm/u-boot.lds +0 -3
index d0d9a37..9e9565b 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ivm/u-boot.lds.debug +0 -3
index f4c04b3..1f66592 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/korat/u-boot-F7FC.lds +0 -3
index da33f00..06ece39 100644
@@ -108,9 +108,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/kup/kup4k/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4k/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4x/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4x/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lantec/u-boot.lds +0 -3
index 9360839..4c80452 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lantec/u-boot.lds.debug +0 -3
index 7c1ccb2..b8dd61d 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lwmon/u-boot.lds +0 -3
index 7dfa157..6264d2d 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lwmon/u-boot.lds.debug +0 -3
index 0778758..dbc722e 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/manroland/uc100/u-boot.lds +0 -3
index d291d60..4a96fe4 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/matrix_vision/mvsmr/u-boot.lds +0 -3
index 2445b97..99b29ce 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mbx8xx/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mbx8xx/u-boot.lds.debug +0 -3
index 7e62932..da784f0 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/micronas/vct/u-boot.lds +0 -9
index 273d190..f3905e6 100644
@@ -53,15 +53,6 @@ SECTIONS
 	.sdata  : { *(.sdata*) }
 
 	. = ALIGN(4);
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-
-	  . = ALIGN(4);
-	  .u_boot_list : {
-	INCLUDE u-boot.lst;
-	  }
 	}
 
 	. = ALIGN(4);
board/ml2/u-boot.lds +0 -3
index a6cad6d..343d0bc 100644
@@ -64,9 +64,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ml2/u-boot.lds.debug +0 -3
index 78fe44c..0e3940f 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mousse/u-boot.lds +0 -3
index 863468e..fbfea7e 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mousse/u-boot.lds.ram +0 -3
index b3364be..5255651 100644
@@ -85,9 +85,6 @@ SECTIONS
   } > ram
   */
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
    __start___ex_table = .;
     __ex_table : { *(__ex_table) } > ram
board/mousse/u-boot.lds.rom +0 -3
index b4b9e02..29a34fb 100644
@@ -102,9 +102,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/mpl/pip405/u-boot.lds.debug +0 -3
index 78fe44c..0e3940f 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mvblue/u-boot.lds +0 -3
index 4610de9..e3de27a 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netphone/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netphone/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta2/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta2/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netvia/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netvia/u-boot.lds.debug +0 -3
index 2e3f83e..cb71f3c 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/nx823/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/nx823/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/openrisc/openrisc-generic/u-boot.lds +0 -3
index bc610bd..912aca0 100644
@@ -26,9 +26,6 @@ SECTIONS
 		_endtext = .;
 	}  > ram
 
-	 __u_boot_cmd_start = .;
-	 .u_boot_cmd : { *(.u_boot_cmd) } > ram
-	 __u_boot_cmd_end = .;
 
 	 . = ALIGN(4);
 	 .u_boot_list : {
board/pb1x00/u-boot.lds +0 -9
index cac9188..4af40c6 100644
@@ -54,15 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-
-	  . = ALIGN(4);
-	  .u_boot_list : {
-	INCLUDE u-boot.lst;
-	  }
 	}
 
 	uboot_end_data = .;
board/qemu-mips/u-boot.lds +0 -9
index 1f37e8b..4b159cf 100644
@@ -56,15 +56,6 @@ SECTIONS
 	.sdata  : { *(.sdata*) }
 
 	. = .;
-	.u_boot_cmd : {
-	__u_boot_cmd_start = .;
-	*(.u_boot_cmd)
-	__u_boot_cmd_end = .;
-
-	. = ALIGN(4);
-	.u_boot_list : {
-	INCLUDE u-boot.lst;
-	}
 	}
 
 	uboot_end_data = .;
board/qi/qi_lb60/u-boot.lds +0 -3
index e1bb826..286806a 100644
@@ -47,9 +47,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/quantum/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/r360mpi/u-boot.lds +0 -3
index 181468d..4748a6b 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/rbc823/u-boot.lds +0 -3
index 50c3eee..30e01d2 100644
@@ -77,9 +77,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/renesas/sh7757lcr/u-boot.lds +0 -7
index cff6ff5..76cb82e 100644
@@ -77,13 +77,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/rsdproto/u-boot.lds +0 -3
index ee651d4..d69af28 100644
@@ -97,9 +97,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/samsung/smdk6400/u-boot-nand.lds +0 -3
index 27693f0e..c34bd15 100644
@@ -47,9 +47,6 @@ SECTIONS
 	. = ALIGN(4);
 	.got : { *(.got) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = align(4);
 	.u_boot_list : {
board/sandburst/karef/u-boot.lds.debug +0 -3
index 586dc95..84e22ad 100644
@@ -115,9 +115,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sandburst/metrobox/u-boot.lds.debug +0 -3
index 48f5be0..4aa3f21 100644
@@ -115,9 +115,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sandpoint/u-boot.lds +0 -3
index a4421a7..ba20d64 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/siemens/IAD210/u-boot.lds +0 -3
index 3532d3b..ed60bf5 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sixnet/u-boot.lds +0 -3
index 4153927..bf5ac93 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/snmc/qs850/u-boot.lds +0 -3
index 039597e..17917bf 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/snmc/qs860t/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spc1920/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spd8xx/u-boot.lds +0 -3
index ada68f1..4fbabdf 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spd8xx/u-boot.lds.debug +0 -3
index 7e62932..da784f0 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/stx/stxxtc/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/stx/stxxtc/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/svm_sc8xx/u-boot.lds +0 -3
index af83956..e9caa85 100644
@@ -83,9 +83,6 @@ SECTIONS
 
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/tqc/tqm8xx/u-boot.lds +0 -3
index 226cfc1..ff70607 100644
@@ -83,9 +83,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/v37/u-boot.lds +0 -3
index feb3870..8626675 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/w7o/u-boot.lds.debug +0 -3
index 520acd5..a0a9814 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/westel/amx860/u-boot.lds +0 -3
index e642a3a..116c5a8 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/westel/amx860/u-boot.lds.debug +0 -3
index 203f704..598b07d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/xes/xpedite1000/u-boot.lds.debug +0 -3
index d685738..774dcbb 100644
@@ -111,9 +111,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
include/command.h +0 -2
index 24864d5..10bc260 100644
@@ -62,8 +62,6 @@ struct cmd_tbl_s {
 
 typedef struct cmd_tbl_s	cmd_tbl_t;
 
-extern cmd_tbl_t  __u_boot_cmd_start;
-extern cmd_tbl_t  __u_boot_cmd_end;
 
 #if defined(CONFIG_CMD_RUN)
 extern int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
nand_spl/board/freescale/mx31pdk/u-boot.lds +0 -3
index 363690f..7a75603 100644
@@ -46,9 +46,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
nand_spl/board/karo/tx25/u-boot.lds +0 -3
index 8332710..d7c7060 100644
@@ -46,9 +46,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
nand_spl/board/samsung/smdk6400/u-boot.lds +0 -3
index 7ceae32..7e92a02 100644
@@ -50,9 +50,6 @@ SECTIONS
 	. = ALIGN(4);
 	.got : { *(.got) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
Signature · 1 line
1.7.10.4
#16 lore raw

PATCH 5/5 common: Discard the __u_boot_cmd section

Hi Marek,

Quoted 9 lines · Marek Vasut

The command declaration now uses the new LG-array method to generate list of commands. Thus the __u_boot_cmd section is now superseded and redundant and therefore can be removed. Also, remove externed symbols associated with this section from include/command.h .

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>

---

#17 lore raw

PATCH 5/5 common: Discard the __u_boot_cmd section

In reply to Marek Vasut

Hi Marek,

2012/9/30 Marek Vasut <[email protected]>:

Quoted 8 lines

The command declaration now uses the new LG-array method to generate list of commands. Thus the __u_boot_cmd section is now superseded and redundant and therefore can be removed. Also, remove externed symbols associated with this section from include/command.h .

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
Quoted 8 lines

---

 arch/microblaze/cpu/u-boot.lds                   |   11 -----------
 board/dbau1x00/u-boot.lds                        |    9 ---------
 board/incaip/u-boot.lds                          |    9 ---------
 board/micronas/vct/u-boot.lds                    |    9 ---------
 board/pb1x00/u-boot.lds                          |    9 ---------
 board/qemu-mips/u-boot.lds                       |    9 ---------

Please recheck the lds files above. This patch removes code that you previously added:

-       . = ALIGN(4);
-       .u_boot_list : {
-       INCLUDE u-boot.lst;
-       }

This breaks almost all MIPS boards and probably Microblaze.

Signature · 2 lines
Best regards,
Daniel
#18 lore raw

PATCH v2 5/5 common: Discard the __u_boot_cmd section

In reply to Marek Vasut

The command declaration now uses the new LG-array method to generate list of commands. Thus the __u_boot_cmd section is now superseded and redundant and therefore can be removed. Also, remove externed symbols associated with this section from include/command.h .

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    3 ---
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    3 ---
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    3 ---
 arch/arm/cpu/ixp/u-boot.lds                      |    3 ---
 arch/arm/cpu/u-boot.lds                          |    3 ---
 arch/avr32/cpu/u-boot.lds                        |    5 -----
 arch/blackfin/cpu/u-boot.lds                     |    6 ------
 arch/microblaze/cpu/u-boot.lds                   |    8 --------
 arch/nds32/cpu/n1213/u-boot.lds                  |    3 ---
 arch/nios2/cpu/u-boot.lds                        |    7 -------
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    3 ---
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    3 ---
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    3 ---
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    3 ---
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    3 ---
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    3 ---
 arch/sandbox/cpu/u-boot.lds                      |    3 ---
 arch/sh/cpu/sh2/u-boot.lds                       |    7 -------
 arch/sh/cpu/sh3/u-boot.lds                       |    7 -------
 arch/sh/cpu/sh4/u-boot.lds                       |    7 -------
 arch/x86/cpu/u-boot.lds                          |    4 ----
 board/BuS/eb_cpu5282/u-boot.lds                  |    3 ---
 board/LEOX/elpt860/u-boot.lds                    |    3 ---
 board/RPXClassic/u-boot.lds                      |    3 ---
 board/RPXClassic/u-boot.lds.debug                |    3 ---
 board/RPXlite/u-boot.lds                         |    3 ---
 board/RPXlite/u-boot.lds.debug                   |    3 ---
 board/RPXlite_dw/u-boot.lds                      |    3 ---
 board/RPXlite_dw/u-boot.lds.debug                |    3 ---
 board/RRvision/u-boot.lds                        |    3 ---
 board/actux1/u-boot.lds                          |    5 -----
 board/actux2/u-boot.lds                          |    5 -----
 board/actux3/u-boot.lds                          |    5 -----
 board/adder/u-boot.lds                           |    3 ---
 board/altera/nios2-generic/u-boot.lds            |    7 -------
 board/amcc/acadia/u-boot-nand.lds                |    3 ---
 board/amcc/bamboo/u-boot-nand.lds                |    3 ---
 board/amcc/canyonlands/u-boot-nand.lds           |    3 ---
 board/amcc/kilauea/u-boot-nand.lds               |    3 ---
 board/amcc/sequoia/u-boot-nand.lds               |    3 ---
 board/amcc/sequoia/u-boot-ram.lds                |    3 ---
 board/astro/mcf5373l/u-boot.lds                  |    3 ---
 board/c2mon/u-boot.lds                           |    3 ---
 board/c2mon/u-boot.lds.debug                     |    3 ---
 board/cobra5272/u-boot.lds                       |    3 ---
 board/cogent/u-boot.lds                          |    3 ---
 board/cogent/u-boot.lds.debug                    |    3 ---
 board/cray/L1/u-boot.lds.debug                   |    3 ---
 board/dave/PPChameleonEVB/u-boot.lds             |    3 ---
 board/dbau1x00/u-boot.lds                        |    6 ------
 board/dvlhost/u-boot.lds                         |    5 -----
 board/eltec/mhpc/u-boot.lds                      |    3 ---
 board/eltec/mhpc/u-boot.lds.debug                |    3 ---
 board/emk/top860/u-boot.lds                      |    3 ---
 board/ep88x/u-boot.lds                           |    3 ---
 board/esd/dasa_sim/u-boot.lds                    |    3 ---
 board/esd/pmc440/u-boot-nand.lds                 |    3 ---
 board/esd/tasreg/u-boot.lds                      |    3 ---
 board/esteem192e/u-boot.lds                      |    3 ---
 board/etx094/u-boot.lds                          |    3 ---
 board/evb64260/u-boot.lds                        |    3 ---
 board/fads/u-boot.lds                            |    3 ---
 board/flagadm/u-boot.lds                         |    3 ---
 board/flagadm/u-boot.lds.debug                   |    3 ---
 board/freescale/m5208evbe/u-boot.lds             |    3 ---
 board/freescale/m52277evb/u-boot.lds             |    3 ---
 board/freescale/m5235evb/u-boot.lds              |    3 ---
 board/freescale/m5249evb/u-boot.lds              |    3 ---
 board/freescale/m5253demo/u-boot.lds             |    3 ---
 board/freescale/m5253evbe/u-boot.lds             |    3 ---
 board/freescale/m5271evb/u-boot.lds              |    3 ---
 board/freescale/m5272c3/u-boot.lds               |    3 ---
 board/freescale/m5275evb/u-boot.lds              |    3 ---
 board/freescale/m5282evb/u-boot.lds              |    3 ---
 board/freescale/m53017evb/u-boot.lds             |    3 ---
 board/freescale/m5329evb/u-boot.lds              |    3 ---
 board/freescale/m5373evb/u-boot.lds              |    3 ---
 board/freescale/m54451evb/u-boot.lds             |    3 ---
 board/freescale/m54455evb/u-boot.lds             |    3 ---
 board/freescale/m547xevb/u-boot.lds              |    3 ---
 board/freescale/m548xevb/u-boot.lds              |    3 ---
 board/freescale/mx31ads/u-boot.lds               |    3 ---
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    4 ----
 board/gaisler/gr_ep2s60/u-boot.lds               |    4 ----
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    4 ----
 board/gaisler/grsim/u-boot.lds                   |    4 ----
 board/gaisler/grsim_leon2/u-boot.lds             |    4 ----
 board/gen860t/u-boot-flashenv.lds                |    3 ---
 board/gen860t/u-boot.lds                         |    3 ---
 board/genietv/u-boot.lds                         |    3 ---
 board/genietv/u-boot.lds.debug                   |    3 ---
 board/hermes/u-boot.lds                          |    3 ---
 board/hermes/u-boot.lds.debug                    |    3 ---
 board/hymod/u-boot.lds                           |    3 ---
 board/hymod/u-boot.lds.debug                     |    3 ---
 board/icu862/u-boot.lds                          |    3 ---
 board/icu862/u-boot.lds.debug                    |    3 ---
 board/idmr/u-boot.lds                            |    3 ---
 board/incaip/u-boot.lds                          |    6 ------
 board/ip860/u-boot.lds                           |    3 ---
 board/ip860/u-boot.lds.debug                     |    3 ---
 board/ivm/u-boot.lds                             |    3 ---
 board/ivm/u-boot.lds.debug                       |    3 ---
 board/korat/u-boot-F7FC.lds                      |    3 ---
 board/kup/kup4k/u-boot.lds                       |    3 ---
 board/kup/kup4k/u-boot.lds.debug                 |    3 ---
 board/kup/kup4x/u-boot.lds                       |    3 ---
 board/kup/kup4x/u-boot.lds.debug                 |    3 ---
 board/lantec/u-boot.lds                          |    3 ---
 board/lantec/u-boot.lds.debug                    |    3 ---
 board/lwmon/u-boot.lds                           |    3 ---
 board/lwmon/u-boot.lds.debug                     |    3 ---
 board/manroland/uc100/u-boot.lds                 |    3 ---
 board/matrix_vision/mvsmr/u-boot.lds             |    3 ---
 board/mbx8xx/u-boot.lds                          |    3 ---
 board/mbx8xx/u-boot.lds.debug                    |    3 ---
 board/micronas/vct/u-boot.lds                    |    7 -------
 board/mousse/u-boot.lds                          |    3 ---
 board/mousse/u-boot.lds.ram                      |    3 ---
 board/mousse/u-boot.lds.rom                      |    3 ---
 board/mpl/pip405/u-boot.lds.debug                |    3 ---
 board/mvblue/u-boot.lds                          |    3 ---
 board/netphone/u-boot.lds                        |    3 ---
 board/netphone/u-boot.lds.debug                  |    3 ---
 board/netta/u-boot.lds                           |    3 ---
 board/netta/u-boot.lds.debug                     |    3 ---
 board/netta2/u-boot.lds                          |    3 ---
 board/netta2/u-boot.lds.debug                    |    3 ---
 board/netvia/u-boot.lds                          |    3 ---
 board/netvia/u-boot.lds.debug                    |    3 ---
 board/nx823/u-boot.lds                           |    3 ---
 board/nx823/u-boot.lds.debug                     |    3 ---
 board/openrisc/openrisc-generic/u-boot.lds       |    3 ---
 board/pb1x00/u-boot.lds                          |    6 ------
 board/qemu-mips/u-boot.lds                       |    7 -------
 board/qi/qi_lb60/u-boot.lds                      |    3 ---
 board/quantum/u-boot.lds                         |    3 ---
 board/r360mpi/u-boot.lds                         |    3 ---
 board/rbc823/u-boot.lds                          |    3 ---
 board/renesas/sh7757lcr/u-boot.lds               |    7 -------
 board/rsdproto/u-boot.lds                        |    3 ---
 board/samsung/smdk6400/u-boot-nand.lds           |    3 ---
 board/sandburst/karef/u-boot.lds.debug           |    3 ---
 board/sandburst/metrobox/u-boot.lds.debug        |    3 ---
 board/sandpoint/u-boot.lds                       |    3 ---
 board/siemens/IAD210/u-boot.lds                  |    3 ---
 board/sixnet/u-boot.lds                          |    3 ---
 board/snmc/qs850/u-boot.lds                      |    3 ---
 board/snmc/qs860t/u-boot.lds                     |    3 ---
 board/spc1920/u-boot.lds                         |    3 ---
 board/spd8xx/u-boot.lds                          |    3 ---
 board/spd8xx/u-boot.lds.debug                    |    3 ---
 board/stx/stxxtc/u-boot.lds                      |    3 ---
 board/stx/stxxtc/u-boot.lds.debug                |    3 ---
 board/svm_sc8xx/u-boot.lds                       |    3 ---
 board/tqc/tqm8xx/u-boot.lds                      |    3 ---
 board/v37/u-boot.lds                             |    3 ---
 board/w7o/u-boot.lds.debug                       |    3 ---
 board/westel/amx860/u-boot.lds                   |    3 ---
 board/westel/amx860/u-boot.lds.debug             |    3 ---
 board/xes/xpedite1000/u-boot.lds.debug           |    3 ---
 include/command.h                                |    2 --
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    3 ---
 nand_spl/board/karo/tx25/u-boot.lds              |    3 ---
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    3 ---
 172 files changed, 580 deletions(-)

V2: Remove only the u_boot_cmd section on mips boards, preserve
the u_boot_list section

arch/arm/cpu/arm920t/ep93xx/u-boot.lds +0 -3
index 6ad9169..7da65ab 100644
@@ -48,9 +48,6 @@ SECTIONS
 	.got : { *(.got) }
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds +0 -3
index dd12607..2a9b150 100644
@@ -50,9 +50,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +0 -3
index 65f80c2..abb8aa1 100644
@@ -50,9 +50,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/arm/cpu/ixp/u-boot.lds +0 -3
index e08f10b..e444619 100644
@@ -46,9 +46,6 @@ SECTIONS
 	. = ALIGN(4);
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/arm/cpu/u-boot.lds +0 -3
index 18eaf73..71adb6c 100644
@@ -49,9 +49,6 @@ SECTIONS
 	. = ALIGN(4);
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/avr32/cpu/u-boot.lds +0 -5
index 5aef19b..d035502 100644
@@ -47,11 +47,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : {
-		KEEP(*(.u_boot_cmd))
-	}
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/blackfin/cpu/u-boot.lds +0 -6
index be70d81..0c87618 100644
@@ -112,12 +112,6 @@ SECTIONS
 		CONSTRUCTORS
 	} >ram_data
 
-	.u_boot_cmd :
-	{
-		___u_boot_cmd_start = .;
-		*(.u_boot_cmd)
-		___u_boot_cmd_end = .;
-	} >ram_data
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/microblaze/cpu/u-boot.lds +0 -8
index fca0c52..b8c233c 100644
@@ -50,14 +50,6 @@ SECTIONS
 		__data_end = .;
 	}
 
-	.u_boot_cmd ALIGN(0x4):
-	{
-		. = .;
-		__u_boot_cmd_start = .;
-		*(.u_boot_cmd)
-		__u_boot_cmd_end = .;
-	}
-
 	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/nds32/cpu/n1213/u-boot.lds +0 -3
index 48d5b90..c46d8bb 100644
@@ -52,9 +52,6 @@ SECTIONS
 	}
 
 	. = .;
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/nios2/cpu/u-boot.lds +0 -7
index 33cd0e2..4fd2fb0 100644
@@ -45,13 +45,6 @@ SECTIONS
 	 * the initialization code relocates the command table as
 	 * well -- admittedly, this is just pure laziness ;-)
 	 */
-	__u_boot_cmd_start = .;
-	.u_boot_cmd :
-	{
-	  *(.u_boot_cmd)
-	}
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/powerpc/cpu/74xx_7xx/u-boot.lds +0 -3
index 049ae63..0575b68 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc512x/u-boot.lds +0 -3
index d93c097..4056af4 100644
@@ -57,9 +57,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc5xx/u-boot.lds +0 -3
index 2fbc379..7d1fc30 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds +0 -3
index 1574767..6f66ee0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
arch/powerpc/cpu/mpc5xxx/u-boot.lds +0 -3
index 52755e6..0d0fe22 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc8220/u-boot.lds +0 -3
index 222f907..db586ab 100644
@@ -59,9 +59,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc824x/u-boot.lds +0 -3
index bb16926..c2f1469 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc8260/u-boot.lds +0 -3
index 722d7fb..50f1713 100644
@@ -59,9 +59,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc83xx/u-boot.lds +0 -3
index 416bc07..be604a1 100644
@@ -58,9 +58,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc85xx/u-boot-nand.lds +0 -3
index 5563b5f..39886b5 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
arch/powerpc/cpu/mpc85xx/u-boot.lds +0 -3
index 009214b..4c26da9 100644
@@ -77,9 +77,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/mpc86xx/u-boot.lds +0 -3
index e3b19d4..19b36f9 100644
@@ -64,9 +64,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/powerpc/cpu/ppc4xx/u-boot.lds +0 -3
index 005ec61..6907b18 100644
@@ -78,9 +78,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
arch/sandbox/cpu/u-boot.lds +0 -3
index 0a37657..dba1a32 100644
@@ -24,9 +24,6 @@
 
 SECTIONS
 {
-	__u_boot_cmd_start = .;
-	_u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
arch/sh/cpu/sh2/u-boot.lds +0 -7
index 2331152..41a783d 100644
@@ -72,13 +72,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/sh/cpu/sh3/u-boot.lds +0 -7
index 9d99434..1c7cc80 100644
@@ -78,13 +78,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/sh/cpu/sh4/u-boot.lds +0 -7
index 8702c9e..70e7c54 100644
@@ -75,13 +75,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
arch/x86/cpu/u-boot.lds +0 -4
index aa2b653..7c1eb6a 100644
@@ -33,10 +33,6 @@ SECTIONS
 	.text  : { *(.text*); }
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/BuS/eb_cpu5282/u-boot.lds +0 -3
index 3132a55..2d27f06 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/LEOX/elpt860/u-boot.lds +0 -3
index d85943c..5aafcfb 100644
@@ -86,9 +86,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXClassic/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXClassic/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite_dw/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RPXlite_dw/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/RRvision/u-boot.lds +0 -3
index 3c2c708..3c42391 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/actux1/u-boot.lds +0 -5
index e5d59db..9ae694d 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/actux2/u-boot.lds +0 -5
index 09bb7ab..879bb07 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/actux3/u-boot.lds +0 -5
index 71b6791..843fc73 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/adder/u-boot.lds +0 -3
index 62afcb80..d6d3bd5 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/altera/nios2-generic/u-boot.lds +0 -7
index 764cc7d..13661c7 100644
@@ -46,13 +46,6 @@ SECTIONS
 	 * the initialization code relocates the command table as
 	 * well -- admittedly, this is just pure laziness ;-)
 	 */
-	__u_boot_cmd_start = .;
-	.u_boot_cmd :
-	{
-	  *(.u_boot_cmd)
-	}
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/amcc/acadia/u-boot-nand.lds +0 -3
index bc0356b..9e28604 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/bamboo/u-boot-nand.lds +0 -3
index 2382ea9..b9f9de1 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/canyonlands/u-boot-nand.lds +0 -3
index 0816387..001fa7f 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/kilauea/u-boot-nand.lds +0 -3
index bc0356b..9e28604 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/sequoia/u-boot-nand.lds +0 -3
index 94234de..163980e 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/amcc/sequoia/u-boot-ram.lds +0 -3
index 0f594f5..568529e 100644
@@ -64,9 +64,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/astro/mcf5373l/u-boot.lds +0 -3
index d800805..9242af2 100644
@@ -109,9 +109,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/c2mon/u-boot.lds +0 -3
index a170f06..5652797 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/c2mon/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cobra5272/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cogent/u-boot.lds +0 -3
index 3a3d988..723c26f 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cogent/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/cray/L1/u-boot.lds.debug +0 -3
index 78fe44c..0e3940f 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/dave/PPChameleonEVB/u-boot.lds +0 -3
index fb40e3d..9b9264b 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/dbau1x00/u-boot.lds +0 -6
index 1b43dac..9106b22 100644
@@ -54,12 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-	}
-
 	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/dvlhost/u-boot.lds +0 -5
index 897263e..83e3913 100644
@@ -54,11 +54,6 @@ SECTIONS
 		*(.got)
 	}
 	. =.;
-	__u_boot_cmd_start =.;
-	.u_boot_cmd : {
-		*(.u_boot_cmd)
-	}
-	__u_boot_cmd_end =.;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/eltec/mhpc/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/eltec/mhpc/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/emk/top860/u-boot.lds +0 -3
index 887ee6b..2d738a4 100644
@@ -67,9 +67,6 @@ SECTIONS
 
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ep88x/u-boot.lds +0 -3
index 0c5a03e..47ea19c 100644
@@ -62,9 +62,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esd/dasa_sim/u-boot.lds +0 -3
index 9a3249d..b1842e1 100644
@@ -73,9 +73,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esd/pmc440/u-boot-nand.lds +0 -3
index d4ef403..910793b 100644
@@ -102,9 +102,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 		INCLUDE u-boot.lst;
board/esd/tasreg/u-boot.lds +0 -3
index b302ba0..053a54a 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/esteem192e/u-boot.lds +0 -3
index 83d9ec0..ec757ad 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/etx094/u-boot.lds +0 -3
index a98ee23..f26e473 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/evb64260/u-boot.lds +0 -3
index 1eb7f30..e4f735a 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/fads/u-boot.lds +0 -3
index deee255..0549239 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/flagadm/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/flagadm/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5208evbe/u-boot.lds +0 -3
index e184013..41b1cc9 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m52277evb/u-boot.lds +0 -3
index 6214098..dc5150a 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5235evb/u-boot.lds +0 -3
index 9b5e5e2..8ddda1a 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5249evb/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5253demo/u-boot.lds +0 -3
index 3487a8d..1c2e067 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5253evbe/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5271evb/u-boot.lds +0 -3
index 3a86350..04ca088 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5272c3/u-boot.lds +0 -3
index d49b0ef..897847e 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5275evb/u-boot.lds +0 -3
index b37b06b..335acbc 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5282evb/u-boot.lds +0 -3
index 3132a55..2d27f06 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m53017evb/u-boot.lds +0 -3
index 662bd31..dab62bf 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5329evb/u-boot.lds +0 -3
index fe5be41..e3ac171 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m5373evb/u-boot.lds +0 -3
index 8ff6fc9..fe0bb7d 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m54451evb/u-boot.lds +0 -3
index ea0984f..3eb25dd 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m54455evb/u-boot.lds +0 -3
index fe1b58c..186d122 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m547xevb/u-boot.lds +0 -3
index 877eaf2..87744e7 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/m548xevb/u-boot.lds +0 -3
index 33e054b..d877872 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/freescale/mx31ads/u-boot.lds +0 -3
index 3db5dc3..8f97de5 100644
@@ -57,9 +57,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_cpci_ax2000/u-boot.lds +0 -4
index 416761b..8c4a0e5 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_ep2s60/u-boot.lds +0 -4
index 43faf26..c647246 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/gr_xc3s_1500/u-boot.lds +0 -4
index 14c631e..96c98f3 100644
@@ -85,10 +85,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/grsim/u-boot.lds +0 -4
index 4766465..df7f187 100644
@@ -84,10 +84,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gaisler/grsim_leon2/u-boot.lds +0 -4
index cbd4ed6..ebcdf1c 100644
@@ -84,10 +84,6 @@ SECTIONS
 
 	/* CMD Table */
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	. = ALIGN(4);
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/gen860t/u-boot-flashenv.lds +0 -3
index 1302eaa..e72e168 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 		INCLUDE u-boot.lst;
board/gen860t/u-boot.lds +0 -3
index de57dd1..6433828 100644
@@ -71,9 +71,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/genietv/u-boot.lds +0 -3
index 45c56bb..d1303ff 100644
@@ -80,9 +80,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/genietv/u-boot.lds.debug +0 -3
index 4783367..06ee03d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hermes/u-boot.lds +0 -3
index 8b90f6c..e912128 100644
@@ -72,9 +72,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hermes/u-boot.lds.debug +0 -3
index 53ffee1..3618c37 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hymod/u-boot.lds +0 -3
index 83d2dd4..b266ec5 100644
@@ -110,9 +110,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/hymod/u-boot.lds.debug +0 -3
index 47ad2e7..888cbc5 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/icu862/u-boot.lds +0 -3
index 23d4405..34f6b75 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/icu862/u-boot.lds.debug +0 -3
index 203f704..598b07d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/idmr/u-boot.lds +0 -3
index b302ba0..053a54a 100644
@@ -65,9 +65,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/incaip/u-boot.lds +0 -6
index 1b43dac..9106b22 100644
@@ -54,12 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-	}
-
 	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/ip860/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ip860/u-boot.lds.debug +0 -3
index 4fc4c0f..aedab36 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ivm/u-boot.lds +0 -3
index d0d9a37..9e9565b 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/ivm/u-boot.lds.debug +0 -3
index f4c04b3..1f66592 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/korat/u-boot-F7FC.lds +0 -3
index da33f00..06ece39 100644
@@ -108,9 +108,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   .u_boot_list : {
 	INCLUDE u-boot.lst;
board/kup/kup4k/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4k/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4x/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/kup/kup4x/u-boot.lds.debug +0 -3
index c76f9d0..f99c742 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lantec/u-boot.lds +0 -3
index 9360839..4c80452 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lantec/u-boot.lds.debug +0 -3
index 7c1ccb2..b8dd61d 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lwmon/u-boot.lds +0 -3
index 7dfa157..6264d2d 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/lwmon/u-boot.lds.debug +0 -3
index 0778758..dbc722e 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/manroland/uc100/u-boot.lds +0 -3
index d291d60..4a96fe4 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/matrix_vision/mvsmr/u-boot.lds +0 -3
index 2445b97..99b29ce 100644
@@ -74,9 +74,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mbx8xx/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mbx8xx/u-boot.lds.debug +0 -3
index 7e62932..da784f0 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/micronas/vct/u-boot.lds +0 -7
index 4d9fab9..32654f9 100644
@@ -53,13 +53,6 @@ SECTIONS
 	.sdata  : { *(.sdata*) }
 
 	. = ALIGN(4);
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-	}
-
-	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
 	}
board/mousse/u-boot.lds +0 -3
index 863468e..fbfea7e 100644
@@ -60,9 +60,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mousse/u-boot.lds.ram +0 -3
index b3364be..5255651 100644
@@ -85,9 +85,6 @@ SECTIONS
   } > ram
   */
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
    __start___ex_table = .;
     __ex_table : { *(__ex_table) } > ram
board/mousse/u-boot.lds.rom +0 -3
index b4b9e02..29a34fb 100644
@@ -102,9 +102,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   __start___ex_table = .;
   __ex_table : { *(__ex_table) }
board/mpl/pip405/u-boot.lds.debug +0 -3
index 78fe44c..0e3940f 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/mvblue/u-boot.lds +0 -3
index 4610de9..e3de27a 100644
@@ -70,9 +70,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netphone/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netphone/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta2/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netta2/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netvia/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/netvia/u-boot.lds.debug +0 -3
index 2e3f83e..cb71f3c 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/nx823/u-boot.lds +0 -3
index 4385876..dc204d2 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/nx823/u-boot.lds.debug +0 -3
index fd278a4..8bbe86a 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/openrisc/openrisc-generic/u-boot.lds +0 -3
index bc610bd..912aca0 100644
@@ -26,9 +26,6 @@ SECTIONS
 		_endtext = .;
 	}  > ram
 
-	 __u_boot_cmd_start = .;
-	 .u_boot_cmd : { *(.u_boot_cmd) } > ram
-	 __u_boot_cmd_end = .;
 
 	 . = ALIGN(4);
 	 .u_boot_list : {
board/pb1x00/u-boot.lds +0 -6
index 522c438..8f5c3b9 100644
@@ -54,12 +54,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	.u_boot_cmd : {
-	  __u_boot_cmd_start = .;
-	  *(.u_boot_cmd)
-	  __u_boot_cmd_end = .;
-	}
-
 	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/qemu-mips/u-boot.lds +0 -7
index c45ccd0..98069c7 100644
@@ -55,13 +55,6 @@ SECTIONS
 	. = ALIGN(4);
 	.sdata  : { *(.sdata*) }
 
-	. = .;
-	.u_boot_cmd : {
-	__u_boot_cmd_start = .;
-	*(.u_boot_cmd)
-	__u_boot_cmd_end = .;
-	}
-
 	. = ALIGN(4);
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/qi/qi_lb60/u-boot.lds +0 -3
index e1bb826..286806a 100644
@@ -47,9 +47,6 @@ SECTIONS
 
 	.sdata  : { *(.sdata*) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
board/quantum/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/r360mpi/u-boot.lds +0 -3
index 181468d..4748a6b 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/rbc823/u-boot.lds +0 -3
index 50c3eee..30e01d2 100644
@@ -77,9 +77,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/renesas/sh7757lcr/u-boot.lds +0 -7
index cff6ff5..76cb82e 100644
@@ -77,13 +77,6 @@ SECTIONS
 	}
 	PROVIDE (_egot = .);
 
-	PROVIDE (__u_boot_cmd_start = .);
-	.u_boot_cmd :
-	{
-		*(.u_boot_cmd)
-		. = ALIGN(4);
-	}
-	PROVIDE (__u_boot_cmd_end = .);
 
 	.u_boot_list : {
 		INCLUDE u-boot.lst;
board/rsdproto/u-boot.lds +0 -3
index ee651d4..d69af28 100644
@@ -97,9 +97,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/samsung/smdk6400/u-boot-nand.lds +0 -3
index 27693f0e..c34bd15 100644
@@ -47,9 +47,6 @@ SECTIONS
 	. = ALIGN(4);
 	.got : { *(.got) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = align(4);
 	.u_boot_list : {
board/sandburst/karef/u-boot.lds.debug +0 -3
index 586dc95..84e22ad 100644
@@ -115,9 +115,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sandburst/metrobox/u-boot.lds.debug +0 -3
index 48f5be0..4aa3f21 100644
@@ -115,9 +115,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sandpoint/u-boot.lds +0 -3
index a4421a7..ba20d64 100644
@@ -68,9 +68,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/siemens/IAD210/u-boot.lds +0 -3
index 3532d3b..ed60bf5 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/sixnet/u-boot.lds +0 -3
index 4153927..bf5ac93 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/snmc/qs850/u-boot.lds +0 -3
index 039597e..17917bf 100644
@@ -69,9 +69,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/snmc/qs860t/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spc1920/u-boot.lds +0 -3
index 92f78be..ca421d5 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spd8xx/u-boot.lds +0 -3
index ada68f1..4fbabdf 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/spd8xx/u-boot.lds.debug +0 -3
index 7e62932..da784f0 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/stx/stxxtc/u-boot.lds +0 -3
index 86bb3b4..1bd1fa0 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/stx/stxxtc/u-boot.lds.debug +0 -3
index 480feff..7b933f2 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/svm_sc8xx/u-boot.lds +0 -3
index af83956..e9caa85 100644
@@ -83,9 +83,6 @@ SECTIONS
 
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/tqc/tqm8xx/u-boot.lds +0 -3
index 226cfc1..ff70607 100644
@@ -83,9 +83,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/v37/u-boot.lds +0 -3
index feb3870..8626675 100644
@@ -66,9 +66,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/w7o/u-boot.lds.debug +0 -3
index 520acd5..a0a9814 100644
@@ -106,9 +106,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/westel/amx860/u-boot.lds +0 -3
index e642a3a..116c5a8 100644
@@ -75,9 +75,6 @@ SECTIONS
   PROVIDE (edata = .);
 
   . = .;
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/westel/amx860/u-boot.lds.debug +0 -3
index 203f704..598b07d 100644
@@ -107,9 +107,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
board/xes/xpedite1000/u-boot.lds.debug +0 -3
index d685738..774dcbb 100644
@@ -111,9 +111,6 @@ SECTIONS
   _edata  =  .;
   PROVIDE (edata = .);
 
-  __u_boot_cmd_start = .;
-  .u_boot_cmd : { *(.u_boot_cmd) }
-  __u_boot_cmd_end = .;
 
   . = ALIGN(4);
   .u_boot_list : {
include/command.h +0 -2
index 24864d5..10bc260 100644
@@ -62,8 +62,6 @@ struct cmd_tbl_s {
 
 typedef struct cmd_tbl_s	cmd_tbl_t;
 
-extern cmd_tbl_t  __u_boot_cmd_start;
-extern cmd_tbl_t  __u_boot_cmd_end;
 
 #if defined(CONFIG_CMD_RUN)
 extern int do_run(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[]);
nand_spl/board/freescale/mx31pdk/u-boot.lds +0 -3
index 363690f..7a75603 100644
@@ -46,9 +46,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
nand_spl/board/karo/tx25/u-boot.lds +0 -3
index 8332710..d7c7060 100644
@@ -46,9 +46,6 @@ SECTIONS
 	}
 
 	. = ALIGN(4);
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
nand_spl/board/samsung/smdk6400/u-boot.lds +0 -3
index 7ceae32..7e92a02 100644
@@ -50,9 +50,6 @@ SECTIONS
 	. = ALIGN(4);
 	.got : { *(.got) }
 
-	__u_boot_cmd_start = .;
-	.u_boot_cmd : { *(.u_boot_cmd) }
-	__u_boot_cmd_end = .;
 
 	. = ALIGN(4);
 	.u_boot_list : {
Signature · 1 line
1.7.10.4
#19 lore raw

v2 cover Linker-generated arrays (take 2)

In reply to Marek Vasut

This is a second stab at the linker-generated array. Basically, this concept is a generic abstraction of how u_boot_cmd works today. The patch 2/4 contains a huge pile of documentation which should clarify most of the questions.

I don't see size growth, I see size fluctiation in the order of tens of bytes with these patches applied. Subsequent patch added to this series removes the __u_boot_cmd section completely.

Marek Vasut (6):
common: Add symbol handling for generic lists into Makefile
common: Implement support for linker-generated arrays
common: Add .u_boot_list into all linker files
common: Convert the U-Boot commands to LG-arrays
common: Discard the __u_boot_cmd section
kerneldoc: tmpl: Implement template for LG-arrays

 .gitignore                                       |    1 +
 Makefile                                         |   19 ++-
 arch/arm/cpu/arm920t/ep93xx/u-boot.lds           |    8 +-
 arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds        |    7 +-
 arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds      |    7 +-
 arch/arm/cpu/armv7/omap-common/u-boot-spl.lds    |    5 +
 arch/arm/cpu/ixp/u-boot.lds                      |    8 +-
 arch/arm/cpu/u-boot.lds                          |    8 +-
 arch/arm/imx-common/cmd_bmode.c                  |   11 +-
 arch/avr32/cpu/u-boot.lds                        |    8 +-
 arch/avr32/lib/board.c                           |    4 +-
 arch/blackfin/cpu/u-boot.lds                     |    8 +-
 arch/m68k/lib/board.c                            |    4 +-
 arch/microblaze/cpu/u-boot.lds                   |    9 +-
 arch/mips/lib/board.c                            |    4 +-
 arch/nds32/cpu/n1213/u-boot.lds                  |    8 +-
 arch/nds32/lib/board.c                           |    4 +-
 arch/nios2/cpu/u-boot.lds                        |   10 +-
 arch/powerpc/cpu/74xx_7xx/u-boot.lds             |    8 +-
 arch/powerpc/cpu/mpc512x/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc5xx/u-boot.lds               |    8 +-
 arch/powerpc/cpu/mpc5xxx/u-boot-customlayout.lds |    6 +-
 arch/powerpc/cpu/mpc5xxx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc8220/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc824x/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc8260/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc83xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc85xx/u-boot-nand.lds         |    7 +-
 arch/powerpc/cpu/mpc85xx/u-boot-nand_spl.lds     |    4 +
 arch/powerpc/cpu/mpc85xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/mpc86xx/u-boot.lds              |    8 +-
 arch/powerpc/cpu/ppc4xx/u-boot.lds               |    8 +-
 arch/sandbox/cpu/u-boot.lds                      |    8 +-
 arch/sh/cpu/sh2/u-boot.lds                       |    9 +-
 arch/sh/cpu/sh3/u-boot.lds                       |    9 +-
 arch/sh/cpu/sh4/u-boot.lds                       |    9 +-
 arch/sparc/lib/board.c                           |    4 +-
 arch/x86/cpu/u-boot.lds                          |    7 +-
 board/BuS/eb_cpu5282/u-boot.lds                  |    8 +-
 board/LEOX/elpt860/u-boot.lds                    |    8 +-
 board/RPXClassic/u-boot.lds                      |    8 +-
 board/RPXClassic/u-boot.lds.debug                |    8 +-
 board/RPXlite/u-boot.lds                         |    8 +-
 board/RPXlite/u-boot.lds.debug                   |    8 +-
 board/RPXlite_dw/u-boot.lds                      |    8 +-
 board/RPXlite_dw/u-boot.lds.debug                |    8 +-
 board/RRvision/u-boot.lds                        |    8 +-
 board/actux1/u-boot.lds                          |    8 +-
 board/actux2/u-boot.lds                          |    8 +-
 board/actux3/u-boot.lds                          |    8 +-
 board/adder/u-boot.lds                           |    8 +-
 board/ait/cam_enc_4xx/u-boot-spl.lds             |    4 +
 board/altera/nios2-generic/u-boot.lds            |   10 +-
 board/amcc/acadia/u-boot-nand.lds                |    6 +-
 board/amcc/bamboo/u-boot-nand.lds                |    6 +-
 board/amcc/canyonlands/u-boot-nand.lds           |    6 +-
 board/amcc/kilauea/u-boot-nand.lds               |    6 +-
 board/amcc/sequoia/u-boot-nand.lds               |    6 +-
 board/amcc/sequoia/u-boot-ram.lds                |    6 +-
 board/astro/mcf5373l/u-boot.lds                  |    8 +-
 board/c2mon/u-boot.lds                           |    8 +-
 board/c2mon/u-boot.lds.debug                     |    8 +-
 board/cobra5272/u-boot.lds                       |    8 +-
 board/cogent/u-boot.lds                          |    8 +-
 board/cogent/u-boot.lds.debug                    |    8 +-
 board/cray/L1/u-boot.lds.debug                   |    8 +-
 board/dave/PPChameleonEVB/u-boot.lds             |    8 +-
 board/davinci/da8xxevm/u-boot-spl-da850evm.lds   |    6 +
 board/davinci/da8xxevm/u-boot-spl-hawk.lds       |    5 +
 board/dbau1x00/u-boot.lds                        |    7 +-
 board/dvlhost/u-boot.lds                         |    8 +-
 board/eltec/mhpc/u-boot.lds                      |    8 +-
 board/eltec/mhpc/u-boot.lds.debug                |    8 +-
 board/emk/top860/u-boot.lds                      |    8 +-
 board/ep88x/u-boot.lds                           |    8 +-
 board/esd/dasa_sim/u-boot.lds                    |    8 +-
 board/esd/pmc440/u-boot-nand.lds                 |    6 +-
 board/esd/tasreg/u-boot.lds                      |    8 +-
 board/esteem192e/u-boot.lds                      |    8 +-
 board/etx094/u-boot.lds                          |    8 +-
 board/evb64260/u-boot.lds                        |    8 +-
 board/fads/u-boot.lds                            |    8 +-
 board/flagadm/u-boot.lds                         |    8 +-
 board/flagadm/u-boot.lds.debug                   |    8 +-
 board/freescale/m5208evbe/u-boot.lds             |    8 +-
 board/freescale/m52277evb/u-boot.lds             |    8 +-
 board/freescale/m5235evb/u-boot.lds              |    8 +-
 board/freescale/m5249evb/u-boot.lds              |    8 +-
 board/freescale/m5253demo/u-boot.lds             |    8 +-
 board/freescale/m5253evbe/u-boot.lds             |    8 +-
 board/freescale/m5271evb/u-boot.lds              |    8 +-
 board/freescale/m5272c3/u-boot.lds               |    8 +-
 board/freescale/m5275evb/u-boot.lds              |    8 +-
 board/freescale/m5282evb/u-boot.lds              |    8 +-
 board/freescale/m53017evb/u-boot.lds             |    8 +-
 board/freescale/m5329evb/u-boot.lds              |    8 +-
 board/freescale/m5373evb/u-boot.lds              |    8 +-
 board/freescale/m54451evb/u-boot.lds             |    8 +-
 board/freescale/m54455evb/u-boot.lds             |    8 +-
 board/freescale/m547xevb/u-boot.lds              |    8 +-
 board/freescale/m548xevb/u-boot.lds              |    8 +-
 board/freescale/mx31ads/u-boot.lds               |    8 +-
 board/gaisler/gr_cpci_ax2000/u-boot.lds          |    7 +-
 board/gaisler/gr_ep2s60/u-boot.lds               |    7 +-
 board/gaisler/gr_xc3s_1500/u-boot.lds            |    7 +-
 board/gaisler/grsim/u-boot.lds                   |    7 +-
 board/gaisler/grsim_leon2/u-boot.lds             |    7 +-
 board/gen860t/u-boot-flashenv.lds                |    7 +-
 board/gen860t/u-boot.lds                         |    8 +-
 board/genietv/u-boot.lds                         |    8 +-
 board/genietv/u-boot.lds.debug                   |    8 +-
 board/hermes/u-boot.lds                          |    8 +-
 board/hermes/u-boot.lds.debug                    |    8 +-
 board/hymod/u-boot.lds                           |    8 +-
 board/hymod/u-boot.lds.debug                     |    8 +-
 board/icu862/u-boot.lds                          |    8 +-
 board/icu862/u-boot.lds.debug                    |    8 +-
 board/idmr/u-boot.lds                            |    8 +-
 board/incaip/u-boot.lds                          |    7 +-
 board/ip860/u-boot.lds                           |    8 +-
 board/ip860/u-boot.lds.debug                     |    8 +-
 board/ivm/u-boot.lds                             |    8 +-
 board/ivm/u-boot.lds.debug                       |    8 +-
 board/korat/u-boot-F7FC.lds                      |    6 +-
 board/kup/kup4k/u-boot.lds                       |    8 +-
 board/kup/kup4k/u-boot.lds.debug                 |    8 +-
 board/kup/kup4x/u-boot.lds                       |    8 +-
 board/kup/kup4x/u-boot.lds.debug                 |    8 +-
 board/lantec/u-boot.lds                          |    8 +-
 board/lantec/u-boot.lds.debug                    |    8 +-
 board/lwmon/u-boot.lds                           |    8 +-
 board/lwmon/u-boot.lds.debug                     |    8 +-
 board/manroland/uc100/u-boot.lds                 |    8 +-
 board/matrix_vision/mvsmr/u-boot.lds             |    8 +-
 board/mbx8xx/u-boot.lds                          |    8 +-
 board/mbx8xx/u-boot.lds.debug                    |    8 +-
 board/micronas/vct/u-boot.lds                    |    6 +-
 board/mousse/u-boot.lds                          |    8 +-
 board/mousse/u-boot.lds.ram                      |    3 -
 board/mousse/u-boot.lds.rom                      |    3 -
 board/mpl/pip405/u-boot.lds.debug                |    8 +-
 board/mvblue/u-boot.lds                          |    8 +-
 board/netphone/u-boot.lds                        |    8 +-
 board/netphone/u-boot.lds.debug                  |    8 +-
 board/netta/u-boot.lds                           |    8 +-
 board/netta/u-boot.lds.debug                     |    8 +-
 board/netta2/u-boot.lds                          |    8 +-
 board/netta2/u-boot.lds.debug                    |    8 +-
 board/netvia/u-boot.lds                          |    8 +-
 board/netvia/u-boot.lds.debug                    |    8 +-
 board/nx823/u-boot.lds                           |    8 +-
 board/nx823/u-boot.lds.debug                     |    8 +-
 board/openrisc/openrisc-generic/u-boot.lds       |    8 +-
 board/pb1x00/u-boot.lds                          |    7 +-
 board/qemu-mips/u-boot.lds                       |    8 +-
 board/qi/qi_lb60/u-boot.lds                      |    8 +-
 board/quantum/u-boot.lds                         |    8 +-
 board/r360mpi/u-boot.lds                         |    8 +-
 board/rbc823/u-boot.lds                          |    8 +-
 board/renesas/sh7757lcr/u-boot.lds               |    9 +-
 board/rsdproto/u-boot.lds                        |    8 +-
 board/samsung/smdk5250/smdk5250-uboot-spl.lds    |    5 +
 board/samsung/smdk6400/u-boot-nand.lds           |   10 +-
 board/sandburst/karef/u-boot.lds.debug           |    8 +-
 board/sandburst/metrobox/u-boot.lds.debug        |    8 +-
 board/sandpoint/u-boot.lds                       |    8 +-
 board/siemens/IAD210/u-boot.lds                  |    8 +-
 board/sixnet/u-boot.lds                          |    8 +-
 board/snmc/qs850/u-boot.lds                      |    8 +-
 board/snmc/qs860t/u-boot.lds                     |    8 +-
 board/spc1920/u-boot.lds                         |    8 +-
 board/spd8xx/u-boot.lds                          |    8 +-
 board/spd8xx/u-boot.lds.debug                    |    8 +-
 board/stx/stxxtc/u-boot.lds                      |    8 +-
 board/stx/stxxtc/u-boot.lds.debug                |    8 +-
 board/svm_sc8xx/u-boot.lds                       |    8 +-
 board/tqc/tqm8xx/u-boot.lds                      |    8 +-
 board/v37/u-boot.lds                             |    8 +-
 board/vpac270/u-boot-spl.lds                     |    4 +
 board/w7o/u-boot.lds.debug                       |    8 +-
 board/westel/amx860/u-boot.lds                   |    8 +-
 board/westel/amx860/u-boot.lds.debug             |    8 +-
 board/xes/xpedite1000/u-boot.lds.debug           |    8 +-
 common/cmd_help.c                                |    8 +-
 common/command.c                                 |   17 ++-
 config.mk                                        |    2 +
 doc/DocBook/Makefile                             |    2 +-
 doc/DocBook/linker_lists.tmpl                    |   46 +++++++
 doc/README.commands                              |   10 +-
 examples/standalone/sparc.lds                    |    1 +
 helper.mk                                        |   64 ++++++++++
 include/command.h                                |   28 ++--
 include/linker_lists.h                           |  148 ++++++++++++++++++++++
 nand_spl/board/freescale/mpc8536ds/Makefile      |    9 +-
 nand_spl/board/freescale/mpc8569mds/Makefile     |    9 +-
 nand_spl/board/freescale/mpc8572ds/Makefile      |    9 +-
 nand_spl/board/freescale/mx31pdk/Makefile        |    9 +-
 nand_spl/board/freescale/mx31pdk/u-boot.lds      |    8 +-
 nand_spl/board/freescale/p1010rdb/Makefile       |    9 +-
 nand_spl/board/freescale/p1023rds/Makefile       |    9 +-
 nand_spl/board/freescale/p1_p2_rdb/Makefile      |    9 +-
 nand_spl/board/freescale/p1_p2_rdb_pc/Makefile   |    9 +-
 nand_spl/board/karo/tx25/Makefile                |    9 +-
 nand_spl/board/karo/tx25/u-boot.lds              |    8 +-
 nand_spl/board/samsung/smdk6400/u-boot.lds       |    8 +-
 spl/.gitignore                                   |    1 +
 spl/Makefile                                     |    8 +-
 207 files changed, 1217 insertions(+), 619 deletions(-)
 create mode 100644 doc/DocBook/linker_lists.tmpl
 create mode 100644 helper.mk
 create mode 100644 include/linker_lists.h
Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
Signature · 1 line
1.7.10.4
#20 lore raw

PATCH v2 1/6 common: Add symbol handling for generic lists into Makefile

This patch adds essential components for generation of the contents of the linker section that is used by the linker-generated array. All of the contents is held in a separate file, u-boot.lst, which is generated at runtime just before U-Boot is linked.

The purpose of this code is to especially generate the appropriate boundary symbols around each subsection in the section carrying the linker-generated arrays. Obviously, the interim linker code for actual placement of the variables into the section is generated too. The generated file, u-boot.lst, is included into u-boot.lds via the linker INCLUDE directive in u-boot.lds .

Adjustments are made in the Makefile and spl/Makefile so that the u-boot.lds and u-boot-spl.lds depend on their respective .lst files.

Cc Joe Hershberger <[email protected]>
Cc Mike Frysinger <[email protected]>
---
 .gitignore                                     |    1 +
 Makefile                                       |   19 ++++---
 config.mk                                      |    2 +
 helper.mk                                      |   64 ++++++++++++++++++++++++
 nand_spl/board/freescale/mpc8536ds/Makefile    |    9 +++-
 nand_spl/board/freescale/mpc8569mds/Makefile   |    9 +++-
 nand_spl/board/freescale/mpc8572ds/Makefile    |    9 +++-
 nand_spl/board/freescale/mx31pdk/Makefile      |    9 +++-
 nand_spl/board/freescale/p1010rdb/Makefile     |    9 +++-
 nand_spl/board/freescale/p1023rds/Makefile     |    9 +++-
 nand_spl/board/freescale/p1_p2_rdb/Makefile    |    9 +++-
 nand_spl/board/freescale/p1_p2_rdb_pc/Makefile |    9 +++-
 nand_spl/board/karo/tx25/Makefile              |    9 +++-
 spl/.gitignore                                 |    1 +
 spl/Makefile                                   |    8 ++-
 15 files changed, 150 insertions(+), 26 deletions(-)
 create mode 100644 helper.mk

V2:
- Rebase on top of testing/dm-kerneldoc
- Fix INCLUDE u-boot.lds in linker scripts. It didn't work with older LD, use #include instead and make use of CPP.
- Fix placement of u-boot.lds for NAND SPL

.gitignore +1 -0
index d91e91b..1ac43f2 100644
@@ -38,6 +38,7 @@
 /u-boot.sha1
 /u-boot.dis
 /u-boot.lds
+/u-boot.lst
 /u-boot.ubl
 /u-boot.ais
 /u-boot.dtb
Makefile +13 -6
index 012d325..5d512f3 100644
@@ -515,7 +515,10 @@ else
 GEN_UBOOT = \
 		UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
 		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|uniq`;\
-		cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM $(__OBJS) \
+		UNDEF_LST=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \
+		sed  -n -e 's/.*\($(SYM_PREFIX)__u_boot_list_.*\)/-u\1/p'|sort|uniq`;\
+		cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \
+			$$UNDEF_SYM $$UNDEF_LST $(__OBJS) \
 			--start-group $(__LIBS) --end-group $(PLATFORM_LIBS) \
 			-Map u-boot.map -o u-boot
 endif
@@ -548,8 +551,12 @@ $(SUBDIR_EXAMPLES): $(obj)u-boot
 $(LDSCRIPT):	depend
 		$(MAKE) -C $(dir $@) $(notdir $@)
 
-$(obj)u-boot.lds: $(LDSCRIPT)
-		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates u-boot.lst,
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBBOARD) $(LIBS)))
+$(obj)u-boot.lds: $(LDSCRIPT) $(obj)u-boot.lst
+		$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 nand_spl:	$(TIMESTAMP_FILE) $(VERSION_FILE) depend
 		$(MAKE) -C nand_spl/board/$(BOARDDIR) all
@@ -787,7 +794,7 @@ clean:
 	@rm -f $(obj)board/cray/L1/{bootscript.c,bootscript.image}	  \
 	       $(obj)board/matrix_vision/*/bootscript.img		  \
 	       $(obj)board/voiceblue/eeprom 				  \
-	       $(obj)u-boot.lds						  \
+	       $(obj)u-boot.{lds,lst}					  \
 	       $(obj)arch/blackfin/cpu/bootrom-asm-offsets.[chs]	  \
 	       $(obj)arch/blackfin/cpu/init.{lds,elf}
 	@rm -f $(obj)include/bmp_logo.h
@@ -821,8 +828,8 @@ clobber:	tidy
 	@rm -f $(obj)u-boot.dtb
 	@rm -f $(obj)u-boot.sb
 	@rm -f $(obj)u-boot.spr
-	@rm -f $(obj)nand_spl/{u-boot.lds,u-boot-nand_spl.lds,u-boot-spl,u-boot-spl.map,System.map}
-	@rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,u-boot-spl.lds,u-boot-spl.map}
+	@rm -f $(obj)nand_spl/{u-boot.{lds,lst},u-boot-nand_spl.lds,u-boot-spl,u-boot-spl.map,System.map}
+	@rm -f $(obj)spl/{u-boot-spl,u-boot-spl.bin,u-boot-spl.{lds,lst},u-boot-spl.map}
 	@rm -f $(obj)MLO
 	@rm -f $(obj)tools/xway-swap-bytes
 	@rm -f $(obj)arch/powerpc/cpu/mpc824x/bedbug_603e.c
config.mk +2 -0
index c3822a2..d2ed5bf 100644
@@ -23,6 +23,8 @@
 
 #########################################################################
 
+include $(TOPDIR)/helper.mk
+
 ifeq ($(CURDIR),$(SRCTREE))
 dir :=
 else
helper.mk new file +64 -0

64 lines not on this page · raw message

nand_spl/board/freescale/mpc8536ds/Makefile +7 -2
index 43da3df..e5388d8 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mpc8569mds/Makefile +7 -2
index 43da3df..e5388d8 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mpc8572ds/Makefile +7 -2
index 43da3df..e5388d8 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/mx31pdk/Makefile +7 -2
index 87784d2..43e72c4 100644
@@ -6,6 +6,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_SPL_BUILD -DCONFIG_NAND_SPL
@@ -36,8 +37,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $@
 
-$(nandobj)u-boot.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 #########################################################################
 
nand_spl/board/freescale/p1010rdb/Makefile +7 -2
index cdbd492..f270faa 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -62,8 +63,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1023rds/Makefile +7 -2
index da43521..b288284 100644
@@ -27,6 +27,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -57,8 +58,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1_p2_rdb/Makefile +7 -2
index 43da3df..e5388d8 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -61,8 +62,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/freescale/p1_p2_rdb_pc/Makefile +7 -2
index 46cf709..7146d16 100644
@@ -32,6 +32,7 @@ include $(TOPDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot-nand_spl.lds -Ttext $(CONFIG_SYS_TEXT_BASE_SPL) \
 		$(LDFLAGS) $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_NAND_SPL
@@ -62,8 +63,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot-nand_spl.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $(nandobj)u-boot-spl
 
-$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 # create symbolic links for common files
 
nand_spl/board/karo/tx25/Makefile +7 -2
index 0336346..becf7fa 100644
@@ -27,6 +27,7 @@ include $(TOPDIR)/nand_spl/board/$(BOARDDIR)/config.mk
 nandobj	:= $(OBJTREE)/nand_spl/
 
 LDSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lds
+LSTSCRIPT= $(nandobj)/board/$(BOARDDIR)/u-boot.lst
 LDFLAGS := -T $(nandobj)u-boot.lds -Ttext $(CONFIG_SYS_TEXT_BASE) $(LDFLAGS) \
 	   $(LDFLAGS_FINAL)
 AFLAGS	+= -DCONFIG_SPL_BUILD -DCONFIG_NAND_SPL
@@ -57,8 +58,12 @@ $(nandobj)u-boot-spl:	$(OBJS) $(nandobj)u-boot.lds
 		-Map $(nandobj)u-boot-spl.map \
 		-o $@
 
-$(nandobj)u-boot.lds: $(LDSCRIPT)
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@
+# The following line expands into whole rule which generates $(LSTSCRIPT),
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(OBJS)))
+$(nandobj)u-boot.lds: $(LDSCRIPT) $(LSTSCRIPT)
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - <$< >$@
 
 #########################################################################
 
spl/.gitignore +1 -0
index 7c88147..8cf487e 100644
@@ -2,3 +2,4 @@ u-boot-spl
 u-boot-spl.bin
 u-boot-spl.lds
 u-boot-spl.map
+u-boot.lst
spl/Makefile +6 -2
index d9b1c2f..f43d5ef 100644
@@ -149,8 +149,12 @@ $(START):	depend
 $(LIBS):	depend
 	$(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@))
 
-$(obj)u-boot-spl.lds: $(LDSCRIPT) depend
-	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@
+# The following line expands into whole rule which generates u-boot.lst,
+# the file containing u-boots LG-array linker section. This is included into
+# $(LDSCRIPT). The function make_u_boot_list is defined in helper.mk file.
+$(eval $(call make_u_boot_list, $(obj)u-boot.lst, $(LIBS)))
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot.lst depend
+	$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -I$(obj) -ansi -D__ASSEMBLY__ -P - < $< > $@
 
 depend:	$(obj).depend
 .PHONY: depend
Signature · 1 line
1.7.10.4