public inbox for libc-hacker@sourceware.org
 help / color / mirror / Atom feed
* [PATCH] SH: Tidy dl-machine.h
@ 2004-07-14 13:02 Kaz Kojima
  0 siblings, 0 replies; only message in thread
From: Kaz Kojima @ 2004-07-14 13:02 UTC (permalink / raw)
  To: libc-hacker

Hi,

The attached patch is mainly to remove _dl_starting_up from the
dl-machine.h.  It also removes an unused variable.

Regards,
	kaz
--
2004-07-14  Kaz  Kojima  <kkojima@rr.iij4u.or.jp>

	* sysdeps/sh/dl-machine.h: Don't reset _dl_starting_up here.
	(elf_machine_rela_relative): Remove unused valiable.

diff -u3prN ORIG/libc/sysdeps/sh/dl-machine.h LOCAL/libc/sysdeps/sh/dl-machine.h
--- ORIG/libc/sysdeps/sh/dl-machine.h	Sat May 22 09:45:57 2004
+++ LOCAL/libc/sysdeps/sh/dl-machine.h	Wed Jul 14 12:25:09 2004
@@ -364,12 +364,7 @@ _dl_start_user:\n\
 	add r1,r0\n\
 	jsr @r0\n\
 	 nop\n\
-1:	! Clear the startup flag.\n\
-	mov.l .L_dl_starting_up,r0\n\
-	mov.l @(r0,r12),r0\n\
-	mov #0,r2\n\
-	mov.l r2,@r0\n\
-	! Pass our finalizer function to the user in r4, as per ELF ABI.\n\
+1:	! Pass our finalizer function to the user in r4, as per ELF ABI.\n\
 	mov.l .L_dl_fini,r0\n\
 	mov.l @(r0,r12),r4\n\
 	! Jump to the user's entry point.\n\
@@ -384,8 +379,6 @@ _dl_start_user:\n\
 	.long _dl_init_internal@PLT\n\
 .L_dl_loaded:\n\
 	.long _rtld_local@GOT\n\
-.L_dl_starting_up:\n\
-	.long _dl_starting_up@GOT\n\
 .L_dl_fini:\n\
 	.long _dl_fini@GOT\n\
 .previous\n\
@@ -629,7 +622,6 @@ static inline void
 elf_machine_rela_relative (Elf32_Addr l_addr, const Elf32_Rela *reloc,
 			   void *const reloc_addr_arg)
 {
-  Elf32_Addr *const reloc_addr = reloc_addr_arg;
   Elf32_Addr value;
 
   if (reloc->r_addend)

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2004-07-14 13:02 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-07-14 13:02 [PATCH] SH: Tidy dl-machine.h Kaz Kojima

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