diff mbox series

[2/8] scripts/mksysmap: remove comments described in nm(1)

Message ID 20230308115243.82592-2-masahiroy@kernel.org (mailing list archive)
State New, archived
Headers show
Series [1/8] scripts/kallsyms: remove redundant code for omitting U and N | expand

Commit Message

Masahiro Yamada March 8, 2023, 11:52 a.m. UTC
I do not think we need to repeat what is written in 'man nm'.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 scripts/mksysmap | 19 -------------------
 1 file changed, 19 deletions(-)

Comments

Nick Desaulniers April 7, 2023, 6:46 p.m. UTC | #1
On Wed, Mar 8, 2023 at 3:52 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
>
> I do not think we need to repeat what is written in 'man nm'.

I agree, but the paragraphs following the one you removed refer to a,
U, N, w, T, t, and W now with no context that those are the nm
formats.

I'm ok with this patch, but please consider adding a sentence along
the lines of:

The following refers to the symbol type as per nm(1).

>
> Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
> ---
>
>  scripts/mksysmap | 19 -------------------
>  1 file changed, 19 deletions(-)
>
> diff --git a/scripts/mksysmap b/scripts/mksysmap
> index 16a08b8ef2f8..697fc6653953 100755
> --- a/scripts/mksysmap
> +++ b/scripts/mksysmap
> @@ -10,25 +10,6 @@
>  #####
>  # Generate System.map (actual filename passed as second argument)
>
> -# $NM produces the following output:
> -# f0081e80 T alloc_vfsmnt
> -
> -#   The second row specify the type of the symbol:
> -#   A = Absolute
> -#   B = Uninitialised data (.bss)
> -#   C = Common symbol
> -#   D = Initialised data
> -#   G = Initialised data for small objects
> -#   I = Indirect reference to another symbol
> -#   N = Debugging symbol
> -#   R = Read only
> -#   S = Uninitialised data for small objects
> -#   T = Text code symbol
> -#   U = Undefined symbol
> -#   V = Weak symbol
> -#   W = Weak symbol
> -#   Corresponding small letters are local symbols
> -
>  # For System.map filter away:
>  #   a - local absolute symbols
>  #   U - undefined global symbols
> --
> 2.34.1
>
Masahiro Yamada April 10, 2023, 9:38 a.m. UTC | #2
On Sat, Apr 8, 2023 at 3:46 AM Nick Desaulniers <ndesaulniers@google.com> wrote:
>
> On Wed, Mar 8, 2023 at 3:52 AM Masahiro Yamada <masahiroy@kernel.org> wrote:
> >
> > I do not think we need to repeat what is written in 'man nm'.
>
> I agree, but the paragraphs following the one you removed refer to a,
> U, N, w, T, t, and W now with no context that those are the nm
> formats.
>
> I'm ok with this patch, but please consider adding a sentence along
> the lines of:
>
> The following refers to the symbol type as per nm(1).


OK, I will fold this comment locally.

Thanks.




--
Best Regards
Masahiro Yamada
diff mbox series

Patch

diff --git a/scripts/mksysmap b/scripts/mksysmap
index 16a08b8ef2f8..697fc6653953 100755
--- a/scripts/mksysmap
+++ b/scripts/mksysmap
@@ -10,25 +10,6 @@ 
 #####
 # Generate System.map (actual filename passed as second argument)
 
-# $NM produces the following output:
-# f0081e80 T alloc_vfsmnt
-
-#   The second row specify the type of the symbol:
-#   A = Absolute
-#   B = Uninitialised data (.bss)
-#   C = Common symbol
-#   D = Initialised data
-#   G = Initialised data for small objects
-#   I = Indirect reference to another symbol
-#   N = Debugging symbol
-#   R = Read only
-#   S = Uninitialised data for small objects
-#   T = Text code symbol
-#   U = Undefined symbol
-#   V = Weak symbol
-#   W = Weak symbol
-#   Corresponding small letters are local symbols
-
 # For System.map filter away:
 #   a - local absolute symbols
 #   U - undefined global symbols