microsoft / jacdac-stm32x0

Jacdac implementation for STM32F0 and similar
MIT License
11 stars 10 forks source link

fixup compiler issue with RAM_FUNC macro #44

Closed jamesadevine closed 2 years ago

jamesadevine commented 2 years ago

section references in the attribute must now append a # to the location

see: https://gcc.gnu.org/legacy-ml/gcc-help/2010-09/msg00088.html

jamesadevine commented 2 years ago

this is with:

arm-none-eabi-gcc (GNU Arm Embedded Toolchain 10.3-2021.07) 10.3.1 20210621 (release)

Without the above patch, the following error is generated:

/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s: Assembler messages:
/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s:15: Warning: ignoring changed section attributes for .data
/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s:28: Warning: dwarf line number information for .data ignored
/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s:33: Warning: dwarf line number information for .data ignored
/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s:44: Warning: dwarf line number information for .data ignored
/var/folders/3z/1y09kb294wj5jcyqh09x0th00000gn/T//ccQq0fkA.s:1127: Error: leb128 operand is an undefined symbol: .LVU2
make[1]: *** [built/swd-mux-test-74-0.1/bl/jacdac-stm32x0/bl/blutils.o] Error 1