[PATCH] LLD: Core: Fix file ordinals of archive members.

Rui Ueyama ruiu at google.com
Wed Mar 4 10:33:34 PST 2015


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.


http://reviews.llvm.org/D8052

EMAIL PREFERENCES
  http://reviews.llvm.org/settings/panel/emailpreferences/






More information about the llvm-commits mailing list