* [PATCH] recordmcount: x86: assign a meaningful value to rel_type_nop
@ 2015-10-28 8:23 Li Bin
0 siblings, 0 replies; only message in thread
From: Li Bin @ 2015-10-28 8:23 UTC (permalink / raw)
To: linux-kernel
Cc: rostedt, guohanjun, dingtianhong, huawei.libin, zhouchengming1
Although, the default value of rel_type_nop is zero, and the value
of R_386_NONE/R_X86_64_NONE is zero too, but it should be assigned
a meaningful value explicitly, otherwise it looks confused.
Assign R_386_NONE to rel_type_nop for 386, assign R_X86_64_NONE
to rel_type_nop for x86_64.
Signed-off-by: Li Bin <huawei.libin@huawei.com>
---
scripts/recordmcount.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
diff --git a/scripts/recordmcount.c b/scripts/recordmcount.c
index 3d1984e..8cc020b 100644
--- a/scripts/recordmcount.c
+++ b/scripts/recordmcount.c
@@ -345,6 +345,7 @@ do_file(char const *const fname)
break;
case EM_386:
reltype = R_386_32;
+ rel_type_nop = R_386_NONE;
make_nop = make_nop_x86;
ideal_nop = ideal_nop5_x86_32;
mcount_adjust_32 = -1;
@@ -371,6 +372,7 @@ do_file(char const *const fname)
make_nop = make_nop_x86;
ideal_nop = ideal_nop5_x86_64;
reltype = R_X86_64_64;
+ rel_type_nop = R_X86_64_NONE;
mcount_adjust_64 = -1;
break;
} /* end switch */
--
1.7.1
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2015-10-28 8:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-10-28 8:23 [PATCH] recordmcount: x86: assign a meaningful value to rel_type_nop Li Bin
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®