.comm vs .largecomm

Ian Lance Taylor iant@google.com
Tue Jul 14 14:04:00 GMT 2009


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



More information about the Binutils mailing list