Skip to content

x86: Discard .note.gnu.property sections

H.J. Lu lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest2 patches 7 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/2x86: Discard .note.gnu.property sections in vDSOarch/x86/entry/vdso/vdso-layout.lds.S+4 -00 replies
2/2x86: Discard .note.gnu.property sections in vmlinuxarch/x86/kernel/vmlinux.lds.S+11 -09 replies

Reviews trailers per patch

No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.

Read the v1 thread

Cover letter [PATCH 0/2] x86: Discard .note.gnu.property sections

With the command-line option, -mx86-used-note=yes, the x86 assembler in binutils 2.32 and above generates a program property note in a note section, .note.gnu.property, to encode used x86 ISAs and features. But x86 kernel vmlinux and vDSO linker scripts only contain a signle NOTE segment which may not be incompatible with note.gnu.property sections. Since note.gnu.property section from kernel are unused, they should be discarded by adding

/DISCARD/ : {
*(.note.gnu.property)
}

before .notes sections.

H.J. Lu (2):
x86: Discard .note.gnu.property sections in vDSO
x86: Discard .note.gnu.property sections in vmlinux

 arch/x86/entry/vdso/vdso-layout.lds.S |  4 ++++
 arch/x86/kernel/vmlinux.lds.S         | 11 +++++++++++
 2 files changed, 15 insertions(+)
Signature · 1 line
2.24.1