[llvm-commits] [llvm] r72773 - /llvm/trunk/docs/GoldPlugin.html

Török Edwin edwintorok at gmail.com
Wed Jun 3 11:51:20 PDT 2009


On 2009-06-03 19:31, Török Edwin wrote:
> On 2009-06-03 19:28, Rafael Espindola wrote:
>   
>>> But without --plugin it doesn't:
>>> $ /home/edwin/llvm-svn/install/bin/nm
>>> /home/edwin/clam/git/builds/lto/libclamav/lzma/.libs/liblzma.a
>>> /home/edwin/llvm-svn/install/bin/nm: LzmaStateDecode.o: File format not
>>> recognized
>>>     
>>>       
>> That is strange. Can you run in strace and check that it is trying to
>> open the bfd-plugins directory?
>>   
>>     
>
> It does, but it doesn't seem to load anything from there.
>
> I attached the strace output and liblzma.a.
>
> To reproduce my failure try running:
> <prefix>/bin/nm liblzma.a
>
> vs.
>
> <prefix>/bin/nm liblzma.a --plugin libLLVMgold.so
>
>   

plugin.c does this:
if (ent->d_type != DT_REG && ent->d_type != DT_LNK)
    continue;

I am using reiserfs for my /home, and IIRC it doesn't implement the
d_type field and return DT_UNKNOWN for all files.
If you get DT_UNKNOWN you should lstat(), and check the result.

Best regards,
--Edwin



More information about the llvm-commits mailing list