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

Iain Buclaw <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #1 from Iain Buclaw <[email protected]> ---
Seems like it's just a bootstrap issue with the druntime/phobos library.
---
$ cat reduce.d
extern(C) int main()
{
    static int* x = null;
    if (x is null)
        return 1;
    else
        return 0;
}
$ ./dmd2/linux/bin64/dmd -m32 -betterC reduce.d
$ ./reduce 
Segmentation fault (core dumped)
$ ./dmd2/linux/bin64/dmd -m32 -betterC reduce.d -fPIC
$ ./reduce 
$
---

If all object files were compiled with -fPIC, then it's fine.

--

Reply via email to