chore: Update makefiles & macros

This commit is contained in:
EnderIce2
2024-11-29 04:24:27 +02:00
parent ce3cf8162a
commit 7948d0c6e5
116 changed files with 682 additions and 740 deletions

View File

@ -24,7 +24,7 @@ namespace Execute
std::vector<Elf64_Dyn> ELFGetDynamicTag_x86_64(FileNode *fd,
DynamicArrayTags Tag)
{
#if defined(a64) || defined(aa64)
#if defined(__amd64__) || defined(__aarch64__)
std::vector<Elf64_Dyn> Ret;
Elf64_Ehdr ELFHeader{};
@ -55,7 +55,7 @@ namespace Execute
}
return Ret;
#elif defined(a32)
#elif defined(__i386__)
return {};
#endif
}

View File

@ -24,7 +24,7 @@ namespace Execute
std::vector<Elf64_Shdr> ELFGetSections_x86_64(FileNode *fd,
const char *SectionName)
{
#if defined(a64) || defined(aa64)
#if defined(__amd64__) || defined(__aarch64__)
std::vector<Elf64_Shdr> Ret;
Elf64_Ehdr ELFHeader{};
@ -46,7 +46,7 @@ namespace Execute
delete[] SectionHeaders;
delete[] SectionNames;
return Ret;
#elif defined(a32)
#elif defined(__i386__)
return {};
#endif
}

View File

@ -24,7 +24,7 @@ namespace Execute
std::vector<Elf64_Phdr> ELFGetSymbolType_x86_64(FileNode *fd,
SegmentTypes Tag)
{
#if defined(a64) || defined(aa64)
#if defined(__amd64__) || defined(__aarch64__)
std::vector<Elf64_Phdr> Ret;
Elf64_Ehdr ELFHeader{};
@ -44,7 +44,7 @@ namespace Execute
}
return Ret;
#elif defined(a32)
#elif defined(__i386__)
return {};
#endif
}