jedisct1 / libsodium

A modern, portable, easy to use crypto library.
https://libsodium.org
Other
12.06k stars 1.72k forks source link

Build correctly with IBT and Shadow Stack #1289

Closed siddhesh closed 11 months ago

siddhesh commented 11 months ago

Add .gnu.property notes to indicate support for IBT and shadow stacks when libsodium is built with it. There's no stack switching code in here, so this should not need any other codegen changes.

Without this, the following build configuration fails:

./configure CFLAGS="-O2 -fcf-protection" LDFLAGS=-Wl,-z,cet-report=error

jedisct1 commented 11 months ago

Great!

Thank you Siddhesh!