diff options
Diffstat (limited to 'runtime/elf_utils.h')
| -rw-r--r-- | runtime/elf_utils.h | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/runtime/elf_utils.h b/runtime/elf_utils.h index 5966d05996..7b00bada47 100644 --- a/runtime/elf_utils.h +++ b/runtime/elf_utils.h @@ -24,6 +24,8 @@ #include "base/logging.h" +namespace art { + // Architecture dependent flags for the ELF header. #define EF_ARM_EABI_VER5 0x05000000 #define EF_MIPS_ABI_O32 0x00001000 @@ -67,11 +69,11 @@ // Patching section type #define SHT_OAT_PATCH SHT_LOUSER -inline void SetBindingAndType(Elf32_Sym* sym, unsigned char b, unsigned char t) { +static inline void SetBindingAndType(Elf32_Sym* sym, unsigned char b, unsigned char t) { sym->st_info = (b << 4) + (t & 0x0f); } -inline bool IsDynamicSectionPointer(Elf32_Word d_tag, Elf32_Word e_machine) { +static inline bool IsDynamicSectionPointer(Elf32_Word d_tag, Elf32_Word e_machine) { switch (d_tag) { // case 1: well known d_tag values that imply Elf32_Dyn.d_un contains an address in d_ptr case DT_PLTGOT: @@ -163,4 +165,6 @@ inline bool IsDynamicSectionPointer(Elf32_Word d_tag, Elf32_Word e_machine) { } } +} // namespace art + #endif // ART_RUNTIME_ELF_UTILS_H_ |