commit | e96d449a28f9679ca1ac22e21bd1cf1d68d2cb4f | [log] [tgz] |
---|---|---|
author | Ard Biesheuvel <ard.biesheuvel@gmail.com> | Sat Aug 11 23:47:34 2012 +0200 |
committer | Ard Biesheuvel <ard.biesheuvel@gmail.com> | Sat Aug 11 23:47:34 2012 +0200 |
tree | 9e9da171c61aa09c11aa3e620d82a24bb5ab6fe4 | |
parent | 25bd78d2392dbdc879ae53382cde9d019f79cf6f [diff] [blame] |
hardening: eliminate text relocations Change-Id: I259aab364ae954532d7137ef54640175530fb6e2
diff --git a/Tremolo/dpen.s b/Tremolo/dpen.s index 6123f8f..f1bda1d 100644 --- a/Tremolo/dpen.s +++ b/Tremolo/dpen.s
@@ -454,7 +454,9 @@ @ r1 = bytes STMFD r13!,{r5-r6,r14} - LDR r5,=crc_lookup + ADR r6,.Lcrc_lookup + LDR r5,[r6] + ADD r5,r6 MOV r14,#0 @ r14= crc_reg = 0 MOVS r12,r0 BEQ _cs_end @@ -487,4 +489,7 @@ MOV r0,r14 LDMFD r13!,{r5-r6,PC} +.Lcrc_lookup: + .WORD crc_lookup-.Lcrc_lookup + @ END