Fixes "undefined reference to `_begin'" error. Taken from http://sourceware.org/ml/crossgcc/2009-05/msg00019.html --- glibc-2.6.1/elf/Makefile.old 2013-02-12 12:24:15.373415572 +0100 +++ glibc-2.6.1/elf/Makefile 2013-02-12 12:25:34.443498780 +0100 @@ -307,7 +307,7 @@ $(LDFLAGS-rtld) -Wl,-z,defs -Wl,--verbose 2>&1 | \ LC_ALL=C \ sed -e '/^=========/,/^=========/!d;/^=========/d' \ - -e 's/\. = 0 + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ + -e 's/\. = .* + SIZEOF_HEADERS;/& _begin = . - SIZEOF_HEADERS;/' \ > $@.lds $(LINK.o) -nostdlib -nostartfiles -shared -o $@ \ $(LDFLAGS-rtld) -Wl,-z,defs $(z-now-$(bind-now)) \