[PATCH] LLD: Core: Fix file ordinals of archive members.
ruiu at google.com
Tue Mar 3 20:19:00 PST 2015
Previously archive file members got random-ish file ordinals because
file ordinals were assigned in the same order as the resolver needs
them. In LLD, atoms in the output should be ordered in the same as
in the command line, but it was not true for archive files.
This patch (partially) fixes the issue. Now, member files get larger
file ordinals than the archive file but not larger than the next file.
So, after atoms are sorted by file ordinals, they are sorted in the
same order as in the command line.
The reason why it's partial is because the order of members in the
same archive still depends on the resolution order. This needs to be
fixed in future.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 7316 bytes
Desc: not available
More information about the llvm-commits