* Drop .gnu.warning.  Xen, not being a library, has no need for
   __attribute__((__warning__("str"))) and isn't liable to ever gain such
   annotations for link time warnings.
 * Adjust the indentation of the start of ARM's .rodata section.
 * Discard .discard on ARM.

Signed-off-by: Andrew Cooper <andrew.coop...@citrix.com>
---
CC: Jan Beulich <jbeul...@suse.com>
CC: Wei Liu <w...@xen.org>
CC: Roger Pau Monné <roger....@citrix.com>
CC: Stefano Stabellini <sstabell...@kernel.org>
CC: Julien Grall <julien.gr...@arm.com>
---
 xen/arch/arm/xen.lds.S | 7 ++++---
 xen/arch/x86/xen.lds.S | 1 -
 2 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index 3dc5117..c5ef5d5 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -35,14 +35,13 @@ SECTIONS
        *(.text.cold)
        *(.text.unlikely)
        *(.fixup)
-       *(.gnu.warning)
        _etext = .;             /* End of text section */
   } :text = 0x9090
 
   . = ALIGN(PAGE_SIZE);
   .rodata : {
-        _srodata = .;          /* Read-only data */
-        /* Bug frames table */
+       _srodata = .;           /* Read-only data */
+       /* Bug frames table */
        __start_bug_frames = .;
        *(.bug_frames.0)
        __stop_bug_frames_0 = .;
@@ -209,6 +208,8 @@ SECTIONS
        *(.exit.text)
        *(.exit.data)
        *(.exitcall.exit)
+       *(.discard)
+       *(.discard.*)
        *(.eh_frame)
   }
 
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index ef11949..8bc2be3 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -82,7 +82,6 @@ SECTIONS
        *(.text.unlikely)
        *(.fixup)
        *(.text.kexec)
-       *(.gnu.warning)
        _etext = .;             /* End of text section */
   } :text = 0x9090
 
-- 
2.1.4


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xenproject.org
https://lists.xenproject.org/mailman/listinfo/xen-devel

Reply via email to