* Fwd: Symbols in .comm doesn't move to .sbss?
[not found] <51CDB903-40CE-48C1-89F0-DA2E4FFD57E4@monami-software.com>
@ 2006-05-20 13:59 ` Masaki Muranaka
2006-05-20 14:00 ` Alan Modra
0 siblings, 1 reply; 2+ messages in thread
From: Masaki Muranaka @ 2006-05-20 13:59 UTC (permalink / raw)
To: binutils
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: Fwd: Symbols in .comm doesn't move to .sbss?
2006-05-20 13:59 ` Fwd: Symbols in .comm doesn't move to .sbss? Masaki Muranaka
@ 2006-05-20 14:00 ` Alan Modra
0 siblings, 0 replies; 2+ messages in thread
From: Alan Modra @ 2006-05-20 14:00 UTC (permalink / raw)
To: Masaki Muranaka; +Cc: binutils
On Sat, May 20, 2006 at 09:11:35PM +0900, Masaki Muranaka wrote:
> 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.
The linker can do this. See add_symbol_hook in bfd/ source files.
--
Alan Modra
IBM OzLabs - Linux Technology Centre
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-05-20 12:43 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
[not found] <51CDB903-40CE-48C1-89F0-DA2E4FFD57E4@monami-software.com>
2006-05-20 13:59 ` Fwd: Symbols in .comm doesn't move to .sbss? Masaki Muranaka
2006-05-20 14:00 ` Alan Modra
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).