[PATCH] D24913: [ELF] - Fix for: Bug 30521 - lld exits non-zero return value linking a library with no entry symbol

Ed Maste via llvm-commits llvm-commits at lists.llvm.org
Mon Sep 26 06:52:18 PDT 2016


emaste added a comment.

I'm not sure this is right: shared libraries normally don't use entry but they can in some cases - for example I think glibc's rtld is built with an entry point and can be executed directly. FreeBSD's rtld has some commented-out build infrastructure to build with entry but it is not used in the default case.

My guess at the logic would be: not shared produces a warning for missing entry. Shared case never emits a warning. Set entry if specified, if not specified set to zero with no warning.


https://reviews.llvm.org/D24913





More information about the llvm-commits mailing list