https://sourceware.org/bugzilla/show_bug.cgi?id=32967
Bug ID: 32967 Summary: nm: a-s.o: plugin needed to handle lto object Product: binutils Version: 2.45 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: hjl.tools at gmail dot com CC: sam at gentoo dot org Target Milestone: --- [hjl@gnu-tgl-3 pr21479]$ cat a.c extern void foo1(void); void foo2(void) { foo1(); } void foo3(void) {} [hjl@gnu-tgl-3 pr21479]$ gcc -c -flto -fno-fat-lto-objects a.c [hjl@gnu-tgl-3 pr21479]$ strip -R '.gnu.lto_*' -R '.gnu.debuglto_*' -N __gnu_lto_v1 a.o -o a-s.o [hjl@gnu-tgl-3 pr21479]$ nm a.o U foo1 00000000 T foo2 00000000 T foo3 [hjl@gnu-tgl-3 pr21479]$ nm a-s.o nm: a-s.o: plugin needed to handle lto object 0000000000000001 C __gnu_lto_slim [hjl@gnu-tgl-3 pr21479]$ bfd_set_lto_type sets lto_type to lto_non_ir_object since all LTO sections have been removed. nm shouldn't complain for plugin. -- You are receiving this mail because: You are on the CC list for the bug.