]> 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)
commit5629d41838881335b7b00f13dab17073674793b8
tree88c8da58aaf84b673d93e83d90af97639f29201b
parentee90fef1891fd336943f9010330c3d6344f72b3a
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