We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 4b22ef7 commit 759f8f4Copy full SHA for 759f8f4
lld/ELF/SyntheticSections.cpp
@@ -3800,7 +3800,8 @@ VersionTableSection::VersionTableSection(Ctx &ctx)
3800
void VersionTableSection::finalizeContents() {
3801
// At the moment of june 2016 GNU docs does not mention that sh_link field
3802
// should be set, but Sun docs do. Also readelf relies on this field.
3803
- getParent()->link = getPartition(ctx).dynSymTab->getParent()->sectionIndex;
+ if (OutputSection *sec = getPartition(ctx).dynSymTab->getParent())
3804
+ getParent()->link = sec->sectionIndex;
3805
}
3806
3807
size_t VersionTableSection::getSize() const {
0 commit comments