diff --git a/libc/include/elf.h b/libc/include/elf.h index 2039cc056..a41a2441a 100644 --- a/libc/include/elf.h +++ b/libc/include/elf.h @@ -106,6 +106,9 @@ typedef struct { #define STB_LOPROC 13 #define STB_HIPROC 15 +#define SHT_LOOS 0x60000000 +#define SHT_HIOS 0x6fffffff + #define STT_GNU_IFUNC 10 #define STT_LOOS 10 #define STT_HIOS 12 diff --git a/linker/linker.cpp b/linker/linker.cpp index 39344849e..5d2425f52 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -2040,8 +2040,8 @@ bool soinfo::prelink_image() { if ((dynamic_flags & PF_W) != 0) { d->d_un.d_val = reinterpret_cast(&_r_debug); } - break; #endif + break; #if defined(USE_RELA) case DT_RELA: rela_ = reinterpret_cast(load_bias + d->d_un.d_ptr);