aboutsummaryrefslogtreecommitdiff
path: root/ld/testsuite/ld-selective/3.cc
diff options
context:
space:
mode:
Diffstat (limited to 'ld/testsuite/ld-selective/3.cc')
-rw-r--r--ld/testsuite/ld-selective/3.cc8
1 files changed, 7 insertions, 1 deletions
diff --git a/ld/testsuite/ld-selective/3.cc b/ld/testsuite/ld-selective/3.cc
index 79d5e96..c40bf35 100644
--- a/ld/testsuite/ld-selective/3.cc
+++ b/ld/testsuite/ld-selective/3.cc
@@ -14,7 +14,8 @@ struct B : public A
void B::foo() { } // keep
-void _start() __asm__("_start"); // keep
+void _start() __asm__("_start"); // keep
+void start() __asm__("start"); // some toolchains use this name.
A a; // keep
B b;
@@ -32,6 +33,11 @@ void _start()
#endif
}
+void start ()
+{
+ _start ();
+}
+
// In addition, keep A's virtual table.
// We'll wind up keeping `b' and thus B's virtual table because