Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions tools/ci_build/github/linux/ort_minimal/readelf_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,8 +34,13 @@ def get_section_sizes(binary_path, readelf_path, dump_to_file=None):
for match in re.finditer(r"\[[\s\d]+\] (\..*)$", output, re.MULTILINE):
items = match.group(1).split()
name = items[0]
if name == ".relro_padding":
# padding fluctuates and isn't due to the actual code. as it adds noise to the diff exclude it
continue

# convert size from hex to int
size = int(items[4], 16)

section_sizes[name] = size

if dump_to_file:
Expand Down