This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Fwd: Symbols in .comm doesn't move to .sbss?
- From: Masaki Muranaka <monaka at monami-software dot com>
- To: binutils at sources dot redhat dot com
- Date: Sat, 20 May 2006 21:11:35 +0900
- Subject: Fwd: Symbols in .comm doesn't move to .sbss?
- References: <51CDB903-40CE-48C1-89F0-DA2E4FFD57E4@monami-software.com>
Hello all,
I sent same question to gdb-patches yesterday.
Let me send again since this issue is about gas, not gdb.
My first post is follows:
- - -
Gas on MIPS|Alpha targets, symbols in the common sections
should be moved to .sbss depends on its size.
I found a support in read.c / bss_alloc().
The symbol in .lcomm will be collected because bss_alloc
is called by s_lcomm. But there is no path for .comm.
So the symbols in .comm will be never moved to .sbss.
Is this a bug? or a correct behavior?
- - -
And replies at gdb-patches is follows:
From: Masaki Muranaka <monaka@monami-software.com>
Date: 2006年5月20日 20:14:58:JST
To: gdb-patches@sourceware.org
Cc: Andreas Schwab <schwab@suse.de>
Subject: Re: Symbols in .comm doesn't move to .sbss?
On 2006/05/20, at 16:53, Andreas Schwab wrote:
Is this a bug? or a correct behavior?
I don't think it would be correct to move .comm to .sbss, since
the symbol
could be merged with a larger .comm symbol of the same name in a
different
module during linking.
Thanks for your opinion.
Then, is it be correct to move .lcomm to .sbss?
And it seems symbols in .comm was moved to .sbss
when I use MIPS SDE. Is it SDE's bug?
Still I'm a little bit confused...
--
Masaki Muranaka
Monami software
--
Masaki Muranaka
Monami software