Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Symbols in .comm doesn't move to .sbss?
@ 2006-05-20  7:53 Masaki Muranaka
  2006-05-20 10:10 ` Andreas Schwab
  0 siblings, 1 reply; 4+ messages in thread
From: Masaki Muranaka @ 2006-05-20  7:53 UTC (permalink / raw)
  To: gdb-patches

Hello all,

I have a question before I post a patch.

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?


--
Masaki Muranaka
Monami software



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbols in .comm doesn't move to .sbss?
  2006-05-20  7:53 Symbols in .comm doesn't move to .sbss? Masaki Muranaka
@ 2006-05-20 10:10 ` Andreas Schwab
  2006-05-20 12:22   ` Masaki Muranaka
  0 siblings, 1 reply; 4+ messages in thread
From: Andreas Schwab @ 2006-05-20 10:10 UTC (permalink / raw)
  To: Masaki Muranaka; +Cc: gdb-patches

Masaki Muranaka <monaka@monami-software.com> writes:

> 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?

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.

Andreas.

-- 
Andreas Schwab, SuSE Labs, schwab@suse.de
SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany
PGP key fingerprint = 58CA 54C7 6D53 942B 1756  01D3 44D5 214B 8276 4ED5
"And now for something completely different."


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbols in .comm doesn't move to .sbss?
  2006-05-20 10:10 ` Andreas Schwab
@ 2006-05-20 12:22   ` Masaki Muranaka
  2006-05-20 14:40     ` Masaki Muranaka
  0 siblings, 1 reply; 4+ messages in thread
From: Masaki Muranaka @ 2006-05-20 12:22 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andreas Schwab


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



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: Symbols in .comm doesn't move to .sbss?
  2006-05-20 12:22   ` Masaki Muranaka
@ 2006-05-20 14:40     ` Masaki Muranaka
  0 siblings, 0 replies; 4+ messages in thread
From: Masaki Muranaka @ 2006-05-20 14:40 UTC (permalink / raw)
  To: gdb-patches; +Cc: Andreas Schwab

Sorry, I have a wrong address.
This question should be discussed at binutils-ML.
I sent it there again.

On 2006/05/20, at 20:14, Masaki Muranaka wrote:
> 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



^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2006-05-20 12:22 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2006-05-20  7:53 Symbols in .comm doesn't move to .sbss? Masaki Muranaka
2006-05-20 10:10 ` Andreas Schwab
2006-05-20 12:22   ` Masaki Muranaka
2006-05-20 14:40     ` Masaki Muranaka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox