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: [email protected]
Reporter: [email protected]
CC: [email protected], [email protected],
[email protected], [email protected],
[email protected]
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._______________________________________________
llvm-bugs mailing list
[email protected]
https://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-bugs