mirror of
https://github.com/capstone-engine/llvm-capstone.git
synced 2025-02-03 16:03:21 +00:00
Embed a zero-length /dev/null in darwin-debug for the special section.
Fred suggested that instead of embedded CMakeLists.txt in the binary as the contents of a special section, see if /dev/null would work. It does.
This commit is contained in:
parent
b5b6126d97
commit
1f45914b42
@ -4,7 +4,7 @@
|
||||
# process and that process will start suspended, so debugserver will
|
||||
# need to double-resume it to make it run. A random file is copied
|
||||
# into the segment.
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,${CMAKE_CURRENT_SOURCE_DIR}/CMakeLists.txt")
|
||||
set(CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-sectcreate,ExecExtraSuspend,ExecExtraSuspend,/dev/null")
|
||||
|
||||
add_lldb_tool(darwin-debug ADD_TO_FRAMEWORK
|
||||
darwin-debug.cpp
|
||||
|
Loading…
x
Reference in New Issue
Block a user