This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Fix for Solaris build problem
- From: Angela Marie Thomas <angela at cygnus dot com>
- To: binutils at sources dot redhat dot com
- Date: Tue, 20 Nov 2001 04:56:37 -0800
- Subject: Fix for Solaris build problem
- Reply-to: angela at redhat dot com
While building current binutils on Solaris 8, I got the following error:
eelf32_sparc.c: In function `gldelf32_sparc_finish':
eelf32_sparc.c:1111: incompatible type for argument 6 of `lang_size_sections'
Arg 6 is a "boolean *" so using "false" doesn't work in all cases (and
specifically in my case). The patch below fixes it.
2001-11-20 Angela Marie Thomas <angela@redhat.com>
* emultempl/elf32.em (gld${EMULATION_NAME}_finish): Use NULL instead
of false when calling lang_size_sections().
Index: ./ld/emultempl/elf32.em
===================================================================
RCS file: /cvs/src/src/ld/emultempl/elf32.em,v
retrieving revision 1.66
diff -u -p -r1.66 elf32.em
--- ./ld/emultempl/elf32.em 2001/11/15 12:44:02 1.66
+++ ./ld/emultempl/elf32.em 2001/11/20 12:08:24
@@ -1333,7 +1333,7 @@ gld${EMULATION_NAME}_finish ()
{
/* Resize the sections. */
lang_size_sections (stat_ptr->head, abs_output_section,
- &stat_ptr->head, 0, (bfd_vma) 0, false);
+ &stat_ptr->head, 0, (bfd_vma) 0, NULL);
/* Redo special stuff. */
ldemul_after_allocation ();