Hi Tim! Regarding the unrecognized section name, this error depends on
the installed version of gcc. The 4.2.1 which I believe is standard on
mac 10.8 does not generate it, to my understanding (i.e. I can build
2.6.8 on the mac to which I have access without issue as earlier
reported.). Somewhere in later toolchain versions a _got section was
added.
I think you want this, if you still want to work with 2.6.8 on your mac:
* - 57dedec1 allocate gcl_zone_body in static area, as malloc_create_zone
returns a pointer to read-only memory in macosx 10.8
2013-09-18 14:21:25 +0000
Camm Maguire
diff --git a/gcl/o/unexmacosx.c b/gcl/o/unexmacosx.c
index 8fea735..15dc0ee 100644
--- a/gcl/o/unexmacosx.c
+++ b/gcl/o/unexmacosx.c
@@ -529,7 +529,8 @@ copy_data_segment (struct load_command *lc)
|| strncmp (sectp->sectname, "__cfstring", 16) == 0
|| strncmp (sectp->sectname, "__gcc_except_tab", 16) == 0
|| strncmp (sectp->sectname, "__program_vars", 16) == 0
- || strncmp (sectp->sectname, "__objc_", 7) == 0)
+ || strncmp (sectp->sectname, "__objc_", 7) == 0
+ || strncmp (sectp->sectname, "__got", 5) == 0)/*FIXME check
this, but appears to work*/
{
if (!unexec_copy (sectp->offset, old_file_offset, sectp->size))
unexec_error ("cannot copy section %s", sectp->sectname);
Take care,
--
Camm Maguire [email protected]
==========================================================================
"The earth is but one country, and mankind its citizens." -- Baha'u'llah
_______________________________________________
Gcl-devel mailing list
[email protected]
https://lists.gnu.org/mailman/listinfo/gcl-devel