[llvm-bugs] [Bug 43245] New: llvm-readelf --stack-sizes does not report all functions that share code
    via llvm-bugs 
    llvm-bugs at lists.llvm.org
       
    Fri Sep  6 13:45:00 PDT 2019
    
    
  
https://bugs.llvm.org/show_bug.cgi?id=43245
            Bug ID: 43245
           Summary: llvm-readelf --stack-sizes does not report all
                    functions that share code
           Product: tools
           Version: trunk
          Hardware: All
                OS: Linux
            Status: NEW
          Severity: normal
          Priority: P
         Component: llvm-readobj
          Assignee: unassignedbugs at nondot.org
          Reporter: Wolfgang_Pieb at playstation.sony.com
                CC: jh7370.2008 at my.bristol.ac.uk, llvm-bugs at lists.llvm.org
// Given the following C source:
static void bash ()
{}
static void bash1 ()
{}
int main ()
{
   bash ();
   bash1 ();
   return 0;
}
// ==== end ====
When compiled with --function-sections -fstack-size-section and linked with lld
--gc-sections -icf=all, bash() and bash1() are physically represented by the
same code and the symbols for both functions have the same value.
llvm-readelf --stack-sizes, when invoked on the executable, displays only the
stack size for one of the functions.
-- 
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-bugs/attachments/20190906/f2193319/attachment.html>
    
    
More information about the llvm-bugs
mailing list