On Tue, 2019-06-25 at 22:09 +0000, Sasha Da Rocha Pinheiro wrote:
>  
>  What happens if I call elf64_newphdr() on the same Elf * but with
> different size_t __cnt? 

It creates a new phdr table for the Elf with cnt entries, whether or
not the phdr table existed or not. If cnt is zero any existing table is
removed.

>  What happens to the previous headers?

Using references to them become invalid.

Cheers,

Mark

Reply via email to