4

Today I saw a command line option in the output of otool (this is a MacOS X program, offering similar functionality as objdump) that is named:

-f -- print the fat headers

So, what are the fat headers ?

I tried to Google 'fat headers' and 'fat headers elf' but didn't find anything useful.

perror
  • 19,083
  • 29
  • 87
  • 150
PaulD
  • 433
  • 1
  • 4
  • 10

1 Answers1

7

A fat header is the header of a fat binary.

See pages 67-68 in Mac OS X Internals:

Note that a fat binary is essentially a wrapper—a simple archive that concatenates Mach-O files for multiple architectures. A fat binary begins with a fat header (struct fat_header) that contains a magic number followed by an integral value representing the number of architectures whose binaries reside in the fat binary.

...

fat header

Jason Geffner
  • 20,681
  • 1
  • 36
  • 75