[llvm-branch-commits] [llvm] [GOFF] Add writing of section symbols (PR #133799)

Neumann Hon via llvm-branch-commits llvm-branch-commits at lists.llvm.org
Tue Apr 1 23:12:01 PDT 2025


================
@@ -253,6 +427,45 @@ void GOFFWriter::writeHeader() {
   OS.write_zeros(6);       // Reserved
 }
 
+void GOFFWriter::writeSymbol(const GOFFSymbol &Symbol) {
+  if (Symbol.Offset >= (((uint64_t)1) << 31))
+    report_fatal_error("ESD offset outof range");
----------------
Everybody0523 wrote:

```suggestion
    report_fatal_error("ESD offset out of range");
```

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


More information about the llvm-branch-commits mailing list