This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: objcopy interleave address bug ?
- From: Nick Clifton <nickc at redhat dot com>
- To: Galit Heller <Galit dot Heller at nsc dot com>
- Cc: binutils at sources dot redhat dot com
- Date: Fri, 02 Jan 2004 16:49:38 +0000
- Subject: Re: objcopy interleave address bug ?
- References: <3FE89E39.DC094C84@nsc.com><20031224003433.GA2628@bubble.sa.bigpond.net.au>
Hi Alan,
> Yes. Most people must start their ROMs at zero, otherwise I expect this
> issue would have already been raised. Or perhaps people have discovered
> that --change-section-lma works around the problem. That's not a nice
> solution since it requires you know the original section lma, but if I
> commit the following I'll change the behaviour for people who might
> currently use "objcopy --interleave=x --byte=y --change-section-lma=z".
> On the whole, I think the following is a desirable patch, but I'll leave
> committing it for a while to see if there are dissenting opinions.
>
> * objcopy.c (filter_bytes): Delete. Move code to..
> (copy_section): ..here. Simplify size adjustment. Divide
> section lma by interleave.
I do not think that anyone is going to object to this patch, so please
do apply it.
Cheers
Nick