Previously LLD would print a warning for missing entry symbol in relocatable and shared output files, which is incorrect as these normally don't have an entry symbol.
Diff Detail
Event Timeline
Yes, neither of them emits the warning. This was actually discovered while linking an existing code which relies heavily on relocatable objects where BFD ld and gold are both silent but LLD would emit a lot of warnings.
I think this one is OK. Please wait for Rafael sign-off as he introduced the feature (and the warning)
ELF/Driver.cpp | ||
---|---|---|
679 | HasEntry and HasEntryAddr seem a bit confusing here. I think you only had to change this line to if (!HasEntryAddr && !Config->Entry.empty()) { no? |
I'm happy to to let George land his change https://reviews.llvm.org/D24913 and abandon this one if you prefer his solution.
Yeah, I didn't notice until now that his change is exactly what I suggested. I'll LGTM his change.
Thanks, Petr and sorry I really did not notice you're already working on this, just was trying to fix unassigned PR30521 :]
HasEntry and HasEntryAddr seem a bit confusing here. I think you only had to change this line to
no?