intel / libvpl

Intel® Video Processing Library (Intel® VPL) API, dispatcher, and examples
https://intel.github.io/libvpl/
MIT License
262 stars 80 forks source link

Fix hardening flags #3

Closed onabiull closed 3 years ago

onabiull commented 3 years ago

RELRO options should appear in linker flags. Preferably in form:

target_link_options(VPL PRIVATE
  LINKER:--version-script=${CMAKE_CURRENT_SOURCE_DIR}/libVPL.map
  LINKER:--no-undefined,-z,relro,-z,now,-z,noexecstack
  -fstack-protector
  )
mav-intel commented 3 years ago

Hi.
These flags are being applied via cmake/CompileOptions.cmake You can verify that they are applied to the binaries by running hardening-check against the so