lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [day] [month] [year] [list]
Date:   Fri, 20 Nov 2020 11:24:36 +0800
From:   Youling Tang <tangyouling@...ngson.cn>
To:     Mark Salter <msalter@...hat.com>,
        Aurelien Jacquiot <jacquiot.aurelien@...il.com>
Cc:     linux-c6x-dev@...ux-c6x.org, linux-kernel@...r.kernel.org
Subject: [PATCH] c6x: Use common DISCARDS in vmlinux.lds.S

Use the common DISCARDS rule for the linker script in an effort to
regularize the linker script.

Signed-off-by: Youling Tang <tangyouling@...ngson.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

Powered by blists - more mailing lists