common symbols and GNU ld

Ian Lance Taylor
Wed May 11 14:50:00 GMT 2011

ali hagigat <> writes:

> What is the meaning of common symbols?

> Are they defined by .comm
> assembler directive ONLY? If I do not see .comm in the assembly
> listing of a program so that program does not have common symbols?
> right?

In MRI mode you can get a common symbol using the COMMON pseudo-op.  You
can also use the .xcom pseudo-op.  ELF targets support the .common
pseudo-op.  The x86_64 target supports the .largecomm pseudo-op.  There
are various other possibilities.


More information about the Binutils mailing list