New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Located sections are ignored by simavr #484
Comments
A probable work-round would be to convert the ELF file to ihex and load that. That does lose debug symbols. The problem sounds similar to #462, with the same cause: simavr does not really follow the ELF spec. |
Thank your for response. Your statement in #462 ...
... seems to be true, which is definitely a failure in simavr. In my project I build now in different ways. One variant for hardware target and one variant for simulation (without modification of default section configuration). That's my work-arround at the moment. |
… than the Section Table. Fixes upstream buserror#484 "Located sections are ignored by simavr".
… than the Section Table. Fixes upstream buserror#484 "Located sections are ignored by simavr".
For a project with an Atmega324P I use special sections to ensure that some code is located on desired addresses. Works fine on real target, but these sections are not loaded proper in simavr.
Any idea what is going wrong and how to solve this problem?
To reproduce this problem I use an Ubuntu system with avr-gcc (5.4.0), avr-gdb (10.1.90.20210103-git) and simavr (1.6+dfsg-3).
main.c
.app
to0x7100
Disassemble elf-file with
avr-objdump -d main.elf
0x7100
Start in another shell avr-gdb with
avr-gdb main.elf
.Then execute the following commands on gdb console:
target remote localhost:1234
x/20b 0x7100
As you can see, the memory locations starting with
0x7100
are cleared (=0xff
) instead of showing the same content as in disassembly view. Symbols likemain
are shown as desired.The text was updated successfully, but these errors were encountered: