[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug gold/12370] New: Symbols present in LTO symbol table resolved as PR
From: |
jh at suse dot cz |
Subject: |
[Bug gold/12370] New: Symbols present in LTO symbol table resolved as PREVAILING_DEF_IRONLY and optimized out appears in final symbol table. |
Date: |
Wed, 5 Jan 2011 22:50:15 +0000 |
http://sourceware.org/bugzilla/show_bug.cgi?id=12370
Summary: Symbols present in LTO symbol table resolved as
PREVAILING_DEF_IRONLY and optimized out appears in
final symbol table.
Product: binutils
Version: unspecified
Status: NEW
Severity: normal
Priority: P2
Component: gold
AssignedTo: address@hidden
ReportedBy: address@hidden
Gold expose simplar problem to PR 12369 in GNU LD
address@hidden:/abuild/jh/trunk-3/build-inst2/gcc> cat t.C
struct S {
virtual ~S() { }
};
int main(void)
{
S t;
return 0;
}
address@hidden:/abuild/jh/trunk-3/build-inst2/gcc> ./g++ -B ./ -O2 t.C
-save-temps
-flto -fuse-linker-plugin
[Leaving LTRANS /abuild/jh/tmp//ccoul7Xo.args]
[Leaving LTRANS /abuild/jh/tmp//ccT1KSUO.ltrans.out]
[Leaving LTRANS /abuild/jh/tmp//ccOM6q7y.args]
[Leaving LTRANS /abuild/jh/tmp//ccT1KSUO.ltrans0.o]
address@hidden:/abuild/jh/trunk-3/build-inst2/gcc> cat *.s
.file "ccT1KSUO.ltrans0.o"
.section .text.startup,"ax",@progbits
.p2align 4,,15
.globl main
.type main, @function
main:
.LFB0:
.cfi_startproc
xorl %eax, %eax
ret
.cfi_endproc
.LFE0:
.size main, .-main
.ident "GCC: (GNU) 4.6.0 20110105 (experimental)"
.section .note.GNU-stack,"",@progbits
it is optimized out.
With GNU LD I get
address@hidden:/abuild/jh/trunk-3/build-inst2/gcc> nm a.out
0000000000401720 d _DYNAMIC
00000000004018f8 d _GLOBAL_OFFSET_TABLE_
000000000040063c R _IO_stdin_used
w _Jv_RegisterClasses
w _ZTI1S
w _ZTS1S
v _ZTVN10__cxxabiv117__class_type_infoE
U _ZdlPv
0000000000401930 d __CTOR_END__
0000000000401928 d __CTOR_LIST__
0000000000401940 d __DTOR_END__
0000000000401938 d __DTOR_LIST__
00000000004006d8 r __FRAME_END__
0000000000401948 d __JCR_END__
0000000000401948 d __JCR_LIST__
0000000000401950 A __bss_start
0000000000401918 D __data_start
0000000000400600 t __do_global_ctors_aux
00000000004004b0 t __do_global_dtors_aux
0000000000401920 d __dso_handle
w __gmon_start__
0000000000000000 a __init_array_end
0000000000000000 a __init_array_start
0000000000400560 T __libc_csu_fini
0000000000400570 T __libc_csu_init
U __libc_start_main
0000000000401950 A _edata
0000000000401960 A _end
0000000000400658 T _fini
0000000000400640 T _init
0000000000400460 T _start
000000000040048c t call_gmon_start
0000000000401950 b completed.5822
0000000000401918 W data_start
0000000000401958 b dtor_idx.5824
0000000000400520 t frame_dummy
0000000000400550 T main
typeinfo for S and friends should not appear in the symbol table, they are not
in the linker plugin output (but was originally
--
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 gold/12370] New: Symbols present in LTO symbol table resolved as PREVAILING_DEF_IRONLY and optimized out appears in final symbol table.,
jh at suse dot cz <=