From: msquirogac Date: Sat, 23 May 2020 01:38:51 +0000 (-0400) Subject: used attribute for _MMCU_ , should avoid dropping the .mmcu section X-Git-Tag: v1.7~24^2 X-Git-Url: https://git.htl-mechatronik.at/public/?a=commitdiff_plain;h=ba6a1332038e96b3923672697159220b0100eb7f;p=sx%2Fsimavr.git used attribute for _MMCU_ , should avoid dropping the .mmcu section Fix for issue #285 --- diff --git a/simavr/sim/avr/avr_mcu_section.h b/simavr/sim/avr/avr_mcu_section.h index ebeceb0..3deae7b 100644 --- a/simavr/sim/avr/avr_mcu_section.h +++ b/simavr/sim/avr/avr_mcu_section.h @@ -80,7 +80,7 @@ enum { * So the new method declares the string as fixed size, and the parser * is forced to skip the zeroes in padding. Dumbo. */ -#define _MMCU_ __attribute__((section(".mmcu"))) +#define _MMCU_ __attribute__((section(".mmcu"))) __attribute__((used)) struct avr_mmcu_long_t { uint8_t tag; uint8_t len;