~bdrung/qemu-kvm/caps-lock-key-up-event

« back to all changes in this revision

Viewing changes to debian/patches/0001-Fix-missing-symbols-in-.rel-.rela.plt-sections.patch

  • Committer: Bazaar Package Importer
  • Author(s): Serge Hallyn
  • Date: 2010-08-10 08:51:54 UTC
  • mfrom: (1.2.2 upstream)
  • Revision ID: james.westby@ubuntu.com-20100810085154-ok0jzlkr75dplmc7
Tags: 0.12.5+noroms-0ubuntu1
* New upstream release
* Removed patch which is now upstream:
  0001-Fix-missing-symbols-in-.rel-.rela.plt-sections.patch

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
From a3582e37351596119e947b0606021aedb19b6f61 Mon Sep 17 00:00:00 2001
2
 
From: =?UTF-8?q?Lo=C3=AFc=20Minier?= <lool@dooz.org>
3
 
Date: Sun, 17 Jan 2010 12:09:38 +0100
4
 
Subject: [PATCH] Fix missing symbols in .rel/.rela.plt sections
5
 
MIME-Version: 1.0
6
 
Content-Type: text/plain; charset=UTF-8
7
 
Content-Transfer-Encoding: 8bit
8
 
 
9
 
Fix .rel.plt sections in the output to not only include .rel.plt
10
 
sections from the input but also the .rel.iplt sections and to define
11
 
the hidden symbols __rel_iplt_start and __rel_iplt_end around
12
 
.rel.iplt as otherwise we get undefined references to these when
13
 
linking statically to a multilib libc.a.  This fixes the static build
14
 
under i386.
15
 
 
16
 
Apply similar logic to rela.plt/.iplt and __rela_iplt/_plt_start/_end to
17
 
fix the static build under amd64.
18
 
 
19
 
Signed-off-by: Lo�c Minier <lool@dooz.org>
20
 
---
21
 
 i386.ld   |   16 ++++++++++++++--
22
 
 x86_64.ld |   16 ++++++++++++++--
23
 
 2 files changed, 28 insertions(+), 4 deletions(-)
24
 
 
25
 
diff --git a/i386.ld b/i386.ld
26
 
index f2dafec..f8df7bf 100644
27
 
--- a/i386.ld
28
 
+++ b/i386.ld
29
 
@@ -39,8 +39,20 @@ SECTIONS
30
 
   .rela.fini     : { *(.rela.fini)     }
31
 
   .rel.bss       : { *(.rel.bss)               }
32
 
   .rela.bss      : { *(.rela.bss)              }
33
 
-  .rel.plt       : { *(.rel.plt)               }
34
 
-  .rela.plt      : { *(.rela.plt)              }
35
 
+  .rel.plt      :
36
 
+  {
37
 
+    *(.rel.plt)
38
 
+    PROVIDE_HIDDEN (__rel_iplt_start = .);
39
 
+    *(.rel.iplt)
40
 
+    PROVIDE_HIDDEN (__rel_iplt_end = .);
41
 
+  }
42
 
+  .rela.plt       :
43
 
+  {
44
 
+    *(.rela.plt)
45
 
+    PROVIDE_HIDDEN (__rela_iplt_start = .);
46
 
+    *(.rela.iplt)
47
 
+    PROVIDE_HIDDEN (__rela_iplt_end = .);
48
 
+  }
49
 
   .init          : { *(.init)  } =0x47ff041f
50
 
   .text      :
51
 
   {
52
 
diff --git a/x86_64.ld b/x86_64.ld
53
 
index 24ea77d..46d8d4d 100644
54
 
--- a/x86_64.ld
55
 
+++ b/x86_64.ld
56
 
@@ -35,8 +35,20 @@ SECTIONS
57
 
   .rela.got       : { *(.rela.got) }
58
 
   .rel.bss        : { *(.rel.bss .rel.bss.* .rel.gnu.linkonce.b.*) }
59
 
   .rela.bss       : { *(.rela.bss .rela.bss.* .rela.gnu.linkonce.b.*) }
60
 
-  .rel.plt        : { *(.rel.plt) }
61
 
-  .rela.plt       : { *(.rela.plt) }
62
 
+  .rel.plt      :
63
 
+  {
64
 
+    *(.rel.plt)
65
 
+    PROVIDE_HIDDEN (__rel_iplt_start = .);
66
 
+    *(.rel.iplt)
67
 
+    PROVIDE_HIDDEN (__rel_iplt_end = .);
68
 
+  }
69
 
+  .rela.plt       :
70
 
+  {
71
 
+    *(.rela.plt)
72
 
+    PROVIDE_HIDDEN (__rela_iplt_start = .);
73
 
+    *(.rela.iplt)
74
 
+    PROVIDE_HIDDEN (__rela_iplt_end = .);
75
 
+  }
76
 
   .init           :
77
 
   {
78
 
     KEEP (*(.init))
79
 
1.6.5
80