[lld] r252790 - Add support for processing .eh_frame.
Simon Atanasyan via llvm-commits
llvm-commits at lists.llvm.org
Sun Nov 22 13:18:42 PST 2015
On Wed, Nov 11, 2015 at 10:54 PM, Rafael Espindola via llvm-commits
<llvm-commits at lists.llvm.org> wrote:
> Author: rafael
> Date: Wed Nov 11 13:54:14 2015
> New Revision: 252790
>
> URL: http://llvm.org/viewvc/llvm-project?rev=252790&view=rev
> Log:
> Add support for processing .eh_frame.
[...]
> Modified: lld/trunk/ELF/OutputSections.cpp
> URL: http://llvm.org/viewvc/llvm-project/lld/trunk/ELF/OutputSections.cpp?rev=252790&r1=252789&r2=252790&view=diff
> ==============================================================================
> --- lld/trunk/ELF/OutputSections.cpp (original)
> +++ lld/trunk/ELF/OutputSections.cpp Wed Nov 11 13:54:14 2015
[...]
> + for (EHInputSection<ELFT> *S : Sections) {
> + const Elf_Shdr *RelSec = S->RelocSection;
> + if (!RelSec)
> + continue;
> + ELFFile<ELFT> &EObj = S->getFile()->getObj();
> + if (RelSec->sh_type == SHT_RELA)
> + S->relocate(Buf, nullptr, EObj.relas(RelSec));
> + else
> + S->relocate(Buf, nullptr, EObj.relas(RelSec));
Using `relas` in both cases looks like a typo.
--
Simon Atanasyan
More information about the llvm-commits
mailing list