added pie flag and signal suppressions

Signed-off-by: Pratik Mankawde <pmankawde@ripple.com>
This commit is contained in:
Pratik Mankawde
2025-11-19 10:42:23 +00:00
parent 2610e653d6
commit cb982e7a8a
2 changed files with 6 additions and 2 deletions

View File

@@ -170,8 +170,8 @@ def generate_strategy_matrix(all: bool, config: Config) -> list:
# This is needed because sanitizers create very large binaries
# -fPIC enables position independent code to avoid relocation range issues
# large model removes the 2GB limitation that medium model has
cxx_flags += ' -mcmodel=large -fPIC'
linker_relocation_flags+=' -mcmodel=large -fPIC'
cxx_flags += ' -mcmodel=large -fPIC -pie'
linker_relocation_flags+=' -mcmodel=large -fPIC -pie'
# Create default sanitizer flags
sanitizers_flags = 'undefined,float-divide-by-zero'