Skip to content

patchelf complaining about missing .dynamic section #2336

@mazunki

Description

@mazunki

During the fixupPhase, we can see that patchelf complains that it's not finding a dynamic section:

Running phase: fixupPhase
shrinking RPATHs of ELF executables and libraries in /nix/store/jaw6zd4z8fdh98i029dmv59lsx27nxc2-includeos_example-static-x86_64-unknown-linux-musl-dev
shrinking /nix/store/jaw6zd4z8fdh98i029dmv59lsx27nxc2-includeos_example-static-x86_64-unknown-linux-musl-dev/net_slaac.elf.bin
patchelf: cannot find section '.dynamic'. The input file is most likely statically linked

Our builds are always statically built, this is correct.

The fix for this is most likely just enabling a flag to inform patchelf that its input is a static file. I assume this is not harmful in anyway, but it'd be nice to get rid of the warning.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions