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

Marian Buschsieweke notifications at github.com
Wed Sep 1 21:37:03 CEST 2021


> What is the linker script this is based on?

The one provided by binutils-avr 2.37-r of Alpine (I think binutils is build unpatched on Alpine):

```diff
$ diff /usr/avr/lib/ldscripts/avr6.xn avr8.ld 
--- /usr/avr/lib/ldscripts/avr6.xn
+++ avr8.ld
@@ -173,7 +173,9 @@
   {
      PROVIDE (__data_start = .) ;
     *(.data)
-     *(.data*)
+    *(.data*)
+    KEEP (*(SORT(.roxfa.*)))
+    KEEP (*(SORT(.xfa.*)))
     *(.gnu.linkonce.d*)
     *(.rodata)  /* We need to include .rodata here if gcc is used */
     *(.rodata*) /* with -fdata-sections.  */
```

-- 
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-910638743
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.riot-os.org/pipermail/notifications/attachments/20210901/ad0d17ce/attachment.htm>


More information about the notifications mailing list