Auto-alignment of vector table

And discovered fundamental difference between .align and .balign on ARM
ftp://ftp.gnu.org/old-gnu/Manuals/gas/html_chapter/as_7.html
This commit is contained in:
giomba 2018-12-31 12:32:26 +01:00
parent 660771a06b
commit d3152ca2ad
3 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@ godot_msg:
.text .text
.align 4 .balign 4
.global _start .global _start
_start: _start:
/* Initialize stack pointers */ /* Initialize stack pointers */

View File

@ -10,7 +10,6 @@ SECTIONS
{ {
. = 0x40000000; . = 0x40000000;
.text : ALIGN(0x1000) { .text : ALIGN(0x1000) {
obj/s_vectab.o (.text)
*(.text) *(.text)
} > m_text } > m_text
.data : ALIGN(0x1000) { .data : ALIGN(0x1000) {

View File

@ -16,7 +16,7 @@ fiq_msg:
.string "FIQ" .string "FIQ"
.text .text
.align 4 .balign 32
.global vectab .global vectab
vectab: vectab:
ldr pc, =panic ldr pc, =panic