Executing nm --plugin /usr/lib/bfd-plugins/LLVMgold.so test.a Gives: 00000000 W _ZN6tester4dumpEv 00000000 W _ZN6tester7readArgEPc 00000000 W _ZN6testerC1Ev 00000000 W _ZN6testerD1Ev And and more entries Without the plugin command "File format not recognized". So it seems like nm is using the plugin. Istvan
Rafael Avila de Espindola
2011-Jun-15 22:06 UTC
[LLVMdev] Difficulties in using gold plugin. (
On 11-06-15 03:32 PM, Istvan Haller wrote:> Executing > nm --plugin /usr/lib/bfd-plugins/LLVMgold.so test.a > Gives: > 00000000 W _ZN6tester4dumpEv > 00000000 W _ZN6tester7readArgEPc > 00000000 W _ZN6testerC1Ev > 00000000 W _ZN6testerD1Ev > And and more entries > Without the plugin command "File format not recognized". > > So it seems like nm is using the plugin.But only if explicitly told to do so. It should search the bfd-plugins directory automatically. Is the nm you are using installed in /usr/bin?> IstvanCheers, Rafael
Rafael Avila de Espindola <rafael.espindola <at> gmail.com> writes:> But only if explicitly told to do so. It should search the bfd-plugins > directory automatically. Is the nm you are using installed in /usr/bin?> Cheers, > Rafael >It seems like I also had one in /usr/local/bin with the same version and it was the default to be used. Now I copied my bfd-plugins folder to /usr/local/lib and nm does not require the plugin option anymore. However the linker still cannot find the symbols. Thanks for the pointers, Istvan
Seemingly Similar Threads
- [LLVMdev] Difficulties in using gold plugin. (
- [LLVMdev] Difficulties in using gold plugin. (
- [LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)
- [LLVMdev] Difficulties in using gold plugin. ("ar" not working properly)
- [LLVMdev] Difficulties in using gold plugin. (