CRiSP Newsletter
Testimonials
| libelf brokenness |
|
|
|
|
I do dislike libelf - its just an important library for manipulating executables, but when it goes wrong, you are SOL trying to determine what *it* did wrong, rather than your application. As I diagnose the backwards compatibility issues on later binutils, I found that we have a new section .gnu_hash which exists instead of .hash. Older dynamic linkers dont like these executables. You can tell gcc/ld to write old style formats, but this is a nuisance to go through every makefile, adding the switch and potentially autodetecting if the platform you are on or are building for supports this switch. Much easier to simple patch the ELF executable. But a simple piece of code like the following creates a broken ELF file, and looking at the libelf source doesnt easily lend itself to determining why. I am currently looking to write my own libelf library, to make it easier to do what *I* want.
Post created by CRiSP v10.0.2c-b5917 Read more http://crtags.blogspot.com/2010/11/libelf-brokenness.html |




