Support emulation options when invoking ld.eld directly.#1250
Support emulation options when invoking ld.eld directly.#1250Kali (EagleEye-0101) wants to merge 1 commit into
Conversation
|
Hi, I'm working on #21 by extending ld.eld driver selection for -march/-mtriple/-mcpu Happy to make any changes based on your feedback. |
|
added a comment in the issue |
1a37e96 to
a247f40
Compare
a247f40 to
e0acff2
Compare
|
Hi Shankar Easwaran (@quic-seaswara), thanks for the comment on issue #21, I read it and pushed an update. I removed using -march and -mtriple for ld.eld driver selection, since those aren't standard for the generic linker name. The PR now focuses on -m emulation (including tighter ARM validation and Template support from main), -mcpu where it helps pick the driver (e.g. Hexagon), and rejecting conflicting target options. Please let me know if -mcpu should be removed from ld.eld driver selection as well, or if anything else should change. Happy to adjust. |
Extend ld.eld driver selection for -m emulation (including Template support), -mcpu where it helps pick the driver (e.g. Hexagon), and reject conflicting target options. Tighten ARM -m emulation validation. Closes qualcomm#21 Signed-off-by: EagleEye-0101 <kaliking2k20@gmail.com>
e0acff2 to
a0a9244
Compare
Summary
ld.elddriver selection to honor-marchvariants,-mtriple, and-mcpuwithout requiring target-specific symlink names (arm-link,riscv-link, etc.)-memulation validation to match supported emulation stringsld.eld-only invocation paths and re-enable Hexagon invalid-emulation checksCloses #21. Builds on prior work in #22/#23 and #54/#55.
Test plan
ci.yml) passes —ninja check-eldtest/Common/standalone/EmulationOptions/andtest/*/standalone/EmulationOptions/test/Hexagon/standalone/InvalidEmulation/InvalidEmulation.test