File tree Expand file tree Collapse file tree 14 files changed +144
-2
lines changed
Expand file tree Collapse file tree 14 files changed +144
-2
lines changed Original file line number Diff line number Diff line change 1+ # Overview
2+
13Obfuscating compiler for ARM using https://github.com/obfuscator-llvm/obfuscator .
24
35This is designed to be integrated with buildroot in order to provide an
46obfuscating compiler for components that need it.
57
8+ # Example usage
9+
610To integrate with with buildroot, a package.mk will look like this (the ` *_SOURCE `
711var below is important, you'll need to interact with the GitHub API to find it
812when upgrading to a new release):
@@ -48,3 +52,17 @@ new artifact ID:
4852" llvm-obfuscator-arm.txz"
4953" v4"
5054```
55+
56+ # Copyright Notice
57+
58+ ```
59+ Copyright (C) 2016 Swift Navigation Inc.
60+ Contact: Swift Navigation <dev@swiftnav.com>
61+
62+ This source is subject to the license found in the file 'LICENSE' which must
63+ be be distributed together with this source. All other rights reserved.
64+
65+ THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
66+ EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
67+ WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
68+ ```
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313if [[ " ${LLVM_OBF_USE_BR_TOOLCHAIN} " ]]; then
414
515 T=${HOST_DIR} /opt/ext-toolchain
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313if [[ " ${LLVM_OBF_USE_BR_TOOLCHAIN} " ]]; then
414
515 T=${HOST_DIR} /opt/ext-toolchain
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313D=$( (cd ` dirname $0 ` /../.. > /dev/null; pwd -P) )
414R=$D /sysroot
515
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313D=$( (cd ` dirname $0 ` /../.. > /dev/null; pwd -P) )
414R=$D /sysroot
515
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313set -x
414set -e
515
Original file line number Diff line number Diff line change 11#! /bin/bash
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313mkdir -p build
414mkdir -p output/opt
515
Original file line number Diff line number Diff line change 11#!/usr/bin/env python
22
3+ # Copyright (C) 2017 Swift Navigation Inc.
4+ # Contact: Swift Navigation <dev@swiftnav.com>
5+ #
6+ # This source is subject to the license found in the file 'LICENSE' which must
7+ # be be distributed together with this source. All other rights reserved.
8+ #
9+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
10+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
11+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
12+
313import os
414import sys
515
Original file line number Diff line number Diff line change 1+ # Copyright (C) 2017 Swift Navigation Inc.
2+ # Contact: Swift Navigation <dev@swiftnav.com>
3+ #
4+ # This source is subject to the license found in the file 'LICENSE' which must
5+ # be be distributed together with this source. All other rights reserved.
6+ #
7+ # THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
8+ # EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
9+ # WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
10+
111OBFUSCATE_OPS := -mllvm -sub -mllvm -bcf -mllvm -fla
212
313all : normal obfuscated
Original file line number Diff line number Diff line change 1+ /*
2+ * Copyright (C) 2017 Swift Navigation Inc.
3+ * Contact: Swift Navigation <dev@swiftnav.com>
4+ *
5+ * This source is subject to the license found in the file 'LICENSE' which must
6+ * be be distributed together with this source. All other rights reserved.
7+ *
8+ * THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF ANY KIND,
9+ * EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE IMPLIED
10+ * WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A PARTICULAR PURPOSE.
11+ */
12+
113#include <stdio.h>
214
315int main (int argc , const char * argv []) {
You can’t perform that action at this time.
0 commit comments