[PATCH] D42748: [ELF] Don't create a .dynamic section when linking with -Bstatic

Ed Schouten via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Thu Feb 1 14:40:03 PST 2018


ed added a comment.

In https://reviews.llvm.org/D42748#994676, @arichardson wrote:

> The dynamic symbol table is still included, it's only the PT_DYNAMIC, .dynamic and the _DYNAMIC symbol that are excluded.


But within a running process, you need `PT_DYNAMIC` to be able to find the location of dynsym, right? I suspect that without it, dynsym will be nothing more than an unreferenced section.

Omitting .dynamic and _DYNAMIC sounds perfectly fine to me!


Repository:
  rLLD LLVM Linker

https://reviews.llvm.org/D42748





More information about the llvm-commits mailing list