This is an archive of the discontinued LLVM Phabricator instance.

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

Repository
rL LLVM

Event Timeline

emaste updated this revision to Diff 42528.Dec 11 2015, 9:03 AM
emaste retitled this revision from to lld: allow -e with -shared.
emaste updated this object.
emaste added reviewers: ruiu, grimar.
emaste added a subscriber: llvm-commits.
ruiu accepted this revision.Dec 11 2015, 9:13 AM
ruiu edited edge metadata.

LGTM

This revision is now accepted and ready to land.Dec 11 2015, 9:13 AM
This revision was automatically updated to reflect the committed changes.