• Nick Desaulniers's avatar
    Makefile: support compressed debug info · 10e68b02
    Nick Desaulniers authored
    As debug information gets larger and larger, it helps significantly save
    the size of vmlinux images to compress the information in the debug
    information sections. Note: this debug info is typically split off from
    the final compressed kernel image, which is why vmlinux is what's used
    in conjunction with GDB. Minimizing the debug info size should have no
    impact on boot times, or final compressed kernel image size.
    
    All of the debug sections will have a `C` flag set.
    $ readelf -S <object file>
    
    $ bloaty vmlinux.gcc75.compressed.dwarf4 -- \
        vmlinux.gcc75.uncompressed.dwarf4
    
        FILE SIZE        VM SIZE
     --------------  --------------
      +0.0%     +18  [ = ]       0    [Unmapped]
     -73.3%  -114Ki  [ = ]       0    .debug_aranges
     -76.2% -2.01Mi  [ = ]       0    .debug_frame
     -73.6% -2.89Mi  [ = ]       0    .debug_str
     -80.7% -4.66Mi  [ = ]       0    .debug_abbrev
     -82.9% -4.88Mi  [ = ]       0    .debug_ranges
     -70.5% -9.04Mi  [ = ]       0    .debug_line
     -79.3% -...
    10e68b02
Makefile 60.5 KB