[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
Wed May 22 08:26:36 PDT 2019


ed added a comment.

In D42748#1510087 <https://reviews.llvm.org/D42748#1510087>, @MaskRay wrote:

> @ed I want to knore more about your motivation to add --export-dynamic to the condition in D29982 <https://reviews.llvm.org/D29982>. Why do you need .dynamic in a position dependent executable for CloudABI, which has no shared object dependency on the linker command line?


For CloudABI it's useful to have when you want to create binaries that are able to print their own stack traces with symbol names in them. The regular symbol table isn't mapped into the address space of the application, whereas the dynamic symbol table is.


Repository:
  rLLD LLVM Linker

CHANGES SINCE LAST ACTION
  https://reviews.llvm.org/D42748/new/

https://reviews.llvm.org/D42748





More information about the llvm-commits mailing list