Issue 24597 - FreeBSD/OpenBSD: Enable ELF_COMDAT
Summary: FreeBSD/OpenBSD: Enable ELF_COMDAT
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: dmd (show other issues)
Version: D2
Hardware: All FreeBSD
: P1 enhancement
Assignee: No Owner
URL:
Keywords: pull
Depends on:
Blocks:
 
Reported: 2024-06-10 13:26 UTC by Brian Callahan
Modified: 2024-06-16 07:36 UTC (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Brian Callahan 2024-06-10 13:26:15 UTC
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.
Comment 1 Dlang Bot 2024-06-10 13:32:59 UTC
@ibara updated dlang/dmd pull request #16576 "Fix 24597 -- FreeBSD/OpenBSD: Enable ELF_COMDAT" fixing this issue:

- Fix Bugzilla 24597

https://github.com/dlang/dmd/pull/16576
Comment 2 Dlang Bot 2024-06-10 21:32:14 UTC
dlang/dmd pull request #16576 "Fix 24597 -- FreeBSD/OpenBSD: Enable ELF_COMDAT" was merged into stable:

- 6b96552919e0ac7e80b18e8ce8d5ed1f7f779ae1 by Brian Callahan:
  Fix Bugzilla 24597

https://github.com/dlang/dmd/pull/16576
Comment 3 Dlang Bot 2024-06-16 07:36:56 UTC
dlang/dmd pull request #16589 "merge stable" was merged into master:

- aa5f1b4a6014a52c7118dde37274f8d336dc2ec0 by Brian Callahan:
  Fix Bugzilla 24597

https://github.com/dlang/dmd/pull/16589