[{"data":1,"prerenderedAt":1189},["ShallowReactive",2],{"search-index":3,"doc-cross-compilation-toolchain-triplet-clib-2026":105},[4,9,13,17,21,26,31,36,41,46,51,56,61,66,71,76,81,86,91,96,101],{"_path":5,"title":6,"description":7,"date":8},"/dev/eu-cyber-resilience-act-firmware-evidence-pack","CRA Firmware Evidence: Scope, Dates and Preparation","Practical breakdown of the EU Cyber Resilience Act requirements for embedded firmware teams, covering technical obligations, SBOM requirements, vulnerability handling, and the evidence pack needed for compliance.","2026-04-19T08:00:00.000Z",{"_path":10,"title":11,"description":12,"date":8},"/dev/pkg/firmware-sboms-spdx-cyclonedx-2026","Firmware SBOMs: SPDX, CycloneDX and Publication Workflows","Practical comparison of SPDX and CycloneDX for firmware SBOMs, covering what to include, automation approaches, tooling, and publication strategies for embedded Linux products.",{"_path":14,"title":15,"description":16,"date":8},"/dev/pkg/spdx-3-0-embedded-builds-practical","SPDX 3.0 for Embedded Builds: Packages, Files, and Relationships Engineers Actually Use","Practical guide to SPDX 3.0 for embedded Linux, covering the data model, package and file elements, relationship types, and how to produce useful SPDX documents from Yocto and Buildroot builds.",{"_path":18,"title":19,"description":20,"date":8},"/dev/slsa-build-provenance-firmware-sign-verify","SLSA Build Provenance for Firmware: What to Collect, How to Sign, How to Verify","Practical implementation guide for SLSA build provenance in firmware pipelines, covering provenance generation, signing with Sigstore, verification workflows, and integration with SBOMs.",{"_path":22,"title":23,"description":24,"date":25},"/dev/vex-csaf-embedded-not-affected-scale","VEX and CSAF for Embedded Vulnerability Status","How to produce and distribute VEX documents and CSAF advisories for embedded firmware, enabling downstream consumers to filter false positives from vulnerability scans.","2026-04-15T20:03:00.000Z",{"_path":27,"title":28,"description":29,"date":30},"/dev/yocto-5-2-walnascar-highlights-embedded-2026","Yocto 5.2 Walnascar: Release Changes and Migration Context","Key changes in Yocto 5.2 Walnascar relevant to embedded product teams, covering toolchain updates, security improvements, SPDX 3.0 support, and migration notes.","2026-04-12T08:14:00.000Z",{"_path":32,"title":33,"description":34,"date":35},"/dev/yocto-esdk-faster-iteration-2026","Yocto eSDK in 2026: Faster Application Iteration Without Full Rebuild Cycles","How to use Yocto's extensible SDK to speed up application development by building and testing packages without running full BitBake builds.","2026-04-11T07:09:00.000Z",{"_path":37,"title":38,"description":39,"date":40},"/dev/yocto-layers-maintainable-strategy-2026","Maintaining Yocto Layers: Appends, Forks and Upgrades","Practical guidance on structuring Yocto layers for long-term maintainability, covering layer boundaries, naming conventions, version pinning, and upgrade workflows.","2026-04-07T13:41:00.000Z",{"_path":42,"title":43,"description":44,"date":45},"/doc/bootlin-toolchains-arm-riscv-2026","Bootlin Toolchains in Practice: Picking the Right Prebuilt Toolchain for ARM and RISC-V","How to select and validate Bootlin prebuilt cross-compilation toolchains for ARM Cortex-A, Cortex-M, and RISC-V targets in embedded Linux projects.","2026-03-10T16:05:00.000Z",{"_path":47,"title":48,"description":49,"date":50},"/doc/buildroot-vs-yocto-2026","Buildroot vs Yocto: BSPs, Build Workflow and Maintenance","A detailed comparison of Buildroot and Yocto for embedded Linux, covering build performance, long-term maintenance, layer ecosystems, and practical decision criteria for product teams in 2026.","2026-03-05T08:12:00.000Z",{"_path":52,"title":53,"description":54,"date":55},"/doc/cross-compilation-toolchain-triplet-clib-2026","Cross-Compilation: Target Triplets and glibc vs musl","Practical guidance on selecting cross-compilation toolchains for embedded Linux, understanding target triplets, and choosing between glibc and musl for your production firmware.","2026-03-07T07:43:00.000Z",{"_path":57,"title":58,"description":59,"date":60},"/doc/erofs-vs-squashfs-2026","EROFS vs SquashFS: Compression, Performance and OTA Trade-offs","Detailed comparison of EROFS and SquashFS for embedded Linux in 2026, covering read performance, compression ratios, deduplication, and integration with OTA update schemes.","2026-03-22T14:22:00.000Z",{"_path":62,"title":63,"description":64,"date":65},"/doc/ota-updates-rauc-swupdate-mender-2026","RAUC vs SWUpdate vs Mender: Embedded Linux OTA Compared","Comparison of RAUC, SWUpdate, and Mender for embedded Linux OTA updates, covering update models, rollback strategies, fleet management, and integration with Yocto and Buildroot.","2026-03-28T19:07:00.000Z",{"_path":67,"title":68,"description":69,"date":70},"/doc/plat/device-tree-debugging-overlays-validation-2026","Device Tree Debugging for Embedded Linux: Overlays, Common Errors, and Validation","Practical guide to debugging device tree issues in embedded Linux, covering overlay mechanics, common DTS errors, validation tools, and runtime debugging techniques.","2026-04-05T06:58:00.000Z",{"_path":72,"title":73,"description":74,"date":75},"/doc/plat/porting-checklist-bootloader-kernel-rootfs-2026","Porting Checklist 2026: Bootloader → Kernel → RootFS for New Boards","Complete checklist for porting embedded Linux to a new board, from bootloader bring-up through kernel configuration to root filesystem validation, with practical tips for each stage.","2026-04-02T15:16:00.000Z",{"_path":77,"title":78,"description":79,"date":80},"/doc/real-time-linux-preempt-rt-latency-2026","PREEMPT_RT Linux: Configuration and Cyclictest Latency Tests","Practical guide to PREEMPT_RT on embedded Linux covering kernel configuration, IRQ threading, latency measurement with cyclictest, and tuning techniques with explicit test conditions and interpretation limits.","2026-03-23T05:48:00.000Z",{"_path":82,"title":83,"description":84,"date":85},"/doc/rootfs-integrity-dm-verity-immutable-images","dm-verity for Rootfs Integrity: Design, Trust and Recovery","How to design and implement dm-verity-protected root filesystems for embedded Linux, covering hash tree generation, kernel integration, error handling, and update strategies.","2026-03-19T08:56:00.000Z",{"_path":87,"title":88,"description":89,"date":90},"/doc/rtos-vs-embedded-linux-zephyr-2026","RTOS vs Embedded Linux: Zephyr, FreeRTOS and Linux Compared","Practical comparison of RTOS (Zephyr, FreeRTOS) and embedded Linux for product design, covering latency, memory footprint, ecosystem maturity, and hybrid architectures.","2026-03-30T09:35:00.000Z",{"_path":92,"title":93,"description":94,"date":95},"/doc/secure-boot-uboot-fit-signatures-chain-of-trust","U-Boot Secure Boot: FIT Signatures and Chain of Trust","Understand U-Boot FIT signatures, trusted control device trees and boot-chain limits with a versioned example and explicit rejection and recovery tests.","2026-03-14T06:29:00.000Z",{"_path":97,"title":98,"description":99,"date":100},"/doc/verified-boot-patterns-uboot-keys-failure-modes","Verified Boot Patterns in U-Boot: What to Verify, Where Keys Live, and Failure Modes","Deep dive into U-Boot verified boot patterns covering signature scopes, key storage options, common failure modes, and practical debugging techniques for embedded Linux platforms.","2026-03-16T18:11:00.000Z",{"_path":102,"title":103,"description":104},"/image-manifest","ProteanOS Image Manifest","This document lists all hero and supporting images needed for the website.",{"_path":52,"_dir":106,"_draft":107,"_partial":107,"_locale":108,"title":53,"description":54,"date":55,"lastmod":109,"draft":107,"hero":110,"tags":111,"category":106,"body":115,"_type":1183,"_id":1184,"_source":1185,"_file":1186,"_stem":1187,"_extension":1188},"doc",false,"","2026-11-16T00:00:00.000Z","/images/hero/cross-compilation-toolchain-triplet-clib-2026-1600x900.jpg",[112,113,114],"Embedded Linux","ProteanOS","Toolchains",{"type":116,"children":117,"toc":1163},"root",[118,126,133,155,204,217,222,228,233,239,244,288,293,298,341,347,440,454,491,497,502,515,521,542,627,744,749,762,768,773,779,792,797,803,824,829,835,840,846,851,856,862,867,888,894,904,914,924,958,964,969,1110,1129,1135,1140,1145,1157],{"type":119,"tag":120,"props":121,"children":122},"element","p",{},[123],{"type":124,"value":125},"text","Cross-compilation is the foundational skill for embedded Linux work. You build on one architecture (usually x86_64) and produce binaries for another (ARM, RISC-V, MIPS, or others). Getting the toolchain right determines whether your binaries actually run on target hardware, whether they link against the correct libraries, and whether security patches apply cleanly over the product's lifetime.",{"type":119,"tag":127,"props":128,"children":130},"h2",{"id":129},"the-target-triplet-decoded",[131],{"type":124,"value":132},"The target triplet, decoded",{"type":119,"tag":120,"props":134,"children":135},{},[136,138,145,147,153],{"type":124,"value":137},"Every cross-compilation toolchain encodes its target in a triplet (or quadruplet). The format is ",{"type":119,"tag":139,"props":140,"children":142},"code",{"className":141},[],[143],{"type":124,"value":144},"arch-vendor-os-abi",{"type":124,"value":146}," or simply ",{"type":119,"tag":139,"props":148,"children":150},{"className":149},[],[151],{"type":124,"value":152},"arch-os-abi",{"type":124,"value":154},". Examples:",{"type":119,"tag":156,"props":157,"children":158},"ul",{},[159,171,182,193],{"type":119,"tag":160,"props":161,"children":162},"li",{},[163,169],{"type":119,"tag":139,"props":164,"children":166},{"className":165},[],[167],{"type":124,"value":168},"arm-linux-gnueabihf",{"type":124,"value":170},"  -  ARM, Linux, glibc, hard-float ABI",{"type":119,"tag":160,"props":172,"children":173},{},[174,180],{"type":119,"tag":139,"props":175,"children":177},{"className":176},[],[178],{"type":124,"value":179},"aarch64-linux-musl",{"type":124,"value":181},"  -  64-bit ARM, Linux, musl libc",{"type":119,"tag":160,"props":183,"children":184},{},[185,191],{"type":119,"tag":139,"props":186,"children":188},{"className":187},[],[189],{"type":124,"value":190},"riscv64-unknown-linux-gnu",{"type":124,"value":192},"  -  64-bit RISC-V, Linux, glibc",{"type":119,"tag":160,"props":194,"children":195},{},[196,202],{"type":119,"tag":139,"props":197,"children":199},{"className":198},[],[200],{"type":124,"value":201},"arm-linux-musleabi",{"type":124,"value":203},"  -  ARM, Linux, musl, EABI soft or softfp",{"type":119,"tag":120,"props":205,"children":206},{},[207,209,215],{"type":124,"value":208},"Each component matters. The architecture sets the instruction set. The OS component (almost always ",{"type":119,"tag":139,"props":210,"children":212},{"className":211},[],[213],{"type":124,"value":214},"linux",{"type":124,"value":216},") selects the kernel API headers. The ABI suffix determines calling conventions and, critically, which C library the toolchain was built against.",{"type":119,"tag":120,"props":218,"children":219},{},[220],{"type":124,"value":221},"Getting the triplet wrong produces binaries that segfault on startup or, worse, appear to work but exhibit subtle floating-point corruption on certain inputs.",{"type":119,"tag":127,"props":223,"children":225},{"id":224},"glibc-vs-musl-compatibility",[226],{"type":124,"value":227},"glibc vs musl compatibility",{"type":119,"tag":120,"props":229,"children":230},{},[231],{"type":124,"value":232},"The C library choice shapes your entire userspace. Both glibc and musl implement POSIX, but their design philosophies and practical trade-offs differ significantly.",{"type":119,"tag":234,"props":235,"children":237},"h3",{"id":236},"glibc",[238],{"type":124,"value":236},{"type":119,"tag":120,"props":240,"children":241},{},[242],{"type":124,"value":243},"glibc is the GNU C Library. It is used by many Linux distributions and is a common target for vendor-provided userspace binaries. Key characteristics:",{"type":119,"tag":156,"props":245,"children":246},{},[247,258,268,278],{"type":119,"tag":160,"props":248,"children":249},{},[250,256],{"type":119,"tag":251,"props":252,"children":253},"strong",{},[254],{"type":124,"value":255},"Broad compatibility:",{"type":124,"value":257}," Many prebuilt Linux binaries target glibc. Verify each supplier binary and its required symbol versions.",{"type":119,"tag":160,"props":259,"children":260},{},[261,266],{"type":119,"tag":251,"props":262,"children":263},{},[264],{"type":124,"value":265},"NSS and locale support:",{"type":124,"value":267}," Full Name Service Switch, locale handling, and iconv. Test resolver, locale and NSS dependencies used by the application.",{"type":119,"tag":160,"props":269,"children":270},{},[271,276],{"type":119,"tag":251,"props":272,"children":273},{},[274],{"type":124,"value":275},"Larger footprint:",{"type":124,"value":277}," Measure the complete deployed library and locale footprint. Installed locale data can change the storage budget.",{"type":119,"tag":160,"props":279,"children":280},{},[281,286],{"type":119,"tag":251,"props":282,"children":283},{},[284],{"type":124,"value":285},"Stable ABI:",{"type":124,"value":287}," glibc maintains aggressive backward compatibility. Check required symbol versions, architecture and libraries before relying on compatibility.",{"type":119,"tag":234,"props":289,"children":291},{"id":290},"musl",[292],{"type":124,"value":290},{"type":119,"tag":120,"props":294,"children":295},{},[296],{"type":124,"value":297},"musl is a lightweight C library designed for correctness and simplicity. Key characteristics:",{"type":119,"tag":156,"props":299,"children":300},{},[301,311,321,331],{"type":119,"tag":160,"props":302,"children":303},{},[304,309],{"type":119,"tag":251,"props":305,"children":306},{},[307],{"type":124,"value":308},"Small footprint:",{"type":124,"value":310}," Measure the selected libraries and application binaries. Static linking includes the required library code, whose total size depends on the application.",{"type":119,"tag":160,"props":312,"children":313},{},[314,319],{"type":119,"tag":251,"props":315,"children":316},{},[317],{"type":124,"value":318},"Static linking friendly:",{"type":124,"value":320}," musl is explicitly designed for static linking. Still verify the kernel interfaces, architecture extensions and external runtime files required by the application.",{"type":119,"tag":160,"props":322,"children":323},{},[324,329],{"type":119,"tag":251,"props":325,"children":326},{},[327],{"type":124,"value":328},"Different extension support:",{"type":124,"value":330}," Code that depends on glibc-specific interfaces may need porting. Test the exact functions used by the application.",{"type":119,"tag":160,"props":332,"children":333},{},[334,339],{"type":119,"tag":251,"props":335,"children":336},{},[337],{"type":124,"value":338},"No glibc NSS modules:",{"type":124,"value":340}," DNS resolution uses a built-in resolver. Complex name-resolution stacks (LDAP, mDNS) require additional work.",{"type":119,"tag":234,"props":342,"children":344},{"id":343},"practical-decision-criteria",[345],{"type":124,"value":346},"Practical decision criteria",{"type":119,"tag":348,"props":349,"children":350},"table",{},[351,370],{"type":119,"tag":352,"props":353,"children":354},"thead",{},[355],{"type":119,"tag":356,"props":357,"children":358},"tr",{},[359,365],{"type":119,"tag":360,"props":361,"children":362},"th",{},[363],{"type":124,"value":364},"Decision",{"type":119,"tag":360,"props":366,"children":367},{},[368],{"type":124,"value":369},"Compatibility evidence to collect",{"type":119,"tag":371,"props":372,"children":373},"tbody",{},[374,388,401,414,427],{"type":119,"tag":356,"props":375,"children":376},{},[377,383],{"type":119,"tag":378,"props":379,"children":380},"td",{},[381],{"type":124,"value":382},"Vendor binaries",{"type":119,"tag":378,"props":384,"children":385},{},[386],{"type":124,"value":387},"Required interpreter, architecture, shared libraries and symbol versions",{"type":119,"tag":356,"props":389,"children":390},{},[391,396],{"type":119,"tag":378,"props":392,"children":393},{},[394],{"type":124,"value":395},"Dynamic or static linking",{"type":119,"tag":378,"props":397,"children":398},{},[399],{"type":124,"value":400},"Complete installed footprint, plugin behaviour and update responsibility",{"type":119,"tag":356,"props":402,"children":403},{},[404,409],{"type":119,"tag":378,"props":405,"children":406},{},[407],{"type":124,"value":408},"Resolver and locale behaviour",{"type":119,"tag":378,"props":410,"children":411},{},[412],{"type":124,"value":413},"Required NSS modules, lookup order, character handling and application tests",{"type":119,"tag":356,"props":415,"children":416},{},[417,422],{"type":119,"tag":378,"props":418,"children":419},{},[420],{"type":124,"value":421},"Debugging",{"type":119,"tag":378,"props":423,"children":424},{},[425],{"type":124,"value":426},"Matching debug symbols, target tools and repeatable failure reproduction",{"type":119,"tag":356,"props":428,"children":429},{},[430,435],{"type":119,"tag":378,"props":431,"children":432},{},[433],{"type":124,"value":434},"Hardening",{"type":119,"tag":378,"props":436,"children":437},{},[438],{"type":124,"value":439},"Actual compiler/linker flags, kernel features and verification of the generated executable",{"type":119,"tag":120,"props":441,"children":442},{},[443,445,452],{"type":124,"value":444},"Choose with the actual dependency set. An unavailable source dependency or proprietary glibc binary can decide the libc choice before size matters. The ",{"type":119,"tag":446,"props":447,"children":449},"a",{"href":448},"https://wiki.musl-libc.org/functional-differences-from-glibc.html",[450],{"type":124,"value":451},"musl functional differences",{"type":124,"value":453}," identify resolver, dynamic-linker, threading and locale cases to include in application tests. Source portability, resolver behaviour and dynamic-loading requirements need target tests.",{"type":119,"tag":455,"props":456,"children":460},"div",{"className":457},[458,459],"callout","callout-success",[461],{"type":119,"tag":455,"props":462,"children":465},{"className":463},[464],"callout-content",[466,473],{"type":119,"tag":120,"props":467,"children":470},{"className":468},[469],"callout-title",[471],{"type":124,"value":472},"Understand what sits beneath the toolchain",{"type":119,"tag":120,"props":474,"children":475},{},[476,478,489],{"type":124,"value":477},"Target triplets, ABIs, and C library behaviour all trace back to OS fundamentals - how the kernel exposes syscalls, how the linker resolves symbols, and how processes load shared libraries. The ",{"type":119,"tag":446,"props":479,"children":486},{"href":480,"target":481,"rel":482},"/posgo/linux-os-course","_blank",[483,484,485],"nofollow","noopener","noreferrer",[487],{"type":124,"value":488},"Fundamentals of Operating Systems",{"type":124,"value":490}," course covers these mechanisms in depth.",{"type":119,"tag":127,"props":492,"children":494},{"id":493},"build-host-and-target",[495],{"type":124,"value":496},"Build, host and target",{"type":119,"tag":120,"props":498,"children":499},{},[500],{"type":124,"value":501},"In GNU build terminology, build names the machine running the build, host names the machine where the resulting program runs, and target matters when that program itself produces code. For a cross compiler, host and target can therefore differ. For an ordinary application, record build and host explicitly instead of assuming a triplet proves the whole environment.",{"type":119,"tag":120,"props":503,"children":504},{},[505,507,513],{"type":124,"value":506},"An ",{"type":119,"tag":139,"props":508,"children":510},{"className":509},[],[511],{"type":124,"value":512},"arm-none-eabi",{"type":124,"value":514}," bare-metal compiler does not supply a Linux userspace ABI. A Linux compiler and sysroot supply different startup objects and libraries. Use the SDK selected for the board and operating environment, then inspect a known program before attempting the application port.",{"type":119,"tag":127,"props":516,"children":518},{"id":517},"inspecting-a-known-binary",[519],{"type":124,"value":520},"Inspecting a known binary",{"type":119,"tag":120,"props":522,"children":523},{},[524,526,532,534,540],{"type":124,"value":525},"Build the small ",{"type":119,"tag":139,"props":527,"children":529},{"className":528},[],[530],{"type":124,"value":531},"test.c",{"type":124,"value":533}," fixture in the verification workflow below using your selected SDK. Inspect its bytes locally with current binutils. These commands read the known executable without running it. ",{"type":119,"tag":446,"props":535,"children":537},{"href":536},"https://sourceware.org/binutils/docs/binutils/readelf.html",[538],{"type":124,"value":539},"GNU readelf documentation",{"type":124,"value":541},".",{"type":119,"tag":543,"props":544,"children":548},"pre",{"className":545,"code":546,"language":547,"meta":108,"style":108},"language-bash shiki shiki-themes github-dark","readelf -h test\nreadelf -l test\nreadelf -d test\nreadelf --version-info test\n","bash",[549],{"type":119,"tag":139,"props":550,"children":551},{"__ignoreMap":108},[552,576,593,610],{"type":119,"tag":553,"props":554,"children":557},"span",{"class":555,"line":556},"line",1,[558,564,570],{"type":119,"tag":553,"props":559,"children":561},{"style":560},"--shiki-default:#B392F0",[562],{"type":124,"value":563},"readelf",{"type":119,"tag":553,"props":565,"children":567},{"style":566},"--shiki-default:#79B8FF",[568],{"type":124,"value":569}," -h",{"type":119,"tag":553,"props":571,"children":573},{"style":572},"--shiki-default:#9ECBFF",[574],{"type":124,"value":575}," test\n",{"type":119,"tag":553,"props":577,"children":579},{"class":555,"line":578},2,[580,584,589],{"type":119,"tag":553,"props":581,"children":582},{"style":560},[583],{"type":124,"value":563},{"type":119,"tag":553,"props":585,"children":586},{"style":566},[587],{"type":124,"value":588}," -l",{"type":119,"tag":553,"props":590,"children":591},{"style":572},[592],{"type":124,"value":575},{"type":119,"tag":553,"props":594,"children":596},{"class":555,"line":595},3,[597,601,606],{"type":119,"tag":553,"props":598,"children":599},{"style":560},[600],{"type":124,"value":563},{"type":119,"tag":553,"props":602,"children":603},{"style":566},[604],{"type":124,"value":605}," -d",{"type":119,"tag":553,"props":607,"children":608},{"style":572},[609],{"type":124,"value":575},{"type":119,"tag":553,"props":611,"children":613},{"class":555,"line":612},4,[614,618,623],{"type":119,"tag":553,"props":615,"children":616},{"style":560},[617],{"type":124,"value":563},{"type":119,"tag":553,"props":619,"children":620},{"style":566},[621],{"type":124,"value":622}," --version-info",{"type":119,"tag":553,"props":624,"children":625},{"style":572},[626],{"type":124,"value":575},{"type":119,"tag":348,"props":628,"children":629},{},[630,651],{"type":119,"tag":352,"props":631,"children":632},{},[633],{"type":119,"tag":356,"props":634,"children":635},{},[636,641,646],{"type":119,"tag":360,"props":637,"children":638},{},[639],{"type":124,"value":640},"Inspection",{"type":119,"tag":360,"props":642,"children":643},{},[644],{"type":124,"value":645},"Evidence",{"type":119,"tag":360,"props":647,"children":648},{},[649],{"type":124,"value":650},"Remaining check",{"type":119,"tag":371,"props":652,"children":653},{},[654,672,690,708,726],{"type":119,"tag":356,"props":655,"children":656},{},[657,662,667],{"type":119,"tag":378,"props":658,"children":659},{},[660],{"type":124,"value":661},"ELF header",{"type":119,"tag":378,"props":663,"children":664},{},[665],{"type":124,"value":666},"Machine, class, byte order and ABI flags",{"type":119,"tag":378,"props":668,"children":669},{},[670],{"type":124,"value":671},"Board instruction-set extensions and calling convention",{"type":119,"tag":356,"props":673,"children":674},{},[675,680,685],{"type":119,"tag":378,"props":676,"children":677},{},[678],{"type":124,"value":679},"Program headers",{"type":119,"tag":378,"props":681,"children":682},{},[683],{"type":124,"value":684},"Requested interpreter for a dynamic executable",{"type":119,"tag":378,"props":686,"children":687},{},[688],{"type":124,"value":689},"That exact loader exists in the target image",{"type":119,"tag":356,"props":691,"children":692},{},[693,698,703],{"type":119,"tag":378,"props":694,"children":695},{},[696],{"type":124,"value":697},"Dynamic section",{"type":119,"tag":378,"props":699,"children":700},{},[701],{"type":124,"value":702},"Declared shared-library dependencies",{"type":119,"tag":378,"props":704,"children":705},{},[706],{"type":124,"value":707},"Compatible target versions and runtime-loaded plugins",{"type":119,"tag":356,"props":709,"children":710},{},[711,716,721],{"type":119,"tag":378,"props":712,"children":713},{},[714],{"type":124,"value":715},"Version information",{"type":119,"tag":378,"props":717,"children":718},{},[719],{"type":124,"value":720},"Required versioned symbols such as GLIBC versions",{"type":119,"tag":378,"props":722,"children":723},{},[724],{"type":124,"value":725},"Target libraries export all required versions",{"type":119,"tag":356,"props":727,"children":728},{},[729,734,739],{"type":119,"tag":378,"props":730,"children":731},{},[732],{"type":124,"value":733},"Static linking",{"type":119,"tag":378,"props":735,"children":736},{},[737],{"type":124,"value":738},"Dependency code included at link time",{"type":119,"tag":378,"props":740,"children":741},{},[742],{"type":124,"value":743},"Kernel support, runtime files, licences and security update process",{"type":119,"tag":120,"props":745,"children":746},{},[747],{"type":124,"value":748},"A glibc executable that requests a glibc loader will not become compatible simply by renaming a musl loader. Recompile from source where supported and test functional differences. A static executable can still require configuration files, kernel features and dynamically selected modules.",{"type":119,"tag":120,"props":750,"children":751},{},[752,754,760],{"type":124,"value":753},"Download the ",{"type":119,"tag":446,"props":755,"children":757},{"href":756},"/resources/binary-compatibility-v1.md",[758],{"type":124,"value":759},"binary compatibility checklist",{"type":124,"value":761},". Keep interpreter paths, extension requirements and actual target test status with the source revision. The checklist leaves unknown facts explicit and requires no binary upload.",{"type":119,"tag":127,"props":763,"children":765},{"id":764},"toolchain-sources",[766],{"type":124,"value":767},"Toolchain sources",{"type":119,"tag":120,"props":769,"children":770},{},[771],{"type":124,"value":772},"You have three main options for obtaining a cross-compilation toolchain:",{"type":119,"tag":234,"props":774,"children":776},{"id":775},"_1-pre-built-toolchains",[777],{"type":124,"value":778},"1. Pre-built toolchains",{"type":119,"tag":120,"props":780,"children":781},{},[782,784,790],{"type":124,"value":783},"Bootlin provides pre-built toolchains for dozens of architecture and C library combinations, freely downloadable. These are tested and versioned. The guide to ",{"type":119,"tag":446,"props":785,"children":787},{"href":786},"/doc/bootlin-toolchains-arm-riscv-2026/",[788],{"type":124,"value":789},"choosing a Bootlin toolchain",{"type":124,"value":791}," covers selecting the right variant.",{"type":119,"tag":120,"props":793,"children":794},{},[795],{"type":124,"value":796},"Arm GNU Toolchain releases distinguish Linux userspace targets from bare-metal targets. Select the release artifact for the required execution environment and host.",{"type":119,"tag":234,"props":798,"children":800},{"id":799},"_2-build-system-generated-toolchains",[801],{"type":124,"value":802},"2. Build-system-generated toolchains",{"type":119,"tag":120,"props":804,"children":805},{},[806,808,814,816,822],{"type":124,"value":807},"When ",{"type":119,"tag":446,"props":809,"children":811},{"href":810},"/doc/buildroot-vs-yocto-2026/",[812],{"type":124,"value":813},"choosing between Buildroot and Yocto",{"type":124,"value":815},", consider the SDK alongside the firmware build. Both can generate cross-compilation toolchains. Yocto produces an installable SDK (",{"type":119,"tag":139,"props":817,"children":819},{"className":818},[],[820],{"type":124,"value":821},"populate_sdk",{"type":124,"value":823},") that includes the toolchain, sysroot, and environment setup script. Buildroot can output a relocatable toolchain tarball.",{"type":119,"tag":120,"props":825,"children":826},{},[827],{"type":124,"value":828},"The advantage is exact version alignment between the toolchain and the target image. Measure toolchain generation time on your own build host and cache configuration.",{"type":119,"tag":234,"props":830,"children":832},{"id":831},"_3-custom-built-with-crosstool-ng",[833],{"type":124,"value":834},"3. Custom-built with crosstool-NG",{"type":119,"tag":120,"props":836,"children":837},{},[838],{"type":124,"value":839},"crosstool-NG is a dedicated toolchain builder. It provides a menuconfig interface for selecting GCC version, binutils version, C library, kernel headers, and target architecture. This is the right choice when you need a specific combination not available as a pre-built download.",{"type":119,"tag":127,"props":841,"children":843},{"id":842},"kernel-header-version-alignment",[844],{"type":124,"value":845},"Kernel header version alignment",{"type":119,"tag":120,"props":847,"children":848},{},[849],{"type":124,"value":850},"The toolchain's kernel headers define the kernel API available to userspace. A toolchain built with Linux 5.15 headers can produce binaries that run on Linux 5.15 and newer kernels. Running those binaries on an older kernel may fail if they use syscalls introduced after the header version.",{"type":119,"tag":120,"props":852,"children":853},{},[854],{"type":124,"value":855},"Rule of thumb: build the toolchain with kernel headers matching or older than the oldest kernel you intend to deploy to.",{"type":119,"tag":127,"props":857,"children":859},{"id":858},"multiarch-and-multiple-targets",[860],{"type":124,"value":861},"Multiarch and multiple targets",{"type":119,"tag":120,"props":863,"children":864},{},[865],{"type":124,"value":866},"When your product family spans multiple architectures (e.g., Cortex-A53 for the main processor and Cortex-M4 for a co-processor), you need multiple toolchains. Keep them in separate prefix directories and use environment variables or wrapper scripts to switch between them.",{"type":119,"tag":120,"props":868,"children":869},{},[870,872,878,880,886],{"type":124,"value":871},"ProteanOS's ",{"type":119,"tag":446,"props":873,"children":875},{"href":874},"/dev/pkg/needed/",[876],{"type":124,"value":877},"packaging requirements",{"type":124,"value":879}," support multi-architecture builds through the Architecture field in control files. The ",{"type":119,"tag":446,"props":881,"children":883},{"href":882},"/dev/prokit/",[884],{"type":124,"value":885},"ProKit",{"type":124,"value":887}," toolchain management handles sysroot isolation for cross-architecture builds.",{"type":119,"tag":127,"props":889,"children":891},{"id":890},"common-pitfalls",[892],{"type":124,"value":893},"Common pitfalls",{"type":119,"tag":120,"props":895,"children":896},{},[897,902],{"type":119,"tag":251,"props":898,"children":899},{},[900],{"type":124,"value":901},"Mixing userspace ABIs:",{"type":124,"value":903}," Check every linked object and shared library for compatible architecture, calling convention and libc. A kernel and userspace can use different compiler versions if their respective build requirements are met.",{"type":119,"tag":120,"props":905,"children":906},{},[907,912],{"type":119,"tag":251,"props":908,"children":909},{},[910],{"type":124,"value":911},"Floating-point ABI mismatch:",{"type":124,"value":913}," On ARM, incompatible floating-point calling conventions can cause link-time errors or runtime failures. The entire userspace - including every shared library - must use the same float ABI.",{"type":119,"tag":120,"props":915,"children":916},{},[917,922],{"type":119,"tag":251,"props":918,"children":919},{},[920],{"type":124,"value":921},"Sysroot contamination:",{"type":124,"value":923}," Installing host packages into the cross-compilation sysroot introduces host-architecture libraries that produce confusing linker errors. Keep the sysroot pristine.",{"type":119,"tag":120,"props":925,"children":926},{},[927,932,934,940,942,948,950,956],{"type":119,"tag":251,"props":928,"children":929},{},[930],{"type":124,"value":931},"Missing kernel features:",{"type":124,"value":933}," A toolchain built with newer headers running on an older kernel may call ",{"type":119,"tag":139,"props":935,"children":937},{"className":936},[],[938],{"type":124,"value":939},"copy_file_range()",{"type":124,"value":941}," or ",{"type":119,"tag":139,"props":943,"children":945},{"className":944},[],[946],{"type":124,"value":947},"io_uring",{"type":124,"value":949}," syscalls that don't exist, producing ",{"type":119,"tag":139,"props":951,"children":953},{"className":952},[],[954],{"type":124,"value":955},"ENOSYS",{"type":124,"value":957}," errors at runtime.",{"type":119,"tag":127,"props":959,"children":961},{"id":960},"verification-workflow",[962],{"type":124,"value":963},"Verification workflow",{"type":119,"tag":120,"props":965,"children":966},{},[967],{"type":124,"value":968},"After setting up a toolchain, verify it before starting development:",{"type":119,"tag":543,"props":970,"children":972},{"className":545,"code":971,"language":547,"meta":108,"style":108},"# Check the target triplet\n${CROSS_COMPILE}gcc -dumpmachine\n\n# Verify the C library\n${CROSS_COMPILE}gcc -print-file-name=libc.so\n\n# Build and inspect a test binary\necho 'int main(){return 0;}' > test.c\n${CROSS_COMPILE}gcc -o test test.c\nfile test\nreadelf -h test\n",[973],{"type":119,"tag":139,"props":974,"children":975},{"__ignoreMap":108},[976,985,994,1003,1011,1031,1039,1048,1072,1081,1094],{"type":119,"tag":553,"props":977,"children":978},{"class":555,"line":556},[979],{"type":119,"tag":553,"props":980,"children":982},{"style":981},"--shiki-default:#6A737D",[983],{"type":124,"value":984},"# Check the target triplet\n",{"type":119,"tag":553,"props":986,"children":987},{"class":555,"line":578},[988],{"type":119,"tag":553,"props":989,"children":991},{"style":990},"--shiki-default:#E1E4E8",[992],{"type":124,"value":993},"${CROSS_COMPILE}gcc -dumpmachine\n",{"type":119,"tag":553,"props":995,"children":996},{"class":555,"line":595},[997],{"type":119,"tag":553,"props":998,"children":1000},{"emptyLinePlaceholder":999},true,[1001],{"type":124,"value":1002},"\n",{"type":119,"tag":553,"props":1004,"children":1005},{"class":555,"line":612},[1006],{"type":119,"tag":553,"props":1007,"children":1008},{"style":981},[1009],{"type":124,"value":1010},"# Verify the C library\n",{"type":119,"tag":553,"props":1012,"children":1014},{"class":555,"line":1013},5,[1015,1020,1026],{"type":119,"tag":553,"props":1016,"children":1017},{"style":990},[1018],{"type":124,"value":1019},"${CROSS_COMPILE}gcc -print-file-name",{"type":119,"tag":553,"props":1021,"children":1023},{"style":1022},"--shiki-default:#F97583",[1024],{"type":124,"value":1025},"=",{"type":119,"tag":553,"props":1027,"children":1028},{"style":572},[1029],{"type":124,"value":1030},"libc.so\n",{"type":119,"tag":553,"props":1032,"children":1034},{"class":555,"line":1033},6,[1035],{"type":119,"tag":553,"props":1036,"children":1037},{"emptyLinePlaceholder":999},[1038],{"type":124,"value":1002},{"type":119,"tag":553,"props":1040,"children":1042},{"class":555,"line":1041},7,[1043],{"type":119,"tag":553,"props":1044,"children":1045},{"style":981},[1046],{"type":124,"value":1047},"# Build and inspect a test binary\n",{"type":119,"tag":553,"props":1049,"children":1051},{"class":555,"line":1050},8,[1052,1057,1062,1067],{"type":119,"tag":553,"props":1053,"children":1054},{"style":566},[1055],{"type":124,"value":1056},"echo",{"type":119,"tag":553,"props":1058,"children":1059},{"style":572},[1060],{"type":124,"value":1061}," 'int main(){return 0;}'",{"type":119,"tag":553,"props":1063,"children":1064},{"style":1022},[1065],{"type":124,"value":1066}," >",{"type":119,"tag":553,"props":1068,"children":1069},{"style":572},[1070],{"type":124,"value":1071}," test.c\n",{"type":119,"tag":553,"props":1073,"children":1075},{"class":555,"line":1074},9,[1076],{"type":119,"tag":553,"props":1077,"children":1078},{"style":990},[1079],{"type":124,"value":1080},"${CROSS_COMPILE}gcc -o test test.c\n",{"type":119,"tag":553,"props":1082,"children":1084},{"class":555,"line":1083},10,[1085,1090],{"type":119,"tag":553,"props":1086,"children":1087},{"style":560},[1088],{"type":124,"value":1089},"file",{"type":119,"tag":553,"props":1091,"children":1092},{"style":572},[1093],{"type":124,"value":575},{"type":119,"tag":553,"props":1095,"children":1097},{"class":555,"line":1096},11,[1098,1102,1106],{"type":119,"tag":553,"props":1099,"children":1100},{"style":560},[1101],{"type":124,"value":563},{"type":119,"tag":553,"props":1103,"children":1104},{"style":566},[1105],{"type":124,"value":569},{"type":119,"tag":553,"props":1107,"children":1108},{"style":572},[1109],{"type":124,"value":575},{"type":119,"tag":120,"props":1111,"children":1112},{},[1113,1115,1120,1122,1127],{"type":124,"value":1114},"The ",{"type":119,"tag":139,"props":1116,"children":1118},{"className":1117},[],[1119],{"type":124,"value":1089},{"type":124,"value":1121}," output should show the correct architecture and ABI. The ",{"type":119,"tag":139,"props":1123,"children":1125},{"className":1124},[],[1126],{"type":124,"value":563},{"type":124,"value":1128}," output confirms the ELF machine type and flags.",{"type":119,"tag":127,"props":1130,"children":1132},{"id":1131},"toolchain-lifecycle-and-updates",[1133],{"type":124,"value":1134},"Toolchain lifecycle and updates",{"type":119,"tag":120,"props":1136,"children":1137},{},[1138],{"type":124,"value":1139},"Toolchain updates are not free. A GCC major version bump may change code generation, optimization behaviour, or default warning levels. Plan toolchain updates as discrete milestones with full regression testing.",{"type":119,"tag":120,"props":1141,"children":1142},{},[1143],{"type":124,"value":1144},"For long-lived products, pin the toolchain version in your build configuration and document it. When security patches require a newer GCC (rare but possible for compiler-level mitigations like stack clash protection), budget time for validation.",{"type":119,"tag":120,"props":1146,"children":1147},{},[1148,1149,1155],{"type":124,"value":1114},{"type":119,"tag":446,"props":1150,"children":1152},{"href":1151},"/doc/install/",[1153],{"type":124,"value":1154},"installation guide",{"type":124,"value":1156}," covers setting up the ProteanOS development toolchain for first-time contributors, including toolchain version requirements and verification steps.",{"type":119,"tag":1158,"props":1159,"children":1160},"style",{},[1161],{"type":124,"value":1162},"html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}",{"title":108,"searchDepth":578,"depth":578,"links":1164},[1165,1166,1171,1172,1173,1178,1179,1180,1181,1182],{"id":129,"depth":578,"text":132},{"id":224,"depth":578,"text":227,"children":1167},[1168,1169,1170],{"id":236,"depth":595,"text":236},{"id":290,"depth":595,"text":290},{"id":343,"depth":595,"text":346},{"id":493,"depth":578,"text":496},{"id":517,"depth":578,"text":520},{"id":764,"depth":578,"text":767,"children":1174},[1175,1176,1177],{"id":775,"depth":595,"text":778},{"id":799,"depth":595,"text":802},{"id":831,"depth":595,"text":834},{"id":842,"depth":578,"text":845},{"id":858,"depth":578,"text":861},{"id":890,"depth":578,"text":893},{"id":960,"depth":578,"text":963},{"id":1131,"depth":578,"text":1134},"markdown","content:doc:cross-compilation-toolchain-triplet-clib-2026.md","content","doc/cross-compilation-toolchain-triplet-clib-2026.md","doc/cross-compilation-toolchain-triplet-clib-2026","md",1795684259747]