This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: .comm vs .largecomm
- From: Ian Lance Taylor <iant at google dot com>
- To: David Livshin <david dot livshin at dalsoft dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 14 Jul 2009 07:04:28 -0700
- Subject: Re: .comm vs .largecomm
- References: <4A5AD0CD.6050606@dalsoft.com>
David Livshin <david.livshin@dalsoft.com> writes:
> What is the difference between .comm and .largecomm ( in gas for
> x86_64). May it be assumed that ( the address of a ) symbol defined by
> .comm is < 2G, e.g. after
.largecomm is used when using the medium model (gcc's -mcmodel=medium
option). When using the medium model, you can assume that the address
of a .comm symbol is < 2G. When using the large model, you can not
assume that.
Ian