From 777e1cfdc32bcf60fc8cce545f7330a5799fbc67 Mon Sep 17 00:00:00 2001 From: Peter Smith Date: Mon, 25 Feb 2019 10:48:31 +0000 Subject: [PATCH] [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 --- lld/ELF/Options.td | 2 ++ lld/test/ELF/silent-ignore.test | 2 ++ 2 files changed, 4 insertions(+) diff --git a/lld/ELF/Options.td b/lld/ELF/Options.td index 3a19b230780a..831f761f8019 100644 --- a/lld/ELF/Options.td +++ b/lld/ELF/Options.td @@ -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">; diff --git a/lld/test/ELF/silent-ignore.test b/lld/test/ELF/silent-ignore.test index adfc2442d4ed..018fa27b2e29 100644 --- a/lld/test/ELF/silent-ignore.test +++ b/lld/test/ELF/silent-ignore.test @@ -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 \