Hacker News new | past | comments | ask | show | jobs | submit login

> even if compilers directly don't interact with them

Essentially they do as they put directives into the asm files to put things in specific sections, to define certain symbol visibility etc all of which depend on the object file format (e.g. a classic BSD a.out file, using a format I called “a.out” in BFD, can’t represent most of that). So the compiler does need to know. And the assembler absolutely needs to know since it generates object files!

So yes an a.out file can be an ELF file (always is on Linux) or could be an “a.out” file. Sorry! In retrospect I should have called that format “bsd”.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: