[llvm-bugs] [Bug 49969] New: Clang computes absolute address of global structure when compiling with position independent code.
via llvm-bugs
llvm-bugs at lists.llvm.org
Thu Apr 15 03:07:12 PDT 2021
https://bugs.llvm.org/show_bug.cgi?id=49969
Bug ID: 49969
Summary: Clang computes absolute address of global structure
when compiling with position independent code.
Product: clang
Version: 11.0
Hardware: PC
OS: Linux
Status: NEW
Severity: normal
Priority: P
Component: C
Assignee: unassignedclangbugs at nondot.org
Reporter: liljaanton2001 at gmail.com
CC: blitzrakete at gmail.com, dgregor at apple.com,
erik.pilkington at gmail.com, llvm-bugs at lists.llvm.org,
richard-llvm at metafoo.co.uk
Created attachment 24756
--> https://bugs.llvm.org/attachment.cgi?id=24756&action=edit
Example code which shows when incorrect behavior appears.
When taking an address of a global structure clang computes an absolute address
to the struct instead having it be an offset to the IP. This only happens when
in specific circumstances, see attached example.c.
--
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/20210415/74334cb4/attachment.html>
More information about the llvm-bugs
mailing list