From ef477cd70b949e2e67a3a6fd268e91cd96cd75fd Mon Sep 17 00:00:00 2001 From: Andrew Turner Date: Fri, 5 Dec 2014 19:14:05 +0000 Subject: [PATCH] Place the literal pool after a RET otherwise clang 3.5 tries to put it too far away from a ldr psuedo instruction. With this clang will place the literal value here where it's close enough to be loaded. MFC after: 1 week Sponsored by: ABT Systems Ltd --- sys/arm/arm/support.S | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sys/arm/arm/support.S b/sys/arm/arm/support.S index bce533fd1db..b095aed33a4 100644 --- a/sys/arm/arm/support.S +++ b/sys/arm/arm/support.S @@ -1364,6 +1364,8 @@ ENTRY(memcpy) strbge r2, [r3], #0x01 strbgt ip, [r3] RET +/* Place a literal pool here for the above ldr instructions to use */ +.ltorg /*