[lld] r354769 - [ELF][ARM] Accept and ignore -p and -no-pipleline-knowledge
Peter Smith via llvm-commits
llvm-commits at lists.llvm.org
Mon Feb 25 02:48:32 PST 2019
Author: psmith
Date: Mon Feb 25 02:48:31 2019
New Revision: 354769
URL: http://llvm.org/viewvc/llvm-project?rev=354769&view=rev
Log:
[ELF][ARM] Accept and ignore -p and -no-pipleline-knowledge
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
Modified:
lld/trunk/ELF/Options.td
lld/trunk/test/ELF/silent-ignore.test
Modified: lld/trunk/ELF/Options.td
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/Options.td?rev=354769&r1=354768&r2=354769&view=diff
==============================================================================
--- lld/trunk/ELF/Options.td (original)
+++ lld/trunk/ELF/Options.td Mon Feb 25 02:48:31 2019
@@ -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">;
Modified: lld/trunk/test/ELF/silent-ignore.test
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/ELF/silent-ignore.test?rev=354769&r1=354768&r2=354769&view=diff
==============================================================================
--- lld/trunk/test/ELF/silent-ignore.test (original)
+++ lld/trunk/test/ELF/silent-ignore.test Mon Feb 25 02:48:31 2019
@@ -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 \
More information about the llvm-commits
mailing list