The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / uclibc / 7bf35c8b7d4a1f97174eb49f47f33946b282114c / 0001-xtensa-add-missing-.literal_position-directives.patch
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
5
6 This addition allows building uClibc with -mtext-section-literals
7
8 Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
9 ---
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(-)
14
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
19 @@ -11,6 +11,7 @@
20  __asm__ (
21      "  .text\n"
22      "  .align  4\n"
23 +    "  .literal_position\n"
24      "  .global _start\n"
25      "  .type   _start, @function\n"
26      "  .hidden _start\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
31 @@ -27,6 +27,7 @@
32  
33         .text
34         .align  4
35 +       .literal_position
36         .global _dl_linux_resolve
37         .type   _dl_linux_resolve, @function
38  _dl_linux_resolve:
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
43 @@ -34,13 +34,14 @@
44  
45  #define MASK4 0x40404040
46  
47 +       .text
48 +       .align 4
49 +       .literal_position
50         .literal .Lmask0, MASK0
51         .literal .Lmask1, MASK1
52         .literal .Lmask2, MASK2
53         .literal .Lmask3, MASK3
54         .literal .Lmask4, MASK4
55 -
56 -       .text
57  ENTRY (strcmp)
58         /* a2 = s1, a3 = s2 */
59  
60 -- 
61 1.8.1.4
62