stephen@hal:~/dev/src/playground/cmake/build{master}$ "/usr/arm-linux-gnueabihf/bin/ld" --sysroot=/home/stephen/rpi/rasp-pi-rootfs -z relro -X --hash-style=gnu --build-id --eh-frame-hdr -m armelf_linux_eabi -shared -dynamic-linker /lib/ld-linux-armhf.so.3 -o libfoo.so /home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crti.o /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtbeginS.o -L/usr/arm-linux-gnueabihf/lib -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2 -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib/../lib32 -L/home/stephen/rpi/rasp-pi-rootfs/lib/arm-linux-gnueabihf -L/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib -L/home/stephen/rpi/rasp-pi-rootfs/lib -L/home/stephen/rpi/rasp-pi-rootfs/usr/lib -soname libfoo.so CMakeFiles/foo.dir/main.cpp.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtendS.o /home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crtn.o
/usr/arm-linux-gnueabihf/bin/ld: BFD (GNU Binutils for Ubuntu) 2.23.2 assertion fail ../../bfd/elf32-arm.c:11763
stephen@hal:~/dev/src/playground/cmake/build{master}$ echo $?
1
stephen@hal:~/dev/src/playground/cmake/build{master}$ /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld --sysroot=/home/stephen/rpi/rasp-pi-rootfs -z relro -X --hash-style=gnu --build-id --eh-frame-hdr -m armelf_linux_eabi -shared -dynamic-linker /lib/ld-linux-armhf.so.3 -o libfoo.so /home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crti.o /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtbeginS.o -L/usr/arm-linux-gnueabihf/lib -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2 -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib/../lib32 -L/home/stephen/rpi/rasp-pi-rootfs/lib/arm-linux-gnueabihf -L/home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf -L/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/lib -L/home/stephen/rpi/rasp-pi-rootfs/lib -L/home/stephen/rpi/rasp-pi-rootfs/usr/lib -soname libfoo.so CMakeFiles/foo.dir/main.cpp.o -lstdc++ -lm -lgcc_s -lc -lgcc_s /home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/crtendS.o /home/stephen/rpi/rasp-pi-rootfs/usr/lib/arm-linux-gnueabihf/crtn.o
/home/stephen/rpi/gcc-4.7-linaro-rpi-gnueabihf/lib/gcc/arm-linux-gnueabihf/4.7.2/../../../../arm-linux-gnueabihf/bin/ld: BFD (crosstool-NG linaro-1.13.1-2012.07-20120720 - Linaro GCC 2012.07) 2.22 assertion fail /opt/dev/src/crosstool-ng/crosstool-ng-linaro-1.13.1-2012.07-20120720/builds/arm-linux-gnueabihf-linux/.build/src/binutils-2.22/bfd/elf32-arm.c:11477
stephen@hal:~/dev/src/playground/cmake/build{master}$ echo $?
0
I got the package while following a Qt 5 Raspberry Pi guide some months ago, possibly http://qt-project.org/wiki/RaspberryPi_Beginners_guide