Skip to content

crc_i386.S: mark stack as non-executable on ELF platforms#11

Open
trofi wants to merge 1 commit into
madler:masterfrom
trofi:noexec-stack-on-i386
Open

crc_i386.S: mark stack as non-executable on ELF platforms#11
trofi wants to merge 1 commit into
madler:masterfrom
trofi:noexec-stack-on-i386

Conversation

@trofi

@trofi trofi commented Sep 19, 2022

Copy link
Copy Markdown

Without the change binutils-2.39 flags the issue of executable stack due to missing explicit stack marking (usually inserted by gcc):

cc -o unzip  -Lbzip2 unzip.o crc32.o crc_gcc.o ... -s
ld: warning: crc_gcc.o: missing .note.GNU-stack section implies executable stack
ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

The change adds marking with define guards.

Without the change binutils-2.39 flags the issue of executable stack due
to missing explicit stack marking (usually inserted by gcc):

    cc -o unzip  -Lbzip2 unzip.o crc32.o crc_gcc.o ... -s
    ld: warning: crc_gcc.o: missing .note.GNU-stack section implies executable stack
    ld: NOTE: This behaviour is deprecated and will be removed in a future version of the linker

The change adds marking with define guards.
@trofi

trofi commented Nov 18, 2022

Copy link
Copy Markdown
Author

/cc @madler

1 similar comment
@trofi

trofi commented Oct 16, 2023

Copy link
Copy Markdown
Author

/cc @madler

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant