Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bitfields template instantiation introduces unnecessary GOT symbol #19567

Open
dlangBugzillaToGithub opened this issue May 20, 2019 · 0 comments

Comments

@dlangBugzillaToGithub
Copy link

Alexandru Militaru (@alexandrumc) reported this on 2019-05-20T13:16:57Z

Transferred from https://issues.dlang.org/show_bug.cgi?id=19886

Description

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant