www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.bugs - [Issue 24597] New: FreeBSD/OpenBSD: Enable ELF_COMDAT

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

          Issue ID: 24597
           Summary: FreeBSD/OpenBSD: Enable ELF_COMDAT
           Product: D
           Version: D2
          Hardware: All
                OS: FreeBSD
            Status: NEW
          Severity: enhancement
          Priority: P1
         Component: dmd
          Assignee: nobody puremagic.com
          Reporter: bcallah openbsd.org

There is a note stating that old ld.bfd did not support ELF_COMDAT, and as such
it was made Linux-only.

This no longer needs to be the case. LLVM lld has been an option on FreeBSD
since 2016 and is the default linker since FreeBSD 13, released in 2021.
OpenBSD made lld the default linker in OpenBSD 6.5, released in 2019.

I think it is time to add these two OSes to the ELF_COMDAT list.

--
Jun 10