diff --git a/.gitignore b/.gitignore index 3c4efe20..59aff279 100644 --- a/.gitignore +++ b/.gitignore @@ -258,4 +258,7 @@ paket-files/ # Python Tools for Visual Studio (PTVS) __pycache__/ -*.pyc \ No newline at end of file +*.pyc + +# Build dirs +/ttyd-tools/elf2rel/build/ diff --git a/ttyd-tools/elf2rel/CMakeLists.txt b/ttyd-tools/elf2rel/CMakeLists.txt new file mode 100644 index 00000000..cab61dc6 --- /dev/null +++ b/ttyd-tools/elf2rel/CMakeLists.txt @@ -0,0 +1,16 @@ +cmake_minimum_required(VERSION 3.15) +project(elf2rel) + +set(CMAKE_CXX_STANDARD 17) + +find_package( Boost REQUIRED COMPONENTS program_options ) +include_directories( ${Boost_INCLUDE_DIRS} ) + +include_directories(.) +include_directories(elfio) + +add_executable(elf2rel + elf2rel.cpp) + +target_link_libraries(elf2rel ${Boost_PROGRAM_OPTIONS_LIBRARY} ${Boost_REGEX_LIBRARY}) + diff --git a/ttyd-tools/elf2rel/elf2rel.h b/ttyd-tools/elf2rel/elf2rel.h index 2fb5ad05..feba8721 100644 --- a/ttyd-tools/elf2rel/elf2rel.h +++ b/ttyd-tools/elf2rel/elf2rel.h @@ -1,6 +1,7 @@ #pragma once #include +#include enum RelRelocationType {