summaryrefslogtreecommitdiff
path: root/arch/nds32/cpu/n1213/u-boot.lds
diff options
context:
space:
mode:
authorrick <rick@andestech.com>2016-04-14 14:32:27 +0800
committerAndes <uboot@andestech.com>2016-09-29 15:38:10 +0800
commitd607f6fa99a67dd1b40c08ba21ca6f3aaff933ce (patch)
treed1cc2d0cf5a1003e19b08d05f9ae390af3f770d7 /arch/nds32/cpu/n1213/u-boot.lds
parent06572f0301c18e63b887efc91803bb9467e55dbe (diff)
downloadu-boot-imx-d607f6fa99a67dd1b40c08ba21ca6f3aaff933ce.zip
u-boot-imx-d607f6fa99a67dd1b40c08ba21ca6f3aaff933ce.tar.gz
u-boot-imx-d607f6fa99a67dd1b40c08ba21ca6f3aaff933ce.tar.bz2
nds32: Support relocation.
Enable pie option for relocation. Signed-off-by: rick <rick@andestech.com> Cc: Andes <uboot@andestech.com>
Diffstat (limited to 'arch/nds32/cpu/n1213/u-boot.lds')
-rw-r--r--arch/nds32/cpu/n1213/u-boot.lds13
1 files changed, 8 insertions, 5 deletions
diff --git a/arch/nds32/cpu/n1213/u-boot.lds b/arch/nds32/cpu/n1213/u-boot.lds
index b88d742..40db0e6 100644
--- a/arch/nds32/cpu/n1213/u-boot.lds
+++ b/arch/nds32/cpu/n1213/u-boot.lds
@@ -31,25 +31,28 @@ SECTIONS
.got : {
__got_start = .;
- *(.got.plt) *(.got)
+ *(.got.plt) *(.got)
__got_end = .;
}
- . = .;
-
. = ALIGN(4);
.u_boot_list : {
KEEP(*(SORT(.u_boot_list*)));
}
. = ALIGN(4);
-
+ /DISCARD/ : { *(.rela.plt*) }
+ .rela.dyn : {
+ __rel_dyn_start = .;
+ *(.rela*)
+ __rel_dyn_end = .;
+ }
_end = .;
.bss : {
__bss_start = .;
*(.bss)
- . = ALIGN(4);
+ . = ALIGN(4);
__bss_end = .;
}