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

--- Comment #3 from H.J. Lu <hjl.tools at gmail dot com> 2011-06-28 14:12:59 
UTC ---
Works for me:

[hjl@gnu-6 pr12944]$ make
/export/build/gnu/gcc/build-x86_64-linux/gcc/../../release/usr/gcc-4.7.0/bin/g++
-O2 -flto -fuse-linker-plugin -flto-partition=none   -c -o x.o x.cc
/export/build/gnu/gcc/build-x86_64-linux/gcc/../../release/usr/gcc-4.7.0/bin/g++
-O2 -flto -fuse-linker-plugin -flto-partition=none -B./ -o x x.o
./x
A
B
nm x | grep _ZTV1
0000000000400700 r _ZTV1A
0000000000400720 r _ZTV1B
[hjl@gnu-6 pr12944]$ gdb x
GNU gdb (GDB) 7.3.50.20110609-cvs
Copyright (C) 2011 Free Software Foundation, Inc.
License GPLv3+: GNU GPL version 3 or later <http://gnu.org/licenses/gpl.html>
This is free software: you are free to change and redistribute it.
There is NO WARRANTY, to the extent permitted by law.  Type "show copying"
and "show warranty" for details.
This GDB was configured as "x86_64-unknown-linux-gnu".
For bug reporting instructions, please see:
<http://www.gnu.org/software/gdb/bugs/>...
Reading symbols from /export/home/hjl/bugs/binutils/lto-5/pr12944/x...(no
debugging symbols found)...done.
$1 = (void *) 0x0
$2 = (void *) 0x400760
$3 = (void *) 0x4005f0
$4 = (void *) 0x0
$5 = (void *) 0x400740
$6 = (void *) 0x4005e0
[hjl@gnu-6 pr12944]$ cat .gdbinit 
p ((void **)0x400700)[0]
p ((void **)0x400700)[1]
p ((void **)0x400700)[2]
p ((void **)0x400720)[0]
p ((void **)0x400720)[1]
p ((void **)0x400720)[2]
quit
[hjl@gnu-6 pr12944]$

-- 
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
bug-binutils@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-binutils

Reply via email to