From 477e531af9497616d3dac31af0263692e8c43ba3 Mon Sep 17 00:00:00 2001 From: KreitinnSoftware <80591934+KreitinnSoftware@users.noreply.github.com> Date: Sat, 17 Feb 2024 15:26:49 -0300 Subject: [ANDROID] Fix Build When Compiling with NDK 26b, [CI] Download Basic Android Libs from 'termux-docker' and update NDK to 26b (#1270) * [CI] Download Basic Android Libs from termux-docker for speed-up CI build * [ANDROID] Fix 'SHT_CHECKSUM' error when compiling on NDK 26b * [CI] Update NDK for 26b --- src/elfs/elfload_dump.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'src') diff --git a/src/elfs/elfload_dump.c b/src/elfs/elfload_dump.c index 4c9cf228..2a8189b5 100644 --- a/src/elfs/elfload_dump.c +++ b/src/elfs/elfload_dump.c @@ -9,6 +9,10 @@ #include "elfload_dump.h" #include "elfloader_private.h" +#ifndef SHT_CHECKSUM +#define SHT_CHECKSUM 0x6ffffff8 +#endif + const char* DumpSection(Elf64_Shdr *s, char* SST) { static char buff[400]; switch (s->sh_type) { @@ -45,9 +49,7 @@ const char* DumpSection(Elf64_Shdr *s, char* SST) { GO(SHT_GNU_ATTRIBUTES); GO(SHT_GNU_HASH); GO(SHT_GNU_LIBLIST); - #ifndef TERMUX - GO(SHT_CHECKSUM); - #endif + GO(SHT_CHECKSUM); GO(SHT_LOSUNW); //GO(SHT_SUNW_move); GO(SHT_SUNW_COMDAT); -- cgit 1.4.1