digitalmars.D.bugs - [Issue 14814] New: ld: GOT load reloc does not point to a movq
- via Digitalmars-d-bugs (38/38) Jul 20 2015 https://issues.dlang.org/show_bug.cgi?id=14814
https://issues.dlang.org/show_bug.cgi?id=14814 Issue ID: 14814 Summary: ld: GOT load reloc does not point to a movq instruction Product: D Version: D2 Hardware: x86 OS: Mac OS X Status: NEW Severity: regression Priority: P1 Component: dmd Assignee: nobody puremagic.com Reporter: timothee.cour2 gmail.com Reduced use case: https://github.com/timotheecour/dsnippet/tree/master/bug_ld_GOT_reloc dmd -of/tmp/fun3.o -c fun3.d && dmd -of/tmp/z01 /tmp/fun3.o fun2.d ld: GOT load reloc does not point to a movq instruction in '_D4fun34fun4FZv' from /tmp/fun3.o for architecture x86_64 clang: error: linker command failed with exit code 1 (use -v to see invocation) fun2: import fun3; void main(){ fun4; } fun3: void fun0() { } alias Fun = void function(); //same with delegate() void fun4() { Fun[TypeInfo] funs; funs[typeid(int)] = &fun0; //same with s/&fun0/(){}/ } NOTE: not sure whether b/7354 is related; it's very old but this one is a regression. --
Jul 20 2015