Are object files platform independent?

后端 未结 9 786
走了就别回头了
走了就别回头了 2020-12-24 02:15

Is it possible to compile program on one platform and link with other ? What does object file contain ? Can we delink an executable to produce object file ?

9条回答
  •  滥情空心
    2020-12-24 02:49

    They are platform dependent. For example file-command prints out following:

    $ file foo.o
    foo.o: ELF 64-bit LSB relocatable, x86-64, version 1 (SYSV), not stripped
    

提交回复
热议问题