summaryrefslogtreecommitdiff
blob: d47dc3a0d05353384ed67c1a54141da2be81fc59 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
Updated lds patch from redhat which works with newer binutils.

http://bugs.gentoo.org/show_bug.cgi?id=79091

--- gnuefi/elf_ia64_efi.lds
+++ gnuefi/elf_ia64_efi.lds
@@ -28,6 +28,5 @@
   {
    *(.rodata*)
    *(.ctors)
-   *(.data)
-   *(.data1)
+   *(.data*)
    *(.gnu.linkonce.d*)
@@ -31,8 +31,4 @@ SECTIONS
    *(.plabel)	/* data whose relocs we want to ignore */
-   *(.IA_64.unwind)
-   *(.IA_64.unwind_info)
-   *(.IA64.unwind)
-   *(.IA64.unwind_info)
    /* the EFI loader doesn't seem to like a .bss section, so we stick
       it all into .data: */
    *(.dynbss)
@@ -48,7 +47,7 @@
   .rela :
   {
     *(.rela.text)
-    *(.rela.data)
+    *(.rela.data*)
     *(.rela.sdata)
     *(.rela.got)
     *(.rela.gnu.linkonce.d*)
@@ -68,4 +64,9 @@ SECTIONS
     *(.rela.plabel)
     *(.rela.reloc)
   }
+  /DISCARD/ :
+  {
+    *(.IA_64.unwind*)
+    *(.IA64.unwind*)
+  }
 }