Skip to content
Advertisement

Tag: abi

Compiler version in C++ vs pre-compiled C libraries

I have a code that uses std=c++20. I want to use a C library that was build with old gcc version. Should I recompile the C library using the same compiler ? If no, how could you judge that the 2 ABIs are compatible? Answer There should be no problem using the library as it is. Don’t forget to add

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

Advertisement