Open-Awesome
CategoriesAlternativesStacksSelf-HostedExplore
Open-Awesome

© 2026 Open-Awesome. Curated for the developer elite.

TermsPrivacyAboutGitHubRSS
  1. Home
  2. C/C++
  3. awesome-ld-preload

awesome-ld-preload

A curated list of resources and libraries for LD_PRELOAD, a Linux mechanism for runtime function interception and behavior modification.

GitHubGitHub
920 stars45 forks0 contributors

What is awesome-ld-preload?

Awesome LD_PRELOAD is a curated list of resources, libraries, and tools related to LD_PRELOAD, a Linux mechanism that allows developers to intercept and override library functions at runtime. It solves problems like modifying application behavior without source changes, testing time-dependent code, and adding features like file locking or TLS support to existing binaries.

Target Audience

System programmers, Linux developers, and security researchers who need to debug, test, or modify application behavior at the library level without recompilation.

Value Proposition

Developers choose Awesome LD_PRELOAD for its comprehensive collection of ready-to-use libraries and tools that demonstrate practical applications of LD_PRELOAD, saving time and providing inspiration for low-level system hacking and instrumentation.

Overview

List of resources related to LD_PRELOAD, a mechanism for changing application behavior at run-time

Use Cases

Best For

  • Testing time-dependent code by mocking system time functions
  • Debugging filesystem access patterns in applications
  • Adding TLS support to legacy applications without source changes
  • Optimizing memory usage with huge pages for performance-critical apps
  • Disabling disk writes for faster testing of backup or logging software
  • Intercepting network calls to redirect ports or log SSL traffic

Not Ideal For

  • Projects requiring cross-platform compatibility on Windows or mobile operating systems where LD_PRELOAD is not supported
  • Teams needing official support, versioning, or maintenance guarantees for the tools listed
  • Applications running in security-restricted environments that disable library injection via LD_PRELOAD

Pros & Cons

Pros

Comprehensive Tool Curation

Aggregates over 20 specialized libraries like libfaketime for time mocking and fsatrace for filesystem access tracing, providing a one-stop reference for various use cases.

Practical Use Case Focus

Emphasizes real-world applications such as testing, debugging, and optimization, with tools specifically for adding TLS support via ktlswrapper or disabling disk writes with libeatmydata.

Clear Implementation Guidance

Offers straightforward instructions on using LD_PRELOAD with environment variables, making it accessible for developers familiar with Linux system programming.

Versatile Functionality Coverage

Includes tools for performance enhancement (libhugetlbfs), security (force-urandom), and behavior modification, demonstrating the broad utility of LD_PRELOAD.

Cons

Variable Tool Maintenance

As a curated list, it doesn't indicate which tools are actively maintained, risking reliance on outdated or abandoned projects like some older libraries in the collection.

Limited Documentation Depth

Many linked libraries have sparse or minimal documentation, forcing users to rely on source code or external resources for detailed implementation and troubleshooting.

Platform-Specific Focus

Primarily targets Linux, with only a note on macOS alternatives via DYLD_INSERT_LIBRARIES; tools may not work seamlessly on other Unix-like systems without porting.

Frequently Asked Questions

Quick Stats

Stars920
Forks45
Contributors0
Open Issues8
Last commit2 years ago
CreatedSince 2020

Tags

#debugging-tools#performance-optimization#security-tools#testing#linux#shared-libraries#system-programming

Included in

C/C++70.6k
Auto-fetched 19 hours ago

Related Projects

A curated list of awesome lists - @sindresorhusA curated list of awesome lists - @sindresorhus

😎 Awesome lists about all kinds of interesting topics

Stars488,229
Forks36,016
Last commit24 days ago
free-programming-booksfree-programming-books

:books: Freely available programming books

Stars392,867
Forks66,563
Last commit1 day ago
Awesome interview questionsAwesome interview questions

:octocat: A curated awesome list of lists of interview questions. Feel free to contribute! :mortar_board:

Stars83,735
Forks9,527
Last commit2 years ago
ProjectsProjects

:page_with_curl: A list of practical projects that anyone can solve in any programming language.

Stars47,824
Forks10,623
Last commit1 year ago
Community-curated · Updated weekly · 100% open source

Found a gem we're missing?

Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.

Submit a projectStar on GitHub