In assembly code, this code
.data
myval : .long 0x11111111
places the variable myval in .data section. So I wanted to define my own section in a specific address in SDRAM and use it in the assembly code to write some data for debug. I added my section in the linker script like this (this is the first section output to .sdram so I know the starting address).
.mydebug : {
. = ALIGN(8);
KEEP(*(.__mydebug));
} >.sdram
and used it in the assembly code like this.
.global
... skip ...
mov x6, #0x70
ldr x7, =myval
str x6, [x7]
... skip ...
.__mydebug
myval: .long 0x11111111
But the compile complains
Error: unknown pseudo-op: `.__mydebug'
How can I do this?