Skip to content

Instantly share code, notes, and snippets.

@d-goldin
Created September 19, 2019 11:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save d-goldin/12c7cd9998ed9d8f31ca5792a6b5aa69 to your computer and use it in GitHub Desktop.
Save d-goldin/12c7cd9998ed9d8f31ca5792a6b5aa69 to your computer and use it in GitHub Desktop.
> nix-build -k -K '<nixpkgs>' -A pkgs.linux_5_2 --check
[...]
note: keeping build directory '/tmp/nix-build-linux-5.2.14.drv-0'
error: derivation '/nix/store/dcy1vplvfwjbckhvfrk8dqv973sm7mh3-linux-5.2.14.drv' may not be deterministic: output '/nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14' differs from '/nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14.check'
diffoscope --text linux_5_2_diffoscope.log /nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14 /nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14.check
--- /nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14
+++ /nix/store/im1y2sf411940gyn1x59rpfbw1k508b3-linux-5.2.14.check
├── lib
│ ├── modules
│ │ ├── 5.2.14
│ │ │ ├── kernel
│ │ │ │ ├── kernel
│ │ │ │ │ ├── kheaders.ko.xz
│ │ │ │ │ │ ├── kheaders.ko
│ │ │ │ │ │ │ ├── readelf --wide --file-header {}
│ │ │ │ │ │ │ │ @@ -6,15 +6,15 @@
│ │ │ │ │ │ │ │ OS/ABI: UNIX - System V
│ │ │ │ │ │ │ │ ABI Version: 0
│ │ │ │ │ │ │ │ Type: REL (Relocatable file)
│ │ │ │ │ │ │ │ Machine: Advanced Micro Devices X86-64
│ │ │ │ │ │ │ │ Version: 0x1
│ │ │ │ │ │ │ │ Entry point address: 0x0
│ │ │ │ │ │ │ │ Start of program headers: 0 (bytes into file)
│ │ │ │ │ │ │ │ - Start of section headers: 3554744 (bytes into file)
│ │ │ │ │ │ │ │ + Start of section headers: 3549112 (bytes into file)
│ │ │ │ │ │ │ │ Flags: 0x0
│ │ │ │ │ │ │ │ Size of this header: 64 (bytes)
│ │ │ │ │ │ │ │ Size of program headers: 0 (bytes)
│ │ │ │ │ │ │ │ Number of program headers: 0
│ │ │ │ │ │ │ │ Size of section headers: 64 (bytes)
│ │ │ │ │ │ │ │ Number of section headers: 28
│ │ │ │ │ │ │ │ Section header string table index: 27
│ │ │ │ │ │ │ ├── readelf --wide --sections {}
│ │ │ │ │ │ │ │ @@ -1,37 +1,37 @@
│ │ │ │ │ │ │ │ -There are 28 section headers, starting at offset 0x363db8:
│ │ │ │ │ │ │ │ +There are 28 section headers, starting at offset 0x3627b8:
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ Section Headers:
│ │ │ │ │ │ │ │ [Nr] Name Type Address Off Size ES Flg Lk Inf Al
│ │ │ │ │ │ │ │ [ 0] NULL 0000000000000000 000000 000000 00 0 0 0
│ │ │ │ │ │ │ │ [ 1] .note.gnu.build-id NOTE 0000000000000000 000040 000024 00 A 0 0 4
│ │ │ │ │ │ │ │ [ 2] .text PROGBITS 0000000000000000 000070 000020 00 AX 0 0 16
│ │ │ │ │ │ │ │ - [ 3] .rela.text RELA 0000000000000000 363a18 000048 18 I 25 2 8
│ │ │ │ │ │ │ │ + [ 3] .rela.text RELA 0000000000000000 362418 000048 18 I 25 2 8
│ │ │ │ │ │ │ │ [ 4] .init.text PROGBITS 0000000000000000 000090 00002c 00 AX 0 0 1
│ │ │ │ │ │ │ │ - [ 5] .rela.init.text RELA 0000000000000000 363a60 0000a8 18 I 25 4 8
│ │ │ │ │ │ │ │ + [ 5] .rela.init.text RELA 0000000000000000 362460 0000a8 18 I 25 4 8
│ │ │ │ │ │ │ │ [ 6] .exit.text PROGBITS 0000000000000000 0000bc 000013 00 AX 0 0 1
│ │ │ │ │ │ │ │ - [ 7] .rela.exit.text RELA 0000000000000000 363b08 000048 18 I 25 6 8
│ │ │ │ │ │ │ │ - [ 8] .rodata PROGBITS 0000000000000000 0000cf 362e94 00 A 0 0 1
│ │ │ │ │ │ │ │ - [ 9] __mcount_loc PROGBITS 0000000000000000 362f63 000010 00 A 0 0 1
│ │ │ │ │ │ │ │ - [10] .rela__mcount_loc RELA 0000000000000000 363b50 000030 18 I 25 9 8
│ │ │ │ │ │ │ │ - [11] .modinfo PROGBITS 0000000000000000 362f78 0000bc 00 A 0 0 8
│ │ │ │ │ │ │ │ - [12] .rodata.str1.1 PROGBITS 0000000000000000 363034 000010 01 AMS 0 0 1
│ │ │ │ │ │ │ │ - [13] .orc_unwind_ip PROGBITS 0000000000000000 363044 000020 00 A 0 0 1
│ │ │ │ │ │ │ │ - [14] .rela.orc_unwind_ip RELA 0000000000000000 363b80 0000c0 18 I 25 13 8
│ │ │ │ │ │ │ │ - [15] .orc_unwind PROGBITS 0000000000000000 363064 000030 00 A 0 0 1
│ │ │ │ │ │ │ │ - [16] .note.Linux PROGBITS 0000000000000000 363094 000018 00 A 0 0 4
│ │ │ │ │ │ │ │ - [17] .data PROGBITS 0000000000000000 3630ac 000000 00 WA 0 0 1
│ │ │ │ │ │ │ │ - [18] .data..ro_after_init PROGBITS 0000000000000000 3630c0 000038 00 WA 0 0 32
│ │ │ │ │ │ │ │ - [19] .rela.data..ro_after_init RELA 0000000000000000 363c40 000030 18 I 25 18 8
│ │ │ │ │ │ │ │ - [20] .gnu.linkonce.this_module PROGBITS 0000000000000000 363100 000380 00 WA 0 0 64
│ │ │ │ │ │ │ │ - [21] .rela.gnu.linkonce.this_module RELA 0000000000000000 363c70 000030 18 I 25 20 8
│ │ │ │ │ │ │ │ - [22] .bss NOBITS 0000000000000000 363480 000000 00 WA 0 0 1
│ │ │ │ │ │ │ │ - [23] .comment PROGBITS 0000000000000000 363480 000024 01 MS 0 0 1
│ │ │ │ │ │ │ │ - [24] .note.GNU-stack PROGBITS 0000000000000000 3634a4 000000 00 0 0 1
│ │ │ │ │ │ │ │ - [25] .symtab SYMTAB 0000000000000000 3634a8 0003d8 18 26 31 8
│ │ │ │ │ │ │ │ - [26] .strtab STRTAB 0000000000000000 363880 000193 00 0 0 1
│ │ │ │ │ │ │ │ - [27] .shstrtab STRTAB 0000000000000000 363ca0 000114 00 0 0 1
│ │ │ │ │ │ │ │ + [ 7] .rela.exit.text RELA 0000000000000000 362508 000048 18 I 25 6 8
│ │ │ │ │ │ │ │ + [ 8] .rodata PROGBITS 0000000000000000 0000cf 361878 00 A 0 0 1
│ │ │ │ │ │ │ │ + [ 9] __mcount_loc PROGBITS 0000000000000000 361947 000010 00 A 0 0 1
│ │ │ │ │ │ │ │ + [10] .rela__mcount_loc RELA 0000000000000000 362550 000030 18 I 25 9 8
│ │ │ │ │ │ │ │ + [11] .modinfo PROGBITS 0000000000000000 361958 0000bc 00 A 0 0 8
│ │ │ │ │ │ │ │ + [12] .rodata.str1.1 PROGBITS 0000000000000000 361a14 000010 01 AMS 0 0 1
│ │ │ │ │ │ │ │ + [13] .orc_unwind_ip PROGBITS 0000000000000000 361a24 000020 00 A 0 0 1
│ │ │ │ │ │ │ │ + [14] .rela.orc_unwind_ip RELA 0000000000000000 362580 0000c0 18 I 25 13 8
│ │ │ │ │ │ │ │ + [15] .orc_unwind PROGBITS 0000000000000000 361a44 000030 00 A 0 0 1
│ │ │ │ │ │ │ │ + [16] .note.Linux PROGBITS 0000000000000000 361a74 000018 00 A 0 0 4
│ │ │ │ │ │ │ │ + [17] .data PROGBITS 0000000000000000 361a8c 000000 00 WA 0 0 1
│ │ │ │ │ │ │ │ + [18] .data..ro_after_init PROGBITS 0000000000000000 361aa0 000038 00 WA 0 0 32
│ │ │ │ │ │ │ │ + [19] .rela.data..ro_after_init RELA 0000000000000000 362640 000030 18 I 25 18 8
│ │ │ │ │ │ │ │ + [20] .gnu.linkonce.this_module PROGBITS 0000000000000000 361b00 000380 00 WA 0 0 64
│ │ │ │ │ │ │ │ + [21] .rela.gnu.linkonce.this_module RELA 0000000000000000 362670 000030 18 I 25 20 8
│ │ │ │ │ │ │ │ + [22] .bss NOBITS 0000000000000000 361e80 000000 00 WA 0 0 1
│ │ │ │ │ │ │ │ + [23] .comment PROGBITS 0000000000000000 361e80 000024 01 MS 0 0 1
│ │ │ │ │ │ │ │ + [24] .note.GNU-stack PROGBITS 0000000000000000 361ea4 000000 00 0 0 1
│ │ │ │ │ │ │ │ + [25] .symtab SYMTAB 0000000000000000 361ea8 0003d8 18 26 31 8
│ │ │ │ │ │ │ │ + [26] .strtab STRTAB 0000000000000000 362280 000193 00 0 0 1
│ │ │ │ │ │ │ │ + [27] .shstrtab STRTAB 0000000000000000 3626a0 000114 00 0 0 1
│ │ │ │ │ │ │ │ Key to Flags:
│ │ │ │ │ │ │ │ W (write), A (alloc), X (execute), M (merge), S (strings), I (info),
│ │ │ │ │ │ │ │ L (link order), O (extra OS processing required), G (group), T (TLS),
│ │ │ │ │ │ │ │ C (compressed), x (unknown), o (OS specific), E (exclude),
│ │ │ │ │ │ │ │ l (large), p (processor specific)
│ │ │ │ │ │ │ ├── readelf --wide --symbols {}
│ │ │ │ │ │ │ │ @@ -36,9 +36,9 @@
│ │ │ │ │ │ │ │ 32: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND sysfs_create_bin_file
│ │ │ │ │ │ │ │ 33: 0000000000000000 19 FUNC GLOBAL DEFAULT 6 cleanup_module
│ │ │ │ │ │ │ │ 34: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND memcpy
│ │ │ │ │ │ │ │ 35: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND kernel_kobj
│ │ │ │ │ │ │ │ 36: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND __fentry__
│ │ │ │ │ │ │ │ 37: 0000000000000000 44 FUNC GLOBAL DEFAULT 4 init_module
│ │ │ │ │ │ │ │ 38: 0000000000000000 0 NOTYPE GLOBAL DEFAULT 8 kernel_headers_data
│ │ │ │ │ │ │ │ - 39: 0000000000362e94 0 NOTYPE GLOBAL DEFAULT 8 kernel_headers_data_end
│ │ │ │ │ │ │ │ + 39: 0000000000361878 0 NOTYPE GLOBAL DEFAULT 8 kernel_headers_data_end
│ │ │ │ │ │ │ │ 40: 0000000000000000 0 NOTYPE GLOBAL DEFAULT UND sysfs_remove_bin_file
│ │ │ │ │ │ │ ├── readelf --wide --relocs {}
│ │ │ │ │ │ │ │ @@ -1,48 +1,48 @@
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.text' at offset 0x363a18 contains 3 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.text' at offset 0x362418 contains 3 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000001 0000002400000004 R_X86_64_PLT32 0000000000000000 __fentry__ - 4
│ │ │ │ │ │ │ │ 0000000000000009 000000260000000b R_X86_64_32S 0000000000000000 kernel_headers_data + 0
│ │ │ │ │ │ │ │ 0000000000000017 0000002200000004 R_X86_64_PLT32 0000000000000000 memcpy - 4
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.init.text' at offset 0x363a60 contains 7 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.init.text' at offset 0x362460 contains 7 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000001 0000002400000004 R_X86_64_PLT32 0000000000000000 __fentry__ - 4
│ │ │ │ │ │ │ │ 0000000000000008 0000002300000002 R_X86_64_PC32 0000000000000000 kernel_kobj - 4
│ │ │ │ │ │ │ │ -000000000000000f 000000270000000b R_X86_64_32S 0000000000362e94 kernel_headers_data_end + 0
│ │ │ │ │ │ │ │ +000000000000000f 000000270000000b R_X86_64_32S 0000000000361878 kernel_headers_data_end + 0
│ │ │ │ │ │ │ │ 0000000000000016 000000050000000b R_X86_64_32S 0000000000000000 .data..ro_after_init + 0
│ │ │ │ │ │ │ │ 000000000000001c 000000260000000b R_X86_64_32S 0000000000000000 kernel_headers_data + 0
│ │ │ │ │ │ │ │ 0000000000000023 0000000500000002 R_X86_64_PC32 0000000000000000 .data..ro_after_init + c
│ │ │ │ │ │ │ │ 0000000000000028 0000002000000004 R_X86_64_PLT32 0000000000000000 sysfs_create_bin_file - 4
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.exit.text' at offset 0x363b08 contains 3 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.exit.text' at offset 0x362508 contains 3 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000003 0000002300000002 R_X86_64_PC32 0000000000000000 kernel_kobj - 4
│ │ │ │ │ │ │ │ 000000000000000a 000000050000000b R_X86_64_32S 0000000000000000 .data..ro_after_init + 0
│ │ │ │ │ │ │ │ 000000000000000f 0000002800000004 R_X86_64_PLT32 0000000000000000 sysfs_remove_bin_file - 4
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela__mcount_loc' at offset 0x363b50 contains 2 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela__mcount_loc' at offset 0x362550 contains 2 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000000 0000000100000001 R_X86_64_64 0000000000000000 .text + 0
│ │ │ │ │ │ │ │ 0000000000000008 0000000200000001 R_X86_64_64 0000000000000000 .init.text + 0
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.orc_unwind_ip' at offset 0x363b80 contains 8 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.orc_unwind_ip' at offset 0x362580 contains 8 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000000 0000000100000002 R_X86_64_PC32 0000000000000000 .text + 0
│ │ │ │ │ │ │ │ 0000000000000004 0000000100000002 R_X86_64_PC32 0000000000000000 .text + 6
│ │ │ │ │ │ │ │ 0000000000000008 0000000100000002 R_X86_64_PC32 0000000000000000 .text + 1f
│ │ │ │ │ │ │ │ 000000000000000c 0000000100000002 R_X86_64_PC32 0000000000000000 .text + 20
│ │ │ │ │ │ │ │ 0000000000000010 0000000200000002 R_X86_64_PC32 0000000000000000 .init.text + 0
│ │ │ │ │ │ │ │ 0000000000000014 0000000200000002 R_X86_64_PC32 0000000000000000 .init.text + 2c
│ │ │ │ │ │ │ │ 0000000000000018 0000000300000002 R_X86_64_PC32 0000000000000000 .exit.text + 0
│ │ │ │ │ │ │ │ 000000000000001c 0000000300000002 R_X86_64_PC32 0000000000000000 .exit.text + 13
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.data..ro_after_init' at offset 0x363c40 contains 2 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.data..ro_after_init' at offset 0x362640 contains 2 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000000 0000000400000001 R_X86_64_64 0000000000000000 .rodata.str1.1 + 0
│ │ │ │ │ │ │ │ 0000000000000020 0000000100000001 R_X86_64_64 0000000000000000 .text + 0
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ -Relocation section '.rela.gnu.linkonce.this_module' at offset 0x363c70 contains 2 entries:
│ │ │ │ │ │ │ │ +Relocation section '.rela.gnu.linkonce.this_module' at offset 0x362670 contains 2 entries:
│ │ │ │ │ │ │ │ Offset Info Type Symbol's Value Symbol's Name + Addend
│ │ │ │ │ │ │ │ 0000000000000150 0000002500000001 R_X86_64_64 0000000000000000 init_module + 0
│ │ │ │ │ │ │ │ 0000000000000328 0000002100000001 R_X86_64_64 0000000000000000 cleanup_module + 0
│ │ │ │ │ │ │ ├── readelf --wide --notes {}
│ │ │ │ │ │ │ │ @@ -1,4 +1,4 @@
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ Displaying notes found in: .note.gnu.build-id
│ │ │ │ │ │ │ │ Owner Data size Description
│ │ │ │ │ │ │ │ - GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: 197b8ff469178a5f51ac2b8ade6c994ebcf7f561
│ │ │ │ │ │ │ │ + GNU 0x00000014 NT_GNU_BUILD_ID (unique build ID bitstring) Build ID: f1be61d13ec79629ca8e07af537c6b7a146817e0
│ │ │ │ │ │ │ ├── readelf --wide --decompress --hex-dump=.rodata {}
│ │ │ │ │ │ │ │ @@ -1,221933 +1,221579 @@
│ │ │ │ │ │ │ │
│ │ │ │ │ │ │ │ Hex dump of section '.rodata':
│ │ │ │ │ │ │ │ 0x00000000 fd377a58 5a000004 e6d6b446 02002101 .7zXZ......F..!.
│ │ │ │ │ │ │ │ - 0x00000010 16000000 742fe5a3 e6019fef fe5d0017 ....t/.......]..
│ │ │ │ │ │ │ │ + 0x00000010 16000000 742fe5a3 e5f269ef fe5d0017 ....t/....i..]..
│ │ │ │ │ │ │ │ + 0x00361820 42f0293b c4578da9 ce11ed40 968e3b99 B.);.W.....@..;.
[... shortened ...]
│ │ │ │ │ │ │ │ + 0x00361830 1f2a2d23 be6e6732 2fa78081 c8072b36 .*-#.ng2/.....+6
│ │ │ │ │ │ │ │ + 0x00361840 79534bab ff4e0b9e 9673d490 c4efadb1 ySK..N...s......
│ │ │ │ │ │ │ │ + 0x00361850 2e000000 981ba1b3 0f441ebc 0001ceb0 .........D......
│ │ │ │ │ │ │ │ + 0x00361860 d80180f0 f20e0000 9e36b397 14173b30 .........6....;0
│ │ │ │ │ │ │ │ + 0x00361870 03000000 0004595a ......YZ
│ │ │ │ │ │ ├── stat {}
│ │ │ │ │ │ │ @@ -1,7 +1,7 @@
│ │ │ │ │ │ │
│ │ │ │ │ │ │ - Size: 3552836 Blocks: 6944 IO Block: 4096 regular file
│ │ │ │ │ │ │ + Size: 3547084 Blocks: 6928 IO Block: 4096 regular file
│ │ │ │ │ │ │ Access: (0444/-r--r--r--) Uid: ( 0/ root) Gid: ( 0/ root)
│ │ │ │ │ │ │
│ │ │ │ │ │ │ Modify: 1970-01-01 00:00:01.000000000 +0000
│ │ │ │ │ │ │
│ │ │ │ │ │ │ Birth: -
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment