Ignore:
Timestamp:
May 16, 2003, 9:27:59 AM (22 years ago)
Author:
zap
Message:

o Modified makefiles so that os2.a builds correctly (with Vio, Kbd and friends,

not just from the import files).

o Moved os2.smak to the os2_386 directory (tcp32dll.imp will go into socket.a).
o Added the rules into libc.smak to build libc##.dll (finally it links without

errors! Don't know if it works, though ;-)

o Fixed emxbind so that it doesn't add underscores to exported symbols (taken

from the EXPORTS section of a .def file).

o Fixed emxexp so that it doesn't remove underscores from symbol names.
o Fixed all references to OS/2 functions to not contain an initial underscore

(since they are _System now).

o Added one builder makefile: mkimplib.smak, and two auxiliary submakefiles:

mkomflib.smak (included from both mklib and mkimplib), and a version.smak
that contains the version number, description and copyright for libc.

o Made a lot of small changes in order to remove duplicate symbols in libc.dll.
o Added sys/settime.c which was missing in EMX's -Zomf -Zsys variant.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/emx/src/emxbind/fixup.c

    • Property cvs2svn:cvs-rev changed from 1.3 to 1.4
    r155 r156  
    9898
    9999
    100 /* Find the symbol NAME in the a.out symbol table of the input
    101    executable.  If UNDERSCORE is true, an underscore is prepended to
    102    NAME.  If the symbol is found, find_symbol() returns a pointer to
    103    the symbol table entry.  Otherwise, NULL is returned. */
    104 
    105 struct nlist *find_symbol (const char *name, int underscore)
     100/* Find the symbol NAME in the a.out symbol table of the input executable.
     101   If the symbol is found, find_symbol() returns a pointer to the symbol
     102   table entry.  Otherwise, NULL is returned. */
     103
     104struct nlist *find_symbol (const char *name)
    106105{
    107106  int j, len;
     
    109108
    110109  len = strlen (name);
    111   if (underscore)
    112   {
    113     name1 = alloca (len + 2);
    114     ((char *)name1)[0] = '_';
    115     memcpy (((char *)name1) + 1, name, len + 1);
    116   }
    117110
    118111  for (j = sym_hash_table[sym_hash (name1)]; j != -1;
     
    499492    }
    500493  mod_idx = find_module (mod, NO_ADDR);
    501   if (memcmp ("__16_", name1, 5) == 0)
     494  if (memcmp ("_16_", name1, 4) == 0)
    502495    {
    503496      if (r->pcrel)
Note: See TracChangeset for help on using the changeset viewer.