avr-libc-dev
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [avr-libc-dev] Export fuse memory size as a symbol


From: Joerg Wunsch
Subject: Re: [avr-libc-dev] Export fuse memory size as a symbol
Date: Wed, 16 Mar 2016 23:25:10 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

As Senthil Kumar Selvaraj wrote:

> For starters, the below patch defines __FUSE_REGION_LENGTH__ as a weak
> symbol.
> 
> diff --git avr-libc/crt1/gcrt1.S avr-libc/crt1/gcrt1.S
> index 561d4f8..b2f482b 100644
> --- avr-libc/crt1/gcrt1.S
> +++ avr-libc/crt1/gcrt1.S
> @@ -390,3 +390,8 @@ __do_copy_data:
>  .L__desc_end:
>      .balign 4
>  
> +  /* Set length symbol values - this linker script
> +  and the linker use these to detect size overflows.
> +  */
> +  .weak __FUSE_REGION_LENGTH__
> +  .set __FUSE_REGION_LENGTH__, FUSE_MEMORY_SIZE
> 
> Is this ok?

Looks good (and useful) to me.

-- 
cheers, Joerg               .-.-.   --... ...--   -.. .  DL8DTL

http://www.sax.de/~joerg/
Never trust an operating system you don't have sources for. ;-)



reply via email to

[Prev in Thread] Current Thread [Next in Thread]