]> git.ipfire.org Git - thirdparty/elfutils.git/commit
lib: avoid potential problems with `-fno-common`
authorSaleem Abdulrasool <abdulras@google.com>
Fri, 27 Aug 2021 15:51:47 +0000 (15:51 +0000)
committerMark Wielaard <mark@klomp.org>
Fri, 27 Aug 2021 16:34:15 +0000 (18:34 +0200)
commit4d6dd0e5ad5c3366cbf701b4fb62b6d91be545f8
tree63147b2b38aba183ba281fe805dcdf74548bd5a7
parent047d09e17edfb220cd6a96129bd19b496d503fc5
lib: avoid potential problems with `-fno-common`

This properly homes the fallback function into a translation unit rather
than trying to define an inline common definition for the fallback path.
The intent of the original approach was to actually simply avoid adding
a new source file that is used for the fallback path.  However, that may
cause trouble with multiple definitions if the symbol does not get vague
linkage (which itself is not particularly great).  This simplifies the
behaviour at the cost of an extra inode.
lib/ChangeLog
lib/Makefile.am
lib/system.h