Skip to content
Advertisement

Tag: elf

libelf corrupts ARM elf binaries

I’m trying to manipulate ARM elf binaries on linux using the libelf library without success. Even a minimal test-case corrupts my binaries, and I don’t know why. Here is my minimal test-code which reads an elf-file and then simply writes it back: If I run this code on a ELF 64-bit x86-64 executable I get a bit-exact copy of the

How to limit the address space of 32bit application on 64bit Linux to 3GB?

Is it possible to make 64bit Linux loader to limit the address space of the loaded 32bit program to some upper limit? Or to set some holes in the address space that to not be allocated by the kernel? I mean for specific executable, not globally for all processes, neither through kernel configuration. Some code or ELF executable flags are

Mach-O’s two-level namespace symbol resolution in ELF/linux

Anyone know of an equivalent to Mach-O’s two-level namespace symbol resolution in ELF/linux? I want code that links to lib+sym, not sym. I’m trying to do what could best be described as precompilation of what normally would be a JIT compilation. I’d like to get a compile time binding of symbols, that normally would be done by a dlopen/dlsym. However,

Advertisement