summaryrefslogtreecommitdiff
path: root/gcc/config/ia64/crtbegin.asm
diff options
context:
space:
mode:
authorrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-22 22:57:28 +0000
committerrth <rth@138bc75d-0d04-0410-961f-82ee72b054a4>2001-02-22 22:57:28 +0000
commitfc4b94327bb5a247e0459a9dcc9da4bca20d5a4a (patch)
tree672585031a3b1f4d046b07cf88274ab870906c4f /gcc/config/ia64/crtbegin.asm
parent7c8696b28ec015eaaa569702f6fc9722976dcef3 (diff)
downloadgcc-fc4b94327bb5a247e0459a9dcc9da4bca20d5a4a.tar.gz
* config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to
reach .text instead of gp-relative relocs. * config/ia64/crtend.asm (.init): Likewise. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@39986 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/config/ia64/crtbegin.asm')
-rw-r--r--gcc/config/ia64/crtbegin.asm15
1 files changed, 8 insertions, 7 deletions
diff --git a/gcc/config/ia64/crtbegin.asm b/gcc/config/ia64/crtbegin.asm
index 1b57a99316c..1568337b290 100644
--- a/gcc/config/ia64/crtbegin.asm
+++ b/gcc/config/ia64/crtbegin.asm
@@ -1,4 +1,4 @@
-/* Copyright (C) 2000 Free Software Foundation, Inc.
+/* Copyright (C) 2000, 2001 Free Software Foundation, Inc.
Contributed by Jes Sorensen, <Jes.Sorensen@cern.ch>
The GNU C Library is free software; you can redistribute it and/or
@@ -71,16 +71,16 @@ __dso_handle:
*/
.section .fini,"ax","progbits"
{ .mlx
- movl r2 = @gprel(__do_global_dtors_aux#)
- ;;
+ movl r2 = @pcrel(__do_global_dtors_aux# - 16)
}
{ .mii
- nop.m 0
- add r2 = r2, gp
+ mov r3 = ip
+ ;;
+ add r2 = r2, r3
;;
- mov b6 = r2
}
- { .bbb
+ { .mib
+ mov b6 = r2
br.call.sptk.many b0 = b6
;;
}
@@ -105,6 +105,7 @@ __dso_handle:
}
{ .mfb
st8 [r2] = r16
+ ;;
}
#endif