diff options
author | Ayke van Laethem <[email protected]> | 2021-04-14 19:43:48 +0200 |
---|---|---|
committer | Ron Evans <[email protected]> | 2021-04-15 07:38:52 +0200 |
commit | f145663464f7917f99e1aa4214ce8f3b854f2b35 (patch) | |
tree | 546b069740be10e7c68df17a80b3570a358ce872 | |
parent | 0d66475e1078af08bb87d7caef01946cc76774e3 (diff) | |
download | tinygo-f145663464f7917f99e1aa4214ce8f3b854f2b35.tar.gz tinygo-f145663464f7917f99e1aa4214ce8f3b854f2b35.zip |
cortexm: add __isr_vector symbol
This doesn't change the firmware, but it does make the disassembly of
the ELF files. Before:
Disassembly of section .text:
00000000 <(machine.UART).Write-0x100>:
0: 20001000 .word 0x20001000
4: 000009db .word 0x000009db
8: 00000f05 .word 0x00000f05
c: 00000f0b .word 0x00000f0b
10: 00000f05 .word 0x00000f05
After:
Disassembly of section .text:
00000000 <__isr_vector>:
0: 20001000 .word 0x20001000
4: 000009db .word 0x000009db
8: 00000f05 .word 0x00000f05
c: 00000f0b .word 0x00000f0b
10: 00000f05 .word 0x00000f05
The difference is that the disassembler will now use a proper symbol name
instead of using the closest by symbol (in this case, (machine.UART).Write).
This makes the disassembly easier to read.
-rwxr-xr-x | tools/gen-device-svd/gen-device-svd.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/gen-device-svd/gen-device-svd.go b/tools/gen-device-svd/gen-device-svd.go index 7364b0e47..67d1b1300 100755 --- a/tools/gen-device-svd/gen-device-svd.go +++ b/tools/gen-device-svd/gen-device-svd.go @@ -1103,6 +1103,7 @@ Default_Handler: // https://sourceware.org/binutils/docs/as/Section.html#ELF-Version .section .isr_vector, "a", %progbits .global __isr_vector +__isr_vector: // Interrupt vector as defined by Cortex-M, starting with the stack top. // On reset, SP is initialized with *0x0 and PC is loaded with *0x4, loading // _stack_top and Reset_Handler. |