Changeset 295


Ignore:
Timestamp:
Jun 4, 2003, 11:19:19 PM (22 years ago)
Author:
bird
Message:

#465: WEAK stuff in debuginfo. Some bogus things for N_WEAKA which must be rechecked.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxomf/emxomf.c

    • Property cvs2svn:cvs-rev changed from 1.9 to 1.10
    r294 r295  
    562562                t = sym_ptr[j].n_type & ~N_EXT;
    563563                if (t == N_TEXT || t == N_DATA || t == N_BSS
     564                    /* kso #465 2003-06-04: Find weak symbols too. */
     565                    || t == N_WEAKT || t == N_WEAKD || t == N_WEAKB
     566                    || t == N_WEAKA /* hmm.. */
    564567                    || (t == 0 && sym_ptr[j].n_value != 0))
    565568                  return sym_ptr+j;
     
    15811584            switch (r->r_symbolnum & ~N_EXT)
    15821585              {
     1586              /* kso #465 2003-06-04: WEAK hack - bogus */
     1587              case N_WEAKT:
    15831588              case N_TEXT:
    15841589                break;
     1590              /* kso #465 2003-06-04: WEAK hack - bogus */
     1591              case N_WEAKD:
    15851592              case N_DATA:
    15861593                *(dword *)(src + r->r_address) -= start_data;
    15871594                break;
     1595              /* kso #465 2003-06-04: WEAK hack - bogus */
     1596              case N_WEAKB:
    15881597              case N_BSS:
    15891598                *(dword *)(src + r->r_address) -= start_bss;
    15901599                break;
     1600              /* kso #465 2003-06-04: WEAK hack - bogus */
     1601              case N_WEAKA:
     1602                break;
    15911603              default:
    1592                 error ("write_seg: Invalid relocation type");
     1604                error ("write_seg: Invalid relocation type (0x%.2x)", r->r_symbolnum);
    15931605              }
    15941606          }
     
    26102622static void write_idmdll ()
    26112623{
     2624  /* kso #465 2003-06-04: This test doesn't work any longer, sorry.
     2625   *                      Pretend everything is C++ */
     2626  #if 1
     2627  if (idmdll_name != NULL)
     2628  #else
    26122629  if (idmdll_name != NULL && find_symbol ("__gnu_compiled_cplusplus") != NULL)
     2630  #endif
    26132631    {
    26142632      init_rec (COMENT);
Note: See TracChangeset for help on using the changeset viewer.