What is the difference between executable and relocatable in elf format?

前端 未结 4 1732
醉话见心
醉话见心 2021-02-01 20:33

What is the difference between executable file in elf format and relocatable file in elf format?

4条回答
  •  我在风中等你
    2021-02-01 21:19

    Relocatable doesn't have any Load address its only binary code sequence with offset (for example offset related to main() func). But,executable file having load address not just offset related to any of the function.

    one more fundamental difference between them is Executable have bootstrap application but relocatable doesn't have it.

提交回复
热议问题