diff options
author | Fabio Estevam <festevam@gmail.com> | 2011-06-05 06:26:49 +0000 |
---|---|---|
committer | Stefano Babic <sbabic@denx.de> | 2011-06-06 09:35:25 +0200 |
commit | 4ac2e2d69fb028c7bd749a07346820a4fd38f65a (patch) | |
tree | a8444f7abc6d96e6a330a4f39e9e78a5a89e8ff2 /board/freescale/mx31ads/u-boot.lds | |
parent | 6f4dd40cddbd69c56fec1285fee02cbd5a3833d8 (diff) |
mx31ads: Use the new relocation scheme
This fixes the MX31ADS build by using the new relocation scheme.
Signed-off-by: Fabio Estevam <fabio.estevam@freescale.com>
Tested-by: Felix Radensky <felix@embedded-sol.com>
Diffstat (limited to 'board/freescale/mx31ads/u-boot.lds')
-rw-r--r-- | board/freescale/mx31ads/u-boot.lds | 42 |
1 files changed, 33 insertions, 9 deletions
diff --git a/board/freescale/mx31ads/u-boot.lds b/board/freescale/mx31ads/u-boot.lds index b081b21946..79eb7aca38 100644 --- a/board/freescale/mx31ads/u-boot.lds +++ b/board/freescale/mx31ads/u-boot.lds @@ -48,23 +48,47 @@ SECTIONS *(.text) } - . = ALIGN(4); - .rodata : { *(SORT_BY_ALIGNMENT(SORT_BY_NAME(.rodata*))) } + .rodata : { *(.rodata) } . = ALIGN(4); - .data : { *(.data) } + .data : { + *(.data) + } . = ALIGN(4); - .got : { *(.got) } - - . = .; __u_boot_cmd_start = .; .u_boot_cmd : { *(.u_boot_cmd) } __u_boot_cmd_end = .; . = ALIGN(4); - __bss_start = .; - .bss : { *(.bss) . = ALIGN(4); } - __bss_end__ = .; + + .rel.dyn : { + __rel_dyn_start = .; + *(.rel*) + __rel_dyn_end = .; + } + + .dynsym : { + __dynsym_start = .; + *(.dynsym) + } + + _end = .; + + .bss __rel_dyn_start (OVERLAY) : { + __bss_start = .; + *(.bss) + . = ALIGN(4); + __bss_end__ = .; + } + + /DISCARD/ : { *(.bss*) } + /DISCARD/ : { *(.dynstr*) } + /DISCARD/ : { *(.dynsym*) } + /DISCARD/ : { *(.dynamic*) } + /DISCARD/ : { *(.hash*) } + /DISCARD/ : { *(.plt*) } + /DISCARD/ : { *(.interp*) } + /DISCARD/ : { *(.gnu*) } } |