Merge pull request #1078 from douglas-raillard-arm/dr/add_cfi_vector_entry

Add CFI debug info to vector entries
This commit is contained in:
davidcunado-arm 2017-09-07 00:45:59 +01:00 committed by GitHub
commit 2867ca3707
1 changed files with 6 additions and 0 deletions

View File

@ -65,8 +65,12 @@
* security, robustness and potentially facilitates debugging.
*/
.macro vector_entry label
.cfi_sections .debug_frame
.section .vectors, "ax"
.align 7, 0
.type \label, %function
.func \label
.cfi_startproc
\label:
.endm
@ -77,6 +81,8 @@
* vector entry as the parameter
*/
.macro check_vector_size since
.endfunc
.cfi_endproc
.if (. - \since) > (32 * 4)
.error "Vector exceeds 32 instructions"
.endif