Skip to content

[LLD] lld does not parse options for orphan-handling in a case insensitive manner. #113444

@quic-rb10

Description

@quic-rb10

Currently LLD does not parse options for orphan handling in a case insensitive manner.

The command:
ld.lld 1.o -orphan-handling=Error -T script.t
returns an error: ld.lld: error: unknown --orphan-handling mode: Error

However, GCC supports case insensitive parsing for -orphan-handling options and the above command works normally.

We should support case insensitive parsing in lld; this would help improve compatibility with GNU ld.

Metadata

Metadata

Assignees

No one assigned

    Labels

    lldwontfixIssue is real, but we can't or won't fix it. Not invalid

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions