summary refs log tree commit diff
path: root/sysdeps/m68k/dl-machine.h
diff options
context:
space:
mode:
authorAndreas Schwab <schwab@suse.de>1998-03-04 02:37:43 +0000
committerAndreas Schwab <schwab@suse.de>1998-03-04 02:37:43 +0000
commitafdecda04a0e4055e805408799bc8b56572a48f0 (patch)
tree11125782bb905713b96befd68bc89e832250cc4b /sysdeps/m68k/dl-machine.h
parent8fb3e0079a0512e8525f6c5897c51563d57801e7 (diff)
downloadglibc-afdecda04a0e4055e805408799bc8b56572a48f0.tar.gz
glibc-afdecda04a0e4055e805408799bc8b56572a48f0.tar.xz
glibc-afdecda04a0e4055e805408799bc8b56572a48f0.zip
* sysdeps/m68k/dl-machine.h: (elf_machine_load_address): Use word
offsets into the GOT. 
(RTLD_START): Likewise.
Wed Mar  4 11:32:01 1998  Andreas Schwab  <schwab@issan.informatik.uni-dortmund.de>

	* sysdeps/m68k/dl-machine.h: (elf_machine_load_address): Use word
	offsets into the GOT.
	(RTLD_START): Likewise.
Diffstat (limited to 'sysdeps/m68k/dl-machine.h')
-rw-r--r--sysdeps/m68k/dl-machine.h10
1 files changed, 5 insertions, 5 deletions
diff --git a/sysdeps/m68k/dl-machine.h b/sysdeps/m68k/dl-machine.h
index 1d2045dd87..fb32ce215a 100644
--- a/sysdeps/m68k/dl-machine.h
+++ b/sysdeps/m68k/dl-machine.h
@@ -57,7 +57,7 @@ elf_machine_load_address (void)
 {
   Elf32_Addr addr;
   asm ("lea _dl_start(%%pc), %0\n\t"
-       "sub.l _dl_start@GOTPC(%%pc), %0"
+       "sub.l _dl_start@GOT.w(%%a5), %0"
        : "=a" (addr));
   return addr;
 }
@@ -163,7 +163,7 @@ _dl_start_user:
 	lea _GLOBAL_OFFSET_TABLE_@GOTPC(%pc), %a5
 	| See if we were run as a command with the executable file
 	| name as an extra leading argument.
-	move.l ([_dl_skip_args@GOT, %a5]), %d0
+	move.l ([_dl_skip_args@GOT.w, %a5]), %d0
 	jeq 0f
 	| Pop the original argument count
 	move.l (%sp)+, %d1
@@ -174,7 +174,7 @@ _dl_start_user:
 	| Push back the modified argument count.
 	move.l %d1, -(%sp)
 0:	| Push _dl_default_scope[2] as argument in _dl_init_next call below.
-	move.l ([_dl_default_scope@GOT, %a5], 8), %d2
+	move.l ([_dl_default_scope@GOT.w, %a5], 8), %d2
 0:	move.l %d2, -(%sp)
 	| Call _dl_init_next to return the address of an initializer
 	| function to run.
@@ -195,9 +195,9 @@ _dl_start_user:
 	| Loop to call _dl_init_next for the next initializer.
 	jra 0b
 1:	| Clear the startup flag.
-	clr.l _dl_starting_up@GOT(%a5)
+	clr.l _dl_starting_up@GOT.w(%a5)
 	| Pass our finalizer function to the user in %a1.
-	move.l _dl_fini@GOT(%a5), %a1
+	move.l _dl_fini@GOT.w(%a5), %a1
 	| Initialize %fp with the stack pointer.
 	move.l %sp, %fp
 	| Jump to the user's entry point.