public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
@ 2007-10-30 16:24 Poor Yorick
  2007-11-08 11:02 ` Nick Clifton
  0 siblings, 1 reply; 7+ messages in thread
From: Poor Yorick @ 2007-10-30 16:24 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton


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

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
  2007-10-30 16:24 sunos 5.9 - build - vxworks_before_parse defined but not used Poor Yorick
@ 2007-11-08 11:02 ` Nick Clifton
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2007-11-08 11:02 UTC (permalink / raw)
  To: Poor Yorick; +Cc: binutils

Hi,

> 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):

Oh well, if that works for you then OK.  I could not reproduce the problem 
locally, so unless this issue occurs again then I will just consider it to be 
one of those things.

Cheers
   Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
@ 2007-10-29 17:32 Poor Yorick
  0 siblings, 0 replies; 7+ messages in thread
From: Poor Yorick @ 2007-10-29 17:32 UTC (permalink / raw)
  To: binutils; +Cc: Nick Clifton


>  -------Original Message-------
>  From: Poor Yorick <org.sourceware.binutils@pooryorick.com>
>  Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
>  Sent: 2007-10-29 04:19
>  
>  >  -------Original Message-------
>  >  From: Nick Clifton <nickc@redhat.com>
>  >  Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
>  >  Sent: 2007-10-26 11:38
>  >  
>  >  Hi Yorick,
>  >  
>  >  > compiling binutils-2.18 on Solaris 9, gcc version 3.4.2, with gnu ld:
>  >  
>  >  How did you configure this build ?
>  
>  /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:

struct ld_emulation_xfer_struct ld_armelf_vxworks_emulation =
{
  gldarmelf_vxworks_before_parse,
  syslib_default,
  hll_default,
  after_parse_default,
  arm_elf_after_open,
  arm_elf_after_allocation,
  set_output_arch_default,
  ldemul_default_target,
  arm_elf_before_allocation,
  gldarmelf_vxworks_get_script,
  "armelf_vxworks",
  "elf32-littlearm-vxworks",
  arm_elf_finish,
  arm_elf_create_output_section_statements,
  gldarmelf_vxworks_open_dynamic_archive,
  gldarmelf_vxworks_place_orphan,
  NULL,
  NULL,
  gldarmelf_vxworks_add_options,
  gldarmelf_vxworks_handle_option,
  NULL,
  gldarmelf_vxworks_list_options,
  gldarmelf_vxworks_load_symbols,
  NULL,
  NULL
};


I tried using Solaris ld instead of gnu ld, but same result.

-- 
Poor Yorick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
@ 2007-10-29 14:18 Poor Yorick
  0 siblings, 0 replies; 7+ messages in thread
From: Poor Yorick @ 2007-10-29 14:18 UTC (permalink / raw)
  To: Poor Yorick, Nick Clifton, Poor Yorick; +Cc: binutils


>  -------Original Message-------
>  From: Poor Yorick <org.sourceware.binutils@pooryorick.com>
>  Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
>  Sent: 2007-10-29 04:19
>  
>  >  -------Original Message-------
>  >  From: Nick Clifton <nickc@redhat.com>
>  >  Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
>  >  Sent: 2007-10-26 11:38
>  >  
>  >  Hi Yorick,
>  >  
>  >  > compiling binutils-2.18 on Solaris 9, gcc version 3.4.2, with gnu ld:
>  >  
>  >  How did you configure this build ?
>  
>  /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:

struct ld_emulation_xfer_struct ld_armelf_vxworks_emulation =
{
  gldarmelf_vxworks_before_parse,
  syslib_default,
  hll_default,
  after_parse_default,
  arm_elf_after_open,
  arm_elf_after_allocation,
  set_output_arch_default,
  ldemul_default_target,
  arm_elf_before_allocation,
  gldarmelf_vxworks_get_script,
  "armelf_vxworks",
  "elf32-littlearm-vxworks",
  arm_elf_finish,
  arm_elf_create_output_section_statements,
  gldarmelf_vxworks_open_dynamic_archive,
  gldarmelf_vxworks_place_orphan,
  NULL,
  NULL,
  gldarmelf_vxworks_add_options,
  gldarmelf_vxworks_handle_option,
  NULL,
  gldarmelf_vxworks_list_options,
  gldarmelf_vxworks_load_symbols,
  NULL,
  NULL
};


I tried using Solaris ld instead of gnu ld, but same result.

-- 
Nathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
@ 2007-10-29 10:58 Poor Yorick
  0 siblings, 0 replies; 7+ messages in thread
From: Poor Yorick @ 2007-10-29 10:58 UTC (permalink / raw)
  To: Nick Clifton, Poor Yorick; +Cc: binutils

>  -------Original Message-------
>  From: Nick Clifton <nickc@redhat.com>
>  Subject: Re: sunos 5.9 - build - vxworks_before_parse defined but not used
>  Sent: 2007-10-26 11:38
>  
>  Hi Yorick,
>  
>  > compiling binutils-2.18 on Solaris 9, gcc version 3.4.2, with gnu ld:
>  
>  How did you configure this build ?

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

Unfortunately, I blew away the directory with this information.  

^ permalink raw reply	[flat|nested] 7+ messages in thread

* Re: sunos 5.9 - build - vxworks_before_parse defined but not used
  2007-10-26  1:02 Poor Yorick
@ 2007-10-26 14:41 ` Nick Clifton
  0 siblings, 0 replies; 7+ messages in thread
From: Nick Clifton @ 2007-10-26 14:41 UTC (permalink / raw)
  To: Poor Yorick; +Cc: binutils

Hi Yorick,

> compiling binutils-2.18 on Solaris 9, gcc version 3.4.2, with gnu ld:

How did you configure this build ?

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

Cheers
   Nick

^ permalink raw reply	[flat|nested] 7+ messages in thread

* sunos 5.9 - build - vxworks_before_parse defined but not used
@ 2007-10-26  1:02 Poor Yorick
  2007-10-26 14:41 ` Nick Clifton
  0 siblings, 1 reply; 7+ messages in thread
From: Poor Yorick @ 2007-10-26  1:02 UTC (permalink / raw)
  To: binutils

compiling binutils-2.18 on Solaris 9, gcc version 3.4.2, with gnu ld:


gcc -m32 -DHAVE_CONFIG_H -I. -I.././ld -I. -D_GNU_SOURCE -I. -I.././ld -I../    bfd -I.././ld/../bfd -I.././ld/../include  -g -O2 -DLOCALEDIR="\"/path/to/binutils-2.18/share/locale\""  -I/path/to/include  -W -Wall -  Wstrict-prototypes -Wmissing-prototypes -Werror -g -O2 -c earmelf_vxworks.c
.././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
make[4]: *** [earmelf_vxworks.o] Error 1

Any hints?

-- 
Nathan

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2007-11-08 11:02 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-10-30 16:24 sunos 5.9 - build - vxworks_before_parse defined but not used Poor Yorick
2007-11-08 11:02 ` Nick Clifton
  -- strict thread matches above, loose matches on Subject: below --
2007-10-29 17:32 Poor Yorick
2007-10-29 14:18 Poor Yorick
2007-10-29 10:58 Poor Yorick
2007-10-26  1:02 Poor Yorick
2007-10-26 14:41 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).