]> xenbits.xensource.com Git - libvirt.git/commit
meson: Adjust -fstack-protector use
authorAndrea Bolognani <abologna@redhat.com>
Sat, 20 Jan 2024 16:06:38 +0000 (17:06 +0100)
committerAndrea Bolognani <abologna@redhat.com>
Wed, 31 Jan 2024 10:25:32 +0000 (11:25 +0100)
commit7284b4cf8b0d9f9f319a3fc69662ff3f809963c1
tree68789f3946e2f50032c746958a7fa65bd99f4bae
parent1678e633cf749c4fe0cdebe079fa3ae0bc93d8a7
meson: Adjust -fstack-protector use

Back in 2014, -fstack-protector was reported not to work on
aarch64, so fe881ae086ec disabled it on that target. OS-wise,
its use is currently limited to just Linux, FreeBSD and Windows.

Looking at the situation today, it seems that whatever issue was
affecting aarch64 a decade ago has been resolved; moreover,
macOS can also use the feature these days.

I haven't checked any of the other BSDs, but since the feature
works on FreeBSD it's pretty safe to assume that they can use
it too. If we get reports that it's not the case, we can always
further restrict its usage accordingly.

Best viewed with 'git show -w'.

Signed-off-by: Andrea Bolognani <abologna@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
meson.build