https://sourceware.org/bugzilla/show_bug.cgi?id=33146
--- Comment #4 from H.J. Lu <hjl.tools at gmail dot com> --- Created attachment 16172 --> https://sourceware.org/bugzilla/attachment.cgi?id=16172&action=edit A patch to move gas_sframe_check to binutils-common.exp Together with this: diff --git a/ld/testsuite/ld-plugin/lto.exp b/ld/testsuite/ld-plugin/lto.exp index f0d0954ab09..d68e5f44397 100644 --- a/ld/testsuite/ld-plugin/lto.exp +++ b/ld/testsuite/ld-plugin/lto.exp @@ -51,6 +51,11 @@ if { [check_lto_fat_available] } { set no_lto "-fno-lto" } +set as_gsframe "" +if { [gas_sframe_check] } { + set as_gsframe "-Wa,--gsframe" +} + # Simple LTO tests and generate input files for complex LTO tests. set lto_link_tests [list \ [list "LTO 1" \ @@ -76,10 +81,10 @@ set lto_link_tests [list \ "" "-flto $lto_fat" \ {lto-4a.c} {} ""] \ [list "Compile 4b" \ - "" "-O2" \ + "" "-O2 $as_gsframe" \ {lto-4b.c} {} ""] \ [list "Compile 4c" \ - "" "-O2" \ + "" "-O2 $as_gsframe" \ {lto-4c.c} {} ""] \ [list "Compile 5a" \ "" "-flto $lto_fat" \ I got FAIL: LTO 4a FAIL: LTO 4c FAIL: LTO 4d -- You are receiving this mail because: You are on the CC list for the bug.