[RFC PATCH, binutils] Add support for creating ELF import libraries

H.J. Lu hjl.tools@gmail.com
Fri Feb 5 13:42:00 GMT 2016


On Fri, Feb 5, 2016 at 5:35 AM, Nick Clifton <nickc@redhat.com> wrote:
> Hi Thomas,
>
>> One convenient mechanism is to create a so called import library that application
>> developers can link against. Such a library can already be created with objcopy
>> --extract-symbol but this means it is done as a separate step than linking.
>> This patch aims to add support in ld to create ELF import libraries at link time.
>
> Why ?  As you say this can already be done with objcopy.  Why add code to the linker,
> potentially creating new bugs, when there is an already existing mechanism that works ?
>

I agree.   We need more compelling reasons to add another way to do the same
thing in binutils.


-- 
H.J.



More information about the Binutils mailing list