Skip to content

Commit 1394774

Browse files
committed
scripts: is_rust_module: add comment and link about .comment
Signed-off-by: Miguel Ojeda <ojeda@kernel.org>
1 parent 2dd5caf commit 1394774

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

scripts/is_rust_module.sh

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,4 +10,7 @@ set -e
1010
# Using the `16_` prefix ensures other symbols with the same substring
1111
# are not picked up (even if it would be unlikely). The last part is
1212
# used just in case LLVM decides to use the `.` suffix.
13+
#
14+
# In the future, checking for the `.comment` section may be another
15+
# option, see https://github.com/rust-lang/rust/pull/97550.
1316
${NM} "$*" | grep -qE '^[0-9a-fA-F]+ r _R[^[:space:]]+16___IS_RUST_MODULE[^[:space:]]*$'

0 commit comments

Comments
 (0)