summaryrefslogtreecommitdiffstats
path: root/arch/arc
diff options
context:
space:
mode:
authorAlexey Brodkin <abrodkin@synopsys.com>2018-05-29 20:29:16 +0300
committerAlexey Brodkin <abrodkin@synopsys.com>2018-05-31 20:13:29 +0300
commit7530bb21753e90208c7a850e6e80376ca489f809 (patch)
tree2b05a7db4494c726046d15eae4a16880a35939d8 /arch/arc
parentd0a5023a356ff1ca98b800af61f338691234fbf6 (diff)
downloadu-boot-7530bb21753e90208c7a850e6e80376ca489f809.tar.gz
u-boot-7530bb21753e90208c7a850e6e80376ca489f809.tar.xz
u-boot-7530bb21753e90208c7a850e6e80376ca489f809.zip
ARC: Make sure .ivt section is not purged by garbage collector
Fixes commit fac4790491f6 ("arc: Eliminate unused code and data with GCC's garbage collector"), see [1]. Since in case of ARCv2 .ivt only contains addrresses of interrupt/exception handlers linker doesn't understand that this section actually make a lot of sense and decides to get rid of it if we use "--gc-sections". And KEEP does exactly this, see [2]. [1] http://git.denx.de/?p=u-boot.git;a=commit;h=fac4790491f69b29755d92db2cad508849573ff7 [2] https://sourceware.org/binutils/docs/ld/Input-Section-Keep.html#Input-Section-Keep Signed-off-by: Alexey Brodkin <abrodkin@synopsys.com>
Diffstat (limited to 'arch/arc')
-rw-r--r--arch/arc/cpu/u-boot.lds2
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arc/cpu/u-boot.lds b/arch/arc/cpu/u-boot.lds
index 73c642ed6b..d5c88ef9d4 100644
--- a/arch/arc/cpu/u-boot.lds
+++ b/arch/arc/cpu/u-boot.lds
@@ -23,7 +23,7 @@ SECTIONS
__ivt_start = .;
.ivt :
{
- *(.ivt)
+ KEEP(*(.ivt))
}
__ivt_end = .;