[lld] [lld][ELF] Implement merged .debug_names section. (PR #86508)
via llvm-commits
llvm-commits at lists.llvm.org
Tue Mar 26 08:04:00 PDT 2024
================
@@ -788,6 +792,136 @@ class RelroPaddingSection final : public SyntheticSection {
void writeTo(uint8_t *buf) override {}
};
+class DebugNamesSection final : public SyntheticSection {
+ // N.B. Everything in this class assumes that we are using DWARF32.
+ // If we move to DWARF64, most of this data will need to be re-sized,
+ // and the code that handles or manipulates it will need to be updated
+ // accordingly.
+
+public:
+ DebugNamesSection();
+ template <typename ELFT> static DebugNamesSection *create();
+ void writeTo(uint8_t *buf) override;
+ size_t getSize() const override { return sectionSize; }
+ bool isNeeded() const override;
+
+ void addSections(SmallVector<InputSectionBase *, 0> sec_list) {
----------------
cmtice wrote:
How would you recommend that I deal with this?
https://github.com/llvm/llvm-project/pull/86508
More information about the llvm-commits
mailing list