1 /*
   2  * This file and its contents are supplied under the terms of the
   3  * Common Development and Distribution License ("CDDL"), version 1.0.
   4  * You may only use this file in accordance with the terms of version
   5  * 1.0 of the CDDL.
   6  *
   7  * A full copy of the text of the CDDL should have accompanied this
   8  * source.  A copy of the CDDL is also available via the Internet at
   9  * http://www.illumos.org/license/CDDL.
  10  */
  11 
  12 /*
  13  * Copyright 2012, Richard Lowe.
  14  */
  15         .section        .rodata.str1.1,"aMS",@progbits,1
  16 .LC0:
  17         .string "foo: %p bar: %p\n"
  18         .text
  19 .globl func
  20         .type   func, @function
  21 func:
  22 .LFB0:
  23         pushq   %rbp
  24 .LCFI0:
  25         movq    %rsp, %rbp
  26 .LCFI1:
  27         movq    %fs:0, %r13
  28         movq    %r13, %rdx
  29         addq    bar@GOTTPOFF(%rip), %rdx
  30         addq    foo@GOTTPOFF(%rip), %r13
  31         movq    %r13, %rsi
  32         movl    $.LC0, %edi
  33         movl    $0, %eax
  34         call    printf
  35         leave
  36         ret
  37 .LFE0:
  38         .size   func, .-func