Use address sized relocs in remove-relocs-01.s
[binutils-gdb.git] / binutils / ChangeLog
1 2016-07-15 Alan Modra <amodra@gmail.com>
2
3 * testsuite/binutils-all/remove-relocs-01.s: Use .dc.a, not .word.
4
5 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
6
7 * doc/binutils.texi (objcopy): Document 'remove-relocations'.
8 (strip): Likewise.
9 * objcopy.c (SECTION_CONTEXT_REMOVE_RELOCS): Define.
10 (enum command_line_switch): Add 'OPTION_REMOVE_RELOCS'.
11 (struct option strip_options): Add 'remove-relocations'.
12 (struct option copy_options): Likewise.
13 (copy_usage): Likewise.
14 (strip_usage): Likewise.
15 (handle_remove_relocations_option): New function.
16 (discard_relocations): New function.
17 (handle_remove_section_option): New function.
18 (copy_relocations_in_section): Use discard_relocations.
19 (strip_main): Use handle_remove_section_option for
20 'remove-section', and handle 'remove-relocations' option.
21 (copy_main): Likewise.
22 * testsuite/binutils-all/objcopy.exp: Run new tests.
23 * testsuite/binutils-all/remove-relocs-01.d: New file.
24 * testsuite/binutils-all/remove-relocs-01.s: New file.
25 * testsuite/binutils-all/remove-relocs-02.d: New file.
26 * testsuite/binutils-all/remove-relocs-03.d: New file.
27 * testsuite/binutils-all/remove-relocs-04.d: New file.
28 * testsuite/binutils-all/remove-relocs-05.d: New file.
29 * testsuite/binutils-all/remove-relocs-06.d: New file.
30 * NEWS: Mention new option.
31
32 2016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
33
34 * objcopy.c (find_section_list): Handle section patterns starting
35 with '!' being a non-matching pattern.
36 * doc/binutils.texi (objcopy): Give example of using '!' with
37 --remove-section and --only-section.
38 (strip): Give example of using '!' with --remove-section.
39 * testsuite/binutils-all/data-sections.s: New file.
40 * testsuite/binutils-all/only-section-01.d: New file.
41 * testsuite/binutils-all/remove-section-01.d: New file.
42 * testsuite/binutils-all/objcopy.exp: Run new tests.
43 * NEWS: Mention new feature.
44
45 2016-07-09 Alan Modra <amodra@gmail.com>
46
47 PR binutils/20337
48 * objdump.c (compare_symbols): For ELF, sort same value/type
49 symbols according to size.
50
51 2016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
52
53 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
54 to SEC_ELF_NOREAD.
55 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
56 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
57 (process_section_headers): Rename noread to purecode.
58
59 * section.c (SEC_ELF_NOREAD): Rename to ...
60 (SEC_ELF_PURECODE): ... this.
61
62 2016-07-01 Nick Clifton <nickc@redhat.com>
63
64 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
65 extremely large decimal value.
66 (pr_range_type): Likewise.
67 (pr_array_type): Likewise.
68 (pr_struct_field): Likewise.
69 (pr_class_baseclass): Likewise.
70 (pr_class_method_variant): Likewise.
71 (pr_tag_type): Likewise.
72 (pr_int_constant): Likewise.
73 (pr_typed_constant): Likewise.
74 (pr_variable): Likewise.
75 (pr_function_parameter): Likewise.
76 (pr_start_block): Likewise.
77 (pr_lineno): Likewise.
78 (pr_end_block): Likewise.
79 (tg_enum_type): Likewise.
80 (tg_int_constant): Likewise.
81 (tg_typed_constant): Likewise.
82 (tg_start_block): Likewise.
83
84 2016-07-01 Nick Clifton <nickc@redhat.com>
85
86 * testsuite/binutils-all/objcopy.exp
87 (objcopy_test_without_global_symbol): Expect this test to fail on
88 the AArch64 and ARM targets, since they preserve their mapping
89 symbols.
90
91 2016-07-01 Tristan Gingold <gingold@adacore.com>
92
93 * NEWS: Add marker for 2.27.
94
95 2016-07-30 Tristan Gingold <gingold@adacore.com>
96
97 * doc/binutils.texi (objdump): Fix mis-placement.
98
99 2016-06-28 Nick Clifton <nickc@redhat.com>
100
101 * testsuite/binutils-all/ar.exp: Relax previous restriction on
102 Alpha targets. Allow ELF based Alpha targets.
103
104 2016-06-28 Maciej W. Rozycki <macro@imgtec.com>
105
106 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
107 the `unique_symbol' test.
108
109 2016-06-28 Alan Modra <amodra@gmail.com>
110
111 PR 20304
112 * objdump.c (objdump_print_symname): Don't attempt to retrieve
113 version info from synthetic symbols.
114
115 2016-06-24 Alan Modra <amodra@gmail.com>
116
117 * objcopy.c (find_section_rename): Forward declare. Remove
118 ibfd and sec_ptr param. Add old_name param. Allow for NULL
119 returned_flags. Move read of section name and flags to..
120 (setup_section): ..here. Update find_section_rename call.
121 (filter_symbols): Rename section symbols for renamed sections.
122 (copy_object): Call filter_symbols when renamed sections.
123 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
124 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
125 mips xfail.
126 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
127 is_bad_symtab.
128 (localize-hidden-1): xfail if is_bad_symtab.
129 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
130 between mips/tmips.
131
132 2016-06-24 Alan Modra <amodra@gmail.com>
133
134 * objdump.c (struct print_file_list): Add "max_printed".
135 (try_print_file_open): Init new field.
136 (show_line): Don't show 5 context lines when redisplaying source.
137
138 2016-06-22 Nick Clifton <nickc@redhat.com>
139
140 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
141 Skip bfdtest1 tests for tic30 target.
142 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
143 target.
144 * testsuite/binutils-all/compress.exp: Expect some tests to fail
145 on the nds32.
146 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
147 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
148 targets.
149 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
150 targets.
151 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
152 if the bintest.o file was created. Use the
153 get_standard_section_names proc to get the name of the data
154 section.
155 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
156 RX section names.
157 * testsuite/binutils-all/readelf.exp: Use
158 get_standard_section_names proc to get the name of the data
159 section.
160 * testsuite/binutils-all/readelf.r: Allow for non standard text
161 section names.
162 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
163 * testsuite/binutils-all/size.exp: Allow for non standard section
164 names.
165 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
166 to fail on mips targets.
167 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
168 get_standard_section_names proc.
169 (run_dump_test): Likewise.
170 (proc get_standard_section_names): New proc.
171
172 2016-06-22 Nick Clifton <nickc@redhat.com>
173
174 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
175 (process_mips_specific): Likewise.
176 (process_gnu_liblist): Likewise.
177
178 2016-06-21 Graham Markall <graham.markall@embecosm.com>
179
180 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
181 case.
182
183 2016-06-15 Nick Clifton <nickc@redhat.com>
184
185 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
186 reloc.
187
188 2016-06-14 John Baldwin <jhb@FreeBSD.org>
189
190 * objcopy.c (do_elf_stt_common): Use correct type.
191
192 2016-06-14 Alan Modra <amodra@gmail.com>
193
194 * ar.c: Expand uses of bfd_my_archive.
195 * size.c: Likewise.
196
197 2016-06-14 Alan Modra <amodra@gmail.com>
198
199 PR ld/20241
200 * bucomm.c (bfd_get_archive_filename): Return file name within thin
201 archive.
202
203 2016-06-02 Nick Clifton <nickc@redhat.com>
204
205 PR 20089
206 * objcopy.c (group_signature): Fail if the input symbol table has
207 not been loaded, or if the sh_info field of the group header is 0.
208
209 * dwarf.c (display_debug_frames): Do not display any
210 interpretation if the block consists solely of DW__CFA_NOPs.
211
212 2016-05-31 Alan Modra <amodra@gmail.com>
213
214 * objcopy.c: Formatting, whitespace throughout.
215 (copy_main): Init newsym->othersym.
216 (parse_symflags): Make len a size_t. Adjust uses.
217
218 2016-05-25 H.J. Lu <hongjiu.lu@intel.com>
219
220 PR binutils/14625
221 * NEWS: Mention --enable-64-bit-archive.
222
223 2016-05-18 Nick Clifton <nickc@redhat.com>
224
225 PR 20096
226 * objcopy.c (copy_relocations_in_section): Also check for the
227 symbol pointed to by sym_ptr_ptr being NULL.
228
229 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
230
231 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
232 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
233 source.
234 * testsuite/binutils-all/mips/mips.exp: Run the new test.
235
236 2016-05-18 Nick Clifton <nickc@redhat.com>
237
238 * po/sv.po: Updated Swedish translation.
239
240 2016-05-18 Maciej W. Rozycki <macro@imgtec.com>
241
242 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
243 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
244 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
245 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
246 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
247 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
248 `d_val' rather than `d_ptr' member of the dynamic entry.
249
250 2016-05-17 Maciej W. Rozycki <macro@imgtec.com>
251
252 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
253 procedure.
254 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
255 with the `strip-10' test.
256
257 2016-05-16 Maciej W. Rozycki <macro@imgtec.com>
258
259 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
260 test for the V850.
261
262 2016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
263
264 * readelf.c (print_mips_ases): Add DSPR3.
265
266 2016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
267
268 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
269 (arm_attr_public_tags): Define DSP_extension attribute.
270
271 2016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
272
273 * doc/binutils.texi (nm): Update description of --size-sort.
274
275 2016-05-09 Nick Clifton <nickc@redhat.com>
276
277 PR binutils/20063
278 * readelf.c (get_32bit_section_headers): Warn if an out of range
279 sh_link or sh_info field is encountered.
280 (get_64bit_section_headers): Likewise.
281
282 2016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
283
284 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
285
286 2016-05-03 Nick Clifton <nickc@redhat.com>
287
288 * po/sv.po: Updated Swedish translation.
289
290 2016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
291
292 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
293 PC relocation for AVR target.
294 (is_none_reloc): Return true if reloc is any of AVR diff
295 relocations.
296
297 2016-04-29 Nick Clifton <nickc@redhat.com>
298
299 PR 19938
300 * readelf.c (get_solaris_segment_type): New function.
301 (get_segment_type): Call it.
302
303 2016-04-28 Nick Clifton <nickc@redhat.com>
304
305 * po/zh_CN.po: Updated Chinese (simplified) translation.
306
307 2016-04-28 Nick Clifton <nickc@redhat.com>
308
309 PR target/19722
310 * testsuite/binutils-all/aarch64/illegal.s: New test.
311 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
312
313 2016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
314
315 * resres.c: Likewise.
316
317 2016-04-15 H.J. Lu <hongjiu.lu@intel.com>
318
319 * Makefile.in: Regenerated with automake 1.11.6.
320 * aclocal.m4: Likewise.
321 * doc/Makefile.in: Likewise.
322
323 2016-04-14 Nick Clifton <nickc@redhat.com>
324
325 PR target/19938
326 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
327 string sections possibly having the SHF_STRINGS flag bit set.
328 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
329 * testsuite/binutils-all/readelf.s: Likewise.
330 * testsuite/binutils-all/readelf.s-64: Likewise.
331 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
332 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
333
334 2016-04-13 Nick Clifton <nickc@redhat.com>
335
336 PR target/19938
337 * readelf.c (get_solaris_section_type): New function: Returns the
338 name of Solaris specific section types.
339 (get_solaris_dynamic_type): New function: Return the name of
340 Solaris specific dynamic types.
341 (get_dynamic_type): Use get_solaris_dynamic_type.
342 (get_section_type_name): Use get_solaris_section_type.
343 (get_solaris_symbol_visibility): New function: Returns Solaris
344 specific symbol visibilities.
345 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
346 (process_symbol_table): Likewise.
347
348 2016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
349
350 * dwarf.h (init_dwarf_regnames_s390): Declare.
351 * dwarf.c (dwarf_regnames_s390): New.
352 (init_dwarf_regnames_s390): New.
353 (init_dwarf_regnames): Call it.
354 * objdump.c (dump_dwarf): Likewise.
355
356 2016-04-11 Maciej W. Rozycki <macro@imgtec.com>
357
358 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
359 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
360 source.
361 * testsuite/binutils-all/mips/mips.exp: Run the new test.
362
363 2016-04-04 Nick Clifton <nickc@redhat.com>
364
365 PR 19872
366 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
367 version number if the version is zero.
368
369 2016-03-29 Alan Modra <amodra@gmail.com>
370
371 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
372 (get_dynamic_data): Likewise.
373
374 2016-03-22 Nick Clifton <nickc@redhat.com>
375
376 PR 19851
377 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
378 with run time size check.
379
380 * configure: Regenerate.
381
382 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
383
384 * readelf.c (decode_ARC_machine_flags): Handle nps400.
385
386 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
387
388 * readelf.c (get_machine_flags): Move arc processing into...
389 (decode_ARC_machine_flags): ... new function. Remove use of
390 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
391 "unknown arc". Merged ABI printing between two machine types.
392
393 2016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
394
395 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
396 to the architecture list.
397
398 2016-03-21 Nick Clifton <nickc@redhat.com>
399
400 * dlltool.c: Replace use of alloca with call to xmalloc.
401 * dllwrap.c: Likewise.
402 * nlmconv.c: Likewise.
403 * objdump.c: Likewise.
404 * resrc.c: Likewise.
405 * winduni.c: Likewise.
406 * configure: Regenerate.
407
408 2016-03-07 Nick Clifton <nickc@redhat.com>
409
410 PR binutils/19775
411 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
412 Run the new proc.
413 * testsuite/binutils-all/empty: New, empty, file.
414
415 2016-03-04 Matthew Wahab <matthew.wahab@arm.com>
416
417 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
418
419 2016-02-26 H.J. Lu <hongjiu.lu@intel.com>
420
421 PR ld/19645
422 * NEWS: Mention --elf-stt-common= for objcopy.
423 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
424 * objcopy.c (do_elf_stt_common): New.
425 (command_line_switch): Add OPTION_ELF_STT_COMMON.
426 (copy_options): Add --elf-stt-common=.
427 (copy_usage): Add --elf-stt-common=.
428 (copy_object): Also check do_elf_stt_common for ELF targets.
429 (copy_file): Handle do_elf_stt_common.
430 (copy_main): Handle OPTION_ELF_STT_COMMON.
431 * readelf.c (apply_relocations): Support STT_COMMON.
432 * testsuite/binutils-all/common-1.s: New file.
433 * testsuite/binutils-all/common-1a.d: Likewise.
434 * testsuite/binutils-all/common-1b.d: Likewise.
435 * testsuite/binutils-all/common-1c.d: Likewise.
436 * testsuite/binutils-all/common-1d.d: Likewise.
437 * testsuite/binutils-all/common-1e.d: Likewise.
438 * testsuite/binutils-all/common-1f.d: Likewise.
439 * testsuite/binutils-all/common-2.s: Likewise.
440 * testsuite/binutils-all/common-2a.d: Likewise.
441 * testsuite/binutils-all/common-2b.d: Likewise.
442 * testsuite/binutils-all/common-2c.d: Likewise.
443 * testsuite/binutils-all/common-2d.d: Likewise.
444 * testsuite/binutils-all/common-2e.d: Likewise.
445 * testsuite/binutils-all/common-2f.d: Likewise.
446 * testsuite/binutils-all/objcopy.exp
447 (objcopy_test_elf_common_symbols): New proc.
448 Run objcopy_test_elf_common_symbols for ELF targets
449
450 2016-02-16 H.J. Lu <hongjiu.lu@intel.com>
451
452 PR binutils/19647
453 * readelf.c (get_section_type_name): Add a missing break.
454
455 2016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
456
457 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
458
459 2016-02-15 Nick Clifton <nickc@redhat.com>
460
461 * readelf.c (get_section_type_name): Add hex prefix to offsets
462 printed for LOPROC and LOOS values. Ensure that a result is
463 always returned for the V850 target, even when an unrecognised
464 processor specific value is encountered.
465 (process_section_headers): Display key values in the order in
466 which they appear to the user. Add the "C (compressed)" value to
467 the list.
468
469 2016-02-12 H.J. Lu <hongjiu.lu@intel.com>
470
471 * doc/binutils.texi: Fix a typo.
472
473 2016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
474
475 * testsuite/binutils-all/objdump.exp: Update expected default
476 architecture value for ARC binaries.
477
478 2016-02-02 H.J. Lu <hongjiu.lu@intel.com>
479
480 PR binutils/19547
481 * testsuite/binutils-all/objcopy.exp
482 (objcopy_test_without_global_symbol): New proc.
483 Run objcopy_test_without_global_symbol.
484 * testsuite/binutils-all/pr19547.c: New file.
485
486 2016-01-28 H.J. Lu <hongjiu.lu@intel.com>
487
488 PR binutils/19523
489 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
490 runtest.
491 * Makefile.in: Regenerated.
492 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
493 proc.
494 Run test_gnu_debuglink for native ELF build.
495
496 2016-01-20 Nick Clifton <nickc@redhat.com>
497
498 PR 19495
499 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
500 do not support inserting leading underscores.
501
502 2016-01-20 Mickael Guene <mickael.guene@st.com>
503
504 * readelf.c (get_elf_section_flags): Display y letter for section
505 with SHF_ARM_NOREAD section flag in readelf section output.
506 (process_section_headers): Add y letter in readelf section output
507 key mapping for ARM architecture.
508 * objdump.c (dump_section_header): Display NOREAD attributes as
509 well.
510 * doc/binutils.texi (objdump): Note that it is correct for
511 sections to have both the READONLY and NOREAD attributes.
512
513 2016-01-19 John Baldwin <jhb@FreeBSD.org>
514
515 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
516
517 2016-01-19 John Baldwin <jhb@FreeBSD.org>
518
519 * readelf.c (get_freebsd_elfcore_note_type): New
520 (process_note): Add support for FreeBSD core notes.
521
522 2016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
523 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
524
525 * readelf.c (get_machine_flags): Add support for newer ARC ELF
526 header flags.
527
528 2016-01-18 Alan Modra <amodra@gmail.com>
529
530 * configure: Regenerate.
531
532 2016-01-17 Alan Modra <amodra@gmail.com>
533
534 * configure: Regenerate.
535
536 2016-01-17 Alan Modra <amodra@gmail.com>
537
538 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
539 for m68hc11/12 and xgate triples.
540
541 2016-01-17 Alan Modra <amodra@gmail.com>
542
543 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
544
545 2016-01-01 Alan Modra <amodra@gmail.com>
546
547 Update year range in copyright notice of all files.
548
549 For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
550 \f
551 Copyright (C) 2016 Free Software Foundation, Inc.
552
553 Copying and distribution of this file, with or without modification,
554 are permitted in any medium without royalty provided the copyright
555 notice and this notice are preserved.
556
557 Local Variables:
558 mode: change-log
559 left-margin: 8
560 fill-column: 74
561 version-control: never
562 End: