diff options
author | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:59:24 +0000 |
---|---|---|
committer | Daniel Baumann <daniel.baumann@progress-linux.org> | 2024-05-30 03:59:24 +0000 |
commit | 023939b627b7dc93b01471f7d41fb8553ddb4ffa (patch) | |
tree | 60fc59477c605c72b0a1051409062ddecc43f877 /vendor/thorin-dwp/src | |
parent | Adding debian version 1.72.1+dfsg1-1. (diff) | |
download | rustc-023939b627b7dc93b01471f7d41fb8553ddb4ffa.tar.xz rustc-023939b627b7dc93b01471f7d41fb8553ddb4ffa.zip |
Merging upstream version 1.73.0+dfsg1.
Signed-off-by: Daniel Baumann <daniel.baumann@progress-linux.org>
Diffstat (limited to 'vendor/thorin-dwp/src')
-rw-r--r-- | vendor/thorin-dwp/src/package.rs | 13 |
1 files changed, 10 insertions, 3 deletions
diff --git a/vendor/thorin-dwp/src/package.rs b/vendor/thorin-dwp/src/package.rs index b71ae1207..719c4cab1 100644 --- a/vendor/thorin-dwp/src/package.rs +++ b/vendor/thorin-dwp/src/package.rs @@ -491,10 +491,17 @@ impl<'file> InProgressDwarfPackage<'file> { update!(debug_rnglists += self.obj.append_to_debug_rnglists(&data)); } Ok(".debug_str_offsets.dwo" | ".zdebug_str_offsets.dwo") => { - let debug_str_offsets_section = { + let (debug_str_offsets_section, debug_str_offsets_section_len) = { let data = section.compressed_data()?.decompress()?; + let len = data.len() as u64; let data_ref = sess.alloc_owned_cow(data); - gimli::DebugStrOffsets::from(gimli::EndianSlice::new(data_ref, self.endian)) + ( + gimli::DebugStrOffsets::from(gimli::EndianSlice::new( + data_ref, + self.endian, + )), + len, + ) }; let debug_str_section = @@ -509,7 +516,7 @@ impl<'file> InProgressDwarfPackage<'file> { let data = self.string_table.remap_str_offsets_section( debug_str_section, debug_str_offsets_section, - section.size(), + debug_str_offsets_section_len, self.endian, encoding, )?; |