Skip to content

Commit

Permalink
Another attempt to add -z execstack to MIPS scudo
Browse files Browse the repository at this point in the history
  • Loading branch information
thurstond committed Jan 24, 2025
1 parent e203bf8 commit ccad783
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions zorg/buildbot/builders/sanitizers/buildbot_qemu.sh
Original file line number Diff line number Diff line change
Expand Up @@ -190,12 +190,12 @@ function configure_scudo_compiler_rt {
fi

local linker_flags=
[[ "${arch}" =~ "mips*" ]] && linker_flags="-latomic -Wl,-z,notext -Wno-unused-command-line-argument"

local c_flags=
[[ "${arch}" =~ "mips*" ]] && c_flags="-Wl,-z,execstack"
c_flags="-fPIC ${c_flags}"

local c_flags="-fPIC"
if [[ "${arch}" =~ "mips*" ]]
then
linker_flags="-latomic -Wl,-z,notext -Wno-unused-command-line-argument"
c_flags+=" -Wl,-z,execstack"
fi
local cxx_flags="${c_flags}"

local out_dir=llvm_build2_${name}
Expand Down

0 comments on commit ccad783

Please sign in to comment.