Files
nvdriver/docs
arabek 4bec328edf Gate the endbr64 relocation rule to x86_64 objects
PR #10 review comment 4741785482: the endbr64 + zero-addend pass condition
applied to every object without reading the ELF machine type. AArch64 function
entries do not start with endbr64, so a data relocation to a function in an
ARM64 object fails the gate and make modules exits non-zero on ARM64 hosts -
the aarch64 build path in utils.mk is unchanged by this PR, so the failure is
new in the PR.

Read the e_machine field via readelf -h and enforce the endbr64 + zero-addend
rule only for x86_64 objects; every other check stays active on ARM64. The
report carries elf_machine. Proven: current x86 object unchanged, gate green;
synthetic AArch64 object with a data relocation to a non-endbr entry passes
gated and fails when x86 enforcement is forced on the same object.
2026-11-30 17:39:55 +01:00
..