How to make compiler generate a “elf32-x86-64” format object file?

后端 未结 1 1541
北海茫月
北海茫月 2021-01-16 13:45

First, some background info about elf32-x86-64 format.

It is a format that leverages 64-bit hardware while enforcing 32-bit pointers. Ref1 and Ref2.

Quest

相关标签:
1条回答
  • 2021-01-16 14:19

    GCC will adjust the linker command line accordingly if you invoke it as gcc -mx32. It is more than just a compiler flag.

    0 讨论(0)
提交回复
热议问题