Instead of producing a valid a.out file when using the -r commandline switch, it outputs a valid ELF file with the filename "a.out". The actual structure of a valid a.out file is COMPLETELY different from an ELF file. In fact, the compiled output produced with the -c commandline switch is IDENTICAL to the output produced with the -r commandline switch. The only difference is the filename. WIth -c, the output has the same file name as the source code, but with the file extension changed to ".o". With -r, the output always has the exact filename "a.out"
I consider this to be a bug in the software. There's only 2 ways to handle it that I can see. One, remove the -r commandline switch (in its current state it's completely useless), or two, make it actually output a valid a.out file. There is a third option, leave the buggy feature in place, but I beg you, please don't do that.
_______________________________________________ Tinycc-devel mailing list Tinycc-devel@nongnu.org https://lists.nongnu.org/mailman/listinfo/tinycc-devel