projects
/
oota-llvm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
aaae3f6
)
Don't emit a shstrtabindex in the reserved range. Spotted by inspection and
author
Nick Lewycky
<nicholas@mxc.ca>
Fri, 7 Oct 2011 20:58:24 +0000
(20:58 +0000)
committer
Nick Lewycky
<nicholas@mxc.ca>
Fri, 7 Oct 2011 20:58:24 +0000
(20:58 +0000)
patch by Cary Coutant!
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@141413
91177308
-0d34-0410-b5e6-
96231b3b80d8
lib/MC/ELFObjectWriter.cpp
patch
|
blob
|
history
diff --git
a/lib/MC/ELFObjectWriter.cpp
b/lib/MC/ELFObjectWriter.cpp
index 549a5099376f95c5210fb8513f3a893839b312ff..9bb64625654f2e89db1458e1047e30dffbaa78cb 100644
(file)
--- a/
lib/MC/ELFObjectWriter.cpp
+++ b/
lib/MC/ELFObjectWriter.cpp
@@
-130,7
+130,7
@@
void ELFObjectWriter::WriteHeader(uint64_t SectionDataSize,
Write16(NumberOfSections);
// e_shstrndx = Section # of '.shstrtab'
- if (
NumberOfSections
>= ELF::SHN_LORESERVE)
+ if (
ShstrtabIndex
>= ELF::SHN_LORESERVE)
Write16(ELF::SHN_XINDEX);
else
Write16(ShstrtabIndex);