x86: Check PT_GNU_PROPERTY early
authorH.J. Lu <hjl.tools@gmail.com>
Thu, 7 Dec 2023 21:05:39 +0000 (13:05 -0800)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Dec 2023 19:05:46 +0000 (11:05 -0800)
commit4753e9286858a61d5fbe8742d48d8c9166143354
treef50fd83ef6348da899f909c1ca1ff699f1a261c2
parent7e03e0de7e7c2de975b5c5e18f5a4b0c75816674
x86: Check PT_GNU_PROPERTY early

The PT_GNU_PROPERTY segment is scanned before PT_NOTE.  For binaries
with the PT_GNU_PROPERTY segment, we can check it to avoid scan of
the PT_NOTE segment.
Reviewed-by: Noah Goldstein <goldstein.w.n@gmail.com>
sysdeps/x86/dl-prop.h