From ad044972b5391a1cdc25d4d00d73cd8f3dff0832 Mon Sep 17 00:00:00 2001 From: Guillaume Endignoux Date: Tue, 9 Jun 2020 16:43:01 +0200 Subject: [PATCH] Per-OS reproducible elf2tab. --- .github/workflows/reproducible.yml | 2 +- ....txt => reference_elf2tab_macos-10.15.txt} | 16 ++-- .../reference_elf2tab_ubuntu-18.04.txt | 76 +++++++++++++++++++ 3 files changed, 85 insertions(+), 9 deletions(-) rename reproducible/{reference_elf2tab.txt => reference_elf2tab_macos-10.15.txt} (82%) create mode 100644 reproducible/reference_elf2tab_ubuntu-18.04.txt diff --git a/.github/workflows/reproducible.yml b/.github/workflows/reproducible.yml index 7a24dc4..16a95b2 100644 --- a/.github/workflows/reproducible.yml +++ b/.github/workflows/reproducible.yml @@ -37,6 +37,6 @@ jobs: path: reproducible/reproduced.tar - name: Comparing binary sizes - run: git diff --no-index reproducible/reference_elf2tab.txt reproducible/elf2tab.txt + run: git diff --no-index reproducible/reference_elf2tab_${{ matrix.os }}.txt reproducible/elf2tab.txt - name: Comparing cryptographic hashes run: git diff --no-index reproducible/reference_binaries_${{ matrix.os }}.sha256sum reproducible/binaries.sha256sum diff --git a/reproducible/reference_elf2tab.txt b/reproducible/reference_elf2tab_macos-10.15.txt similarity index 82% rename from reproducible/reference_elf2tab.txt rename to reproducible/reference_elf2tab_macos-10.15.txt index 0cb796e..94273d9 100644 --- a/reproducible/reference_elf2tab.txt +++ b/reproducible/reference_elf2tab_macos-10.15.txt @@ -5,8 +5,8 @@ Min RAM size from sections in ELF: 16 bytes Number of writeable flash regions: 0 Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. Entry point is in .text section - Adding .text section. Offset: 128 (0x80). Length: 176436 (0x2b134) bytes. - Adding .stack section. Offset: 176564 (0x2b1b4). Length: 16384 (0x4000) bytes. + Adding .text section. Offset: 128 (0x80). Length: 175636 (0x2ae14) bytes. + Adding .stack section. Offset: 175764 (0x2ae94). Length: 16384 (0x4000) bytes. Searching for .rel.X sections to add. TBF Header: version: 2 0x2 @@ -24,8 +24,8 @@ Min RAM size from sections in ELF: 16 bytes Number of writeable flash regions: 0 Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. Entry point is in .text section - Adding .text section. Offset: 128 (0x80). Length: 176436 (0x2b134) bytes. - Adding .stack section. Offset: 176564 (0x2b1b4). Length: 16384 (0x4000) bytes. + Adding .text section. Offset: 128 (0x80). Length: 175636 (0x2ae14) bytes. + Adding .stack section. Offset: 175764 (0x2ae94). Length: 16384 (0x4000) bytes. Searching for .rel.X sections to add. TBF Header: version: 2 0x2 @@ -43,8 +43,8 @@ Min RAM size from sections in ELF: 16 bytes Number of writeable flash regions: 0 Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. Entry point is in .text section - Adding .text section. Offset: 128 (0x80). Length: 176436 (0x2b134) bytes. - Adding .stack section. Offset: 176564 (0x2b1b4). Length: 16384 (0x4000) bytes. + Adding .text section. Offset: 128 (0x80). Length: 175636 (0x2ae14) bytes. + Adding .stack section. Offset: 175764 (0x2ae94). Length: 16384 (0x4000) bytes. Searching for .rel.X sections to add. TBF Header: version: 2 0x2 @@ -62,8 +62,8 @@ Min RAM size from sections in ELF: 16 bytes Number of writeable flash regions: 0 Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. Entry point is in .text section - Adding .text section. Offset: 128 (0x80). Length: 176436 (0x2b134) bytes. - Adding .stack section. Offset: 176564 (0x2b1b4). Length: 16384 (0x4000) bytes. + Adding .text section. Offset: 128 (0x80). Length: 175636 (0x2ae14) bytes. + Adding .stack section. Offset: 175764 (0x2ae94). Length: 16384 (0x4000) bytes. Searching for .rel.X sections to add. TBF Header: version: 2 0x2 diff --git a/reproducible/reference_elf2tab_ubuntu-18.04.txt b/reproducible/reference_elf2tab_ubuntu-18.04.txt new file mode 100644 index 0000000..fd00e16 --- /dev/null +++ b/reproducible/reference_elf2tab_ubuntu-18.04.txt @@ -0,0 +1,76 @@ +======================================== +Board: nrf52840dk +---------------------------------------- +Min RAM size from sections in ELF: 16 bytes +Number of writeable flash regions: 0 + Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. +Entry point is in .text section + Adding .text section. Offset: 128 (0x80). Length: 175252 (0x2ac94) bytes. + Adding .stack section. Offset: 175380 (0x2ad14). Length: 16384 (0x4000) bytes. +Searching for .rel.X sections to add. +TBF Header: + version: 2 0x2 + header_size: 44 0x2C + total_size: 262144 0x40000 + flags: 1 0x1 + + init_fn_offset: 85 0x55 + protected_size: 20 0x14 + minimum_ram_size: 107424 0x1A3A0 +======================================== +Board: nrf52840_dongle +---------------------------------------- +Min RAM size from sections in ELF: 16 bytes +Number of writeable flash regions: 0 + Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. +Entry point is in .text section + Adding .text section. Offset: 128 (0x80). Length: 175252 (0x2ac94) bytes. + Adding .stack section. Offset: 175380 (0x2ad14). Length: 16384 (0x4000) bytes. +Searching for .rel.X sections to add. +TBF Header: + version: 2 0x2 + header_size: 44 0x2C + total_size: 262144 0x40000 + flags: 1 0x1 + + init_fn_offset: 85 0x55 + protected_size: 20 0x14 + minimum_ram_size: 107424 0x1A3A0 +======================================== +Board: nrf52840_dongle_dfu +---------------------------------------- +Min RAM size from sections in ELF: 16 bytes +Number of writeable flash regions: 0 + Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. +Entry point is in .text section + Adding .text section. Offset: 128 (0x80). Length: 175252 (0x2ac94) bytes. + Adding .stack section. Offset: 175380 (0x2ad14). Length: 16384 (0x4000) bytes. +Searching for .rel.X sections to add. +TBF Header: + version: 2 0x2 + header_size: 44 0x2C + total_size: 262144 0x40000 + flags: 1 0x1 + + init_fn_offset: 85 0x55 + protected_size: 20 0x14 + minimum_ram_size: 107424 0x1A3A0 +======================================== +Board: nrf52840_mdk_dfu +---------------------------------------- +Min RAM size from sections in ELF: 16 bytes +Number of writeable flash regions: 0 + Adding .crt0_header section. Offset: 64 (0x40). Length: 64 (0x40) bytes. +Entry point is in .text section + Adding .text section. Offset: 128 (0x80). Length: 175252 (0x2ac94) bytes. + Adding .stack section. Offset: 175380 (0x2ad14). Length: 16384 (0x4000) bytes. +Searching for .rel.X sections to add. +TBF Header: + version: 2 0x2 + header_size: 44 0x2C + total_size: 262144 0x40000 + flags: 1 0x1 + + init_fn_offset: 85 0x55 + protected_size: 20 0x14 + minimum_ram_size: 107424 0x1A3A0