diff options
author | Nicholas Piggin <npiggin@gmail.com> | 2017-06-09 15:24:14 +1000 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2017-06-30 09:03:03 +0900 |
commit | 9a6cfca4f4130444cb02536a4fdf7b6e285c713e (patch) | |
tree | 608067816fdc4d7eee2ec0c1e5498ff26a03bcf0 /scripts/link-vmlinux.sh | |
parent | 1328a1ae0e9048ff4b7f6b60c497db7a2799e1b1 (diff) | |
download | lwn-9a6cfca4f4130444cb02536a4fdf7b6e285c713e.tar.gz lwn-9a6cfca4f4130444cb02536a4fdf7b6e285c713e.zip |
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>
Diffstat (limited to 'scripts/link-vmlinux.sh')
-rwxr-xr-x | scripts/link-vmlinux.sh | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/link-vmlinux.sh b/scripts/link-vmlinux.sh index 2a062ea130b5..72a0aa627c56 100755 --- a/scripts/link-vmlinux.sh +++ b/scripts/link-vmlinux.sh @@ -50,7 +50,7 @@ archive_builtin() if [ -n "${CONFIG_THIN_ARCHIVES}" ]; then info AR built-in.o rm -f built-in.o; - ${AR} rcsT${KBUILD_ARFLAGS} built-in.o \ + ${AR} rcsTP${KBUILD_ARFLAGS} built-in.o \ ${KBUILD_VMLINUX_INIT} \ ${KBUILD_VMLINUX_MAIN} fi |