Repository navigation
[reproduce] Preserve linker inputs when reproduce link fails - #2068
Steven Ramirez Rosa (Steven6798) wants to merge 1 commit into
Conversation
| // namespecs that have an explicit mapping entry, preserving normal mapped | ||
| // link behavior. | ||
| if (PConfig.options().hasMappingFile() && !isInternal() && | ||
| (Type != Input::Namespec || PConfig.hasMappingForFile(FileName))) |
There was a problem hiding this comment.
Can this condition be simplified or made into a seperate function ?
Input::resolveReproducePath() ?
This will allow the critical code without reproduce unaffected.
There was a problem hiding this comment.
Sounds good.
There was a problem hiding this comment.
Let me know if my latest change is what you were looking for.
| @@ -1763,6 +1770,8 @@ bool GnuLdDriver::processReproduceOption( | |||
| break; | |||
| } | |||
There was a problem hiding this comment.
I could not follow this.
There was a problem hiding this comment.
We cannot just return because we failed to resolve the action. That's how we end up without the input file in the reproduce.
Capture linker scripts and unresolved namespecs when input activation fails so the reproduce response preserves the original failure. Avoid applying mapping-file resolution to unmapped replay namespecs while retaining normal mapped namespec behavior. Fix: qualcomm#1014 Signed-off-by: Steven Ramirez Rosa <ramirezr@qti.qualcomm.com>
d73074a to
2f5b3d9
Compare
| arg->getValue(), eld::SearchDirs::SearchInputType::Script)) | ||
| ResolvedPath = Resolved->native(); | ||
| if (!ResolvedPath.empty()) | ||
| outputTar->createAndAddScriptFile(arg->getValue(), ResolvedPath); |
There was a problem hiding this comment.
Is it possible that we add this script twice? What about scripts that include other scripts?
There was a problem hiding this comment.
I will look into this. Thanks!
Capture linker scripts and unresolved namespecs when input activation fails so the reproduce response preserves the original failure. Avoid applying mapping-file resolution to unmapped replay namespecs while retaining normal mapped namespec behavior.
Fix: #1014