This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: division in ld scripts
- From: Ian Lance Taylor <iant at google dot com>
- To: "Jan Beulich" <JBeulich at novell dot com>
- Cc: <binutils at sourceware dot org>
- Date: Wed, 09 Sep 2009 07:48:16 -0700
- Subject: Re: division in ld scripts
- References: <4AA7CBF202000078000141F9@vpn.id2.novell.com>
"Jan Beulich" <JBeulich@novell.com> writes:
> Is it known/intended/documented that using the division operator (/) in
> ld scripts requires a blank to follow, at least in some cases (see below)?
> All other operators seem to behave as expected (apart from the missing
> but unlikely to be needed ^), while / results in a "syntax error" failure.
The linker language is kind of a mess. The problem here is that '/' can
appear in a file name, so the whole string gets picked up as a file name
rather than a number. I think it would be pretty hard to change without
breaking existing scripts.
Ian