labath added a comment.

I just found out that this test (the non-shared-library version) fails on linux 
if the executable is built with `-no-pie` (which is the default if the 
`CLANG_DEFAULT_PIE_ON_LINUX` option is not set, which happened to be the case 
for my build). I think the important fact here is that a PIE ELF executable 
gets its `e_type` field set to `ET_DYN`, which causes lldb to identify it as a 
shared library. However, it is not clear to me why would that matter in this 
case...


Repository:
  rG LLVM Github Monorepo

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

https://reviews.llvm.org/D138724

_______________________________________________
lldb-commits mailing list
lldb-commits@lists.llvm.org
https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits

Reply via email to