Several .S files for accelerating BLAKE3 have directives to add
.note.GNU-stack sections on Linux, to signal a non-executable stack.
Enable these for FreeBSD too.
Details
Details
Diff Detail
Diff Detail
- Repository
- rG LLVM Github Monorepo
Event Timeline
Comment Actions
lld ignores input sections .note.GNU-stack and just default to non-executable PT_GNU_STACK. I think this is the direction for GNU ld, too.
Therefore I think this is unneeded. If you still want to do it, updating the upstream first is the right direction.
Comment Actions
I got the same sort of change in upstream liblzma, https://git.tukaani.org/?p=xz.git;a=commit;h=865e0a3689a25a7ee8eecae1a34c1775e3aa676e
Comment Actions
Request changes with aforementioned reasons.
If FreeBSD still uses binutils somehow, you may change it to ignore .note.GNU-stack. This section is mostly not really used at this point.
binutils is moving toward this goal too https://sourceware.org/bugzilla/show_bug.cgi?id=29072#c9