* ld-selective/3.cc (start): New function.
* ld-selective/4.cc: Likewise. * ld-selective/5.cc: Likewise.
This commit is contained in:
parent
03d14457a6
commit
5ad8914f65
@ -1,3 +1,9 @@
|
||||
2003-04-29 J"orn Rennecke <joern.rennecke@superh.com>
|
||||
|
||||
* ld-selective/3.cc (start): New function.
|
||||
* ld-selective/4.cc: Likewise.
|
||||
* ld-selective/5.cc: Likewise.
|
||||
|
||||
2003-04-28 H.J. Lu <hjl@gnu.org>
|
||||
|
||||
* ld-elfvers/vers.exp (picflag): Set PIC flag for compiler.
|
||||
|
@ -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
|
||||
|
@ -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() { }
|
||||
|
@ -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;
|
||||
@ -29,4 +30,9 @@ void _start()
|
||||
getme()->bar();
|
||||
}
|
||||
|
||||
void start ()
|
||||
{
|
||||
_start ();
|
||||
}
|
||||
|
||||
extern "C" void __main() { }
|
||||
|
Loading…
Reference in New Issue
Block a user