[Issue 13939] New: IASM shouldn't access global symbol with PIC code
via Digitalmars-d-bugs
digitalmars-d-bugs at puremagic.com
Mon Jan 5 12:00:49 PST 2015
https://issues.dlang.org/show_bug.cgi?id=13939
Issue ID: 13939
Summary: IASM shouldn't access global symbol with PIC code
Product: D
Version: D2
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P1
Component: DMD
Assignee: nobody at puremagic.com
Reporter: code at dawg.eu
cat > bug.d << CODE
void test1()
{
__gshared int val;
asm
{
mov EAX, val;
}
}
CODE
dmd -c -fPIC bug
It should be an error to access a global variable in IASM when compiling PIC
code.
--
More information about the Digitalmars-d-bugs
mailing list