$OpenBSD: patch-gcc_config_i386_openbsdelf_h,v 1.1.1.1 2014/06/26 16:30:17 pascal Exp $
--- gcc/config/i386/openbsdelf.h.orig	Sun Sep  2 16:13:21 2012
+++ gcc/config/i386/openbsdelf.h	Fri Oct 12 11:24:33 2012
@@ -97,10 +97,13 @@ along with GCC; see the file COPYING3.  If not see
    %{shared:-shared} %{R*} \
    %{static:-Bstatic} \
    %{!static:-Bdynamic} \
+   %{rdynamic:-export-dynamic} \
    %{assert*} \
    -dynamic-linker /usr/libexec/ld.so"
 
 #undef STARTFILE_SPEC
+
+#define SUBTARGET32_DEFAULT_CPU "i486"
 #define STARTFILE_SPEC "\
 	%{!shared: %{pg:gcrt0%O%s} %{!pg:%{p:gcrt0%O%s} %{!p:crt0%O%s}} \
 	crtbegin%O%s} %{shared:crtbeginS%O%s}"
