changeset 1801:8d8a961cfbca draft

Elf2flt doesn't handle pic relocations well. Add an option to make it less bad.
author Rob Landley <rob@landley.net>
date Mon, 26 Oct 2015 14:35:14 -0500
parents 60d648f342ab
children 315c9e9af893
files sources/sections/elf2flt.sh
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/sources/sections/elf2flt.sh	Sat Oct 24 06:40:58 2015 -0500
+++ b/sources/sections/elf2flt.sh	Mon Oct 26 14:35:14 2015 -0500
@@ -14,7 +14,8 @@
   --with-binutils-include-dir="$STAGE_DIR/host/include" \
   --with-libiberty="$STAGE_DIR/host/lib/libiberty.a" --prefix="$STAGE_DIR" \
   --with-libbfd="$STAGE_DIR/host/lib/libbfd.a" --target="$ELF2FLT" \
-  --with-zlib-prefix="$STAGE_DIR/host" ${HOST_ARCH:+--host=${KARCH}-unknown-linux} &&
+  --with-zlib-prefix="$STAGE_DIR/host" --enable-always-reloc-text \
+  ${HOST_ARCH:+--host=${KARCH}-unknown-linux} &&
 make -j $CPUS &&
 make install TARGET="$CROSS_TARGET" PREFIX="$TOOLCHAIN_PREFIX"