[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

llvm-svn: 354769
This commit is contained in:
Peter Smith 2019-02-25 10:48:31 +00:00
parent b70fc0c5fd
commit 777e1cfdc3
2 changed files with 4 additions and 0 deletions

View File

@ -504,7 +504,9 @@ def: F<"no-copy-dt-needed-entries">;
def: F<"no-ctors-in-init-array">; def: F<"no-ctors-in-init-array">;
def: F<"no-keep-memory">; def: F<"no-keep-memory">;
def: F<"no-mmap-output-file">; def: F<"no-mmap-output-file">;
def: F<"no-pipeline-knowledge">;
def: F<"no-warn-mismatch">; def: F<"no-warn-mismatch">;
def: Flag<["-"], "p">;
def: Separate<["--", "-"], "rpath-link">; def: Separate<["--", "-"], "rpath-link">;
def: J<"rpath-link=">; def: J<"rpath-link=">;
def: F<"sort-common">; def: F<"sort-common">;

View File

@ -6,8 +6,10 @@ RUN: -no-allow-shlib-undefined \
RUN: -no-copy-dt-needed-entries \ RUN: -no-copy-dt-needed-entries \
RUN: -no-ctors-in-init-array \ RUN: -no-ctors-in-init-array \
RUN: -no-keep-memory \ RUN: -no-keep-memory \
RUN: -no-pipeline-knowledge \
RUN: -no-warn-common \ RUN: -no-warn-common \
RUN: -no-warn-mismatch \ RUN: -no-warn-mismatch \
RUN: -p \
RUN: -sort-common \ RUN: -sort-common \
RUN: -stats \ RUN: -stats \
RUN: -warn-execstack \ RUN: -warn-execstack \