[PATCH] D44669: Use local symbols for creating .stack-size

ben via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Tue Mar 27 03:36:20 PDT 2018


bd1976llvm added a comment.

Hi Rafael. The SN-Linker has the following rule for metadata sections:

Relocations from "metadata sections" to global symbols are
treated as discarded if the chosen global was not from the
same object file. This makes sense as the metadata entry
for a function is only applicable to that one particular version.

I have mentioned this rule here:

https://groups.google.com/d/msg/generic-abi/A-1rbP8hFCA/z2xHWFQBCAAJ

It would be an obvious extension to your SHF_LINK_ORDER concept.
If we had this extension in ELF then we could remove this special case
in MC and remove all of these local symbols that are bloating the
assembler output.

What do you think?


https://reviews.llvm.org/D44669





More information about the llvm-commits mailing list