projects
/
platform
/
upstream
/
llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7316670
)
[ELF] Delete dead SHT_NOBITS->SHT_PROGBITS code after r358981
author
Fangrui Song
<maskray@google.com>
Thu, 30 May 2019 15:52:11 +0000
(15:52 +0000)
committer
Fangrui Song
<maskray@google.com>
Thu, 30 May 2019 15:52:11 +0000
(15:52 +0000)
After D60131/r358981, we no longer create SHT_NOBITS sections that may
contain ByteCommand (BYTE, SHORT, LONG, QUAD).
llvm-svn: 362108
lld/ELF/OutputSections.cpp
patch
|
blob
|
history
diff --git
a/lld/ELF/OutputSections.cpp
b/lld/ELF/OutputSections.cpp
index
becca83
..
8927b69
100644
(file)
--- a/
lld/ELF/OutputSections.cpp
+++ b/
lld/ELF/OutputSections.cpp
@@
-273,11
+273,6
@@
static void finalizeShtGroup(OutputSection *OS,
}
void OutputSection::finalize() {
- if (Type == SHT_NOBITS)
- for (BaseCommand *Base : SectionCommands)
- if (isa<ByteCommand>(Base))
- Type = SHT_PROGBITS;
-
std::vector<InputSection *> V = getInputSections(this);
InputSection *First = V.empty() ? nullptr : V[0];