Tagged articles
linking
17 articles · Page 1 of 1
This article explains how a C/C++ program is compiled into an ELF executable, details the ELF file structure, describes the kernel's validation and segment mapping, covers dynamic linking, and shows how the process starts execution from the _start entry point, providing practical commands and debugging tips.
DebuggingELFLinux
0 likes · 34 min read

This article explains the ELF file format, its various types, internal structure, compilation and linking steps, and how the Linux kernel loads ELF binaries, creates processes with fork and exec, handles dynamic linking, relocation, and builds the process address space, providing developers and system engineers with deep insight into Linux execution.
Binary FormatELFLinux
0 likes · 40 min read

The article explains what the C/C++ runtime library is, how it implements essential services such as memory allocation, I/O and language features, compares it to Java, Python and JavaScript runtimes, details platform‑specific implementations (glibc, MSVC CRT, libc++, Bionic, etc.), and warns about common pitfalls like multiple CRT instances or version mismatches that can cause crashes.
C++Runtime Librarycross-platform
0 likes · 24 min read

This article walks through the NVCC compilation pipeline, explaining how CUDA source files are transformed into host and device binaries, detailing file extensions, compilation stages, command‑line options, intermediate artifacts, and the role of registration functions such as __nv_cudaEntityRegisterCallback and __sti____cudaRegisterAll.
CUDAGCCGPU
0 likes · 12 min read

This article explains why reusable code should be packaged into libraries, compares static (.a) and dynamic (.so) libraries on Linux, and provides detailed commands, code examples, and troubleshooting steps for building and linking both types of libraries in C++ projects.
C++Dynamic LibraryShared Library
0 likes · 10 min read

This article guides readers through the complete GCC toolchain workflow—preprocessing, compilation, assembly, linking—and explains how to analyze the resulting ELF binary, covering essential commands, Binutils utilities, and runtime library details for C/C++ programs on Linux.
BinutilsELFGCC
0 likes · 13 min read

This article explains the ELF (Executable and Linking Format) specification, its variants for Windows PE and Linux, the classification of ELF object files, data representation, ARM‑specific extensions, and the structure of headers, sections, symbols, and related file types such as .axf, .bin and .hex.
ARMELFExecutable Format
0 likes · 41 min read

This article explains the four common compilation and linking problems C/C++ developers encounter on 64‑bit Linux, covering preprocessing, ELF object formats, static library ordering, dynamic linking mechanics, symbol interposition, and runtime loading pitfalls, and provides concrete solutions for each.
C++Dynamic LoadingELF
0 likes · 15 min read

This guide explains how high‑level C/C++ source code is transformed into executable binary code on Linux using the GCC toolchain, covering preprocessing, compilation, assembly, linking, and ELF file inspection with practical command examples.
ELFGCCLinux
0 likes · 15 min read

This article explains the complete transformation of C/C++ source code into processor‑executable binary files using the GCC toolchain, covering preprocessing, compilation, assembly, linking, ELF structure, and practical command‑line examples on a Linux system.
ELFGCCLinux
0 likes · 16 min read

This article provides a detailed, step‑by‑step guide on using Swift Package Manager (SwiftPM) in iOS projects, covering package creation, directory layout, single‑ and multi‑target designs, dependency handling, Obj‑C/Swift mixing, resource management, static vs dynamic linking, compilation options, ARC disabling, macro definitions, linker settings, common pitfalls, and best‑practice recommendations.
Best PracticesResourcesSwiftPM
0 likes · 18 min read

This guide walks through the complete GCC compilation pipeline—preprocessing, compilation, assembly, and linking—using a simple C "Hello World" program, detailing each step, relevant commands, and how to inspect the resulting ELF binary.
BinutilsELFLinux
0 likes · 13 min read

This article explains the principles of static and dynamic linking on iOS, details how symbol tables, relocation entries, and GOT/PLT work, and demonstrates a practical static‑library hooking technique using relocation tables and the fishhook library.
Hookingdynamic linkingiOS
0 likes · 15 min read

This article walks through building and deploying C++ shared libraries, demonstrates common pitfalls with missing dependencies, explains how to embed runtime library paths using RPATH, and shows modern CMake techniques for reliable linking on Linux systems.
CMakec++linking
0 likes · 11 min read

This article explains why the same program can execute on Linux yet not run on Windows by breaking down the compilation, assembly, linking stages, the ELF executable format, and how loaders and symbol tables make cross‑platform execution possible.
ELFLinuxcompilation
0 likes · 10 min read

This article explains how a simple Hello World program is transformed from source code into machine code, detailing the roles of object files, sections, linking (static and dynamic), and loading, while showing practical examples with GCC, objdump, and readelf on Linux.
C++executablelinking
0 likes · 16 min read


ITPUBSep 8, 2016 · Fundamentals
This guide walks through the ELF format, the compilation‑assembly‑linking pipeline, and step‑by‑step creation and usage of static (.a) and dynamic (.so) libraries on Linux, including gcc, ar, ldconfig, ldd and runtime loading with dlopen.
Dynamic LibraryELFGCC
0 likes · 16 min read
