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

Rui Ueyama ruiu at google.com
Wed Mar 4 11:25:09 PST 2015


On Wed, Mar 4, 2015 at 11:22 AM, Shankar Kalpathi Easwaran <
shankarke at gmail.com> wrote:

> ================
> Comment at: lib/Core/Resolver.cpp:84
> @@ -83,3 +83,3 @@
>      if (const File *member = archiveFile->find(undefName,
> dataSymbolOnly)) {
> -      member->setOrdinal(_ctx.getNextOrdinalAndIncrement());
> +      member->setOrdinal(archiveFile->ordinal() + _memberOrdinal++);
>        const_cast<File *>(member)->beforeLink();
> ----------------
> The member ordinal seems wrong, it should be the next ordinal available
> for GNU.


Why do you think so?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150304/4c9ccbf6/attachment.html>


More information about the llvm-commits mailing list