Lynxbee topic

Compilation

Building Kernel Modules In-Tree During Kernel Compilation

Kernel modules are usually built out-of-tree, but for modules tightly coupled with kernel internals it's better to build them in-tree, as part of the kernel compilation itself, for header and config compatibility and automatic compilation during make . The example below uses linux-5.10/ as the so

Link Multiple C Object Files into One Executable

Build one C executable from multiple translation units without turning the project into a library first. The example separates declarations from definitions, compiles object files independently, links them with GCC, inspects symbols, diagnoses common failures, and automates correct incremental rebuilds.

How C Code Becomes a Running Linux Process

A single GCC command hides several distinct transformations, followed later by Linux process startup. Saving each intermediate file makes macros, assembly, ELF objects, linking, and dynamic loading much easier to reason about.

Engineering weekly

Useful technical knowledge, not inbox noise.

Receive verified fixes, references, labs, and tools. Confirm by email; unsubscribe any time.