[Lldb-commits] [lldb] 1f45914 - Embed a zero-length /dev/null in darwin-debug for the special section.

Jason Molenda via lldb-commits lldb-commits at lists.llvm.org
Wed Jan 22 15:51:33 PST 2020


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


        


More information about the lldb-commits mailing list