What is Object file?
The file a compiler produces from one source file. It contains machine code, initial data, a symbol table and relocation entries, but addresses in other files are unresolved, so it cannot run until linked.
The file a compiler produces from one source file. It contains machine code, initial data, a symbol table and relocation entries, but addresses in other files are unresolved, so it cannot run until linked.
An object file holds the machine code translated from that file's functions, initial values of variables, a list of names it defines and references (the symbol table) and a list of places whose addresses must be filled in later (relocation entries).
Which statement is correct about the object file (.o) a com…A C source file is first translated by the compiler into assembly language close to machine code (or directly into an object file), then the assembler turns it into a machine-code object file.
What is the usual sequence for producing an executable from…But at link time, if no object file or library defining foo is found, the address for the call cannot be determined, and this error appears.
Linking a C program gives "undefined reference to `foo'". W…Linker Relocation Symbol table Static library Dynamic linking Procedure linkage table (PLT) Dynamic linker Assembler Address space layout randomization (ASLR) BSS section