Commit cdb7db5a authored by Mans Rullgard's avatar Mans Rullgard

ARM: align PIC offset pools to 4 bytes

When building Thumb2 code, the end of a function, where the PIC
offsets are placed, need not be aligned.  Although the values
are only accessed with instructions allowing unaligned addresses,
keeping them aligned is preferable.
Signed-off-by: 's avatarMans Rullgard <mans@mansr.com>
parent a27a690f
......@@ -66,6 +66,7 @@ ELF .eabi_attribute 25, \val
.set .Lpic_gp, 0
.macro endfunc
.if .Lpic_idx
.align 2
.altmacro
put_pic %(.Lpic_idx - 1)
.noaltmacro
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment