aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective/4.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-selective/4.cc')
-rw-r--r--ld/testsuite/ld-selective/4.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/ld/testsuite/ld-selective/4.cc b/ld/testsuite/ld-selective/4.cc
index 02864a7..f4fc21c 100644
--- a/ld/testsuite/ld-selective/4.cc
+++ b/ld/testsuite/ld-selective/4.cc
@@ -15,6 +15,7 @@ struct B : public A
void B::foo() { } // lose
void _start() __asm__("_start"); // keep
+void start() __asm__("start"); // some toolchains use this name.
A a; // keep
B b;
@@ -25,4 +26,9 @@ void _start()
getme()->bar();
}
+void start ()
+{
+ _start ();
+}
+
extern "C" void __main() { }