bug-binutils
[Top][All Lists]
Advanced

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

[Bug binutils/12088] ar/nm plugin use requires GNUTARGET=plugin


From: hjl dot tools at gmail dot com
Subject: [Bug binutils/12088] ar/nm plugin use requires GNUTARGET=plugin
Date: 4 Oct 2010 12:21:33 -0000

------- Additional Comments From hjl dot tools at gmail dot com  2010-10-04 
12:21 -------
ONLYLTO looks odd to me. I made some changes and got:

address@hidden lto-ar-emu]$ cat ONLYLTO
#!/bin/sh

for s in $(readelf -S --wide $1 | grep lto | sed -e "s/.*\(.gnu.lto_.*\)[
\t]*PROGBITS.*/\1/")
do
  sections="$sections -j $s"
done

objcopy $sections $1 $1.o
address@hidden lto-ar-emu]$ make
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -O2 -flto    -c -o main.o 
main.c
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -O2 -flto    -c -o a.o a.c
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -O2 -flto    -c -o b.o b.c
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -O2 -flto    -c -o c.o c.c
./ONLYLTO a.o
./ONLYLTO b.o
./ONLYLTO c.o
rm -f t.a
./ar --plugin
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/../libexec/gcc/x86_64-unknown-linux-gnu/4.6.0/liblto_plugin.so
qs t.a a.o.o b.o.o c.o.o
./ar: creating t.a
/export/build/gnu/gcc/release/usr/gcc-4.6.0/bin/gcc -flto -fuse-linker-plugin 
main.o t.a   -o main
./main
c 3
address@hidden lto-ar-emu]$ 

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


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

------- You are receiving this mail because: -------
You are on the CC list for the bug, or are watching someone who is.



reply via email to

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