Control: forwarded -1 https://bugs.winehq.org/show_bug.cgi?id=60022
Control: tags -1 + patch

On Thu, 16 Jul 2026 at 12:26:19 +0100, Simon McVittie wrote:
Assembler messages:
{standard input}:55609: Error: unrecognized symbol type ""

Possibly something is going wrong with the use of "DEMO_EMBED"

More diagnosis on https://bugs.winehq.org/show_bug.cgi?id=60022 upstream, and I've proposed a patch that seems to build successfully on both armhf and amd64 (attached).

Unfortunately, most of the test suite fails when I try this in an armhf schroot on amdahl, but I think that's an orthogonal issue which I'll report separately.

    smcv
From: Simon McVittie <[email protected]>
Date: Thu, 16 Jul 2026 14:49:04 +0100
Subject: demos: Use STT_OBJECT syntax when emulating #embed

As documented in <https://sourceware.org/binutils/docs/as/Type.html>,
the `@object` syntax won't work on all architectures, because `@`
is a comment prefix on some architectures. According to
<https://sourceware.org/binutils/docs/as/ARM_002dChars.html>,
32-bit ARM is one of those architectures.

Use the STT_OBJECT syntax instead, which is recommended in
<https://sourceware.org/binutils/docs/as/Type.html> as being supported
by GNU `as` on all architectures.

Bug: https://bugs.winehq.org/show_bug.cgi?id=60022
Bug-Debian: https://bugs.debian.org/1142193
Signed-off-by: Simon McVittie <[email protected]>
---
 demos/demo.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/demos/demo.h b/demos/demo.h
index 6a7077f5..2fe0ffb5 100644
--- a/demos/demo.h
+++ b/demos/demo.h
@@ -51,7 +51,7 @@
 #else
 #define DEMO_ASM_PUSHSECTION ".pushsection .rodata\n\t"
 #define DEMO_ASM_POPSECTION ".popsection\n\t"
-#define DEMO_ASM_OBJECT_TYPE(name) ".type "name", @object\n\t"
+#define DEMO_ASM_OBJECT_TYPE(name) ".type "name", STT_OBJECT\n\t"
 #endif
 
 #if (defined(__WIN32__) && defined(__i386__)) || defined(__APPLE__)

Reply via email to