[llvm] [BOLT] Overwrite .eh_frame and .gcc_except_table (PR #116755)

Davide Italiano via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 19 07:52:34 PST 2024


================
@@ -4347,6 +4377,9 @@ RewriteInstance::getOutputSections(ELFObjectFile<ELFT> *File,
     BinarySection *BinSec = BC->getSectionForSectionRef(SecRef);
     assert(BinSec && "Matching BinarySection should exist.");
 
+    if (BinSec->isAnonymous())
----------------
dcci wrote:

I assume this is the matching bit of 

```
      // Prevent the original section name from appearing in the section header
      // table.
```

in the rewriter. Can you add a  comment? Do we have other anonymous sections outside of this one in the patch? Looks like this is a larger functional change (OK to have it here, but I want to understand)

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


More information about the llvm-commits mailing list