Skip to content

Local static functions are missing from diff #156

Closed
@Francessco121

Description

@Francessco121

In the Dinosaur Planet decomp we have DLL code that makes heavy use of static functions which must be static in order to match calling code. These are missing from objdiff as it ignores local symbols with a size of zero: https://github.com/encounter/objdiff/blob/v2.7.1/objdiff-core/src/obj/read.rs#L170-L176. Removing this code fixes the issue but I imagine also breaks other projects.

I don't totally understand why these symbols have a size of zero but if it helps the compiler is IDO 5.3.

readelf symbol table output
(num, value, size, type, bind, vis, ndx, name):
Image

Missing functions in UI (CLI can't diff them either, just says it cant find the symbol):
Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions