I have a source file, converted it to assembly and added 2 instructions and generated the final elf. When I load this final elf, symbols doesnt match the source due to assembly instructions addition.
Is there a way to align them ? am using ARM cortex-M4 and cortex-M0. I have tried to edit #line in assembly file to make sure lines match with source code but that doesn't give a good alignment. Any ideas?
Hello,
I think you should put extra "#line" before the new instruction such as PUSH or POP.
The "#line" will reset the line number to the parameter of it.
Best regards,
Yasuhiko Koumoto.
Tried adding extra #line before inserted instructions but doesn't help.
It appears that generated assembly-object file doesn't have all the debug information as compared to object created from source. Any idea how they can be generated?
Here are the few things tried already
Compiler options: --debug --dwarf3 --debug_macros
Assembler options: --debug
Liner options: --bestdebug
--interleave doesn’t allow to reassemble the files.
can I ask your expectation?
As you say, the elf file includes many debug information.
What do you especially want?