tree: 6272cbded1c3391c925da74f9a5d7477bde94695 [path history] [tgz]
  1. include/
  2. BUILD.zircon.gn
  3. elf-types.h
  4. OWNERS
  5. README.md
  6. relocation.cc
  7. relocation.h
  8. relocation_test.cc
  9. static_pie.cc
zircon/system/ulib/static-pie/README.md

static-pie

A small library for applying simple fix ups to an ELF file, possibly the currently running binary.

Binaries compiled in position-independent code (PIC) mode often require fix ups to ensure that statically initialized pointers and pointers in compiler-generated runtime data structures point to the correct location in memory.

This library parses the ELF file's relocation tables, applying any such fix ups.