1 |
vapier 11/11/21 19:57:37 |
2 |
|
3 |
Added: 03_all_binutils-2.15.92.0.2-ppc64-pie.patch |
4 |
08_all_binutils-RPATH_ENVVAR-smack.patch |
5 |
12_all_sh-targets.patch 20_all_ld-sysroot.patch |
6 |
30_all_binutils-2.22-flexible-tests.patch |
7 |
63_all_binutils-2.22-pt-pax-flags-20111121.patch |
8 |
65_all_binutils-2.20-amd64-32bit-path.patch |
9 |
66_all_binutils-2.22-warn-textrel.patch |
10 |
75_all_binutils-default-test-flags.patch |
11 |
76_all_only-use-new-ld-dtags.patch.disabled |
12 |
76_all_use-new-ld-dtags.patch |
13 |
77_all_generate-gnu-hash.patch |
14 |
78_all_use-relro.patch 91_all_libiberty-pic.patch |
15 |
README.history |
16 |
Log: |
17 |
initial 2.22 patchset based on last 2.21.1/2.21.53.0.2 patchsets |
18 |
|
19 |
Revision Changes Path |
20 |
1.1 src/patchsets/binutils/2.22/03_all_binutils-2.15.92.0.2-ppc64-pie.patch |
21 |
|
22 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/03_all_binutils-2.15.92.0.2-ppc64-pie.patch?rev=1.1&view=markup |
23 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/03_all_binutils-2.15.92.0.2-ppc64-pie.patch?rev=1.1&content-type=text/plain |
24 |
|
25 |
Index: 03_all_binutils-2.15.92.0.2-ppc64-pie.patch |
26 |
=================================================================== |
27 |
--- bfd/elf64-ppc.c.jj 2004-09-27 16:46:06.000000000 -0400 |
28 |
+++ bfd/elf64-ppc.c 2004-10-04 09:09:50.000000000 -0400 |
29 |
@@ -9681,7 +9681,12 @@ ppc64_elf_relocate_section (bfd *output_ |
30 |
else if (!SYMBOL_REFERENCES_LOCAL (info, &h->elf) |
31 |
&& !is_opd |
32 |
&& r_type != R_PPC64_TOC) |
33 |
- outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type); |
34 |
+ { |
35 |
+ outrel.r_info = ELF64_R_INFO (h->elf.dynindx, r_type); |
36 |
+ if (h->elf.dynindx == -1 |
37 |
+ && h->elf.root.type == bfd_link_hash_undefweak) |
38 |
+ memset (&outrel, 0, sizeof outrel); |
39 |
+ } |
40 |
else |
41 |
{ |
42 |
/* This symbol is local, or marked to become local, |
43 |
|
44 |
|
45 |
|
46 |
1.1 src/patchsets/binutils/2.22/08_all_binutils-RPATH_ENVVAR-smack.patch |
47 |
|
48 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/08_all_binutils-RPATH_ENVVAR-smack.patch?rev=1.1&view=markup |
49 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/08_all_binutils-RPATH_ENVVAR-smack.patch?rev=1.1&content-type=text/plain |
50 |
|
51 |
Index: 08_all_binutils-RPATH_ENVVAR-smack.patch |
52 |
=================================================================== |
53 |
http://sourceware.org/ml/binutils/2007-07/msg00401.html |
54 |
http://sourceware.org/bugzilla/show_bug.cgi?id=4970 |
55 |
|
56 |
--- configure |
57 |
+++ configure |
58 |
@@ -5601,6 +5601,7 @@ case "${host}" in |
59 |
*-*-mingw* | *-*-cygwin ) RPATH_ENVVAR=PATH ;; |
60 |
*) RPATH_ENVVAR=LD_LIBRARY_PATH ;; |
61 |
esac |
62 |
+RPATH_ENVVAR="cant_touch_this_nah_nah_nah" |
63 |
|
64 |
# On systems where the dynamic library environment variable is PATH, |
65 |
if test "$RPATH_ENVVAR" = PATH; then |
66 |
|
67 |
|
68 |
|
69 |
1.1 src/patchsets/binutils/2.22/12_all_sh-targets.patch |
70 |
|
71 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/12_all_sh-targets.patch?rev=1.1&view=markup |
72 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/12_all_sh-targets.patch?rev=1.1&content-type=text/plain |
73 |
|
74 |
Index: 12_all_sh-targets.patch |
75 |
=================================================================== |
76 |
r10231 | lethal | 2005-05-02 09:58:00 -0400 (Mon, 02 May 2005) | 13 lines |
77 |
|
78 |
Likewise, binutils has no idea about any of these new targets either, so we |
79 |
fix that up too.. now we're able to actually build a real toolchain for |
80 |
sh2a_nofpu- and other more ineptly named toolchains (and yes, there are more |
81 |
inept targets than that one, really. Go look, I promise). |
82 |
|
83 |
--- a/configure |
84 |
+++ b/configure |
85 |
@@ -1495,7 +1495,7 @@ |
86 |
mips*-*-*) |
87 |
noconfigdirs="$noconfigdirs gprof" |
88 |
;; |
89 |
- sh-*-* | sh64-*-*) |
90 |
+ sh*-*-* | sh64-*-*) |
91 |
case "${target}" in |
92 |
sh*-*-elf) |
93 |
;; |
94 |
--- a/configure.ac |
95 |
+++ b/configure.ac |
96 |
@@ -712,7 +712,7 @@ |
97 |
mips*-*-*) |
98 |
noconfigdirs="$noconfigdirs gprof" |
99 |
;; |
100 |
- sh-*-* | sh64-*-*) |
101 |
+ sh*-*-* | sh64-*-*) |
102 |
case "${target}" in |
103 |
sh*-*-elf) |
104 |
;; |
105 |
|
106 |
|
107 |
|
108 |
1.1 src/patchsets/binutils/2.22/20_all_ld-sysroot.patch |
109 |
|
110 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/20_all_ld-sysroot.patch?rev=1.1&view=markup |
111 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/20_all_ld-sysroot.patch?rev=1.1&content-type=text/plain |
112 |
|
113 |
Index: 20_all_ld-sysroot.patch |
114 |
=================================================================== |
115 |
Signed-off-by: Sven Rebhan <odinshorse@××××××××××.com> |
116 |
|
117 |
Always try to prepend the sysroot prefix to absolute filenames first. |
118 |
|
119 |
http://bugs.gentoo.org/275666 |
120 |
http://sourceware.org/bugzilla/show_bug.cgi?id=10340 |
121 |
|
122 |
--- ld/ldfile.c |
123 |
+++ ld/ldfile.c |
124 |
@@ -308,18 +308,24 @@ |
125 |
directory first. */ |
126 |
if (! entry->is_archive) |
127 |
{ |
128 |
- if (entry->sysrooted && IS_ABSOLUTE_PATH (entry->filename)) |
129 |
+ /* For absolute pathnames, try to always open the file in the |
130 |
+ sysroot first. If this fails, try to open the file at the |
131 |
+ given location. */ |
132 |
+ entry->sysrooted = is_sysrooted_pathname(entry->filename, FALSE); |
133 |
+ if (IS_ABSOLUTE_PATH (entry->filename) && ld_sysroot && ! entry->sysrooted) |
134 |
{ |
135 |
char *name = concat (ld_sysroot, entry->filename, |
136 |
(const char *) NULL); |
137 |
if (ldfile_try_open_bfd (name, entry)) |
138 |
{ |
139 |
entry->filename = name; |
140 |
+ entry->sysrooted = TRUE; |
141 |
return TRUE; |
142 |
} |
143 |
free (name); |
144 |
} |
145 |
- else if (ldfile_try_open_bfd (entry->filename, entry)) |
146 |
+ |
147 |
+ if (ldfile_try_open_bfd (entry->filename, entry)) |
148 |
{ |
149 |
entry->sysrooted = IS_ABSOLUTE_PATH (entry->filename) |
150 |
&& is_sysrooted_pathname (entry->filename, TRUE); |
151 |
|
152 |
|
153 |
|
154 |
1.1 src/patchsets/binutils/2.22/30_all_binutils-2.22-flexible-tests.patch |
155 |
|
156 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/30_all_binutils-2.22-flexible-tests.patch?rev=1.1&view=markup |
157 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/30_all_binutils-2.22-flexible-tests.patch?rev=1.1&content-type=text/plain |
158 |
|
159 |
Index: 30_all_binutils-2.22-flexible-tests.patch |
160 |
=================================================================== |
161 |
making some of the address matches more flexible fixes tests when using |
162 |
pax/relro/hash patches |
163 |
|
164 |
--- binutils/ld/testsuite/ld-i386/hidden2.d |
165 |
+++ binutils/ld/testsuite/ld-i386/hidden2.d |
166 |
@@ -8,6 +8,6 @@ |
167 |
Disassembly of section .text: |
168 |
|
169 |
[a-f0-9]+ <bar>: |
170 |
-[ ]*[a-f0-9]+: e8 cf fe ff ff call 0 .* |
171 |
+[ ]*[a-f0-9]+: e8 ([a-f0-9]{2} ){2}ff ff call 0 .* |
172 |
[ ]*[a-f0-9]+: c3 ret |
173 |
#pass |
174 |
--- binutils/ld/testsuite/ld-x86-64/hidden2.d |
175 |
+++ binutils/ld/testsuite/ld-x86-64/hidden2.d |
176 |
@@ -8,6 +8,6 @@ |
177 |
Disassembly of section .text: |
178 |
|
179 |
[a-f0-9]+ <bar>: |
180 |
-[ ]*[a-f0-9]+: e8 33 fe ff ff callq 0 .* |
181 |
+[ ]*[a-f0-9]+: e8 ([a-f0-9]{2} ){2}ff ff callq 0 .* |
182 |
[ ]*[a-f0-9]+: c3 retq |
183 |
#pass |
184 |
--- binutils/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d |
185 |
+++ binutils/ld/testsuite/ld-ifunc/ifunc-2-local-x86-64.d |
186 |
@@ -4,6 +4,6 @@ |
187 |
#target: x86_64-*-* |
188 |
|
189 |
#... |
190 |
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x220@plt> |
191 |
-[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x220@plt> |
192 |
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x[a-f0-9]+@plt> |
193 |
+[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x[a-f0-9]+@plt> |
194 |
#pass |
195 |
--- binutils/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d |
196 |
+++ binutils/ld/testsuite/ld-ifunc/ifunc-2-x86-64.d |
197 |
@@ -4,6 +4,6 @@ |
198 |
#target: x86_64-*-* |
199 |
|
200 |
#... |
201 |
-[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x220@plt> |
202 |
-[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x220@plt> |
203 |
+[ \t0-9a-f]+:[ \t0-9a-f]+call[ \t0-9a-fq]+<\*ABS\*\+0x[a-f0-9]+@plt> |
204 |
+[ \t0-9a-f]+:[ \t0-9a-f]+lea[ \t]+.*\(%rip\),%rax.*[ \t0-9a-fq]+<\*ABS\*\+0x[a-f0-9]+@plt> |
205 |
#pass |
206 |
|
207 |
|
208 |
|
209 |
1.1 src/patchsets/binutils/2.22/63_all_binutils-2.22-pt-pax-flags-20111121.patch |
210 |
|
211 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/63_all_binutils-2.22-pt-pax-flags-20111121.patch?rev=1.1&view=markup |
212 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/63_all_binutils-2.22-pt-pax-flags-20111121.patch?rev=1.1&content-type=text/plain |
213 |
|
214 |
Index: 63_all_binutils-2.22-pt-pax-flags-20111121.patch |
215 |
=================================================================== |
216 |
--- binutils-2.22/bfd/elf-bfd.h |
217 |
+++ binutils-2.22/bfd/elf-bfd.h |
218 |
@@ -1577,6 +1577,9 @@ struct elf_obj_tdata |
219 |
/* Segment flags for the PT_GNU_STACK segment. */ |
220 |
unsigned int stack_flags; |
221 |
|
222 |
+ /* Segment flags for the PT_PAX_FLAGS segment. */ |
223 |
+ unsigned int pax_flags; |
224 |
+ |
225 |
/* Symbol version definitions in external objects. */ |
226 |
Elf_Internal_Verdef *verdef; |
227 |
|
228 |
--- binutils-2.22/bfd/elf.c |
229 |
+++ binutils-2.22/bfd/elf.c |
230 |
@@ -1158,6 +1158,7 @@ get_segment_type (unsigned int p_type) |
231 |
case PT_GNU_EH_FRAME: pt = "EH_FRAME"; break; |
232 |
case PT_GNU_STACK: pt = "STACK"; break; |
233 |
case PT_GNU_RELRO: pt = "RELRO"; break; |
234 |
+ case PT_PAX_FLAGS: pt = "PAX_FLAGS"; break; |
235 |
default: pt = NULL; break; |
236 |
} |
237 |
return pt; |
238 |
@@ -2477,6 +2478,9 @@ bfd_section_from_phdr (bfd *abfd, Elf_Internal_Phdr *hdr, int hdr_index) |
239 |
case PT_GNU_RELRO: |
240 |
return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "relro"); |
241 |
|
242 |
+ case PT_PAX_FLAGS: |
243 |
+ return _bfd_elf_make_section_from_phdr (abfd, hdr, hdr_index, "pax_flags"); |
244 |
+ |
245 |
default: |
246 |
/* Check for any processor-specific program segment types. */ |
247 |
bed = get_elf_backend_data (abfd); |
248 |
@@ -3551,6 +3555,11 @@ get_program_header_size (bfd *abfd, struct bfd_link_info *info) |
249 |
++segs; |
250 |
} |
251 |
|
252 |
+ { |
253 |
+ /* We need a PT_PAX_FLAGS segment. */ |
254 |
+ ++segs; |
255 |
+ } |
256 |
+ |
257 |
for (s = abfd->sections; s != NULL; s = s->next) |
258 |
{ |
259 |
if ((s->flags & SEC_LOAD) != 0 |
260 |
@@ -4153,6 +4162,20 @@ _bfd_elf_map_sections_to_segments (bfd *abfd, struct bfd_link_info *info) |
261 |
} |
262 |
} |
263 |
|
264 |
+ { |
265 |
+ amt = sizeof (struct elf_segment_map); |
266 |
+ m = bfd_zalloc (abfd, amt); |
267 |
+ if (m == NULL) |
268 |
+ goto error_return; |
269 |
+ m->next = NULL; |
270 |
+ m->p_type = PT_PAX_FLAGS; |
271 |
+ m->p_flags = elf_tdata (abfd)->pax_flags; |
272 |
+ m->p_flags_valid = 1; |
273 |
+ |
274 |
+ *pm = m; |
275 |
+ pm = &m->next; |
276 |
+ } |
277 |
+ |
278 |
free (sections); |
279 |
elf_tdata (abfd)->segment_map = mfirst; |
280 |
} |
281 |
@@ -5417,7 +5440,8 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) |
282 |
6. PT_TLS segment includes only SHF_TLS sections. |
283 |
7. SHF_TLS sections are only in PT_TLS or PT_LOAD segments. |
284 |
8. PT_DYNAMIC should not contain empty sections at the beginning |
285 |
- (with the possible exception of .dynamic). */ |
286 |
+ (with the possible exception of .dynamic). |
287 |
+ 9. PT_PAX_FLAGS segments do not include any sections. */ |
288 |
#define IS_SECTION_IN_INPUT_SEGMENT(section, segment, bed) \ |
289 |
((((segment->p_paddr \ |
290 |
? IS_CONTAINED_BY_LMA (section, segment, segment->p_paddr) \ |
291 |
@@ -5425,6 +5449,7 @@ rewrite_elf_program_header (bfd *ibfd, bfd *obfd) |
292 |
&& (section->flags & SEC_ALLOC) != 0) \ |
293 |
|| IS_NOTE (segment, section)) \ |
294 |
&& segment->p_type != PT_GNU_STACK \ |
295 |
+ && segment->p_type != PT_PAX_FLAGS \ |
296 |
&& (segment->p_type != PT_TLS \ |
297 |
|| (section->flags & SEC_THREAD_LOCAL)) \ |
298 |
&& (segment->p_type == PT_LOAD \ |
299 |
--- binutils-2.22/bfd/elflink.c |
300 |
+++ binutils-2.22/bfd/elflink.c |
301 |
@@ -5545,16 +5545,30 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, |
302 |
return TRUE; |
303 |
|
304 |
bed = get_elf_backend_data (output_bfd); |
305 |
+ |
306 |
+ elf_tdata (output_bfd)->pax_flags = PF_NORANDEXEC; |
307 |
+ if (info->execheap) |
308 |
+ elf_tdata (output_bfd)->pax_flags |= PF_NOMPROTECT; |
309 |
+ else if (info->noexecheap) |
310 |
+ elf_tdata (output_bfd)->pax_flags |= PF_MPROTECT; |
311 |
+ |
312 |
if (info->execstack) |
313 |
- elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X; |
314 |
+ { |
315 |
+ elf_tdata (output_bfd)->stack_flags = PF_R | PF_W | PF_X; |
316 |
+ elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP; |
317 |
+ } |
318 |
else if (info->noexecstack) |
319 |
- elf_tdata (output_bfd)->stack_flags = PF_R | PF_W; |
320 |
+ { |
321 |
+ elf_tdata (output_bfd)->stack_flags = PF_R | PF_W; |
322 |
+ elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP; |
323 |
+ } |
324 |
else |
325 |
{ |
326 |
bfd *inputobj; |
327 |
asection *notesec = NULL; |
328 |
int exec = 0; |
329 |
|
330 |
+ elf_tdata (output_bfd)->pax_flags |= PF_NOEMUTRAMP; |
331 |
for (inputobj = info->input_bfds; |
332 |
inputobj; |
333 |
inputobj = inputobj->link_next) |
334 |
@@ -5567,7 +5581,11 @@ bfd_elf_size_dynamic_sections (bfd *output_bfd, |
335 |
if (s) |
336 |
{ |
337 |
if (s->flags & SEC_CODE) |
338 |
- exec = PF_X; |
339 |
+ { |
340 |
+ elf_tdata (output_bfd)->pax_flags &= ~PF_NOEMUTRAMP; |
341 |
+ elf_tdata (output_bfd)->pax_flags |= PF_EMUTRAMP; |
342 |
+ exec = PF_X; |
343 |
+ } |
344 |
notesec = s; |
345 |
} |
346 |
else if (bed->default_execstack) |
347 |
--- binutils-2.22/binutils/readelf.c |
348 |
+++ binutils-2.22/binutils/readelf.c |
349 |
@@ -2740,6 +2740,7 @@ get_segment_type (unsigned long p_type) |
350 |
return "GNU_EH_FRAME"; |
351 |
case PT_GNU_STACK: return "GNU_STACK"; |
352 |
case PT_GNU_RELRO: return "GNU_RELRO"; |
353 |
+ case PT_PAX_FLAGS: return "PAX_FLAGS"; |
354 |
|
355 |
default: |
356 |
if ((p_type >= PT_LOPROC) && (p_type <= PT_HIPROC)) |
357 |
--- binutils-2.22/include/bfdlink.h |
358 |
+++ binutils-2.22/include/bfdlink.h |
359 |
@@ -322,6 +322,14 @@ struct bfd_link_info |
360 |
/* TRUE if PT_GNU_RELRO segment should be created. */ |
361 |
unsigned int relro: 1; |
362 |
|
363 |
+ /* TRUE if PT_PAX_FLAGS segment should be created with PF_NOMPROTECT |
364 |
+ flags. */ |
365 |
+ unsigned int execheap: 1; |
366 |
+ |
367 |
+ /* TRUE if PT_PAX_FLAGS segment should be created with PF_MPROTECT |
368 |
+ flags. */ |
369 |
+ unsigned int noexecheap: 1; |
370 |
+ |
371 |
/* TRUE if .eh_frame_hdr section and PT_GNU_EH_FRAME ELF segment |
372 |
should be created. */ |
373 |
unsigned int eh_frame_hdr: 1; |
374 |
--- binutils-2.22/include/elf/common.h |
375 |
+++ binutils-2.22/include/elf/common.h |
376 |
@@ -429,6 +429,7 @@ |
377 |
#define PT_SUNW_EH_FRAME PT_GNU_EH_FRAME /* Solaris uses the same value */ |
378 |
#define PT_GNU_STACK (PT_LOOS + 0x474e551) /* Stack flags */ |
379 |
#define PT_GNU_RELRO (PT_LOOS + 0x474e552) /* Read-only after relocation */ |
380 |
+#define PT_PAX_FLAGS (PT_LOOS + 0x5041580) /* PaX flags */ |
381 |
|
382 |
/* Program segment permissions, in program header p_flags field. */ |
383 |
|
384 |
@@ -439,6 +440,21 @@ |
385 |
#define PF_MASKOS 0x0FF00000 /* New value, Oct 4, 1999 Draft */ |
386 |
#define PF_MASKPROC 0xF0000000 /* Processor-specific reserved bits */ |
387 |
|
388 |
+/* Flags to control PaX behavior. */ |
389 |
+ |
390 |
+#define PF_PAGEEXEC (1 << 4) /* Enable PAGEEXEC */ |
391 |
+#define PF_NOPAGEEXEC (1 << 5) /* Disable PAGEEXEC */ |
392 |
+#define PF_SEGMEXEC (1 << 6) /* Enable SEGMEXEC */ |
393 |
+#define PF_NOSEGMEXEC (1 << 7) /* Disable SEGMEXEC */ |
394 |
+#define PF_MPROTECT (1 << 8) /* Enable MPROTECT */ |
395 |
+#define PF_NOMPROTECT (1 << 9) /* Disable MPROTECT */ |
396 |
+#define PF_RANDEXEC (1 << 10) /* Enable RANDEXEC */ |
397 |
+#define PF_NORANDEXEC (1 << 11) /* Disable RANDEXEC */ |
398 |
+#define PF_EMUTRAMP (1 << 12) /* Enable EMUTRAMP */ |
399 |
+#define PF_NOEMUTRAMP (1 << 13) /* Disable EMUTRAMP */ |
400 |
+#define PF_RANDMMAP (1 << 14) /* Enable RANDMMAP */ |
401 |
+#define PF_NORANDMMAP (1 << 15) /* Disable RANDMMAP */ |
402 |
+ |
403 |
/* Values for section header, sh_type field. */ |
404 |
|
405 |
#define SHT_NULL 0 /* Section header table entry unused */ |
406 |
--- binutils-2.22/ld/emultempl/elf32.em |
407 |
+++ binutils-2.22/ld/emultempl/elf32.em |
408 |
@@ -2285,6 +2285,16 @@ fragment <<EOF |
409 |
link_info.noexecstack = TRUE; |
410 |
link_info.execstack = FALSE; |
411 |
} |
412 |
+ else if (strcmp (optarg, "execheap") == 0) |
413 |
+ { |
414 |
+ link_info.execheap = TRUE; |
415 |
+ link_info.noexecheap = FALSE; |
416 |
+ } |
417 |
+ else if (strcmp (optarg, "noexecheap") == 0) |
418 |
+ { |
419 |
+ link_info.noexecheap = TRUE; |
420 |
+ link_info.execheap = FALSE; |
421 |
+ } |
422 |
EOF |
423 |
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then |
424 |
fragment <<EOF |
425 |
@@ -2368,6 +2378,8 @@ fragment <<EOF |
426 |
-z defs Report unresolved symbols in object files.\n")); |
427 |
fprintf (file, _("\ |
428 |
-z execstack Mark executable as requiring executable stack\n")); |
429 |
+ fprintf (file, _("\ |
430 |
+ -z execheap Mark executable as requiring executable heap\n")); |
431 |
EOF |
432 |
|
433 |
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then |
434 |
@@ -2391,6 +2403,8 @@ fragment <<EOF |
435 |
fragment <<EOF |
436 |
fprintf (file, _("\ |
437 |
-z noexecstack Mark executable as not requiring executable stack\n")); |
438 |
+ fprintf (file, _("\ |
439 |
+ -z noexecheap Mark executable as not requiring executable heap\n")); |
440 |
EOF |
441 |
if test x"$GENERATE_SHLIB_SCRIPT" = xyes; then |
442 |
fragment <<EOF |
443 |
--- binutils-2.22/ld/ldgram.y |
444 |
+++ binutils-2.22/ld/ldgram.y |
445 |
@@ -1119,6 +1119,8 @@ phdr_type: |
446 |
$$ = exp_intop (0x6474e550); |
447 |
else if (strcmp (s, "PT_GNU_STACK") == 0) |
448 |
$$ = exp_intop (0x6474e551); |
449 |
+ else if (strcmp (s, "PT_PAX_FLAGS") == 0) |
450 |
+ $$ = exp_intop (0x65041580); |
451 |
else |
452 |
{ |
453 |
einfo (_("\ |
454 |
--- binutils-2.22/ld/testsuite/ld-alpha/tlsbin.rd |
455 |
+++ binutils-2.22/ld/testsuite/ld-alpha/tlsbin.rd |
456 |
@@ -35,13 +35,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
457 |
|
458 |
Program Headers: |
459 |
Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
460 |
- PHDR +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+150 R E 0x8 |
461 |
+ PHDR +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+188 R E 0x8 |
462 |
INTERP +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x1 |
463 |
.*Requesting program interpreter.* |
464 |
LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R E 0x10000 |
465 |
LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x10000 |
466 |
DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x8 |
467 |
TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x4 |
468 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
469 |
#... |
470 |
|
471 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 3 entries: |
472 |
--- binutils-2.22/ld/testsuite/ld-alpha/tlsbinr.rd |
473 |
+++ binutils-2.22/ld/testsuite/ld-alpha/tlsbinr.rd |
474 |
@@ -42,6 +42,7 @@ Program Headers: |
475 |
+LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x10000 |
476 |
+DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x8 |
477 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x4 |
478 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
479 |
#... |
480 |
|
481 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 2 entries: |
482 |
--- binutils-2.22/ld/testsuite/ld-alpha/tlspic.rd |
483 |
+++ binutils-2.22/ld/testsuite/ld-alpha/tlspic.rd |
484 |
@@ -38,6 +38,7 @@ Program Headers: |
485 |
+LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x10000 |
486 |
+DYNAMIC +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ RW +0x8 |
487 |
+TLS +0x0+10e0 0x0+110e0 0x0+110e0 0x0+60 0x0+80 R +0x4 |
488 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
489 |
#... |
490 |
|
491 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 7 entries: |
492 |
--- binutils-2.22/ld/testsuite/ld-elf/eh1.d |
493 |
+++ binutils-2.22/ld/testsuite/ld-elf/eh1.d |
494 |
@@ -22,11 +22,11 @@ Contents of the .eh_frame section: |
495 |
DW_CFA_nop |
496 |
DW_CFA_nop |
497 |
|
498 |
-00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 |
499 |
- DW_CFA_advance_loc: 0 to 00400078 |
500 |
+00000018 0000001c 0000001c FDE cie=00000000 pc=([0-9a-f]+)..\1 |
501 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
502 |
DW_CFA_def_cfa_offset: 16 |
503 |
DW_CFA_offset: r6 \(rbp\) at cfa-16 |
504 |
- DW_CFA_advance_loc: 0 to 00400078 |
505 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
506 |
DW_CFA_def_cfa_register: r6 \(rbp\) |
507 |
|
508 |
00000038 ZERO terminator |
509 |
--- binutils-2.22/ld/testsuite/ld-elf/eh2.d |
510 |
+++ binutils-2.22/ld/testsuite/ld-elf/eh2.d |
511 |
@@ -22,11 +22,11 @@ Contents of the .eh_frame section: |
512 |
DW_CFA_nop |
513 |
DW_CFA_nop |
514 |
|
515 |
-00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 |
516 |
- DW_CFA_advance_loc: 0 to 00400078 |
517 |
+00000018 0000001c 0000001c FDE cie=00000000 pc=([0-9a-f]+)..\1 |
518 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
519 |
DW_CFA_def_cfa_offset: 16 |
520 |
DW_CFA_offset: r6 \(rbp\) at cfa-16 |
521 |
- DW_CFA_advance_loc: 0 to 00400078 |
522 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
523 |
DW_CFA_def_cfa_register: r6 \(rbp\) |
524 |
|
525 |
00000038 ZERO terminator |
526 |
--- binutils-2.22/ld/testsuite/ld-elf/eh3.d |
527 |
+++ binutils-2.22/ld/testsuite/ld-elf/eh3.d |
528 |
@@ -22,11 +22,11 @@ Contents of the .eh_frame section: |
529 |
DW_CFA_nop |
530 |
DW_CFA_nop |
531 |
|
532 |
-00000018 0000001c 0000001c FDE cie=00000000 pc=00400078..00400078 |
533 |
- DW_CFA_advance_loc: 0 to 00400078 |
534 |
+00000018 0000001c 0000001c FDE cie=00000000 pc=([0-9a-f]+)..\1 |
535 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
536 |
DW_CFA_def_cfa_offset: 16 |
537 |
DW_CFA_offset: r6 \(rbp\) at cfa-16 |
538 |
- DW_CFA_advance_loc: 0 to 00400078 |
539 |
+ DW_CFA_advance_loc: 0 to [0-9a-f]+ |
540 |
DW_CFA_def_cfa_register: r6 \(rbp\) |
541 |
|
542 |
00000038 ZERO terminator |
543 |
--- binutils-2.22/ld/testsuite/ld-elf/orphan-region.d |
544 |
+++ binutils-2.22/ld/testsuite/ld-elf/orphan-region.d |
545 |
@@ -15,7 +15,9 @@ |
546 |
Program Headers: |
547 |
Type.* |
548 |
LOAD[ \t]+0x[0-9a-f]+ 0x0*40000000 0x0*40000000 0x[0-9a-f]+ 0x[0-9a-f]+ RWE 0x[0-9a-f]+ |
549 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
550 |
|
551 |
Section to Segment mapping: |
552 |
Segment Sections... |
553 |
00 .text .rodata .moredata * |
554 |
+ 01 + |
555 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsbin.rd |
556 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsbin.rd |
557 |
@@ -44,6 +44,7 @@ Program Headers: |
558 |
+LOAD.* |
559 |
+DYNAMIC.* |
560 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+60 0x0+a0 R +0x1000 |
561 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
562 |
|
563 |
Section to Segment mapping: |
564 |
+Segment Sections... |
565 |
@@ -53,6 +54,7 @@ Program Headers: |
566 |
+03 +.tdata .dynamic .got .got.plt * |
567 |
+04 +.dynamic * |
568 |
+05 +.tdata .tbss * |
569 |
+ +06 + |
570 |
|
571 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 9 entries: |
572 |
Offset +Info +Type +Sym.Value +Sym. Name |
573 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsbindesc.rd |
574 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsbindesc.rd |
575 |
@@ -42,6 +42,7 @@ Program Headers: |
576 |
+LOAD.* |
577 |
+DYNAMIC.* |
578 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+60 0x0+a0 R +0x1000 |
579 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
580 |
|
581 |
Section to Segment mapping: |
582 |
+Segment Sections... |
583 |
@@ -51,6 +52,7 @@ Program Headers: |
584 |
+03 +.tdata .dynamic .got .got.plt * |
585 |
+04 +.dynamic * |
586 |
+05 +.tdata .tbss * |
587 |
+ +06 + |
588 |
|
589 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 9 entries: |
590 |
Offset +Info +Type +Sym.Value +Sym. Name |
591 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsdesc.rd |
592 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsdesc.rd |
593 |
@@ -39,6 +39,7 @@ Program Headers: |
594 |
+LOAD.* |
595 |
+DYNAMIC.* |
596 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+60 0x0+80 R +0x1 |
597 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
598 |
|
599 |
Section to Segment mapping: |
600 |
+Segment Sections... |
601 |
@@ -46,6 +47,7 @@ Program Headers: |
602 |
+01 +.tdata .dynamic .got .got.plt * |
603 |
+02 +.dynamic * |
604 |
+03 +.tdata .tbss * |
605 |
+ +04 + |
606 |
|
607 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 20 entries: |
608 |
Offset +Info +Type +Sym.Value +Sym. Name |
609 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsdesc.sd |
610 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsdesc.sd |
611 |
@@ -14,7 +14,7 @@ Contents of section \.got: |
612 |
[0-9a-f]+ 6c000000 b4ffffff 4c000000 68000000 .* |
613 |
[0-9a-f]+ 50000000 70000000 00000000 bcffffff .* |
614 |
Contents of section \.got\.plt: |
615 |
- [0-9a-f]+ b0150000 00000000 00000000 00000000 .* |
616 |
+ [0-9a-f]+ [a-f]0150000 00000000 00000000 00000000 .* |
617 |
[0-9a-f]+ 20000000 00000000 60000000 00000000 .* |
618 |
[0-9a-f]+ 00000000 00000000 00000000 00000000 .* |
619 |
[0-9a-f]+ 40000000 +.* |
620 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsgdesc.rd |
621 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsgdesc.rd |
622 |
@@ -36,12 +36,14 @@ Program Headers: |
623 |
+LOAD.* |
624 |
+LOAD.* |
625 |
+DYNAMIC.* |
626 |
+ +PAX_FLAGS.* |
627 |
|
628 |
Section to Segment mapping: |
629 |
+Segment Sections... |
630 |
+00 +.hash .dynsym .dynstr .rel.dyn .rel.plt .plt .text * |
631 |
+01 +.dynamic .got .got.plt * |
632 |
+02 +.dynamic * |
633 |
+ +03 + |
634 |
|
635 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 8 entries: |
636 |
Offset +Info +Type +Sym.Value +Sym. Name |
637 |
--- binutils-2.22/ld/testsuite/ld-i386/tlsnopic.rd |
638 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlsnopic.rd |
639 |
@@ -37,6 +37,7 @@ Program Headers: |
640 |
+LOAD.* |
641 |
+DYNAMIC.* |
642 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+ 0x0+24 R +0x1 |
643 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
644 |
|
645 |
Section to Segment mapping: |
646 |
+Segment Sections... |
647 |
@@ -44,6 +45,7 @@ Program Headers: |
648 |
+01 +.dynamic .got .got.plt * |
649 |
+02 +.dynamic * |
650 |
+03 +.tbss * |
651 |
+ +04 + |
652 |
|
653 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 20 entries: |
654 |
Offset +Info +Type +Sym.Value +Sym. Name |
655 |
--- binutils-2.22/ld/testsuite/ld-i386/tlspic.rd |
656 |
+++ binutils-2.22/ld/testsuite/ld-i386/tlspic.rd |
657 |
@@ -40,6 +40,7 @@ Program Headers: |
658 |
+LOAD.* |
659 |
+DYNAMIC.* |
660 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+60 0x0+80 R +0x1 |
661 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
662 |
|
663 |
Section to Segment mapping: |
664 |
+Segment Sections... |
665 |
@@ -47,6 +48,7 @@ Program Headers: |
666 |
+01 +.tdata .dynamic .got .got.plt * |
667 |
+02 +.dynamic * |
668 |
+03 +.tdata .tbss * |
669 |
+ +04 + |
670 |
|
671 |
Relocation section '.rel.dyn' at offset 0x[0-9a-f]+ contains 26 entries: |
672 |
Offset +Info +Type +Sym.Value +Sym. Name |
673 |
--- binutils-2.22/ld/testsuite/ld-ia64/merge1.d |
674 |
+++ binutils-2.22/ld/testsuite/ld-ia64/merge1.d |
675 |
@@ -4,7 +4,7 @@ |
676 |
#objdump: -d |
677 |
|
678 |
#... |
679 |
-0+1e0 <.text>: |
680 |
+[a-f0-9]+ <.text>: |
681 |
[ ]*[a-f0-9]+: 0b 60 80 02 00 24 \[MMI\] addl r12=32,r1;; |
682 |
[ ]*[a-f0-9]+: c0 c0 04 00 48 00 addl r12=24,r1 |
683 |
[ ]*[a-f0-9]+: 00 00 04 00 nop.i 0x0;; |
684 |
--- binutils-2.22/ld/testsuite/ld-ia64/merge2.d |
685 |
+++ binutils-2.22/ld/testsuite/ld-ia64/merge2.d |
686 |
@@ -4,7 +4,7 @@ |
687 |
#objdump: -d |
688 |
|
689 |
#... |
690 |
-0+1e0 <.text>: |
691 |
+[a-f0-9]+ <.text>: |
692 |
[ ]*[a-f0-9]+: 0b 60 80 02 00 24 \[MMI\] addl r12=32,r1;; |
693 |
[ ]*[a-f0-9]+: c0 c0 04 00 48 00 addl r12=24,r1 |
694 |
[ ]*[a-f0-9]+: 00 00 04 00 nop.i 0x0;; |
695 |
--- binutils-2.22/ld/testsuite/ld-ia64/merge3.d |
696 |
+++ binutils-2.22/ld/testsuite/ld-ia64/merge3.d |
697 |
@@ -4,7 +4,7 @@ |
698 |
#objdump: -d |
699 |
|
700 |
#... |
701 |
-0+210 <.text>: |
702 |
+[a-f0-9]+ <.text>: |
703 |
[ ]*[a-f0-9]+: 0b 60 80 02 00 24 \[MMI\] addl r12=32,r1;; |
704 |
[ ]*[a-f0-9]+: c0 40 05 00 48 00 addl r12=40,r1 |
705 |
[ ]*[a-f0-9]+: 00 00 04 00 nop.i 0x0;; |
706 |
--- binutils-2.22/ld/testsuite/ld-ia64/merge4.d |
707 |
+++ binutils-2.22/ld/testsuite/ld-ia64/merge4.d |
708 |
@@ -4,7 +4,7 @@ |
709 |
#objdump: -d |
710 |
|
711 |
#... |
712 |
-0+240 <.text>: |
713 |
+[a-f0-9]+ <.text>: |
714 |
[ ]*[a-f0-9]+: 0b 60 80 02 00 24 \[MMI\] addl r12=32,r1;; |
715 |
[ ]*[a-f0-9]+: c0 40 05 00 48 00 addl r12=40,r1 |
716 |
[ ]*[a-f0-9]+: 00 00 04 00 nop.i 0x0;; |
717 |
--- binutils-2.22/ld/testsuite/ld-ia64/merge5.d |
718 |
+++ binutils-2.22/ld/testsuite/ld-ia64/merge5.d |
719 |
@@ -4,7 +4,7 @@ |
720 |
#objdump: -d |
721 |
|
722 |
#... |
723 |
-0+270 <.text>: |
724 |
+[a-f0-9]+ <.text>: |
725 |
[ ]*[a-f0-9]+: 0b 60 80 02 00 24 \[MMI\] addl r12=32,r1;; |
726 |
[ ]*[a-f0-9]+: c0 40 05 00 48 00 addl r12=40,r1 |
727 |
[ ]*[a-f0-9]+: 00 00 04 00 nop.i 0x0;; |
728 |
--- binutils-2.22/ld/testsuite/ld-ia64/tlsbin.rd |
729 |
+++ binutils-2.22/ld/testsuite/ld-ia64/tlsbin.rd |
730 |
@@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
731 |
|
732 |
Program Headers: |
733 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
734 |
- +PHDR +0x0+40 0x40+40 0x40+40 0x0+188 0x0+188 R E 0x8 |
735 |
- +INTERP +0x0+1c8 0x40+1c8 0x40+1c8 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x1 |
736 |
+ +PHDR +0x0+40 0x40+40 0x40+40 (0x[0-9a-f]+) \1 R E 0x8 |
737 |
+ +INTERP +0x0+([0-9a-f]+) (0x40+\1) \2 0x[0-9a-f]+ 0x[0-9a-f]+ R +0x1 |
738 |
.*Requesting program interpreter.* |
739 |
+LOAD +0x0+ 0x40+ 0x40+ 0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ R E 0x10000 |
740 |
+LOAD +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+0[0-9a-f]+ 0x0+0[0-9a-f]+ RW +0x10000 |
741 |
+DYNAMIC +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+150 0x0+150 RW +0x8 |
742 |
+TLS +0x0+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x60+1[0-9a-f]+ 0x0+60 0x0+a0 R +0x4 |
743 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
744 |
+IA_64_UNWIND .* R +0x8 |
745 |
#... |
746 |
|
747 |
--- binutils-2.22/ld/testsuite/ld-ia64/tlspic.rd |
748 |
+++ binutils-2.22/ld/testsuite/ld-ia64/tlspic.rd |
749 |
@@ -40,6 +40,7 @@ Program Headers: |
750 |
+LOAD +0x0+1[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+0[0-9a-f]+ 0x0+0[0-9a-f]+ RW +0x10000 |
751 |
+DYNAMIC +0x0+1[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+140 0x0+140 RW +0x8 |
752 |
+TLS +0x0+1[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+11[0-9a-f]+ 0x0+60 0x0+80 R +0x4 |
753 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
754 |
+IA_64_UNWIND +0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ 0x0+1[0-9a-f]+ 0x0+18 0x0+18 R +0x8 |
755 |
#... |
756 |
|
757 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/multi-got-no-shared.d |
758 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/multi-got-no-shared.d |
759 |
@@ -8,9 +8,9 @@ |
760 |
.*: +file format.* |
761 |
|
762 |
Disassembly of section \.text: |
763 |
-004000b0 <[^>]*> 3c1c0043 lui gp,0x43 |
764 |
-004000b4 <[^>]*> 279c9ff0 addiu gp,gp,-24592 |
765 |
-004000b8 <[^>]*> afbc0008 sw gp,8\(sp\) |
766 |
+004000d0 <[^>]*> 3c1c0043 lui gp,0x43 |
767 |
+004000d4 <[^>]*> 279c9ff0 addiu gp,gp,-24592 |
768 |
+004000d8 <[^>]*> afbc0008 sw gp,8\(sp\) |
769 |
#... |
770 |
00408d60 <[^>]*> 3c1c0043 lui gp,0x43 |
771 |
00408d64 <[^>]*> 279c2c98 addiu gp,gp,11416 |
772 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd |
773 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3a.sd |
774 |
@@ -1,7 +1,7 @@ |
775 |
|
776 |
Elf file type is DYN \(Shared object file\) |
777 |
Entry point .* |
778 |
-There are 5 program headers, starting at offset .* |
779 |
+There are [0-9] program headers, starting at offset .* |
780 |
|
781 |
Program Headers: |
782 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
783 |
@@ -9,6 +9,7 @@ Program Headers: |
784 |
* LOAD * [^ ]+ * 0x0+00000 * 0x0+00000 [^ ]+ * [^ ]+ * R E * 0x.* |
785 |
* LOAD * [^ ]+ * 0x0+10000 * 0x0+10000 [^ ]+ * [^ ]+ * RW * 0x.* |
786 |
* DYNAMIC * [^ ]+ * 0x0+00400 * 0x0+00400 .* |
787 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
788 |
* NULL * .* |
789 |
|
790 |
*Section to Segment mapping: |
791 |
@@ -18,3 +19,4 @@ Program Headers: |
792 |
*0*2 * \.data \.got * |
793 |
*0*3 * \.dynamic * |
794 |
*0*4 * |
795 |
+ *0*5 * |
796 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd |
797 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-3b.sd |
798 |
@@ -1,7 +1,7 @@ |
799 |
|
800 |
Elf file type is EXEC \(Executable file\) |
801 |
Entry point 0x44000 |
802 |
-There are 8 program headers, starting at offset .* |
803 |
+There are [0-9] program headers, starting at offset .* |
804 |
|
805 |
Program Headers: |
806 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
807 |
@@ -13,6 +13,7 @@ Program Headers: |
808 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
809 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
810 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
811 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
812 |
* NULL * .* |
813 |
|
814 |
*Section to Segment mapping: |
815 |
@@ -25,3 +26,4 @@ Program Headers: |
816 |
*0*5 *\.got \.data * |
817 |
*0*6 *\.dynamic * |
818 |
*0*7 * |
819 |
+ *0*8 * |
820 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd |
821 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-4b.sd |
822 |
@@ -1,7 +1,7 @@ |
823 |
|
824 |
Elf file type is EXEC \(Executable file\) |
825 |
Entry point 0x44000 |
826 |
-There are 8 program headers, starting at offset .* |
827 |
+There are [0-9] program headers, starting at offset .* |
828 |
|
829 |
Program Headers: |
830 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
831 |
@@ -13,6 +13,7 @@ Program Headers: |
832 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
833 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
834 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
835 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
836 |
* NULL * .* |
837 |
|
838 |
*Section to Segment mapping: |
839 |
@@ -25,3 +26,4 @@ Program Headers: |
840 |
*0*5 * \.got \.data \.bss * |
841 |
*0*6 * \.dynamic * |
842 |
*0*7 * |
843 |
+ *0*8 * |
844 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd |
845 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-5b.sd |
846 |
@@ -1,7 +1,7 @@ |
847 |
|
848 |
Elf file type is EXEC \(Executable file\) |
849 |
Entry point 0x44000 |
850 |
-There are 8 program headers, starting at offset .* |
851 |
+There are [0-9] program headers, starting at offset .* |
852 |
|
853 |
Program Headers: |
854 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
855 |
@@ -13,6 +13,7 @@ Program Headers: |
856 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
857 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
858 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
859 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
860 |
* NULL * .* |
861 |
|
862 |
*Section to Segment mapping: |
863 |
@@ -25,3 +26,4 @@ Program Headers: |
864 |
*0*5 * \.got \.data \.bss * |
865 |
*0*6 * \.dynamic * |
866 |
*0*7 * |
867 |
+ *0*8 * |
868 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd |
869 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n32.sd |
870 |
@@ -1,7 +1,7 @@ |
871 |
|
872 |
Elf file type is EXEC \(Executable file\) |
873 |
Entry point 0x44000 |
874 |
-There are 8 program headers, starting at offset .* |
875 |
+There are [0-9] program headers, starting at offset .* |
876 |
|
877 |
Program Headers: |
878 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
879 |
@@ -13,6 +13,7 @@ Program Headers: |
880 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
881 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
882 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
883 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
884 |
* NULL * .* |
885 |
|
886 |
*Section to Segment mapping: |
887 |
@@ -25,3 +26,4 @@ Program Headers: |
888 |
*0*5 * \.got \.data \.bss * |
889 |
*0*6 * \.dynamic * |
890 |
*0*7 * |
891 |
+ *0*8 * |
892 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd |
893 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-n64.sd |
894 |
@@ -1,7 +1,7 @@ |
895 |
|
896 |
Elf file type is EXEC \(Executable file\) |
897 |
Entry point 0x44000 |
898 |
-There are 7 program headers, starting at offset .* |
899 |
+There are [0-9] program headers, starting at offset .* |
900 |
|
901 |
Program Headers: |
902 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
903 |
@@ -12,6 +12,7 @@ Program Headers: |
904 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
905 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
906 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
907 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
908 |
* NULL * .* |
909 |
|
910 |
*Section to Segment mapping: |
911 |
@@ -23,3 +24,4 @@ Program Headers: |
912 |
*0*4 * \.got \.data \.bss * |
913 |
*0*5 * \.dynamic * |
914 |
*0*6 * |
915 |
+ *0*7 * |
916 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd |
917 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/pic-and-nonpic-6-o32.sd |
918 |
@@ -1,7 +1,7 @@ |
919 |
|
920 |
Elf file type is EXEC \(Executable file\) |
921 |
Entry point 0x44000 |
922 |
-There are 8 program headers, starting at offset .* |
923 |
+There are [0-9] program headers, starting at offset .* |
924 |
|
925 |
Program Headers: |
926 |
* Type * Offset * VirtAddr * PhysAddr * FileSiz * MemSiz * Flg * Align |
927 |
@@ -13,6 +13,7 @@ Program Headers: |
928 |
* LOAD * [^ ]+ * 0x0+80000 * 0x0+80000 [^ ]+ * [^ ]+ * RW * 0x.* |
929 |
* LOAD * [^ ]+ * 0x0+a0000 * 0x0+a0000 [^ ]+ * [^ ]+ * RW * 0x.* |
930 |
* DYNAMIC * [^ ]+ * 0x0+42000 * 0x0+42000 .* |
931 |
+ * PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
932 |
* NULL * .* |
933 |
|
934 |
*Section to Segment mapping: |
935 |
@@ -25,3 +26,4 @@ Program Headers: |
936 |
*0*5 * \.got \.data \.bss * |
937 |
*0*6 * \.dynamic * |
938 |
*0*7 * |
939 |
+ *0*8 * |
940 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/rel32-n32.d |
941 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel32-n32.d |
942 |
@@ -10,6 +10,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: |
943 |
[0-9a-f ]+R_MIPS_REL32 |
944 |
|
945 |
Hex dump of section '.text': |
946 |
- 0x000002e0 00000000 00000000 00000000 00000000 ................ |
947 |
- 0x000002f0 000002f0 00000000 00000000 00000000 ................ |
948 |
0x00000300 00000000 00000000 00000000 00000000 ................ |
949 |
+ 0x00000310 00000310 00000000 00000000 00000000 ................ |
950 |
+ 0x00000320 00000000 00000000 00000000 00000000 ................ |
951 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/rel32-o32.d |
952 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel32-o32.d |
953 |
@@ -10,6 +10,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: |
954 |
[0-9a-f ]+R_MIPS_REL32 |
955 |
|
956 |
Hex dump of section '.text': |
957 |
- 0x000002e0 00000000 00000000 00000000 00000000 ................ |
958 |
- 0x000002f0 000002f0 00000000 00000000 00000000 ................ |
959 |
0x00000300 00000000 00000000 00000000 00000000 ................ |
960 |
+ 0x00000310 00000310 00000000 00000000 00000000 ................ |
961 |
+ 0x00000320 00000000 00000000 00000000 00000000 ................ |
962 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/rel64.d |
963 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/rel64.d |
964 |
@@ -14,6 +14,6 @@ Relocation section '.rel.dyn' at offset .* contains 2 entries: |
965 |
+Type3: R_MIPS_NONE |
966 |
|
967 |
Hex dump of section '.text': |
968 |
- 0x00000450 00000000 00000000 00000000 00000000 ................ |
969 |
- 0x00000460 00000000 00000460 00000000 00000000 ................ |
970 |
- 0x00000470 00000000 00000000 00000000 00000000 ................ |
971 |
+ 0x00000490 00000000 00000000 00000000 00000000 ................ |
972 |
+ 0x000004a0 00000000 000004a0 00000000 00000000 ................ |
973 |
+ 0x000004b0 00000000 00000000 00000000 00000000 ................ |
974 |
--- binutils-2.22/ld/testsuite/ld-mips-elf/tlsbin-o32.d |
975 |
+++ binutils-2.22/ld/testsuite/ld-mips-elf/tlsbin-o32.d |
976 |
@@ -2,42 +2,42 @@ |
977 |
|
978 |
Disassembly of section .text: |
979 |
|
980 |
-004000d0 <__start>: |
981 |
- 4000d0: 3c1c0fc0 lui gp,0xfc0 |
982 |
- 4000d4: 279c7f30 addiu gp,gp,32560 |
983 |
- 4000d8: 0399e021 addu gp,gp,t9 |
984 |
- 4000dc: 27bdfff0 addiu sp,sp,-16 |
985 |
- 4000e0: afbe0008 sw s8,8\(sp\) |
986 |
- 4000e4: 03a0f021 move s8,sp |
987 |
- 4000e8: afbc0000 sw gp,0\(sp\) |
988 |
- 4000ec: 8f998018 lw t9,-32744\(gp\) |
989 |
- 4000f0: 27848028 addiu a0,gp,-32728 |
990 |
- 4000f4: 0320f809 jalr t9 |
991 |
- 4000f8: 00000000 nop |
992 |
- 4000fc: 8fdc0000 lw gp,0\(s8\) |
993 |
- 400100: 00000000 nop |
994 |
- 400104: 8f998018 lw t9,-32744\(gp\) |
995 |
- 400108: 27848020 addiu a0,gp,-32736 |
996 |
- 40010c: 0320f809 jalr t9 |
997 |
- 400110: 00000000 nop |
998 |
- 400114: 8fdc0000 lw gp,0\(s8\) |
999 |
- 400118: 00401021 move v0,v0 |
1000 |
- 40011c: 3c030000 lui v1,0x0 |
1001 |
- 400120: 24638000 addiu v1,v1,-32768 |
1002 |
- 400124: 00621821 addu v1,v1,v0 |
1003 |
- 400128: 7c02283b rdhwr v0,\$5 |
1004 |
- 40012c: 8f83801c lw v1,-32740\(gp\) |
1005 |
- 400130: 00000000 nop |
1006 |
- 400134: 00621821 addu v1,v1,v0 |
1007 |
- 400138: 7c02283b rdhwr v0,\$5 |
1008 |
- 40013c: 3c030000 lui v1,0x0 |
1009 |
- 400140: 24639004 addiu v1,v1,-28668 |
1010 |
- 400144: 00621821 addu v1,v1,v0 |
1011 |
- 400148: 03c0e821 move sp,s8 |
1012 |
- 40014c: 8fbe0008 lw s8,8\(sp\) |
1013 |
- 400150: 03e00008 jr ra |
1014 |
- 400154: 27bd0010 addiu sp,sp,16 |
1015 |
+00400[0-9a-f]{3} <__start>: |
1016 |
+ 400[0-9a-f]{3}: 3c1c0fc0 lui gp,0xfc0 |
1017 |
+ 400[0-9a-f]{3}: 279c7f30 addiu gp,gp,32560 |
1018 |
+ 400[0-9a-f]{3}: 0399e021 addu gp,gp,t9 |
1019 |
+ 400[0-9a-f]{3}: 27bdfff0 addiu sp,sp,-16 |
1020 |
+ 400[0-9a-f]{3}: afbe0008 sw s8,8\(sp\) |
1021 |
+ 400[0-9a-f]{3}: 03a0f021 move s8,sp |
1022 |
+ 400[0-9a-f]{3}: afbc0000 sw gp,0\(sp\) |
1023 |
+ 400[0-9a-f]{3}: 8f998018 lw t9,-32744\(gp\) |
1024 |
+ 400[0-9a-f]{3}: 27848028 addiu a0,gp,-32728 |
1025 |
+ 400[0-9a-f]{3}: 0320f809 jalr t9 |
1026 |
+ 400[0-9a-f]{3}: 00000000 nop |
1027 |
+ 400[0-9a-f]{3}: 8fdc0000 lw gp,0\(s8\) |
1028 |
+ 400[0-9a-f]{3}: 00000000 nop |
1029 |
+ 400[0-9a-f]{3}: 8f998018 lw t9,-32744\(gp\) |
1030 |
+ 400[0-9a-f]{3}: 27848020 addiu a0,gp,-32736 |
1031 |
+ 400[0-9a-f]{3}: 0320f809 jalr t9 |
1032 |
+ 400[0-9a-f]{3}: 00000000 nop |
1033 |
+ 400[0-9a-f]{3}: 8fdc0000 lw gp,0\(s8\) |
1034 |
+ 400[0-9a-f]{3}: 00401021 move v0,v0 |
1035 |
+ 400[0-9a-f]{3}: 3c030000 lui v1,0x0 |
1036 |
+ 400[0-9a-f]{3}: 24638000 addiu v1,v1,-32768 |
1037 |
+ 400[0-9a-f]{3}: 00621821 addu v1,v1,v0 |
1038 |
+ 400[0-9a-f]{3}: 7c02283b rdhwr v0,\$5 |
1039 |
+ 400[0-9a-f]{3}: 8f83801c lw v1,-32740\(gp\) |
1040 |
+ 400[0-9a-f]{3}: 00000000 nop |
1041 |
+ 400[0-9a-f]{3}: 00621821 addu v1,v1,v0 |
1042 |
+ 400[0-9a-f]{3}: 7c02283b rdhwr v0,\$5 |
1043 |
+ 400[0-9a-f]{3}: 3c030000 lui v1,0x0 |
1044 |
+ 400[0-9a-f]{3}: 24639004 addiu v1,v1,-28668 |
1045 |
+ 400[0-9a-f]{3}: 00621821 addu v1,v1,v0 |
1046 |
+ 400[0-9a-f]{3}: 03c0e821 move sp,s8 |
1047 |
+ 400[0-9a-f]{3}: 8fbe0008 lw s8,8\(sp\) |
1048 |
+ 400[0-9a-f]{3}: 03e00008 jr ra |
1049 |
+ 400[0-9a-f]{3}: 27bd0010 addiu sp,sp,16 |
1050 |
|
1051 |
-00400158 <__tls_get_addr>: |
1052 |
- 400158: 03e00008 jr ra |
1053 |
- 40015c: 00000000 nop |
1054 |
+00400[0-9a-f]{3} <__tls_get_addr>: |
1055 |
+ 400[0-9a-f]{3}: 03e00008 jr ra |
1056 |
+ 400[0-9a-f]{3}: 00000000 nop |
1057 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tls.d |
1058 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tls.d |
1059 |
@@ -9,45 +9,45 @@ |
1060 |
|
1061 |
Disassembly of section \.text: |
1062 |
|
1063 |
-0+100000e8 <_start>: |
1064 |
- 100000e8: 3c 6d 00 00 addis r3,r13,0 |
1065 |
- 100000ec: 60 00 00 00 nop |
1066 |
- 100000f0: 38 63 90 78 addi r3,r3,-28552 |
1067 |
- 100000f4: 3c 6d 00 00 addis r3,r13,0 |
1068 |
- 100000f8: 60 00 00 00 nop |
1069 |
- 100000fc: 38 63 10 00 addi r3,r3,4096 |
1070 |
- 10000100: 3c 6d 00 00 addis r3,r13,0 |
1071 |
- 10000104: 60 00 00 00 nop |
1072 |
- 10000108: 38 63 90 40 addi r3,r3,-28608 |
1073 |
- 1000010c: 3c 6d 00 00 addis r3,r13,0 |
1074 |
- 10000110: 60 00 00 00 nop |
1075 |
- 10000114: 38 63 10 00 addi r3,r3,4096 |
1076 |
- 10000118: 39 23 80 48 addi r9,r3,-32696 |
1077 |
- 1000011c: 3d 23 00 00 addis r9,r3,0 |
1078 |
- 10000120: 81 49 80 50 lwz r10,-32688\(r9\) |
1079 |
- 10000124: e9 22 80 10 ld r9,-32752\(r2\) |
1080 |
- 10000128: 7d 49 18 2a ldx r10,r9,r3 |
1081 |
- 1000012c: 3d 2d 00 00 addis r9,r13,0 |
1082 |
- 10000130: a1 49 90 60 lhz r10,-28576\(r9\) |
1083 |
- 10000134: 89 4d 90 68 lbz r10,-28568\(r13\) |
1084 |
- 10000138: 3d 2d 00 00 addis r9,r13,0 |
1085 |
- 1000013c: 99 49 90 70 stb r10,-28560\(r9\) |
1086 |
- 10000140: 3c 6d 00 00 addis r3,r13,0 |
1087 |
- 10000144: 60 00 00 00 nop |
1088 |
- 10000148: 38 63 90 00 addi r3,r3,-28672 |
1089 |
- 1000014c: 3c 6d 00 00 addis r3,r13,0 |
1090 |
- 10000150: 60 00 00 00 nop |
1091 |
- 10000154: 38 63 10 00 addi r3,r3,4096 |
1092 |
- 10000158: f9 43 80 08 std r10,-32760\(r3\) |
1093 |
- 1000015c: 3d 23 00 00 addis r9,r3,0 |
1094 |
- 10000160: 91 49 80 10 stw r10,-32752\(r9\) |
1095 |
- 10000164: e9 22 80 08 ld r9,-32760\(r2\) |
1096 |
- 10000168: 7d 49 19 2a stdx r10,r9,r3 |
1097 |
- 1000016c: 3d 2d 00 00 addis r9,r13,0 |
1098 |
- 10000170: b1 49 90 60 sth r10,-28576\(r9\) |
1099 |
- 10000174: e9 4d 90 2a lwa r10,-28632\(r13\) |
1100 |
- 10000178: 3d 2d 00 00 addis r9,r13,0 |
1101 |
- 1000017c: a9 49 90 30 lha r10,-28624\(r9\) |
1102 |
+0+10000[0-9a-f]{3} <_start>: |
1103 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1104 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1105 |
+ 10000[0-9a-f]{3}: 38 63 90 78 addi r3,r3,-28552 |
1106 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1107 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1108 |
+ 10000[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1109 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1110 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1111 |
+ 10000[0-9a-f]{3}: 38 63 90 40 addi r3,r3,-28608 |
1112 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1113 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1114 |
+ 10000[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1115 |
+ 10000[0-9a-f]{3}: 39 23 80 48 addi r9,r3,-32696 |
1116 |
+ 10000[0-9a-f]{3}: 3d 23 00 00 addis r9,r3,0 |
1117 |
+ 10000[0-9a-f]{3}: 81 49 80 50 lwz r10,-32688\(r9\) |
1118 |
+ 10000[0-9a-f]{3}: e9 22 80 10 ld r9,-32752\(r2\) |
1119 |
+ 10000[0-9a-f]{3}: 7d 49 18 2a ldx r10,r9,r3 |
1120 |
+ 10000[0-9a-f]{3}: 3d 2d 00 00 addis r9,r13,0 |
1121 |
+ 10000[0-9a-f]{3}: a1 49 90 60 lhz r10,-28576\(r9\) |
1122 |
+ 10000[0-9a-f]{3}: 89 4d 90 68 lbz r10,-28568\(r13\) |
1123 |
+ 10000[0-9a-f]{3}: 3d 2d 00 00 addis r9,r13,0 |
1124 |
+ 10000[0-9a-f]{3}: 99 49 90 70 stb r10,-28560\(r9\) |
1125 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1126 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1127 |
+ 10000[0-9a-f]{3}: 38 63 90 00 addi r3,r3,-28672 |
1128 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1129 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1130 |
+ 10000[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1131 |
+ 10000[0-9a-f]{3}: f9 43 80 08 std r10,-32760\(r3\) |
1132 |
+ 10000[0-9a-f]{3}: 3d 23 00 00 addis r9,r3,0 |
1133 |
+ 10000[0-9a-f]{3}: 91 49 80 10 stw r10,-32752\(r9\) |
1134 |
+ 10000[0-9a-f]{3}: e9 22 80 08 ld r9,-32760\(r2\) |
1135 |
+ 10000[0-9a-f]{3}: 7d 49 19 2a stdx r10,r9,r3 |
1136 |
+ 10000[0-9a-f]{3}: 3d 2d 00 00 addis r9,r13,0 |
1137 |
+ 10000[0-9a-f]{3}: b1 49 90 60 sth r10,-28576\(r9\) |
1138 |
+ 10000[0-9a-f]{3}: e9 4d 90 2a lwa r10,-28632\(r13\) |
1139 |
+ 10000[0-9a-f]{3}: 3d 2d 00 00 addis r9,r13,0 |
1140 |
+ 10000[0-9a-f]{3}: a9 49 90 30 lha r10,-28624\(r9\) |
1141 |
|
1142 |
-0+10000180 <\.__tls_get_addr>: |
1143 |
- 10000180: 4e 80 00 20 blr |
1144 |
+0+10000[0-9a-f]{3} <\.__tls_get_addr>: |
1145 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1146 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tls.g |
1147 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tls.g |
1148 |
@@ -8,5 +8,5 @@ |
1149 |
.*: +file format elf64-powerpc |
1150 |
|
1151 |
Contents of section \.got: |
1152 |
- 100101e0 00000000 100181e0 ffffffff ffff8018 .* |
1153 |
- 100101f0 ffffffff ffff8058 .* |
1154 |
+ 10010([0-9a-f]{3}) 00000000 10018\1 ffffffff ffff8018 .* |
1155 |
+ 10010[0-9a-f]{3} ffffffff ffff8058 .* |
1156 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tls32.d |
1157 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.d |
1158 |
@@ -9,42 +9,42 @@ |
1159 |
|
1160 |
Disassembly of section \.text: |
1161 |
|
1162 |
-0+1800094 <_start>: |
1163 |
- 1800094: 3c 62 00 00 addis r3,r2,0 |
1164 |
- 1800098: 38 63 90 3c addi r3,r3,-28612 |
1165 |
- 180009c: 3c 62 00 00 addis r3,r2,0 |
1166 |
- 18000a0: 38 63 10 00 addi r3,r3,4096 |
1167 |
- 18000a4: 3c 62 00 00 addis r3,r2,0 |
1168 |
- 18000a8: 38 63 90 20 addi r3,r3,-28640 |
1169 |
- 18000ac: 3c 62 00 00 addis r3,r2,0 |
1170 |
- 18000b0: 38 63 10 00 addi r3,r3,4096 |
1171 |
- 18000b4: 39 23 80 24 addi r9,r3,-32732 |
1172 |
- 18000b8: 3d 23 00 00 addis r9,r3,0 |
1173 |
- 18000bc: 81 49 80 28 lwz r10,-32728\(r9\) |
1174 |
- 18000c0: 3d 22 00 00 addis r9,r2,0 |
1175 |
- 18000c4: a1 49 90 30 lhz r10,-28624\(r9\) |
1176 |
- 18000c8: 89 42 90 34 lbz r10,-28620\(r2\) |
1177 |
- 18000cc: 3d 22 00 00 addis r9,r2,0 |
1178 |
- 18000d0: 99 49 90 38 stb r10,-28616\(r9\) |
1179 |
- 18000d4: 3c 62 00 00 addis r3,r2,0 |
1180 |
- 18000d8: 38 63 90 00 addi r3,r3,-28672 |
1181 |
- 18000dc: 3c 62 00 00 addis r3,r2,0 |
1182 |
- 18000e0: 38 63 10 00 addi r3,r3,4096 |
1183 |
- 18000e4: 91 43 80 04 stw r10,-32764\(r3\) |
1184 |
- 18000e8: 3d 23 00 00 addis r9,r3,0 |
1185 |
- 18000ec: 91 49 80 08 stw r10,-32760\(r9\) |
1186 |
- 18000f0: 3d 22 00 00 addis r9,r2,0 |
1187 |
- 18000f4: b1 49 90 30 sth r10,-28624\(r9\) |
1188 |
- 18000f8: a1 42 90 14 lhz r10,-28652\(r2\) |
1189 |
- 18000fc: 3d 22 00 00 addis r9,r2,0 |
1190 |
- 1800100: a9 49 90 18 lha r10,-28648\(r9\) |
1191 |
+0+1800[0-9a-f]{3} <_start>: |
1192 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1193 |
+ 1800[0-9a-f]{3}: 38 63 90 3c addi r3,r3,-28612 |
1194 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1195 |
+ 1800[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1196 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1197 |
+ 1800[0-9a-f]{3}: 38 63 90 20 addi r3,r3,-28640 |
1198 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1199 |
+ 1800[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1200 |
+ 1800[0-9a-f]{3}: 39 23 80 24 addi r9,r3,-32732 |
1201 |
+ 1800[0-9a-f]{3}: 3d 23 00 00 addis r9,r3,0 |
1202 |
+ 1800[0-9a-f]{3}: 81 49 80 28 lwz r10,-32728\(r9\) |
1203 |
+ 1800[0-9a-f]{3}: 3d 22 00 00 addis r9,r2,0 |
1204 |
+ 1800[0-9a-f]{3}: a1 49 90 30 lhz r10,-28624\(r9\) |
1205 |
+ 1800[0-9a-f]{3}: 89 42 90 34 lbz r10,-28620\(r2\) |
1206 |
+ 1800[0-9a-f]{3}: 3d 22 00 00 addis r9,r2,0 |
1207 |
+ 1800[0-9a-f]{3}: 99 49 90 38 stb r10,-28616\(r9\) |
1208 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1209 |
+ 1800[0-9a-f]{3}: 38 63 90 00 addi r3,r3,-28672 |
1210 |
+ 1800[0-9a-f]{3}: 3c 62 00 00 addis r3,r2,0 |
1211 |
+ 1800[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1212 |
+ 1800[0-9a-f]{3}: 91 43 80 04 stw r10,-32764\(r3\) |
1213 |
+ 1800[0-9a-f]{3}: 3d 23 00 00 addis r9,r3,0 |
1214 |
+ 1800[0-9a-f]{3}: 91 49 80 08 stw r10,-32760\(r9\) |
1215 |
+ 1800[0-9a-f]{3}: 3d 22 00 00 addis r9,r2,0 |
1216 |
+ 1800[0-9a-f]{3}: b1 49 90 30 sth r10,-28624\(r9\) |
1217 |
+ 1800[0-9a-f]{3}: a1 42 90 14 lhz r10,-28652\(r2\) |
1218 |
+ 1800[0-9a-f]{3}: 3d 22 00 00 addis r9,r2,0 |
1219 |
+ 1800[0-9a-f]{3}: a9 49 90 18 lha r10,-28648\(r9\) |
1220 |
|
1221 |
-0+1800104 <__tls_get_addr>: |
1222 |
- 1800104: 4e 80 00 20 blr |
1223 |
+0+1800[0-9a-f]{3} <__tls_get_addr>: |
1224 |
+ 1800[0-9a-f]{3}: 4e 80 00 20 blr |
1225 |
Disassembly of section \.got: |
1226 |
|
1227 |
-0+1810128 <_GLOBAL_OFFSET_TABLE_-0x4>: |
1228 |
- 1810128: 4e 80 00 21 blrl |
1229 |
+0+1810[0-9a-f]{3} <_GLOBAL_OFFSET_TABLE_-0x4>: |
1230 |
+ 1810[0-9a-f]{3}: 4e 80 00 21 blrl |
1231 |
|
1232 |
-0+181012c <_GLOBAL_OFFSET_TABLE_>: |
1233 |
+0+1810[0-9a-f]{3} <_GLOBAL_OFFSET_TABLE_>: |
1234 |
\.\.\. |
1235 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tls32.g |
1236 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.g |
1237 |
@@ -8,4 +8,4 @@ |
1238 |
.*: +file format elf32-powerpc |
1239 |
|
1240 |
Contents of section \.got: |
1241 |
- 1810128 4e800021 00000000 00000000 00000000 .* |
1242 |
+ 18101[0-9a-f]{2} 4e800021 00000000 00000000 00000000 .* |
1243 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tls32.t |
1244 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tls32.t |
1245 |
@@ -8,5 +8,5 @@ |
1246 |
.*: +file format elf32-powerpc |
1247 |
|
1248 |
Contents of section \.tdata: |
1249 |
- 1810108 12345678 23456789 3456789a 456789ab .* |
1250 |
- 1810118 56789abc 6789abcd 789abcde 00c0ffee .* |
1251 |
+ 18101[0-9a-f]{2} 12345678 23456789 3456789a 456789ab .* |
1252 |
+ 18101[0-9a-f]{2} 56789abc 6789abcd 789abcde 00c0ffee .* |
1253 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.d |
1254 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.d |
1255 |
@@ -44,4 +44,4 @@ Disassembly of section \.got: |
1256 |
.*: 4e 80 00 21 blrl |
1257 |
|
1258 |
.* <_GLOBAL_OFFSET_TABLE_>: |
1259 |
-.*: 01 81 02 b8 00 00 00 00 00 00 00 00 .* |
1260 |
+.*: 01 81 02 [bd]8 00 00 00 00 00 00 00 00 .* |
1261 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.g |
1262 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.g |
1263 |
@@ -8,4 +8,4 @@ |
1264 |
|
1265 |
Contents of section \.got: |
1266 |
.* 00000000 00000000 00000000 4e800021 .* |
1267 |
-.* 018102b8 00000000 00000000 .* |
1268 |
+.* 018102[bd]8 00000000 00000000 .* |
1269 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.r |
1270 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsexe32.r |
1271 |
@@ -33,13 +33,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
1272 |
|
1273 |
Program Headers: |
1274 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align |
1275 |
- +PHDR +0x000034 0x01800034 0x01800034 0x000c0 0x000c0 R E 0x4 |
1276 |
- +INTERP +0x0000f4 0x018000f4 0x018000f4 0x00011 0x00011 R +0x1 |
1277 |
+ +PHDR +0x000034 0x01800034 0x01800034 (0x000[0-9a-f]{2}) \1 R E 0x4 |
1278 |
+ +INTERP +0x000([0-9a-f]{3}) 0x01800\1 0x01800\1 0x00011 0x00011 R +0x1 |
1279 |
+\[Requesting program interpreter: .*\] |
1280 |
+LOAD .* R E 0x10000 |
1281 |
+LOAD .* RWE 0x10000 |
1282 |
+DYNAMIC .* RW +0x4 |
1283 |
+TLS .* 0x0001c 0x00038 R +0x4 |
1284 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1285 |
|
1286 |
Section to Segment mapping: |
1287 |
+Segment Sections\.\.\. |
1288 |
@@ -49,6 +50,7 @@ Program Headers: |
1289 |
+03 +\.tdata \.dynamic \.got \.plt |
1290 |
+04 +\.dynamic |
1291 |
+05 +\.tdata \.tbss |
1292 |
+ +06 + |
1293 |
|
1294 |
Relocation section '\.rela\.dyn' at offset .* contains 2 entries: |
1295 |
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend |
1296 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsmark.d |
1297 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsmark.d |
1298 |
@@ -9,29 +9,29 @@ |
1299 |
|
1300 |
Disassembly of section \.text: |
1301 |
|
1302 |
-0+100000e8 <_start>: |
1303 |
- 100000e8: 48 00 00 18 b 10000100 <_start\+0x18> |
1304 |
- 100000ec: 60 00 00 00 nop |
1305 |
- 100000f0: 38 63 90 00 addi r3,r3,-28672 |
1306 |
- 100000f4: e8 83 00 00 ld r4,0\(r3\) |
1307 |
- 100000f8: 3c 6d 00 00 addis r3,r13,0 |
1308 |
- 100000fc: 48 00 00 0c b 10000108 <_start\+0x20> |
1309 |
- 10000100: 3c 6d 00 00 addis r3,r13,0 |
1310 |
- 10000104: 4b ff ff e8 b 100000ec <_start\+0x4> |
1311 |
- 10000108: 60 00 00 00 nop |
1312 |
- 1000010c: 38 63 10 00 addi r3,r3,4096 |
1313 |
- 10000110: e8 83 80 00 ld r4,-32768\(r3\) |
1314 |
- 10000114: 3c 6d 00 00 addis r3,r13,0 |
1315 |
- 10000118: 48 00 00 0c b 10000124 <_start\+0x3c> |
1316 |
- 1000011c: 3c 6d 00 00 addis r3,r13,0 |
1317 |
- 10000120: 48 00 00 14 b 10000134 <_start\+0x4c> |
1318 |
- 10000124: 60 00 00 00 nop |
1319 |
- 10000128: 38 63 90 04 addi r3,r3,-28668 |
1320 |
- 1000012c: e8 a3 00 00 ld r5,0\(r3\) |
1321 |
- 10000130: 4b ff ff ec b 1000011c <_start\+0x34> |
1322 |
- 10000134: 60 00 00 00 nop |
1323 |
- 10000138: 38 63 10 00 addi r3,r3,4096 |
1324 |
- 1000013c: e8 a3 80 04 ld r5,-32764\(r3\) |
1325 |
+0+10000[0-9a-f]{3} <_start>: |
1326 |
+ 10000[0-9a-f]{3}: 48 00 00 18 b 10000[0-9a-f]{3} <_start\+0x18> |
1327 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1328 |
+ 10000[0-9a-f]{3}: 38 63 90 00 addi r3,r3,-28672 |
1329 |
+ 10000[0-9a-f]{3}: e8 83 00 00 ld r4,0\(r3\) |
1330 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1331 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b 10000[0-9a-f]{3} <_start\+0x20> |
1332 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1333 |
+ 10000[0-9a-f]{3}: 4b ff ff e8 b 10000[0-9a-f]{3} <_start\+0x4> |
1334 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1335 |
+ 10000[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1336 |
+ 10000[0-9a-f]{3}: e8 83 80 00 ld r4,-32768\(r3\) |
1337 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1338 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b 10000[0-9a-f]{3} <_start\+0x3c> |
1339 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1340 |
+ 10000[0-9a-f]{3}: 48 00 00 14 b 10000[0-9a-f]{3} <_start\+0x4c> |
1341 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1342 |
+ 10000[0-9a-f]{3}: 38 63 90 04 addi r3,r3,-28668 |
1343 |
+ 10000[0-9a-f]{3}: e8 a3 00 00 ld r5,0\(r3\) |
1344 |
+ 10000[0-9a-f]{3}: 4b ff ff ec b 10000[0-9a-f]{3} <_start\+0x34> |
1345 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1346 |
+ 10000[0-9a-f]{3}: 38 63 10 00 addi r3,r3,4096 |
1347 |
+ 10000[0-9a-f]{3}: e8 a3 80 04 ld r5,-32764\(r3\) |
1348 |
|
1349 |
-0+10000140 <\.__tls_get_addr>: |
1350 |
- 10000140: 4e 80 00 20 blr |
1351 |
+0+10000[0-9a-f]{3} <\.__tls_get_addr>: |
1352 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1353 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsmark32.d |
1354 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsmark32.d |
1355 |
@@ -9,17 +9,17 @@ |
1356 |
|
1357 |
Disassembly of section \.text: |
1358 |
|
1359 |
-0+1800094 <_start>: |
1360 |
- 1800094: 48 00 00 14 b 18000a8 <_start\+0x14> |
1361 |
- 1800098: 38 63 90 00 addi r3,r3,-28672 |
1362 |
- 180009c: 80 83 00 00 lwz r4,0\(r3\) |
1363 |
- 18000a0: 3c 62 00 00 addis r3,r2,0 |
1364 |
- 18000a4: 48 00 00 0c b 18000b0 <_start\+0x1c> |
1365 |
- 18000a8: 3c 62 00 00 addis r3,r2,0 |
1366 |
- 18000ac: 4b ff ff ec b 1800098 <_start\+0x4> |
1367 |
- 18000b0: 38 63 10 00 addi r3,r3,4096 |
1368 |
- 18000b4: 80 83 80 00 lwz r4,-32768\(r3\) |
1369 |
+0+18000[0-9a-f]{2} <_start>: |
1370 |
+ 18000[0-9a-f]{2}: 48 00 00 14 b 18000[0-9a-f]{2} <_start\+0x14> |
1371 |
+ 18000[0-9a-f]{2}: 38 63 90 00 addi r3,r3,-28672 |
1372 |
+ 18000[0-9a-f]{2}: 80 83 00 00 lwz r4,0\(r3\) |
1373 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1374 |
+ 18000[0-9a-f]{2}: 48 00 00 0c b 18000[0-9a-f]{2} <_start\+0x1c> |
1375 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1376 |
+ 18000[0-9a-f]{2}: 4b ff ff ec b 18000[0-9a-f]{2} <_start\+0x4> |
1377 |
+ 18000[0-9a-f]{2}: 38 63 10 00 addi r3,r3,4096 |
1378 |
+ 18000[0-9a-f]{2}: 80 83 80 00 lwz r4,-32768\(r3\) |
1379 |
|
1380 |
-0+18000b8 <__tls_get_addr>: |
1381 |
- 18000b8: 4e 80 00 20 blr |
1382 |
-#pass |
1383 |
\ No newline at end of file |
1384 |
+0+18000[0-9a-f]{2} <__tls_get_addr>: |
1385 |
+ 18000[0-9a-f]{2}: 4e 80 00 20 blr |
1386 |
+#pass |
1387 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1.d |
1388 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1.d |
1389 |
@@ -9,17 +9,17 @@ |
1390 |
|
1391 |
Disassembly of section \.text: |
1392 |
|
1393 |
-0+100000e8 <\.__tls_get_addr>: |
1394 |
- 100000e8: 4e 80 00 20 blr |
1395 |
+0+10000[0-9a-f]{3} <\.__tls_get_addr>: |
1396 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1397 |
|
1398 |
Disassembly of section \.no_opt1: |
1399 |
|
1400 |
-0+100000ec <\.no_opt1>: |
1401 |
- 100000ec: 38 62 80 08 addi r3,r2,-32760 |
1402 |
- 100000f0: 2c 24 00 00 cmpdi r4,0 |
1403 |
- 100000f4: 41 82 00 10 beq- .* |
1404 |
- 100000f8: 4b ff ff f1 bl 100000e8 <\.__tls_get_addr> |
1405 |
- 100000fc: 60 00 00 00 nop |
1406 |
- 10000100: 48 00 00 0c b .* |
1407 |
- 10000104: 4b ff ff e5 bl 100000e8 <\.__tls_get_addr> |
1408 |
- 10000108: 60 00 00 00 nop |
1409 |
+0+10000[0-9a-f]{3} <\.no_opt1>: |
1410 |
+ 10000[0-9a-f]{3}: 38 62 80 08 addi r3,r2,-32760 |
1411 |
+ 10000[0-9a-f]{3}: 2c 24 00 00 cmpdi r4,0 |
1412 |
+ 10000[0-9a-f]{3}: 41 82 00 10 beq- .* |
1413 |
+ 10000[0-9a-f]{3}: 4b ff ff f1 bl 10000[0-9a-f]{3} <\.__tls_get_addr> |
1414 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1415 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1416 |
+ 10000[0-9a-f]{3}: 4b ff ff e5 bl 10000[0-9a-f]{3} <\.__tls_get_addr> |
1417 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1418 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1_32.d |
1419 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt1_32.d |
1420 |
@@ -9,16 +9,16 @@ |
1421 |
|
1422 |
Disassembly of section \.text: |
1423 |
|
1424 |
-0+1800094 <__tls_get_addr>: |
1425 |
- 1800094: 4e 80 00 20 blr |
1426 |
+0+18000[0-9a-f]{2} <__tls_get_addr>: |
1427 |
+ 18000[0-9a-f]{2}: 4e 80 00 20 blr |
1428 |
|
1429 |
Disassembly of section \.no_opt1: |
1430 |
|
1431 |
-0+1800098 <\.no_opt1>: |
1432 |
- 1800098: 38 6d ff f4 addi r3,r13,-12 |
1433 |
- 180009c: 2c 04 00 00 cmpwi r4,0 |
1434 |
- 18000a0: 41 82 00 0c beq- .* |
1435 |
- 18000a4: 4b ff ff f1 bl 1800094 <__tls_get_addr> |
1436 |
- 18000a8: 48 00 00 08 b .* |
1437 |
- 18000ac: 4b ff ff e9 bl 1800094 <__tls_get_addr> |
1438 |
+0+18000[0-9a-f]{2} <\.no_opt1>: |
1439 |
+ 18000[0-9a-f]{2}: 38 6d ff f4 addi r3,r13,-12 |
1440 |
+ 18000[0-9a-f]{2}: 2c 04 00 00 cmpwi r4,0 |
1441 |
+ 18000[0-9a-f]{2}: 41 82 00 0c beq- .* |
1442 |
+ 18000[0-9a-f]{2}: 4b ff ff f1 bl 18000[0-9a-f]{2} <__tls_get_addr> |
1443 |
+ 18000[0-9a-f]{2}: 48 00 00 08 b .* |
1444 |
+ 18000[0-9a-f]{2}: 4b ff ff e9 bl 18000[0-9a-f]{2} <__tls_get_addr> |
1445 |
#pass |
1446 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2.d |
1447 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2.d |
1448 |
@@ -9,15 +9,15 @@ |
1449 |
|
1450 |
Disassembly of section \.text: |
1451 |
|
1452 |
-0+100000e8 <\.__tls_get_addr>: |
1453 |
- 100000e8: 4e 80 00 20 blr |
1454 |
+0+10000[0-9a-f]{3} <\.__tls_get_addr>: |
1455 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1456 |
|
1457 |
Disassembly of section \.no_opt2: |
1458 |
|
1459 |
-0+100000ec <\.no_opt2>: |
1460 |
- 100000ec: 38 62 80 08 addi r3,r2,-32760 |
1461 |
- 100000f0: 2c 24 00 00 cmpdi r4,0 |
1462 |
- 100000f4: 41 82 00 08 beq- .* |
1463 |
- 100000f8: 38 62 80 08 addi r3,r2,-32760 |
1464 |
- 100000fc: 4b ff ff ed bl 100000e8 <\.__tls_get_addr> |
1465 |
- 10000100: 60 00 00 00 nop |
1466 |
+0+10000[0-9a-f]{3} <\.no_opt2>: |
1467 |
+ 10000[0-9a-f]{3}: 38 62 80 08 addi r3,r2,-32760 |
1468 |
+ 10000[0-9a-f]{3}: 2c 24 00 00 cmpdi r4,0 |
1469 |
+ 10000[0-9a-f]{3}: 41 82 00 08 beq- .* |
1470 |
+ 10000[0-9a-f]{3}: 38 62 80 08 addi r3,r2,-32760 |
1471 |
+ 10000[0-9a-f]{3}: 4b ff ff ed bl 10000[0-9a-f]{3} <\.__tls_get_addr> |
1472 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1473 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2_32.d |
1474 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt2_32.d |
1475 |
@@ -9,15 +9,15 @@ |
1476 |
|
1477 |
Disassembly of section \.text: |
1478 |
|
1479 |
-0+1800094 <__tls_get_addr>: |
1480 |
- 1800094: 4e 80 00 20 blr |
1481 |
+0+18000[0-9a-f]{2} <__tls_get_addr>: |
1482 |
+ 18000[0-9a-f]{2}: 4e 80 00 20 blr |
1483 |
|
1484 |
Disassembly of section \.no_opt2: |
1485 |
|
1486 |
-0+1800098 <\.no_opt2>: |
1487 |
- 1800098: 38 6d ff f4 addi r3,r13,-12 |
1488 |
- 180009c: 2c 04 00 00 cmpwi r4,0 |
1489 |
- 18000a0: 41 82 00 08 beq- .* |
1490 |
- 18000a4: 38 6d ff f4 addi r3,r13,-12 |
1491 |
- 18000a8: 4b ff ff ed bl 1800094 <__tls_get_addr> |
1492 |
+0+18000[0-9a-f]{2} <\.no_opt2>: |
1493 |
+ 18000[0-9a-f]{2}: 38 6d ff f4 addi r3,r13,-12 |
1494 |
+ 18000[0-9a-f]{2}: 2c 04 00 00 cmpwi r4,0 |
1495 |
+ 18000[0-9a-f]{2}: 41 82 00 08 beq- .* |
1496 |
+ 18000[0-9a-f]{2}: 38 6d ff f4 addi r3,r13,-12 |
1497 |
+ 18000[0-9a-f]{2}: 4b ff ff ed bl 18000[0-9a-f]{2} <__tls_get_addr> |
1498 |
#pass |
1499 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3.d |
1500 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3.d |
1501 |
@@ -9,18 +9,18 @@ |
1502 |
|
1503 |
Disassembly of section \.text: |
1504 |
|
1505 |
-00000000100000e8 <\.__tls_get_addr>: |
1506 |
- 100000e8: 4e 80 00 20 blr |
1507 |
+0000000010000[0-9a-f]{3} <\.__tls_get_addr>: |
1508 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1509 |
|
1510 |
Disassembly of section \.no_opt3: |
1511 |
|
1512 |
-00000000100000ec <\.no_opt3>: |
1513 |
- 100000ec: 38 62 80 08 addi r3,r2,-32760 |
1514 |
- 100000f0: 48 00 00 0c b .* |
1515 |
- 100000f4: 38 62 80 18 addi r3,r2,-32744 |
1516 |
- 100000f8: 48 00 00 10 b .* |
1517 |
- 100000fc: 4b ff ff ed bl 100000e8 <\.__tls_get_addr> |
1518 |
- 10000100: 60 00 00 00 nop |
1519 |
- 10000104: 48 00 00 0c b .* |
1520 |
- 10000108: 4b ff ff e1 bl 100000e8 <\.__tls_get_addr> |
1521 |
- 1000010c: 60 00 00 00 nop |
1522 |
+0000000010000[0-9a-f]{3} <\.no_opt3>: |
1523 |
+ 10000[0-9a-f]{3}: 38 62 80 08 addi r3,r2,-32760 |
1524 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1525 |
+ 10000[0-9a-f]{3}: 38 62 80 18 addi r3,r2,-32744 |
1526 |
+ 10000[0-9a-f]{3}: 48 00 00 10 b .* |
1527 |
+ 10000[0-9a-f]{3}: 4b ff ff ed bl 10000[0-9a-f]{3} <\.__tls_get_addr> |
1528 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1529 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1530 |
+ 10000[0-9a-f]{3}: 4b ff ff e1 bl 10000[0-9a-f]{3} <\.__tls_get_addr> |
1531 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1532 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3_32.d |
1533 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt3_32.d |
1534 |
@@ -9,17 +9,17 @@ |
1535 |
|
1536 |
Disassembly of section \.text: |
1537 |
|
1538 |
-0+1800094 <__tls_get_addr>: |
1539 |
- 1800094: 4e 80 00 20 blr |
1540 |
+0+18000[0-9a-f]{2} <__tls_get_addr>: |
1541 |
+ 18000[0-9a-f]{2}: 4e 80 00 20 blr |
1542 |
|
1543 |
Disassembly of section \.no_opt3: |
1544 |
|
1545 |
-0+1800098 <\.no_opt3>: |
1546 |
- 1800098: 38 6d ff ec addi r3,r13,-20 |
1547 |
- 180009c: 48 00 00 0c b .* |
1548 |
- 18000a0: 38 6d ff f4 addi r3,r13,-12 |
1549 |
- 18000a4: 48 00 00 0c b .* |
1550 |
- 18000a8: 4b ff ff ed bl 1800094 <__tls_get_addr> |
1551 |
- 18000ac: 48 00 00 08 b .* |
1552 |
- 18000b0: 4b ff ff e5 bl 1800094 <__tls_get_addr> |
1553 |
+0+18000[0-9a-f]{2} <\.no_opt3>: |
1554 |
+ 18000[0-9a-f]{2}: 38 6d ff ec addi r3,r13,-20 |
1555 |
+ 18000[0-9a-f]{2}: 48 00 00 0c b .* |
1556 |
+ 18000[0-9a-f]{2}: 38 6d ff f4 addi r3,r13,-12 |
1557 |
+ 18000[0-9a-f]{2}: 48 00 00 0c b .* |
1558 |
+ 18000[0-9a-f]{2}: 4b ff ff ed bl 18000[0-9a-f]{2} <__tls_get_addr> |
1559 |
+ 18000[0-9a-f]{2}: 48 00 00 08 b .* |
1560 |
+ 18000[0-9a-f]{2}: 4b ff ff e5 bl 18000[0-9a-f]{2} <__tls_get_addr> |
1561 |
#pass |
1562 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4.d |
1563 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4.d |
1564 |
@@ -9,40 +9,40 @@ |
1565 |
|
1566 |
Disassembly of section \.text: |
1567 |
|
1568 |
-0+100000e8 <\.__tls_get_addr>: |
1569 |
- 100000e8: 4e 80 00 20 blr |
1570 |
+0+10000[0-9a-f]{3} <\.__tls_get_addr>: |
1571 |
+ 10000[0-9a-f]{3}: 4e 80 00 20 blr |
1572 |
|
1573 |
Disassembly of section \.opt1: |
1574 |
|
1575 |
-0+100000ec <\.opt1>: |
1576 |
- 100000ec: 3c 6d 00 00 addis r3,r13,0 |
1577 |
- 100000f0: 2c 24 00 00 cmpdi r4,0 |
1578 |
- 100000f4: 41 82 00 10 beq- .* |
1579 |
- 100000f8: 60 00 00 00 nop |
1580 |
- 100000fc: 38 63 90 10 addi r3,r3,-28656 |
1581 |
- 10000100: 48 00 00 0c b .* |
1582 |
- 10000104: 60 00 00 00 nop |
1583 |
- 10000108: 38 63 90 10 addi r3,r3,-28656 |
1584 |
+0+10000[0-9a-f]{3} <\.opt1>: |
1585 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1586 |
+ 10000[0-9a-f]{3}: 2c 24 00 00 cmpdi r4,0 |
1587 |
+ 10000[0-9a-f]{3}: 41 82 00 10 beq- .* |
1588 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1589 |
+ 10000[0-9a-f]{3}: 38 63 90 10 addi r3,r3,-28656 |
1590 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1591 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1592 |
+ 10000[0-9a-f]{3}: 38 63 90 10 addi r3,r3,-28656 |
1593 |
|
1594 |
Disassembly of section \.opt2: |
1595 |
|
1596 |
-0+1000010c <\.opt2>: |
1597 |
- 1000010c: 3c 6d 00 00 addis r3,r13,0 |
1598 |
- 10000110: 2c 24 00 00 cmpdi r4,0 |
1599 |
- 10000114: 41 82 00 08 beq- .* |
1600 |
- 10000118: 3c 6d 00 00 addis r3,r13,0 |
1601 |
- 1000011c: 60 00 00 00 nop |
1602 |
- 10000120: 38 63 90 10 addi r3,r3,-28656 |
1603 |
+0+10000[0-9a-f]{3} <\.opt2>: |
1604 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1605 |
+ 10000[0-9a-f]{3}: 2c 24 00 00 cmpdi r4,0 |
1606 |
+ 10000[0-9a-f]{3}: 41 82 00 08 beq- .* |
1607 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1608 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1609 |
+ 10000[0-9a-f]{3}: 38 63 90 10 addi r3,r3,-28656 |
1610 |
|
1611 |
Disassembly of section \.opt3: |
1612 |
|
1613 |
-0+10000124 <\.opt3>: |
1614 |
- 10000124: 3c 6d 00 00 addis r3,r13,0 |
1615 |
- 10000128: 48 00 00 0c b .* |
1616 |
- 1000012c: 3c 6d 00 00 addis r3,r13,0 |
1617 |
- 10000130: 48 00 00 10 b .* |
1618 |
- 10000134: 60 00 00 00 nop |
1619 |
- 10000138: 38 63 90 10 addi r3,r3,-28656 |
1620 |
- 1000013c: 48 00 00 0c b .* |
1621 |
- 10000140: 60 00 00 00 nop |
1622 |
- 10000144: 38 63 90 08 addi r3,r3,-28664 |
1623 |
+0+10000[0-9a-f]{3} <\.opt3>: |
1624 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1625 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1626 |
+ 10000[0-9a-f]{3}: 3c 6d 00 00 addis r3,r13,0 |
1627 |
+ 10000[0-9a-f]{3}: 48 00 00 10 b .* |
1628 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1629 |
+ 10000[0-9a-f]{3}: 38 63 90 10 addi r3,r3,-28656 |
1630 |
+ 10000[0-9a-f]{3}: 48 00 00 0c b .* |
1631 |
+ 10000[0-9a-f]{3}: 60 00 00 00 nop |
1632 |
+ 10000[0-9a-f]{3}: 38 63 90 08 addi r3,r3,-28664 |
1633 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4_32.d |
1634 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsopt4_32.d |
1635 |
@@ -9,36 +9,36 @@ |
1636 |
|
1637 |
Disassembly of section \.text: |
1638 |
|
1639 |
-0+1800094 <__tls_get_addr>: |
1640 |
- 1800094: 4e 80 00 20 blr |
1641 |
+0+18000[0-9a-f]{2} <__tls_get_addr>: |
1642 |
+ 18000[0-9a-f]{2}: 4e 80 00 20 blr |
1643 |
|
1644 |
Disassembly of section \.opt1: |
1645 |
|
1646 |
-0+1800098 <\.opt1>: |
1647 |
- 1800098: 3c 62 00 00 addis r3,r2,0 |
1648 |
- 180009c: 2c 04 00 00 cmpwi r4,0 |
1649 |
- 18000a0: 41 82 00 0c beq- .* |
1650 |
- 18000a4: 38 63 90 10 addi r3,r3,-28656 |
1651 |
- 18000a8: 48 00 00 08 b .* |
1652 |
- 18000ac: 38 63 90 10 addi r3,r3,-28656 |
1653 |
+0+18000[0-9a-f]{2} <\.opt1>: |
1654 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1655 |
+ 18000[0-9a-f]{2}: 2c 04 00 00 cmpwi r4,0 |
1656 |
+ 18000[0-9a-f]{2}: 41 82 00 0c beq- .* |
1657 |
+ 18000[0-9a-f]{2}: 38 63 90 10 addi r3,r3,-28656 |
1658 |
+ 18000[0-9a-f]{2}: 48 00 00 08 b .* |
1659 |
+ 18000[0-9a-f]{2}: 38 63 90 10 addi r3,r3,-28656 |
1660 |
|
1661 |
Disassembly of section \.opt2: |
1662 |
|
1663 |
-0+18000b0 <\.opt2>: |
1664 |
- 18000b0: 3c 62 00 00 addis r3,r2,0 |
1665 |
- 18000b4: 2c 04 00 00 cmpwi r4,0 |
1666 |
- 18000b8: 41 82 00 08 beq- .* |
1667 |
- 18000bc: 3c 62 00 00 addis r3,r2,0 |
1668 |
- 18000c0: 38 63 90 10 addi r3,r3,-28656 |
1669 |
+0+18000[0-9a-f]{2} <\.opt2>: |
1670 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1671 |
+ 18000[0-9a-f]{2}: 2c 04 00 00 cmpwi r4,0 |
1672 |
+ 18000[0-9a-f]{2}: 41 82 00 08 beq- .* |
1673 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1674 |
+ 18000[0-9a-f]{2}: 38 63 90 10 addi r3,r3,-28656 |
1675 |
|
1676 |
Disassembly of section \.opt3: |
1677 |
|
1678 |
-0+18000c4 <\.opt3>: |
1679 |
- 18000c4: 3c 62 00 00 addis r3,r2,0 |
1680 |
- 18000c8: 48 00 00 0c b .* |
1681 |
- 18000cc: 3c 62 00 00 addis r3,r2,0 |
1682 |
- 18000d0: 48 00 00 0c b .* |
1683 |
- 18000d4: 38 63 90 10 addi r3,r3,-28656 |
1684 |
- 18000d8: 48 00 00 08 b .* |
1685 |
- 18000dc: 38 63 90 08 addi r3,r3,-28664 |
1686 |
+0+18000[0-9a-f]{2} <\.opt3>: |
1687 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1688 |
+ 18000[0-9a-f]{2}: 48 00 00 0c b .* |
1689 |
+ 18000[0-9a-f]{2}: 3c 62 00 00 addis r3,r2,0 |
1690 |
+ 18000[0-9a-f]{2}: 48 00 00 0c b .* |
1691 |
+ 18000[0-9a-f]{2}: 38 63 90 10 addi r3,r3,-28656 |
1692 |
+ 18000[0-9a-f]{2}: 48 00 00 08 b .* |
1693 |
+ 18000[0-9a-f]{2}: 38 63 90 08 addi r3,r3,-28664 |
1694 |
#pass |
1695 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.d |
1696 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.d |
1697 |
@@ -42,5 +42,5 @@ Disassembly of section \.got: |
1698 |
.* <\.got>: |
1699 |
\.\.\. |
1700 |
.*: 4e 80 00 21 blrl |
1701 |
-.*: 00 01 03 ec .* |
1702 |
+.*: 00 01 [0-9a-f]{2} [0-9a-f]{2} .* |
1703 |
\.\.\. |
1704 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.g |
1705 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.g |
1706 |
@@ -9,5 +9,5 @@ |
1707 |
Contents of section \.got: |
1708 |
.* 00000000 00000000 00000000 00000000 .* |
1709 |
.* 00000000 00000000 00000000 00000000 .* |
1710 |
-.* 00000000 4e800021 000103ec 00000000 .* |
1711 |
+.* 00000000 4e800021 00010[0-9a-f]{3} 00000000 .* |
1712 |
.* 00000000 .* |
1713 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.r |
1714 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlsso32.r |
1715 |
@@ -35,6 +35,7 @@ Program Headers: |
1716 |
+LOAD .* RWE 0x10000 |
1717 |
+DYNAMIC .* RW +0x4 |
1718 |
+TLS .* 0x0+1c 0x0+38 R +0x4 |
1719 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1720 |
|
1721 |
Section to Segment mapping: |
1722 |
+Segment Sections\.\.\. |
1723 |
@@ -42,6 +43,7 @@ Program Headers: |
1724 |
+01 +\.tdata \.dynamic \.got \.plt |
1725 |
+02 +\.dynamic |
1726 |
+03 +\.tdata \.tbss |
1727 |
+ +04 + |
1728 |
|
1729 |
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 18 entries: |
1730 |
Offset +Info +Type +Sym\. Value +Symbol's Name \+ Addend |
1731 |
@@ -52,9 +54,9 @@ Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 18 entries: |
1732 |
[0-9a-f ]+R_PPC_TPREL16 +0+30 +le0 \+ 0 |
1733 |
[0-9a-f ]+R_PPC_TPREL16_HA +0+34 +le1 \+ 0 |
1734 |
[0-9a-f ]+R_PPC_TPREL16_LO +0+34 +le1 \+ 0 |
1735 |
-[0-9a-f ]+R_PPC_TPREL16 +0+103d0 +\.tdata \+ 103e4 |
1736 |
-[0-9a-f ]+R_PPC_TPREL16_HA +0+103d0 +\.tdata \+ 103e8 |
1737 |
-[0-9a-f ]+R_PPC_TPREL16_LO +0+103d0 +\.tdata \+ 103e8 |
1738 |
+[0-9a-f ]+R_PPC_TPREL16 +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} |
1739 |
+[0-9a-f ]+R_PPC_TPREL16_HA +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} |
1740 |
+[0-9a-f ]+R_PPC_TPREL16_LO +0+103[df]0 +\.tdata \+ 10[0-9a-f]{3} |
1741 |
[0-9a-f ]+R_PPC_DTPMOD32 +0+ |
1742 |
[0-9a-f ]+R_PPC_DTPREL32 +0+ |
1743 |
[0-9a-f ]+R_PPC_DTPMOD32 +0+ |
1744 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.g |
1745 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.g |
1746 |
@@ -8,8 +8,8 @@ |
1747 |
.*: +file format elf64-powerpc |
1748 |
|
1749 |
Contents of section \.got: |
1750 |
- 100101a0 00000000 00000001 00000000 00000000 .* |
1751 |
- 100101b0 00000000 00000001 00000000 00000000 .* |
1752 |
- 100101c0 00000000 00000001 00000000 00000000 .* |
1753 |
- 100101d0 00000000 00000001 00000000 00000000 .* |
1754 |
- 100101e0 ffffffff ffff8060 00000000 00000000 .* |
1755 |
+ 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* |
1756 |
+ 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* |
1757 |
+ 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* |
1758 |
+ 10010[0-9a-f]{3} 00000000 00000001 00000000 00000000 .* |
1759 |
+ 10010[0-9a-f]{3} ffffffff ffff8060 00000000 00000000 .* |
1760 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.t |
1761 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstoc.t |
1762 |
@@ -8,7 +8,7 @@ |
1763 |
.*: +file format elf64-powerpc |
1764 |
|
1765 |
Contents of section \.tdata: |
1766 |
- 10010148 00c0ffee 00000000 12345678 9abcdef0 .* |
1767 |
- 10010158 23456789 abcdef01 3456789a bcdef012 .* |
1768 |
- 10010168 456789ab cdef0123 56789abc def01234 .* |
1769 |
- 10010178 6789abcd ef012345 789abcde f0123456 .* |
1770 |
+ 10010180 00c0ffee 00000000 12345678 9abcdef0 .* |
1771 |
+ 10010190 23456789 abcdef01 3456789a bcdef012 .* |
1772 |
+ 100101a0 456789ab cdef0123 56789abc def01234 .* |
1773 |
+ 100101b0 6789abcd ef012345 789abcde f0123456 .* |
1774 |
--- binutils-2.22/ld/testsuite/ld-powerpc/tlstocso.g |
1775 |
+++ binutils-2.22/ld/testsuite/ld-powerpc/tlstocso.g |
1776 |
@@ -7,7 +7,7 @@ |
1777 |
.*: +file format elf64-powerpc |
1778 |
|
1779 |
Contents of section \.got: |
1780 |
-.* 00000000 000186c0 00000000 00000000 .* |
1781 |
+.* 00000000 000186f8 00000000 00000000 .* |
1782 |
.* 00000000 00000000 00000000 00000000 .* |
1783 |
.* 00000000 00000000 00000000 00000000 .* |
1784 |
.* 00000000 00000000 00000000 00000000 .* |
1785 |
--- binutils-2.22/ld/testsuite/ld-s390/tlsbin.rd |
1786 |
+++ binutils-2.22/ld/testsuite/ld-s390/tlsbin.rd |
1787 |
@@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
1788 |
|
1789 |
Program Headers: |
1790 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
1791 |
- +PHDR +0x0+34 0x0+400034 0x0+400034 0x0+c0 0x0+c0 R E 0x4 |
1792 |
- +INTERP +0x0+f4 0x0+4000f4 0x0+4000f4 0x0+11 0x0+11 R +0x1 |
1793 |
+ +PHDR +0x0+34 0x0+400034 0x0+400034 0x0+e0 0x0+e0 R E 0x4 |
1794 |
+ +INTERP +0x0+114 0x0+400114 0x0+400114 0x0+11 0x0+11 R +0x1 |
1795 |
.*Requesting program interpreter.* |
1796 |
+LOAD .* R E 0x1000 |
1797 |
+LOAD .* RW +0x1000 |
1798 |
+DYNAMIC .* RW +0x4 |
1799 |
+TLS .* 0x0+60 0x0+a0 R +0x20 |
1800 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1801 |
|
1802 |
Section to Segment mapping: |
1803 |
+Segment Sections... |
1804 |
@@ -52,6 +53,7 @@ Program Headers: |
1805 |
+03 +.tdata .dynamic .got * |
1806 |
+04 +.dynamic * |
1807 |
+05 +.tdata .tbss * |
1808 |
+ +06 + |
1809 |
|
1810 |
Relocation section '.rela.dyn' at offset .* contains 4 entries: |
1811 |
Offset +Info +Type +Sym.Value +Sym. Name \+ Addend |
1812 |
--- binutils-2.22/ld/testsuite/ld-s390/tlsbin_64.rd |
1813 |
+++ binutils-2.22/ld/testsuite/ld-s390/tlsbin_64.rd |
1814 |
@@ -36,13 +36,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
1815 |
|
1816 |
Program Headers: |
1817 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
1818 |
- +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+150 0x0+150 R E 0x8 |
1819 |
- +INTERP +0x0+190 0x0+80000190 0x0+80000190 0x0+11 0x0+11 R +0x1 |
1820 |
+ +PHDR +0x0+40 0x0+80000040 0x0+80000040 0x0+188 0x0+188 R E 0x8 |
1821 |
+ +INTERP +0x0+1c8 0x0+800001c8 0x0+800001c8 0x0+11 0x0+11 R +0x1 |
1822 |
.*Requesting program interpreter.* |
1823 |
+LOAD .* R E 0x1000 |
1824 |
+LOAD .* RW +0x1000 |
1825 |
+DYNAMIC .* RW +0x8 |
1826 |
+TLS .* 0x0+60 0x0+a0 R +0x20 |
1827 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1828 |
|
1829 |
Section to Segment mapping: |
1830 |
+Segment Sections... |
1831 |
@@ -52,6 +53,7 @@ Program Headers: |
1832 |
+03 +.tdata .dynamic .got * |
1833 |
+04 +.dynamic * |
1834 |
+05 +.tdata .tbss * |
1835 |
+ +06 + |
1836 |
|
1837 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: |
1838 |
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend |
1839 |
--- binutils-2.22/ld/testsuite/ld-s390/tlspic.rd |
1840 |
+++ binutils-2.22/ld/testsuite/ld-s390/tlspic.rd |
1841 |
@@ -39,6 +39,7 @@ Program Headers: |
1842 |
+LOAD .* RW +0x1000 |
1843 |
+DYNAMIC .* RW +0x4 |
1844 |
+TLS .* 0x0+60 0x0+80 R +0x20 |
1845 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1846 |
|
1847 |
Section to Segment mapping: |
1848 |
+Segment Sections... |
1849 |
@@ -46,6 +47,7 @@ Program Headers: |
1850 |
+01 +.tdata .dynamic .got |
1851 |
+02 +.dynamic |
1852 |
+03 +.tdata .tbss |
1853 |
+ +04 + |
1854 |
|
1855 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
1856 |
Offset +Info +Type +Sym.Value +Sym. Name \+ Addend |
1857 |
--- binutils-2.22/ld/testsuite/ld-s390/tlspic_64.rd |
1858 |
+++ binutils-2.22/ld/testsuite/ld-s390/tlspic_64.rd |
1859 |
@@ -39,6 +39,7 @@ Program Headers: |
1860 |
+LOAD .* RW +0x1000 |
1861 |
+DYNAMIC .* RW +0x8 |
1862 |
+TLS .* 0x0+60 0x0+80 R +0x20 |
1863 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1864 |
|
1865 |
Section to Segment mapping: |
1866 |
+Segment Sections... |
1867 |
@@ -46,6 +47,7 @@ Program Headers: |
1868 |
+01 +.tdata .dynamic .got * |
1869 |
+02 +.dynamic * |
1870 |
+03 +.tdata .tbss * |
1871 |
+ +04 + |
1872 |
|
1873 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
1874 |
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend |
1875 |
--- binutils-2.22/ld/testsuite/ld-scripts/empty-aligned.d |
1876 |
+++ binutils-2.22/ld/testsuite/ld-scripts/empty-aligned.d |
1877 |
@@ -8,7 +8,9 @@ |
1878 |
Program Headers: |
1879 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg +Align |
1880 |
+LOAD +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ [RWE ]+ +0x[0-9a-f]+ |
1881 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1882 |
|
1883 |
Section to Segment mapping: |
1884 |
+Segment Sections\.\.\. |
1885 |
+00 +.text |
1886 |
+ +01 + |
1887 |
--- binutils-2.22/ld/testsuite/ld-sh/tlsbin-2.d |
1888 |
+++ binutils-2.22/ld/testsuite/ld-sh/tlsbin-2.d |
1889 |
@@ -44,6 +44,7 @@ Program Headers: |
1890 |
+LOAD.* |
1891 |
+DYNAMIC.* |
1892 |
+TLS +0x[0-9a-f]+ 0x[0-9a-f]+ 0x[0-9a-f]+ 0x0+18 0x0+28 R +0x4 |
1893 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1894 |
|
1895 |
Section to Segment mapping: |
1896 |
+Segment Sections\.\.\. |
1897 |
@@ -53,6 +54,7 @@ Program Headers: |
1898 |
+03 +\.tdata \.dynamic \.got * |
1899 |
+04 +\.dynamic * |
1900 |
+05 +\.tdata \.tbss * |
1901 |
+ +06 + |
1902 |
|
1903 |
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 4 entries: |
1904 |
Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend |
1905 |
--- binutils-2.22/ld/testsuite/ld-sh/tlspic-2.d |
1906 |
+++ binutils-2.22/ld/testsuite/ld-sh/tlspic-2.d |
1907 |
@@ -32,7 +32,7 @@ Key to Flags: |
1908 |
|
1909 |
Elf file type is DYN \(Shared object file\) |
1910 |
Entry point 0x[0-9a-f]+ |
1911 |
-There are 4 program headers, starting at offset [0-9]+ |
1912 |
+There are [0-9] program headers, starting at offset [0-9]+ |
1913 |
|
1914 |
Program Headers: |
1915 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
1916 |
@@ -40,6 +40,7 @@ Program Headers: |
1917 |
+LOAD.* |
1918 |
+DYNAMIC.* |
1919 |
+TLS .* 0x0+18 0x0+20 R +0x4 |
1920 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1921 |
|
1922 |
Section to Segment mapping: |
1923 |
+Segment Sections\.\.\. |
1924 |
@@ -47,6 +48,7 @@ Program Headers: |
1925 |
+01 +\.tdata \.dynamic \.got * |
1926 |
+02 +\.dynamic * |
1927 |
+03 +\.tdata \.tbss * |
1928 |
+ +04 + |
1929 |
|
1930 |
Relocation section '\.rela\.dyn' at offset 0x[0-9a-f]+ contains 10 entries: |
1931 |
Offset +Info +Type +Sym\.Value +Sym\. Name \+ Addend |
1932 |
--- binutils-2.22/ld/testsuite/ld-sparc/gotop32.rd |
1933 |
+++ binutils-2.22/ld/testsuite/ld-sparc/gotop32.rd |
1934 |
@@ -31,6 +31,7 @@ Program Headers: |
1935 |
+LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x10000 |
1936 |
+LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+2000 0x0+2000 RW +0x10000 |
1937 |
+DYNAMIC +0x0+2000 0x0+12000 0x0+12000 0x0+70 0x0+70 RW +0x4 |
1938 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1939 |
#... |
1940 |
|
1941 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: |
1942 |
--- binutils-2.22/ld/testsuite/ld-sparc/gotop64.rd |
1943 |
+++ binutils-2.22/ld/testsuite/ld-sparc/gotop64.rd |
1944 |
@@ -31,6 +31,7 @@ Program Headers: |
1945 |
+LOAD +0x0+ 0x0+ 0x0+ 0x0+2000 0x0+2000 R E 0x100000 |
1946 |
+LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+2000 0x0+2000 RW +0x100000 |
1947 |
+DYNAMIC +0x0+2000 0x0+102000 0x0+102000 0x0+e0 0x0+e0 RW +0x8 |
1948 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1949 |
#... |
1950 |
|
1951 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 1 entries: |
1952 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunbin32.rd |
1953 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunbin32.rd |
1954 |
@@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
1955 |
|
1956 |
Program Headers: |
1957 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz MemSiz +Flg Align |
1958 |
- +PHDR +0x0+34 0x0+10034 0x0+10034 0x0+c0 0x0+c0 R E 0x4 |
1959 |
- +INTERP +0x0+f4 0x0+100f4 0x0+100f4 0x0+11 0x0+11 R +0x1 |
1960 |
+ +PHDR +0x0+34 0x0+10034 0x0+10034 (0x[0-9a-f]+) \1 R E 0x4 |
1961 |
+ +INTERP +(0x[0-9a-f]+ ){3}0x0+11 0x0+11 R +0x1 |
1962 |
.*Requesting program interpreter.* |
1963 |
+LOAD .* R E 0x10000 |
1964 |
+LOAD .* RW +0x10000 |
1965 |
+DYNAMIC .* RW +0x4 |
1966 |
+TLS .* 0x0+1060 0x0+10a0 R +0x4 |
1967 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1968 |
#... |
1969 |
|
1970 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: |
1971 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunbin64.rd |
1972 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunbin64.rd |
1973 |
@@ -30,13 +30,14 @@ There are [0-9]+ program headers, starting at offset [0-9]+ |
1974 |
|
1975 |
Program Headers: |
1976 |
+Type +Offset +VirtAddr +PhysAddr +FileSiz +MemSiz +Flg Align |
1977 |
- +PHDR +0x0+40 0x0+100040 0x0+100040 0x0+150 0x0+150 R E 0x8 |
1978 |
- +INTERP +0x0+190 0x0+100190 0x0+100190 0x0+19 0x0+19 R +0x1 |
1979 |
+ +PHDR +0x0+40 0x0+100040 0x0+100040 (0x[0-9a-f]+) \1 R E 0x8 |
1980 |
+ +INTERP +0x0+([0-9a-f]+) (0x0+10+\1) \2 0x0+19 0x0+19 R +0x1 |
1981 |
.*Requesting program interpreter.* |
1982 |
+LOAD .* R E 0x100000 |
1983 |
+LOAD .* RW +0x100000 |
1984 |
+DYNAMIC .* RW +0x8 |
1985 |
+TLS .* 0x0+60 0x0+a0 R +0x4 |
1986 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1987 |
#... |
1988 |
|
1989 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 4 entries: |
1990 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic32.rd |
1991 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic32.rd |
1992 |
@@ -32,6 +32,7 @@ Program Headers: |
1993 |
+LOAD .* RW +0x10000 |
1994 |
+DYNAMIC .* RW +0x4 |
1995 |
+TLS .* 0x0+ 0x0+24 R +0x4 |
1996 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
1997 |
#... |
1998 |
|
1999 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 12 entries: |
2000 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic64.rd |
2001 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunnopic64.rd |
2002 |
@@ -32,6 +32,7 @@ Program Headers: |
2003 |
+LOAD .* RW +0x100000 |
2004 |
+DYNAMIC .* RW +0x8 |
2005 |
+TLS .* 0x0+ 0x0+24 R +0x4 |
2006 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
2007 |
#... |
2008 |
|
2009 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
2010 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunpic32.rd |
2011 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunpic32.rd |
2012 |
@@ -36,6 +36,7 @@ Program Headers: |
2013 |
+LOAD +0x0+2000 0x0+12000 0x0+12000 0x0+184 0x0+184 RWE 0x10000 |
2014 |
+DYNAMIC +0x0+2060 0x0+12060 0x0+12060 0x0+98 0x0+98 RW +0x4 |
2015 |
+TLS +0x0+2000 0x0+12000 0x0+12000 0x0+60 0x0+80 R +0x4 |
2016 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
2017 |
#... |
2018 |
|
2019 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
2020 |
--- binutils-2.22/ld/testsuite/ld-sparc/tlssunpic64.rd |
2021 |
+++ binutils-2.22/ld/testsuite/ld-sparc/tlssunpic64.rd |
2022 |
@@ -36,6 +36,7 @@ Program Headers: |
2023 |
+LOAD +0x0+2000 0x0+102000 0x0+102000 0x0+3a0 0x0+3a0 RWE 0x100000 |
2024 |
+DYNAMIC +0x0+2060 0x0+102060 0x0+102060 0x0+130 0x0+130 RW +0x8 |
2025 |
+TLS +0x0+2000 0x0+102000 0x0+102000 0x0+60 0x0+80 R +0x4 |
2026 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
2027 |
#... |
2028 |
|
2029 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
2030 |
--- binutils-2.22/ld/testsuite/ld-x86-64/protected3.d |
2031 |
+++ binutils-2.22/ld/testsuite/ld-x86-64/protected3.d |
2032 |
@@ -8,6 +8,6 @@ |
2033 |
Disassembly of section .text: |
2034 |
|
2035 |
0+[a-f0-9]+ <bar>: |
2036 |
-[ ]*[a-f0-9]+: 8b 05 [a-f0-9][a-f0-9] 00 [a-f0-9][a-f0-9] 00 mov 0x[a-f0-9]+\(%rip\),%eax # [a-f0-9]+ <foo> |
2037 |
+[ ]*[a-f0-9]+: 8b 05 [a-f0-9][a-f0-9] [a-f0-9][a-f0-9] [a-f0-9][a-f0-9] 00 mov 0x[a-f0-9]+\(%rip\),%eax # [a-f0-9]+ <foo> |
2038 |
[ ]*[a-f0-9]+: c3 retq |
2039 |
#pass |
2040 |
--- binutils-2.22/ld/testsuite/ld-x86-64/tlsgdesc.rd |
2041 |
+++ binutils-2.22/ld/testsuite/ld-x86-64/tlsgdesc.rd |
2042 |
@@ -36,12 +36,14 @@ Program Headers: |
2043 |
+LOAD.* |
2044 |
+LOAD.* |
2045 |
+DYNAMIC.* |
2046 |
+ +PAX_FLAGS.* |
2047 |
|
2048 |
Section to Segment mapping: |
2049 |
+Segment Sections... |
2050 |
+00 +.hash .dynsym .dynstr .rela.dyn .rela.plt .plt .text * |
2051 |
+01 +.dynamic .got .got.plt * |
2052 |
+02 +.dynamic * |
2053 |
+ +03 + |
2054 |
|
2055 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 8 entries: |
2056 |
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend |
2057 |
--- binutils-2.22/ld/testsuite/ld-x86-64/tlspic.rd |
2058 |
+++ binutils-2.22/ld/testsuite/ld-x86-64/tlspic.rd |
2059 |
@@ -40,6 +40,7 @@ Program Headers: |
2060 |
+LOAD +0x0+11ac 0x0+2011ac 0x0+2011ac 0x0+244 0x0+244 RW +0x200000 |
2061 |
+DYNAMIC +0x0+1210 0x0+201210 0x0+201210 0x0+130 0x0+130 RW +0x8 |
2062 |
+TLS +0x0+11ac 0x0+2011ac 0x0+2011ac 0x0+60 0x0+80 R +0x1 |
2063 |
+ +PAX_FLAGS +0x0+ 0x0+ 0x0+ 0x0+ 0x0+ +0x[48] |
2064 |
|
2065 |
Section to Segment mapping: |
2066 |
+Segment Sections... |
2067 |
@@ -47,6 +48,7 @@ Program Headers: |
2068 |
+01 +.tdata .dynamic .got .got.plt * |
2069 |
+02 +.dynamic * |
2070 |
+03 +.tdata .tbss * |
2071 |
+ +04 + |
2072 |
|
2073 |
Relocation section '.rela.dyn' at offset 0x[0-9a-f]+ contains 14 entries: |
2074 |
+Offset +Info +Type +Symbol's Value +Symbol's Name \+ Addend |
2075 |
|
2076 |
|
2077 |
|
2078 |
1.1 src/patchsets/binutils/2.22/65_all_binutils-2.20-amd64-32bit-path.patch |
2079 |
|
2080 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/65_all_binutils-2.20-amd64-32bit-path.patch?rev=1.1&view=markup |
2081 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/65_all_binutils-2.20-amd64-32bit-path.patch?rev=1.1&content-type=text/plain |
2082 |
|
2083 |
Index: 65_all_binutils-2.20-amd64-32bit-path.patch |
2084 |
=================================================================== |
2085 |
--- binutils/ld/emulparams/elf_i386.sh |
2086 |
+++ binutils/ld/emulparams/elf_i386.sh |
2087 |
@@ -13,3 +13,13 @@ |
2088 |
NO_SMALL_DATA=yes |
2089 |
SEPARATE_GOTPLT=12 |
2090 |
IREL_IN_PLT= |
2091 |
+ |
2092 |
+# In Gentoo, we install 32bit libs into /lib32 in an |
2093 |
+# ABI setup with amd64/x86 |
2094 |
+case "$target" in |
2095 |
+ x86_64*-linux*) |
2096 |
+ case "$EMULATION_NAME" in |
2097 |
+ *i386*) LIBPATH_SUFFIX=32 ;; |
2098 |
+ esac |
2099 |
+ ;; |
2100 |
+esac |
2101 |
|
2102 |
|
2103 |
|
2104 |
1.1 src/patchsets/binutils/2.22/66_all_binutils-2.22-warn-textrel.patch |
2105 |
|
2106 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/66_all_binutils-2.22-warn-textrel.patch?rev=1.1&view=markup |
2107 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/66_all_binutils-2.22-warn-textrel.patch?rev=1.1&content-type=text/plain |
2108 |
|
2109 |
Index: 66_all_binutils-2.22-warn-textrel.patch |
2110 |
=================================================================== |
2111 |
textrels are bad for forcing copy-on-write (this affects everyone), |
2112 |
and for security/runtime code generation, this affects security ppl. |
2113 |
But in either case, it doesn't matter who needs textrels, it's |
2114 |
the very fact that they're needed at all. |
2115 |
|
2116 |
2006-06-10 Ned Ludd <solar@g.o>, Mike Frysinger <vapier@g.o> |
2117 |
|
2118 |
* bfd/elflink.c (bfd_elf_final_link): Check all objects for TEXTRELs. |
2119 |
* ld/ldmain.c (main): Change textrel warning default to true. |
2120 |
* ld/testsuite/lib/ld-lib.exp (default_ld_simple_link): Scrub TEXTREL |
2121 |
warnings from ld output. |
2122 |
|
2123 |
--- a/bfd/elflink.c |
2124 |
+++ b/bfd/elflink.c |
2125 |
@@ -8652,14 +8652,12 @@ bfd_elf_final_link (bfd *abfd, struct bf |
2126 |
goto error_return; |
2127 |
|
2128 |
/* Check for DT_TEXTREL (late, in case the backend removes it). */ |
2129 |
- if ((info->warn_shared_textrel && info->shared) |
2130 |
+ o = bfd_get_section_by_name (dynobj, ".dynamic"); |
2131 |
+ if ((info->warn_shared_textrel && o != NULL) |
2132 |
|| info->error_textrel) |
2133 |
{ |
2134 |
bfd_byte *dyncon, *dynconend; |
2135 |
|
2136 |
/* Fix up .dynamic entries. */ |
2137 |
- o = bfd_get_section_by_name (dynobj, ".dynamic"); |
2138 |
- BFD_ASSERT (o != NULL); |
2139 |
- |
2140 |
dyncon = o->contents; |
2141 |
dynconend = o->contents + o->size; |
2142 |
for (; dyncon < dynconend; dyncon += bed->s->sizeof_dyn) |
2143 |
@@ -8702,7 +8702,7 @@ bfd_elf_final_link (bfd *abfd, struct bf |
2144 |
(_("%P%X: read-only segment has dynamic relocations.\n")); |
2145 |
else |
2146 |
info->callbacks->einfo |
2147 |
- (_("%P: warning: creating a DT_TEXTREL in a shared object.\n")); |
2148 |
+ (_("%P: warning: creating a DT_TEXTREL in object.\n")); |
2149 |
break; |
2150 |
} |
2151 |
} |
2152 |
--- a/ld/ldmain.c |
2153 |
+++ b/ld/ldmain.c |
2154 |
@@ -282,2 +282,3 @@ main (int argc, char **argv) |
2155 |
link_info.spare_dynamic_tags = 5; |
2156 |
+ link_info.warn_shared_textrel = TRUE; |
2157 |
link_info.sharable_sections = FALSE; |
2158 |
--- a/ld/testsuite/lib/ld-lib.exp |
2159 |
+++ b/ld/testsuite/lib/ld-lib.exp |
2160 |
@@ -181,6 +181,10 @@ proc default_ld_simple_link { ld target |
2161 |
# symbol, since the default linker script might use ENTRY. |
2162 |
regsub -all "(^|\n)(\[^\n\]*: warning: cannot find entry symbol\[^\n\]*\n?)" $exec_output "\\1" exec_output |
2163 |
|
2164 |
+ # Gentoo tweak: |
2165 |
+ # We want to ignore TEXTREL warnings since we force enable them by default |
2166 |
+ regsub -all "^lt-ld-new: warning: creating a DT_TEXTREL in object\." $exec_output "\\1" exec_output |
2167 |
+ |
2168 |
if [string match "" $exec_output] then { |
2169 |
return 1 |
2170 |
} else { |
2171 |
|
2172 |
|
2173 |
|
2174 |
1.1 src/patchsets/binutils/2.22/75_all_binutils-default-test-flags.patch |
2175 |
|
2176 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/75_all_binutils-default-test-flags.patch?rev=1.1&view=markup |
2177 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/75_all_binutils-default-test-flags.patch?rev=1.1&content-type=text/plain |
2178 |
|
2179 |
Index: 75_all_binutils-default-test-flags.patch |
2180 |
=================================================================== |
2181 |
many tests rely on order of symbols and the gnu hash style/relro options |
2182 |
change that. so to avoid having to constantly thrash in the test files, |
2183 |
use the normal options that everyone tests against. |
2184 |
|
2185 |
--- binutils/ld/testsuite/lib/ld-lib.exp |
2186 |
+++ binutils/ld/testsuite/lib/ld-lib.exp |
2187 |
@@ -84,7 +84,7 @@ |
2188 |
global HOSTING_EMU |
2189 |
|
2190 |
remote_file host delete $target |
2191 |
- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU -o $target -r $objects"] |
2192 |
+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -z norelro -o $target -r $objects"] |
2193 |
} |
2194 |
|
2195 |
# Check to see if ld is being invoked with a non-endian output format |
2196 |
@@ -158,7 +158,7 @@ |
2197 |
|
2198 |
remote_file host delete $target |
2199 |
|
2200 |
- return [run_host_cmd_yesno "$ld" "$HOSTING_EMU $flags -o $target $objs $libs"] |
2201 |
+ return [run_host_cmd_yesno "$ld" "$HOSTING_EMU --hash-style=sysv -z norelro $flags -o $target $objs $libs"] |
2202 |
} |
2203 |
|
2204 |
# Link a program using ld, without including any libraries. |
2205 |
@@ -189,7 +189,9 @@ |
2206 |
} |
2207 |
set ldexe [string replace $ldexe 0 [string last "/" $ldexe] ""] |
2208 |
if {[string match "*gcc*" $ldexe] || [string match "*++*" $ldexe]} then { |
2209 |
- set ldflags "$gcc_ld_flag $ldflags" |
2210 |
+ set ldflags "$gcc_ld_flag -Wl,--hash-style=sysv -Wl,-z,norelro $ldflags" |
2211 |
+ } else { |
2212 |
+ set ldflags "--hash-style=sysv -z norelro $ldflags" |
2213 |
} |
2214 |
|
2215 |
remote_file host delete $target |
2216 |
|
2217 |
|
2218 |
|
2219 |
1.1 src/patchsets/binutils/2.22/76_all_only-use-new-ld-dtags.patch.disabled |
2220 |
|
2221 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/76_all_only-use-new-ld-dtags.patch.disabled?rev=1.1&view=markup |
2222 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/76_all_only-use-new-ld-dtags.patch.disabled?rev=1.1&content-type=text/plain |
2223 |
|
2224 |
Index: 76_all_only-use-new-ld-dtags.patch.disabled |
2225 |
=================================================================== |
2226 |
Don't generate RPATH if we're going to be generating RUNPATH. |
2227 |
|
2228 |
need to ponder what ramifications this has before enabling it |
2229 |
|
2230 |
--- binutils/bfd/elflink.c |
2231 |
+++ binutils/bfd/elflink.c |
2232 |
@@ -5382,11 +5382,15 @@ |
2233 |
|
2234 |
indx = _bfd_elf_strtab_add (elf_hash_table (info)->dynstr, rpath, |
2235 |
TRUE); |
2236 |
- if (indx == (bfd_size_type) -1 |
2237 |
- || !_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx)) |
2238 |
+ if (indx == (bfd_size_type) -1) |
2239 |
return FALSE; |
2240 |
|
2241 |
- if (info->new_dtags) |
2242 |
+ if (!info->new_dtags) |
2243 |
+ { |
2244 |
+ if (!_bfd_elf_add_dynamic_entry (info, DT_RPATH, indx)) |
2245 |
+ return FALSE; |
2246 |
+ } |
2247 |
+ else |
2248 |
{ |
2249 |
_bfd_elf_strtab_addref (elf_hash_table (info)->dynstr, indx); |
2250 |
if (!_bfd_elf_add_dynamic_entry (info, DT_RUNPATH, indx)) |
2251 |
|
2252 |
|
2253 |
|
2254 |
1.1 src/patchsets/binutils/2.22/76_all_use-new-ld-dtags.patch |
2255 |
|
2256 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/76_all_use-new-ld-dtags.patch?rev=1.1&view=markup |
2257 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/76_all_use-new-ld-dtags.patch?rev=1.1&content-type=text/plain |
2258 |
|
2259 |
Index: 76_all_use-new-ld-dtags.patch |
2260 |
=================================================================== |
2261 |
--- binutils/ld/ldmain.c |
2262 |
+++ binutils/ld/ldmain.c |
2263 |
@@ -296,6 +296,7 @@ main (int argc, char **argv) |
2264 |
|
2265 |
link_info.allow_undefined_version = TRUE; |
2266 |
link_info.keep_memory = TRUE; |
2267 |
+ link_info.new_dtags = TRUE; |
2268 |
link_info.combreloc = TRUE; |
2269 |
link_info.strip_discarded = TRUE; |
2270 |
link_info.callbacks = &link_callbacks; |
2271 |
--- binutils/ld/ld.texinfo |
2272 |
+++ binutils/ld/ld.texinfo |
2273 |
@@ -2036,8 +2036,9 @@ |
2274 |
systems may not understand them. If you specify |
2275 |
@option{--enable-new-dtags}, the dynamic tags will be created as needed. |
2276 |
If you specify @option{--disable-new-dtags}, no new dynamic tags will be |
2277 |
-created. By default, the new dynamic tags are not created. Note that |
2278 |
-those options are only available for ELF systems. |
2279 |
+created. On Gentoo, by default, the new dynamic tags are created (this |
2280 |
+differs from upstream behaviour). Note that those options are only |
2281 |
+available for ELF systems. |
2282 |
|
2283 |
@kindex --hash-size=@var{number} |
2284 |
@item --hash-size=@var{number} |
2285 |
|
2286 |
|
2287 |
|
2288 |
1.1 src/patchsets/binutils/2.22/77_all_generate-gnu-hash.patch |
2289 |
|
2290 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/77_all_generate-gnu-hash.patch?rev=1.1&view=markup |
2291 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/77_all_generate-gnu-hash.patch?rev=1.1&content-type=text/plain |
2292 |
|
2293 |
Index: 77_all_generate-gnu-hash.patch |
2294 |
=================================================================== |
2295 |
--- binutils/ld/ldmain.c |
2296 |
+++ binutils/ld/ldmain.c |
2297 |
@@ -273,2 +273,5 @@ main (int argc, char **argv) |
2298 |
link_info.emit_hash = TRUE; |
2299 |
+#ifndef __mips__ |
2300 |
+ link_info.emit_gnu_hash = TRUE; |
2301 |
+#endif |
2302 |
link_info.callbacks = &link_callbacks; |
2303 |
|
2304 |
|
2305 |
|
2306 |
1.1 src/patchsets/binutils/2.22/78_all_use-relro.patch |
2307 |
|
2308 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/78_all_use-relro.patch?rev=1.1&view=markup |
2309 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/78_all_use-relro.patch?rev=1.1&content-type=text/plain |
2310 |
|
2311 |
Index: 78_all_use-relro.patch |
2312 |
=================================================================== |
2313 |
background: |
2314 |
http://www.airs.com/blog/archives/189 |
2315 |
|
2316 |
--- binutils/ld/ldmain.c |
2317 |
+++ binutils/ld/ldmain.c |
2318 |
@@ -293,2 +293,3 @@ main (int argc, char **argv) |
2319 |
link_info.combreloc = TRUE; |
2320 |
+ link_info.relro = TRUE; |
2321 |
link_info.strip_discarded = TRUE; |
2322 |
|
2323 |
|
2324 |
|
2325 |
1.1 src/patchsets/binutils/2.22/91_all_libiberty-pic.patch |
2326 |
|
2327 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/91_all_libiberty-pic.patch?rev=1.1&view=markup |
2328 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/91_all_libiberty-pic.patch?rev=1.1&content-type=text/plain |
2329 |
|
2330 |
Index: 91_all_libiberty-pic.patch |
2331 |
=================================================================== |
2332 |
--- libiberty/Makefile.in.mps 2004-05-13 15:53:17.000000000 +0200 |
2333 |
+++ libiberty/Makefile.in 2004-05-13 15:52:53.000000000 +0200 |
2334 |
@@ -224,6 +224,7 @@ $(TARGETLIB): $(REQUIRED_OFILES) $(EXTRA |
2335 |
$(AR) $(AR_FLAGS) $(TARGETLIB) \ |
2336 |
$(REQUIRED_OFILES) $(EXTRA_OFILES) $(LIBOBJS); \ |
2337 |
$(RANLIB) $(TARGETLIB); \ |
2338 |
+ cp $(TARGETLIB) ../ ; \ |
2339 |
cd ..; \ |
2340 |
else true; fi |
2341 |
|
2342 |
|
2343 |
|
2344 |
|
2345 |
1.1 src/patchsets/binutils/2.22/README.history |
2346 |
|
2347 |
file : http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/README.history?rev=1.1&view=markup |
2348 |
plain: http://sources.gentoo.org/viewvc.cgi/gentoo/src/patchsets/binutils/2.22/README.history?rev=1.1&content-type=text/plain |
2349 |
|
2350 |
Index: README.history |
2351 |
=================================================================== |
2352 |
1.0 21 Nov 2011 |
2353 |
+ 03_all_binutils-2.15.92.0.2-ppc64-pie.patch |
2354 |
+ 08_all_binutils-RPATH_ENVVAR-smack.patch |
2355 |
+ 12_all_sh-targets.patch |
2356 |
+ 20_all_ld-sysroot.patch |
2357 |
+ 30_all_binutils-2.22-flexible-tests.patch |
2358 |
+ 63_all_binutils-2.22-pt-pax-flags-20111121.patch |
2359 |
+ 65_all_binutils-2.20-amd64-32bit-path.patch |
2360 |
+ 66_all_binutils-2.22-warn-textrel.patch |
2361 |
+ 75_all_binutils-default-test-flags.patch |
2362 |
+ 76_all_use-new-ld-dtags.patch |
2363 |
+ 77_all_generate-gnu-hash.patch |
2364 |
+ 78_all_use-relro.patch |
2365 |
+ 91_all_libiberty-pic.patch |