31 lines
975 B
Diff
31 lines
975 B
Diff
From e4b8646631ecd9f5ed767ff2c5e14371141e9194 Mon Sep 17 00:00:00 2001
|
|
From: rfwang07 <wangrufeng5@huawei.com>
|
|
Date: Fri, 9 Aug 2024 14:21:56 +0800
|
|
Subject: [PATCH] bolt-plugin supports optimization for dyn and pie
|
|
|
|
---
|
|
bolt-plugin/bolt-plugin.cc | 6 ++++--
|
|
1 file changed, 4 insertions(+), 2 deletions(-)
|
|
|
|
diff --git a/bolt-plugin/bolt-plugin.cc b/bolt-plugin/bolt-plugin.cc
|
|
index 06cf1911a..ea3d882c9 100644
|
|
--- a/bolt-plugin/bolt-plugin.cc
|
|
+++ b/bolt-plugin/bolt-plugin.cc
|
|
@@ -1102,9 +1102,11 @@ register_callback_function ()
|
|
{
|
|
enum ld_plugin_status status;
|
|
|
|
- if (linker_output_set && linker_output != LDPO_EXEC)
|
|
+ if (linker_output_set && linker_output != LDPO_EXEC
|
|
+ && linker_output != LDPO_DYN && linker_output != LDPO_PIE)
|
|
{
|
|
- MSG_INFO ("This linker[%d] is not for exec, just skip.", linker_output);
|
|
+ MSG_INFO ("This linker[%d] is not for exec/dyn/pie, just skip.",
|
|
+ linker_output);
|
|
return;
|
|
}
|
|
|
|
--
|
|
2.39.3 (Apple Git-146)
|
|
|