[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-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.
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] changes in binutils break gcl,
Matthew Kenendy <=