tree: 0dd49cefa4f060f62ec74661ec7c1efc3d504350 [path history] [tgz]
  1. blacklist/
  2. crash/
  3. dll_hash/
  4. hook_util/
  5. nt_registry/
  6. pe_image_safe/
  7. sha1/
  8. third_party_dlls/
  9. BUILD.gn
  10. DEPS
  11. OWNERS
  12. README.md
  13. chrome_elf.ver
  14. chrome_elf_arm64.def
  15. chrome_elf_constants.cc
  16. chrome_elf_constants.h
  17. chrome_elf_main.cc
  18. chrome_elf_main.h
  19. chrome_elf_security.cc
  20. chrome_elf_security.h
  21. chrome_elf_test_stubs.cc
  22. chrome_elf_util_unittest.cc
  23. chrome_elf_x64.def
  24. chrome_elf_x86.def
  25. run_all_unittests.cc
chrome/chrome_elf/README.md

Chrome Early Loading Framework (ELF)

The Chrome Early Loading Framework provides a facility to execute code very early during process startup before other imported DLLs (e.g., kernel32). This is useful for dynamic patching of system functions (e.g., NtMapViewOfSection) to implement advanced control over the process.

Chrome's initial entry point on Windows is DllMain in chrome_elf.dll (defined in chrome_elf_main.cc). The reorder-imports.py script is used at build-time to ensure that chrome_elf.dll is the first import of chrome.exe.