~mirabilos/klibc/master

Viewing all changes in revision 2201.

  • Committer: Ben Hutchings
  • Date: 2022-08-03 22:45:26 UTC
  • Revision ID: git-v1:2acbe15d7a8093cfa295aadc56707892e87a7eaf
[klibc] Kbuild: Properly disable executable stacks in static builds

I typo'd the variable name KLIBCSTACKFLAGS in the value of
KLIBCCFLAGS, leaving the stack executable in statically linked
executables.  Fix that.

Executables using a shared library did not have this problem, unless
they included assembly language sources.  C compilers generate the
no-executable-stack header by default, and the interpreter definition
that's statically linked into such executables was built with a
correctly spelt KLIBCSTACKFLAGS as an extra option.

Fixes: c562319cdba0 ("[klibc] Kbuild: Add a per-architecture option to ...")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: