Current-Users archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: kernel size change



On Thu, Jul 13, 2023 at 08:16:34AM +0000, RVP wrote:
> That's one of them. The DATA segment is now at 0x1a00000 instead of at
> 0x1800000 (2MB difference). The CODE segment must've increased in size for
> this. Check the previous `Section Headers:' display to see see how the sizes
> have changes, starting with the `.text' section.

Here's the complete diff for readelf -We:

--- old	2023-07-13 12:58:51.079219761 +0200
+++ new	2023-07-13 12:58:37.280681398 +0200
@@ -10,7 +10,7 @@
   Version:                           0x1
   Entry point address:               0xffffffff8020e000
   Start of program headers:          64 (bytes into file)
-  Start of section headers:          29650104 (bytes into file)
+  Start of section headers:          31749240 (bytes into file)
   Flags:                             0x0
   Size of this header:               64 (bytes)
   Size of program headers:           56 (bytes)
@@ -22,39 +22,39 @@
 Section Headers:
   [Nr] Name              Type            Address          Off    Size   ES Flg Lk Inf Al
   [ 0]                   NULL            0000000000000000 000000 000000 00      0   0  0
-  [ 1] .text             PROGBITS        ffffffff80200000 200000 e00000 00  AX  0   0 4096
-  [ 2] .rodata.hotpatch  PROGBITS        ffffffff81000000 1000000 00229c 00   A  0   0  1
-  [ 3] .rodata           PROGBITS        ffffffff810022c0 10022c0 4fab40 00   A  0   0 64
-  [ 4] .eh_frame         PROGBITS        ffffffff814fce00 14fce00 1bf5b8 00   A  0   0  8
-  [ 5] link_set_x86_hotpatch_descriptors PROGBITS        ffffffff816bc3b8 16bc3b8 000068 00   A  0   0  8
-  [ 6] link_set_modules  PROGBITS        ffffffff816bc420 16bc420 000908 00   A  0   0  8
-  [ 7] link_set_sdt_argtypes_set PROGBITS        ffffffff816bcd28 16bcd28 0020d8 00   A  0   0  8
-  [ 8] link_set_sdt_probes_set PROGBITS        ffffffff816bee00 16bee00 000bb0 00   A  0   0  8
-  [ 9] link_set_sdt_providers_set PROGBITS        ffffffff816bf9b0 16bf9b0 000030 00   A  0   0  8
-  [10] link_set_sysctl_funcs PROGBITS        ffffffff816bf9e0 16bf9e0 0002f0 00   A  0   0  8
-  [11] link_set_acpi_device_calls PROGBITS        ffffffff816bfcd0 16bfcd0 000010 00   A  0   0  8
-  [12] link_set_evcnts   PROGBITS        ffffffff816bfce0 16bfce0 000138 00   A  0   0  8
-  [13] link_set_linux_module_param_desc PROGBITS        ffffffff816bfe18 16bfe18 0002b8 00   A  0   0  8
-  [14] link_set_linux_module_param_info PROGBITS        ffffffff816c00d0 16c00d0 0002c0 00   A  0   0  8
-  [15] link_set_domains  PROGBITS        ffffffff816c0390 16c0390 000058 00   A  0   0  8
-  [16] link_set_ieee80211_funcs PROGBITS        ffffffff816c03e8 16c03e8 000020 00   A  0   0  8
-  [17] link_set_ah_chips PROGBITS        ffffffff816c0408 16c0408 000038 00   A  0   0  8
-  [18] link_set_ah_rfs   PROGBITS        ffffffff816c0440 16c0440 000038 00   A  0   0  8
-  [19] link_set_dkwedge_methods PROGBITS        ffffffff816c0478 16c0478 000018 00   A  0   0  8
-  [20] link_set_prop_linkpools PROGBITS        ffffffff816c0490 16c0490 000040 00   A  0   0  8
-  [21] .data             PROGBITS        ffffffff81800000 1800000 0c3bf8 00  WA  0   0 64
-  [22] .data.cacheline_aligned PROGBITS        ffffffff818c3c00 18c3c00 00e178 00  WA  0   0 64
-  [23] .data.read_mostly PROGBITS        ffffffff818d1d80 18d1d80 001468 00  WA  0   0 32
-  [24] .bss              NOBITS          ffffffff818d4000 18d31e8 12c000 00  WA  0   0 4096
-  [25] .note.netbsd.ident NOTE            ffffffff81a00000 18d31e8 000018 00      0   0  4
-  [26] .note.Xen         NOTE            0000000000000000 18d3200 000198 00      0   0  4
-  [27] .ident            PROGBITS        0000000000000000 18d3398 031eef 01  MS  0   0  1
-  [28] .comment          PROGBITS        0000000000000000 1905287 000022 01  MS  0   0  1
-  [29] .SUNW_ctf         PROGBITS        0000000000000000 19052ac 0e9048 00      0   0  4
-  [30] .gnu_debuglink    PROGBITS        0000000000000000 19ee2f4 000018 00      0   0  4
-  [31] .symtab           SYMTAB          0000000000000000 19ee310 15a800 18     32 31599  8
-  [32] .strtab           STRTAB          0000000000000000 1b48b10 0fdf6e 00      0   0  1
-  [33] .shstrtab         STRTAB          0000000000000000 1c46a7e 000238 00      0   0  1
+  [ 1] .text             PROGBITS        ffffffff80200000 200000 1000000 00  AX  0   0 4096
+  [ 2] .rodata.hotpatch  PROGBITS        ffffffff81200000 1200000 00229c 00   A  0   0  1
+  [ 3] .rodata           PROGBITS        ffffffff812022c0 12022c0 4fbc80 00   A  0   0 64
+  [ 4] .eh_frame         PROGBITS        ffffffff816fdf40 16fdf40 1bf940 00   A  0   0  8
+  [ 5] link_set_x86_hotpatch_descriptors PROGBITS        ffffffff818bd880 18bd880 000068 00   A  0   0  8
+  [ 6] link_set_modules  PROGBITS        ffffffff818bd8e8 18bd8e8 000908 00   A  0   0  8
+  [ 7] link_set_sdt_argtypes_set PROGBITS        ffffffff818be1f0 18be1f0 0020d8 00   A  0   0  8
+  [ 8] link_set_sdt_probes_set PROGBITS        ffffffff818c02c8 18c02c8 000bb0 00   A  0   0  8
+  [ 9] link_set_sdt_providers_set PROGBITS        ffffffff818c0e78 18c0e78 000030 00   A  0   0  8
+  [10] link_set_sysctl_funcs PROGBITS        ffffffff818c0ea8 18c0ea8 0002f0 00   A  0   0  8
+  [11] link_set_acpi_device_calls PROGBITS        ffffffff818c1198 18c1198 000010 00   A  0   0  8
+  [12] link_set_evcnts   PROGBITS        ffffffff818c11a8 18c11a8 000138 00   A  0   0  8
+  [13] link_set_linux_module_param_desc PROGBITS        ffffffff818c12e0 18c12e0 0002b8 00   A  0   0  8
+  [14] link_set_linux_module_param_info PROGBITS        ffffffff818c1598 18c1598 0002c0 00   A  0   0  8
+  [15] link_set_domains  PROGBITS        ffffffff818c1858 18c1858 000058 00   A  0   0  8
+  [16] link_set_ieee80211_funcs PROGBITS        ffffffff818c18b0 18c18b0 000020 00   A  0   0  8
+  [17] link_set_ah_chips PROGBITS        ffffffff818c18d0 18c18d0 000038 00   A  0   0  8
+  [18] link_set_ah_rfs   PROGBITS        ffffffff818c1908 18c1908 000038 00   A  0   0  8
+  [19] link_set_dkwedge_methods PROGBITS        ffffffff818c1940 18c1940 000018 00   A  0   0  8
+  [20] link_set_prop_linkpools PROGBITS        ffffffff818c1958 18c1958 000040 00   A  0   0  8
+  [21] .data             PROGBITS        ffffffff81a00000 1a00000 0c3c38 00  WA  0   0 64
+  [22] .data.cacheline_aligned PROGBITS        ffffffff81ac3c40 1ac3c40 00e178 00  WA  0   0 64
+  [23] .data.read_mostly PROGBITS        ffffffff81ad1dc0 1ad1dc0 001468 00  WA  0   0 32
+  [24] .bss              NOBITS          ffffffff81ad4000 1ad3228 12c000 00  WA  0   0 4096
+  [25] .note.netbsd.ident NOTE            ffffffff81c00000 1ad3228 000018 00      0   0  4
+  [26] .note.Xen         NOTE            0000000000000000 1ad3240 000198 00      0   0  4
+  [27] .ident            PROGBITS        0000000000000000 1ad33d8 031f99 01  MS  0   0  1
+  [28] .comment          PROGBITS        0000000000000000 1b05371 000022 01  MS  0   0  1
+  [29] .SUNW_ctf         PROGBITS        0000000000000000 1b05394 0e9382 00      0   0  4
+  [30] .gnu_debuglink    PROGBITS        0000000000000000 1bee718 000018 00      0   0  4
+  [31] .symtab           SYMTAB          0000000000000000 1bee730 15aa58 18     32 31618  8
+  [32] .strtab           STRTAB          0000000000000000 1d49188 0fe0b6 00      0   0  1
+  [33] .shstrtab         STRTAB          0000000000000000 1e4723e 000238 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),
@@ -63,8 +63,8 @@
 
 Program Headers:
   Type           Offset   VirtAddr           PhysAddr           FileSiz  MemSiz   Flg Align
-  LOAD           0x200000 0xffffffff80200000 0x0000000000200000 0x14c04d0 0x14c04d0 R E 0x200000
-  LOAD           0x1800000 0xffffffff81800000 0x0000000001800000 0x0d31e8 0x200000 RW  0x200000
+  LOAD           0x200000 0xffffffff80200000 0x0000000000200000 0x16c1998 0x16c1998 R E 0x200000
+  LOAD           0x1a00000 0xffffffff81a00000 0x0000000001a00000 0x0d3228 0x200000 RW  0x200000
 
  Section to Segment mapping:
   Segment Sections...


Thanks for the suggestions on what to look at!
 Thomas


Home | Main Index | Thread Index | Old Index