lkml.org 
[lkml]   [2020]   [Nov]   [19]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
From
Subject[PATCH] c6x: Use common DISCARDS in vmlinux.lds.S
Date
Use the common DISCARDS rule for the linker script in an effort to
regularize the linker script.

Signed-off-by: Youling Tang <tangyouling@loongson.cn>
---
arch/c6x/kernel/vmlinux.lds.S | 8 ++------
1 file changed, 2 insertions(+), 6 deletions(-)

diff --git a/arch/c6x/kernel/vmlinux.lds.S b/arch/c6x/kernel/vmlinux.lds.S
index ac99ba0..188a334 100644
--- a/arch/c6x/kernel/vmlinux.lds.S
+++ b/arch/c6x/kernel/vmlinux.lds.S
@@ -139,13 +139,9 @@ SECTIONS

DWARF_DEBUG

+ DISCARDS
/DISCARD/ :
{
- EXIT_TEXT
- EXIT_DATA
- EXIT_CALL
- *(.discard)
- *(.discard.*)
- *(.interp)
+ *(.interp)
}
}
--
2.1.0
\
 
 \ /
  Last update: 2020-11-20 04:25    [W:0.457 / U:0.220 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site