]> git.ipfire.org Git - thirdparty/gcc.git/commit
arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]
authorAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 6 Jun 2024 15:02:50 +0000 (16:02 +0100)
committerAndre Vieira <andre.simoesdiasvieira@arm.com>
Thu, 6 Jun 2024 15:02:50 +0000 (16:02 +0100)
commitc559353af49fe5743d226ac3112a285b27a50f6a
tree60a57eb3ad3c7a380de8f13ddbf40fefb834418f
parent423522aacd9f30bb75aa77d38fccb630bfc4c98a
arm: Add .type and .size to __gnu_cmse_nonsecure_call [PR115360]

This patch adds missing assembly directives to the CMSE library wrapper to call
functions with attribute cmse_nonsecure_call.  Without the .type directive the
linker will fail to produce the correct veneer if a call to this wrapper
function is to far from the wrapper itself.  The .size was added for
completeness, though we don't necessarily have a usecase for it.

libgcc/ChangeLog:

PR target/115360
* config/arm/cmse_nonsecure_call.S: Add .type and .size directives.
libgcc/config/arm/cmse_nonsecure_call.S