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

Re: [XEN PATCH v9 08/30] build: fix enforce unique symbols for recent clang version


  • To: Anthony PERARD <anthony.perard@xxxxxxxxxx>
  • From: Jan Beulich <jbeulich@xxxxxxxx>
  • Date: Fri, 28 Jan 2022 13:43:38 +0100
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=none; dmarc=none; dkim=none; 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=7X2ntNnnQ16v9t4cWE5oej4JS0ziR+EKIL+nJJ914GM=; b=e6ul2/ArrhymqzEU/axOlvGgdl8NuCS5Q1wCE8Nw9nVVAWnVqbUT/qrZaJuWF5aO2ztwYdbmHnIGbLlljDo8McdEkhzswLPBFL/fJxoh0BFUO5f7uAvR4eqwIp/sXG5ok0zrHM7Xp5ZFCRfmj2WciAJ+pkKDsW5GQEotYzk6QSyEncrgTQl4LwlpEpN8sV+Wk8EiA9q6OH3ApVcvROf1PAPMOFUbKIuSW1noY5A6qHnC96rV48Fe4a4lO9hljhPODOVt+mCgGSJGeAE/FSOZfXE1sLWNnsTjuWMBYHDeuoOSCdibbU8Z5DqeLqxazRpgSVxegSOyPOkDiwiFPSqcDQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=A4Y/9TEyo6wnXF/u4OU7Yy+9OVJISNomQtiR9MDhN8hL0iN+C4IgB8fm9yTTW4FL2SX213EIo6/zkh8y5Q86+x7HYZ1OFzWrF8hQOItobMqpKvm2XYJYjPd/f4VgKlqUYJegvwfDGzHbZCSy8ACBlEpjtx7HW1nCVt+aaIVbcdHOlEo7RgPqlsN3Qw9TT+6ckNVdTwdlQVu7XYLt/DG9gZf0D/dXOKRV2unvW83eNB2KTGWcy1PpHy4pa19HX2mZMzH3NS9QT24hTlrxv/ekgyNxjCKrIVKQjH5AwZNSr0PxDD1m6Ul7uxZ/5cnEr0Nl7xF5aHatLIVwfxl919P+0g==
  • Authentication-results: dkim=none (message not signed) header.d=none;dmarc=none action=none header.from=suse.com;
  • Cc: Roger Pau Monné <roger.pau@xxxxxxxxxx>, Andrew Cooper <andrew.cooper3@xxxxxxxxxx>, George Dunlap <george.dunlap@xxxxxxxxxx>, Julien Grall <julien@xxxxxxx>, Stefano Stabellini <sstabellini@xxxxxxxxxx>, Wei Liu <wl@xxxxxxx>, xen-devel@xxxxxxxxxxxxxxxxxxxx
  • Delivery-date: Fri, 28 Jan 2022 12:43:57 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>

On 28.01.2022 13:03, Anthony PERARD wrote:
> On Thu, Jan 27, 2022 at 04:57:20PM +0100, Jan Beulich wrote:
>> On 25.01.2022 12:00, Anthony PERARD wrote:
>>> clang 6.0 and newer behave like gcc in regards for the FILE symbol, so
>>> only the filename rather than the full path to the source file.
>>>
>>> clang 3.8.1-24 (in our debian:stretch container) and 3.5.0-10
>>> (in our debian:jessie container) do store the full path to the source
>>> file in the FILE symbol.
>>>
>>> Also, based on commit 81ecb38b83 ("build: provide option to
>>> disambiguate symbol names"), which were using clang 5, the change of
>>> behavior likely happened in clang 6.0.
>>>
>>> This means that we also need to check clang version to figure out
>>> which command we need to use to redefine symbol.
>>>
>>> Signed-off-by: Anthony PERARD <anthony.perard@xxxxxxxxxx>
>>
>> The "likely" in the description still worries me some. Roger, would
>> you happen to know, or know of a way to find out for sure ("sure"
>> not meaning to exclude the usual risk associated with version
>> number checks)?
> 
> I found f5040b9685a7 ("Make .file directive to have basename only") as
> part of LLVM's "release/6.x" branch (and "llvmorg-6.0.0" tag), but not
> in "release/5.x".
> 
> https://github.com/llvm/llvm-project/commit/f5040b9685a760e584c576e9185295e54635d51e
> 
> This patch would seems to be the one changing the behavior. This still
> suggest clang 6.0.

Oh, thanks for digging this out. May I suggest to replace (or delete)
"likely" then in the description?

Acked-by: Jan Beulich <jbeulich@xxxxxxxx>

Jan




 


Rackspace

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