[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-co
From: |
amodra at gmail dot com |
Subject: |
[Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common |
Date: |
Fri, 10 Jan 2020 10:40:50 +0000 |
https://sourceware.org/bugzilla/show_bug.cgi?id=25355
Alan Modra <amodra at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |amodra at gmail dot com
--- Comment #8 from Alan Modra <amodra at gmail dot com> ---
To reinforce Nick's comment #1 about the plugin api, this is what we get in
bfd/plugin.c:bfd_plugin_canonicalize_symtab for gcc -fno-common compiling
char nm_test_var;
int nm_test_func (void) { return 0; }
(gdb) p syms[0]
$1 = {name = 0xb33800 "nm_test_func", version = 0x0, def = 0, visibility = 0,
size = 0, comdat_key = 0x0, resolution = 0}
(gdb) p syms[1]
$2 = {name = 0xb33820 "nm_test_var", version = 0x0, def = 0, visibility = 0,
size = 0, comdat_key = 0x0, resolution = 0}
There isn't anything to distinguish variables from functions, and so nothing
can be done in nm.
--
You are receiving this mail because:
You are on the CC list for the bug.
- [Bug binutils/25355] New: nm reports a variable as "T" with -flto and -fno-common, marxin.liska at gmail dot com, 2020/01/08
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nickc at redhat dot com, 2020/01/08
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nbowler at draconx dot ca, 2020/01/08
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, calvin.walton at kepstin dot ca, 2020/01/08
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, marxin.liska at gmail dot com, 2020/01/09
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, marxin.liska at gmail dot com, 2020/01/09
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nbowler at draconx dot ca, 2020/01/09
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nickc at redhat dot com, 2020/01/09
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nbowler at draconx dot ca, 2020/01/09
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common,
amodra at gmail dot com <=
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, marxin.liska at gmail dot com, 2020/01/20
- [Bug binutils/25355] nm reports a variable as "T" with -flto and -fno-common, nbowler at draconx dot ca, 2020/01/20