[PATCH] D22683: [ELF] Symbol assignment within input section list

Rui Ueyama via llvm-commits llvm-commits at lists.llvm.org
Mon Aug 1 17:09:30 PDT 2016


ruiu added a comment.

Sorry to bring this back again, but I'm wondering why we can't create absolute symbols. This is different from what GNU linkers do, but looks like difference between section-relative symbols and absolute symbols don't matter. If we create absolute symbols, we can remove the virtual input section class.


================
Comment at: ELF/LinkerScript.cpp:278
@@ -176,3 +277,3 @@
 // Process ONLY_IF_RO and ONLY_IF_RW.
 template <class ELFT> void LinkerScript<ELFT>::filter() {
   // In this loop, we remove output sections if they don't satisfy
----------------
Why did you have to make a change to this function?


https://reviews.llvm.org/D22683





More information about the llvm-commits mailing list