]> git.pld-linux.org Git - packages/nasm.git/blob - nasm-boguself2.patch
- release 2 for Th.
[packages/nasm.git] / nasm-boguself2.patch
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
3 @@ -639,7 +639,7 @@
4          r->symbol = 0;
5          for (i = 0; i < nsects; i++)
6              if (segment == sects[i]->index)
7 -                r->symbol = i + 3;
8 +                r->symbol = i + 2;
9          if (!r->symbol)
10              r->symbol = GLOBAL_TEMP_BASE + raa_read(bsym, segment);
11      }
12 @@ -1097,13 +1097,13 @@
13       * Now some standard symbols defining the segments, for relocation
14       * purposes.
15       */
16 -    for (i = 1; i <= nsects + 1; i++) {
17 +    for (i = 1; i <= nsects; i++) {
18          p = entry;
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 */
24 +        WRITESHORT(p, i);
25          saa_wbytes(s, entry, 16L);
26          *len += 16;
27          (*local)++;
28 @@ -1162,7 +1162,7 @@
29          long sym = r->symbol;
30  
31          if (sym >= GLOBAL_TEMP_BASE)
32 -            sym += -GLOBAL_TEMP_BASE + (nsects + 3) + nlocals;
33 +            sym += -GLOBAL_TEMP_BASE + (nsects + 2) + nlocals;
34  
35          p = entry;
36          WRITELONG(p, r->address);
This page took 0.085754 seconds and 3 git commands to generate.