This changes the interaction of --symbol-ordering-file with linker scripts, but since we created --symbol-ordering-file I think this is reasonable. The new code is simpler and the behavior less surprising.
Details
Diff Detail
Event Timeline
Not sure if this is what motivated your change, but I think this will allow me to make some improvements to D42475.
Personally, I'm not convinced that we should ignore the symbol-ordering-file for non-orphaned sections, since it's more likely, I feel, for people to use linker scripts "by default" than the ordering file, but this is not really part of this change.
ELF/LinkerScript.cpp | ||
---|---|---|
256 | Order isn't used here after this change, so it can be removed from this function plus a number of functions in the call stack, which in turn allows us to remove the buildSectionOrder call in processSectionCommands. |
5th comment's line is outdated after the change.