Skip to content

Mach-O: Identify sections by segment name and section name #2248

Description

@joanna-jo

Mach-O sections are identified by (segment name, section name), as also seen in lld and dyld. Currently, in our implementation, we resolve Mach-O input sections by only the section name, then map each resulting OutputSectionId to a fixed output segment. This means that sections with the same section name but different segment names are coalesced together, such as __TEXT, __const and __DATA_CONST, __const.

I was looking at #1795 (cc: @marxin) and saw that the supported segments and sections were made intentionally strict though - did we want to try refactoring this now?

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

mach-oAnything related to the Mach-O port

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions