I'm porting a MIPS assembler program (non-MIPSPro compatible syntax) that uses sect()
and sectend()
functions. Looks like they return the start and end addresses of the section. Seems GNU AS docs does not supports anything similar - any ideas how to
code this in GAS syntax?
Here are some examples.
la t0,sect(.bss)
la t1,sectend(.bss)
@clear:
sw zero,0(t0)
addiu t0,t0,4
sltu at,t0,t1
bne at,zero,@clear
nop
....
__text dw sect(.text)
__textlen dw sectend(.text)-sect(.text)