GELF\_UPDATE\_MOVE(3) Libelf Programmer's Manual GELF\_UPDATE\_MOVE(3)

# [NAME](#NAME)

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

# [SYNOPSIS](#SYNOPSIS)

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

# [DESCRIPTION](#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-&gt;d\_type* should be **ELF\_T\_MOVE**. These types are Sun/Solaris extensions and are not typically used in GNU/Linux ELF files.

# [PARAMETERS](#PARAMETERS)

[*data*](#data)

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

[*ndx*](#ndx)

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

[*src*](#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](#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](#SEE_ALSO)

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

# [ATTRIBUTES](#ATTRIBUTES)

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

# [REPORTING BUGS](#REPORTING_BUGS)

Report bugs to &lt;elfutils-devel@sourceware.org&gt; or https://sourceware.org/bugzilla/.

2025-12-30 Libelf

---

Document: gelf_update_move(3) from elfutils 0.196-r1 (Chainguard OS)
Source: https://sourceware.org/git/elfutils.git
