Romain Thomas

Results 187 comments of Romain Thomas

@XVilka you can dm me on the Discord channel about this topic

Hi! I guess it is worth sharing the current status of the Rust bindings. This is still a "work in progress" but I'm close to to have all the bindings....

I resolved the issue for the enums and I'm finishing exposing the binding for some functions

Closing the issue as no answer.

Could you share the binary because on a simple `ls` it's working: ```python import lief ls = lief.ELF.parse("/bin/ls") segment = lief.ELF.Segment() segment.type = lief.ELF.SEGMENT_TYPES.NOTE s = ls.add(segment) print(s) ls.write("./out.elf") ```

Thank you for these details. Right now, LIEF assumes that at least one `PT_NOTE` segment is present in the original binary. I'll see how to relax this condition.

Thank you for proposing this update in LIEF, I'll handle the integration/test suite.

All the virtual sizes of all the sections are 0 thus, LIEF can't determine in which section a RVA belongs to. I would say this is the expected behavior.

There were is PR from last year: https://github.com/microsoft/vcpkg/pull/21213 for which @ekilmer also did some improvements in the LIEF's CMake files.