Skip to content

Commit 4407296

Browse files
author
Jason Mobarak
committed
Add new wrappers, ignore unused args
1 parent 5501a99 commit 4407296

File tree

4 files changed

+27
-6
lines changed

4 files changed

+27
-6
lines changed

bin/arm-linux-gnueabihf-clang

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ if [[ "${LLVM_OBF_USE_BR_TOOLCHAIN}" ]]; then
1313
-B ${T}/lib/gcc/arm-linux-gnueabihf/6.2.1/ \
1414
\
1515
-L ${T}/lib/gcc/arm-linux-gnueabihf/6.2.1/ \
16-
-L /piksi_buildroot/buildroot/host_output/host/opt/ext-toolchain/lib/gcc/i686-pc-linux-gnu/4.7.2"
16+
-L /piksi_buildroot/buildroot/host_output/host/opt/ext-toolchain/lib/gcc/i686-pc-linux-gnu/4.7.2 \
17+
-Wno-unused-command-line-argument"
1718

1819
else
1920

@@ -33,10 +34,11 @@ else
3334
\
3435
-L ${R}/usr/arm-linux-gnueabi/libhf \
3536
-L ${R}/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
36-
-L ${R}/usr/lib/x86_64-linux-gnu"
37+
-L ${R}/usr/lib/x86_64-linux-gnu \
38+
-Wno-unused-command-line-argument"
3739
fi
3840

39-
${D}/bin/clang \
41+
exec ${D}/bin/clang \
4042
${TOOLCHAIN_OPTS} \
4143
-ccc-gcc-name arm-linux-gnueabihf-gcc \
4244
--target=arm-linux-gnueabihf \

bin/arm-linux-gnueabihf-clang++

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,8 @@ if [[ "${LLVM_OBF_USE_BR_TOOLCHAIN}" ]]; then
1616
-I ${T}/arm-linux-gnueabihf/include/c++/6.2.1/arm-linux-gnueabihf/ \
1717
\
1818
-L ${T}/lib/gcc/arm-linux-gnueabihf/6.2.1/ \
19-
-L /piksi_buildroot/buildroot/host_output/host/opt/ext-toolchain/lib/gcc/i686-pc-linux-gnu/4.7.2"
19+
-L /piksi_buildroot/buildroot/host_output/host/opt/ext-toolchain/lib/gcc/i686-pc-linux-gnu/4.7.2 \
20+
-Wno-unused-command-line-argument"
2021

2122
else
2223

@@ -38,10 +39,11 @@ else
3839
\
3940
-L ${R}/usr/arm-linux-gnueabi/libhf \
4041
-L ${R}/usr/lib/gcc-cross/arm-linux-gnueabihf/4.8 \
41-
-L ${R}/usr/lib/x86_64-linux-gnu"
42+
-L ${R}/usr/lib/x86_64-linux-gnu \
43+
-Wno-unused-command-line-argument"
4244
fi
4345

44-
${D}/bin/clang++ \
46+
exec ${D}/bin/clang++ \
4547
${TOOLCHAIN_OPTS} \
4648
-ccc-gcc-name arm-linux-gnueabihf-gcc \
4749
--target=arm-linux-gnueabihf \

bin/arm-linux-gnueabihf-objcopy

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
#!/bin/bash
2+
3+
D=$( (cd `dirname $0`/../.. >/dev/null; pwd -P) )
4+
R=$D/sysroot
5+
6+
export LD_LIBRARY_PATH="${R}/usr/lib/x86_64-linux-gnu"
7+
8+
exec ${R}/usr/bin/arm-linux-gnueabihf-objcopy $@
9+

bin/arm-linux-gnueabihf-strip

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#!/bin/bash
2+
3+
D=$( (cd `dirname $0`/../.. >/dev/null; pwd -P) )
4+
R=$D/sysroot
5+
6+
export LD_LIBRARY_PATH="${R}/usr/lib/x86_64-linux-gnu"
7+
8+
exec ${R}/usr/bin/arm-linux-gnueabihf-strip $@

0 commit comments

Comments
 (0)