[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] x86/EFI: work around GNU ld 2.36 issue


  • To: Jan Beulich <jbeulich@xxxxxxxx>, "xen-devel@xxxxxxxxxxxxxxxxxxxx" <xen-devel@xxxxxxxxxxxxxxxxxxxx>
  • From: Andrew Cooper <andrew.cooper3@xxxxxxxxxx>
  • Date: Fri, 5 Feb 2021 10:33:01 +0000
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=citrix.com; dmarc=pass action=none header.from=citrix.com; dkim=pass header.d=citrix.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=5t1y/vW/EGERf7/B9L7HaSU5tqPV3o8mDIH/V5sGE/U=; b=P0FBsMOuduL+RwdNsWv+rA7weKhzEkQeGakjik6zeJbzMzEQvX2QUQufrlD6n2V0lC883hTKbImxl9xb/ec6S7+X2LiIwyUavfP0skmSc1nzoRvibU3V+BW5Lj4O5TyTNT2ocPJQeQLrtBprSzV4MRlIWR9PQZzB/H2lYnQ74EDNnrhOF1tlNlcQid66SXaiEAqjR4VwlifkrNHow60hscxoBQwufhgPC7brSg2S5RzgQ+lm7Y/irY3hIurUsQcYajTLM5bED0aEBA2YZJrx+qeDY28npczub9FGM5718Jwyu1g6xDoIom8TfoxAn4hx3j73jBIAcBWCO+mIkkQ93A==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=cSDF0CvYPnhN0EybmxeT+CmH1EL27x7EZaFDFlVfUPZoQhNh2WnFQsHuwtXGtIQQ8L6m/qqA4h8sNKlhxXIDqhk6F94qOdRuWukXzwJ3qOs4ZJNQBw1gDlxTLxEtMPEVCc1saM1Sv7FoRupjXAsDrjHLbxnEADwrO5zaBsRHa87yobQ7baOehla6MYG4mUbPkJhxMbRGg7/8JYAF62KRQq4XPaAWlOfdZhSoNpXqwIUp1/fSNuxjmTw2ZLvRiZhRjqiZJf/fgWrerwybNXDQd2qqAbkpSU6IZPxrAZK+z/cNEYccdL8dP5dGUapMyYr3KP+VjjbpceLIDOqJ3ta/xw==
  • Authentication-results: esa6.hc3370-68.iphmx.com; dkim=pass (signature verified) header.i=@citrix.onmicrosoft.com
  • Cc: Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, Ian Jackson <iwj@xxxxxxxxxxxxxx>
  • Delivery-date: Fri, 05 Feb 2021 10:33:23 +0000
  • Ironport-sdr: ttwBhKGBOe4P8Evt0nYvbhIHXX9QqvJIQf7DQ1vOqR8cSoQ33Vj3qkJFoQIztPOFPNJHQCcU6+ PTaWFY8V2EsEPInI+TLsY+uH9qZW3RBps8QCf4AjcHITIw0KDZeCbxWcMzBLz80/erIM+goTqU HXPzT1ibwZeFbAejPIh4gnF2PP202S67MbszXQqAVzvRjkwuCqppUI9ZXZgrZnig91bhHvky4G 2l82H4WSMmB9IUGbID2Z24mQFGIouSzXUWinPN/BowCwaiwFFocj3BLaHFpYWaWLvejllcYRuU 0Vs=
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 05/02/2021 08:11, Jan Beulich wrote:
> On 04.02.2021 14:38, Jan Beulich wrote:
>> Our linker capability check fails with the recent binutils release's ld:
>>
>> .../check.o:(.debug_aranges+0x6): relocation truncated to fit: R_X86_64_32 
>> against `.debug_info'
>> .../check.o:(.debug_info+0x6): relocation truncated to fit: R_X86_64_32 
>> against `.debug_abbrev'
>> .../check.o:(.debug_info+0xc): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+76
>> .../check.o:(.debug_info+0x11): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+d
>> .../check.o:(.debug_info+0x15): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+2b
>> .../check.o:(.debug_info+0x29): relocation truncated to fit: R_X86_64_32 
>> against `.debug_line'
>> .../check.o:(.debug_info+0x30): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+19
>> .../check.o:(.debug_info+0x37): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+71
>> .../check.o:(.debug_info+0x3e): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'
>> .../check.o:(.debug_info+0x45): relocation truncated to fit: R_X86_64_32 
>> against `.debug_str'+5e
>> .../check.o:(.debug_info+0x4c): additional relocation overflows omitted from 
>> the output
>>
>> Tell the linker to strip debug info as a workaround. Oddly enough debug
>> info has been getting stripped when linking the actual xen.efi, without
>> me being able to tell why this would be.
> I've changed this to
>
> "Tell the linker to strip debug info as a workaround. Debug info has been
>  getting stripped already anyway when linking the actual xen.efi."
>
> as I noticed I did look for -S only yesterday, while we have
>
> EFI_LDFLAGS += --image-base=$(1) --stack=0,0 --heap=0,0 --strip-debug

So, in terms of the bugfix, Acked-by: Andrew Cooper
<andrew.cooper3@xxxxxxxxxx>

However, we ought be keeping the debug symbols for xen-syms.efi (or
equiv) seeing as there is logic included here which isn't in the regular
xen-syms.

~Andrew



 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.