This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: The ".value" directive
- From: Ian Lance Taylor <iant at google dot com>
- To: Amittai Aviram <amittai dot aviram at yale dot edu>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Wed, 30 Nov 2011 13:18:26 -0800
- Subject: Re: The ".value" directive
- References: <2E3FF57A-B1DF-4479-9A1D-6B504EE082DE@yale.edu>
Amittai Aviram <amittai.aviram@yale.edu> writes:
> What does the ".value" directive mean and what is it for? The assembly code I'm looking at is for x86_64, if that makes a difference. Thanks!
It puts a two byte value into the output section. E.g.,
short x = 1;
might generate
x:
.value 1
Ian