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

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

[avr-libc-commit] [2519] Define weak symbols for known memory region siz


From: Senthil Kumar Selvaraj
Subject: [avr-libc-commit] [2519] Define weak symbols for known memory region sizes based on device header definitions , starting withthe fuse region
Date: Thu, 17 Mar 2016 12:11:50 +0000

Revision: 2519
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2519
Author:   saaadhu
Date:     2016-03-17 12:11:50 +0000 (Thu, 17 Mar 2016)
Log Message:
-----------
Define weak symbols for known memory region sizes based on device header 
definitions, starting withthe fuse region

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/NEWS
    trunk/avr-libc/crt1/gcrt1.S

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2016-02-09 07:27:06 UTC (rev 2518)
+++ trunk/avr-libc/ChangeLog    2016-03-17 12:11:50 UTC (rev 2519)
@@ -1,3 +1,7 @@
+2016-03-17  Senthil Kumar Selvaraj <address@hidden>
+
+       * crt1/gcrt1.S: Weakly define __FUSE_REGION_LENGTH__.
+
 2016-02-08  Joerg Wunsch <address@hidden>
 
        * configure.ac: Post-release 2.0.0.

Modified: trunk/avr-libc/NEWS
===================================================================
--- trunk/avr-libc/NEWS 2016-02-09 07:27:06 UTC (rev 2518)
+++ trunk/avr-libc/NEWS 2016-03-17 12:11:50 UTC (rev 2519)
@@ -6,6 +6,9 @@
 
 * Contributed Patches:
 
+  [no-id] Define weak symbols for known memory region sizes based on device 
+  header definitions, starting with fuse region.
+
 * Other changes:
 
 

Modified: trunk/avr-libc/crt1/gcrt1.S
===================================================================
--- trunk/avr-libc/crt1/gcrt1.S 2016-02-09 07:27:06 UTC (rev 2518)
+++ trunk/avr-libc/crt1/gcrt1.S 2016-03-17 12:11:50 UTC (rev 2519)
@@ -372,3 +372,12 @@
 .L__desc_end:
     .balign 4
 
+  /* Set REGION_LENGTH symbol values for well known memory regions.
+  The default linker script uses these symbols to set MEMORY 
+  region lengths, and by defining these here, the linker can detect
+  memory overflows accurately on a per device basis, since the 
+  values are picked up from the device header file.
+  */
+
+  .weak __FUSE_REGION_LENGTH__
+  .set __FUSE_REGION_LENGTH__, FUSE_MEMORY_SIZE




reply via email to

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