[binutils] libctf: Remove undefined functions from ver. map

Nick Alcock nick.alcock@oracle.com
Wed Feb 28 18:14:46 GMT 2024


On 28 Feb 2024, Nicholas Vinson told this:

> On 2/27/24 10:05, Nick Alcock wrote:
>> On 27 Feb 2024, Sam James said:
>> 
>>> Nicholas Vinson <nvinson234@gmail.com> writes:
>>>
>>>> The functions ctf_label_set(), ctf_label_get(), ctf_arc_open(), ctf_fdopen(),
>>>> ctf_open(), ctf_bfdopen(), and ctf_bfdopen_ctfsect() are not defined. Their
>>>> inclusion in libctf/libctf.ver causes clang/llvm LTO optimizatiosn to fail with
>>>> error messages similar to
>> This is definitely not right. They *are* defined, but only for some
>> libraries built from this version script. You can't just take them out.
>
> Could you point me to the definitions for ctf_label_set() and ctf_label_get() ?

Those two are long dead and gone and should indeed be removed from the
.ver script. (I wonder why Solaris's linker, which is just as picky
about version scripts referencing only symbols that actually exist,
never warned me about this.)

> I do find definitions for the other so the other symbols, so I'll find
> a different way to handle those symbols in the version file.

Commenting them as /* libctf only. */ should be enough, I think. Only
one symbol seems to be missing, ctf_arc_open. The others are already
properly marked and should already be being excluded from the .ver
script for libctf_nobfd.so.)

-- 
NULL && (void)


More information about the Binutils mailing list