This is the mail archive of the binutils@sourceware.org mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: sunos 5.9 - build - vxworks_before_parse defined but not used


>  >  
>  >  
>  >  /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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]