From: Russell Browne (russ_at_amc.com)
Date: Fri Oct 23 1998 - 20:43:24 BST
> > I think the latest release 3.33 broke the global and glocal (that is global > within a file, or static globals, if you like) display under SunOS 4.1.x. > Anyone else? I noted in the release notes something about an improvement > to fix this very thing for SC4. Perhaps this conflicted with SunOS and cc > (the bundled compiler). > > Callum Gibson callum.gibson_at_aus.deuba.com Callum is right, the fix for SC4 did break the Sun 4 bundled compiler. The following code in ao_symload.c, at about line 738, works for both cases. Essentially, it adds conditional compilation to pick up the fix only under solaris. if ( nm.n_value != 0 #ifdef AO_ELF && !(stf->stf_compiler_type == CT_CC && (class == CL_EXT || class == CL_STAT) && fil->fi_language == LANG_C) #endif ) addr = (taddr_t)nm.n_value + ast->st_base_address; else addr = lookup_global_addr(st, sn->sn_symtab_name); Russ Browne
This archive was generated by hypermail 2.1.4 : Wed Feb 13 2002 - 21:51:32 GMT