[PATCH] D150637: [lld][ELF] Add option for suppressing section type mismatch warnings

Petr Hosek via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue May 16 00:32:10 PDT 2023


phosek added a comment.

In D150637#4344711 <https://reviews.llvm.org/D150637#4344711>, @leonardchan wrote:

> In D150637#4344675 <https://reviews.llvm.org/D150637#4344675>, @MaskRay wrote:
>
>> In such a case, can you specify `--no-fatal-warnings` if the build system defaults to `--fatal-warnings`?
>
> Oh it's not that these warnings are treated as errors, it's that we see a lot of them for sections coming from prebuilts and there's just so much of them that we'd like to just silence them in the meantime while we sort out fixing the prebuilt lib.

To better describe our use case, we're porting an existing embedded project from GCC/ld to Clang/LLD and this is one of the differences we encountered. We can still link the targets, but it results in a lot of noise; hundreds of these messages in a full build. Unfortunately, the issue originates in third party driver code that was supplied by an external vendor and it's not something we can easily address.

We're open to other suggestions, but we believe that other LLD users working in the embedded domain might eventually encounter this issue as well and having an option to suppress this warning might be helpful.


Repository:
  rG LLVM Github Monorepo

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D150637/new/

https://reviews.llvm.org/D150637



More information about the llvm-commits mailing list