This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: RFC and PATCH - Defining variables in the linker script withoutdefining them as symbols on the file
- From: Zack Weinberg <zack at codesourcery dot com>
- To: Guilherme Destefani <gd at helixbrasil dot com dot br>
- Cc: binutils <binutils at sources dot redhat dot com>
- Date: Thu, 08 Jul 2004 10:04:39 -0700
- Subject: Re: RFC and PATCH - Defining variables in the linker script withoutdefining them as symbols on the file
- References: <1089293120.1270.19.camel@smeagol.perkons.com.br>
Guilherme Destefani <gd@helixbrasil.com.br> writes:
> This patch add to the linker a command like PROVIDE(var=value), named
> TEMPORARY(var=value) that can be used to define variables just for
> temporary use, so those variables won't be sent to the file as a symbol.
Ooh, nifty. Would you please investigate adding the ability to set
these variables from the command line? The desired semantic is that
TEMPORARY(var=value) gets overriden by --some-switch var=value, but
whether or not that happens, /var/ is available for calculation in
the linker script. (--defsym symbols can't be used for arbitrary
calculation.)
zw