[ELF][ARM] Accept and ignore -p and -no-pipleline-knowledge
authorPeter Smith <peter.smith@linaro.org>
Mon, 25 Feb 2019 10:48:31 +0000 (10:48 +0000)
committerPeter Smith <peter.smith@linaro.org>
Mon, 25 Feb 2019 10:48:31 +0000 (10:48 +0000)
The linux kernel uses an old flag -p/-no-pipeline-knowledge that is
accepted by bfd and gold but ignored by modern versions of them. The
original option is very old and is pre-ABI, it sometimes comes up in
code-bases that had support for pre ABI toolchains. The Linux kernel uses
it in 3 places in the ARM specific section.

Differential Revision: https://reviews.llvm.org/D58540

llvm-svn: 354769

lld/ELF/Options.td
lld/test/ELF/silent-ignore.test

index 3a19b23..831f761 100644 (file)
@@ -504,7 +504,9 @@ def: F<"no-copy-dt-needed-entries">;
 def: F<"no-ctors-in-init-array">;
 def: F<"no-keep-memory">;
 def: F<"no-mmap-output-file">;
+def: F<"no-pipeline-knowledge">;
 def: F<"no-warn-mismatch">;
+def: Flag<["-"], "p">;
 def: Separate<["--", "-"], "rpath-link">;
 def: J<"rpath-link=">;
 def: F<"sort-common">;
index adfc244..018fa27 100644 (file)
@@ -6,8 +6,10 @@ RUN:   -no-allow-shlib-undefined \
 RUN:   -no-copy-dt-needed-entries \
 RUN:   -no-ctors-in-init-array \
 RUN:   -no-keep-memory \
+RUN:   -no-pipeline-knowledge \
 RUN:   -no-warn-common \
 RUN:   -no-warn-mismatch \
+RUN:   -p \
 RUN:   -sort-common \
 RUN:   -stats \
 RUN:   -warn-execstack \