Skip to content

chore(mm2 binary): remove debug info from release binary#1954

Merged
shamardy merged 1 commit intodevfrom
strip-release-builds
Sep 4, 2023
Merged

chore(mm2 binary): remove debug info from release binary#1954
shamardy merged 1 commit intodevfrom
strip-release-builds

Conversation

@onur-ozkan
Copy link
Copy Markdown

@onur-ozkan onur-ozkan commented Aug 31, 2023

Binary report comparison from old to new mm2 builds:

     FILE SIZE        VM SIZE
  --------------  --------------
-  48.2%  24.5Mi  68.0%  24.5Mi    .text
-  12.4%  6.31Mi   0.0%       0    .strtab
-   8.2%  4.17Mi  11.6%  4.17Mi    .rodata
-   5.7%  2.91Mi   0.0%       0    .debug_info
-   4.2%  2.13Mi   5.9%  2.13Mi    .rela.dyn
+  72.1%  24.5Mi  68.0%  24.5Mi    .text
+  12.3%  4.17Mi  11.6%  4.17Mi    .rodata
+   6.3%  2.12Mi   5.9%  2.12Mi    .rela.dyn
    0.0%       0   5.7%  2.04Mi    .bss
-   3.2%  1.63Mi   4.5%  1.63Mi    .eh_frame
-   3.2%  1.62Mi   0.0%       0    .debug_loclists
-   3.0%  1.54Mi   0.0%       0    .debug_str
-   2.9%  1.50Mi   0.0%       0    .symtab
-   2.4%  1.22Mi   0.0%       0    .debug_line
-   2.1%  1.07Mi   3.0%  1.06Mi    .data.rel.ro
-   1.1%   585Ki   0.0%       0    .debug_ranges
-   1.0%   521Ki   0.0%       0    .debug_pubnames
-   0.5%   255Ki   0.0%       0    .debug_macro
-   0.5%   242Ki   0.7%   242Ki    .got
-   0.4%   214Ki   0.0%       0    .debug_rnglists
-   0.4%   209Ki   0.6%   209Ki    .eh_frame_hdr
-   0.2%  85.4Ki   0.0%       0    .debug_abbrev
-   0.1%  64.6Ki   0.0%       0    .debug_aranges
+   4.8%  1.62Mi   4.5%  1.62Mi    .eh_frame
+   3.1%  1.07Mi   3.0%  1.06Mi    .data.rel.ro
+   0.7%   241Ki   0.7%   241Ki    .got
+   0.6%   209Ki   0.6%   209Ki    .eh_frame_hdr
    0.1%  29.5Ki   0.1%  29.4Ki    .data
-   0.0%  6.76Ki   0.0%       0    [Unmapped]
-   0.0%  5.94Ki   0.0%       0    .debug_line_str
    0.0%       0   0.0%  5.56Ki    .tbss
    0.0%  5.31Ki   0.0%  5.25Ki    .dynsym
    0.0%  4.92Ki   0.0%  4.86Ki    .gcc_except_table
    0.0%  3.09Ki   0.0%  3.03Ki    .dynstr
    0.0%  2.67Ki   0.0%  2.61Ki    .tdata
+   0.0%  2.47Ki   0.0%       0    [Unmapped]
    0.0%  2.03Ki   0.0%  1.97Ki    .rela.plt
    0.0%  1.39Ki   0.0%  1.33Ki    .plt
-   0.0%  1.03Ki   0.0%       0    .debug_frame
    0.0%     859   0.0%     859    [LOAD #2 [R]]
    0.0%     648   0.0%     584    .gnu.hash
    0.0%     640   0.0%     576    .dynamic
-   0.0%     596   0.0%       0    .shstrtab
    0.0%     544   0.0%     480    .gnu.version_r
    0.0%     512   0.0%     448    .gnu.version
-   0.0%     496   0.0%       0    .debug_pubtypes
    0.0%     432   0.0%     368    .plt.got
+   0.0%     365   0.0%       0    .shstrtab
    0.0%     192   0.0%       0    [ELF Headers]
-   0.0%     140   0.0%       0    .debug_str_offsets
    0.0%     130   0.0%       0    .comment
    0.0%     100   0.0%      36    .note.gnu.build-id
    0.0%      96   0.0%      32    .note.ABI-tag
@@ -48,12 +32,11 @@
    0.0%      92   0.0%      28    .interp
    0.0%      88   0.0%       0    .init_array
    0.0%      87   0.0%      23    .init
-   0.0%      80   0.0%       0    .debug_addr
    0.0%      73   0.0%       9    .fini
    0.0%      72   0.0%       0    .fini_array
    0.0%      41   0.0%      41    [LOAD #3 [RX]]
    0.0%       0   0.0%      40    [LOAD #5 [RW]]
    0.0%       4   0.0%       4    [LOAD #4 [R]]
- 100.0%  50.8Mi 100.0%  36.0Mi    TOTAL
+ 100.0%  33.9Mi 100.0%  36.0Mi    TOTAL

Signed-off-by: onur-ozkan <work@onurozkan.dev>
@shamardy shamardy merged commit 96a53ce into dev Sep 4, 2023
@shamardy shamardy deleted the strip-release-builds branch September 4, 2023 08:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants