Are you talking about starting with a flat binary file and using objcopy
to create a .o
with that code as the .text
section? I'm not aware of a standard term for that, so pick something descriptive like "wrapping it in object-file metadata".
If you mean starting with asm source, then that's just part of assembling. So if you want to be specific, you'd say "assembling into an object file", instead of "assemble into a flat binary".
In fact, assembling into a flat binary basically involves linking if the machine code references any absolute addresses (like mov edi, symbol
in NASM syntax, for nasm -fbin
). Instead of just creating relocation entries for symbols, the assembler has to choose an absolute address as a reference point to figure out the absolute address of every label in the file. That's normally the linker's job.