[Top][All Lists]

[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


--- 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
-O2 -flto -fuse-linker-plugin -flto-partition=none   -c -o x.o x.cc
-O2 -flto -fuse-linker-plugin -flto-partition=none -B./ -o x x.o
nm x | grep _ZTV1
0000000000400700 r _ZTV1A
0000000000400720 r _ZTV1B
address@hidden pr12944]$ gdb x
GNU gdb (GDB)
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:
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]
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]