[PATCH] D32173: [ELF] - Assign absolute values in linkerscript correctly #1.

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Apr 24 20:57:56 PDT 2017


ruiu added a comment.

Sorry for the delay. I was on vacation last week.

So, this patch allows you compute absolute symbols addresses lazily. With that,  you can create cycles like this.

foo = ABSOLUTE(bar - 0xff);
 bar = ABSOLUTE(foo - 0xff);

What do you think it should be handled?

Also, you can create not a cycle but a series of expressions that should be calculated backwards, like this.

foo = ABSOLUTE(bar);
 bar = ABSOLUTE(baz);
 baz = 0xff;

What do you think about this?


https://reviews.llvm.org/D32173





More information about the llvm-commits mailing list