elf parser seems not working properly
After loading the elf file variables are detected incorrect (wrong address an/or size)
Two examples with output of readelf
1) used in *.c file:
uint8_t counter_error_handler __attribute__((section(".internal_ram")));
> readelf Bluepill_USB_CDC.elf -s |grep error
1374: 20002e28 1 OBJECT GLOBAL DEFAULT 9 counter_error_handler2) used in *.cpp file:
static uint16_t blink_period;
> readelf Bluepill_USB_CDC.elf -a |grep blink
389: 2000052c 2 OBJECT LOCAL DEFAULT 8 _ZL12blink_periodin STM32CubeMonitor these variables are listed with incorrect address and size (blink_period) and incorrect address (counter_error_handler)
Is this an issue of using a c/cpp project ?
