www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 17107] New: Runnign phobos unittests do not work with PIE

https://issues.dlang.org/show_bug.cgi?id=17107

          Issue ID: 17107
           Summary: Runnign phobos unittests do not work with PIE
           Product: D
           Version: D2
          Hardware: x86_64
                OS: Windows
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: phobos
          Assignee: nobody puremagic.com
          Reporter: deadalnix gmail.com

$ make -f posix.mak
[...]
/usr/bin/ld: generated/linux/debug/64/unittest/test_runner.o: relocation
R_X86_64_32 against symbol `__dmd_personality_v0' can not be used when making a
shared object; recompile with -fPIC
/usr/bin/ld: final link failed: Nonrepresentable section on output
collect2: error: ld returned 1 exit status

--
Jan 18