Which version of FreeBSD a binary was compiled for?

David Kirchner dpk at dpk.net
Thu Oct 27 12:20:35 PDT 2005


On 10/27/05, Will Maier <willmaier at ml1.net> wrote:
> Must be -- some flag produces unique bits in the executables. I'm a
> little surprised there isn't (AFAICT) anything descriptive in
> file(1)'s manpage or /u/s/mi/magic that would explain the
> discrepancy. Didn't see anything in quick looks through gcc(1) or
> make(1), either.
>
> Weird.

It doesn't look like it's done in the magic file. Rather, it's
something built in to file itself. Check out around line 400 of
'readelf.c'.

This doesn't explain how it gets in to the binaries built, though.


More information about the freebsd-questions mailing list