Files
linux/scripts
Aditya Srivastava de93245c00 checkpatch: add warning for avoiding .L prefix symbols in assembly files
objtool requires that all code must be contained in an ELF symbol.  Symbol
names that have a '.L' prefix do not emit symbol table entries, as they
have special meaning for the assembler.

'.L' prefixed symbols can be used within a code region, but should be
avoided for denoting a range of code via 'SYM_*_START/END' annotations.

Add a new check to emit a warning on finding the usage of '.L' symbols for
'.S' files, if it denotes range of code via SYM_*_START/END annotation
pair.

Link: https://lkml.kernel.org/r/[email protected]
Link: https://lore.kernel.org/lkml/[email protected]
Signed-off-by: Aditya Srivastava <[email protected]>
Suggested-by: Mark Brown <[email protected]>
Acked-by: Joe Perches <[email protected]>
Acked-by: Nick Desaulniers <[email protected]>
Cc: Aditya Srivastava <[email protected]>
Cc: Lukas Bulwahn <[email protected]>
Cc: Dwaipayan Ray <[email protected]>
Cc: Josh Poimboeuf <[email protected]>
Signed-off-by: Andrew Morton <[email protected]>
Signed-off-by: Linus Torvalds <[email protected]>
2021-02-26 09:41:04 -08:00
..
2021-02-12 19:23:39 -06:00
2020-12-08 23:30:04 +09:00
…
…
…
2020-12-08 23:30:04 +09:00
2021-02-01 10:37:19 +09:00
2021-02-22 08:22:04 +09:00
…
2021-02-23 12:46:57 -08:00
…
…
2020-12-08 23:30:04 +09:00
2021-01-27 14:50:12 +01:00
2021-02-01 17:17:14 -07:00
2020-12-08 23:30:04 +09:00
…