Index: uspace/lib/c/arch/arm32/meson.build
===================================================================
--- uspace/lib/c/arch/arm32/meson.build	(revision b83c5e408a25b05bd779719d25173f668005f88a)
+++ uspace/lib/c/arch/arm32/meson.build	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -30,5 +30,5 @@
 arch_src += files(
 	'src/atomic.c',
-	'src/entryjmp.S',
+	'src/entryjmp.c',
 	'src/thread_entry.S',
 	'src/syscall.c',
Index: uspace/lib/c/arch/arm32/src/atomic.c
===================================================================
--- uspace/lib/c/arch/arm32/src/atomic.c	(revision b83c5e408a25b05bd779719d25173f668005f88a)
+++ uspace/lib/c/arch/arm32/src/atomic.c	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -34,4 +34,5 @@
 
 #include <stdbool.h>
+#include "ras_page.h"
 
 volatile unsigned *ras_page;
Index: uspace/lib/c/arch/arm32/src/crt0.S
===================================================================
--- uspace/lib/c/arch/arm32/src/crt0.S	(revision b83c5e408a25b05bd779719d25173f668005f88a)
+++ uspace/lib/c/arch/arm32/src/crt0.S	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -40,4 +40,5 @@
 SYMBOL(_start)
 	# Store the RAS page address into the ras_page variable
+	// FIXME: This only works for not-PIC executables.
 	ldr r0, =ras_page
 	str r2, [r0]
Index: uspace/lib/c/arch/arm32/src/entryjmp.S
===================================================================
--- uspace/lib/c/arch/arm32/src/entryjmp.S	(revision b83c5e408a25b05bd779719d25173f668005f88a)
+++ 	(revision )
@@ -1,42 +1,0 @@
-#
-# Copyright (c) 2008 Jiri Svoboda
-# All rights reserved.
-#
-# Redistribution and use in source and binary forms, with or without
-# modification, are permitted provided that the following conditions
-# are met:
-#
-# - Redistributions of source code must retain the above copyright
-#   notice, this list of conditions and the following disclaimer.
-# - Redistributions in binary form must reproduce the above copyright
-#   notice, this list of conditions and the following disclaimer in the
-#   documentation and/or other materials provided with the distribution.
-# - The name of the author may not be used to endorse or promote products
-#   derived from this software without specific prior written permission.
-#
-# THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
-# IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
-# OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
-# IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
-# INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
-# NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
-# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
-# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
-# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
-# THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
-#
-
-#include <abi/asmtool.h>
-
-## void entry_point_jmp(void *entry_point, void *pcb);
-#
-# r0	contains entry_point
-# r1	contains pcb
-#
-# Jump to program entry point
-SYMBOL(entry_point_jmp)
-	# load ras_page address to r2
-	ldr r2, =ras_page
-	ldr r2, [r2]
-	# pcb is passed to the entry point in r1 (where it already is)
-	mov r15, r0
Index: uspace/lib/c/arch/arm32/src/entryjmp.c
===================================================================
--- uspace/lib/c/arch/arm32/src/entryjmp.c	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
+++ uspace/lib/c/arch/arm32/src/entryjmp.c	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -0,0 +1,44 @@
+/*
+ * Copyright (c) 2008 Jiri Svoboda
+ * All rights reserved.
+ *
+ * Redistribution and use in source and binary forms, with or without
+ * modification, are permitted provided that the following conditions
+ * are met:
+ *
+ * - Redistributions of source code must retain the above copyright
+ *   notice, this list of conditions and the following disclaimer.
+ * - Redistributions in binary form must reproduce the above copyright
+ *   notice, this list of conditions and the following disclaimer in the
+ *   documentation and/or other materials provided with the distribution.
+ * - The name of the author may not be used to endorse or promote products
+ *   derived from this software without specific prior written permission.
+ *
+ * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
+ * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
+ * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
+ * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
+ * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
+ * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
+ * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+ * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
+ * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
+ */
+
+#include <entry_point.h>
+#include "ras_page.h"
+
+void entry_point_jmp(void *entry_point, void *pcb)
+{
+	asm volatile (
+		"mov r1, %0 \n"
+		"mov r2, %1 \n"
+		"mov r15, %2 \n"
+		:
+		: "r"(pcb), "r"(ras_page), "r"(entry_point)
+		: "r1", "r2"
+	);
+
+	__builtin_unreachable();
+}
Index: uspace/lib/c/arch/arm32/src/ras_page.h
===================================================================
--- uspace/lib/c/arch/arm32/src/ras_page.h	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
+++ uspace/lib/c/arch/arm32/src/ras_page.h	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -0,0 +1,1 @@
+extern volatile unsigned *ras_page;
Index: uspace/lib/c/arch/arm32/src/rtld/reloc.c
===================================================================
--- uspace/lib/c/arch/arm32/src/rtld/reloc.c	(revision b83c5e408a25b05bd779719d25173f668005f88a)
+++ uspace/lib/c/arch/arm32/src/rtld/reloc.c	(revision eb630cffd5becb2a6f9b2fecb696cf3a2ed61212)
@@ -127,14 +127,4 @@
 
 		switch (rel_type) {
-		case R_ARM_ABS32:
-			DPRINTF("ignore R_ARM_ABS32\n");
-			/*
-			 * Not sure why we get these static relocations, but
-			 * attempting to process them will crash the
-			 * loader. If we ignore them, everything
-			 * seems to work.
-			 */
-			break;
-
 		case R_ARM_TLS_DTPMOD32:
 			DPRINTF("fixup R_ARM_TLS_DTPMOD32\n");
@@ -189,5 +179,6 @@
 		case R_ARM_GLOB_DAT:
 		case R_ARM_JUMP_SLOT:
-			DPRINTF("fixup R_ARM_GLOB_DAT/JUMP_SLOT (S)\n");
+		case R_ARM_ABS32:
+			DPRINTF("fixup R_ARM_GLOB_DAT/JUMP_SLOT/ABS32 (S)\n");
 			*r_ptr = sym_addr;
 			break;
