bug-binutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Bug binutils/13278] --plugin doesn't work on archive


From: hjl.tools at gmail dot com
Subject: [Bug binutils/13278] --plugin doesn't work on archive
Date: Sat, 15 Oct 2011 20:13:59 +0000

http://sourceware.org/bugzilla/show_bug.cgi?id=13278

H.J. Lu <hjl.tools at gmail dot com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
             Status|RESOLVED                    |REOPENED
         Resolution|FIXED                       |

--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> 2011-10-15 20:13:59 
UTC ---
It still doesn't work:

address@hidden pr13278]$ cat foo.c
int foo(void)
{
  return 0;
}
address@hidden pr13278]$ cat bar.c
int bar (void)
{
  return 0;
}
address@hidden pr13278]$ cat main.c
extern int foo ();
extern int bar ();

int
main ()
{
  return foo () + bar ();
}
address@hidden pr13278]$ make
/usr/gcc-4.7.0-x32/bin/gcc    -c -o main.o main.c
/usr/gcc-4.7.0-x32/bin/gcc    -c -o bar.o bar.c
/usr/gcc-4.7.0-x32/bin/gcc -flto -fno-fat-lto-objects -c -o foo.o foo.c
ar -o lib.a --plugin
/usr/gcc-4.7.0-x32/libexec/gcc/x86_64-unknown-linux-gnu/4.7.0/liblto_plugin.so
-rcsD bar.o foo.o
/usr/gcc-4.7.0-x32/bin/gcc -flto -o x main.o lib.a
main.o: In function `main':
main.c:(.text+0xf): undefined reference to `foo'
collect2: error: ld returned 1 exit status
make: *** [x] Error 1
address@hidden pr13278]$

-- 
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.



reply via email to

[Prev in Thread] Current Thread [Next in Thread]