Knowledge · SBOM

SBOMs without source code: what the binary tells you about a C project

Yes, straight from the shipped firmware, and far more from an ELF or AXF than from a BIN.

Even a plain C project without a package manager leaves traces of its libraries in the binary: function names, version records, source paths and version strings.

As of 23 October 2026 · 6 min readYou make the conformity statement. This page and our reports provide technical findings as its basis.

The test subject
Project
AmbiqSuite, ble_freertos_amota, Keil MDK
Files
ble_freertos_amota.axf and .bin, the same build
SHA-256 (AXF)
f33f7663bbd8b3fb4da733c57b008e439265ac688438b5c637da3c890e19fd13

Public on GitHub, commit e280cbd

The test subject: Public on GitHub, commit e280cbd

Why is a C project hard to inventory?

With Node, Python or Java, a lock file states which packages in which versions are built in, and an SBOM tool reads that file. A C project rarely has one: libraries sit in the project as copied source, come from a vendor SDK or as a precompiled library. Tools that only read manifests then find little or nothing.

The linker puts everything into one binary. That is exactly where the libraries can be found again.

What does the binary reveal about its libraries?

Trace in the binaryWhat it evidences
Function names (symbol table)Which library is linked, for example mbedtls_, lwip_, xTask
Source paths (debug information)Origin, often with the version in a folder name
Version recordsA version the library stores itself, for example RTX5
Version strings as textA version, where the library compiles one in
Section .commentCompiler and version
Package databases (Linux)Packages with versions from dpkg, opkg, apk or rpm
Symbols in the AXF, none in the BIN
nm ble_freertos_amota.axf | wc -lnm ble_freertos_amota.bin

Output

2842
nm: ble_freertos_amota.bin: file format not recognized

Which file reveals what, with Keil, IAR and GCC?

Keil MDK, IAR Embedded Workbench and GCC write the linker output as ELF, only with a different extension. Next to it come a map file, a flash image and the project file. Each answers a different question.

FileWhat it contains
.axf (Keil), .out (IAR), .elf (GCC)Symbols, debug information with source paths, section .comment with compiler and version
.mapWhich objects and library members end up in the image, and what the linker removed
.bin, .hexOnly the bytes for the flash, so only text a library puts into flash
.uvprojx, .ewp, .iocPack and package versions, as the project names them

Where does each component sit in the test subject?

Each of the test subject's 6 components has a location in the file: the string at which it was recognised, with section and offset. With the AXF you find every row again with strings -t x.

ComponentLocation in the AXF
FreeRTOS 10.1.1../../../../../third_party/FreeRTOSv10.1.1/Source/timers.c in .debug_info, offset 0x1fe9c
Arm Cordio BLE stack (no version)../../../../../third_party/exactle/wsf/sources/port/freertos/wsf_trace.c in FLASH, offset 0x17f3c, also in the BIN
micro-ecc (no version)../../../../../third_party/uecc/uECC.h in .debug_info, offset 0x4cd18
Ambiq HAL (no version)ERROR_CHECK_VOID am_hal_ble_initialize(0, &BLE) in FLASH, offset 0x2e14, also in the BIN
Arm C library (armlib) 5.06 update 6 (build 750)C:\Keil_v5\ARM\ARMCC\Bin\..\lib\armlib\c_w.l in .comment, offset 0x1dbd5b
Arm Compiler 5.06Component: ARM Compiler 5.06 update 6 (build 750) Tool: ArmCC [4d3637] in .debug_info, offset 0x1fed7

What are the pitfalls of binary analysis?

  1. 1

    The BIN instead of the ELF

    whether a version survives in the BIN depends on where it sits. In the IAR example the FreeRTOS version is in flash and appears in the BIN at 0x890c. In the Keil and GCC examples it is only in the debug information; the BIN does not name it.

  2. 2

    Code in the source tree but not in the device

    all three linkers remove unused code in these builds. vTaskEndScheduler is in tasks.c, but missing from the Keil AXF and listed among the removed sections in the GCC build. In the IAR build, FreeRTOS_DNS.o and FreeRTOS_DHCP.o contribute nothing to the image. A bill of materials from the source tree cannot tell this apart.

  3. 3

    Precompiled libraries without a version

    the Ambiq HAL in the Keil example and TouchGFX in the GCC example come as finished archives. Their function names are in the binary, their version is not. For TouchGFX the .ioc names 4.17.0; for the HAL the file holds no version, and the field stays blank.

The FreeRTOS version in the BIN, three builds
strings -a ble_freertos_amota.bin | grep -c "FreeRTOSv10.1.1"strings -a -t x ITAT_RNDIS.bin | grep "V10.3.1"strings -a STM32F429I-Oscilloscope.bin | grep -c "V10.3.1"

