[clang] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)

2023-10-03 Thread Fangrui Song via cfe-commits
MaskRay wrote: I can understand downgrading an error could be convenient for for (optimizing section layout or alleviate relocation overflow) but the motivation is a bit strange. GNU ld does use an error for this case and this change would not address `--fatal-warnings` builds. In the absence

[clang] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)

2023-10-02 Thread via cfe-commits
github-actions[bot] wrote: :warning: C/C++ code formatter, clang-format found issues in your code. :warning: You can test this locally with the following command: ``bash git-clang-format --diff 149346286801a5f32d254676760a7f4211801667 4dc3e74efa5dae42c2ffa408ef5d4a83c4b4754c --

[clang] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)

2023-10-02 Thread via cfe-commits
llvmbot wrote: @llvm/pr-subscribers-lld Changes It can be hard to predict whether a section exist when using the `INSERT AFTER/BEFORE
` directive, this makes it difficult to apply a global linker script that's applicable to the entire build system. We should warn instead of hard

[clang] [lld][ELF] Warn instead of error when linker script fails to find section (PR #68058)

2023-10-02 Thread via cfe-commits
https://github.com/christycylee created https://github.com/llvm/llvm-project/pull/68058 It can be hard to predict whether a section exist when using the `INSERT AFTER/BEFORE ` directive, this makes it difficult to apply a global linker script that's applicable to the entire build system. We sh