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

Re: [PATCH v2 2/2] xen: Populate xen.lds.h and make use of its macros


  • To: Michal Orzel <michal.orzel@xxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Tue, 29 Mar 2022 12:31:27 +0200
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=suse.com; dmarc=pass action=none header.from=suse.com; dkim=pass header.d=suse.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-AntiSpam-MessageData-ChunkCount:X-MS-Exchange-AntiSpam-MessageData-0:X-MS-Exchange-AntiSpam-MessageData-1; bh=cT/vVok2+RUMJXVusQ5sLDu+mraVRC1gf3nhxxO5/DM=; b=AtYwlhdjXXZHComupOCJckK6XkFdO6qxzF6uqQ63y0NFg9irYbPRXY7jgGzr/enK8JcfKK14QFF60qTw2eN0BorC2T9AULeCYOCjV0xD1TNnG2N6Fhq6o0SU6DbwqN4ud6P375ll1T1rIRWF+rkWlYYd7wB7mRS53RWbV7sCun6o0j3rRtVhJAm56Xfd8Ua1uXUSk6f6KBDyZ7m+RemhwgwGWZ5pJDCBT/pmhEaERDX/e1pVOOHGHJonz5o8OR0VtZ2hs292xzLDT8VCD7q+YSEbTTLmdo52obE3FtpvSMEa44f7LKa2Rbj9hwd3mdaHxcGCDD+w6Sqj3Kmq5MC+pQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=KuKB687DKjzX4SPjyDI+Y7SPDJwsirsz3BenJhv4hdIahipq7BWZrznZ6f5+HiNRHiCltTCAWlc1wXjmvcF0BZMsZqh/kL7qY0/dNIoUVhFFu1W5+X93+fCvGSGtUYB8I21Ln1eF47Xel4lNVX5AsRHEt7F5VxCXIngP9G5Qv/2L1Mo50kR5pV+1pTj+mm/35QOCFerSWMWfaW9moXXi4fQ52KtO9cYsO9mBjayO5zPv8zW02KNcIK9dqb3Sor+QBeS32SSsEX44LzxJonT2qOjJPuK3mGvuHzMXslDSERaksy3e+xnoWsiQYj8Vbr7+uxuA8QJ+1mNprbX2LCkW9Q==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Stefano Stabellini <sstabellini@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Bertrand Marquis <bertrand.marquis@xxxxxxx>, Volodymyr Babchuk <Volodymyr_Babchuk@xxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, Roger Pau Monné <roger.pau@xxxxxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Tue, 29 Mar 2022 10:31:35 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 29.03.2022 11:37, Michal Orzel wrote:
> On 29.03.2022 11:22, Jan Beulich wrote:
>> On 22.03.2022 09:02, Michal Orzel wrote:
>>> --- a/xen/include/xen/xen.lds.h
>>> +++ b/xen/include/xen/xen.lds.h
>>> @@ -5,4 +5,104 @@
>>>   * Common macros to be used in architecture specific linker scripts.
>>>   */
>>>  
>>> +/* Macros to declare debug sections. */
>>> +#ifdef EFI
>>> +/*
>>> + * Use the NOLOAD directive, despite currently ignored by (at least) GNU ld
>>> + * for PE output, in order to record that we'd prefer these sections to not
>>> + * be loaded into memory.
>>> + */
>>> +#define DECL_DEBUG(x, a) #x ALIGN(a) (NOLOAD) : { *(x) }
>>> +#define DECL_DEBUG2(x, y, a) #x ALIGN(a) (NOLOAD) : { *(x) *(y) }
>>> +#else
>>> +#define DECL_DEBUG(x, a) #x 0 : { *(x) }
>>> +#define DECL_DEBUG2(x, y, a) #x 0 : { *(x) *(y) }
>>> +#endif
>>> +
>>> +/* DWARF debug sections. */
>>> +#define DWARF_DEBUG_SECTIONS                      \
>>
>> May I suggest to call this DWARF2_DEBUG_SECTIONS, to make clear no
>> Dwarf1 section is included here (and we also don't mean to support
>> such debug info)?
>>
> As this list is not full I thought we are going to add DWARF1 sections one 
> day.
> DWARF2_DEBUG_SECTIONS would mean that we list sections only from DWARF2 which 
> is not true
> as we have sections from DWARF3,5, etc. 
> Maybe we should leave it as it is but modify the comment to state:
> /* DWARF2+ debug sections */

Well, yes, but only in a way. Dwarf3 and later are simply extensions
of Dwarf2, whereas Dwarf2 is not an extension of what originally was
called just Dwarf and now is commonly referred to as Dwarf1. I'm
fine with a comment saying Dwarf2+, but I'd like to not see the
construct be named just DWARF_*.

Jan




 


Rackspace

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