From: SourceForge.net <no...@so...> - 2012-06-20 13:34:10
|
Bugs item #3536431, was opened at 2012-06-19 15:42 Message generated for change (Comment added) made by blakeford You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3536431&group_id=599 Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: hc08 port Group: None Status: Open Resolution: None Priority: 5 Private: No Submitted By: Blake W. Ford (blakeford) Assigned to: Nobody/Anonymous (nobody) Summary: Simple HC08 program cannot be output to ELF Initial Comment: I really wanted to use the ELF format in my project, but I could not get a simple test working. int main() { return 0; } sdcc test.c -mhc08 --out-fmt-elf test.asm:99: Error: <o> .org in REL area or directive / mnemonic error test.asm:105: Error: <o> .org in REL area or directive / mnemonic error removing test.rel ---------------------------------------------------------------------- >Comment By: Blake W. Ford (blakeford) Date: 2012-06-20 06:34 Message: I'd like something binary as my final output format, and there are many existing tools to parse ELF files. I suppose I am not completely tied to the format, but my domain knowledge / desktop programming consistency is the real driver. ---------------------------------------------------------------------- Comment By: Maarten Brock (maartenbrock) Date: 2012-06-20 01:24 Message: Blake, Can you elaborate on that? What do you consider code bloat? And why do you prefer the ELF format if it is not for debugging info? Maarten ---------------------------------------------------------------------- Comment By: Blake W. Ford (blakeford) Date: 2012-06-19 21:12 Message: --debug does work. However the code bloat is a serious complication. ---------------------------------------------------------------------- Comment By: Lee Morrison (enigmalee) Date: 2012-06-19 16:16 Message: A bit of experimenting reveals that the sdas08 assembler does not like statement like: S(null)$main$4 ==. which only show up when the -out-fmt-elf option is present. You may try to add the "--debug" option before the -out-fmt-elf as a work-around. The above assembly lines are generated by hc08_emitDebuggerSymbol . Turning on --debug removes the "(null)" from the assembly code generated. Aside from that, both the assembly code and the assembler options (-plosgffw) match. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=3536431&group_id=599 |