<div dir="ltr"><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Fri, 17 Jul 2020 at 02:20, David Blaikie <<a href="mailto:dblaikie@gmail.com">dblaikie@gmail.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">P.S: Sony's already been using the -1 technique with their debugger and linker for a while, so they may want to keep this on by default for SCE - but I'm not sure how to do that in-tree. Clang doesn't know which lld version it's running, so whether the flag can be specified, I would think? (so it'd be hard to have Clang go "if SCE and LLD, pass the flag to use -1", I think) - if there is a way to make that decision in the compiler driver+linker, then we'd have a question of "default new behavior except when tuning for LLDB and GDB" or "default bfd behavior except when tuning for SCE".<br></div></blockquote><div><br></div><div>Currently, where we want different defaults in our LLD to upstream LLD, our downstream port overrides the behaviour, if the linker name matches our downstream linker name. The behaviour isn't at all related to the input file targets etc. This is so that the linker can be run without using the clang driver to provide all the various arguments/keep things simpler in our restricted environment etc. We might change this in the future, but either way, as long as there's a configurable behaviour we can easily override, then it's fine.</div><div><br></div><div>It would help if we get a heads up if a default behaviour like this is changing, since sometimes it might cause us problems/not get noticed by our testing etc.<br></div></div></div>