[Top][All Lists]

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

[Gcl-devel] changes in binutils break gcl

From: Matthew Kenendy
Subject: [Gcl-devel] changes in binutils break gcl
Date: Mon, 22 Nov 2004 23:30:00 -0600
User-agent: Gnus/5.110003 (No Gnus v0.3) Emacs/21.3.50 (gnu/linux)

It seems in recent binutils releases (at least as late as
binutils-, 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.

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+=s->_raw_size;
+    current+=s->rawsize;
   curr_size=(unsigned long)current;
@@ -288,7 +288,7 @@
     s->output_section->vma=(unsigned long)m;
-    m+=s->_raw_size;
+    m+=s->rawsize;
@@ -353,7 +353,7 @@
        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.~

reply via email to

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