mirror of
https://github.com/intel/llvm.git
synced 2026-02-08 17:28:30 +08:00
[ELF] Support input section description .rel[a].dyn in /DISCARD/
Reviewed By: ruiu Differential Revision: https://reviews.llvm.org/D70695
This commit is contained in:
@@ -442,7 +442,7 @@ LinkerScript::computeInputSections(const InputSectionDescription *cmd) {
|
||||
}
|
||||
|
||||
void LinkerScript::discard(InputSectionBase *s) {
|
||||
if (s == in.shStrTab || s == mainPart->relaDyn || s == mainPart->relrDyn)
|
||||
if (s == in.shStrTab || s == mainPart->relrDyn)
|
||||
error("discarding " + s->name + " section is not allowed");
|
||||
|
||||
// You can discard .hash and .gnu.hash sections by linker scripts. Since
|
||||
|
||||
Reference in New Issue
Block a user