Re: Off-by-one error in ld documentation

2015-09-11 Thread Mark Rages
On Tue, Sep 8, 2015 at 2:40 AM, Nick Clifton wrote: > Hi Hans-Peter, > >> Nicely, thanks. While there's a point in keeping just one >> version for simplicity, the educational point of "here's what >> you may write which doesn't work, here's the semantically >> corrected code, and this is what you

Off-by-one error in ld documentation

2015-09-03 Thread Mark Rages
In ld/ld.texinfo, the following example code is offered: > start_of_ROM = .ROM; > end_of_ROM = .ROM + sizeof (.ROM) - 1; > start_of_FLASH = .FLASH; > > Then the C source code to perform the copy would be: > > extern char start_of_ROM, end_of_ROM, start_of_FLASH; > > memcpy (& start_of_F