diff options
Diffstat (limited to 'arch')
-rw-r--r-- | arch/sh/config.mk | 1 | ||||
-rw-r--r-- | arch/sh/cpu/u-boot.lds | 2 |
2 files changed, 2 insertions, 1 deletions
diff --git a/arch/sh/config.mk b/arch/sh/config.mk index 673ed8dfa48..71540c8bb29 100644 --- a/arch/sh/config.mk +++ b/arch/sh/config.mk @@ -15,5 +15,6 @@ CONFIG_STANDALONE_LOAD_ADDR += -EB endif PLATFORM_CPPFLAGS += -DCONFIG_SH -D__SH__ +PLATFORM_RELFLAGS += -fpic LDFLAGS_FINAL = --gc-sections PLATFORM_RELFLAGS += -ffixed-r13 diff --git a/arch/sh/cpu/u-boot.lds b/arch/sh/cpu/u-boot.lds index f2e48c6eca2..bbf9ff485f3 100644 --- a/arch/sh/cpu/u-boot.lds +++ b/arch/sh/cpu/u-boot.lds @@ -60,7 +60,7 @@ SECTIONS PROVIDE (_fgot = .); .got : { - *(.got) + *(.got.plt) *(.got) . = ALIGN(4); } >ram PROVIDE (_egot = .); |