xtensa: clean up xtensa-specific property sections
authorMax Filippov <jcmvbkbc@gmail.com>
Tue, 30 Oct 2018 08:28:56 +0000 (01:28 -0700)
committerMax Filippov <jcmvbkbc@gmail.com>
Tue, 30 Oct 2018 08:28:56 +0000 (01:28 -0700)
xtensa-specific property sections may be section-specific. They should
be collected in the order of appearance. .gnu.linkonce.prop.* input
sections should be collected into the .xt.prop output section.

Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
arch/xtensa/kernel/vmlinux.lds.S

index ba66b5bfefe89b957fefd709944fb5757dc01ef9..67a4f7f8a38d1e33cc25d6a26aa7a1852fd6793f 100644 (file)
@@ -298,22 +298,11 @@ SECTIONS
 
   _end = .;
 
-  .xt.lit : { *(.xt.lit) }
-  .xt.prop : { *(.xt.prop) }
-
   DWARF_DEBUG
 
-  .xt.insn 0 :
-  {
-    *(.xt.insn)
-    *(.gnu.linkonce.x*)
-  }
-
-  .xt.lit 0 :
-  {
-    *(.xt.lit)
-    *(.gnu.linkonce.p*)
-  }
+  .xt.prop 0 : { KEEP(*(.xt.prop .xt.prop.* .gnu.linkonce.prop.*)) }
+  .xt.insn 0 : { KEEP(*(.xt.insn .xt.insn.* .gnu.linkonce.x*)) }
+  .xt.lit  0 : { KEEP(*(.xt.lit  .xt.lit.*  .gnu.linkonce.p*)) }
 
   /* Sections to be discarded */
   DISCARDS