llvm / llvm/llvm-project

LLD does not recognize -T for -m i386pe

Open
#185,312 4 comments 0 reactions 0 assignees View on GitHub
lld:COFF
Dominant language
LLVM
Stars
40.5k
Forks
18.7k
PR merge metrics
PR metrics pending

Description

LLD does not recognize the linker script argument when in i386pe linker emulation mode.

Minimum reproducible command:

ld.lld -m i386pe -T linkerscript.ld

Results in lld: error: unknown argument: -T

Contributor guide

Open the contributing guide

Research direction

Start by running the minimum reproducible command with lld and the provided linker-script argument, then trace how i386pe linker emulation parses command-line options. Done means -T linkerscript.ld is accepted in i386pe mode without the reported unknown-argument error, with relevant regression coverage added.

Written by the indexing model from the issue text.

Assessment

Domain
compilers
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
42/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.