Hi, Dmitry !

I think here is another one problem :).
The linker does not put values to the flash, even when I use @progbits.
Here is a little path I have made to the elf32msp430.sc:

I have change line
  .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :
to
  .noinit ${RELOCATING+ SIZEOF(.bss) + ADDR(.bss)} :  ${RELOCATING+AT (ADDR
(.text) + SIZEOF (.text) + SIZEOF (.data))}

Then I have rebuild binutils.
Now it works as I need :).

Thanks,
Oleg.

----- Original Message -----
From: "Dmitry" <di...@mail.ru>
To: <mspgcc-users@lists.sourceforge.net>
Sent: Tuesday, February 04, 2003 8:34 PM
Subject: Re: [Mspgcc-users] .noinit section problems


> Ok Oleg,
> Sorry for this mistake again.
>
> I posted a patch to binutils-current which defines some new constants:
> __XXX_what_rom (XXX = data|noinit, what = start|end) which point to the
ROM
> locations. Use them instead. So, this patched linker will appear hopfully
in
> a week in binutils tree. So, pull it from there and rebuild.
>
> The patch is below.
> If you do not want to wait, add the following lines to _all_ (sorry :)
linker
> scripts and have fun  (at the bottom before closing '}'):
>    PROVIDE (__data_start_rom = _etext) ;
>    PROVIDE (__data_end_rom   = _etext + SIZEOF (.data)) ;
>    PROVIDE (__noinit_start_rom = _etext + SIZEOF (.data)) ;
>    PROVIDE (__noinit_end_rom = _etext + SIZEOF (.data) + SIZEOF (.noinit))
;
>
> cheers,
> ~d
>


Reply via email to