diff options
author | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-19 20:27:52 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@cvs.openbsd.org> | 2015-09-19 20:27:52 +0000 |
commit | eff5e0b729ea7b99a77b9551547ea62eef9c2f0c (patch) | |
tree | b42c7c18fb3c10683c440ac2a7783fc873f50231 /lib/csu/powerpc | |
parent | 8399bf044329273ba9c1283800a8d5b059571625 (diff) |
We don't need to calculate the load offset. This also means we don't need
to calculate the GOT address anymore.
ok guenther@ (who spotted the latter bit)
Diffstat (limited to 'lib/csu/powerpc')
-rw-r--r-- | lib/csu/powerpc/md_init.h | 9 |
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/csu/powerpc/md_init.h b/lib/csu/powerpc/md_init.h index 81d6ae4f783..4574f58c89f 100644 --- a/lib/csu/powerpc/md_init.h +++ b/lib/csu/powerpc/md_init.h @@ -1,4 +1,4 @@ -/* $OpenBSD: md_init.h,v 1.6 2015/09/09 09:46:53 kettenis Exp $ */ +/* $OpenBSD: md_init.h,v 1.7 2015/09/19 20:27:51 kettenis Exp $ */ /*- * Copyright (c) 2001 Ross Harvey @@ -103,16 +103,9 @@ __asm( \ " stw %r27, 4(%r19) # save in normal location \n" \ " \n" \ " bcl 20, 31, 1f \n" \ -"1: mflr %r28 \n" \ -" addis %r28, %r28, _GLOBAL_OFFSET_TABLE_-1b@ha \n" \ -" addi %r28, %r28, _GLOBAL_OFFSET_TABLE_-1b@l \n" \ -" \n" \ -" bcl 20, 31, 1f \n" \ "1: mflr %r18 \n" \ " addis %r18, %r18, _DYNAMIC-1b@ha \n" \ " addi %r18, %r18, _DYNAMIC-1b@l \n" \ -" lwz %r4, 4(%r28) # load addr of _DYNAMIC according to got. \n" \ -" sub %r4, %r18, %r4 # determine load offset \n" \ " \n" \ " subi %r3, %r21, 4 # Get stack pointer (arg0 for _dl_boot). \n" \ " addi %r4, %r1, 8 # dl_data \n" \ |