gold: Place .note.gnu.property section before other note sections
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 25 Oct 2021 15:42:24 +0000 (08:42 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Tue, 26 Oct 2021 23:24:24 +0000 (16:24 -0700)
commitf85dcfc3af9cf7c2859241253f1d37b1133abea2
treee1ccd878a523c3cfd340abcd5b12e7f952acf8fa
parenta4b0231e179607e47b1cdf1fe15c5dc25e482fad
gold: Place .note.gnu.property section before other note sections

Place the .note.gnu.property section before all other note sections to
avoid being placed between other note sections with different alignments.

PR gold/28494
* layout.cc (Layout::create_note): Set order to ORDER_PROPERTY_NOTE
for the .note.gnu.property section.
* layout.h (Output_section_order): Add ORDER_PROPERTY_NOTE.
gold/layout.cc
gold/layout.h