Created
July 26, 2016 19:57
-
-
Save synap5e/d98335be833503ed25d3a42b0810cbb8 to your computer and use it in GitHub Desktop.
Build vtfdiff with afl-gcc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
simon@sol ~/source $ ./steam-runtime-sdk_2013-09-05/setup.sh | |
====================================== | |
Which architectures would you like to target? | |
1) i386 (x86 32-bit) | |
2) amd64 (x64 64-bit) | |
3) all supported architectures | |
Default i386: | |
Set target architecture to: i386 | |
====================================== | |
Which runtime flavor would you like to use? | |
1) release | |
2) debug | |
Default release: 1 | |
Set runtime flavor to: release | |
====================================== | |
Update base SDK? [Y/n]: | |
Installing http://media.steampowered.com/client/runtime/steam-runtime-sdk_latest.tar.xz... | |
######################################################################## 100.0% | |
====================================== | |
Update tools? [Y/n]: | |
Installing http://media.steampowered.com/client/runtime/x-tools-i386-i386_latest.tar.xz... | |
######################################################################## 100.0% | |
====================================== | |
Update runtime? [Y/n]: | |
Installing http://media.steampowered.com/client/runtime/steam-runtime-dev-release_latest.tar.xz... | |
######################################################################## 100.0% | |
====================================== | |
Update complete! | |
simon@sol ~/source $ ./steam-runtime-sdk_2013-09-05/shell.sh | |
Setting up for build targeting i386 | |
simon@sol ~/source $ cd source-sdk-2013/sp/src/utils/vtfdiff | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ vim vtfdiff.cpp | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ export CC=~/source/afl-2.21b/afl-gcc | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ export CXX=~/source/afl-2.21b/afl-g++ | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ ../../devtools/bin/vpc_linux vtfdiff.vpc | |
VPC - Valve Project Creator For Visual Studio, Xbox 360, PlayStation 3, Xcode and Make (Build: Oct 1 2014 09:48:04) | |
(C) Copyright 1996-2010, Valve Corporation, All rights reserved. | |
Source Path: /home/simon/source/source-sdk-2013/sp/src | |
Target Platform: linux32 | |
Parsing: vtfdiff.vpc | |
Saving makefile project for: 'vtfdiff' File: 'vtfdiff_linux32.mak' | |
Saving CodeLite project for: 'vtfdiff' File: 'vtfdiff_linux32.project' | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ make -f vtfdiff_linux32.mak | |
afl-cc 2.21b by <[email protected]> | |
afl-cc 2.21b by <[email protected]> | |
---- vtfdiff.cpp ---- | |
afl-cc 2.21b by <[email protected]> | |
afl-as 2.21b by <[email protected]> | |
[+] Instrumented 2 locations (32-bit, non-hardened mode, ratio 100%). | |
---- LINKING EXE ../../../game/vtfdiff [release] ---- | |
chmod: cannot access ‘../../../game/vtfdiff’: No such file or directory | |
afl-cc 2.21b by <[email protected]> | |
chmod: cannot access ‘../../../game/vtfdiff.dbg’: No such file or directory | |
~/source/source-sdk-2013/sp/game ~/source/source-sdk-2013/sp/src/utils/vtfdiff | |
~/source/source-sdk-2013/sp/src/utils/vtfdiff | |
simon@sol ~/source/source-sdk-2013/sp/src/utils/vtfdiff $ file ../../../game/vtfdiff | |
../../../game/vtfdiff: ELF 32-bit LSB executable, Intel 80386, version 1 (SYSV), dynamically linked (uses shared libs), for GNU/Linux 3.2.32, BuildID[sha1]=5e8cb1b63d775bce878e478d3fe7c13debd730fb, not stripped |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment