|
From: | markus at trippelsdorf dot de |
Subject: | [Bug binutils/21479] New: strip doesn't handle lto archives |
Date: | Wed, 10 May 2017 07:08:56 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=21479 Bug ID: 21479 Summary: strip doesn't handle lto archives Product: binutils Version: 2.29 (HEAD) Status: NEW Severity: normal Priority: P2 Component: binutils Assignee: unassigned at sourceware dot org Reporter: markus at trippelsdorf dot de Target Milestone: --- address@hidden /tmp % cat a.c extern void foo1(void); void foo2(void) { foo1(); } void foo3(void) {} address@hidden /tmp % cat b.c extern void foo2(void); extern void foo3(void); void foo1(void) { foo3(); } int main(void) { foo2(); } address@hidden /tmp % gcc -c -flto a.c address@hidden /tmp % ar cr a.a a.o address@hidden /tmp % gcc b.c a.a address@hidden /tmp % strip -v --strip-unneeded a.a copy from `a.a(a.o)' [elf64-x86-64] to `sthHR2ab/a.o' [elf64-x86-64] strip: sthHR2ab/a.o: plugin needed to handle lto object address@hidden /tmp % gcc b.c a.a /tmp/cc5eDBC4.o:b.c:function foo1: error: undefined reference to 'foo3' /tmp/cc5eDBC4.o:b.c:function main: error: undefined reference to 'foo2' collect2: error: ld returned 1 exit status -- You are receiving this mail because: You are on the CC list for the bug.
[Prev in Thread] | Current Thread | [Next in Thread] |