<table border="1" cellspacing="0" cellpadding="8">
<tr>
<th>Issue</th>
<td>
<a href=https://github.com/llvm/llvm-project/issues/64865>64865</a>
</td>
</tr>
<tr>
<th>Summary</th>
<td>
LLD/mac cannot link with Merge DICOM dylib missing LC_DYLD_INFO_ONLY or LC_DYLD_EXPORTS_TRIE
</td>
</tr>
<tr>
<th>Labels</th>
<td>
new issue
</td>
</tr>
<tr>
<th>Assignees</th>
<td>
</td>
</tr>
<tr>
<th>Reporter</th>
<td>
rubenvb
</td>
</tr>
</table>
<pre>
I tried using LLD for a work project which links to the Merge DICOM library (proprietary and paid unfortunately), and LLD 16.0.0 gives me this error:
ld64.lld: error: No LC_DYLD_INFO_ONLY or LC_DYLD_EXPORTS_TRIE found in <path-to>/mc3adv.dylib
This is a x86_64 dylib being linked into a x86_64 application (or dylib) on an M1 Mac, but that shouldn't change much.
The error is followed by a list of undefined references to symbols contained in mc3adv.dylib:
ld64.lld: error: undefined symbol: MC_Error_Message
I am most likely not allowed to provide you with the dylib, nor do I know how it was created. I can, though provide any output of diagnostic tools (e.g. `otool` or `nm` or `objdump` or...) if you can tell me what exactly it would be I need to do.
It seems LLD does not know how to find the symbols in this dylib, but ld64 of course makes no issue in linking it.
</pre>
<img width="1px" height="1px" alt="" src="http://email.email.llvm.org/o/eJyMVE2PozgQ_TXOpdQITEKHA4fZpCNFSrpXs33YOUUGF-Bp40L-SIZ_vzJk0z23ufBRLpffe_VcwjnVGcSKbf5im_1KBN-TrWyo0VzrVU1yqo7grUIJwSnTwem0h5YsCLiR_YDR0k9sPNx61fSglflw4Al8j3BG2yHsj7u3M2hVW2EnYHw7WhqtQh9_hZEwCiUhmJasD0Z41BPjJeO7eTGelhVJmqTQqSs6GBB8rxygtWRZ_o2le5benwAAWhbrRGvJ8m-PHHglOO0u-x-n_eX4eni7vL2efgDZR_Dl37_fvr__c3n_fnyBloKRoAywfDcK3z95YvkL44ehyYW8JnLSqv567HvEoxwI-LUtLsUa5gyoMcoVFcFYztNnghhHrRrhFZmoCNllC-MlkAFh4JzBWTRRhDp48L3w4HoKWhrGnz00vTAdwhCaPvkdCS6kI5yWtKYbSqgnEKCV80AtBCOxVQYlWGzRomlwbpibhpq0g4aMF_O6MvAb4z_U-vOApWSMnXeXl7h-OaNzosOvhY4gBhjIedDqA_UEhjyIO3RP0WBXJREmCnBTvp-tdZdrByZqR3CED0M36OkGysNNOGgsCo8ygSM0wsRU31Po-kc9YSag4McwyyKV6Aw5rxrwFHVgfItJlwArUooRVqTRMaxIzfD5TfVPGYZxCSRJEjuo2hlrIwx41Do69hYbiL9E4_U0A4ythBrhCAYXmpLunTx6cIiDm60vCd0syIOeJ2iVkbMK__dMmeVOPFSJponNicwaCtYhDOJjLgXKuYBxS3RmdKjyyUpWuSzzUqywyoqSF3nGi2LVV2KdYo15Jp9LXNdlU8hn-dy0pSzKbIMyXamKpzxPtzzLNjxLi0Qgr7HcZNkm3SK2z2yd4iCUTrS-DgnZbjUDqIr1ttistKhRu3n4cG7wtqBjnMdZZKu456kOnWPrNBrYfVbxymusTqd9vJiiiXJHnSKpxSZfp89yIQfllgn2p6NgFayueu9HF83PD4wfOuX7UCcNDYwfIpj76-k-Bxk_zBQc44eZ4n8BAAD__yHfw6A">