Skip to content

Commit

Permalink
[ELF][ARM] Accept and ignore -p and -no-pipleline-knowledge
Browse files Browse the repository at this point in the history
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
smithp35 committed Feb 25, 2019
1 parent b70fc0c commit 777e1cf
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lld/ELF/Options.td
Original file line number Diff line number Diff line change
@@ -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">;
2 changes: 2 additions & 0 deletions lld/test/ELF/silent-ignore.test
Original file line number Diff line number Diff line change
@@ -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 \

0 comments on commit 777e1cf

Please sign in to comment.