Tag

elf

0 views collected around this technical thread.

Java Tech Enthusiast
Java Tech Enthusiast
Oct 11, 2024 · Fundamentals

Understanding How Executable Programs Run and Their Memory Layout

The article explains that an executable file contains machine instructions which the operating system parses (e.g., ELF), loads into RAM by allocating distinct memory regions for code, data, heap, stack and any dynamic libraries, then reads the entry‑point address to set the CPU’s instruction pointer and start execution.

LoadingOperating Systemelf
0 likes · 5 min read
Understanding How Executable Programs Run and Their Memory Layout
OPPO Kernel Craftsman
OPPO Kernel Craftsman
Apr 12, 2024 · Fundamentals

Stack Unwinding on AArch64: Frame‑Pointer and DWARF .eh_frame/.debug_frame Implementations

The article explains how AArch64 stack unwinding works using both frame‑pointer based methods and DWARF .eh_frame/.debug_frame CFI data, detailing the calling convention, compiler effects, CIE/FDE structures, and their integration into Android’s simpleperf profiler for accurate back‑traces.

Aarch64DWARFPerformance Profiling
0 likes · 12 min read
Stack Unwinding on AArch64: Frame‑Pointer and DWARF .eh_frame/.debug_frame Implementations
Rare Earth Juejin Tech Community
Rare Earth Juejin Tech Community
Nov 14, 2023 · Mobile Development

Suppressing GC Execution in Android ART: Understanding HeapTaskDaemon and Hook Techniques

This article explains how the HeapTaskDaemon thread drives garbage collection in Android's ART runtime, analyzes its source code and related HeapTask classes, and presents two practical methods—adding custom HeapTasks or pausing existing ones—using ELF symbol lookup, ndk_dlopen, and virtual‑function hooking to temporarily suppress GC for better performance.

AndroidGCHeapTaskDaemon
0 likes · 26 min read
Suppressing GC Execution in Android ART: Understanding HeapTaskDaemon and Hook Techniques
ByteDance SYS Tech
ByteDance SYS Tech
Sep 8, 2023 · Fundamentals

Why Does Your C++ Program Crash? Unveiling Global Object Initialization Order

This article explores how C++ programs start, detailing the role of the _start entry point, the initialization of global objects via .init_array, __libc_csu_init, and constructors, and provides practical techniques—including linking with crt files and using init_priority—to control and debug initialization order and avoid crashes.

C++elfglobal initialization
0 likes · 23 min read
Why Does Your C++ Program Crash? Unveiling Global Object Initialization Order
Refining Core Development Skills
Refining Core Development Skills
Aug 31, 2023 · Fundamentals

Understanding Go's Runtime Entry Point and GMP Scheduler

This article explains how a Go hello‑world program starts, tracing the ELF entry point, runtime initialization, GMP scheduler setup, creation of the main goroutine, and the flow into the user's main function.

CoroutineGMPGo
0 likes · 18 min read
Understanding Go's Runtime Entry Point and GMP Scheduler
NetEase Cloud Music Tech Team
NetEase Cloud Music Tech Team
May 22, 2023 · Mobile Development

Techniques for Reducing Android NDK .so Size: Code, Build, and Dependency Optimization

The article shows how to shrink Android NDK .so binaries by over 30% through code de‑duplication, disabling exceptions/RTTI/iostream, using fine‑grained sections with LTO and dead‑code elimination, limiting exported symbols via version scripts, employing JNI dynamic registration, and consolidating C++ runtime dependencies into a shared library.

Android NDKC++JNI
0 likes · 13 min read
Techniques for Reducing Android NDK .so Size: Code, Build, and Dependency Optimization
ByteDance Terminal Technology
ByteDance Terminal Technology
Aug 19, 2021 · Mobile Development

ByteDance's Android PLT Hook Framework bhook Open Source

ByteDance has open‑sourced bhook, an Android PLT hook framework supporting API 16‑31 and multiple ABIs, featuring a trampoline‑based hook mechanism, automatic ELF monitoring, and a robust native crash‑catching module for safe runtime function interception.

AndroidNative HookPLT hook
0 likes · 16 min read
ByteDance's Android PLT Hook Framework bhook Open Source
DeWu Technology
DeWu Technology
Feb 7, 2021 · Information Security

ELF PLT Hook: Principles, Usage, and Implementation on Android

ELF PLT Hook on Android intercepts shared‑library calls by overwriting GOT/PLT entries, providing a stable production‑ready method for tasks such as APM monitoring, APK unpacking and performance profiling, with a clear workflow, dynamic‑linking background, and a practical implementation using the plthook library.

AndroidDynamic LinkingNative Hook
0 likes · 17 min read
ELF PLT Hook: Principles, Usage, and Implementation on Android
360 Tech Engineering
360 Tech Engineering
Jul 27, 2018 · Fundamentals

Detailed Analysis of the ELF File Format (Part 2)

This article provides an in‑depth overview of the ELF file format, describing its headers, section and program tables, symbol structures, and demonstrates how to use this knowledge to locate and hook functions in Android native libraries such as libmedia.so.

AndroidBinary FormatReverse Engineering
0 likes · 7 min read
Detailed Analysis of the ELF File Format (Part 2)
Baidu Intelligent Testing
Baidu Intelligent Testing
Feb 17, 2016 · Information Security

Static Analysis of ELF Binaries to Extract Function Call Relationships

This article describes how to statically analyze Linux ELF executables using objdump and shell scripts to collect function definitions, source locations, and call sites, and then construct a detailed function call graph with a C++ data structure.

Reverse EngineeringStatic Analysiself
0 likes · 5 min read
Static Analysis of ELF Binaries to Extract Function Call Relationships