On Mon, Aug 29, 2011 at 5:44 PM, Diane Gagne <di...@hartmantech.com> wrote:
> Hello
>
> I am in the process of porting a program from mspgcc4 to the new mspgcc
> compiler.  One section of my program had configuration files stored
> within the infomemnobits section using the line:
>
> uint16_t __attribute__ ((section("infomemnobits"))) cal;
>
> Simply changing the "infomemnobits" to "infod" is not enough to port it
> as I still need the nobits part.
>
> There was mention last year on the mailing list that that would become a
> separate attribute, but I can see no reference of how I would use it.

This was resolved in
https://sourceforge.net/tracker/?func=detail&aid=3397068&group_id=42303&atid=432701,
which is available on the current development branch based on gcc
4.6.x, but will not be back-ported to LTS 20110716.  On that branch,
you would use a section named "infod.bss" where the suffix .bss
indicates the memory should not be written.  That worked during
testing, however, I have not prepared a release incorporating the new
enhancements on that branch, as they're going to be pretty unstable
for a while.

The infomemnobits section disappeared from the linker script template
unintentionally back in February (it's still present in the compiler).
 Since this is a regression, I can create a patch for the 20110716 LTS
release that puts it back.

Note that you can't mix infomem and infomemnobits, while in the new
model you could make infob have compiled-in initial data and infod be
noinit (but, again, you could not mix infod with infod.bss).  The next
release will also provide the addresses and size of the valid info
sections in <sys/crtld.h>.

Peter

> Thanks, Diane
>
>
> ------------------------------------------------------------------------------
> Special Offer -- Download ArcSight Logger for FREE!
> Finally, a world-class log management solution at an even better
> price-free! And you'll get a free "Love Thy Logs" t-shirt when you
> download Logger. Secure your free ArcSight Logger TODAY!
> http://p.sf.net/sfu/arcsisghtdev2dev
> _______________________________________________
> Mspgcc-users mailing list
> Mspgcc-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/mspgcc-users
>

------------------------------------------------------------------------------
Special Offer -- Download ArcSight Logger for FREE!
Finally, a world-class log management solution at an even better 
price-free! And you'll get a free "Love Thy Logs" t-shirt when you
download Logger. Secure your free ArcSight Logger TODAY!
http://p.sf.net/sfu/arcsisghtdev2dev
_______________________________________________
Mspgcc-users mailing list
Mspgcc-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mspgcc-users

Reply via email to