From: SourceForge.net <no...@so...> - 2009-09-20 12:59:38
|
Bugs item #2819835, was opened at 2009-07-10 22:53 Message generated for change (Settings changed) made by spth You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2819835&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: z80 port Group: None >Status: Closed >Resolution: Fixed Priority: 5 Private: No Submitted By: Alistair Buxton (ajbuxton) >Assigned to: Philipp Krause (spth) Summary: SDCC deletes linker output when name does not match first .o Initial Comment: When linking z80 .o files, SDCC produces no output if the output file name given with -o does not match the name of the first module (with suffixes removed.) For example, this will work: sdcc -mz80 -o a.ihx a.o b.o While this will fail, for the same .o files: sdcc -mz80 -o output.ihx a.o b.o Using strace it can be seen that the linker correctly produces the ihx file, but sdcc subsequently deletes it because it expects the linker to produce a file named after the first module, and assumes the output of link-z80 is an old file. So this is what strace sees in the first working example: rename("a.ihx", "a.ihx") = 0 And in the none working example this happens: unlink("output.ihx") = 0 rename("a.ihx", "output.ihx") = -1 ENOENT (No such file or directory) ---------------------------------------------------------------------- >Comment By: Philipp Krause (spth) Date: 2009-09-20 14:59 Message: Fixed in #5518 using patch #2853488. ---------------------------------------------------------------------- Comment By: Alistair Buxton (ajbuxton) Date: 2009-07-11 00:03 Message: Forgot to mention: I have tested against 2.8.0, 2.9.0 and latest SVN version: SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 2.9.1 #5472 (Jul 10 2009) (UNIX) ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=100599&aid=2819835&group_id=599 |