[PATCH] LLD: Core: Fix file ordinals of archive members.
Shankar Easwaran
shankare at codeaurora.org
Wed Mar 4 10:58:31 PST 2015
On 3/4/2015 12:33 PM, Rui Ueyama wrote:
> I believed that you wrote this code and was aware of the thing. But as a refresher, the order of symbol resolution and file resolution are not the same. Only object files are visited in order. Files in an archive file is visited only when it's needed. If archive files are grouped with -( and -), the order to visit files in the archives is not the same as the order in the input file list.
>
> Previously we set a new and largest ordinal to a file in an archive file as we visit that. So the files in archive files got ordinals in the resolution order, not in the input file order.
We need the behavior to set ordinals based on resolution order to match
GNU.
Shankar Easwaran
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum, hosted by the Linux Foundation
More information about the llvm-commits
mailing list