]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Allow to override location of .gnu.sgstubs section
authorTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Wed, 19 Oct 2022 09:31:33 +0000 (11:31 +0200)
committerTorbjörn SVENSSON <torbjorn.svensson@foss.st.com>
Fri, 4 Nov 2022 07:58:36 +0000 (08:58 +0100)
commitd201bd1aab513266eb7f3adabfb3fafc6578228f
tree0e79c74b75e32a420608befcce142b3e158952fc
parent97752b7c446e513677e9d49b0c57427d41aaebde
arm: Allow to override location of .gnu.sgstubs section

Depending on the DejaGNU board definition, the .gnu.sgstubs section
might be placed on different locations in order to suit the target.
With this patch, the start location of the section is overrideable
from the board definition with the fallback of the previously
hardcoded location.

gcc/testsuite/ChangeLog:

* gcc.target/arm/cmse/bitfield-1.c: Use overridable location.
* gcc.target/arm/cmse/bitfield-2.c: Likewise.
* gcc.target/arm/cmse/bitfield-3.c: Likewise.
* gcc.target/arm/cmse/cmse-20.c: Likewise.
* gcc.target/arm/cmse/struct-1.c: Likewise.
* gcc.target/arm/cmse/cmse.exp (cmse_sgstubs): New.

Signed-off-by: Torbjörn SVENSSON <torbjorn.svensson@foss.st.com>
gcc/testsuite/gcc.target/arm/cmse/bitfield-1.c
gcc/testsuite/gcc.target/arm/cmse/bitfield-2.c
gcc/testsuite/gcc.target/arm/cmse/bitfield-3.c
gcc/testsuite/gcc.target/arm/cmse/cmse-20.c
gcc/testsuite/gcc.target/arm/cmse/cmse.exp
gcc/testsuite/gcc.target/arm/cmse/struct-1.c