Linker-generated arrays
Subsystems (11)
cover Linker-generated arrays
This is a first stab at the linker-generated array. Basically, this concept is a generic abstraction of how u_boot_cmd works today. The patch 2/3 contains a huge pile of documentation which should clarify most of the questions.
NOTE: Compile-testing in progress, but it works with m28evk and sandbox
for now.
Marek Vasut (3):
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
Makefile | 21 +++- 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/RPXlite/u-boot.lds | 5 + board/RPXlite_dw/u-boot.lds | 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/cobra5272/u-boot.lds | 5 + board/cogent/u-boot.lds | 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/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/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/gth2/u-boot.lds | 5 + board/hermes/u-boot.lds | 5 + board/hymod/u-boot.lds | 5 + board/icu862/u-boot.lds | 5 + board/idmr/u-boot.lds | 5 + board/incaip/u-boot.lds | 5 + board/ip860/u-boot.lds | 5 + board/ivm/u-boot.lds | 5 + board/korat/u-boot-F7FC.lds | 3 + board/kup/kup4k/u-boot.lds | 5 + board/kup/kup4x/u-boot.lds | 5 + board/lantec/u-boot.lds | 5 + board/lwmon/u-boot.lds | 5 + board/manroland/uc100/u-boot.lds | 5 + board/matrix_vision/mvsmr/u-boot.lds | 5 + board/mbx8xx/u-boot.lds | 5 + board/micronas/vct/u-boot.lds | 5 + board/ml2/u-boot.lds | 5 + board/mousse/u-boot.lds | 5 + board/mvblue/u-boot.lds | 5 + board/netphone/u-boot.lds | 5 + board/netta/u-boot.lds | 5 + board/netta2/u-boot.lds | 5 + board/netvia/u-boot.lds | 5 + board/nx823/u-boot.lds | 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/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/stx/stxxtc/u-boot.lds | 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/westel/amx860/u-boot.lds | 5 + examples/standalone/mips.lds | 4 + examples/standalone/nds32.lds | 4 + examples/standalone/sparc.lds | 5 + include/linker_lists.h | 125 ++++++++++++++++++++++ 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 + spl/Makefile | 14 ++- 153 files changed, 876 insertions(+), 5 deletions(-) create mode 100644 include/linker_lists.h
Signature · 1 line
1.7.10.4
PATCH 1/3 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.
--- Makefile | 21 ++++++++++++++++++--- spl/Makefile | 14 +++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-)
Makefile +18 -3
@@ -510,7 +510,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
@@ -543,8 +546,20 @@ $(SUBDIR_EXAMPLES): $(obj)u-boot $(LDSCRIPT): depend $(MAKE) -C $(dir $@) $(notdir $@) -$(obj)u-boot.lds: $(LDSCRIPT) - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ +$(obj)u-boot.lst: $(LIBBOARD) $(LIBS) + $(OBJDUMP) -h $(LIBBOARD) $(LIBS) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ + sed 's/\.[^\.]\+$$//' | \ + sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ + sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ + LC_COLLATE=C sort -u | \ + sed 's/#//g' | \ + sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ + -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ + -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@ + +$(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
spl/Makefile +13 -1
@@ -148,7 +148,19 @@ $(START): depend $(LIBS): depend $(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@)) -$(obj)u-boot-spl.lds: $(LDSCRIPT) depend +$(obj)u-boot-spl.lst: $(LIBS) + $(OBJDUMP) -h $(LIBS) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ + sed 's/\.[^\.]\+$$//' | \ + sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ + sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ + LC_COLLATE=C sort -u | \ + sed 's/#//g' | \ + sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ + -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ + -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@ + +$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@ depend: $(obj).depend
Signature · 1 line
1.7.10.4
PATCH 1/3 common: Add symbol handling for generic lists into Makefile
Hi Marek,
Quoted 46 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.ldsvia the linker INCLUDE directive inu-boot.lds.Adjustments are made in the
Makefileand spl/Makefile so that theu-boot.ldsandu-boot-spl.ldsdepend on their respective .lst files.Signed-off-by Marek Vasut <[email protected]>Cc Joe Hershberger <[email protected]>Cc Mike Frysinger <[email protected]>--- Makefile | 21 ++++++++++++++++++--- spl/Makefile | 14 +++++++++++++- 2 files changed, 31 insertions(+), 4 deletions(-)Makefile +5
-3@@ -510,7 +510,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@@ -543,8 +546,20 @@ $(SUBDIR_EXAMPLES): $(obj)u-boot $(LDSCRIPT): depend $(MAKE) -C $(dir $@) $(notdir $@) -$(obj)u-boot.lds: $(LDSCRIPT) - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ +$(obj)u-boot.lst: $(LIBBOARD) $(LIBS)
Makefile $(SUBDIR_EXAMPLES): $(obj)u-boot · line 559
Quoted 10 lines
Makefile +10
-0+ $(OBJDUMP) -h $(LIBBOARD) $(LIBS) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ + sed 's/\.[^\.]\+$$//' | \ + sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ + sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ + LC_COLLATE=C sort -u | \ + sed 's/#//g' | \ + sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ + -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ + -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@
It might be nice to litter this with comments indicating what you're accomplishing at each step.
Quoted 16 lines
Makefile +3
-0+ +$(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) allspl/Makefile +1
-1@@ -148,7 +148,19 @@ $(START): depend $(LIBS): depend $(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@)) -$(obj)u-boot-spl.lds: $(LDSCRIPT) depend +$(obj)u-boot-spl.lst: $(LIBS)
spl/Makefile $(START): depend · line 161
Quoted 10 lines
spl/Makefile +10
-0+ $(OBJDUMP) -h $(LIBS) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ + sed 's/\.[^\.]\+$$//' | \ + sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ + sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ + LC_COLLATE=C sort -u | \ + sed 's/#//g' | \ + sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ + -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ + -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@
Could you not reuse this complicated logic by defining a make function and then call + eval it? Something like this:
define list_rule_template
$(1) : $(2)
$(OBJDUMP) -h $^ | \
sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \
sed 's/\.[^\.]\+$$//' | \
sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \
sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \
LC_COLLATE=C sort -u | \
sed 's/#//g' | \
sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\
-e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\
-e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@endef
...
$(eval $(call list_rule_template,$(obj)u-boot.lst,$(LIBBOARD) $(LIBS)))
...
$(eval $(call list_rule_template,$(obj)u-boot-spl.lst,$(LIBS)))
spl/Makefile $(START): depend · line 164
Quoted 3 lines
spl/Makefile +2
-0+ +$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@
-Joe
PATCH 1/3 common: Add symbol handling for generic lists into Makefile
Dear Joe Hershberger,
Quoted 1 line
Hi Marek,
[...]
It's a RFC, lemme explain:
Quoted 3 lines
Quoted 3 lines
-$(obj)u-boot-spl.lds: $(LDSCRIPT) depend
+$(obj)u-boot-spl.lst: $(LIBS)
+ $(OBJDUMP) -h $(LIBS) | \
Dump the section headers in all object files
Quoted 1 line
Quoted 1 line
+ sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \
Filter only \.u_boot_list.* symbols
Quoted 1 line
Quoted 1 line
+ sed 's/\.[^\.]\+$$//' | \
Remove the last .[^.]$ from each line. That's because the last part behind . is the name of the variable, we don't need that for generation of subsection boundary symbols.
Quoted 1 line
Quoted 1 line
+ sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \
For each line in format .u_boot_list.x.y.z, generate a list of as such (list of substrings with . as separator):
.u_boot_list.x.y.z
.u_boot_list.x.y
.u_boot_list.x
.u_boot_list
Quoted 1 line
Quoted 1 line
+ sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \
For each line, print the line thrice, first time append \a at the end, second @ and third ~. Also replace each dot with .# . See [1] and look for the list under "The order_end Keyword" section.
Quoted 1 line
Quoted 1 line
+ LC_COLLATE=C sort -u | \
Sort the list, it's imperative to use the C collating here, because of [1]. This results in lines ending with \a float above all lines ending with either @ or continuing with further dots. Same goes for ~, which falls at the end.
Quoted 1 line
Quoted 1 line
+ sed 's/#//g' | \
Remove the hashes.
Quoted 3 lines
Makefile $(SUBDIR_EXAMPLES): $(obj)u-boot · line 559
Quoted 3 lines
Makefile +3
-0+ sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ + -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ + -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@
Replace \a with __start ... so this defines the subsection start marker, ~ with __end for subsection end marker and lines ending with @ with the SORT(subsection.*) so they catch the contents of subsection.
Quoted 2 lines
Could you not reuse this complicated logic by defining a make function and then call + eval it? Something like this:
Can you elaborate more? I don't quite get it ... :-(
Quoted 18 lines
define
list_rule_template
$(1) : $(2)$(OBJDUMP) -h $^ | \ sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ sed 's/\.[^\.]\+$$//' | \ sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ LC_COLLATE=C sort -u | \ sed 's/#//g' | \ sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@endef
...
$(eval $(call list_rule_template,$(obj)u-boot.lst,$(LIBBOARD) $(LIBS)))
...
$(eval $(call list_rule_template,$(obj)u-boot-spl.lst,$(LIBS)))
Quoted 7 lines
Quoted 5 lines
+
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@-Joe
[1] http://pubs.opengroup.org/onlinepubs/007908799/xbd/locale.html
Best regards,
Marek Vasut
PATCH 1/3 common: Add symbol handling for generic lists into Makefile
Hi Marex,
Quoted 1 line · Marek Vasut
Dear Joe Hershberger,
[...]
Quoted 5 lines
Quoted 2 lines
Could you not reuse this complicated logic by defining a make function and then call + eval it? Something like this:
Can you elaborate more? I don't quite get it ... :-(
Consolidate the complicated rule that only differs by target and sources into a single place. I also replaced your duplication of the sources in the rule with "$^"
Quoted 6 lines
Quoted 6 lines
define
list_rule_template
$(1) : $(2)$(OBJDUMP) -h $^ | \ sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ sed 's/\.[^\.]\+$$//' | \ sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \
Quoted 8 lines
Quoted 8 lines
sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ LC_COLLATE=C sort -u | \ sed 's/#//g' | \ sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\ -e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@endef
...
Then you instantiate the rule at each place in the Makefile where you need it, passing the target and sources:
Quoted 10 lines
Quoted 10 lines
$(eval $(call list_rule_template,$(obj)u-boot.lst,$(LIBBOARD) $(LIBS)))
...
$(eval $(call list_rule_template,$(obj)u-boot-spl.lst,$(LIBS)))Quoted 5 lines
+
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@
-Joe
PATCH 1/3 common: Add symbol handling for generic lists into Makefile
Dear Joe Hershberger,
Quoted 7 lines
Hi Marex,
Quoted 1 line · Marek Vasut
Dear Joe Hershberger,
[...]
Quoted 8 lines
Quoted 4 lines
Quoted 3 lines
Could you not reuse this complicated logic by defining a make function
and then call + eval it? Something like this:
Can you elaborate more? I don't quite get it ... :-(
Consolidate the complicated rule that only differs by target and sources into a single place. I also replaced your duplication of the sources in the rule with "$^"
Ok, I get it ... and where do I put this consolidation ?
Quoted 25 lines
Quoted 12 lines
Quoted 12 lines
define
list_rule_template
$(1) : $(2)$(OBJDUMP) -h $^ | \ sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ sed 's/\.[^\.]\+$$//' | \ sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ LC_COLLATE=C sort -u | \ sed 's/#//g' | \ sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\Quoted 5 lines
Quoted 5 lines
-e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@endef
...Then you instantiate the rule at each place in the
Makefilewhere youneed it, passing the target and sources:
Quoted 4 lines
Quoted 4 lines
$(eval $(call list_rule_template,$(obj)u-boot.lst,$(LIBBOARD) $(LIBS)))
...
$(eval $(call list_rule_template,$(obj)u-boot-spl.lst,$(LIBS)))
Quoted 7 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
+
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@-Joe
Best regards,
Marek Vasut
PATCH 1/3 common: Add symbol handling for generic lists into Makefile
Hi Marek,
Quoted 11 lines · Marek Vasut
Dear Joe Hershberger,
Quoted 9 lines
Hi Marex,
Quoted 1 line · Marek Vasut
Dear Joe Hershberger,
[...]
Quoted 2 lines
Quoted 1 line
Could you not reuse this complicated logic by defining a make function
Quoted 8 lines
Quoted 6 lines
Quoted 2 lines
Quoted 1 line
and then call + eval it? Something like this:
Can you elaborate more? I don't quite get it ... :-(
Consolidate the complicated rule that only differs by target and sources into a single place. I also replaced your duplication of the sources in the rule with "$^"
Ok, I get it ... and where do I put this consolidation ?
I would just put it in tools/linker_list.mk and include it in the Makefiles.
Quoted 25 lines
Quoted 25 lines
Quoted 12 lines
Quoted 12 lines
define
list_rule_template
$(1) : $(2)$(OBJDUMP) -h $^ | \ sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$/\1/p' | \ sed 's/\.[^\.]\+$$//' | \ sed -n ':s /^.\+$$/ { p;s/^\(.*\)\.[^\.]*$$/\1/;b s }' | \ sed -n 's/\./.#/g;h;s/$$/\a/p;g;s/$$/@/p;g;s/$$/~/p;' | \ LC_COLLATE=C sort -u | \ sed 's/#//g' | \ sed -n -e '/\a$$/ { s/\./_/g;s/\a$$/__start = .;/p; }'\Quoted 5 lines
Quoted 5 lines
-e '/~$$/ { s/\./_/g;s/~$$/__end = .;/p; }'\ -e '/@$$/ { s/\(.*\)@$$/*(SORT(\1.*));/p }' >$@endef
...Then you instantiate the rule at each place in the
Makefilewhere youneed it, passing the target and sources:
Quoted 4 lines
Quoted 4 lines
$(eval $(call list_rule_template,$(obj)u-boot.lst,$(LIBBOARD) $(LIBS)))
...
$(eval $(call list_rule_template,$(obj)u-boot-spl.lst,$(LIBS)))
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
Quoted 5 lines
+
+$(obj)u-boot-spl.lds: $(LDSCRIPT) $(obj)u-boot-spl.lst depend$(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - < $< > $@
-Joe
PATCH 2/3 common: Implement support for linker-generated arrays
In reply to Marek VasutThis 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 compiler time and each element is declared separatelly at different place. Such array though can later be accessed and used via special accessor.
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list linker section . Once compiled, it is possible to dump all symbols placed in .u_boot_list section and generate appropriate bounds for each subsection of the .u_boot_list section. Each such subsection this 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.
--- include/linker_lists.h | 125 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 include/linker_lists.h
include/linker_lists.h new file +125 -0
@@ -0,0 +1,125 @@ +/* +* 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 of usage: +* +* 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))); \ + _type _u_boot_list_##_section_u##_##_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 of usage: +* +* 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 of usage: +* +* 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++) { +* printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y); +* msc++; +* } +*/ +#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; \ + }) + +#endif /* __LINKER_LISTS_H__ */
Signature · 1 line
1.7.10.4
PATCH 2/3 common: Implement support for linker-generated arrays
Hi Marek,
Quoted 95 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 compiler time and each element is declared separatelly at different place. Such array though can later be accessed and used via special accessor.
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list linker section . Once compiled, it is possible to dump all symbols placed in .u_boot_list section and generate appropriate bounds for each subsection of the .u_boot_list section. Each such subsection this 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.
Signed-off-by Marek Vasut <[email protected]>Cc Joe Hershberger <[email protected]>Cc Mike Frysinger <[email protected]>--- include/linker_lists.h | 125 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 125 insertions(+) create mode 100644 include/linker_lists.hinclude/linker_lists.h new file +62
-0@@ -0,0 +1,125 @@ +/* +* 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 of usage: +*
include/linker_lists.h line 72
Quoted 10 lines
include/linker_lists.h new file +10
-0+* 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))); \ + _type _u_boot_list_##_section_u##_##_name
Why repeat the "_type _u_boot_list_##_section_u##_##_name" instead of just leaving the semicolon off after the __attribute__()?
Quoted 11 lines
include/linker_lists.h new file +11
-0+ +/** +* 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. +*
include/linker_lists.h line 93
Quoted 10 lines
include/linker_lists.h new file +10
-0+* Example of usage: +* +* 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; \ + })
Tricky. I didn't realize this gcc extension existed.
Quoted 35 lines
include/linker_lists.h new file +32
-1+ +/** +* 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 of usage: +* +* 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++) { +* printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y); +* msc++; +* } +*/ +#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; \ + }) + +#endif /* __LINKER_LISTS_H__ */ --1.7.10.4
PATCH 2/3 common: Implement support for linker-generated arrays
Dear Joe Hershberger,
[...]
Quoted 8 lines
include/linker_lists.h line 72
Quoted 5 lines
include/linker_lists.h new file +5
-0+#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))); \ + _type _u_boot_list_##_section_u##_##_nameWhy repeat the "
_type_u_boot_list_##_section_u##_##_name" instead of just leaving the semicolon off after the__attribute__()?
Good idea. Do you like my documentation fairytail btw ? :p
Quoted 15 lines
Quoted 15 lines
include/linker_lists.h new file +15
-0+ +/** +* 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 of usage: +* +* struct my_sub_cmd *msc = ll_entry_start(struct my_sub_cmd, cmd_sub); +*/
Quoted 8 lines
include/linker_lists.h line 93
Quoted 6 lines
include/linker_lists.h new file +6
-0+#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; \ + })Tricky. I didn't realize this gcc extension existed.
All this is a horrible pile of tricks
[...]
PATCH 3/3 common: Add .u_boot_list into all linker files
In reply to Marek VasutAdd 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.
--- 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/RPXlite/u-boot.lds | 5 +++++ board/RPXlite_dw/u-boot.lds | 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/cobra5272/u-boot.lds | 5 +++++ board/cogent/u-boot.lds | 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/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/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/gth2/u-boot.lds | 5 +++++ board/hermes/u-boot.lds | 5 +++++ board/hymod/u-boot.lds | 5 +++++ board/icu862/u-boot.lds | 5 +++++ board/idmr/u-boot.lds | 5 +++++ board/incaip/u-boot.lds | 5 +++++ board/ip860/u-boot.lds | 5 +++++ board/ivm/u-boot.lds | 5 +++++ board/korat/u-boot-F7FC.lds | 3 +++ board/kup/kup4k/u-boot.lds | 5 +++++ board/kup/kup4x/u-boot.lds | 5 +++++ board/lantec/u-boot.lds | 5 +++++ board/lwmon/u-boot.lds | 5 +++++ board/manroland/uc100/u-boot.lds | 5 +++++ board/matrix_vision/mvsmr/u-boot.lds | 5 +++++ board/mbx8xx/u-boot.lds | 5 +++++ board/micronas/vct/u-boot.lds | 5 +++++ board/ml2/u-boot.lds | 5 +++++ board/mousse/u-boot.lds | 5 +++++ board/mvblue/u-boot.lds | 5 +++++ board/netphone/u-boot.lds | 5 +++++ board/netta/u-boot.lds | 5 +++++ board/netta2/u-boot.lds | 5 +++++ board/netvia/u-boot.lds | 5 +++++ board/nx823/u-boot.lds | 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/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/stx/stxxtc/u-boot.lds | 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/westel/amx860/u-boot.lds | 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 +++++ 150 files changed, 720 insertions(+), 1 deletion(-)
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5 -0
@@ -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
@@ -54,6 +54,10 @@ SECTIONS .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); .rel.dyn : {
arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds +4 -0
@@ -54,6 +54,10 @@ SECTIONS .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); .rel.dyn : {
arch/arm/cpu/armv7/omap-common/u-boot-spl.lds +5 -0
@@ -47,6 +47,11 @@ SECTIONS . = ALIGN(4); .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram + + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); __image_copy_end = .; _end = .;
arch/arm/cpu/ixp/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -53,6 +53,10 @@ SECTIONS } _edata = .; + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(8); __init_begin = .; __init_end = .;
arch/powerpc/cpu/mpc85xx/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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/RRvision/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -48,6 +48,10 @@ SECTIONS . = ALIGN(4); .data : { *(SORT_BY_ALIGNMENT(.data*)) } >.sram . = ALIGN(4); + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } >.sram + . = ALIGN(4); .rel.dyn : { __rel_dyn_start = .; *(.rel*)
board/altera/nios2-generic/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/cobra5272/u-boot.lds +5 -0
@@ -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
@@ -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/dave/PPChameleonEVB/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/emk/top860/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/freescale/m5208evbe/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/gth2/u-boot.lds +5 -0
@@ -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/hermes/u-boot.lds +5 -0
@@ -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/hymod/u-boot.lds +5 -0
@@ -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/icu862/u-boot.lds +5 -0
@@ -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/idmr/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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 +5 -0
@@ -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/korat/u-boot-F7FC.lds +3 -0
@@ -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
@@ -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 +5 -0
@@ -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/lantec/u-boot.lds +5 -0
@@ -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/lwmon/u-boot.lds +5 -0
@@ -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/manroland/uc100/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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/micronas/vct/u-boot.lds +5 -0
@@ -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
@@ -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/mousse/u-boot.lds +5 -0
@@ -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/mvblue/u-boot.lds +5 -0
@@ -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
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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/openrisc/openrisc-generic/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/sandpoint/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/stx/stxxtc/u-boot.lds +5 -0
@@ -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/svm_sc8xx/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -57,6 +57,10 @@ SECTIONS *(.data) } + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); .rel.dyn : {
board/westel/amx860/u-boot.lds +5 -0
@@ -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 = .;
examples/standalone/mips.lds +4 -0
@@ -39,6 +39,10 @@ SECTIONS . = ALIGN(4); .data : { *(.data*) } + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = .; _gp = ALIGN(16) + 0x7ff0;
examples/standalone/nds32.lds +4 -0
@@ -36,6 +36,10 @@ SECTIONS . = ALIGN(4); .data : { *(.data) } + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); .got : {
examples/standalone/sparc.lds +5 -0
@@ -46,6 +46,11 @@ SECTIONS { *(.data) } + + .u_boot_list : { + INCLUDE u-boot-spl.lst; + } + . = ALIGN(4); __data_end = .;
nand_spl/board/freescale/mx31pdk/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
PATCH 3/3 common: Add .u_boot_list into all linker files
Hi Marek,
Quoted 165 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.
Signed-off-by Marek Vasut <[email protected]>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/RPXlite/u-boot.lds | 5 +++++ board/RPXlite_dw/u-boot.lds | 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/cobra5272/u-boot.lds | 5 +++++ board/cogent/u-boot.lds | 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/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/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/gth2/u-boot.lds | 5 +++++ board/hermes/u-boot.lds | 5 +++++ board/hymod/u-boot.lds | 5 +++++ board/icu862/u-boot.lds | 5 +++++ board/idmr/u-boot.lds | 5 +++++ board/incaip/u-boot.lds | 5 +++++ board/ip860/u-boot.lds | 5 +++++ board/ivm/u-boot.lds | 5 +++++ board/korat/u-boot-F7FC.lds | 3 +++ board/kup/kup4k/u-boot.lds | 5 +++++ board/kup/kup4x/u-boot.lds | 5 +++++ board/lantec/u-boot.lds | 5 +++++ board/lwmon/u-boot.lds | 5 +++++ board/manroland/uc100/u-boot.lds | 5 +++++ board/matrix_vision/mvsmr/u-boot.lds | 5 +++++ board/mbx8xx/u-boot.lds | 5 +++++ board/micronas/vct/u-boot.lds | 5 +++++ board/ml2/u-boot.lds | 5 +++++ board/mousse/u-boot.lds | 5 +++++ board/mvblue/u-boot.lds | 5 +++++ board/netphone/u-boot.lds | 5 +++++ board/netta/u-boot.lds | 5 +++++ board/netta2/u-boot.lds | 5 +++++ board/netvia/u-boot.lds | 5 +++++ board/nx823/u-boot.lds | 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/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/stx/stxxtc/u-boot.lds | 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/westel/amx860/u-boot.lds | 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 +++++ 150 files changed, 720 insertions(+), 1 deletion(-)arch/arm/cpu/arm920t/ep93xx/u-boot.lds +0
-0
arch/arm/cpu/arm920t/ep93xx/u-boot.lds SECTIONS · line 53
Quoted 1 line
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +0
-0@@ -53,6 +53,11 @@ SECTIONS __u_boot_cmd_end = .;
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
arch/arm/cpu/arm920t/ep93xx/u-boot.lds SECTIONS · line 63
Quoted 10 lines
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5
-0. = ALIGN(4); + .u_boot_list : { + INCLUDE u-boot.lst; + } + + . = ALIGN(4); __bss_start = .; .bss : { *(.bss) } __bss_end__ = .;
-Joe
PATCH 3/3 common: Add .u_boot_list into all linker files
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing u_boot_cmd would break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.
Quoted 8 lines
Quoted 8 lines
. = ALIGN(4);arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5
-0+ .u_boot_list : { + INCLUDE u-boot.lst; + } + + . = ALIGN(4);
Quoted 5 lines
Quoted 3 lines
__bss_start = .; .bss : { *(.bss) } __bss_end__ = .;-Joe
Best regards,
Marek Vasut
PATCH 3/3 common: Add .u_boot_list into all linker files
Quoted 11 lines · Marek Vasut
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.
Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected. Making use of the 'exec' step in git rebase is very helpful for making sure this is the case too, btw.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120924/3f1864fc/attachment.pgp>
PATCH 3/3 common: Add .u_boot_list into all linker files
Dear Tom Rini,
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Quoted 7 lines
Quoted 4 lines
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected.
+1 (actually +inf.)
Quoted 3 lines
Making use of the
'exec' step in git rebase is very helpful for making sure this is the case too, btw.
exec step ?
Best regards,
Marek Vasut
PATCH 3/3 common: Add .u_boot_list into all linker files
Quoted 19 lines · Marek Vasut
Dear Tom Rini,
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Quoted 7 lines
Quoted 4 lines
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected.
Quoted 7 lines
+1 (actually +inf.)
Quoted 3 lines
Making use of the
'exec' step in git rebase is very helpful for making sure this is the case too, btw.exec step ?
Yes, in 'git rebase -i' you can insert exec lines after each commit such as:
pick 12345 Commit 1
exec script-that-runs-MAKEALL.sh
pick 6789a Commit 2
exec script-that-runs-MAKEALL.sh
I use my MAKEALL wrapper (http://pastebin.com/fNhG4iCd but I've updated a bit more since I uploaded that) and --log git rev-parse --short HEAD so I can see what's gone on for every step in a series.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120924/192ce0c0/attachment.pgp>
PATCH 3/3 common: Add .u_boot_list into all linker files
Hi Tom,
Quoted 35 lines · Tom Rini
Quoted 19 lines · Marek Vasut
Dear Tom Rini,
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Quoted 7 lines
Quoted 4 lines
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected.
Quoted 7 lines
+1 (actually +inf.)
Quoted 3 lines
Making use of the
'exec' step in git rebase is very helpful for making sure this is the case too, btw.exec step ?
Yes, in 'git rebase -i' you can insert exec lines after each commit such as:
pick 12345 Commit 1
execscript-that-runs-MAKEALL.sh
pick 6789a Commit 2
execscript-that-runs-MAKEALL.sh
Quoted 3 lines
I use my MAKEALL wrapper (http://pastebin.com/fNhG4iCd but I've updated a bit more since I uploaded that) and --log
git rev-parse --short HEADso I can see what's gone on for every step in a series.
That's interesting. I've been using git-test-sequence for a similar purpose. It doesn't require the exec steps to be added manually, though.
http://dustin.github.com/2010/03/28/git-test-sequence.html
-Joe
PATCH 3/3 common: Add .u_boot_list into all linker files
Quoted 42 lines · Joe Hershberger
Hi Tom,
Quoted 35 lines · Tom Rini
Quoted 19 lines · Marek Vasut
Dear Tom Rini,
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Quoted 7 lines
Quoted 4 lines
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected.
Quoted 7 lines
+1 (actually +inf.)
Quoted 3 lines
Making use of the
'exec' step in git rebase is very helpful for making sure this is the case too, btw.exec step ?
Yes, in 'git rebase -i' you can insert exec lines after each commit such as:
pick 12345 Commit 1
execscript-that-runs-MAKEALL.sh
pick 6789a Commit 2
execscript-that-runs-MAKEALL.shQuoted 3 lines
I use my MAKEALL wrapper (http://pastebin.com/fNhG4iCd but I've updated a bit more since I uploaded that) and --log
git rev-parse --short HEADso I can see what's gone on for every step in a series.
Quoted 5 lines
That's interesting. I've been using git-test-sequence for a similar purpose. It doesn't require the exec steps to be added manually, though.
+1 to git test-squence as well. I think the reason I didn't use that after a while was that MAKEALL didn't non-zero exit on warnings. Of course since I've moved on to logging all output from each step to verfiy by hand, test-sequence would also work great here.
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120924/f38620ad/attachment.pgp>
PATCH 3/3 common: Add .u_boot_list into all linker files
In reply to Tom RiniDear Tom Rini,
Quoted 35 lines · Marek Vasut
Quoted 19 lines
Dear Tom Rini,
Quoted 9 lines · Marek Vasut
Quoted 8 lines
Dear Joe Hershberger,
[...]
Quoted 3 lines
While you're touching all these files, why not replace the __u_boot_cmd* implementation with this as well. There's no need to leave a special case in there as well is there?
Quoted 7 lines
Quoted 4 lines
Not in the first stab, it can be indeed done later, but now I'd like to avoid breakage. Besides, replacing
u_boot_cmdwould break bisectability, I want to preserve it and rather apply more patches slowly than less patches recklessly.Agreed. We need to work hard to make sure we do lots of incremental steps here to make sure breakage can be bisected.
Quoted 7 lines
+1 (actually +inf.)
Quoted 3 lines
Making use of the
'exec' step in git rebase is very helpful for making sure this is the case too, btw.exec step ?
Yes, in 'git rebase -i' you can insert exec lines after each commit such as:
pick 12345 Commit 1
execscript-that-runs-MAKEALL.sh
pick 6789a Commit 2
execscript-that-runs-MAKEALL.sh
Quoted 3 lines
I use my MAKEALL wrapper (http://pastebin.com/fNhG4iCd but I've updated a bit more since I uploaded that) and --log
git rev-parse --short HEADso I can see what's gone on for every step in a series.
I guess you have one hell of a badass computer cluster then ;-)
Best regards,
Marek Vasut
cover Linker-generated arrays
In reply to Marek VasutQuoted 5 lines · Marek Vasut
This is a first stab at the linker-generated array. Basically, this concept is a generic abstraction of how
u_boot_cmdworks today. The patch 2/3 contains a huge pile of documentation which should clarify most of the questions.
Quoted 7 lines
NOTE: Compile-testing in progress, but it works with m28evk and sandbox
for now.Marek Vasut (3):
common: Add symbol handling for generic lists intoMakefile
common: Implement support for linker-generated arrays
common: Add .u_boot_list into all linker files
So... it's a generic version of the u_boot_cmd infrastructure. Do you start using this in DM? Would it be a lot of work to make patch #4 be converting u_boot_cmd? Or do you just want to say, once folks are happy with this of course, that the first bits of DM will depend on this series being merged? Thanks!
Signature · 8 lines
Tom -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 836 bytes Desc: Digital signature URL: <http://lists.denx.de/pipermail/u-boot/attachments/20120924/bb8d200c/attachment.pgp>
cover Linker-generated arrays
Dear Tom Rini,
Quoted 10 lines · Marek Vasut
Quoted 9 lines
This is a first stab at the linker-generated array. Basically, this concept is a generic abstraction of how
u_boot_cmdworks today. The patch 2/3 contains a huge pile of documentation which should clarify most of the questions.NOTE: Compile-testing in progress, but it works with m28evk and sandbox
for now.
Quoted 7 lines
Quoted 4 lines
Marek Vasut (3):
common: Add symbol handling for generic lists intoMakefile
common: Implement support for linker-generated arrays
common: Add .u_boot_list into all linker filesSo... it's a generic version of the
u_boot_cmdinfrastructure. Do you start using this in DM?
Exactly
Quoted 2 lines
Would it be a lot of work to make patch #4 be
convertingu_boot_cmd?
I don't want to. I want to do it in a separate patch. One reason is because this might be used where u_boot_cmd is not. Other reason is that this will eventually replace u_boot_cmd, but I want that in a separate patch (I do have that in works).
Quoted 3 lines
Or do you just want to say, once folks are happy
with this of course, that the first bits of DM will depend on this series being merged?
DM will depend on this, yes
Quoted 1 line
Thanks!
Best regards,
Marek Vasut
v2 cover Linker-generated arrays
In reply to Marek VasutThis is a first stab at the linker-generated array. Basically, this concept is a generic abstraction of how u_boot_cmd works today. The patch 2/3 contains a huge pile of documentation which should clarify most of the questions.
Marek Vasut (3):
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
Makefile | 10 +- 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/RPXlite/u-boot.lds | 5 + board/RPXlite_dw/u-boot.lds | 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/cobra5272/u-boot.lds | 5 + board/cogent/u-boot.lds | 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/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/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/gth2/u-boot.lds | 5 + board/hermes/u-boot.lds | 5 + board/hymod/u-boot.lds | 5 + board/icu862/u-boot.lds | 5 + board/idmr/u-boot.lds | 5 + board/incaip/u-boot.lds | 5 + board/ip860/u-boot.lds | 5 + board/ivm/u-boot.lds | 5 + board/korat/u-boot-F7FC.lds | 3 + board/kup/kup4k/u-boot.lds | 5 + board/kup/kup4x/u-boot.lds | 5 + board/lantec/u-boot.lds | 5 + board/lwmon/u-boot.lds | 5 + board/manroland/uc100/u-boot.lds | 5 + board/matrix_vision/mvsmr/u-boot.lds | 5 + board/mbx8xx/u-boot.lds | 5 + board/micronas/vct/u-boot.lds | 5 + board/ml2/u-boot.lds | 5 + board/mousse/u-boot.lds | 5 + board/mvblue/u-boot.lds | 5 + board/netphone/u-boot.lds | 5 + board/netta/u-boot.lds | 5 + board/netta2/u-boot.lds | 5 + board/netvia/u-boot.lds | 5 + board/nx823/u-boot.lds | 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/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/stx/stxxtc/u-boot.lds | 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/westel/amx860/u-boot.lds | 5 + config.mk | 2 + examples/standalone/mips.lds | 4 + examples/standalone/nds32.lds | 4 + examples/standalone/sparc.lds | 5 + helper.mk | 62 +++++++++++ include/linker_lists.h | 124 ++++++++++++++++++++++ nand_spl/board/freescale/mpc8536ds/Makefile | 6 +- nand_spl/board/freescale/mpc8569mds/Makefile | 6 +- nand_spl/board/freescale/mpc8572ds/Makefile | 6 +- nand_spl/board/freescale/mx31pdk/Makefile | 6 +- nand_spl/board/freescale/mx31pdk/u-boot.lds | 5 + nand_spl/board/freescale/p1010rdb/Makefile | 6 +- nand_spl/board/freescale/p1023rds/Makefile | 6 +- nand_spl/board/freescale/p1_p2_rdb/Makefile | 6 +- nand_spl/board/freescale/p1_p2_rdb_pc/Makefile | 6 +- nand_spl/board/karo/tx25/Makefile | 6 +- nand_spl/board/karo/tx25/u-boot.lds | 5 + nand_spl/board/samsung/smdk6400/u-boot.lds | 5 + spl/Makefile | 3 +- 164 files changed, 953 insertions(+), 23 deletions(-) create mode 100644 helper.mk create mode 100644 include/linker_lists.h
Signature · 1 line
1.7.10.4
PATCH v2 1/3 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.
--- Makefile | 10 ++-- config.mk | 2 + helper.mk | 62 ++++++++++++++++++++++++ nand_spl/board/freescale/mpc8536ds/Makefile | 6 ++- nand_spl/board/freescale/mpc8569mds/Makefile | 6 ++- nand_spl/board/freescale/mpc8572ds/Makefile | 6 ++- nand_spl/board/freescale/mx31pdk/Makefile | 6 ++- nand_spl/board/freescale/p1010rdb/Makefile | 6 ++- nand_spl/board/freescale/p1023rds/Makefile | 6 ++- nand_spl/board/freescale/p1_p2_rdb/Makefile | 6 ++- nand_spl/board/freescale/p1_p2_rdb_pc/Makefile | 6 ++- nand_spl/board/karo/tx25/Makefile | 6 ++- spl/Makefile | 3 +- 13 files changed, 109 insertions(+), 22 deletions(-) create mode 100644 helper.mk
V2: - Move all the regex goo that generates u-boot.lst into helper.mk
- Implant the eval call idea from Joe
- Fix the nand spl boards where the builds failed.
- Continue my documentation quest
(no, I'm not planning to become a writer ;-) )
Makefile +7 -3
@@ -510,7 +510,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
@@ -543,8 +546,9 @@ $(SUBDIR_EXAMPLES): $(obj)u-boot $(LDSCRIPT): depend $(MAKE) -C $(dir $@) $(notdir $@) -$(obj)u-boot.lds: $(LDSCRIPT) - $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$^ >$@ +$(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
@@ -23,6 +23,8 @@ ######################################################################### +include $(TOPDIR)/helper.mk + ifeq ($(CURDIR),$(SRCTREE)) dir := else
helper.mk new file +62 -0
62 lines not on this page · raw message
nand_spl/board/freescale/mpc8536ds/Makefile +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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
@@ -56,8 +57,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(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 +4 -2
@@ -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,9 @@ $(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 - <$^ >$@ +$(eval $(call make_u_boot_list, $(LSTSCRIPT), $(__OBJS))) +$(nandobj)u-boot.lds: $(LDSCRIPT) $(LSTSCRIPT) + $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@ #########################################################################
spl/Makefile +2 -1
@@ -148,7 +148,8 @@ $(START): depend $(LIBS): depend $(MAKE) -C $(SRCTREE)$(dir $(subst $(SPLTREE),,$@)) -$(obj)u-boot-spl.lds: $(LDSCRIPT) depend +$(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
PATCH v2 1/3 common: Add symbol handling for generic lists into Makefile
Dear Marek Vasut,
Quoted 4 lines · In message <[email protected]> you wrote:
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.
...
Makefile else · line 516
Quoted 11 lines
Makefile +4
-1@@ -510,7 +510,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) \
I dislike the exact duplication of the commands here.
Would it not make sense to provide some function / script to do that?
Makefile $(SUBDIR_EXAMPLES): $(obj)u-boot · line 551
Quoted 3 lines
Makefile +3
-0+$(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 - <$< >$@
I think this needs a comment to explain what sort of magic you are invoking here.
...
Quoted 2 lines
helper.mk new file +0
-0
...
helper.mk line 57
Quoted 5 lines
helper.mk new file +5
-0+ $(OBJDUMP) -h $(2) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$$$/\1/p' | \ + sed 's/\.[^\.]\+$$$$//' | \ + sed -n ':s /^.\+$$$$/ { p;s/^\(.*\)\.[^\.]*$$$$/\1/;b s }' | \ + sed -n 'h;s/$$$$/\a/p;g;s/$$$$/@/p;g;s/$$$$/~/p;' | \
...
Why exactly do you need 4 invocations of sed here? Seems just like a waste of processes to me.
Quoted 2 lines
LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
BTW: what exactly is "LST" supposed to mean?
helper.mk
Quoted 3 lines
+$(eval $(call
make_u_boot_list, $(LSTSCRIPT), $(__OBJS))) +$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)helper.mk new file +1
-0+ $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@
Comment needed.
Best regards,
Wolfgang Denk
Signature · 7 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Ein weiser Herrscher kann in einem gro?en Land mehr Gutes bewirken als in einem kleinen - ein dummer Herrscher aber auch viel mehr Un- fug. Da weise Herrscher seltener sind als dumme, war ich schon immer gegen gro?e Reiche skeptisch. - Herbert Rosendorfer
PATCH v2 1/3 common: Add symbol handling for generic lists into Makefile
Dear Wolfgang Denk,
Quoted 10 lines
Dear Marek Vasut,
Quoted 4 lines · In message <[email protected]> you wrote:
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.
...
Quoted 8 lines
Makefile else · line 514
Quoted 8 lines
Makefile +0
-0@@ -510,7 +510,10 @@ else GEN_UBOOT = \ UNDEF_SYM=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_cmd_.*\)/-u\1/p'|sort|
uniq`;\
Quoted 2 lines
Makefile else · line 515
Quoted 2 lines
Makefile +0
-1- cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) $$UNDEF_SYM
$(__OBJS)
Quoted 2 lines
Makefile else · line 516
Quoted 2 lines
Makefile +1
-0\ + UNDEF_LST=`$(OBJDUMP) -x $(LIBBOARD) $(LIBS) | \ + sed -n -e 's/.*\($(SYM_PREFIX)__u_boot_list_.*\)/-u\1/p'|sort|
uniq`;\
Quoted 4 lines
Makefile else · line 516
Quoted 2 lines
Makefile +2
-0+ cd $(LNDIR) && $(LD) $(LDFLAGS) $(LDFLAGS_$(@F)) \ + $$UNDEF_SYM $$UNDEF_LST $(__OBJS) \I dislike the exact duplication of the commands here.
These shall begone once the cmd stuff is flipped over to these generic lists.
Quoted 1 line
Would it not make sense to provide some function / script to do that?
How do you like helper.mk ? %^) But see above, I think it'll grow pointless soon.
Quoted 23 lines
Makefile $(SUBDIR_EXAMPLES): $(obj)u-boot
Quoted 3 lines
Makefile +3
-0+$(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 - <$<$@
I think this needs a comment to explain what sort of magic you are invoking here.
...
Quoted 2 lines
helper.mk new file +0
-0...
Quoted 5 lines
helper.mk new file +5
-0+ $(OBJDUMP) -h $(2) | \ + sed -n -e 's/.*\(\.u_boot_list[^ ]\+\).*$$$$/\1/p' | \ + sed 's/\.[^\.]\+$$$$//' | \ + sed -n ':s /^.\+$$$$/ { p;s/^\(.*\)\.[^\.]*$$$$/\1/;b s }' | \ + sed -n 'h;s/$$$$/\a/p;g;s/$$$$/@/p;g;s/$$$$/~/p;' | \...
Quoted 8 lines
Why exactly do you need 4 invocations of sed here? Seems just like a waste of processes to me.
Quoted 3 lines
LDSCRIPT= $(TOPDIR)/$(CPUDIR)/u-boot-nand_spl.lds
+LSTSCRIPT= $(TOPDIR)/nand_spl/board/$(BOARDDIR)/u-boot.lst
BTW: what exactly is "LST" supposed to mean?
LIST ... that's from Supaplex, there was this levels.lst file IIRC ;-)
Quoted 5 lines
helper.mk
Quoted 3 lines
+$(eval $(call
make_u_boot_list, $(LSTSCRIPT), $(__OBJS))) +$(nandobj)u-boot-nand_spl.lds: $(LDSCRIPT) $(LSTSCRIPT)helper.mk new file +1
-0+ $(CPP) $(CPPFLAGS) $(LDPPFLAGS) -ansi -D__ASSEMBLY__ -P - <$< >$@Comment needed.
The eval call ... ?
Quoted 4 lines
Best regards,
Wolfgang Denk
Best regards,
Marek Vasut
PATCH v2 2/3 common: Implement support for linker-generated arrays
In reply to Marek VasutThis 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 compiler time and each element is declared separatelly at different place. Such array though can later be accessed and used via special accessor.
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list linker section . Once compiled, it is possible to dump all symbols placed in .u_boot_list section and generate appropriate bounds for each subsection of the .u_boot_list section. Each such subsection this 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.
--- include/linker_lists.h | 124 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 include/linker_lists.h
V2: Don't define the variable twice in ll_entry_declare()
include/linker_lists.h new file +124 -0
@@ -0,0 +1,124 @@ +/* +* 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 of usage: +* +* 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 of usage: +* +* 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 of usage: +* +* 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++) { +* printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y); +* msc++; +* } +*/ +#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; \ + }) + +#endif /* __LINKER_LISTS_H__ */
Signature · 1 line
1.7.10.4
PATCH v2 2/3 common: Implement support for linker-generated arrays
Dear Marek Vasut,
Quoted 2 lines · In message <[email protected]> you wrote:
This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach.
...
Quoted 2 lines
... Such array though can
later be accessed and used via special accessor.
Can you please translate this to me? I don't get what it means.
Quoted 2 lines
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list
"into subsection" ? Do you mean "into a subsection", or "into a specific subsection" or what?
...
Quoted 2 lines
include/linker_lists.h new file +0
-0
...
Quoted 2 lines
+/**
+ *ll_entry_declare()- Declare linker-generated array entry
...
Incorrect multiline comment style. Please fix globally.
Best regards,
Wolfgang Denk
Signature · 8 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel
HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany
Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de
When dreams become more important than reality, you give up travel,
building, creating; you even forget how to repair the machines left
behind by your ancestors. You just sit living and reliving other
lives left behind in the thought records.
-- Vina, "The Menagerie" ("The Cage"), stardate unknownPATCH v2 2/3 common: Implement support for linker-generated arrays
Dear Wolfgang Denk,
Quoted 6 lines
Dear Marek Vasut,
Quoted 2 lines · In message <[email protected]> you wrote:
This patch adds support for linker-generated array. These arrays are a generalization of the U-Boot command declaration approach.
Quoted 7 lines
...
Quoted 3 lines
... Such array though can
later be accessed and used via special accessor.
Can you please translate this to me? I don't get what it means.
That you call a function that returns the pointer to the first member of the array.
Quoted 6 lines
Quoted 3 lines
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list
"into subsection" ? Do you mean "into a subsection", or "into a specific subsection" or what?
... into a matching subsection ...
Quoted 7 lines
...
Quoted 2 lines
include/linker_lists.h new file +0
-0...
Quoted 6 lines
Quoted 2 lines
+/**
+ *ll_entry_declare()- Declare linker-generated array entry...
Incorrect multiline comment style. Please fix globally.
You mean what ...
/**
*
This? Kernel-doc style ...
Quoted 3 lines
Best regards,
Wolfgang Denk
Best regards,
Marek Vasut
PATCH v2 2/3 common: Implement support for linker-generated arrays
Dear Marek,
Quoted 8 lines · In message <[email protected]> you wrote:
Quoted 5 lines
Quoted 3 lines
... Such array though can
later be accessed and used via special accessor.Can you please translate this to me? I don't get what it means.
That you call a function that returns the pointer to the first member of the array.
then please write this down?
Do we always need such a function? Where is it coming from? Auto-generated? What about the memory footprint?
Quoted 6 lines
You mean what ...
/**
*This? Kernel-doc style ...
It violates the kernel CodyngStyle...
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Certainly there are things in life that money can't buy, but it's very funny - Did you ever try buying them without money? - Ogden Nash
PATCH v2 2/3 common: Implement support for linker-generated arrays
Dear Wolfgang Denk,
Quoted 5 lines
Dear Marek,
Quoted 2 lines · In message <[email protected]> you wrote:
Quoted 2 lines
Quoted 2 lines
... Such array though can
Quoted 8 lines
Quoted 6 lines
Quoted 3 lines
Quoted 1 line
later be accessed and used via special accessor.
Can you please translate this to me? I don't get what it means.
That you call a function that returns the pointer to the first member of the array.
then please write this down?
I rewrote it, it made no sense.
Quoted 1 line
Do we always need such a function? Where is it coming from?
It's not a function, macro, sorry for the confusion
Quoted 1 line
Auto-generated? What about the memory footprint?
None, it's a macro. Doing exactly what &__u_boot_cmd... did, but instead of doing it at n places, it does so at one place now and is expanded as needed.
Quoted 9 lines
Quoted 7 lines
You mean what ...
/**
*
This? Kernel-doc style ...
It violates the kernel CodyngStyle...
Yes, well ... let's discuss it.
Quoted 3 lines
Best regards,
Wolfgang Denk
Best regards,
Marek Vasut
PATCH v2 2/3 common: Implement support for linker-generated arrays
In reply to Marek VasutHi Marek,
Quoted 34 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 compiler time and each element is declared separatelly at different place. Such array though can later be accessed and used via special accessor.
The actual implementation relies on placing any variable that is to represent an element of LG-array into subsection of .u_boot_list linker section . Once compiled, it is possible to dump all symbols placed in .u_boot_list section and generate appropriate bounds for each subsection of the .u_boot_list section. Each such subsection this 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.
Signed-off-by Marek Vasut <[email protected]>Cc Joe Hershberger <[email protected]>Cc Mike Frysinger <[email protected]>--- include/linker_lists.h | 124 ++++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 124 insertions(+) create mode 100644 include/linker_lists.hV2: Don't define the variable twice in
ll_entry_declare()include/linker_lists.h new file +0
-0
[...]
Quoted 19 lines
include/linker_lists.h new file +19
-0+/** +* 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 of usage: +* +* 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++) { +* printf("Entry %i, x=%i y=%i\n", i, msc->x, msc->y); +* msc++; +* }
include/linker_lists.h line 122
Quoted 10 lines
include/linker_lists.h new file +10
-0+*/ +#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; \ + })
While ll_entry_count is great and all, it is more natural to compare your list pointer to The End (tm) or not. It would make client code capable of being cleaner if you also include ll_entry_end() as well.
Thanks,
-Joe
PATCH v2 2/3 common: Implement support for linker-generated arrays
Dear Joe Hershberger,
[...]
Quoted 3 lines
While
ll_entry_countis great and all, it is more natural to compare your list pointer to The End (tm) or not. It would make client code capable of being cleaner if you also includell_entry_end()as well.
Ain't that
#define ll_entry_end(_type, u) \ll_entry_start(_type, u) + ll_entry_count(_type, u)
...
_type *end = ll_entry_end(_type, u);
?
Quoted 2 lines
Thanks,
-Joe
Best regards,
Marek Vasut
PATCH v2 3/3 common: Add .u_boot_list into all linker files
In reply to Marek VasutAdd 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.
--- 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/RPXlite/u-boot.lds | 5 +++++ board/RPXlite_dw/u-boot.lds | 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/cobra5272/u-boot.lds | 5 +++++ board/cogent/u-boot.lds | 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/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/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/gth2/u-boot.lds | 5 +++++ board/hermes/u-boot.lds | 5 +++++ board/hymod/u-boot.lds | 5 +++++ board/icu862/u-boot.lds | 5 +++++ board/idmr/u-boot.lds | 5 +++++ board/incaip/u-boot.lds | 5 +++++ board/ip860/u-boot.lds | 5 +++++ board/ivm/u-boot.lds | 5 +++++ board/korat/u-boot-F7FC.lds | 3 +++ board/kup/kup4k/u-boot.lds | 5 +++++ board/kup/kup4x/u-boot.lds | 5 +++++ board/lantec/u-boot.lds | 5 +++++ board/lwmon/u-boot.lds | 5 +++++ board/manroland/uc100/u-boot.lds | 5 +++++ board/matrix_vision/mvsmr/u-boot.lds | 5 +++++ board/mbx8xx/u-boot.lds | 5 +++++ board/micronas/vct/u-boot.lds | 5 +++++ board/ml2/u-boot.lds | 5 +++++ board/mousse/u-boot.lds | 5 +++++ board/mvblue/u-boot.lds | 5 +++++ board/netphone/u-boot.lds | 5 +++++ board/netta/u-boot.lds | 5 +++++ board/netta2/u-boot.lds | 5 +++++ board/netvia/u-boot.lds | 5 +++++ board/nx823/u-boot.lds | 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/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/stx/stxxtc/u-boot.lds | 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/westel/amx860/u-boot.lds | 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 +++++ 150 files changed, 720 insertions(+), 1 deletion(-)
V2: Fix a few board linker files where the compile failed.
arch/arm/cpu/arm920t/ep93xx/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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/RRvision/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/cobra5272/u-boot.lds +5 -0
@@ -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
@@ -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/dave/PPChameleonEVB/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/emk/top860/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/freescale/m5208evbe/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/gth2/u-boot.lds +5 -0
@@ -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/hermes/u-boot.lds +5 -0
@@ -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/hymod/u-boot.lds +5 -0
@@ -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/icu862/u-boot.lds +5 -0
@@ -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/idmr/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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 +5 -0
@@ -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/korat/u-boot-F7FC.lds +3 -0
@@ -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
@@ -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 +5 -0
@@ -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/lantec/u-boot.lds +5 -0
@@ -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/lwmon/u-boot.lds +5 -0
@@ -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/manroland/uc100/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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/micronas/vct/u-boot.lds +5 -0
@@ -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
@@ -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/mousse/u-boot.lds +5 -0
@@ -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/mvblue/u-boot.lds +5 -0
@@ -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
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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 +5 -0
@@ -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/openrisc/openrisc-generic/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/sandpoint/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/stx/stxxtc/u-boot.lds +5 -0
@@ -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/svm_sc8xx/u-boot.lds +5 -0
@@ -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
@@ -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
@@ -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
@@ -57,6 +57,10 @@ SECTIONS *(.data) } + .u_boot_list : { + INCLUDE u-boot.lst; + } + . = ALIGN(4); .rel.dyn : {
board/westel/amx860/u-boot.lds +5 -0
@@ -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 = .;
examples/standalone/mips.lds +4 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v2 3/3 common: Add .u_boot_list into all linker files
Quoted 7 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.
Signed-off-by Marek Vasut <[email protected]>Cc Joe Hershberger <[email protected]>Cc Mike Frysinger <[email protected]>
This has a mix of indentation; I did not check every file but it seems not consistent.
Signature · 3 lines
Otavio Salvador O.S. Systems E-mail: otavio at ossystems.com.br http://www.ossystems.com.br Mobile: +55 53 9981-7854 http://projetos.ossystems.com.br
PATCH v2 3/3 common: Add .u_boot_list into all linker files
Dear Otavio Salvador,
Quoted 11 lines · Marek Vasut
Quoted 7 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.
Signed-off-by Marek Vasut <[email protected]>Cc Joe Hershberger <[email protected]>Cc Mike Frysinger <[email protected]>This has a mix of indentation; I did not check every file but it seems not consistent.
It's not due to the patch, but because the indent in those linker files is frakked up ...
find . -name u-boot.lds | \
xargs -i sed -i "s/^\([ \t]*\)\(__u_boot_cmd_end[\t ]*=[\t ]*\.[\t ]*; \)$/\1\2\n\n\1. = ALIGN(4);\n\1.u_boot_list : {\n\tINCLUDE u-boot.lst;\n\1}/" {}
Best regards,
Marek Vasut
PATCH v2 3/3 common: Add .u_boot_list into all linker files
In reply to Marek VasutDear Marek Vasut,
Quoted 3 lines · In message <[email protected]> you wrote:
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.
How well has this been tested?
My understanding is that in theory this change should still produce the very same binary images as before? So did you compare the binaries?
Best regards,
Wolfgang Denk
Signature · 5 lines
DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Virtue is a relative term. -- Spock, "Friday's Child", stardate 3499.1
PATCH v2 3/3 common: Add .u_boot_list into all linker files
Dear Wolfgang Denk,
Quoted 7 lines
Dear Marek Vasut,
Quoted 3 lines · In message <[email protected]> you wrote:
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.
Quoted 5 lines
How well has this been tested?
My understanding is that in theory this change should still produce the very same binary images as before? So did you compare the binaries?
It's been compile-tested.I did not compare the binaries.
Quoted 3 lines
Best regards,
Wolfgang Denk
Best regards,
Marek Vasut
v2 cover Linker-generated arrays
In reply to Marek VasutThis is a first 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.
V2: Flip over commands to the LG-arrays, inline the documentation with
kernel-doc (most people seems to be happy about KD, it's just a matter of negotiating the rules). Add patch discarding the u_boot_cmd section.
NOTE: This patchset has a cross-dependency on:
[PATCH 0/4] Implant kernel-doc from Linux kernel
NOTE: Compile-testing of the latest patch in progress ... comments welcome.
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
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/Makefile | 6 +- 208 files changed, 1174 insertions(+), 622 deletions(-) create mode 100644 helper.mk create mode 100644 include/linker_lists.h
Signature · 1 line
1.7.10.4
PATCH v2 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.
--- 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/Makefile | 6 ++- 13 files changed, 144 insertions(+), 22 deletions(-) create mode 100644 helper.mk
Makefile +10 -3
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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/Makefile +5 -1
@@ -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
PATCH v2 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.
--- .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
V2: Add .gitignore entries
.gitignore +1 -0
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v2 2/5 common: Implement support for linker-generated arrays
In reply to Marek VasutThis 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.
--- 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
@@ -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
PATCH v2 3/5 common: Add .u_boot_list into all linker files
In reply to Marek VasutAdd 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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
PATCH v2 4/5 common: Convert the U-Boot commands to LG-arrays
In reply to Marek VasutThis 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.
--- 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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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
@@ -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 maxvif (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
@@ -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
@@ -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