calculus of PT_NOTE "for GNU/Linux 2.6.32"
Bruno Wolff III
bruno at wolff.to
Mon Sep 20 20:31:24 UTC 2010
On Mon, Sep 20, 2010 at 11:41:31 -0700,
John Reiser <jreiser at bitwagon.com> wrote:
> Executable program files built by gcc+glibc on Fedora 14 contain a PT_NOTE
> which says "for GNU/Linux 2.6.32". (For example, see "file /bin/date";
> the presence of a NOTE is indicated by "readelf --segments /bin/date",
> but readelf does not display the contents.) What does the PT_NOTE mean;
> what program cares about this value?
I expect this is the lowest version kernel you can be running executable
programs on with this combination of gcc and glibc.
> The /bin/date of Fedora 14 does run on Fedora 11 which is only Linux 2.6.30.
> So there is no harm in this case, despite "not meeting the requirement." Why?
Not that you noticed, but potentially there could have been registers
clobbered that you didn't notice or similar things.
> If the requirement really is something less than Linux 2.6.32,
> then why not note the minimum kernel version that is required?
> How far back on previous Fedora releases can the /bin/date (and/or anything
> else built by gcc+glibc on Fedora 14) run successfully? What does this mean
> for builders who want to build on Fedora 14 and distribute the binary
> executable program files to run on other systems?
They probably shouldn't be doing that.
More information about the devel