Author: Jason Molenda Date: 2020-01-22T15:50:33-08:00 New Revision: 1f45914b4289db7e5ec8d5759707c16e865f02e5
URL: https://github.com/llvm/llvm-project/commit/1f45914b4289db7e5ec8d5759707c16e865f02e5 DIFF: https://github.com/llvm/llvm-project/commit/1f45914b4289db7e5ec8d5759707c16e865f02e5.diff LOG: 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. Added: Modified: lldb/tools/darwin-debug/CMakeLists.txt Removed: ################################################################################ diff --git a/lldb/tools/darwin-debug/CMakeLists.txt b/lldb/tools/darwin-debug/CMakeLists.txt index ab3dbf0060ab..9039aa3423b4 100644 --- a/lldb/tools/darwin-debug/CMakeLists.txt +++ b/lldb/tools/darwin-debug/CMakeLists.txt @@ -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 _______________________________________________ lldb-commits mailing list lldb-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/lldb-commits