xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Roger Pau Monne <roger.pau@citrix.com>, <xen-devel@lists.xenproject.org>
Cc: Stefano Stabellini <sstabellini@kernel.org>, Wei Liu <wl@xen.org>,
	Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>,
	George Dunlap <George.Dunlap@eu.citrix.com>,
	Tim Deegan <tim@xen.org>, Ian Jackson <ian.jackson@eu.citrix.com>,
	Julien Grall <julien.grall@arm.com>,
	Jan Beulich <jbeulich@suse.com>
Subject: Re: [Xen-devel] [PATCH 1/4] xz: use initconst for hypervisor build
Date: Wed, 19 Jun 2019 12:09:04 +0100	[thread overview]
Message-ID: <1d011739-75a6-2d01-bfa7-8e8d042c18b9@citrix.com> (raw)
In-Reply-To: <20190619110250.18881-2-roger.pau@citrix.com>

On 19/06/2019 12:02, Roger Pau Monne wrote:
> Or else clang adds a .init.rodata.cst8 section to the resulting object
> file, which is not handled by the Xen linker script and can end up
> before the text section which contains the headers, thus resulting in
> a not usable binary.
>
> Signed-off-by: Roger Pau Monné <roger.pau@citrix.com>

I think Clang is actually adding a .rodata.cst8 section, and the bulk
objcopy turns it into .init.rodata.cst8.

This is a good change so Reviewed-by: Andrew Cooper
<andrew.cooper3@citrix.com> (subject to some clarity over the exact
section), but I also think this is needed as well:

diff --git a/xen/arch/x86/xen.lds.S b/xen/arch/x86/xen.lds.S
index cb42dc8..4f23059 100644
--- a/xen/arch/x86/xen.lds.S
+++ b/xen/arch/x86/xen.lds.S
@@ -206,8 +206,7 @@ SECTIONS
 #endif
 
        *(.init.rodata)
-       *(.init.rodata.rel)
-       *(.init.rodata.str*)
+       *(.init.rodata.*)
 
        . = ALIGN(POINTER_ALIGN);
        __setup_start = .;
@@ -221,8 +220,7 @@ SECTIONS
        __initcall_end = .;
 
        *(.init.data)
-       *(.init.data.rel)
-       *(.init.data.rel.*)
+       *(.init.data.*)
        . = ALIGN(4);
        __trampoline_rel_start = .;
        *(.trampoline_rel)


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

  reply	other threads:[~2019-06-19 11:09 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-06-19 11:02 [Xen-devel] [PATCH 0/4] x86: build with llvm 8 linker Roger Pau Monne
2019-06-19 11:02 ` [Xen-devel] [PATCH 1/4] xz: use initconst for hypervisor build Roger Pau Monne
2019-06-19 11:09   ` Andrew Cooper [this message]
2019-06-19 11:43     ` Jan Beulich
2019-06-19 11:50   ` Jan Beulich
2019-06-19 14:44     ` Roger Pau Monné
2019-06-19 11:02 ` [Xen-devel] [PATCH 2/4] x86/linker: use DECL_SECTION uniformly Roger Pau Monne
2019-06-19 11:12   ` Andrew Cooper
2019-06-19 11:02 ` [Xen-devel] [PATCH 3/4] x86/linker: add a reloc section to ELF binary Roger Pau Monne
2019-06-19 11:20   ` Andrew Cooper
2019-06-19 11:56     ` Jan Beulich
2019-06-19 14:30     ` Roger Pau Monné
2019-06-19 14:37       ` Jan Beulich
2019-06-19 12:57   ` Jan Beulich
2019-06-19 15:06     ` Roger Pau Monné
2019-06-21  6:34       ` Jan Beulich
2019-06-21 11:46         ` Roger Pau Monné
2019-06-21 12:07           ` Jan Beulich
2019-06-21 13:41             ` Roger Pau Monné
2019-06-24 11:24         ` Daniel Kiper
2019-06-25  8:10           ` Roger Pau Monné
2019-06-25  9:18             ` Jan Beulich
2019-06-25 11:08               ` Roger Pau Monné
2019-06-25 12:48                 ` Roger Pau Monné
2019-06-25 14:18                   ` Jan Beulich
2019-06-25 14:11                 ` Jan Beulich
2019-06-19 11:02 ` [Xen-devel] [PATCH 4/4] x86: check for multiboot{1, 2} header presence Roger Pau Monne
2019-06-19 11:11   ` Andrew Cooper
2019-06-19 11:20     ` Roger Pau Monné
2019-06-19 11:23       ` Andrew Cooper
2019-06-19 13:08   ` Jan Beulich
2019-06-19 14:40     ` Roger Pau Monné
2019-06-21  6:24       ` Jan Beulich

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=1d011739-75a6-2d01-bfa7-8e8d042c18b9@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=George.Dunlap@eu.citrix.com \
    --cc=ian.jackson@eu.citrix.com \
    --cc=jbeulich@suse.com \
    --cc=julien.grall@arm.com \
    --cc=konrad.wilk@oracle.com \
    --cc=roger.pau@citrix.com \
    --cc=sstabellini@kernel.org \
    --cc=tim@xen.org \
    --cc=wl@xen.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).