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

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

[avr-libc-commit] [2296] Mark __signature as "used"


From: Joerg Wunsch
Subject: [avr-libc-commit] [2296] Mark __signature as "used"
Date: Tue, 19 Jun 2012 06:53:00 +0000

Revision: 2296
          http://svn.sv.gnu.org/viewvc/?view=rev&root=avr-libc&revision=2296
Author:   joerg_wunsch
Date:     2012-06-19 06:52:59 +0000 (Tue, 19 Jun 2012)
Log Message:
-----------
Mark __signature as "used"
so the linker won't throw it away.

Modified Paths:
--------------
    trunk/avr-libc/ChangeLog
    trunk/avr-libc/include/avr/signature.h

Modified: trunk/avr-libc/ChangeLog
===================================================================
--- trunk/avr-libc/ChangeLog    2012-06-10 18:35:57 UTC (rev 2295)
+++ trunk/avr-libc/ChangeLog    2012-06-19 06:52:59 UTC (rev 2296)
@@ -1,3 +1,8 @@
+2012-06-19  Joerg Wunsch <address@hidden>
+
+       * include/avr/signature.h (__signature): mark as "used"
+       so the linker won't throw it away
+
 2012-06-10  Joerg Wunsch <address@hidden>
 
        Reported by Itai Nahshon:

Modified: trunk/avr-libc/include/avr/signature.h
===================================================================
--- trunk/avr-libc/include/avr/signature.h      2012-06-10 18:35:57 UTC (rev 
2295)
+++ trunk/avr-libc/include/avr/signature.h      2012-06-19 06:52:59 UTC (rev 
2296)
@@ -74,7 +74,8 @@
 
 #if defined(SIGNATURE_0) && defined(SIGNATURE_1) && defined(SIGNATURE_2)
 
-const unsigned char __signature[3] __attribute__((section (".signature"))) =
+const unsigned char __signature[3]
+__attribute__((__used__, __section__(".signature"))) =
         { SIGNATURE_2, SIGNATURE_1, SIGNATURE_0 };
 
 #endif  /* defined(SIGNATURE_0) && defined(SIGNATURE_1) && 
defined(SIGNATURE_2) */




reply via email to

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