summaryrefslogtreecommitdiff
path: root/ldso
diff options
context:
space:
mode:
Diffstat (limited to 'ldso')
-rw-r--r--ldso/ldso/arc/dl-startup.h2
-rw-r--r--ldso/ldso/arc/dl-sysdep.h4
2 files changed, 3 insertions, 3 deletions
diff --git a/ldso/ldso/arc/dl-startup.h b/ldso/ldso/arc/dl-startup.h
index 232ecb975..dbce2f0c9 100644
--- a/ldso/ldso/arc/dl-startup.h
+++ b/ldso/ldso/arc/dl-startup.h
@@ -74,7 +74,7 @@ do { \
*REL += (unsigned long) LOAD; \
else if (type == R_ARC_JMP_SLOT) \
*REL = SYMBOL; \
- else \
+ else if (type != R_ARC_NONE) \
_dl_exit(1); \
}while(0)
diff --git a/ldso/ldso/arc/dl-sysdep.h b/ldso/ldso/arc/dl-sysdep.h
index 2b43efde5..ed8b37205 100644
--- a/ldso/ldso/arc/dl-sysdep.h
+++ b/ldso/ldso/arc/dl-sysdep.h
@@ -144,8 +144,8 @@ static __always_inline Elf32_Addr elf_machine_load_address(void)
*/
Elf32_Addr addr, tmp;
__asm__ (
- "ld %1, [pcl, _DYNAMIC@gotpc] ;build addr of _DYNAMIC" "\n"
- "add %0, pcl, _DYNAMIC@pcl ;runtime addr of _DYNAMIC" "\n"
+ "ld %1, [pcl, _dl_start@gotpc] ;build addr of _DYNAMIC" "\n"
+ "add %0, pcl, _dl_start@pcl ;runtime addr of _DYNAMIC" "\n"
"sub %0, %0, %1 ;delta" "\n"
: "=&r" (addr), "=r"(tmp)
);