This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: RFC and PATCH - Defining variables in the linker script withoutdefining them as symbols on the file


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]