* [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble
@ 2026-09-23 12:03 Aleksey Laurynovich
2026-09-23 13:49 ` 'MOESSBAUER, Felix' via isar-users
0 siblings, 1 reply; 5+ messages in thread
From: Aleksey Laurynovich @ 2026-09-23 12:03 UTC (permalink / raw)
To: isar-users
Older kernel (4.4.x) has three toolchain issues on Ubuntu Noble:
- dtc yylloc multiple definition (fixed by HOSTCFLAGS+=-fcommon)
- ld rejects -Wl,-Bsymbolic-functions (fixed by clearing LDFLAGS)
- arm64 proc.S uses deprecated .section syntax rejected by binutils 2.42
(fixed by patching to use modern 'ax' flags)
The issue can be reproduced with the command:
$ bitbake mc:qemuarm64-noble:linux-cip-arm64
Signed-off-by: Aleksey Laurynovich <alaur@ilbers.de>
---
...rm64-proc.S-fix-binutils-2.42-section-syntax.patch | 11 +++++++++++
.../recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 6 ++++++
2 files changed, 17 insertions(+)
create mode 100644 meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
diff --git a/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
new file mode 100644
index 00000000..f464ac40
--- /dev/null
+++ b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
@@ -0,0 +1,11 @@
+--- a/arch/arm64/mm/proc.S
++++ b/arch/arm64/mm/proc.S
+@@ -152,7 +152,7 @@
+ alternative_endif
+ ENDPROC(cpu_do_switch_mm)
+
+- .section ".text.init", #alloc, #execinstr
++ .section ".text.init", "ax"
+
+ /*
+ * __cpu_setup
diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
index e2e51304..4b606dee 100644
--- a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
+++ b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
@@ -9,8 +9,14 @@ PN .= "-${DISTRO_ARCH}"
inherit linux-kernel
+# Older kernel dtc has yylloc multiple definition, fixed by -fcommon
+KERNEL_EXTRA_BUILDARGS += "HOSTCFLAGS+=-fcommon"
+# Older kernel passes -Wl,-Bsymbolic-functions to cross-linker which rejects it
+KERNEL_EXTRA_BUILDARGS += "LDFLAGS="
+
SRC_URI += " \
git://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git;protocol=https;branch=linux-4.4.y-cip;destsuffix=${P} \
+ file://0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch \
"
SRCREV = "af3adf9f9c633ac0e1d68487d7fad22285dda8a3"
--
2.43.0
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260923120346.3256438-1-alaur%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble
2026-09-23 12:03 [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble Aleksey Laurynovich
@ 2026-09-23 13:49 ` 'MOESSBAUER, Felix' via isar-users
2026-09-23 16:21 ` 'Jan Kiszka' via isar-users
2026-09-24 9:58 ` Aleksey Laurynovich
0 siblings, 2 replies; 5+ messages in thread
From: 'MOESSBAUER, Felix' via isar-users @ 2026-09-23 13:49 UTC (permalink / raw)
To: Aleksey Laurynovich, isar-users; +Cc: Kiszka, Jan
On Wed, 2026-09-23 at 14:03 +0200, Aleksey Laurynovich wrote:
> Older kernel (4.4.x) has three toolchain issues on Ubuntu Noble:
> - dtc yylloc multiple definition (fixed by HOSTCFLAGS+=-fcommon)
> - ld rejects -Wl,-Bsymbolic-functions (fixed by clearing LDFLAGS)
> - arm64 proc.S uses deprecated .section syntax rejected by binutils 2.42
> (fixed by patching to use modern 'ax' flags)
>
> The issue can be reproduced with the command:
> $ bitbake mc:qemuarm64-noble:linux-cip-arm64
>
> Signed-off-by: Aleksey Laurynovich <alaur@ilbers.de>
> ---
> ...rm64-proc.S-fix-binutils-2.42-section-syntax.patch | 11 +++++++++++
> .../recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 6 ++++++
> 2 files changed, 17 insertions(+)
> create mode 100644 meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
>
> diff --git a/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
> new file mode 100644
> index 00000000..f464ac40
> --- /dev/null
> +++ b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
> @@ -0,0 +1,11 @@
> +--- a/arch/arm64/mm/proc.S
> ++++ b/arch/arm64/mm/proc.S
> +@@ -152,7 +152,7 @@
> + alternative_endif
> + ENDPROC(cpu_do_switch_mm)
> +
> +- .section ".text.init", #alloc, #execinstr
> ++ .section ".text.init", "ax"
> +
> + /*
> + * __cpu_setup
> diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
This kernel patch release is quite old. Did you check if v4.4.302-cip99
is also affected?
Felix
> index e2e51304..4b606dee 100644
> --- a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
> +++ b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
> @@ -9,8 +9,14 @@ PN .= "-${DISTRO_ARCH}"
>
> inherit linux-kernel
>
> +# Older kernel dtc has yylloc multiple definition, fixed by -fcommon
> +KERNEL_EXTRA_BUILDARGS += "HOSTCFLAGS+=-fcommon"
> +# Older kernel passes -Wl,-Bsymbolic-functions to cross-linker which rejects it
> +KERNEL_EXTRA_BUILDARGS += "LDFLAGS="
> +
> SRC_URI += " \
> git://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git;protocol=https;branch=linux-4.4.y-cip;destsuffix=${P} \
> + file://0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch \
> "
>
> SRCREV = "af3adf9f9c633ac0e1d68487d7fad22285dda8a3"
> --
> 2.43.0
>
> --
> You received this message because you are subscribed to the Google Groups "isar-users" group.
> To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
> To view this discussion visit https://groups.google.com/d/msgid/isar-users/20260923120346.3256438-1-alaur%40ilbers.de.
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/d67299c817b99b8d84dabf111a78e0fb958daf33.camel%40siemens.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble
2026-09-23 13:49 ` 'MOESSBAUER, Felix' via isar-users
@ 2026-09-23 16:21 ` 'Jan Kiszka' via isar-users
2026-09-24 9:58 ` Aleksey Laurynovich
1 sibling, 0 replies; 5+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2026-09-23 16:21 UTC (permalink / raw)
To: Moessbauer, Felix (FT RPD CED OES-DE), Aleksey Laurynovich, isar-users
On 23.09.26 15:49, Moessbauer, Felix (FT RPD CED OES-DE) wrote:
> On Wed, 2026-09-23 at 14:03 +0200, Aleksey Laurynovich wrote:
>> Older kernel (4.4.x) has three toolchain issues on Ubuntu Noble:
>> - dtc yylloc multiple definition (fixed by HOSTCFLAGS+=-fcommon)
>> - ld rejects -Wl,-Bsymbolic-functions (fixed by clearing LDFLAGS)
>> - arm64 proc.S uses deprecated .section syntax rejected by binutils 2.42
>> (fixed by patching to use modern 'ax' flags)
>>
>> The issue can be reproduced with the command:
>> $ bitbake mc:qemuarm64-noble:linux-cip-arm64
>>
>> Signed-off-by: Aleksey Laurynovich <alaur@ilbers.de>
>> ---
>> ...rm64-proc.S-fix-binutils-2.42-section-syntax.patch | 11 +++++++++++
>> .../recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 6 ++++++
>> 2 files changed, 17 insertions(+)
>> create mode 100644 meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
>>
>> diff --git a/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
>> new file mode 100644
>> index 00000000..f464ac40
>> --- /dev/null
>> +++ b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch
>> @@ -0,0 +1,11 @@
>> +--- a/arch/arm64/mm/proc.S
>> ++++ b/arch/arm64/mm/proc.S
>> +@@ -152,7 +152,7 @@
>> + alternative_endif
>> + ENDPROC(cpu_do_switch_mm)
>> +
>> +- .section ".text.init", #alloc, #execinstr
>> ++ .section ".text.init", "ax"
>> +
>> + /*
>> + * __cpu_setup
>> diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
>
> This kernel patch release is quite old. Did you check if v4.4.302-cip99
> is also affected?
>
https://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-cip.git/commit/?id=09490469cfb3b0855cf56badc62c512684d59570
And that although this is an unsupported configuration (arm64 support
got added to CIP with 4.19 only).
So, don't do that.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/120f6530-5e11-4f1c-a275-a6a7520222a0%40siemens.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble
2026-09-23 13:49 ` 'MOESSBAUER, Felix' via isar-users
2026-09-23 16:21 ` 'Jan Kiszka' via isar-users
@ 2026-09-24 9:58 ` Aleksey Laurynovich
2026-09-24 10:02 ` 'Jan Kiszka' via isar-users
1 sibling, 1 reply; 5+ messages in thread
From: Aleksey Laurynovich @ 2026-09-24 9:58 UTC (permalink / raw)
To: MOESSBAUER, Felix, isar-users; +Cc: Kiszka, Jan
On Wed, 2026-09-23 at 13:49 +0000, MOESSBAUER, Felix wrote:
> On Wed, 2026-09-23 at 14:03 +0200, Aleksey Laurynovich wrote:
> > Older kernel (4.4.x) has three toolchain issues on Ubuntu Noble:
> > - dtc yylloc multiple definition (fixed by HOSTCFLAGS+=-fcommon)
> > - ld rejects -Wl,-Bsymbolic-functions (fixed by clearing LDFLAGS)
> > - arm64 proc.S uses deprecated .section syntax rejected by binutils
> > 2.42
> > (fixed by patching to use modern 'ax' flags)
> >
> > The issue can be reproduced with the command:
> > $ bitbake mc:qemuarm64-noble:linux-cip-arm64
> >
> > Signed-off-by: Aleksey Laurynovich <alaur@ilbers.de>
> > ---
> > ...rm64-proc.S-fix-binutils-2.42-section-syntax.patch | 11
> > +++++++++++
> > .../recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 6 ++++++
> > 2 files changed, 17 insertions(+)
> > create mode 100644 meta-isar/recipes-kernel/linux/files/0001-
> > arm64-proc.S-fix-binutils-2.42-section-syntax.patch
> >
> > diff --git a/meta-isar/recipes-kernel/linux/files/0001-arm64-
> > proc.S-fix-binutils-2.42-section-syntax.patch b/meta-isar/recipes-
> > kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-
> > syntax.patch
> > new file mode 100644
> > index 00000000..f464ac40
> > --- /dev/null
> > +++ b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-
> > binutils-2.42-section-syntax.patch
> > @@ -0,0 +1,11 @@
> > +--- a/arch/arm64/mm/proc.S
> > ++++ b/arch/arm64/mm/proc.S
> > +@@ -152,7 +152,7 @@
> > + alternative_endif
> > + ENDPROC(cpu_do_switch_mm)
> > +
> > +- .section ".text.init", #alloc, #execinstr
> > ++ .section ".text.init", "ax"
> > +
> > + /*
> > + * __cpu_setup
> > diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-
> > cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-
> > cip29.bb
>
> This kernel patch release is quite old. Did you check if v4.4.302-
> cip99
> is also affected?
v4.4.302-cip99 is also affected. It has ld rejects -Wl,-Bsymbolic-
functions, and arm64 proc.S syntax problems.
>
> Felix
>
> > index e2e51304..4b606dee 100644
> > --- a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
> > +++ b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-cip29.bb
> > @@ -9,8 +9,14 @@ PN .= "-${DISTRO_ARCH}"
> >
> > inherit linux-kernel
> >
> > +# Older kernel dtc has yylloc multiple definition, fixed by -
> > fcommon
> > +KERNEL_EXTRA_BUILDARGS += "HOSTCFLAGS+=-fcommon"
> > +# Older kernel passes -Wl,-Bsymbolic-functions to cross-linker
> > which rejects it
> > +KERNEL_EXTRA_BUILDARGS += "LDFLAGS="
> > +
> > SRC_URI += " \
> > git://git.kernel.org/pub/scm/linux/kernel/git/cip/linux-
> > cip.git;protocol=https;branch=linux-4.4.y-cip;destsuffix=${P} \
> > +
> > file://0001-arm64-proc.S-fix-binutils-2.42-section-syntax.patch \
> > "
> >
> > SRCREV = "af3adf9f9c633ac0e1d68487d7fad22285dda8a3"
> > --
> > 2.43.0
> >
> > --
> > You received this message because you are subscribed to the Google
> > Groups "isar-users" group.
> > To unsubscribe from this group and stop receiving emails from it,
> > send an email to isar-users+unsubscribe@googlegroups.com.
> > To view this discussion visit
> > https://groups.google.com/d/msgid/isar-users/20260923120346.3256438-1-alaur%40ilbers.de
> > .
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/c6c6930b010bb050d99d417231b30a8eb1cc4dd4.camel%40ilbers.de.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble
2026-09-24 9:58 ` Aleksey Laurynovich
@ 2026-09-24 10:02 ` 'Jan Kiszka' via isar-users
0 siblings, 0 replies; 5+ messages in thread
From: 'Jan Kiszka' via isar-users @ 2026-09-24 10:02 UTC (permalink / raw)
To: Aleksey Laurynovich, MOESSBAUER, Felix, isar-users
On 24.09.26 11:58, Aleksey Laurynovich wrote:
> On Wed, 2026-09-23 at 13:49 +0000, MOESSBAUER, Felix wrote:
>> On Wed, 2026-09-23 at 14:03 +0200, Aleksey Laurynovich wrote:
>>> Older kernel (4.4.x) has three toolchain issues on Ubuntu Noble:
>>> - dtc yylloc multiple definition (fixed by HOSTCFLAGS+=-fcommon)
>>> - ld rejects -Wl,-Bsymbolic-functions (fixed by clearing LDFLAGS)
>>> - arm64 proc.S uses deprecated .section syntax rejected by binutils
>>> 2.42
>>> (fixed by patching to use modern 'ax' flags)
>>>
>>> The issue can be reproduced with the command:
>>> $ bitbake mc:qemuarm64-noble:linux-cip-arm64
>>>
>>> Signed-off-by: Aleksey Laurynovich <alaur@ilbers.de>
>>> ---
>>> ...rm64-proc.S-fix-binutils-2.42-section-syntax.patch | 11
>>> +++++++++++
>>> .../recipes-kernel/linux/linux-cip_4.4.166-cip29.bb | 6 ++++++
>>> 2 files changed, 17 insertions(+)
>>> create mode 100644 meta-isar/recipes-kernel/linux/files/0001-
>>> arm64-proc.S-fix-binutils-2.42-section-syntax.patch
>>>
>>> diff --git a/meta-isar/recipes-kernel/linux/files/0001-arm64-
>>> proc.S-fix-binutils-2.42-section-syntax.patch b/meta-isar/recipes-
>>> kernel/linux/files/0001-arm64-proc.S-fix-binutils-2.42-section-
>>> syntax.patch
>>> new file mode 100644
>>> index 00000000..f464ac40
>>> --- /dev/null
>>> +++ b/meta-isar/recipes-kernel/linux/files/0001-arm64-proc.S-fix-
>>> binutils-2.42-section-syntax.patch
>>> @@ -0,0 +1,11 @@
>>> +--- a/arch/arm64/mm/proc.S
>>> ++++ b/arch/arm64/mm/proc.S
>>> +@@ -152,7 +152,7 @@
>>> + alternative_endif
>>> + ENDPROC(cpu_do_switch_mm)
>>> +
>>> +- .section ".text.init", #alloc, #execinstr
>>> ++ .section ".text.init", "ax"
>>> +
>>> + /*
>>> + * __cpu_setup
>>> diff --git a/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-
>>> cip29.bb b/meta-isar/recipes-kernel/linux/linux-cip_4.4.166-
>>> cip29.bb
>>
>> This kernel patch release is quite old. Did you check if v4.4.302-
>> cip99
>> is also affected?
> v4.4.302-cip99 is also affected. It has ld rejects -Wl,-Bsymbolic-
> functions, and arm64 proc.S syntax problems.
>
Then send patches upstream, not to isar, disable this inofficial
configuration, or use a (cip-)kernel that supports it. This is just an
exemplary recipe, not worth being patched.
Jan
--
Siemens AG, Foundational Technologies
Linux Expert Center
--
You received this message because you are subscribed to the Google Groups "isar-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to isar-users+unsubscribe@googlegroups.com.
To view this discussion visit https://groups.google.com/d/msgid/isar-users/8c2d7b0f-0af9-4702-b5c5-cc2a46e31c59%40siemens.com.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2026-09-24 10:02 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-23 12:03 [PATCH] fix: Add toolchain fixes to linux-cip 4.4 kernel on Noble Aleksey Laurynovich
2026-09-23 13:49 ` 'MOESSBAUER, Felix' via isar-users
2026-09-23 16:21 ` 'Jan Kiszka' via isar-users
2026-09-24 9:58 ` Aleksey Laurynovich
2026-09-24 10:02 ` 'Jan Kiszka' via isar-users
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox