Skip to content

Conversation

@PhDittmann
Copy link

@PhDittmann PhDittmann commented Oct 13, 2023

Fix macOS build #27.

.section .note.GNU-stack, "", @progbits, to make the stack not executable, is not compatible with Apple. The common way I found is checking for __ELF__.

Signed-off-by: Philipp Dittmann <dittmann@cs.uni-bremen.de>
@PhDittmann PhDittmann requested a review from mjeronimo as a code owner October 13, 2023 20:46
PhDittmann referenced this pull request Oct 13, 2023
Newer versions of binutils (2.39 and above) complain
if you have assembly without explicitly marking that
it is not using an executable stack (see
https://www.redhat.com/en/blog/linkers-warnings-about-executable-stacks-and-segments
for more details).  Mark it here to quiet that warning.

Signed-off-by: Chris Lalancette <clalancette@gmail.com>
@clalancette clalancette self-assigned this Nov 2, 2023
Copy link

@clalancette clalancette left a comment

Choose a reason for hiding this comment

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

Thanks! I'll run CI on this and see how it goes.

@clalancette
Copy link

CI:

  • Linux Build Status
  • Linux-aarch64 Build Status
  • Windows Build Status

@tfoote
Copy link

tfoote commented Nov 3, 2023

This would be good to go upstream into Snaipe#38 as well.

@clalancette
Copy link

This would be good to go upstream into Snaipe#38 as well.

Good call. Done in Snaipe@77dd9e6

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.

3 participants