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

Rafael Avila de Espindola via Phabricator via llvm-commits llvm-commits at lists.llvm.org
Mon Mar 19 19:03:39 PDT 2018


espindola created this revision.
espindola added reviewers: seaneveson, echristo.
Herald added a subscriber: javed.absar.

Right now .stack-size ends up having relocations that point to global symbols.  This means that if the symbol from another file is selected at link time it will be referring to the wrong symbol.

This is a first step in fixing pr36717.


https://reviews.llvm.org/D44669

Files:
  lib/CodeGen/AsmPrinter/AsmPrinter.cpp
  test/CodeGen/ARM/stack-size-section.ll
  test/CodeGen/SystemZ/stack-size-section.ll
  test/CodeGen/X86/stack-size-section.ll

-------------- next part --------------
A non-text attachment was scrubbed...
Name: D44669.139068.patch
Type: text/x-patch
Size: 3751 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20180320/a08ede7f/attachment.bin>


More information about the llvm-commits mailing list