ERROR from SDCC Linker - "?ASlink-Warning-Undefined Global 'null' referenced by module 'main'"
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-04 10:58 AM
$ sdcc -mstm8 --out-fmt-elf -o build/firmware.elf build/{main.rel,uart3.rel,misc.rel}
?ASlink-Warning-Undefined Global 'null' referenced by module 'main'
What is meaning?
Module "main.rel" was compile without errors/warning.stm8-gdb has segfault when i load this elf :(
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-04 12:29 PM
Perhaps you have some object dumping tools, or you can look for correlating data in the .MAP or .LST files.
>>Module "main.rel" was compile without errors/warning.
You understand that means Very Little, simply that the code appears syntactically correct, not that it is functionally correct, or sufficient to get closure in the linker.
Perhaps use bi-section techniques to isolate the portion of code involved, or the delta from the last code that compiled and linked properly.
Up vote any posts that you find helpful, it shows what's working..
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Email to a Friend
- Report Inappropriate Content
‎2022-05-05 12:27 AM
>Perhaps use bi-section techniques to isolate the portion of code involved, or the delta from the last code that compiled and linked properly.
yeah, i was figure out with it!
"static uint16_t tick=0"
using a static variable in the main loop broke the build project in ELF format
fixed it through replace to local variable. Thanks for answer!
