[PATCH] D41057: Avoid a gnu readelf warning

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Mon Dec 11 10:46:31 PST 2017


Ed Maste via Phabricator <reviews at reviews.llvm.org> writes:

> emaste added inline comments.
>
>
> ================
> Comment at: ELF/SyntheticSections.cpp:1233
> +  if (this == InX::RelaPlt) {
> +    Info = InX::GotPlt->getParent()->SectionIndex;
> +    getParent()->Info = Info;
> ----------------
> Why `.got.plt` and not `.plt`?

On .o files the info points to the relocated sections. The relocations
in .rela.plt modify entries in .got.plt.

Cheers,
Rafael


More information about the llvm-commits mailing list