]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
kbuild: thin archives use P option to ar
authorNicholas Piggin <npiggin@gmail.com>
Fri, 9 Jun 2017 05:24:14 +0000 (15:24 +1000)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 30 Jun 2017 00:03:03 +0000 (09:03 +0900)
commit9a6cfca4f4130444cb02536a4fdf7b6e285c713e
tree608067816fdc4d7eee2ec0c1e5498ff26a03bcf0
parent1328a1ae0e9048ff4b7f6b60c497db7a2799e1b1
kbuild: thin archives use P option to ar

The P option makes ar do full path name matching and can prevent ar
from discarding files with duplicate names in some cases of creating
thin archives from thin archives. The sh architecture in particular
loses some object files from its kernel/cpu/sh*/ directories without
this option.

This could be a bug in binutils ar, but the P option should not cause
any negative effects so it is safe to use to work around this with.

Signed-off-by: Nicholas Piggin <npiggin@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/Makefile.build
scripts/link-vmlinux.sh