Well, just __stop__foo but that should be good enough.
	* testsuite/ld-gc/stop.d,
	* testsuite/ld-gc/stop.s: New test.
	* testsuite/ld-gc/gc.exp: Run it.
+2018-01-30  Alan Modra  <amodra@gmail.com>
+
+       * testsuite/ld-gc/stop.d,
+       * testsuite/ld-gc/stop.s: New test.
+       * testsuite/ld-gc/gc.exp: Run it.
+
 2018-01-30  Maciej W. Rozycki  <macro@mips.com>
 
        PR ld/22649
 
 run_dump_test "noent"
 run_dump_test "abi-note"
 run_dump_test "start"
+run_dump_test "stop"
 run_dump_test "pr19167"
 if { [is_elf_format] } then {
     run_dump_test "all-debug-sections"
 
--- /dev/null
+#name: --gc-sections removing __stop_
+#ld: --gc-sections -e _start
+#nm: -n
+#target: *-*-linux* *-*-gnu*
+#notarget: *-*-*aout *-*-*oldld frv-*-linux* metag-*-linux*
+
+#failif
+#...
+[0-9a-f]+ D +__stop__foo
+#...
 
--- /dev/null
+       .text
+       .globl _start
+_start:
+       .dc.a   0
+
+       .section        _foo,"aw",%progbits
+foo:
+       .long   1