This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: LD scripts - using expressions correctly
- From: Alan Modra <amodra at gmail dot com>
- To: David Paterson <dnpaterson at gmail dot com>
- Cc: binutils at sourceware dot org
- Date: Tue, 8 Jul 2014 00:06:45 +0930
- Subject: Re: LD scripts - using expressions correctly
- Authentication-results: sourceware.org; auth=none
- References: <CAM1kHc0THfgon+8dJz7i3DXwZvwChZDjkkkK1-42=5ipYG1fYA at mail dot gmail dot com> <20140707135622 dot GG8039 at bubble dot grove dot modra dot org> <CAM1kHc3zDUTLxZcZxL=QMCgf=XM4N8o9yCCDONdMRx8GSY17Xw at mail dot gmail dot com>
On Mon, Jul 07, 2014 at 03:06:45PM +0100, David Paterson wrote:
> I should have mentioned I'm using 2.24, but I'll pull the latest
> version from GIT and try that.
If mainline works for you, then I expect fa72205c was the patch that
fixed your trouble. Which also means you can work around this by
replacing:
_textVMA = (_exec_rom > 0) ? _textLMA : _ram_start;
_textVMA += _textoffset;
with:
_textVMA = ((_exec_rom > 0) ? _textLMA : _ram_start) + _textoffset;
--
Alan Modra
Australia Development Lab, IBM