Skip to content

Large binaries in the dev output of the linux kernel #240765

Description

@Tom-Hubrecht

Describe the bug

When building the linux kernel, a dev output is automatically created, which contains a very large binary vmlinux (around 450MB in my case).
It seems that it is intentionally kept (see https://github.com/NixOS/nixpkgs/blob/nixos-23.05/pkgs/os-specific/linux/kernel/manual-config.nix#L333 )
Is there any reason to keep such a large file in the closure ?

Steps To Reproduce

Build a linux kernel

Expected behavior

To ship only necessary kernel features and headers, without a 450MB file in the closure.

Notify maintainers

@RaitoBezarius

Activity

  1. added
    0.kind: bug
    on Jun 30, 2023
  2. lorenz commented on Jun 30, 2023

    @lorenz
    Contributor

    That is the uncompressed kernel ELF file, probably also with DWARF debug info. This can be used to diagnose/debug various issues in the kernel.

  3. RaitoBezarius commented on Jul 8, 2023

    @RaitoBezarius
    Member

    @lorenz Shouldn't this end up in debug output rather?

  4. lorenz commented on Jul 9, 2023

    @lorenz
    Contributor

    So i quickly checked and this was introduced in d57568f, for being able to use GDB. So this could be moved to a debug output, but currently there doesn't seem to be one.

  5. added
    2.status: stale
    on Jul 3, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    0.kind: bug2.status: stale

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions