Skip to content

Refactor SHADOW_STACK_SYSCALL check - #14575

Merged
petk merged 1 commit into
php:masterfrom
petk:patch-SHADOW_STACK_SYSCALL
Jun 15, 2024
Merged

petk merged 1 commit into
php:masterfrom
petk:patch-SHADOW_STACK_SYSCALL

Conversation

@petk

@petk petk commented Jun 15, 2024

Copy link
Copy Markdown
Member

This fixes -Wundef warnings present where SHADOW_STACK_SYSCALL should be defined to value 0 and refactors the check with cache variable php_cv_have_shadow_stack_syscall. The SHADOW_STACK_SYSCALL CPP macro definition is removed from php_config.h in favor of a compilation definition on asm files and Zend engine files.

This fixes -Wundef warnings present where SHADOW_STACK_SYSCALL should
be defined to value 0 and refactors the check with cache variable
php_cv_have_shadow_stack_syscall. The SHADOW_STACK_SYSCALL CPP macro
definition is removed from php_config.h in favor of a compilation
definition on asm files and Zend engine files.

@arnaud-lb arnaud-lb left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

Related: #14027

@petk
petk merged commit ca5952a into php:master Jun 15, 2024
@petk

petk commented Jun 15, 2024

Copy link
Copy Markdown
Member Author

Ok, thanks for the review. I've merged this one and then only that configure.ac part needs to be rebased a bit in the above PR. If further adjustments are needed let me know.

@petk
petk deleted the patch-SHADOW_STACK_SYSCALL branch June 15, 2024 15:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants