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: A section is missing in S-Record


On Wed, Dec 18, 2002 at 12:21:41PM +0100, Torsten Mohr wrote:
> Hi,
> 
> > If qwe.elf isn't too big, gzip it and post it here so someone can
> > take a look.
> 
> yes, the whole project isn't that big, here it is as a bzip2'ed
> tar archive.

You almost had your makefile hack right.  Try changing

$(PROJ).srec: $(PROJ).elf Makefile
        $(OC) -O srec --srec-forceS3 --set-section-flags .vectors=load $< $@

to

$(PROJ).srec: $(PROJ).elf Makefile
        $(OC) -O srec --srec-forceS3 --set-section-flags .vectors=load,alloc $< $@

Alternatively, use

	.section .vectors,"a",@progbits

in your assembler source to make your ".vectors" section load and alloc.

-- 
Alan Modra
IBM OzLabs - Linux Technology Centre


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