Interesting. I can reproduce this with a libnih-1.0.3-4ubuntu2 with the -Os hacked back in, a natty chroot, and gcc-linaro-4.6-2011.06. I can't reproduce it using a maverick chroot. test_alloc faults before getting to _start which suggests a linker problem.
Running with LD_DEBUG=all /lib/ld-linux.so.3 ./test_alloc shows a segfault while running the init in librt.
Interesting. I can reproduce this with a libnih- 1.0.3-4ubuntu2 with the -Os hacked back in, a natty chroot, and gcc-linaro- 4.6-2011. 06. I can't reproduce it using a maverick chroot. test_alloc faults before getting to _start which suggests a linker problem.
Running with LD_DEBUG=all /lib/ld-linux.so.3 ./test_alloc shows a segfault while running the init in librt.