From: David Woodhouse <dwmw2@infradead.org>
To: xen-devel@lists.xenproject.org
Subject: xen/link: Move .data.rel.ro sections into .rodata for final link
Date: Thu, 20 Jul 2017 17:20:43 +0200 [thread overview]
Message-ID: <1500564043.4400.15.camel@infradead.org> (raw)
[-- Attachment #1.1: Type: text/plain, Size: 1776 bytes --]
From: David Woodhouse <dwmw@amazon.co.uk>
This includes stuff lke the hypercall tables which we really want
to be read-only. And they were going into .data.read-mostly.
Signed-off-by: David Woodhouse <dwmw@amazon.co.uk>
---
Build tested on x86_64 (you really don't want to know about what I
*actually* tested it with), not at all tested on ARM.
xen/arch/arm/xen.lds.S | 4 ++--
xen/arch/x86/xen.lds.S | 4 ++--
2 files changed, 4 insertions(+), 4 deletions(-)
diff --git a/xen/arch/arm/xen.lds.S b/xen/arch/arm/xen.lds.S
index 44bd3bf..2d54f22 100644
--- a/xen/arch/arm/xen.lds.S
+++ b/xen/arch/arm/xen.lds.S
@@ -52,6 +52,8 @@ SECTIONS
__stop_bug_frames_2 = .;
*(.rodata)
*(.rodata.*)
+ *(.data.rel.ro)
+ *(.data.rel.ro.*)
#ifdef CONFIG_LOCK_PROFILE
. = ALIGN(POINTER_ALIGN);
@@ -97,8 +99,6 @@ SECTIONS
__stop___pre_ex_table = .;
*(.data.read_mostly)
- *(.data.rel.ro)
- *(.data.rel.ro.*)
} :text
. = ALIGN(8);
diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index 8289a1b..ff08bbe 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -90,6 +90,8 @@ SECTIONS
*(.rodata)
*(.rodata.*)
+ *(.data.rel.ro)
+ *(.data.rel.ro.*)
#if defined(BUILD_ID) && defined(EFI) && !defined(BUILD_ID_EFI)
/*
@@ -224,8 +226,6 @@ SECTIONS
__start_schedulers_array = .;
*(.data.schedulers)
__end_schedulers_array = .;
- *(.data.rel.ro)
- *(.data.rel.ro.*)
} :text
.data : { /* Data */
--
2.7.4
[-- Attachment #1.2: smime.p7s --]
[-- Type: application/x-pkcs7-signature, Size: 4938 bytes --]
[-- Attachment #2: Type: text/plain, Size: 127 bytes --]
_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
https://lists.xen.org/xen-devel
next reply other threads:[~2017-07-20 15:20 UTC|newest]
Thread overview: 24+ messages / expand[flat|nested] mbox.gz Atom feed top
2017-07-20 15:20 David Woodhouse [this message]
2017-07-20 16:46 ` xen/link: Move .data.rel.ro sections into .rodata for final link Wei Liu
2017-07-20 16:54 ` Wei Liu
2017-07-21 10:43 ` Julien Grall
2017-07-21 16:41 ` Andrew Cooper
2017-07-25 9:21 ` [PATCH v2] " David Woodhouse
2017-07-30 6:16 ` Jan Beulich
2017-07-30 12:50 ` Andrew Cooper
2017-07-30 23:18 ` David Woodhouse
2017-07-31 9:57 ` Jan Beulich
2017-07-31 10:15 ` David Woodhouse
2017-07-31 9:55 ` Jan Beulich
2017-07-31 11:02 ` David Woodhouse
2017-07-31 13:15 ` Jan Beulich
2017-07-31 15:56 ` David Woodhouse
2017-08-02 9:17 ` Jan Beulich
2017-08-02 11:30 ` [PATCH] x86/efi: Do not write relocations in efi_arch_relocate_image() first pass David Woodhouse
2017-08-02 11:56 ` Jan Beulich
2017-08-02 12:11 ` David Woodhouse
2017-08-02 13:58 ` Jan Beulich
2017-08-02 14:45 ` David Woodhouse
2017-08-02 15:16 ` Jan Beulich
2017-08-02 15:56 ` David Woodhouse
2017-08-02 11:43 ` xen/link: Move .data.rel.ro sections into .rodata for final link David Woodhouse
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1500564043.4400.15.camel@infradead.org \
--to=dwmw2@infradead.org \
--cc=xen-devel@lists.xenproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).