From: Alexandre Chartre <alexandre.chartre@oracle.com>
To: dima@arista.com, Josh Poimboeuf <jpoimboe@kernel.org>,
Peter Zijlstra <peterz@infradead.org>
Cc: alexandre.chartre@oracle.com,
Dmitry Safonov <0x7f454c46@gmail.com>,
linux-kernel@vger.kernel.org
Subject: Re: [PATCH] objtool: Print bfd_vma as unsigned long long on ia32-x86_64 cross build
Date: Tue, 27 Jan 2026 09:43:12 +0100 [thread overview]
Message-ID: <d14b9888-ee1e-466b-a2ad-a21094f74712@oracle.com> (raw)
In-Reply-To: <20260126-objtool-ia32-v1-1-bb6feaf17566@arista.com>
On 1/26/26 05:57, Dmitry Safonov via B4 Relay wrote:
> From: Dmitry Safonov <dima@arista.com>
>
> When objtool is cross-compiled in ia32 container for x86_64 target it
> fails with the following errors:
>
>> disas.c: In function 'disas_print_addr_sym':
>> disas.c:173:38: error: format '%lx' expects argument of type 'long unsigned int', but argument 3 has type 'bfd_vma' {aka 'long long unsigned int'} [-Werror=format=]
>> 173 | DINFO_FPRINTF(dinfo, "0x%lx <%s>", addr, symstr);
>> | ^~~~~~~~~~~~ ~~~~
>> | |
>> | bfd_vma {aka long long unsigned int}
>
> Provide a correct printf-fmt depending on sizeof(bfd_vma).
>
> Cc: Alexandre Chartre <alexandre.chartre@oracle.com>
> Cc: Peter Zijlstra (Intel) <peterz@infradead.org>
> Cc: Josh Poimboeuf <jpoimboe@kernel.org>
> Fixes: 5d859dff266f ("objtool: Print symbol during disassembly")
> Signed-off-by: Dmitry Safonov <dima@arista.com>
> ---
> tools/objtool/disas.c | 14 ++++++++------
> 1 file changed, 8 insertions(+), 6 deletions(-)
>
Reviewed-by: Alexandre Chartre <alexandre.chartre@oracle.com>
Thanks,
alex.
next prev parent reply other threads:[~2026-01-27 8:43 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-01-26 4:57 Dmitry Safonov via B4 Relay
2026-01-27 0:22 ` Josh Poimboeuf
2026-01-27 8:43 ` Alexandre Chartre [this message]
2026-01-28 8:46 ` [tip: objtool/urgent] " tip-bot2 for Dmitry Safonov
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=d14b9888-ee1e-466b-a2ad-a21094f74712@oracle.com \
--to=alexandre.chartre@oracle.com \
--cc=0x7f454c46@gmail.com \
--cc=dima@arista.com \
--cc=jpoimboe@kernel.org \
--cc=linux-kernel@vger.kernel.org \
--cc=peterz@infradead.org \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®