[PATCH] D53881: [ELF] Fallback to sh_link=0 if neither .dynsym nor .symtab exists
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Tue Oct 30 12:57:35 PDT 2018
ruiu added inline comments.
================
Comment at: ELF/SyntheticSections.cpp:1498-1500
+ getParent()->Link =
+ In.DynSymTab ? In.DynSymTab->getParent()->SectionIndex
+ : In.SymTab ? In.SymTab->getParent()->SectionIndex : 0;
----------------
If ?: is nested, plain `if ~ else if` is perhaps easier to read.
Repository:
rLLD LLVM Linker
https://reviews.llvm.org/D53881
More information about the llvm-commits
mailing list