mirror of
https://sourceware.org/git/glibc.git
synced 2025-12-12 14:21:30 +03:00
Fri Jun 28 16:53:01 1996 David Mosberger-Tang <davidm@azstarnet.com>
* sysdeps/unix/alpha/sysdep.h: Undo PIC-optimization of syscall error handling. It's safer that way.
This commit is contained in:
@@ -99,22 +99,12 @@ name/**/: \
|
|||||||
|
|
||||||
#undef PSEUDO_END
|
#undef PSEUDO_END
|
||||||
|
|
||||||
#ifdef PIC
|
#define PSEUDO_END(sym) \
|
||||||
/* When building a shared library, we can use a branch since the text
|
|
||||||
section of the library is much smaller than 4MB. If we ever break
|
|
||||||
this assumption, the linker will tell us. */
|
|
||||||
# define PSEUDO_END(sym) \
|
|
||||||
1996: \
|
|
||||||
br zero, __syscall_error; \
|
|
||||||
END(sym)
|
|
||||||
#else
|
|
||||||
# define PSEUDO_END(sym) \
|
|
||||||
1996: \
|
1996: \
|
||||||
br gp, 2f; \
|
br gp, 2f; \
|
||||||
2: ldgp gp, 0(gp); \
|
2: ldgp gp, 0(gp); \
|
||||||
jmp zero, __syscall_error; \
|
jmp zero, __syscall_error; \
|
||||||
END(sym)
|
END(sym)
|
||||||
#endif
|
|
||||||
|
|
||||||
#define r0 v0
|
#define r0 v0
|
||||||
#define r1 a4
|
#define r1 a4
|
||||||
|
|||||||
Reference in New Issue
Block a user