+2001-02-22 Richard Henderson <rth@redhat.com>
+
+ * config/ia64/crtbegin.asm (.fini): Use pc-relative relocs to
+ reach .text instead of gp-relative relocs.
+ * config/ia64/crtend.asm (.init): Likewise.
+
2001-02-22 Andreas Jaeger <aj@suse.de>
* extend.texi (C++ Attributes): Fix typo.
-/* 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
*/
.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
;;
}
}
{ .mfb
st8 [r2] = r16
+ ;;
}
#endif
-/* 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
*/
.section .init,"ax","progbits"
{ .mlx
- movl r2 = @gprel(__do_global_ctors_aux#)
- ;;
+ movl r2 = @pcrel(__do_global_ctors_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
;;
}