xref: /titanic_41/usr/src/cmd/sgs/test/ld/x64/tls/ie/style1-func-with-r13.s (revision 49f9b365248ee858ee91baa36eab27c5200f6dca)
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
21func:
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
39