Re: [PATCH] Improve building with LTO

2021-02-18 Thread Alexander Miller via Elfutils-devel
[Re-sending mail because the list has been omitted by mistake.] On Wed, 17 Feb 2021 21:22:15 +0100 Mark Wielaard wrote: > So you rewrite the asm statements to not use @@@ just @ and @@, that > way they match the symver attribute usage. Smart, that way they are as > similar as possible. Yes, I w

[PATCH v2] Improve building with LTO

2021-02-17 Thread Alexander Miller via Elfutils-devel
From: Alexander Miller Use symver attribute for symbol versioning instead of .symver assembler directive when available. Convert to use double @ syntax for default version in all cases (required when using the attribute). Add the attributes externally_visible, no_reorder if available when using

[PATCH] Improve building with LTO

2021-02-14 Thread Alexander Miller via Elfutils-devel
Here's my attempt to use gcc-10's new symver attribute to avoid global asm statements that cause trouble with LTO. That requires converting from triple @ syntax to double @ syntax. To satisfy those picky linkers, the unversioned name of the affected symbols has to be changed. The NEW_VERSION macros

[PATCH] tests: Quote make variables in TESTS_ENVIRONMENT

2021-02-07 Thread Alexander Miller via Elfutils-devel
Commit eb922a1b8f3a ("tests: use ${CC} instead of 'gcc' in tests") exports ${CC} into the test environment, but doesn't quote the value for the assignment. That doesn't work properly if the value contains whitespace. In a multilib/biarch environment however, it's common to set CC="gcc -m32" or simi