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

Konstantin Belousov via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Sat Sep 7 21:27:29 PDT 2019


kib added a comment.

In D42748#1646442 <https://reviews.llvm.org/D42748#1646442>, @arichardson wrote:

> FreeBSD libc should be fixed instead.


But how ?  Again, finding and parsing phdrs in crt1 is not a solution.  We need something comparable with the check for `&_DYNAMIC != NULL` in conciseness and simultaneously working for all three linkers.  Ok, I am fine even with having separate tests for lld and GNU linkers, or-ed.


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