It is reasonable to specify an entry point for shared objects - e.g. FreeBSD rtld ld-elf.so.1.
Unlike GNU ld we leave it as 0 if -shared is specified without an explicit -e address or symbol.
Paths
| Differential D15454
lld: allow -e with -shared ClosedPublic Authored by emaste on Dec 11 2015, 9:03 AM.
Details Summary It is reasonable to specify an entry point for shared objects - e.g. FreeBSD rtld ld-elf.so.1. Unlike GNU ld we leave it as 0 if -shared is specified without an explicit -e address or symbol.
Diff Detail
Event Timelineemaste updated this object. This revision is now accepted and ready to land.Dec 11 2015, 9:13 AM Closed by commit rL255349: ELF: Allow -e <entry> with -shared (authored by emaste). · Explain WhyDec 11 2015, 9:50 AM This revision was automatically updated to reflect the committed changes.
Revision Contents
Diff 42536 lld/trunk/ELF/Driver.cpp
lld/trunk/test/ELF/entry.s
|