This is the mail archive of the
mailing list for the binutils project.
Re: common symbols and GNU ld
- From: Ian Lance Taylor <iant at google dot com>
- To: ali hagigat <hagigatali at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Wed, 11 May 2011 07:49:57 -0700
- Subject: Re: common symbols and GNU ld
- References: <BANLkTi=ivd34x472-Ba+-FQEKFY3f7yaYw@mail.gmail.com>
ali hagigat <firstname.lastname@example.org> 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?
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.