Print this page
8609 want a position independent CRT

Split Close
Expand all
Collapse all
          --- old/usr/src/lib/common/i386/crti.s
          +++ new/usr/src/lib/crt/i86/crti.s
↓ open down ↓ 40 lines elided ↑ open up ↑
  41   41  
  42   42  /*
  43   43   * Note that when _init and _fini are called the stack needs to be 16-byte
  44   44   * aligned with a 4-byte bias.  See comment in lib/libc/i386/gen/makectxt.c.
  45   45   *
  46   46   * Note: If you change it, you need to change it in the following files as
  47   47   * well:
  48   48   *
  49   49   *  - lib/libc/i386/threads/machdep.c
  50   50   *  - lib/libc/i386/gen/makectxt.c
  51      - *  - lib/common/i386/crt1.s
       51 + *  - lib/crt/i86/mach-crt1.s
  52   52   */
  53   53  
  54   54  /*
  55   55   * _init function prologue
  56   56   */
  57   57          .section        .init,"ax"
  58   58          .globl  _init
  59   59          .type   _init,@function
  60   60          .align  16
  61   61  _init:
↓ open down ↓ 25 lines elided ↑ open up ↑
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX