gcl-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Gcl-devel] changes in binutils break gcl


From: Camm Maguire
Subject: Re: [Gcl-devel] changes in binutils break gcl
Date: 23 Nov 2004 09:39:43 -0500
User-agent: Gnus/5.09 (Gnus v5.9.0) Emacs/21.2

Greetings!

Matthew Kenendy <address@hidden> writes:

> It seems in recent binutils releases (at least as late as
> binutils-2.15.92.0.2), the asection structure (see bfd.h) _raw_size
> slot has been renamed to "rawsize".  This causes a GCL build
> failure with --enable-dynsysbfd.
> 
> Attached is a patch to o/sfaslbfd.c in GCL 2.6.5 which corrects this.
> CVS HEAD exhibits the same problem.  It is possible the C macro
> bfd_get_section_limit (see also bfd.h) is applicable here also, but I
> am not certain.
> 

Actually, dont we want this:

#define bfd_get_section_size_before_reloc(section) \
     ((section)->_raw_size)

Also, have you been able to test your build against the new binutils?
Last I heard there were other problems.  Feedback most helpful,
esp. as this binutils is not in Debian yet.

Take care,

> diff -ur gcl-2.6.5.orig/o/sfaslbfd.c gcl-2.6.5/o/sfaslbfd.c
> --- gcl-2.6.5.orig/o/sfaslbfd.c       2004-03-19 19:38:25.000000000 -0600
> +++ gcl-2.6.5/o/sfaslbfd.c    2004-11-22 19:13:22.331317576 -0600
> @@ -263,7 +263,7 @@
>  
>      current=round_up(current,1<<s->alignment_power);
>  
> -    current+=s->_raw_size;
> +    current+=s->rawsize;
>  
>    }
>    curr_size=(unsigned long)current;
> @@ -288,7 +288,7 @@
>  
>      m=round_up(m,1<<s->alignment_power);
>      s->output_section->vma=(unsigned long)m;
> -    m+=s->_raw_size;
> +    m+=s->rawsize;
>            
>    }
>  
> @@ -353,7 +353,7 @@
>                                            v,0,q)) 
>         FEerror("Cannot get relocated section contents\n",0);
>  
> -     memcpy((void *)(unsigned long)s->output_section->vma,v,s->_raw_size);
> +     memcpy((void *)(unsigned long)s->output_section->vma,v,s->rawsize);
>       
>     }
>   }
> Only in gcl-2.6.5/o: sfaslbfd.c.~1.12.4.1.2.4.~
> _______________________________________________
> Gcl-devel mailing list
> address@hidden
> http://lists.gnu.org/mailman/listinfo/gcl-devel

-- 
Camm Maguire                                            address@hidden
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah




reply via email to

[Prev in Thread] Current Thread [Next in Thread]