1 --- nasm-0.98.39/output/outelf.c.orig 2005-01-15 23:16:08.000000000 +0100
2 +++ nasm-0.98.39/output/outelf.c 2005-01-22 02:06:48.683321040 +0100
5 for (i = 0; i < nsects; i++)
6 if (segment == sects[i]->index)
10 r->symbol = GLOBAL_TEMP_BASE + raa_read(bsym, segment);
12 @@ -1097,13 +1097,13 @@
13 * Now some standard symbols defining the segments, for relocation
16 - for (i = 1; i <= nsects + 1; i++) {
17 + for (i = 1; i <= nsects; i++) {
19 WRITELONG(p, 0); /* no symbol name */
20 WRITELONG(p, 0); /* offset zero */
21 WRITELONG(p, 0); /* size zero */
22 WRITESHORT(p, 3); /* local section-type thing */
23 - WRITESHORT(p, (i == 1 ? SHN_ABS : i - 1)); /* the section id */
25 saa_wbytes(s, entry, 16L);
31 if (sym >= GLOBAL_TEMP_BASE)
32 - sym += -GLOBAL_TEMP_BASE + (nsects + 3) + nlocals;
33 + sym += -GLOBAL_TEMP_BASE + (nsects + 2) + nlocals;
36 WRITELONG(p, r->address);