[all-commits] [llvm/llvm-project] 34b14c: [lld][ELF] Suppress `--orphan-handling=error/warn`...
Igor Kudrin via All-commits
all-commits at lists.llvm.org
Wed May 29 14:53:51 PDT 2024
Branch: refs/heads/main
Home: https://github.com/llvm/llvm-project
Commit: 34b14cc4f88b5e3d757f2ab20c19387178056567
https://github.com/llvm/llvm-project/commit/34b14cc4f88b5e3d757f2ab20c19387178056567
Author: Igor Kudrin <ikudrin at accesssoftek.com>
Date: 2024-05-29 (Wed, 29 May 2024)
Changed paths:
M lld/ELF/LinkerScript.cpp
M lld/test/ELF/linkerscript/orphan-report.s
Log Message:
-----------
[lld][ELF] Suppress `--orphan-handling=error/warn` without `SECTIONS` (#93630)
Without a linker script, `--orphan-handling=error` or `=warn` reports
all input sections, including even well-known sections like `.text`,
`.bss`, `.dynamic`, or `.symtab`. However, in this case, no sections
should be considered orphans because they all are placed with the same
default rules. This patch suppresses errors/warnings for placing orphan
sections if no linker script with the `SECTIONS` command is provided.
The proposed behavior matches GNU gold. GNU ld in the same scenario only
reports sections that are not in its default linker script, thus, it
avoids complaining about `.text` and similar.
To unsubscribe from these emails, change your notification settings at https://github.com/llvm/llvm-project/settings/notifications
More information about the All-commits
mailing list