2020-06-18 20:52:31

by Matt Helsley

[permalink] [raw]
Subject: [RFC][PATCH v5 51/51] objtool: mcount: Remove stale description

The comments at the top no longer reflect how we process the ELF
contents. More helpful comments are inline with the code so we
don't need the top comments either.

Signed-off-by: Matt Helsley <[email protected]>
---
tools/objtool/mcount.c | 13 -------------
1 file changed, 13 deletions(-)

diff --git a/tools/objtool/mcount.c b/tools/objtool/mcount.c
index a74625aed09b..fa99bd2e9195 100644
--- a/tools/objtool/mcount.c
+++ b/tools/objtool/mcount.c
@@ -8,19 +8,6 @@
* Copyright 2010 Steven Rostedt <[email protected]>, Red Hat Inc.
*/

-/*
- * Strategy: alter the .o file in-place.
- *
- * Append a new STRTAB that has the new section names, followed by a new array
- * ElfXX_Shdr[] that has the new section headers, followed by the section
- * contents for __mcount_loc and its relocations. The old shstrtab strings,
- * and the old ElfXX_Shdr[] array, remain as "garbage" (commonly, a couple
- * kilobytes.) Subsequent processing by /bin/ld (or the kernel module loader)
- * will ignore the garbage regions, because they are not designated by the
- * new .e_shoff nor the new ElfXX_Shdr[]. [In order to remove the garbage,
- * then use "ld -r" to create a new file that omits the garbage.]
- */
-
#include <sys/types.h>
#include <sys/mman.h>
#include <sys/stat.h>
--
2.20.1