wok-current view mingw32-binutils/stuff/fix_right_hand.patch @ rev 25792
Fix openbox menu, label keymap on lxpanel and add miss it translation for tazpkg
| author | Stanislas Leduc <shann@slitaz.org> |
|---|---|
| date | Tue Oct 07 05:55:24 2025 +0000 (2 weeks ago) |
| parents | |
| children |
line source
1 diff -rup binutils-2.23.52.0.1.orig/bfd/bfd.c binutils-2.23.52.0.1/bfd/bfd.c
2 --- binutils-2.23.52.0.1.orig/bfd/bfd.c 2015-06-09 09:19:37.362301149 +0100
3 +++ binutils-2.23.52.0.1/bfd/bfd.c 2015-06-09 09:23:20.725373142 +0100
4 @@ -324,6 +324,14 @@ CODE_FRAGMENT
5 . unsigned int lto_type : 2;
6 .};
7 .
8 +.{* See note beside bfd_set_section_userdata. *}
9 +.static inline bfd_boolean
10 +.bfd_set_cacheable (bfd * abfd, bfd_boolean val)
11 +.{
12 +. abfd->cacheable = val;
13 +. return TRUE;
14 +.}
15 +.
16 */
18 #include "sysdep.h"
19 diff -rup binutils-2.23.52.0.1.orig/bfd/bfd-in2.h binutils-2.23.52.0.1/bfd/bfd-in2.h
20 --- binutils-2.23.52.0.1.orig/bfd/bfd-in2.h 2015-06-09 09:19:37.424301457 +0100
21 +++ binutils-2.23.52.0.1/bfd/bfd-in2.h 2015-06-09 09:25:47.810081941 +0100
22 @@ -296,9 +296,6 @@ typedef struct bfd_section *sec_ptr;
24 #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
26 -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
27 -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
28 -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
29 /* Find the address one past the end of SEC. */
30 #define bfd_get_section_limit(bfd, sec) \
31 (((bfd)->direction != write_direction && (sec)->rawsize != 0 \
32 @@ -521,8 +518,6 @@ extern void warn_deprecated (const char
34 #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
36 -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
37 -
38 extern bfd_boolean bfd_cache_close
39 (bfd *abfd);
40 /* NB: This declaration should match the autogenerated one in libbfd.h. */
41 @@ -1574,6 +1569,32 @@ struct relax_table {
42 int size;
43 };
45 +/* Note: the following are provided as inline functions rather than macros
46 + because not all callers use the return value. A macro implementation
47 + would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some
48 + compilers will complain about comma expressions that have no effect. */
49 +static inline bfd_boolean
50 +bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)
51 +{
52 + ptr->userdata = val;
53 + return TRUE;
54 +}
55 +
56 +static inline bfd_boolean
57 +bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)
58 +{
59 + ptr->vma = ptr->lma = val;
60 + ptr->user_set_vma = TRUE;
61 + return TRUE;
62 +}
63 +
64 +static inline bfd_boolean
65 +bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)
66 +{
67 + ptr->alignment_power = val;
68 + return TRUE;
69 +}
70 +
71 /* These sections are global, and are managed by BFD. The application
72 and target back end are not permitted to change the values in
73 these sections. */
74 @@ -6136,6 +6157,14 @@ struct bfd
75 unsigned int lto_type : 2;
76 };
78 +/* See note beside bfd_set_section_userdata. */
79 +static inline bfd_boolean
80 +bfd_set_cacheable (bfd * abfd, bfd_boolean val)
81 +{
82 + abfd->cacheable = val;
83 + return TRUE;
84 +}
85 +
86 typedef enum bfd_error
87 {
88 bfd_error_no_error = 0,
89 diff -rup binutils-2.23.52.0.1.orig/bfd/bfd-in.h binutils-2.23.52.0.1/bfd/bfd-in.h
90 --- binutils-2.23.52.0.1.orig/bfd/bfd-in.h 2015-06-09 09:19:37.420301437 +0100
91 +++ binutils-2.23.52.0.1/bfd/bfd-in.h 2015-06-09 09:25:00.357853270 +0100
92 @@ -289,9 +289,6 @@ typedef struct bfd_section *sec_ptr;
94 #define bfd_is_com_section(ptr) (((ptr)->flags & SEC_IS_COMMON) != 0)
96 -#define bfd_set_section_vma(bfd, ptr, val) (((ptr)->vma = (ptr)->lma = (val)), ((ptr)->user_set_vma = TRUE), TRUE)
97 -#define bfd_set_section_alignment(bfd, ptr, val) (((ptr)->alignment_power = (val)),TRUE)
98 -#define bfd_set_section_userdata(bfd, ptr, val) (((ptr)->userdata = (val)),TRUE)
99 /* Find the address one past the end of SEC. */
100 #define bfd_get_section_limit(bfd, sec) \
101 (((bfd)->direction != write_direction && (sec)->rawsize != 0 \
102 @@ -514,8 +511,6 @@ extern void warn_deprecated (const char
104 #define bfd_get_symbol_leading_char(abfd) ((abfd)->xvec->symbol_leading_char)
106 -#define bfd_set_cacheable(abfd,bool) (((abfd)->cacheable = bool), TRUE)
107 -
108 extern bfd_boolean bfd_cache_close
109 (bfd *abfd);
110 /* NB: This declaration should match the autogenerated one in libbfd.h. */
111 diff -rup binutils-2.23.52.0.1.orig/bfd/section.c binutils-2.23.52.0.1/bfd/section.c
112 --- binutils-2.23.52.0.1.orig/bfd/section.c 2015-06-09 09:19:37.402301347 +0100
113 +++ binutils-2.23.52.0.1/bfd/section.c 2015-06-09 09:24:04.245582865 +0100
114 @@ -542,6 +542,32 @@ CODE_FRAGMENT
115 . int size;
116 .};
117 .
118 +.{* Note: the following are provided as inline functions rather than macros
119 +. because not all callers use the return value. A macro implementation
120 +. would use a comma expression, eg: "((ptr)->foo = val, TRUE)" and some
121 +. compilers will complain about comma expressions that have no effect. *}
122 +.static inline bfd_boolean
123 +.bfd_set_section_userdata (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, void * val)
124 +.{
125 +. ptr->userdata = val;
126 +. return TRUE;
127 +.}
128 +.
129 +.static inline bfd_boolean
130 +.bfd_set_section_vma (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, bfd_vma val)
131 +.{
132 +. ptr->vma = ptr->lma = val;
133 +. ptr->user_set_vma = TRUE;
134 +. return TRUE;
135 +.}
136 +.
137 +.static inline bfd_boolean
138 +.bfd_set_section_alignment (bfd * abfd ATTRIBUTE_UNUSED, asection * ptr, unsigned int val)
139 +.{
140 +. ptr->alignment_power = val;
141 +. return TRUE;
142 +.}
143 +.
144 .{* These sections are global, and are managed by BFD. The application
145 . and target back end are not permitted to change the values in
146 . these sections. *}
147 diff -rup binutils-2.23.52.0.1.orig/gas/config/tc-i386.c binutils-2.23.52.0.1/gas/config/tc-i386.c
148 --- binutils-2.23.52.0.1.orig/gas/config/tc-i386.c 2015-06-09 09:19:37.490301785 +0100
149 +++ binutils-2.23.52.0.1/gas/config/tc-i386.c 2015-06-09 09:34:14.608932920 +0100
150 @@ -6188,7 +6188,7 @@ build_modrm_byte (void)
151 op.bitfield.regmem = 0;
152 if ((dest + 1) >= i.operands
153 || (op.bitfield.reg32 != 1
154 - && !op.bitfield.reg64 != 1
155 + && op.bitfield.reg64
156 && !operand_type_equal (&op, ®xmm)
157 && !operand_type_equal (&op, ®ymm)
158 && !operand_type_equal (&op, ®zmm)