The `AT` function is used in linker scripts to set the LMA(load address). There are 3 primary ways of using this function: - [ ] `AT(expression)` in an output section: #2043 ```ld .text : AT(0x1000) {*(.text)} ``` - [ ] `AT>region` Uses the next free space in a memory region. ```ld .data : { *(.data) } >RAM AT>ROM ``` - [ ] The PHDRS command may define a segment with the `AT` function. ```ld PHDRS { text PT_LOAD AT(...) } ``` The `LOADADDR` function should also be updated to support using the LMA address, if set. (related issue: #1769)
The
ATfunction is used in linker scripts to set the LMA(load address).There are 3 primary ways of using this function:
AT(expression)in an output section: feat: implements support for the AT keyword in output sections #2043AT>regionUses the next free space in a memory region.The PHDRS command may define a segment with the
ATfunction.The
LOADADDRfunction should also be updated to support using the LMA address, if set. (related issue: #1769)