[llvm-commits] [PATCH] [lld] Use CLI/Target entrypoint instead of default "_start" in WriterOptionsELF

Ahmed Bougacha ahmed.bougacha at gmail.com
Thu Jan 17 06:43:51 PST 2013


Hi Michael, Nick, all,

I was toying with lld when I noticed command-line and target-defined
entrypoints are never used, with the entrypoint always defaulting to
_start. With the small attached patch it works as expected.

When writing a testcase, I also noticed lld-core doesn't accept a
--entry= argument, so I added it too. For now, this is only used by
WriterOptionsELF.

As to other writers, how about making WriterOptionsELF a WriterOptions
and adding the entrypoint there for all Writers to use? If no one is
working on it and it's ok I can take care of it.

Thanks,

-- Ahmed Bougacha
-------------- next part --------------
A non-text attachment was scrubbed...
Name: entrypoint.diff
Type: application/octet-stream
Size: 5203 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20130117/b5021b22/attachment.obj>


More information about the llvm-commits mailing list