Menu
  • HOME
  • TAGS

Prelink Error: prelink-cross: simple hello world example

c++,compilation,arm,cross-compiling,prelink

Yay, I found the solution: I had to specify the sysroot and explicitly tell prelink which libraries to precompile. The directory structure now looks like this: |- arm-2012.03/arm-none-linux-gnueabi/libc/usr/local/bin/hello \- /arm-none-linux-gnueabi \- libc \- lib \- libc-2.15.so |- libgcc_s.so.1 |- ld-2.15.so |- ... |- usr \- local \- bin \- hello...

Prelinking only has effect on relative relocations

linux,linker,ld,elf,prelink

OK, it turned out the problem was that some libraries were not correctly prelinked, as seen in my original question, in which e.g. libc.so wasn't loaded at the correct load address. Seems like prelinking is a all-or-nothing approach: If one of the dependencies of an executable isn't correctly prelinked or...