directives control the absolute vs. PC-relative mode for
instructions. These are relevant only for Xtensa configurations that include the absolute addressing option for
.begin [no-]absolute-literals .end [no-]absolute-literals
These directives do not change the
mode—they only cause the assembler to emit the appropriate kind of relocation for
instructions and to place the literal values in the appropriate section. To change the
mode, the program must write the
special register. It is the programmer's responsibility to keep track of the mode and indicate to the assembler which mode is used in each region of code.
If the Xtensa configuration includes the absolute
addressing option, the default is to assume absolute
addressing unless the ‘
’ command-line option is specified. Otherwise, the default is to assume PC-relative
directive can then be used to override the default determined by the command-line options.