https://gcc.gnu.org/bugzilla/show_bug.cgi?id=90147
Bug ID: 90147 Summary: Support OpenBSD Product: gcc Version: 9.0 Status: UNCONFIRMED Severity: normal Priority: P3 Component: libgcc Assignee: unassigned at gcc dot gnu.org Reporter: roland.illig at gmx dot de Target Milestone: --- From https://github.com/NetBSD/pkgsrc/blob/342fd468170ed3d1902196089f8b920e333b750e/lang/gcc8/patches/patch-libgcc_crtstuff.c: $NetBSD: patch-libgcc_crtstuff.c,v 1.1 2018/05/05 04:08:36 maya Exp $ --- libgcc/crtstuff.c.orig 2017-01-01 12:07:43.000000000 +0000 +++ libgcc/crtstuff.c @@ -81,7 +81,7 @@ call_ ## FUNC (void) \ #endif #if defined(TARGET_DL_ITERATE_PHDR) && \ - (defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__)) + (defined(__DragonFly__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__)) #define BSD_DL_ITERATE_PHDR_AVAILABLE #endif