[LLVMdev] Reimplementing Darwin's dsymutil as an lld helper

Shankar Easwaran shankare at codeaurora.org
Fri Nov 7 10:28:28 PST 2014


On 11/7/2014 12:25 PM, Frédéric Riss wrote:
>> On Nov 7, 2014, at 10:07 AM, Shankar Easwaran <shankare at codeaurora.org> wrote:
>>
>> Thanks for your reply, Fred.
>>
>> It might work better, if its in a form of an API. So that the linker could call an API instead of running a tool ?
> Yes, the long term goal would be to expose it as an API. The separate tool is just a first step. I can’t give you the exact shape of the API know, but basically the main entry point would be something like:
>
> DwarfLinker::link(const DebugMap& map);
>
> Where the DebugMap is a collection of object files containing debug info associated with symbol mappings. In the end the dsymutil utility should just be a thin command line wrapper around that.
Should this tool and the API exist as part of lld itself ? because 
linker is the only thing that calls it ?

Shankar Easwaran

-- 
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation




More information about the llvm-dev mailing list