Skip to content

Commit

Permalink
xtensa: clean up xtensa-specific property sections
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Max Filippov committed Oct 30, 2018
1 parent 1026ded commit 960b82c
Showing 1 changed file with 3 additions and 14 deletions.
17 changes: 3 additions & 14 deletions arch/xtensa/kernel/vmlinux.lds.S
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 960b82c

Please sign in to comment.