http://sourceware.org/bugzilla/show_bug.cgi?id=13278
Bug #: 13278
Summary: --plugin doesn't work on archive
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: binutils
AssignedTo: [email protected]
ReportedBy: [email protected]
Classification: Unclassified
[hjl@gnu-6 slim-1]$ cat foo.c
int foo(void)
{
return 0;
}
[hjl@gnu-6 slim-1]$ cat bar.c
int bar (void)
{
return 0;
}
[hjl@gnu-6 slim-1]$ make NM=nm
/usr/gcc-4.7.0-x32/bin/gcc -c -o bar.o bar.c
./ar --plugin
/usr/gcc-4.7.0-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/liblto_plugin.so
-rcsD lib.a bar.o
./ar --plugin
/usr/gcc-4.7.0-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/liblto_plugin.so
-rcsD lib.a foo.o
nm --plugin
/usr/gcc-4.7.0-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/liblto_plugin.so
lib.a
bar.o:
0000000000000000 T bar
foo.o:
0000000000000001 C __gnu_lto_v1
0000000000000001 C __gnu_slim_lto
rm bar.o
[hjl@gnu-6 slim-1]$
The problem is we set the target type of archive to the target type of
the first member, which may not be a plugin object.
--
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
_______________________________________________
bug-binutils mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/bug-binutils