https://bugs.llvm.org/show_bug.cgi?id=39790

            Bug ID: 39790
           Summary: -fno-plt seems to trash stack frame
           Product: clang
           Version: unspecified
          Hardware: PC
                OS: Linux
            Status: NEW
          Severity: enhancement
          Priority: P
         Component: C++
          Assignee: unassignedclangb...@nondot.org
          Reporter: n...@chello.at
                CC: blitzrak...@gmail.com, dgre...@apple.com,
                    erik.pilking...@gmail.com, llvm-bugs@lists.llvm.org,
                    richard-l...@metafoo.co.uk

Created attachment 21159
  --> https://bugs.llvm.org/attachment.cgi?id=21159&action=edit
code reproducing the issue, and assembly both with and without -fno-plt

See the attached example program and generated assembly.

Using -fno-plt seems to mess up the stack frame, I cant really pinpoint the
issue and when its triggered, values just point to wrong places.

My system is debian buster x86_64, with clang++ being:
clang version 7.0.0-6 (tags/RELEASE_700/final)


(This is potentially a duplicate of 39252)

-- 
You are receiving this mail because:
You are on the CC list for the bug.
_______________________________________________
llvm-bugs mailing list
llvm-bugs@lists.llvm.org
http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs

Reply via email to