[llvm] 'Soft Stop' solution on offset overflow issue: By Produceing a truncated but valid DWP file, discarding any DWO files that would not fit within the 32 bit/4GB limits of the format. (PR #71902)

Jinjie Huang via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 21 20:45:00 PST 2023


================
@@ -9,5 +9,7 @@ def version : F<"version", "Display the version of this program">;
 
 def execFileNames : S<"e", "Specify the executable/library files to get the list of *.dwo from.">, MetaVarName<"<filename>">;
 def outputFileName : S<"o", "Specify the output file.">, MetaVarName<"<filename>">;
-def continueOnCuIndexOverflow: F<"continue-on-cu-index-overflow", "This turns an error when offset for .debug_*.dwo sections "
-                                         "overfolws into a warning.">, MetaVarName<"<filename>">;
+def continueOnCuIndexOverflow : S<"continue-on-cu-index-overflow", " =soft-stop, This produces a truncated but valid "
----------------
Labman-001 wrote:

Now:

- When this option is not given, the operation executes a 'hard-stop'.
- When this option  is given but no values specified, it executes 'continues' and continues to generate a DWP file with overflowed offset information..
- When its value= 'soft-stop', it executes 'continues' and generates a 'best effort' DWP file.
- Else: When its value is others, it also executes 'continues'

https://github.com/llvm/llvm-project/pull/71902


More information about the llvm-commits mailing list