chayrix
chayrix

Reputation: 51

Modify ELF section using libelf?

I'm writing a program that adds a section to an elf binary using libelf. Is there a way to modify the contents of the shstrndx?

Upvotes: 2

Views: 677

Answers (1)

Anastasios Andronidis
Anastasios Andronidis

Reputation: 6740

I think this example here, found in the main repo of libelf, is exactly what you are looking for.

Upvotes: 1

Related Questions