Skip to content

Linker issues when linking with LLD 18 #191

@dlots

Description

@dlots

LLD 18 enables --no-undefined flag by default, producing errors like this:

ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_aead_getdata' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_aead_outbuflen' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_init' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_destroy' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_setkey' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_setpubkey' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_encrypt' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_decrypt' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_sign' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_verify' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_init_enc' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_init_dec' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_init_sgn' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_init_vfy' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_update' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_update_last' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.12.0' to symbol 'kcapi_akcipher_stream_op' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.14.0' to symbol 'kcapi_akcipher_encrypt_aio' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.14.0' to symbol 'kcapi_akcipher_decrypt_aio' failed: symbol not defined
ld.lld: error: version script assignment of 'LIBKCAPI_0.14.0' to symbol 'kcapi_akcipher_sign_aio' failed: symbol not defined
ld.lld: error: too many errors emitted, stopping now (use --error-limit=0 to see all errors)

Need to add --undefined-version flag to allow undefined again.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions