D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 19886 - Bitfields template instantiation introduces unnecessary GOT symbol
Summary: Bitfields template instantiation introduces unnecessary GOT symbol
Status: NEW
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: x86_64 Linux
: P4 enhancement
Assignee: No Owner
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2019-05-20 13:16 UTC by Alexandru Militaru
Modified: 2024-12-13 19:03 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Alexandru Militaru 2019-05-20 13:16:57 UTC
Bitfields template instantiation introduces unnecessary _GLOBAL_OFFSET_TABLE_ symbol. 

Because of this symbol, it is not possible to use D code inside the Linux kernel. 

import std.bitmanip;

struct MyStruct
{
    mixin(bitfields!(
        uint, "x", 2,
        uint, "", 6));

}

https://gist.github.com/alexandrumc/ce2363b4f344289e7c8386fa6c3d614d
Comment 1 dlangBugzillaToGithub 2024-12-13 19:03:27 UTC
THIS ISSUE HAS BEEN MOVED TO GITHUB

https://github.com/dlang/dmd/issues/19567

DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB