]> git.baikalelectronics.ru Git - kernel.git/commit
MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS
authorAlexander Lobakin <alobakin@pm.me>
Sun, 10 Jan 2021 11:56:22 +0000 (11:56 +0000)
committerThomas Bogendoerfer <tsbogend@alpha.franken.de>
Fri, 15 Jan 2021 14:27:54 +0000 (15:27 +0100)
commit314f46c975bcbcf299465012e9af5043d58f7da3
tree88c8da58aaf84b673d93e83d90af97639f29201b
parentcd854586dbdcad708226ddc778d06e4aed33238f
MIPS: vmlinux.lds.S: add ".gnu.attributes" to DISCARDS

Discard GNU attributes (MIPS FP type, GNU Hash etc.) at link time
as kernel doesn't use it at all.
Solves a dozen of the following ld warnings (one per every file):

mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes'
from `arch/mips/kernel/head.o' being placed in section
`.gnu.attributes'
mips-alpine-linux-musl-ld: warning: orphan section `.gnu.attributes'
from `init/main.o' being placed in section `.gnu.attributes'

Signed-off-by: Alexander Lobakin <alobakin@pm.me>
Reviewed-by: Nathan Chancellor <natechancellor@gmail.com>
Signed-off-by: Thomas Bogendoerfer <tsbogend@alpha.franken.de>
arch/mips/kernel/vmlinux.lds.S