1. 21 Aug, 2009 1 commit
    • Wolfgang Denk's avatar
      Fix all linker scripts for older binutils versions (pre-2.16) · 1aada9cd
      Wolfgang Denk authored
      Commit f62fb999
       fixed handling of all rodata sections by using a
      wildcard combined with calls to ld's builtin functions SORT_BY_ALIGNMENT()
      and SORT_BY_NAME().  Unfortunately these functions were only
      introduced with biunutils version 2.16, so the modification broke
      building with all tool chains using older binutils.
      This patch makes it work again.  This is done by omitting the use of
      these functions for such old tool chains.  This will result in
      slightly larger target binaries, as the rodata sections are no longer
      in optimal order alignment-wise which reauls in unused gaps, but the
      effect was found to be insignificant - especially compared to the fact
      that you cannot build U-Boot at all in the current state.
      As ld seems to have no support for conditionals we run the linker
      script through the C preprocessor which can be easily used to remove
      the unwanted function calls.
      Note that the C preprocessor must be run with the "-ansi" (or a
      "-std=") option to make sure all the system-specific predefined
      macros outside the reserved namespace are suppressed. Otherise, cpp
      might for example substitute "powerpc" to "1", thus corrupting for
      example "OUTPUT_ARCH(powerpc)" etc.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
      Cc: Mike Frysinger <vapier@gentoo.org>
  2. 23 Jul, 2009 1 commit
  3. 22 Jul, 2009 1 commit
  4. 12 Jun, 2009 2 commits
  5. 15 May, 2009 1 commit
  6. 04 Apr, 2009 1 commit
  7. 31 Mar, 2009 1 commit
  8. 29 Mar, 2009 3 commits
  9. 20 Mar, 2009 1 commit
    • 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:
      . = ALIGN(16);
      I change this to:
      . = ALIGN(16);
      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>
  10. 06 Dec, 2008 1 commit
  11. 18 Nov, 2008 1 commit
  12. 18 Oct, 2008 1 commit
  13. 12 Aug, 2008 3 commits
  14. 02 Jul, 2008 1 commit
  15. 20 May, 2008 1 commit
    • Wolfgang Denk's avatar
      Big white-space cleanup. · 53677ef1
      Wolfgang Denk authored
      This commit gets rid of a huge amount of silly white-space issues.
      Especially, all sequences of SPACEs followed by TAB characters get
      removed (unless they appear in print statements).
      Also remove all embedded "vim:" and "vi:" statements which hide
      indentation problems.
      Signed-off-by: default avatarWolfgang Denk <wd@denx.de>
  16. 14 Feb, 2008 1 commit
  17. 12 Jan, 2008 1 commit
    • 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>
  18. 25 Nov, 2007 1 commit
  19. 09 Jul, 2007 1 commit
  20. 03 Jul, 2007 1 commit
  21. 21 Dec, 2006 1 commit
  22. 28 Oct, 2006 1 commit
  23. 08 Oct, 2006 2 commits
  24. 01 Sep, 2006 2 commits
    • Marian Balakowicz's avatar
      Add support for a saving build objects in a separate directory. · f9328639
      Marian Balakowicz authored
      Modifications are based on the linux kernel approach and
      support two use cases:
        1) Add O= to the make command line
        'make O=/tmp/build all'
        2) Set environement variable BUILD_DIR to point to the desired location
        'export BUILD_DIR=/tmp/build'
      The second approach can also be used with a MAKEALL script
      'export BUILD_DIR=/tmp/build'
      Command line 'O=' setting overrides BUILD_DIR environent variable.
      When none of the above methods is used the local build is performed and
      the object files are placed in the source directory.
    • Marian Balakowicz's avatar
  25. 21 Jul, 2006 3 commits
  26. 08 Apr, 2006 1 commit
  27. 31 Mar, 2006 1 commit
  28. 11 Mar, 2006 2 commits
  29. 06 Mar, 2006 1 commit
  30. 05 Mar, 2006 1 commit