Skip to content
Snippets Groups Projects
  1. Feb 26, 2014
  2. Jan 14, 2014
  3. Dec 07, 2013
  4. Sep 05, 2013
  5. Jul 24, 2013
  6. Jun 21, 2013
  7. Apr 14, 2013
    • Albert ARIBAUD's avatar
      ARM: fix CONFIG_SPL_MAX_SIZE semantics · 6ebc3461
      Albert ARIBAUD authored
      
      Remove SPL-related ASSERT() in arch/arm/cpu/u-boot.lds
      as this file is never used for SPL builds.
      
      Rewrite the ASSERT() in arch/arm/cpu/u-boot-spl.lds
      to separately test image (text,data,rodata...) size,
      BSS size, and full footprint each against its own max,
      and make Tegra boards check full footprint.
      
      Also, output section mmutable is not used in SPL builds.
      Remove it.
      
      Finally, update README regarding the (now homogeneous)
      semantics of CONFIG_SPL_[BSS_]MAX_SIZE and add the new
      CONFIG_SPL_MAX_FOOTPRINT macro.
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      Reported-by: default avatarBenoît Thébaudeau <benoit.thebaudeau@advansee.com>
      6ebc3461
  8. Apr 13, 2013
  9. Mar 15, 2013
    • Simon Glass's avatar
      Replace __bss_end__ with __bss_end · 3929fb0a
      Simon Glass authored
      
      Note this is a tree-wide change affecting multiple architectures.
      
      At present we use __bss_start, but mostly __bss_end__. This seems
      inconsistent and in a number of places __bss_end is used instead.
      
      Change to use __bss_end for the BSS end symbol throughout U-Boot. This
      makes it possible to use the asm-generic/sections.h file on all
      archs.
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      3929fb0a
  10. Mar 12, 2013
    • Albert ARIBAUD's avatar
      Refactor linker-generated arrays · ef123c52
      Albert ARIBAUD authored
      
      Refactor linker-generated array code so that symbols
      which were previously linker-generated are now compiler-
      generated. This causes relocation records of type
      R_ARM_ABS32 to become R_ARM_RELATIVE, which makes
      code which uses LGA able to run before relocation as
      well as after.
      
      Note: this affects more than ARM targets, as linker-
      lists span possibly all target architectures, notably
      PowerPC.
      
      Conflicts:
      	arch/arm/cpu/arm926ejs/mxs/u-boot-spl.lds
      	arch/arm/cpu/arm926ejs/spear/u-boot-spl.lds
      	arch/arm/cpu/armv7/omap-common/u-boot-spl.lds
      	board/ait/cam_enc_4xx/u-boot-spl.lds
      	board/davinci/da8xxevm/u-boot-spl-da850evm.lds
      	board/davinci/da8xxevm/u-boot-spl-hawk.lds
      	board/vpac270/u-boot-spl.lds
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      ef123c52
    • Albert ARIBAUD's avatar
      arm: make __bss_start and __bss_end__ compiler-generated · 3ebd1cbc
      Albert ARIBAUD authored
      
      Turn __bss_start and __bss_end__ from linker-generated
      to compiler-generated symbols, causing relocations for
      these symbols to change type, from R_ARM_ABS32 to
      R_ARM_RELATIVE.
      
      This should have no functional impact, as it affects
      references to __bss_start and __bss_end__ only before
      relocation, and no such references are done.
      
      Signed-off-by: default avatarAlbert ARIBAUD <albert.u.boot@aribaud.net>
      3ebd1cbc
  11. Oct 29, 2012
  12. Oct 26, 2012
  13. Oct 22, 2012
    • Marek Vasut's avatar
      common: Discard the __u_boot_cmd section · 8b493a52
      Marek Vasut authored
      
      The command declaration now uses the new LG-array method to generate
      list of commands. Thus the __u_boot_cmd section is now superseded and
      redundant and therefore can be removed. Also, remove externed symbols
      associated with this section from include/command.h .
      
      Signed-off-by: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      8b493a52
    • Marek Vasut's avatar
      common: Add .u_boot_list into all linker files · 55675142
      Marek Vasut authored
      
      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: default avatarMarek Vasut <marex@denx.de>
      Cc: Joe Hershberger <joe.hershberger@gmail.com>
      Cc: Mike Frysinger <vapier@gentoo.org>
      55675142
  14. Mar 30, 2012
    • Simon Glass's avatar
      arm: add a common .lds link script · dde3b70d
      Simon Glass authored
      
      Most ARM CPUs use a very similar link script. This adds a basic
      script that can be used by most CPUs.
      
      Two new symbols are introduced which are intended to eventually be
      defined on all architectures to make things easier for generic relocation
      and reduce special-case code for each architecture:
      
      __image_copy_start is the start of the text area (equivalent to the
      existing _start on ARM). It marks the start of the region which must be
      copied to a new location during relocation. This symbol is called
      __text_start on x86 and microblaze.
      
      __image_copy_end is the end of the region which must be copied to a new
      location during relocation. It is normally equal to the start of the BSS
      region, but this can vary in some cases (SPL?). Making this an explicit
      symbol on its own removes any ambiguity and permits common code to always
      do the right thing.
      
      This new script makes use of CPUDIR, now defined by both Makefile and
      spl/Makefile, to find the directory containing the start.o object file,
      which is always placed first in the image.
      
      To permit MMU setup prior to relocation (as used by pxa) we add an area
      to the link script which contains space for this. This is taken
      from commit 7f4cfcf4. CPUs can put the contents in there using their
      start.S file. BTW, shouldn't that area be 16KB-aligned?
      
      Signed-off-by: default avatarSimon Glass <sjg@chromium.org>
      dde3b70d
  15. Aug 03, 2011
  16. Mar 27, 2011
  17. Nov 17, 2010
  18. Oct 13, 2010
  19. Sep 19, 2010
  20. Jul 05, 2010
  21. Apr 13, 2010
  22. Jun 12, 2009
  23. May 15, 2009
  24. Mar 20, 2009
    • Trent Piepho's avatar
      Fix all linker script to handle all rodata sections · f62fb999
      Trent Piepho authored
      
      A recent gcc added a new unaligned rodata section called '.rodata.str1.1',
      which needs to be added the the linker script.  Instead of just adding this
      one section, we use a wildcard ".rodata*" to get all rodata linker section
      gcc has now and might add in the future.
      
      However, '*(.rodata*)' by itself will result in sub-optimal section
      ordering.  The sections will be sorted by object file, which causes extra
      padding between the unaligned rodata.str.1.1 of one object file and the
      aligned rodata of the next object file.  This is easy to fix by using the
      SORT_BY_ALIGNMENT command.
      
      This patch has not be tested one most of the boards modified.  Some boards
      have a linker script that looks something like this:
      
      *(.text)
      . = ALIGN(16);
      *(.rodata)
      *(.rodata.str1.4)
      *(.eh_frame)
      
      I change this to:
      
      *(.text)
      . = ALIGN(16);
      *(.eh_frame)
      *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*)))
      
      This means the start of rodata will no longer be 16 bytes aligned.
      However, the boundary between text and rodata/eh_frame is still aligned to
      16 bytes, which is what I think the real purpose of the ALIGN call is.
      
      Signed-off-by: default avatarTrent Piepho <xyzzy@speakeasy.org>
      f62fb999
  25. Jan 28, 2009
  26. Nov 18, 2008
  27. Jan 12, 2008
    • Wolfgang Denk's avatar
      Fix linker scripts: add NOLOAD atribute to .bss/.sbss sections · 64134f01
      Wolfgang Denk authored
      
      With recent toolchain versions, some boards would not build because
      or errors like this one (here for ocotea board when building with
      ELDK 4.2 beta):
      ppc_4xx-ld: section .bootpg [fffff000 -> fffff23b] overlaps section .bss [fffee900 -> fffff8ab]
      
      For many boards, the .bss section is big enough that it wraps around
      at the end of the address space (0xFFFFFFFF), so the problem will not
      be visible unless you use a 64 bit tool chain for development. On
      some boards however, changes to the code size (due to different
      optimizations) we bail out with section overlaps like above.
      
      The fix is to add the NOLOAD attribute to the .bss and .sbss
      sections, telling the linker that .bss does not consume any space in
      the image.
      
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      64134f01
  28. Nov 15, 2007
  29. Nov 09, 2007
  30. Aug 31, 2005
  31. Jan 10, 2005
  32. Jan 09, 2005
  33. Jun 09, 2004
    • Wolfgang Denk's avatar
      * Patch by Paul Ruhland, 17 May 2004: · f39748ae
      Wolfgang Denk authored
        - Add support for the Logic Zoom LH7A40x based SDK board(s),
          specifically the LPD7A400.
      
      * Patches by Robert Schwebel, 15 May 2004:
        - call MAC address reading code also for SMSC91C111;
        - make SMSC91C111 timeout configurable, remove duplicate code
        - fix get_timer() for PXA
        - update doc/README.JFFS2
        - use "bootfile" env variable also for jffs2
      f39748ae
Loading