serge1 / ELFIO

ELFIO - ELF (Executable and Linkable Format) reader and producer implemented as a header only C++ library
http://serge1.github.io/ELFIO
MIT License
706 stars 152 forks source link

Add AArch64 relocation types #96

Closed stdrc closed 2 years ago

stdrc commented 2 years ago

Hi! This PR adds relocation types for AArch64.

Changes:

  1. 06fa0032aee0cd95cfd5b95b61dde322f5612049 The variable type of relocation type constexprs is changed to unsigned because the value may be larger than the max of unsigned char. Some function signatures are also changed accordingly.
  2. 889b4c6cf37b352d13161262bb951d9461ac2e98 AArch64 relocations types are added. Values are from https://git.musl-libc.org/cgit/musl/tree/include/elf.h.
  3. cdb83ff38233c4b723621c870e711c74539dadc4 Minor fix to silence warning on uninitialized value use. (see screenshot below)
截屏2022-05-17 22 29 29
serge1 commented 2 years ago

Accepted and merged. Thank you very much! Please note: I am still reviewing the increase of 'type' data type from 'char' to 'unsigned'