Changeset 156 for trunk/src/emx/src/emxbind/fixup.c
- Timestamp:
- May 16, 2003, 9:27:59 AM (22 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/emx/src/emxbind/fixup.c
-
Property cvs2svn:cvs-rev
changed from
1.3
to1.4
r155 r156 98 98 99 99 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 104 struct nlist *find_symbol (const char *name) 106 105 { 107 106 int j, len; … … 109 108 110 109 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 }117 110 118 111 for (j = sym_hash_table[sym_hash (name1)]; j != -1; … … 499 492 } 500 493 mod_idx = find_module (mod, NO_ADDR); 501 if (memcmp ("_ _16_", name1, 5) == 0)494 if (memcmp ("_16_", name1, 4) == 0) 502 495 { 503 496 if (r->pcrel) -
Property cvs2svn:cvs-rev
changed from
Note:
See TracChangeset
for help on using the changeset viewer.