Skip to content

DCE (dead code elimination) is disabled #3586

@kruskall

Description

@kruskall

Describe the bug

DCE (dead code elimination) is being disabled because of problematic use of reflection. This should be a bug for any production binary.

deadcode being included is significantly the binary size and makes it even harder to reduce it.

Preconditions

none

To Reproduce

  1. build the binary (a marker unused method can be added to prove DCE is disabled)

Expected behavior

deadcode is not included in the binary

References

Calling this method will cause the linker to retain all methods with this name in all packages. If the linker can't determine the name, it will retain all exported methods. This may make the executable binary larger but will not affect execution time.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Team:Cloud SecurityCloud Security team relatedbugSomething isn't working

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions