| |||
| Home > Linker command-line options > --pltgot=type | |||
This option specifies the type of Procedure Linkage Table (PLT) and Global Offset Table (GOT) to use, corresponding to the different addressing modes of the Base Platform Application Binary Interface (BPABI).
This option is supported only when using --base_platform or --bpabi.
--pltgot=type
Where is
one of the following:type
noneReferences to imported symbols are added as dynamic relocations for processing by a platform specific post-linker.
directReferences to imported symbols are resolved to read-only pointers to the imported symbols. These are direct pointer references.
Use this type to turn on PLT generation when using --base_platform.
indirectThe linker creates a GOT and possibly a PLT entry for the imported symbol. The reference refers to PLT or GOT entry.
This type is not supported if you have multiple load regions.
sbrelSame
referencing as indirect, except that GOT entries
are stored as offsets from the static base address for the segment
held in R9 at runtime.
This type is not supported if you have multiple load regions.
When the --bpabi or --dll options
are used, the default is --pltgot=direct.
When the --base_platform option is used,
the default is --pltgot=none.