This is the mail archive of the
gcc@gcc.gnu.org
mailing list for the GCC project.
Re: multiple definition of symbols" when linking executables on ARM32 and AArch64
- From: Wilco Dijkstra <Wilco dot Dijkstra at arm dot com>
- To: Andrew Pinski <pinskia at gmail dot com>, Matthias Klose <doko at ubuntu dot com>
- Cc: "gcc at gcc dot gnu dot org" <gcc at gcc dot gnu dot org>, "binutils at sourceware dot org" <binutils at sourceware dot org>
- Date: Mon, 6 Jan 2020 14:02:19 +0000
- Subject: Re: multiple definition of symbols" when linking executables on ARM32 and AArch64
- Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.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=R5/WooNpW/FQC9O5niv3uc0O7xrC7lAXIRJLxGE0OZs=; b=RdvT48WsiRl3iS5ESnBwgkWN5b7jV/0F47Ok8cbGThuDF+IVnjDeLJmh3JWwRZnpCOKIlFHg/4vPkdoWlzJqlNmcRPPrZmLamOaETgrTiAKlsCaFXlUCjbqA7buu6m4cbGcisOLxU/wpNPbxzZxRAvQ7CrqmXkFi7vTZubdj959SsJvTfKQ7xqVHpw2s4YS/gVc9EaQF4wrBN4syQ/FVtHnF+BVPotXfORqJGQDlAeUlYWbYR6FeQCCye43NdmsWNk5jn7aF3cCDsB0F08KJqUIUJ/Kup7QDQkjZOYVXFbzC52rQs/KkXWf5vcSD5041e+RYMrKPwcSqGM3LI0bHNg==
- Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=IL6txLs0GnNUrmhAGtG/30VRoiiPAoCHvYlRxOo/oGB+XNEjA9stHlmYozbMo6T61Nhkmp71Gqo5U1k1q9Xng12SZY3NWgZMcM2BRmVmJZm28g0FbuJ486f/nEgddULnl9N6g7iw2BeOikH+z9JGZkwpuJKOwLz0nkoE5lbpsFrWEulJfFXoOZWNI2IDLwhwNoe+eG0ISsife4Oz9DD4E3npvlSAD6DC3MvAXUka2sPS6wEpM1Ewhb0mJsDUBMCs8VWNIuufRTsoWtHULjEKMF5chd8w9qbgiQ/lgCNVpGNSlwOidBS1gapuXkCnWu6odEo4k1jtyX/mVt+jhUqU3g==
- Original-authentication-results: spf=none (sender IP is ) smtp.mailfrom=Wilco dot Dijkstra at arm dot com;
- References: <AM5PR0801MB203510D69D436B84B59640DA833C0@AM5PR0801MB2035.eurprd08.prod.outlook.com> <de60751c-b4d4-f876-50fc-c45e54e4ec12@ubuntu.com>,<CA+=Sn1n-AHAPiDXuq95CsUOY5w0=Ra-W6cQjoVQXep4ZycYdqg@mail.gmail.com>
Hi,
> However, this is an undocumented change in the current NEWS, and seeing
>> literally hundreds of package failures, I doubt that's the right thing to do, at
>> least without any deprecation warning first. Could that be handled, deprecating
>> in GCC 10 first, and the changing that for GCC 11?
This change was first proposed for GCC8, and rejected because of failures in the
distros. Two years have passed, and there are still failures... Would this change if
we postpone it even longer? My feeling is that nobody is going to actively fix their
code if the default isn't changed first.
> It is hard to get a warning for things like this.
Could the linker warn whenever it merges common symbols or would that give
many false positives?
Wilco