-
Notifications
You must be signed in to change notification settings - Fork 102
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* feat: Add 64 bit compilation * fix: Support multiple host systems * feat: Revert default build to 32bits * doc: Update README to reflect changes to default build type.
- Loading branch information
Showing
14 changed files
with
67 additions
and
27 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
add_compile_options( -fno-exceptions -fno-rtti -DCPLUSPLUS ) | ||
add_compile_options( -fno-exceptions -fno-rtti -DCPLUSPLUS) | ||
set( SERVICE_ID "00119" ) | ||
set( AUTHOR_ID "KPRCA" ) | ||
add_compile_options( -Oz -g ) | ||
add_compile_options( -Os -g ) | ||
set( VULN_COUNT "1" ) | ||
buildCB() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
add_compile_options( -fno-exceptions -fno-rtti -DCPLUSPLUS ) | ||
set( SERVICE_ID "00111" ) | ||
set( AUTHOR_ID "KPRCA" ) | ||
add_compile_options( -O1 -g ) | ||
add_compile_options( -O1 -g -fpermissive -fms-extensions ) | ||
set( VULN_COUNT "1" ) | ||
buildCB() |
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
set( VULN_COUNT "1" ) | ||
add_compile_options( -fno-exceptions -fno-rtti -DCPLUSPLUS ) | ||
set( override LDFLAGS "-nostdlib -static -Ttext=0x90000000" ) | ||
add_compile_options( -Oz -g ) | ||
add_compile_options( -Os -g -fpermissive -fms-extensions) | ||
set( SERVICE_ID "00091" ) | ||
set( AUTHOR_ID "KPRCA" ) | ||
buildCB() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
add_compile_options( -fno-exceptions -fno-rtti -DCPLUSPLUS ) | ||
set( SERVICE_ID "00075" ) | ||
set( AUTHOR_ID "KPRCA" ) | ||
add_compile_options( -O3 -g -DDISABLE_HEAP_GUARD ) | ||
add_compile_options( -O3 -g -DDISABLE_HEAP_GUARD -fpermissive -fms-extensions ) | ||
set( VULN_COUNT "1" ) | ||
buildCB() |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
set( SERVICE_ID "00054" ) | ||
set( AUTHOR_ID "NRFIN" ) | ||
add_compile_options( -O0 -g -mno-sse ) | ||
add_compile_options( -O0 -g -msse2 ) | ||
set( VULN_COUNT "1" ) | ||
buildCB() | ||
buildSO() |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
set(CMAKE_SYSTEM_PROCESSOR i686) | ||
|
||
set(CMAKE_C_COMPILER clang) | ||
set(CMAKE_CXX_COMPILER clang++) | ||
|
||
if(WIN32) | ||
set(CMAKE_ASM_MASM_COMPILER clang) | ||
else(WIN32) | ||
set(CMAKE_ASM_COMPILER clang) | ||
endif(WIN32) | ||
|
||
set(CMAKE_C_FLAGS_INIT -m32) | ||
set(CMAKE_CXX_FLAGS_INIT -m32) | ||
set(CMAKE_ASM_FLAGS_INIT -m32) | ||
|
||
set(CMAKE_EXE_LINKER_FLAGS_INIT -m32) | ||
set(CMAKE_SHARED_LINKER_FLAGS_INIT -m32) | ||
set(CMAKE_MODULE_LINKER_FLAGS_INIT -m32) | ||
|
||
add_compile_definitions(X32_COMPILE) |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
set(CMAKE_SYSTEM_PROCESSOR amd64) | ||
|
||
set(CMAKE_C_COMPILER clang) | ||
set(CMAKE_CXX_COMPILER clang++) | ||
|
||
if(WIN32) | ||
set(CMAKE_ASM_MASM_COMPILER clang) | ||
else(WIN32) | ||
set(CMAKE_ASM_COMPILER clang) | ||
endif(WIN32) |
9328f80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi I have this error while trying to rub build.sh on linux. How can fix it?
Creating Makefiles
Creating build directory
CMake Error at cmake/32.cmake:20 (add_compile_definitions):
Unknown CMake command "add_compile_definitions".
Call Stack (most recent call first):
/usr/share/cmake-3.10/Modules/CMakeDetermineSystem.cmake:91 (include)
CMakeLists.txt:4 (project)
CMake Error: CMake was unable to find a build program corresponding to "Unix Makefiles". CMAKE_MAKE_PROGRAM is not set. You probably need to select a different build tool.
-- Configuring incomplete, errors occurred!
9328f80
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think Cmake version minimum needs to updated to 3.12 for that function
https://github.com/trailofbits/cb-multios/blob/master/CMakeLists.txt#L2
cmake_minimum_required(VERSION 3.1)
->cmake_minimum_required(VERSION 3.12)