File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454 sha256sum $bin
5555 done
5656
57+ echo "Verifying artifacts are equivalent"
58+
5759 sha256() {
5860 sha256sum "$1" | cut -d' ' -f1
5961 }
6668 fi
6769 done
6870
71+ echo "Verified artifacts are equivalent"
72+
6973 read_stack() {
7074 STACK_INFO=$(readelf "$1" -l | grep STACK -A1)
7175 MEMSZ=$(echo "$STACK_INFO" | tail -n1 | sed -E s/^[[:space:]]*//g | cut -f2 -d' ')
@@ -77,15 +81,21 @@ jobs:
7781 exit 2
7882 fi
7983
84+ echo "Verified \`read_stack\` agrees the binary started with 0"
85+
8086 UPDATED_STACK=$(read_stack monerod-chelf)
8187 if [ "$UPDATED_STACK" -ne "$STACK" ]; then
8288 echo "Updated \`PT_GNU_STACK\` ($UPDATED_STACK) wasn't 8 MB ($STACK)"
8389 exit 3
8490 fi
8591
92+ echo "Verified \`read_stack\` agrees the binary's stack is now 8 MB"
93+
8694 # Only one byte should be different due to the bit pattern of 8 MB
8795 BYTES_DIFFERENT=$(cmp -l monerod monerod-chelf | wc -l)
8896 if [ "$BYTES_DIFFERENT" -ne 1 ]; then
8997 echo "More than one byte was different between the two binaries"
9098 exit 4
9199 fi
100+
101+ echo "Verified only a single byte is different between the two binaries"
You can’t perform that action at this time.
0 commit comments