diff options
Diffstat (limited to 'lib/linker.c')
-rw-r--r-- | lib/linker.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/lib/linker.c b/lib/linker.c index b85cbb2..f1f371d 100644 --- a/lib/linker.c +++ b/lib/linker.c @@ -146,19 +146,23 @@ void addfile(char *nom) readword(f); /* Taille de la table des symboles */ nbsymbols = readword(f); + objects[objindex]->textstart = textsize; + objects[objindex]->datastart = datasize; + objects[objindex]->bssstart = bsssize; + pushcontext(_("Reading symbols")); for (i = 0; i < nbsymbols; i++) { type = readword(f); offset = readword(f); snom = readstring(f); +#if 1 + if (!(type & 1)) + fprintf(stderr, "Adding symbol %s at offset %X\n", snom, offset); +#endif addsymbol(snom, offset, type); } popcontext(); - objects[objindex]->textstart = textsize; - objects[objindex]->datastart = datasize; - objects[objindex]->bssstart = bsssize; - objects[objindex]->text = (Uint32 *) Emalloc(objects[objindex]->s_text * sizeof(Uint32)); objects[objindex]->data = (Uint32 *) Emalloc(objects[objindex]->s_data * sizeof(Uint32)); |