Output

0
   890c V10.3.1
0
vTaskEndScheduler: in the source, not in the Keil AXF, removed in the GCC build
grep -n "^void vTaskEndScheduler" tasks.cnm ble_freertos_amota.axf | grep -c "vTaskEndScheduler"grep -A1 "^ \.text\.vTaskEndScheduler" STM32F429I-Oscilloscope.map

Output

2061:void vTaskEndScheduler( void )
0
 .text.vTaskEndScheduler
                0x0000000000000000       0x20 ./Middlewares/FreeRTOS/tasks.o

What stays open without source code?

A binary evidences what was linked. It does not always evidence the version: libraries without a version string and without a source path can be named but not dated. Checksums of individual source files cannot be recomputed from the finished binary either. An honest SBOM from the binary then leaves the version blank instead of guessing it, and says where every version it does name comes from.

On the test subject it looks like this: three of the six components carry a version the binary evidences. For the Bluetooth library, the crypto library and the hardware driver the build holds no version, so the field stays blank.

BSI TR-03183-2 requires every component used by the linker to be listed in the SBOM, statically and dynamically linked alike. Data lost in the assembly, such as the hash or file name of a single library, is omitted under the guideline. Tools that only read manifests miss these components.

Can this run automatically?

Microcontroller builds from Keil MDK, IAR or GNU Arm. It finds the libraries built in, with their versions, for example CMSIS packs, RTX5, FreeRTOS, lwIP, mbedTLS and STM32Cube. Plus hardening (stack canary, MPU, privilege separation) and embedded keys.

A BIN without a file system. When the AXF of the same build is there, the BIN gets its components with their versions. On its own it names the components the image itself evidences, for example TLS libraries.

The image as you ship it: archives, raw images, file systems (SquashFS, JFFS2, CramFS, UBI, YAFFS2, ext), kernel and boot images including ARM zImage, update containers and VM disks. The analysis unpacks down to the root file system and finds the packages of Debian, OpenWrt, Alpine and Red Hat based systems, the programs and the kernel, each with its version.

The exported SBOM of the test subject lists FreeRTOS 10.1.1, the Arm C library (armlib) 5.06 update 6 (build 750) and the Arm compiler 5.06 with their versions, and exactle, hal_ambiq and uecc without a version.

Check your own image

One firmware image or a supplier SBOM, one findings report, free. The reports are in German. Rather look at it together? Ben Plannet, CTO, walks through your file with you in 30 minutes.

Questions

Can an SBOM be generated from a Keil or IAR build?

Yes. Keil's AXF and IAR's .out are ELF files. Symbols, source paths and version records identify the libraries and many of their versions.

Is an SBOM from the binary more accurate than one from the source?

It describes something else: what is actually shipped. An SBOM from the source can name libraries the linker never took in, and one from the binary cannot evidence versions that are compiled in nowhere.

What if only the BIN is available?

First ask for the ELF of the same build: AXF, OUT or ELF. The BIN only yields text from flash. In the IAR example that is enough for the FreeRTOS version, in the Keil and GCC examples it is not.

Does the map file help when there is no source code?

Yes. It shows per object and library member what is in the image, and with GCC also what the linker removed. It names no versions, but it shows which code of a library is in the device.

What format is the SBOM in?

CycloneDX and SPDX are common. LegacyMind exports CycloneDX 1.6 JSON as well as SPDX 2.3 and SPDX 3.0.1 JSON.

Sources

  1. [1]BSI TR-03183-2, version 2.1.0 (PDF)
  2. [2]Regulation (EU) 2024/2847, Cyber Resilience Act
  3. [3]Tool Interface Standard: ELF specification
  4. [4]CycloneDX: specification
  5. [5]Arm: CMSIS-Pack, pack description (PDSC)

Check your own image

Upload one firmware image, an AXF or a supplier SBOM in your own LegacyMind account. Report and SBOM within three working days, NDA on request. The app and the reports are in German; questions in English are welcome.

One image per company is free, with a business e-mail address; the number of free checks per day is limited. Terms (German)

Rather look at it together? Ben Plannet, CTO, walks through your file with you in 30 minutes. Pick a time (calendar in German)

Free · one image

Upload firmware, read the report

We send the link to the report to your business e-mail address.

Firmware file

Choose a file or drop it here

BIN, IMG, HEX, AXF, ELF, OUT, TAR, ZIP, TRX, CHK and more, up to 2 GB. No source code.

The upload waits until the NDA is signed. We send it to you by mail.

Report and SBOM within three working days. Servers in Germany; we delete the file after the analysis and the report after 30 days. Privacy (German)

LegacyMind GmbH · Ingolstadt, Germany · HRB 12510 · What happens to your firmware