94084c
commit 6548a9bdba95b3e1fcdbd85445342467e4b0cd4f
94084c
Author: H.J. Lu <hjl.tools@gmail.com>
94084c
Date:   Fri Sep 24 08:56:42 2021 -0700
94084c
94084c
    Avoid warning: overriding recipe for .../tst-ro-dynamic-mod.so
94084c
    
94084c
    Add tst-ro-dynamic-mod to modules-names-nobuild to avoid
94084c
    
94084c
    ../Makerules:767: warning: ignoring old recipe for target '.../elf/tst-ro-dynamic-mod.so'
94084c
    
94084c
    This updates BZ #28340 fix.
94084c
    
94084c
    (cherry picked from commit 15e6d6785ac2935bb963506b47a37b3d1f728952)
94084c
94084c
diff --git a/elf/Makefile b/elf/Makefile
94084c
index de854b4d1a815bd3..118d579c42c38110 100644
94084c
--- a/elf/Makefile
94084c
+++ b/elf/Makefile
94084c
@@ -399,8 +399,9 @@ endif
94084c
 modules-execstack-yes = tst-execstack-mod
94084c
 extra-test-objs += $(addsuffix .os,$(strip $(modules-names)))
94084c
 
94084c
-# filtmod1.so, tst-big-note-lib.so have special rules.
94084c
-modules-names-nobuild := filtmod1 tst-big-note-lib
94084c
+# filtmod1.so, tst-big-note-lib.so, tst-ro-dynamic-mod.so have special
94084c
+# rules.
94084c
+modules-names-nobuild := filtmod1 tst-big-note-lib tst-ro-dynamic-mod
94084c
 
94084c
 tests += $(tests-static)
94084c