1 From 04d7bd868b300c8150231d7a37e62150eaf810d0 Mon Sep 17 00:00:00 2001
2 From: Max Filippov <jcmvbkbc@gmail.com>
3 Date: Mon, 24 Mar 2014 01:06:35 +0400
4 Subject: [PATCH] xtensa: add missing .literal_position directives
6 This addition allows building uClibc with -mtext-section-literals
8 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
10 ldso/ldso/xtensa/dl-startup.h | 1 +
11 ldso/ldso/xtensa/resolve.S | 1 +
12 libc/string/xtensa/strcmp.S | 5 +++--
13 3 files changed, 5 insertions(+), 2 deletions(-)
15 diff --git a/ldso/ldso/xtensa/dl-startup.h b/ldso/ldso/xtensa/dl-startup.h
16 index 45af82d..b135a4c 100644
17 --- a/ldso/ldso/xtensa/dl-startup.h
18 +++ b/ldso/ldso/xtensa/dl-startup.h
23 + " .literal_position\n"
25 " .type _start, @function\n"
27 diff --git a/ldso/ldso/xtensa/resolve.S b/ldso/ldso/xtensa/resolve.S
28 index 61c2c5d..d1ae8aa 100644
29 --- a/ldso/ldso/xtensa/resolve.S
30 +++ b/ldso/ldso/xtensa/resolve.S
36 .global _dl_linux_resolve
37 .type _dl_linux_resolve, @function
39 diff --git a/libc/string/xtensa/strcmp.S b/libc/string/xtensa/strcmp.S
40 index d3d72e0..8ed1ed0 100644
41 --- a/libc/string/xtensa/strcmp.S
42 +++ b/libc/string/xtensa/strcmp.S
45 #define MASK4 0x40404040
50 .literal .Lmask0, MASK0
51 .literal .Lmask1, MASK1
52 .literal .Lmask2, MASK2
53 .literal .Lmask3, MASK3
54 .literal .Lmask4, MASK4
58 /* a2 = s1, a3 = s2 */