This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: sunos 5.9 - build - vxworks_before_parse defined but not used
- From: "Poor Yorick" <org dot sourceware dot binutils at pooryorick dot com>
- To: "" <binutils at sourceware dot org>
- Cc: "Nick Clifton" <nickc at redhat dot com>
- Date: Tue, 30 Oct 2007 16:19:43 +0000
- Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
- Reply-to: "Poor Yorick" <org dot sourceware dot binutils at pooryorick dot com>
> >
> >
> > /path/to/configure --disable-nls --enable-64-bit-bfd --enable-targets=all --enable-shared --prefix=/path/to/binutils-2.18
> >
> > >
> > > > .././ld/emultempl/vxworks.em:6: warning: 'vxworks_before_parse' defined but not used
> > > > .././ld/emultempl/vxworks.em:13: warning: 'vxworks_after_open' defined but not used
> > >
> > > This is supposed to be handled by the shell script code at the end of
> > > ld/emultemp/vxworks.em. What does the ld_armelf_vxworks_emulation structure in
> > > the generated earmelf_vxworks.c file look like ?
> > >
>
> Here it is:
I ended up just commenting out the offending functions. Here is a function containing the patches I applied to the source tree to compile on SunOS 5.9 (google helper: Solaris 9):
binutils218_sunos_patch () {
pushd "$stage/$srcdir/bfd" >/dev/null
patch -p0 <<'EOF'
--- sysdep.h.original Fri Oct 19 15:00:05 2007
+++ sysdep.h Fri Oct 19 14:59:28 2007
@@ -23,6 +23,7 @@
#ifndef BFD_SYSDEP_H
#define BFD_SYSDEP_H
+#include <alloca.h>
#include "config.h"
#include "ansidecl.h"
EOF
popd > /dev/null
pushd "$stage/$srcdir/ld/emultempl" >/dev/null
patch -p0 <<'EOF2'
--- vxworks.em.original 2007-10-29 16:39:54 -04:00
+++ vxworks.em 2007-10-29 16:42:08 -04:00
@@ -27,6 +27,8 @@
static int force_dynamic;
+/*
+
static void
vxworks_before_parse (void)
{
@@ -52,6 +54,8 @@
&& elf_hash_table (&link_info)->dynamic_sections_created)
einfo ("%X%P: Dynamic sections created in non-dynamic link\n");
}
+
+*/
EOF
EOF2
popd > /dev/null
}
--
Poor Yorick