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

Alexander Richardson via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Nov 7 04:59:10 PST 2017


arichardson added a comment.

In https://reviews.llvm.org/D39548#917330, @ruiu wrote:

> I wonder if you have thought about doing this in your loader. Your loader could identify start/end symbols and fix their values, couldn't it?


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 feel like having this information in `Symbol` but not adding it to the symbol table would be ideal for us.


https://reviews.llvm.org/D39548





More information about the llvm-commits mailing list