Skip to content

Instantly share code, notes, and snippets.

@s1341
Created March 24, 2015 10:26
Show Gist options
  • Save s1341/f1ae2e0079dc5f3500c3 to your computer and use it in GitHub Desktop.
Save s1341/f1ae2e0079dc5f3500c3 to your computer and use it in GitHub Desktop.
qnx toolchain for frida
Things done to qnx toolchain:
1. Compile libiconv:
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 CC=/opt/qnx650/host/linux/x86/usr/bin/arm-unknown-nto-qnx6.5.0-gcc ./configure --host=arm-unknown-nto-qnx6.5.0 --prefix=`pwd`/../install
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make install
2. Compile gettext:
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 CC=/opt/qnx650/host/linux/x86/usr/bin/arm-unknown-nto-qnx6.5.0-gcc ./configure --host=arm-unknown-nto-qnx6.5.0 --prefix=`pwd`/../install
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make install
3. Copy into qnx toolchain:
cp -r lib/* /opt/qnx650/target/qnx6/arm/armle/lib/
cp -r include/* /opt/qnx650/target/qnx6/usr/include/
4. Symlink libresolv to libsocket
cd /media/lab/tools/qnx/devev.6.5.3/qnx650/target/qnx6/armle/li
ln libsocket.so libresolv.so
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment