Skip to content

Commit

Permalink
#0: fix tt_elffile zero-length sections
Browse files Browse the repository at this point in the history
  • Loading branch information
nathan-TT committed Oct 25, 2024
1 parent c6c32af commit e8d3c6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tt_metal/llrt/tt_elffile.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class ElfFile::Impl {
// segment boundaries -- they're either wholey inside or
// wholey outside, and (b) unsigned arithmetic.
if (shdr.sh_flags & SHF_ALLOC &&
sh.sh_addr + shdr.sh_size - segment.address <= (segment.contents.size() + segment.bss) * sizeof (word_t);
shdr.sh_addr + shdr.sh_size - segment.address <= (segment.contents.size() + segment.bss) * sizeof (word_t);
}
[[nodiscard]] bool IsInSegment(unsigned _ix, Elf32_Shdr const &shdr) const {
return IsInSegment(GetSegments()[_ix], shdr);
Expand Down

0 comments on commit e8d3c6b

Please sign in to comment.