[PATCH] D29391: [ELF] - Postpone the evaluation of DefinedSynthetic value
Rui Ueyama via Phabricator via llvm-commits
llvm-commits at lists.llvm.org
Wed Feb 1 11:37:41 PST 2017
ruiu added inline comments.
================
Comment at: ELF/LinkerScript.cpp:388
+ // It can happen when non-absolute value is assigned before processing
+ // first section. Example: Sym = . + 0x1; .sec : { ... };
+ // In that case Sym contains offset depending on VA of the .sec, but VA value
----------------
I don't think I understand this comment. Why `Sym` value is affected by the following `.sec`?
I do understand that `Sym` is affected if it is `.sec : { ... }; Sym = .`, but this is `Sym = .; .sec { ... };`. Can a following expression affects the results of preceding expressions?
By the way, why ` + 0x1`?
https://reviews.llvm.org/D29391
More information about the llvm-commits
mailing list