xen-devel.lists.xenproject.org archive mirror
 help / color / mirror / Atom feed
From: "Jan Beulich" <JBeulich@suse.com>
To: Ross Lagerwall <ross.lagerwall@citrix.com>
Cc: Andrew Cooper <andrew.cooper3@citrix.com>,
	Julien Grall <julien.grall@arm.com>,
	XenDevel <xen-devel@lists.xen.org>
Subject: Re: xen/x86: efi: warning value truncated
Date: Tue, 14 Jun 2016 06:36:19 -0600	[thread overview]
Message-ID: <5760166402000078000F4C62@prv-mh.provo.novell.com> (raw)
In-Reply-To: <575FE82A.3070901@citrix.com>

>>> On 14.06.16 at 13:19, <ross.lagerwall@citrix.com> wrote:
> On 06/14/2016 11:50 AM, Jan Beulich wrote:
>>>>> On 14.06.16 at 12:15, <ross.lagerwall@citrix.com> wrote:
>>> On 06/14/2016 10:24 AM, Jan Beulich wrote:
>>>>>>> On 13.06.16 at 19:13, <julien.grall@arm.com> wrote:
>>>>> I noticed the warnings below when building Xen x86
>>>>> with Livepatch enabled.
>>>>
>>>> I did notice some of these too (not as many though, iirc), but I
>>>> didn't get around yet to check what exactly is causing them. Since
>>>> they're in the symbol table files only, I didn't consider them too
>>>> concerning (at worst some odd symbol won't be found or be
>>>> associated with the wrong address).
>>>>
>>>
>>> On my build, they are:
>>>
>>> multiboot1_header_start|000000000000051e|   ?  |
>>> multiboot1_header_start|00000000000008a1|   ?  |
>>> multiboot1_header_start|00000000000008a3|   ?  |
>>> multiboot1_header_start|00000000000008a8|   ?  |
>>> multiboot1_header_start|000000000000102f|   ?  |
>>> multiboot1_header_start|0000000000001033|   ?  |
>>> multiboot1_header_start|0000000000001037|   ?  |
>>> __init_end |ffff82d180650000| D |
>>
>> Aren't these symbols from the final binary (which get wrongly named
>> without fixed binutils)? Whereas Julien's issue was with warnings from
>> the assembler?
> 
> It looks the same to me. Here are the warnings:
> 
> /home/ross/src/xen/xen/.xen.efi.0s.S: Assembler messages:
> /home/ross/src/xen/xen/.xen.efi.0s.S:21: Warning: value 0x7d2f8000051e 
> truncated to 0x8000051e
> /home/ross/src/xen/xen/.xen.efi.0s.S:22: Warning: value 0x7d2f800008a1 
> truncated to 0x800008a1
> /home/ross/src/xen/xen/.xen.efi.0s.S:23: Warning: value 0x7d2f800008a3 
> truncated to 0x800008a3
> /home/ross/src/xen/xen/.xen.efi.0s.S:24: Warning: value 0x7d2f800008a8 
> truncated to 0x800008a8
> /home/ross/src/xen/xen/.xen.efi.0s.S:25: Warning: value 0x7d2f8000102f 
> truncated to 0x8000102f
> /home/ross/src/xen/xen/.xen.efi.0s.S:26: Warning: value 0x7d2f80001033 
> truncated to 0x80001033
> /home/ross/src/xen/xen/.xen.efi.0s.S:27: Warning: value 0x7d2f80001037 
> truncated to 0x80001037
> /home/ross/src/xen/xen/.xen.efi.0s.S:6741: Warning: value 0x100650000 
> truncated to 0x650000
> /home/ross/src/xen/xen/.xen.efi.1s.S: Assembler messages:
> /home/ross/src/xen/xen/.xen.efi.1s.S:21: Warning: value 0x7d2f8000051e 
> truncated to 0x8000051e
> /home/ross/src/xen/xen/.xen.efi.1s.S:22: Warning: value 0x7d2f800008a1 
> truncated to 0x800008a1
> /home/ross/src/xen/xen/.xen.efi.1s.S:23: Warning: value 0x7d2f800008a3 
> truncated to 0x800008a3
> /home/ross/src/xen/xen/.xen.efi.1s.S:24: Warning: value 0x7d2f800008a8 
> truncated to 0x800008a8
> /home/ross/src/xen/xen/.xen.efi.1s.S:25: Warning: value 0x7d2f8000102f 
> truncated to 0x8000102f
> /home/ross/src/xen/xen/.xen.efi.1s.S:26: Warning: value 0x7d2f80001033 
> truncated to 0x80001033
> /home/ross/src/xen/xen/.xen.efi.1s.S:27: Warning: value 0x7d2f80001037 
> truncated to 0x80001037
> /home/ross/src/xen/xen/.xen.efi.1s.S:6740: Warning: value 0x100650000 
> truncated to 0x650000
> 
> So, e.g. taking the last one, the assembly file contains a line:
> PTR 0xffff82d180650000 - SYMBOLS_ORIGIN
> 
> In this case SYMBOLS_ORIGIN is 0xffff82d080000000 and so it resolves to:
> .long 0x100650000
> which overflows.

Oh, right, I got confused. These are wrong because the intermediate
binary had bogus symbol table entries. So indeed these should be gone
with recent enough binutils. And I have to admit that I then have no
idea how to prevent those warnings.

Jan


_______________________________________________
Xen-devel mailing list
Xen-devel@lists.xen.org
http://lists.xen.org/xen-devel

      reply	other threads:[~2016-06-14 12:36 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2016-06-13 17:13 xen/x86: efi: warning value truncated Julien Grall
2016-06-14  9:24 ` Jan Beulich
2016-06-14 10:15   ` Ross Lagerwall
2016-06-14 10:50     ` Jan Beulich
2016-06-14 11:19       ` Ross Lagerwall
2016-06-14 12:36         ` Jan Beulich [this message]

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=5760166402000078000F4C62@prv-mh.provo.novell.com \
    --to=jbeulich@suse.com \
    --cc=andrew.cooper3@citrix.com \
    --cc=julien.grall@arm.com \
    --cc=ross.lagerwall@citrix.com \
    --cc=xen-devel@lists.xen.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).