summaryrefslogtreecommitdiff
path: root/plat/socionext
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-17 10:52:53 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2017-10-18 21:57:34 +0900
commit917d79668daa88ce94669620c31de103dbf1e673 (patch)
tree4c99e6b58a8aa1ffbe82d0c0c3f052211c07a632 /plat/socionext
parentccd0c24cf89cb2195cbb38b6bb0639769afef7c5 (diff)
uniphier: move ROTPK hash to .rodata section
This is not executable code. It should be put into .rodata instead of .text section. This produces more correct BL1 image when SEPARATE_CODE_AND_RODATA is defined. Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'plat/socionext')
-rw-r--r--plat/socionext/uniphier/uniphier_rotpk.S1
1 files changed, 1 insertions, 0 deletions
diff --git a/plat/socionext/uniphier/uniphier_rotpk.S b/plat/socionext/uniphier/uniphier_rotpk.S
index 0045a349..21c44b62 100644
--- a/plat/socionext/uniphier/uniphier_rotpk.S
+++ b/plat/socionext/uniphier/uniphier_rotpk.S
@@ -6,6 +6,7 @@
.global uniphier_rotpk_hash
.global uniphier_rotpk_hash_end
+ .section .rodata.uniphier_rotpk_hash, "a"
uniphier_rotpk_hash:
/* DER header */
.byte 0x30, 0x31, 0x30, 0x0D, 0x06, 0x09, 0x60, 0x86, 0x48