43 lines
1.7 KiB
Diff
43 lines
1.7 KiB
Diff
commit b869788ff034572e7059192ec1378cb567817827
|
|
Author: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
Date: Fri Sep 6 15:36:15 2019 +0200
|
|
|
|
opa-fm: force code symbols to be loaded
|
|
|
|
When compiling with LTO, function like GetCodeInternalVersion might be dropped
|
|
from the binary causing patch_version and the whole build to fail.
|
|
|
|
Signed-off-by: Nicolas Morey-Chaisemartin <nmoreychaisemartin@suse.com>
|
|
|
|
diff --git CodeVersion/code_version.c CodeVersion/code_version.c
|
|
index c8b77b41e86b..5cb90edd484a 100644
|
|
--- CodeVersion/code_version.c
|
|
+++ CodeVersion/code_version.c
|
|
@@ -53,7 +53,7 @@ OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
// or the internal whatversion tool
|
|
//
|
|
#define ICS_BUILD_VERSION "THIS_IS_THE_ICS_VERSION_NUMBER:@(#)000.000.000.000B000"
|
|
-const char* GetCodeVersion(void)
|
|
+const char* __attribute__((used)) GetCodeVersion(void)
|
|
{
|
|
static const char* BuildVersion=ICS_BUILD_VERSION;
|
|
static char* version;
|
|
@@ -83,7 +83,7 @@ const char* GetCodeVersion(void)
|
|
// or the internal whatversion tool
|
|
//
|
|
#define ICS_BUILD_INTERNAL_VERSION "THIS_IS_THE_ICS_INTERNAL_VERSION_NUMBER:@(#)000.000.000.000B000I0000"
|
|
-const char* GetCodeInternalVersion(void)
|
|
+const char* __attribute__((used)) GetCodeInternalVersion(void)
|
|
{
|
|
static const char* BuildVersion=ICS_BUILD_INTERNAL_VERSION;
|
|
static char* version;
|
|
@@ -112,7 +112,7 @@ const char* GetCodeInternalVersion(void)
|
|
// or the internal whatversion tool
|
|
//
|
|
#define ICS_BUILD_BRAND "THIS_IS_THE_ICS_BRAND:Intel\000 "
|
|
-const char* GetCodeBrand(void)
|
|
+const char* __attribute__((used)) GetCodeBrand(void)
|
|
{
|
|
static const char* BuildBrand=ICS_BUILD_BRAND;
|
|
static char* brand;
|