Repository navigation
Conversation
The MIPS L4Re toolchains need binutils to know the mips*-*-l4re* targets. Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
Current L4Re uses musl instead of uClibc as its libc. The sysroot has no l4-arch header directory anymore and the dynamic linker is /rom/libc.so.1. The L4Re linker scripts reject .ctors/.dtors sections, so gcc must always use .init_array. Configure cannot detect this when building the bootstrap compiler without target headers. The gcc L4Re patch also gains RISC-V and MIPS support. Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
L4Re supports these architectures and needs toolchains for them. The L4Re toolchains are tested in their own project so that they are not built by default with the Linux tests. Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
The L4Re loader passes AT_PHDR only for binaries with a PT_PHDR segment, which static executables lack. Their TLS segment was thus never set up, breaking any TLS access through __tls_get_addr. Additionally, the minimum TLS alignment evaluated to 1, which yields an unaligned DTV and crashes static programs on MIPS32. Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
Build small C and C++ programs with the L4Re cross toolchains and run them in an L4Re image on QEMU to verify the toolchains on the target. Signed-off-by: Jan Klötzke <jan.kloetzke@kernkonzept.com>
jkloetzke
force-pushed
the
update-l4re
branch
from
November 18, 2026 16:05
1134c1c to
74bcbbc
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
No description provided.