From 13ed3f0af15ebd5b10aa44f8f51a5bba1b3bd9fc Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Fri, 13 Feb 2015 16:25:43 -0800 Subject: [PATCH 1/2] Add missing SHT_LOOS/SHT_HIOS values Change-Id: Ib0b0987a7e85af7863c6ef894263b5980e32344d --- libc/include/elf.h | 3 +++ 1 file changed, 3 insertions(+) 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 From c6292ea39cce054175e4f9f797c05aeb8da0ac4b Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Fri, 13 Feb 2015 16:29:50 -0800 Subject: [PATCH 2/2] Fix: DT_DEBUG was acting as DT_REL on mips64 Change-Id: I88827aa07d75d06d606c987e6270fcca3ae6216f --- linker/linker.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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);