This is the documentation for the latest (main) development branch of Zephyr. If you are looking for the documentation of previous releases, use the drop-down menu on the left and select the desired version.

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 arch/nios2/Kconfig:77

Included via Kconfig:8Kconfig.zephyr:37arch/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>
    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.)