[Git][reproducible-builds/diffoscope][master] tests: change ground truth to match radare2 6.2.0
Chris Lamb (@lamby)
gitlab at salsa.debian.org
Mon Sep 28 20:31:12 UTC 2026
Chris Lamb pushed to branch master at Reproducible Builds / diffoscope
Commits:
b2c830f4 by Guillaume Girol at 2026-09-28T13:31:04-07:00
tests: change ground truth to match radare2 6.2.0
Signed-off-by: Chris Lamb <lamby at debian.org>
- - - - -
3 changed files:
- tests/data/elf_obj_radare2_expected_diff
- tests/data/macho_obj_radare2_expected_diff_main
- tests/data/macho_obj_radare2_expected_diff_printf
Changes:
=====================================
tests/data/elf_obj_radare2_expected_diff
=====================================
@@ -8,3 +8,4 @@
rbp = pop () // rsp // rsp
return
}
+
=====================================
tests/data/macho_obj_radare2_expected_diff_main
=====================================
@@ -1,33 +1,9 @@
-@@ -1,23 +1,21 @@
+@@ -1,6 +1,6 @@
+ // callconv: rax amd64 (rdi, rsi, rdx, rcx, r8, r9, xmm0, xmm1, xmm2, xmm3, xmm4);
+ int printf (const char *format, ...) {
+- // CALL XREF from main @ 0x100000f3f(x)
+- goto loc_qword [reloc.printf] // [0x100001010:8]=0x100000f68 // "h\x0f" // [01] -r-x section size 6 named 1.__TEXT.__stubs
++ // CALL XREF from main @ 0x100000f58(x)
++ goto loc_qword [reloc.printf] // [0x100001010:8]=0x100000f80 "h" // [01] -r-x section size 6 named 1.__TEXT.__stubs
+ }
--// This function contains 1 basic blocks and its 49 long.
-+// This function contains 1 basic blocks and its 42 long.
- function main () {
-- loc_0x100000f20:
-- push rbp //[00] -r-x section size 49 named 0.__TEXT.__text
-+ loc_0x100000f40:
-+ push rbp //[00] -r-x section size 42 named 0.__TEXT.__text
- rbp = rsp
- rsp -= 0x10
-- rdi = rip + 0x43 //section.3.__TEXT.__cstring
-- //0x100000f72 ; "%s %s\n"
-- rsi = rip + 0x43 //str.17:31:50
-- //0x100000f79 ; "17:31:50"
-- rdx = rip + 0x45 //str.Wed_Dec__2_17:31:49_2015
-- //0x100000f82 ; "Wed Dec 2 17:31:49 2015"
-+ rdi = rip + 0x3b //section.3.__TEXT.__cstring
-+ //0x100000f8a ; "%s\n"
-+ rsi = rip + 0x38 //str.15:52:34
-+ //0x100000f8e ; "15:52:34"
- al = 0
-- 0x100000f3f
-- int printf("%s %s\n")
-+ 0x100000f58
-+ int printf("%s\n")
- ecx = 0
- dword [var_4h] = eax
- eax = ecx
- rsp += 0x10
- //rsp ; rsp
- return
- (break)
=====================================
tests/data/macho_obj_radare2_expected_diff_printf
=====================================
@@ -1,12 +1,22 @@
-@@ -1,8 +1,8 @@
-
- // This function contains 1 basic blocks and its 6 long.
- function sym.imp.printf () {
-- loc_0x100000f52:
-- //CALL XREF from main @ 0x100000f3f
-- goto qword [reloc.printf] //[0x100001010:8]=0x100000f68 "h" ; "h\x0f" ; [01] -r-x section size 6 named 1.__TEXT.__stubs
-+ loc_0x100000f6a:
-+ //CALL XREF from main @ 0x100000f58
-+ goto qword [reloc.printf] //[0x100001010:8]=0x100000f80 "h" ; [01] -r-x section size 6 named 1.__TEXT.__stubs
- (break)
+@@ -1,17 +1,16 @@
+ // callconv: rax amd64 (rdi, rsi, rdx, rcx, r8, r9, xmm0, xmm1, xmm2, xmm3, xmm4);
+ int main (int argc, char **argv, char **envp) {
+- push (rbp) // [00] -r-x section size 49 named 0.__TEXT.__text
++ push (rbp) // [00] -r-x section size 42 named 0.__TEXT.__text
+ rbp = rsp
+ rsp -= 0x10
+- rdi = rip + 0x43 // section.3.__TEXT.__cstring // 0x100000f72 // "%s %s\n"
+- rsi = rip + 0x43 // str.17:31:50 // 0x100000f79 // "17:31:50"
+- rdx = rip + 0x45 // str.Wed_Dec__2_17:31:49_2015 // 0x100000f82 // "Wed Dec 2 17:31:49 2015"
++ rdi = rip + 0x3b // section.3.__TEXT.__cstring // 0x100000f8a // "%s\n"
++ rsi = rip + 0x38 // str.15:52:34 // 0x100000f8e // "15:52:34"
+ al = 0
+- sym.imp.printf () // int printf("%s %s\n", "17:31:50", "Wed Dec 2 17:31:49 2015")
++ sym.imp.printf () // int printf("%s\n", "15:52:34")
+ ecx = 0
+ dword [var_4h] = eax
+ eax = ecx
+ rsp += 0x10
+ rbp = pop ()
+ return // rsp // rsp
}
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/b2c830f4142b6c6497ad3fdc408946eba410c3ca
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/diffoscope/-/commit/b2c830f4142b6c6497ad3fdc408946eba410c3ca
You're receiving this email because of your account on salsa.debian.org. Manage all notifications: https://salsa.debian.org/-/profile/notifications | Help: https://salsa.debian.org/help
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20260928/77f3bd6f/attachment.htm>
More information about the rb-commits
mailing list