---
name: "gelf_update_move"
section: "3"
platform: "linux"
package: "libelf"
version: "0.197-1"
release: "Arch Linux 2026-11-01"
platforms: ["linux", "freebsd"]
url: "https://new.carta.tech/gelf_update_move"
---

# gelf\_update\_move(3)

Update class-independent move structure at the given index

## NAME

gelf\_update\_move - Update class-independent move structure at the given index

## SYNOPSIS

```
#include <gelf.h>
int gelf_update_move (Elf_Data *data, int ndx, GElf_Move *src);
```

## DESCRIPTION

This function copies a class-independent move structure from *src* into the **SHT\_SUNW\_move** section associated with *data* at entry index *ndx*.

*data* should be associated with an ELF section with type **SHT\_SUNW\_move** section. *data-\>d\_type* should be **ELF\_T\_MOVE**. These types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files.

## PARAMETERS

- *data*

  Pointer to an **Elf\_Data** associated with a **SHT\_SUNW\_move** section. *data-\>d\_type* should be **ELF\_T\_MOVE**.

- *ndx*

  Zero-based index of the move structure entry to be updated within *data*.

- *src*

  Pointer to a caller-provided move structure.  For **ELFCLASS32** binaries, **m\_info** and **m\_poffset** should be able to fit within unsigned 32-bit values. The **GELF\_M\_SIZE** component of **m\_info** should fit in unsigned 8 bits and the **GELF\_M\_SYM** component should fit in unsigned 24 bits. *src* must not be NULL.

## RETURN VALUE

On success, this function returns a non-zero value and updates the move entry at index *ndx* in *data*. The section associated with *data* is flagged with **ELF\_F\_DIRTY**. On failure, zero is returned and elf\_errno is set.  If *data* is NULL, then zero is returned without setting elf\_errno.

## SEE ALSO

[**gelf\_getmove**(3)](/gelf_getmove/3.md), [**libelf**(3)](/libelf/3.md), [**elf**(5)](/elf/5.md)

## ATTRIBUTES

| | | |
| --- | --- | --- |
| **Interface** | **Attribute** | **Value** |
| **gelf\_update\_move**() | Thread safety | MT-Safe |

## REPORTING BUGS

Report bugs to \<elfutils-devel@sourceware.org\> or https://sourceware.org/bugzilla/.
