Subject: crossgcc From: carlk@gte.net (Carl Kreider) Date: 1998/01/11 Message-ID: <699858$b47$2@gte1.gte.net> Newsgroups: comp.os.os9 [Subscribe to comp.os.os9] [New!] [More Headers] I have discovered that the linker generated label '_btext' would either have the wrong value or the linker would crash with Walter Hunt's crossgcc. This is an issue if you use _prgname() or _errmsg(). I include the patch. I wonder where Walter Hunt is now. The more I work on this, the more I realize how much he did. *** ldexp.c.orig Sat Jan 10 19:52:21 1998 --- ldexp.c Sat Jan 10 19:53:26 1998 *************** *** 302,310 **** case SIZEOF_HEADERS: if (allocation_done != lang_first_phase_enum) { ! result = new_abs ((bfd_vma) ! bfd_sizeof_headers (output_bfd, ! link_info.relocateable)); } else { --- 302,309 ---- case SIZEOF_HEADERS: if (allocation_done != lang_first_phase_enum) { ! result = new_rel ((bfd_vma) ! bfd_sizeof_headers (output_bfd, 0), current_section); } else { -- Carl Kreider aka ckreider@acm.org ckreider@gte.net carlk@syscon-intl.com ============================================================ MS-DOS is the worst text adventure game I have ever played: poor vocabulary, weak parser and a boring storyline. Ignatios Souvatzis ============================================================