[PATCH] D39548: [ELF] Set the section size on the section start symbols

Rui Ueyama via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 13:52:54 PST 2017


ruiu added a comment.

> We could do it in the load however we would then have to hardcode a list of all special symbol names there. Also this will not work for static linking because we don't have a loader there and need LLD to fill in that information.

I think hardcoding a list of all special symbol names is not necessarily bad because the number of such symbols is small. Also, that's what lld does after all.

You still have a loader even for statically-linked executables, no? You don't need a dynamic linker to load a statically-linked executable, but either it is in a kernel or not, you still need a loader to map an executable to memory.


https://reviews.llvm.org/D39548





More information about the llvm-commits mailing list