Skip to content

cmd/asm: inconsistent handling of explicit zero offset for TEXT pseudo #30968

@benjaminp

Description

@benjaminp

cmd/asm in Go 1.12.1 and before willingly assembles

TEXT ·MyFunc+0(SB), $0

However, cmd/asm in -gensymabis mode doesn't recognize this line as a definition. That leads to esoteric symbol ABI errors during linking on Go 1.12.

Either offset for the TEXT pseudo should be fully banned or -gensymabis should handle explicit zero offsets.

Metadata

Metadata

Assignees

No one assigned

    Labels

    FrozenDueToAgeNeedsInvestigationSomeone must examine and confirm this is a valid issue and not a duplicate of an existing one.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions