Print this page
10366 ld(1) should support GNU-style linker sets
10367 ld(1) tests should be a real test suite
10368 want an ld(1) regression test for i386 LD tls transition (10267)

Split Close
Expand all
Collapse all
          --- old/usr/src/cmd/sgs/test/ld/x64/tls/ie/style2-with-r12.s
          +++ new/usr/src/test/elf-tests/tests/tls/x64/ie/style2-with-r12.s
↓ open down ↓ 3 lines elided ↑ open up ↑
   4    4   * You may only use this file in accordance with the terms of version
   5    5   * 1.0 of the CDDL.
   6    6   *
   7    7   * A full copy of the text of the CDDL should have accompanied this
   8    8   * source.  A copy of the CDDL is also available via the Internet at
   9    9   * http://www.illumos.org/license/CDDL.
  10   10   */
  11   11  
  12   12  /*
  13   13   * Copyright 2012, Richard Lowe.
  14      - */     
       14 + */
  15   15  
  16   16          .section        .rodata.str1.1,"aMS",@progbits,1
  17   17  .LC0:
  18   18          .string "foo: %p\n"
  19   19          .text
  20   20  .globl main
  21   21          .type   main, @function
  22   22  main:
  23   23  .LFB0:
  24   24          pushq   %rbp
↓ open down ↓ 8 lines elided ↑ open up ↑
  33   33          call    printf
  34   34          movl    $0, %eax
  35   35          leave
  36   36          ret
  37   37  .LFE0:
  38   38          .size   main, .-main
  39   39  .globl foo
  40   40          .section        .rodata.str1.1
  41   41  .LC1:
  42   42          .string "foo"
       43 +
  43   44          .section        .tdata,"awT",@progbits
  44   45          .align 8
  45   46          .type   foo, @object
  46   47          .size   foo, 8
  47   48  foo:
  48   49          .quad   .LC1
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX