bug-binutils
[Top][All Lists]
Advanced

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

[Bug ld/12944] GNU LD incorrectly optimize away COMDAT sections refered


From: hjl.tools at gmail dot com
Subject: [Bug ld/12944] GNU LD incorrectly optimize away COMDAT sections refered from data sections.
Date: Tue, 28 Jun 2011 14:13:44 +0000

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:

address@hidden 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
address@hidden 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
address@hidden 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
address@hidden 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.



reply via email to

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