CONFIG_GP_GLOBAL

Global data global pointer references

Type: bool

Help

Use global pointer relative offsets for small globals declared anywhere in the executable. Note that if any small globals that are put in alternate sections they must be declared in headers with proper __attribute__((section)) or the linker will error out.

Direct dependencies

<choice: Global Pointer options>

(Includes any dependencies from ifs and menus.)

Kconfig definition

At <Zephyr>/arch/nios2/Kconfig:77

Included via <Zephyr>/Kconfig:8<Zephyr>/Kconfig.zephyr:29<Zephyr>/arch/Kconfig:12

Menu path: (Top) → Nios II Options → Nios II Family Options → Global Pointer options

config GP_GLOBAL
    bool "Global data global pointer references"
    depends on <choice: Global Pointer options>
    help
      Use global pointer relative offsets for small globals declared
      anywhere in the executable. Note that if any small globals that are put
      in alternate sections they must be declared
      in headers with proper __attribute__((section)) or the linker will
      error out.

(The ‘depends on’ condition includes propagated dependencies from ifs and menus.)