This is the mail archive of the
gcc-help@gcc.gnu.org
mailing list for the GCC project.
Re: gcc version 4.8.5 20150623 / Meltdown and/or Spectre vulnerabilities
- From: Xi Ruoyao <ryxi at stu dot xidian dot edu dot cn>
- To: Vassilena Treneva <treneva at gmail dot com>
- Cc: gcc-help at gcc dot gnu dot org
- Date: Fri, 15 Jun 2018 22:58:18 +0800
- Subject: Re: gcc version 4.8.5 20150623 / Meltdown and/or Spectre vulnerabilities
- References: <CAG6hjyVwkrNHea4iF7KyByh0awrDyx3031Y6C8DOxw+9zzV5eA@mail.gmail.com>
On 2018-06-15 17:42 +0300, Vassilena Treneva wrote:
> Hey,
>
> Using gcc version 4.8.5 20150623 (Red Hat 4.8.5-4) (GCC).
>
> Do you know if there are any compiler options (or a patch) to mitigate the
> so called: Meltdown and/or Spectre vulnerabilities for this specific
> version of the compiler?
> Based on what I read over the internet, the answer is NO. Such options and
> a patch are available starting from GCC 8:
> https://gcc.gnu.org/ml/gcc-patches/2018-01/msg00422.html
The compiler has nothing to do with Meltdown and Spectre v1. For Spectre v2
GCC 8.1 and 7.3 have -mindirect-branch option.
GCC 4.8 is no longer supported by GCC team. Maybe Red Hat could backport
this patch for you.
--
Xi Ruoyao <ryxi@stu.xidian.edu.cn>
School of Aerospace Science and Technology, Xidian University