[PATCH 3/5] binutils, gas, ld: Disable SFrames for some tests
Jan Beulich
jbeulich@suse.com
Fri Aug 22 06:56:54 GMT 2025
On 15.08.2025 16:56, Sam James wrote:
> These break with a gas configured to emit SFrames by default.
>
> The failures are all harmless, mainly just an unexpected extra section.
>
> For the only non-trivial ones, Indu took a look at some of the PLT tests
> where we get a different address for .plt. She found lang_size_sections_1 ()
> -> bfd_set_section_vma () just gets called with a different offset which
> makes sense given different alignment requirements/sizes.
>
> binutils/
> PR gas/33126
> * testsuite/binutils-all/x86-64/compressed-1b.d: Pass --gsframe=no.
> * testsuite/binutils-all/x86-64/compressed-1c.d: Ditto.
These tests are x86_64-linux only, so adjusting them is fine.
> gas/
> PR gas/33126
> * testsuite/gas/cfi/cfi-common-1.d: Pass --gsframe=no.
> * testsuite/gas/cfi/cfi-common-2.d: Ditto.
> * testsuite/gas/cfi/cfi-common-3.d: Ditto.
> * testsuite/gas/cfi/cfi-common-4.d: Ditto.
> * testsuite/gas/cfi/cfi-common-5.d: Ditto.
> * testsuite/gas/cfi/cfi-common-6.d: Ditto.
> * testsuite/gas/cfi/cfi-common-7.d: Ditto.
> * testsuite/gas/cfi/cfi-common-8.d: Ditto.
Some of these tests (and maybe also ones further down) aren't as limited.
--gsframe=no, however, is recognized for ELF only. So I expect you introduce
a problem here for PE/COFF, which these tests are also enabled for.
Jan
More information about the Binutils
mailing list