Search code examples
linuxgccg++unix-ar

How do I tell `gar` or `ar` to output `elf32-i386` output?


When I look at the help output from gar -h, it tells me:

[...] 
gar: supported targets: elf64-x86-64 elf32-i386 a.out-i386-linux [...]

How can I instruct gar to create an elf32-i386 output?


Solution

  • The output type will be the same as the inputs. So if you want elf32-i386 output you need to give it elf32-i386 input files