> ## Documentation Index
> Fetch the complete documentation index at: https://vulhunt-docs.binarly.io/llms.txt
> Use this file to discover all available pages before exploring further.

# AnnotateGlobal

The `AnnotateGlobal` object is used to annotate a global variable at a specific address.

### Fields

| Field         | Description             | Type                                                     |
| :------------ | :---------------------- | :------------------------------------------------------- |
| `location`    | Address of the variable | [`AddressValue`](/vulhunt-reference/types/address-value) |
| `declaration` | Variable declaration    | `string`                                                 |

### Reference

#### location

The address ([`AddressValue`](/vulhunt-reference/types/address-value)) where the global variable is defined.

#### declaration

The global variable declaration as a string.

### Example

```lua theme={null}
evidence = {
  functions = {
    [context.address] = {
      annotate:global{
        location = <AddressValue>,
        declaration = "int g_var"
      }
    }
  }
}
```
