[riot-notifications] [RIOT-OS/RIOT] cpu/avr8_common: Fix link with binutils > 2.35.2 (#16790)

Gerson Fernando Budke notifications at github.com
Thu Sep 2 04:24:31 CEST 2021


Hi, I noted below from `/usr/lib/avr/lib/ldscripts/avrxmega7.x`. It'll be require some investigation yet, just to make sure we can live without it.

```diff
diff --git a/cpu/avr8_common/ldscripts/avr8.ld b/cpu/avr8_common/ldscripts/avr8.ld
index 0ac95e9505..bed30592ae 100644
--- a/cpu/avr8_common/ldscripts/avr8.ld
+++ b/cpu/avr8_common/ldscripts/avr8.ld
@@ -101,6 +101,10 @@ SECTIONS
     *libc.a:*(.progmem.data)
     *(.progmem.*)
     . = ALIGN(2);
+    /* For future tablejump instruction arrays for 3 byte pc devices.
+       We don't relax jump/call instructions within these sections.  */
+    *(.jumptables)
+     *(.jumptables*)
     /* For code that needs to reside in the lower 128k progmem.  */
     *(.lowtext)
     *(.lowtext*)
@@ -226,6 +230,10 @@ SECTIONS
   {
     KEEP(*(.signature*))
   }  > signature
+  .user_signatures  :
+  {
+    KEEP(*(.user_signatures*))
+  }  > user_signatures
   /* Stabs debugging sections.  */
   .stab 0 : { *(.stab) }
   .stabstr 0 : { *(.stabstr) }

```

-- 
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/RIOT-OS/RIOT/pull/16790#issuecomment-911051855
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210901/3e0312c5/attachment.htm>


More information about the notifications mailing list