https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70360

--- Comment #3 from psturm at computervoice dot com ---
Created attachment 38064
  --> https://gcc.gnu.org/bugzilla/attachment.cgi?id=38064&action=edit
-default-pie -enable-vtv

I understand the test suite cannot contemplate every single combination of
configure options. However, I would suggest that certain combinations might be
more common than others. My particular area of focus is configuring GCC6 for
the most secure default configuration. Therefore, I am paying particular
attention to:

--enable--default-pie
--enable--default-ssp
--enable-vtable-verify

I have built GCC6 with each of these configure flags individually and reported
the test suite unexpected failures as bugs.

When I built with --enable-default-pie 

The result was bug fixes for the following related issues:
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70150
https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70192

When I built with --enable-default-ssp

I reported: https://gcc.gnu.org/bugzilla/show_bug.cgi?id=70230

Richard Biener replied that the 11 regressions were expected for this configure
flag. I plan to revisit this and see if I am capable of modifying the relevant
tests to either be skipped for this configure flag or disable the default that
is passed so the test suite passes. Of note here is that I would have to deal
with 11 failed test cases.

For --enable-vtable-verify I already reported the ABI error that you said was
expected.

I next made a build with the combination of:

--enable--default-pie
--enable-vtable-verify

The result was:

gcc: 4 unexpected failures
libstdc++: 2106 unexpected failures
libvtv: 58 unexpected failures

I am not a programmer, but I can run the builds with various build parameters
and report my results. Most of the 2106 failures for libstdc++ are for
"compilation failed to produce executable", so I suspect if we can figure out
why that is happening, we can dramatically reduce the scope of what we need to
look at.

I have attached the test suite summary for the build that combines default-pie
and vtable-verify. I am building X86_64 on an Intel Broadwell CPU.

Please advise.

Reply via email to