From ba6a1332038e96b3923672697159220b0100eb7f Mon Sep 17 00:00:00 2001 From: msquirogac Date: Fri, 22 May 2020 21:38:51 -0400 Subject: [PATCH] used attribute for _MMCU_ , should avoid dropping the .mmcu section Fix for issue #285 --- simavr/sim/avr/avr_mcu_section.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.39.5