Changeset 573


Ignore:
Timestamp:
Aug 11, 2003, 12:02:25 AM (22 years ago)
Author:
bird
Message:

#482: Use INNIDM for linker demangling DLL. Corrected getopt(). Corrected opt_w/GCC_WEAKSYMS test order.

File:
1 edited

Legend:

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

    • Property cvs2svn:cvs-rev changed from 1.21 to 1.22
    r572 r573  
    390390/* The name of the identifier manipulation DLL.  If this variable is
    391391   NULL, no IDMDLL record is written. */
    392 static char *idmdll_name = "GPP3DEM";
     392static char *idmdll_name = "INNIDM";
    393393
    394394/* If this variable is TRUE (-b option), we always use the 32-bit
     
    625625  FILE *wf;
    626626
    627   if (opt_w)
    628     return;
    629627
    630628  /* Find and open the weak symbol list file
     
    632630  weak_list_filename = getenv ("GCC_WEAKSYMS");
    633631  if (!weak_list_filename)
    634       return ;
     632    return ;
     633  if (opt_w)
     634    return;
    635635  wf = fopen (weak_list_filename, "r");
    636636  if (!wf)
     
    13431343
    13441344                if (    out_lib != NULL
    1345                     &&  (   (   (sym_ptr[i].n_type & N_EXT) 
     1345                    &&  (   (   (sym_ptr[i].n_type & N_EXT)
    13461346                             && sym_ptr[i].n_type != N_WEAKB
    13471347                             && sym_ptr[i].n_type != N_WEAKU)
    1348                          ||  sym_ptr[i].n_type == N_WEAKT 
     1348                         ||  sym_ptr[i].n_type == N_WEAKT
    13491349                         ||  sym_ptr[i].n_type == N_WEAKD ) )
    13501350                  {
     
    28042804      init_rec (COMENT);
    28052805      put_8 (0x00);
    2806       put_8 (0xaf);
     2806      put_8 (CLASS_IDMDLL);
    28072807      put_str (idmdll_name);
    28082808      put_str ("");             /* Initialization parameter */
     
    34933493  puts ("  -t                 Add timestamping to the weak symbol mangling");
    34943494  puts ("  -w                 Suppress reading/writing of the weaksyms.omf file");
     3495  puts ("                     (Only used if GCC_WEAKSYMS is set.)");
    34953496  puts ("  -z                 Remove underscores from all symbol names");
    34963497  exit (1);
     
    39003901  /* Parse the command line options. */
    39013902
    3902   while ((c = getopt (argc, argv, "bdD:gh:i:I:m:l::o:p:qO:r:R:suxwz")) != EOF)
     3903  while ((c = getopt (argc, argv, "bdD:gh:i:I:m:l::o:p:qO:r:R:tsuxwz")) != EOF)
    39033904    switch (c)
    39043905      {
Note: See TracChangeset for help on using the changeset viewer.