[PATCH] D41640: [ELF] - Do not ignore discarding of .rela.plt/.rela.dyn

Rafael Avila de Espindola via llvm-commits llvm-commits at lists.llvm.org
Tue Jan 9 16:56:27 PST 2018


Rui Ueyama via Phabricator <reviews at reviews.llvm.org> writes:

> ruiu added inline comments.
>
>
> ================
> Comment at: ELF/LinkerScript.cpp:293-295
> +      // We do not ignore linker-synthesized sections here because
> +      // want to error out when discarding them with scripts like
> +      //   /DISCARD/ : { *(.rela.dyn) }
> ----------------
> I think I don't understand this comment. How is /DISCARD/ related to the synthetic section?

The linker created sections are synthetic. We don't support discarding
those and want to issue an error if a linkerscript tries.

Cheers,
Rafael


More information about the llvm-commits mailing list