diff options
Diffstat (limited to 'meta/packages/glibc/glibc-cvs-2.3.5/arm-audit.patch')
-rw-r--r-- | meta/packages/glibc/glibc-cvs-2.3.5/arm-audit.patch | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/meta/packages/glibc/glibc-cvs-2.3.5/arm-audit.patch b/meta/packages/glibc/glibc-cvs-2.3.5/arm-audit.patch new file mode 100644 index 0000000000..2404f755e7 --- /dev/null +++ b/meta/packages/glibc/glibc-cvs-2.3.5/arm-audit.patch | |||
@@ -0,0 +1,58 @@ | |||
1 | 2005-05-09 Daniel Jacobowitz <dan@codesourcery.com> | ||
2 | Mark Mitchell <mark@codesourcery.com> | ||
3 | |||
4 | * sysdeps/generic/ldsodefs.h (struct audit_ifaces): Add ARM entries. | ||
5 | * elf/tst-auditmod1.c: Add ARM definitions. | ||
6 | |||
7 | Index: glibc/sysdeps/generic/ldsodefs.h | ||
8 | =================================================================== | ||
9 | --- glibc.orig/sysdeps/generic/ldsodefs.h 2005-04-05 17:36:52.000000000 -0400 | ||
10 | +++ glibc/sysdeps/generic/ldsodefs.h 2005-05-06 15:54:44.000000000 -0400 | ||
11 | @@ -203,6 +203,8 @@ struct La_sparc32_regs; | ||
12 | struct La_sparc32_retval; | ||
13 | struct La_sparc64_regs; | ||
14 | struct La_sparc64_retval; | ||
15 | +struct La_arm_regs; | ||
16 | +struct La_arm_retval; | ||
17 | |||
18 | struct audit_ifaces | ||
19 | { | ||
20 | @@ -284,6 +286,10 @@ struct audit_ifaces | ||
21 | const struct La_sparc64_regs *, | ||
22 | unsigned int *, const char *name, | ||
23 | long int *framesizep); | ||
24 | + Elf32_Addr (*arm_gnu_pltenter) (Elf32_Sym *, unsigned int, uintptr_t *, | ||
25 | + uintptr_t *, struct La_arm_regs *, | ||
26 | + unsigned int *, const char *name, | ||
27 | + long int *framesizep); | ||
28 | }; | ||
29 | union | ||
30 | { | ||
31 | @@ -352,6 +358,9 @@ struct audit_ifaces | ||
32 | const struct La_sparc32_regs *, | ||
33 | struct La_sparc32_retval *, | ||
34 | const char *); | ||
35 | + unsigned int (*arm_gnu_pltexit) (Elf32_Sym *, unsigned int, uintptr_t *, | ||
36 | + uintptr_t *, const struct La_arm_regs *, | ||
37 | + struct La_arm_retval *, const char *); | ||
38 | }; | ||
39 | unsigned int (*objclose) (uintptr_t *); | ||
40 | |||
41 | Index: glibc/elf/tst-auditmod1.c | ||
42 | =================================================================== | ||
43 | --- glibc.orig/elf/tst-auditmod1.c 2005-04-05 17:36:53.000000000 -0400 | ||
44 | +++ glibc/elf/tst-auditmod1.c 2005-05-06 15:53:28.000000000 -0400 | ||
45 | @@ -192,6 +192,12 @@ la_symbind64 (Elf64_Sym *sym, unsigned i | ||
46 | # define La_regs La_sparc64_regs | ||
47 | # define La_retval La_sparc64_retval | ||
48 | # define int_retval lrv_reg[0] | ||
49 | +#elif __arm__ | ||
50 | +# define pltenter la_arm_gnu_pltenter | ||
51 | +# define pltext la_arm_gnu_pltexit | ||
52 | +# define La_regs La_arm_regs | ||
53 | +# define La_retval La_arm_retval | ||
54 | +# define int_retval lrv_reg[0] | ||
55 | #else | ||
56 | # error "architecture specific code needed" | ||
57 | #endif | ||
58 | |||