Skip to content

TOC pointer is not modified when calling functions under certain circumstances #111

@lephilousophe

Description

@lephilousophe

When building ScummVM with binutils 2.22, some calls were issued directly instead of using an adjusting stub responsible of setting the correct TOC address in r2.
I couldn't identify the root cause of this bug nor commit in binutils fixed the bug but the build works perfectly using binutils 2.36.1.

There is only a patch to apply on PSL1GHT to make it align the got on a 256 bytes boundary instead of 8 because of commit bminor/binutils-gdb@a27e685fa0a6 in binutils.

I don't submit a PR for that because I didn't manage to have SPU build correctly with latest binutils.

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