public inbox for binutils@sourceware.org
 help / color / mirror / Atom feed
* RFA: Fix selective[456] linker tests for sh-elf (and others?)
@ 2003-04-29 17:55 Joern Rennecke
  2003-04-30  9:53 ` Nick Clifton
  0 siblings, 1 reply; 2+ messages in thread
From: Joern Rennecke @ 2003-04-29 17:55 UTC (permalink / raw)
  To: binutils

[-- Attachment #1: Type: text/plain, Size: 192 bytes --]

sh-elf uses "start" as the start symbol - without
an underscore prepended.

-- 
--------------------------
SuperH (UK) Ltd.
2410 Aztec West / Almondsbury / BRISTOL / BS32 4QX
T:+44 1454 465658

[-- Attachment #2: selective-fix --]
[-- Type: text/plain, Size: 2458 bytes --]

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.

Index: ld-selective/3.cc
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/3.cc,v
retrieving revision 1.2
diff -p -r1.2 3.cc
*** ld-selective/3.cc	12 Apr 2000 12:55:06 -0000	1.2
--- ld-selective/3.cc	29 Apr 2003 17:13:56 -0000
*************** struct B : public A
*** 14,20 ****
  
  void B::foo() { }			// keep
  
! void _start() __asm__("_start");	// keep
  
  A a;					// keep
  B b;
--- 14,21 ----
  
  void B::foo() { }			// keep
  
! void _start() __asm__("_start"); // keep
! void start() __asm__("start"); // some toolchains use this name.
  
  A a;					// keep
  B b;
*************** void _start()
*** 30,35 ****
--- 31,41 ----
    b.foo();
  #endif
  #endif
+ }
+ 
+ void start ()
+ {
+   _start ();
  }
  
  // In addition, keep A's virtual table.
Index: ld-selective/4.cc
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/4.cc,v
retrieving revision 1.2
diff -p -r1.2 4.cc
*** ld-selective/4.cc	28 Sep 2000 22:57:26 -0000	1.2
--- ld-selective/4.cc	29 Apr 2003 17:13:56 -0000
*************** struct B : public A
*** 15,20 ****
--- 15,21 ----
  void B::foo() { }			// lose
  
  void _start() __asm__("_start");	// keep
+ void start() __asm__("start"); // some toolchains use this name.
  
  A a;					// keep
  B b;
*************** A *getme() { return &a; }		// keep
*** 23,28 ****
--- 24,34 ----
  void _start()
  {
    getme()->bar();
+ }
+ 
+ void start ()
+ {
+   _start ();
  }
  
  extern "C" void __main() { }
Index: ld-selective/5.cc
===================================================================
RCS file: /cvs/src/src/ld/testsuite/ld-selective/5.cc,v
retrieving revision 1.3
diff -p -r1.3 5.cc
*** ld-selective/5.cc	28 Sep 2000 22:57:26 -0000	1.3
--- ld-selective/5.cc	29 Apr 2003 17:13:56 -0000
*************** struct B : public A
*** 15,20 ****
--- 15,21 ----
  void B::foo() { }			// lose
  
  void _start() __asm__("_start");	// keep
+ void start() __asm__("start"); // some toolchains use this name.
  
  A a;					// keep
  B b;
*************** B *dropme2() { return &b; }		// lose
*** 27,32 ****
--- 28,38 ----
  void _start()
  {
    getme()->bar();
+ }
+ 
+ void start ()
+ {
+   _start ();
  }
  
  extern "C" void __main() { }

^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: RFA: Fix selective[456] linker tests for sh-elf (and others?)
  2003-04-29 17:55 RFA: Fix selective[456] linker tests for sh-elf (and others?) Joern Rennecke
@ 2003-04-30  9:53 ` Nick Clifton
  0 siblings, 0 replies; 2+ messages in thread
From: Nick Clifton @ 2003-04-30  9:53 UTC (permalink / raw)
  To: Joern Rennecke; +Cc: binutils

Hi Joern,

> 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.

Approved - please apply (branch & mainline).

Cheers
        Nick

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2003-04-30  9:53 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-04-29 17:55 RFA: Fix selective[456] linker tests for sh-elf (and others?) Joern Rennecke
2003-04-30  9:53 ` Nick Clifton

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).