This is an archive of the discontinued LLVM Phabricator instance.

[ELF] - Another fix for "Do not fail when set versions for linkerscript's symbol aliases"
AbandonedPublic

Authored by grimar on Sep 12 2017, 12:57 AM.

Details

Reviewers
ruiu
rafael
Summary

This is alternative version of D36579, which uses
addUndefined() for creating dummy symbols assigned
by linkerscript.

Diff Detail

Event Timeline

grimar created this revision.Sep 12 2017, 12:57 AM
ruiu edited edge metadata.Sep 12 2017, 4:50 PM

Why do you need an alternative solution? (Speaking of simplicity, I think both solutions seem too complicated. I don't have a clear idea at the moment, but I believe there must be some way to make this a non-issue. It seems that the existence of the problem is a signal that our architecture is not right.)

In D37731#868930, @ruiu wrote:

Why do you need an alternative solution? (Speaking of simplicity, I think both solutions seem too complicated. I don't have a clear idea at the moment, but I believe there must be some way to make this a non-issue. It seems that the existence of the problem is a signal that our architecture is not right.)

Personally I find this one slightly more preferable. It looks less intrusive for me, also I do not really like all sort of dummy values (like in first version).
Comparing these 2: I find it is simpler for understanding that untill script is processed, it's symbols are simply undefined.

grimar abandoned this revision.Oct 10 2017, 1:06 AM

In favor of D38239.