gcc - Determine if compiled ELF object is 32-bit or 64-bit -


i want verify if object has been compiled in 32-bit or 64-bit:

% readelf -h my_obj elf header:   magic:   7f 45 4c 46 01 02 01 00 00 00 00 00 00 00 00 00    class:                             elf32   data:                              2's complement, big endian   version:                           1 (current)   os/abi:                            unix - system v   abi version:                       0   type:                              exec (executable file)   ... 

since elf32 displayed, guarantee object in 32-bit mode?

fat binaries aren't common or standard elf, class reliably indicate 32 vs 64 bit. figure out whether you're looking @ 32-bit x86, arm, mips, or whatever, have inspect machine field right below type field.


Comments

Popular posts from this blog

javascript - AngularJS custom datepicker directive -

javascript - jQuery date picker - Disable dates after the selection from the first date picker -