@@ -44,17 +44,17 @@ template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *obj) {
44
44
.Case (" .debug_str_offsets" , &strOffsetsSection)
45
45
.Case (" .debug_line" , &lineSection)
46
46
.Default (nullptr )) {
47
- m->Data = toStringRef (sec->data ());
47
+ m->Data = toStringRef (sec->contentMaybeDecompress ());
48
48
m->sec = sec;
49
49
continue ;
50
50
}
51
51
52
52
if (sec->name == " .debug_abbrev" )
53
- abbrevSection = toStringRef (sec->data ());
53
+ abbrevSection = toStringRef (sec->contentMaybeDecompress ());
54
54
else if (sec->name == " .debug_str" )
55
- strSection = toStringRef (sec->data ());
55
+ strSection = toStringRef (sec->contentMaybeDecompress ());
56
56
else if (sec->name == " .debug_line_str" )
57
- lineStrSection = toStringRef (sec->data ());
57
+ lineStrSection = toStringRef (sec->contentMaybeDecompress ());
58
58
else if (sec->name == " .debug_info" &&
59
59
!(objSections[i].sh_flags & ELF::SHF_GROUP)) {
60
60
// In DWARF v5, -fdebug-types-section places type units in .debug_info
@@ -66,7 +66,7 @@ template <class ELFT> LLDDwarfObj<ELFT>::LLDDwarfObj(ObjFile<ELFT> *obj) {
66
66
// need to perform a lightweight parsing. We drop the SHF_GROUP flag when
67
67
// the InputSection was created, so we need to retrieve sh_flags from the
68
68
// associated ELF section header.
69
- infoSection.Data = toStringRef (sec->data ());
69
+ infoSection.Data = toStringRef (sec->contentMaybeDecompress ());
70
70
infoSection.sec = sec;
71
71
}
72
72
}
0 commit comments