MaxXor / obfuscator-llvm

Obfuscator as LLVM extension
https://github.com/obfuscator-llvm/obfuscator
Other
95 stars 16 forks source link

clang (LLVM option parsing): Unknown command line argument '-sub'. Try: 'clang (LLVM option parsing) --help' #1

Open T35R6braPwgDJKq opened 2 years ago

T35R6braPwgDJKq commented 2 years ago

Happens when I try to cross build openssl from linux to windows. Why is that? The test works fine.

/usr/bin/clang -Xclang -load -Xclang obfuscator-llvm/build/obfuscator-llvm/ObfuscatorLLVM.so -mllvm -sub  -mllvm -bcf -mllvm -fla -m64 -Wa,--noexecstack -Qunused-arguments -target x86_64-w64-windows-gnu -v -DL_ENDIAN -DOPENSSL_PIC -DOPENSSLDIR="\"/usr/local/ssl\"" -DENGINESDIR="\"/usr/local/lib64/engines-3\"" -DMODULESDIR="\"/usr/local/lib64/ossl-modules\"" -DUNICODE -D_UNICODE -DWIN32_LEAN_AND_MEAN -D_MT -DOPENSSL_BUILDING_OPENSSL -DNDEBUG -I/usr/x86_64-w64-mingw32/include -c -o crypto/aes/libcrypto-lib-aes-x86_64.obj crypto/aes/aes-x86_64.s
        "/usr/bin/clang-14" -cc1as -triple x86_64-w64-windows-gnu -filetype obj -main-file-name aes-x86_64.s -target-cpu x86-64 -I /usr/x86_64-w64-mingw32/include -fdebug-compilation-dir=openssl -dwarf-debug-producer "clang version 14.0.0 (/build/llvm-git/llvm-project 75b08cce47df0a405bfb052f51d70b8e8067d705)" -I /usr/x86_64-w64-mingw32/include -dwarf-version=4 -mrelocation-model pic --mrelax-relocations -mnoexecstack -mllvm -sub -mllvm -bcf -mllvm -fla -o crypto/aes/libcrypto-lib-aes-x86_64.obj crypto/aes/aes-x86_64.s
        clang (LLVM option parsing): Unknown command line argument '-sub'.  Try: 'clang (LLVM option parsing) --help'
        clang (LLVM option parsing): Did you mean '-W'?
        clang (LLVM option parsing): Unknown command line argument '-bcf'.  Try: 'clang (LLVM option parsing) --help'
        clang (LLVM option parsing): Did you mean '-W'?
        clang (LLVM option parsing): Unknown command line argument '-fla'.  Try: 'clang (LLVM option parsing) --help'
        clang (LLVM option parsing): Did you mean '-W'?
        make[1]: *** [Makefile:12857: crypto/aes/libcrypto-lib-aes-x86_64.obj] Error 1
        make[1]: Leaving directory 'openssl'
        make: *** [Makefile:3233: build_sw] Error 2