Commit 2867ca37 authored by davidcunado-arm's avatar davidcunado-arm Committed by GitHub
Browse files

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

Add CFI debug info to vector entries
parents 413115e1 31823b69
...@@ -65,8 +65,12 @@ ...@@ -65,8 +65,12 @@
* security, robustness and potentially facilitates debugging. * security, robustness and potentially facilitates debugging.
*/ */
.macro vector_entry label .macro vector_entry label
.cfi_sections .debug_frame
.section .vectors, "ax" .section .vectors, "ax"
.align 7, 0 .align 7, 0
.type \label, %function
.func \label
.cfi_startproc
\label: \label:
.endm .endm
...@@ -77,6 +81,8 @@ ...@@ -77,6 +81,8 @@
* vector entry as the parameter * vector entry as the parameter
*/ */
.macro check_vector_size since .macro check_vector_size since
.endfunc
.cfi_endproc
.if (. - \since) > (32 * 4) .if (. - \since) > (32 * 4)
.error "Vector exceeds 32 instructions" .error "Vector exceeds 32 instructions"
.endif .endif
......
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