Does not support note.gnu.property
Task Info (Flyspray) | |
---|---|
Opened By | loqs (loqs) |
Task ID | 79920 |
Type | Bug Report |
Project | Arch Linux |
Category | Packages: Extra |
Version | None |
OS | All |
Opened | 2023-10-11 20:43:38 UTC |
Status | Assigned |
Assignee | Levente Polyak (anthraxx) |
Details
Description: yasm does not support note.gnu.property which is required for CET (shadow stack and indirect branch tracking) support [1]. Fixed upstream in [2] which applies cleanly. Without this support even if projects add the required support in their assembly files the assembler will drop it.
Additional info:
- yasm 1.3.0-6 [1] https://github.com/yasm/yasm/pull/148 [2] https://github.com/yasm/yasm/commit/0799f381d513e18f404654047fa1b412084968c8
Steps to reproduce: Build libjpeg-turbo with libjpeg-turbo-shstk.patch [3] applied. Note the readelf output: readelf -n /usr/lib/libjpeg.so.8.3.2
Displaying notes found in: .note.gnu.property Owner Data size Description GNU 0x00000010 NT_GNU_PROPERTY_TYPE_0 Properties: x86 feature: SHSTK
Replace nasm with yasm in makedepends and rebuild. Note the readelf output no longer contains .note.gnu.property. Rebuild with the patched yasm and the .note.gnu.property is present.