From: Tom Rini <trini@konsulko.com>
To: Johannes Krottmayer <johannes@krotti42.com>
Cc: u-boot@lists.denx.de
Subject: Re: [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive
Date: Wed, 7 May 2025 10:55:33 -0600 [thread overview]
Message-ID: <20250507165533.GO5430@bill-the-cat> (raw)
In-Reply-To: <20250507060739.326096-2-johannes@krotti42.com>
[-- Attachment #1: Type: text/plain, Size: 1305 bytes --]
On Wed, May 07, 2025 at 06:07:54AM +0000, Johannes Krottmayer wrote:
> Since GNU binutils version 2.44, assembly functions must include
> the assembler directive .type name, %function. If not a call to
> these functions fails with the error message 'Unknown destination
> type (ARM/Thumb)' and the error message 'dangerous relocation:
> unsupported relocation' at linking.
>
> Signed-off-by: Johannes Krottmayer <johannes@krotti42.com>
> Cc: Tom Rini <trini@konsulko.com>
> ---
> arch/arm/cpu/armv7m/start.S | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/arch/arm/cpu/armv7m/start.S b/arch/arm/cpu/armv7m/start.S
> index 0c07f2140c7..c20f01a0aed 100644
> --- a/arch/arm/cpu/armv7m/start.S
> +++ b/arch/arm/cpu/armv7m/start.S
> @@ -12,5 +12,6 @@ reset:
> W(b) _main
>
> .globl c_runtime_cpu_setup
> +.type c_runtime_cpu_setup, %function
> c_runtime_cpu_setup:
> mov pc, lr
Thanks for making the patch. There's an argument that this should use
the ENTRY / ENDPROC macros from <linux/linkage.h> but that also shows
that we're missing commit 5d4cae5fe2ea ("[ARM] VFP: fix section mismatch
error") from the kernel. And so I'm fine with making a TODO to clean
this up later if you don't want to embark on something a bit more
complicated here.
--
Tom
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 659 bytes --]
next prev parent reply other threads:[~2025-05-07 16:55 UTC|newest]
Thread overview: 13+ messages / expand[flat|nested] mbox.gz Atom feed top
2025-05-07 6:07 [PATCH 0/1] arm: add required assembler directive (binutils >=2.44) Johannes Krottmayer
2025-05-07 6:07 ` [PATCH 1/1] arm: cpu: armv7m: add required .type name, %function directive Johannes Krottmayer
2025-05-07 16:55 ` Tom Rini [this message]
2025-05-07 18:17 ` Johannes Krottmayer
2025-05-07 19:07 ` Johannes Krottmayer
2025-05-07 21:18 ` Johannes Krottmayer
2025-05-07 22:51 ` Tom Rini
2025-05-07 23:36 ` Johannes Krottmayer
2025-05-08 19:00 ` [PATCH v2 1/1] arm: cpu: armv7m: add ENTRY/ENDPROC macros Johannes Krottmayer
2025-05-08 19:09 ` Johannes Krottmayer
2025-05-08 19:34 ` Tom Rini
2025-05-08 19:33 ` Tom Rini
2025-05-22 19:36 ` Tom Rini
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20250507165533.GO5430@bill-the-cat \
--to=trini@konsulko.com \
--cc=johannes@krotti42.com \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.