objcopy/strip: Allow section patterns starting with '!'.
[deliverable/binutils-gdb.git] / binutils / ChangeLog
CommitLineData
e511c9b1
AB
12016-07-14 Andrew Burgess <andrew.burgess@embecosm.com>
2
3 * objcopy.c (find_section_list): Handle section patterns starting
4 with '!' being a non-matching pattern.
5 * doc/binutils.texi (objcopy): Give example of using '!' with
6 --remove-section and --only-section.
7 (strip): Give example of using '!' with --remove-section.
8 * testsuite/binutils-all/data-sections.s: New file.
9 * testsuite/binutils-all/only-section-01.d: New file.
10 * testsuite/binutils-all/remove-section-01.d: New file.
11 * testsuite/binutils-all/objcopy.exp: Run new tests.
12 * NEWS: Mention new feature.
13
32a0481f
AM
142016-07-09 Alan Modra <amodra@gmail.com>
15
16 PR binutils/20337
17 * objdump.c (compare_symbols): For ELF, sort same value/type
18 symbols according to size.
19
f0728ee3
AV
202016-07-05 Andre Vieria <andre.simoesdiasvieira@arm.com>
21
22 * objdump.c (dump_section_header): Rename SEC_ELF_NOREAD
23 to SEC_ELF_NOREAD.
24 * readelf.c (get_elf_section_flags): Rename ARM_NOREAD to
25 ARM_PURECODE and SHF_ARM_NOREAD to SHF_ARM_PURECODE.
26 (process_section_headers): Rename noread to purecode.
27
28 * section.c (SEC_ELF_NOREAD): Rename to ...
29 (SEC_ELF_PURECODE): ... this.
30
98a4fc78
NC
312016-07-01 Nick Clifton <nickc@redhat.com>
32
33 * prdbg.c (pr_enum_type): Use a buffer big enough to hold an
34 extremely large decimal value.
35 (pr_range_type): Likewise.
36 (pr_array_type): Likewise.
37 (pr_struct_field): Likewise.
38 (pr_class_baseclass): Likewise.
39 (pr_class_method_variant): Likewise.
40 (pr_tag_type): Likewise.
41 (pr_int_constant): Likewise.
42 (pr_typed_constant): Likewise.
43 (pr_variable): Likewise.
44 (pr_function_parameter): Likewise.
45 (pr_start_block): Likewise.
46 (pr_lineno): Likewise.
47 (pr_end_block): Likewise.
48 (tg_enum_type): Likewise.
49 (tg_int_constant): Likewise.
50 (tg_typed_constant): Likewise.
51 (tg_start_block): Likewise.
52
41699fa4
NC
532016-07-01 Nick Clifton <nickc@redhat.com>
54
55 * testsuite/binutils-all/objcopy.exp
56 (objcopy_test_without_global_symbol): Expect this test to fail on
57 the AArch64 and ARM targets, since they preserve their mapping
58 symbols.
59
96a84ea3
TG
602016-07-01 Tristan Gingold <gingold@adacore.com>
61
62 * NEWS: Add marker for 2.27.
63
b2a40aa5
TG
642016-07-30 Tristan Gingold <gingold@adacore.com>
65
66 * doc/binutils.texi (objdump): Fix mis-placement.
67
50c901ed
NC
682016-06-28 Nick Clifton <nickc@redhat.com>
69
70 * testsuite/binutils-all/ar.exp: Relax previous restriction on
71 Alpha targets. Allow ELF based Alpha targets.
72
eb9bb5b4
MR
732016-06-28 Maciej W. Rozycki <macro@imgtec.com>
74
75 * testsuite/binutils-all/ar.exp: Use `supports_gnu_unique' with
76 the `unique_symbol' test.
77
f2b2af2c
AM
782016-06-28 Alan Modra <amodra@gmail.com>
79
80 PR 20304
81 * objdump.c (objdump_print_symname): Don't attempt to retrieve
82 version info from synthetic symbols.
83
9cc0123f
AM
842016-06-24 Alan Modra <amodra@gmail.com>
85
86 * objcopy.c (find_section_rename): Forward declare. Remove
87 ibfd and sec_ptr param. Add old_name param. Allow for NULL
88 returned_flags. Move read of section name and flags to..
89 (setup_section): ..here. Update find_section_rename call.
90 (filter_symbols): Rename section symbols for renamed sections.
91 (copy_object): Call filter_symbols when renamed sections.
92 * testsuite/lib/binutils-common.exp (is_bad_symtab): New.
93 * testsuite/binutils-all/update-section.exp: Revert 96037eb0
94 mips xfail.
95 * testsuite/binutils-all/objcopy.exp (copy_executable): Use
96 is_bad_symtab.
97 (localize-hidden-1): xfail if is_bad_symtab.
98 * testsuite/binutils-all/readelf.exp: Use is_bad_symtab to select
99 between mips/tmips.
100
43339b1d
AM
1012016-06-24 Alan Modra <amodra@gmail.com>
102
103 * objdump.c (struct print_file_list): Add "max_printed".
104 (try_print_file_open): Init new field.
105 (show_line): Don't show 5 context lines when redisplaying source.
106
96037eb0
NC
1072016-06-22 Nick Clifton <nickc@redhat.com>
108
109 * testsuite/binutils-all/ar.exp: Skip tests for Alpha target.
110 Skip bfdtest1 tests for tic30 target.
111 * testsuite/binutils-all/arm/objdump.exp: Skip for aout arm
112 target.
113 * testsuite/binutils-all/compress.exp: Expect some tests to fail
114 on the nds32.
115 * testsuite/binutils-all/copy-3.d: Skip for go32 targets.
116 * testsuite/binutils-all/copy-4.d: Skip for AIX and linuxecoff
117 targets.
118 * testsuite/binutils-all/nm.exp: Treat beos based targets as ELF
119 targets.
120 * testsuite/binutils-all/objcopy.exp: Only run reverse bytes tests
121 if the bintest.o file was created. Use the
122 get_standard_section_names proc to get the name of the data
123 section.
124 * testsuite/binutils-all/objdump.exp: Update regexps to allow for
125 RX section names.
126 * testsuite/binutils-all/readelf.exp: Use
127 get_standard_section_names proc to get the name of the data
128 section.
129 * testsuite/binutils-all/readelf.r: Allow for non standard text
130 section names.
131 * testsuite/binutils-all/readelf.s: Update regexps for tilepro.
132 * testsuite/binutils-all/size.exp: Allow for non standard section
133 names.
134 * testsuite/binutils-all/update-section.exp: Expect comapre 1vs4
135 to fail on mips targets.
136 * testsuite/lib/utils-lib.exp (default_binutils_run): Use
137 get_standard_section_names proc.
138 (run_dump_test): Likewise.
139 (proc get_standard_section_names): New proc.
140
d5b07ef4
NC
1412016-06-22 Nick Clifton <nickc@redhat.com>
142
143 * readelf.c (dynamic_section_mips_val): Increase size of timebuf.
144 (process_mips_specific): Likewise.
145 (process_gnu_liblist): Likewise.
146
bdd582db
GM
1472016-06-21 Graham Markall <graham.markall@embecosm.com>
148
149 * readelf.c (decode_ARC_machine_flags): Remove E_ARC_MACH_NPS400
150 case.
151
3ee6e4fb
NC
1522016-06-15 Nick Clifton <nickc@redhat.com>
153
154 * readelf.c (is_24bit_abs_reloc): Add support for R_FT32_20
155 reloc.
156
eecc1a7f
JB
1572016-06-14 John Baldwin <jhb@FreeBSD.org>
158
159 * objcopy.c (do_elf_stt_common): Use correct type.
160
3860d2b4
AM
1612016-06-14 Alan Modra <amodra@gmail.com>
162
163 * ar.c: Expand uses of bfd_my_archive.
164 * size.c: Likewise.
165
b0cffb47
AM
1662016-06-14 Alan Modra <amodra@gmail.com>
167
168 PR ld/20241
169 * bucomm.c (bfd_get_archive_filename): Return file name within thin
170 archive.
171
5b6312fd
NC
1722016-06-02 Nick Clifton <nickc@redhat.com>
173
bcc3a8bc
NC
174 PR 20089
175 * objcopy.c (group_signature): Fail if the input symbol table has
c09ec62d 176 not been loaded, or if the sh_info field of the group header is 0.
bcc3a8bc 177
5b6312fd
NC
178 * dwarf.c (display_debug_frames): Do not display any
179 interpretation if the block consists solely of DW__CFA_NOPs.
180
f7433f01
AM
1812016-05-31 Alan Modra <amodra@gmail.com>
182
183 * objcopy.c: Formatting, whitespace throughout.
184 (copy_main): Init newsym->othersym.
185 (parse_symflags): Make len a size_t. Adjust uses.
186
e6cc316a
L
1872016-05-25 H.J. Lu <hongjiu.lu@intel.com>
188
189 PR binutils/14625
190 * NEWS: Mention --enable-64-bit-archive.
191
f507bebf
NC
1922016-05-18 Nick Clifton <nickc@redhat.com>
193
194 PR 20096
195 * objcopy.c (copy_relocations_in_section): Also check for the
196 symbol pointed to by sym_ptr_ptr being NULL.
197
1401d2fe
MR
1982016-05-18 Maciej W. Rozycki <macro@imgtec.com>
199
200 * testsuite/binutils-all/mips/mixed-mips16-micromips.d: New test.
201 * testsuite/binutils-all/mips/mixed-mips16-micromips.s: New test
202 source.
203 * testsuite/binutils-all/mips/mips.exp: Run the new test.
204
50498060
NC
2052016-05-18 Nick Clifton <nickc@redhat.com>
206
207 * po/sv.po: Updated Swedish translation.
208
c69075ac
MR
2092016-05-18 Maciej W. Rozycki <macro@imgtec.com>
210
211 * readelf.c (dynamic_section_mips_val) <DT_MIPS_RLD_VERSION>
212 <DT_MIPS_LOCAL_GOTNO, DT_MIPS_CONFLICTNO, DT_MIPS_LIBLISTNO>
213 <DT_MIPS_SYMTABNO, DT_MIPS_UNREFEXTNO, DT_MIPS_HIPAGENO>
214 <DT_MIPS_DELTA_CLASS_NO, DT_MIPS_DELTA_INSTANCE_NO>
215 <DT_MIPS_DELTA_RELOC_NO, DT_MIPS_DELTA_SYM_NO>
216 <DT_MIPS_DELTA_CLASSSYM_NO, DT_MIPS_COMPACT_SIZE>: Use the
217 `d_val' rather than `d_ptr' member of the dynamic entry.
218
a43942db
MR
2192016-05-17 Maciej W. Rozycki <macro@imgtec.com>
220
221 * testsuite/lib/binutils-common.exp (supports_gnu_unique): New
222 procedure.
223 * testsuite/binutils-all/objcopy.exp: Use `supports_gnu_unique'
224 with the `strip-10' test.
225
71de3413
MR
2262016-05-16 Maciej W. Rozycki <macro@imgtec.com>
227
228 * testsuite/binutils-all/objcopy.exp: Don't skip the `strip-10'
229 test for the V850.
230
8f4f9071
MF
2312016-05-11 Andrew Bennett <andrew.bennett@imgtec.com>
232
233 * readelf.c (print_mips_ases): Add DSPR3.
234
15afaa63
TP
2352016-05-10 Thomas Preud'homme <thomas.preudhomme@arm.com>
236
237 * readelf.c (display_arm_attribute): Add output for Tag_DSP_extension.
238 (arm_attr_public_tags): Define DSP_extension attribute.
239
29f4fdc4
AB
2402016-05-10 Andrew Burgess <andrew.burgess@embecosm.com>
241
242 * doc/binutils.texi (nm): Update description of --size-sort.
243
315350be
NC
2442016-05-09 Nick Clifton <nickc@redhat.com>
245
246 PR binutils/20063
247 * readelf.c (get_32bit_section_headers): Warn if an out of range
248 sh_link or sh_info field is encountered.
249 (get_64bit_section_headers): Likewise.
250
4a85cc09
SKS
2512016-05-04 Senthil Kumar Selvaraj <senthil_kumar.selvaraj@atmel.com>
252
253 * testsuite/lib/binutils-common.exp (is_elf_format): Add avr-*-*.
254
99d1b268
NC
2552016-05-03 Nick Clifton <nickc@redhat.com>
256
257 * po/sv.po: Updated Swedish translation.
258
d347c9df
PS
2592016-04-29 Pitchumani Sivanupandi <pitchumani.s@atmel.com>
260
261 * readelf.c (is_32bit_pcrel_reloc): Return true if reloc is 32-bit
262 PC relocation for AVR target.
263 (is_none_reloc): Return true if reloc is any of AVR diff
264 relocations.
265
5522f910
NC
2662016-04-29 Nick Clifton <nickc@redhat.com>
267
268 PR 19938
269 * readelf.c (get_solaris_segment_type): New function.
270 (get_segment_type): Call it.
271
786a118c
NC
2722016-04-28 Nick Clifton <nickc@redhat.com>
273
274 * po/zh_CN.po: Updated Chinese (simplified) translation.
275
4bd13cde
NC
2762016-04-28 Nick Clifton <nickc@redhat.com>
277
278 PR target/19722
279 * testsuite/binutils-all/aarch64/illegal.s: New test.
280 * testsuite/binutils-all/aarch64/illegal.d: New test driver.
281
e6c7cdec
TS
2822016-04-20 Trevor Saunders <tbsaunde+binutils@tbsaunde.org>
283
284 * resres.c: Likewise.
285
6fd8e7c2
L
2862016-04-15 H.J. Lu <hongjiu.lu@intel.com>
287
288 * Makefile.in: Regenerated with automake 1.11.6.
289 * aclocal.m4: Likewise.
290 * doc/Makefile.in: Likewise.
291
84865015
NC
2922016-04-14 Nick Clifton <nickc@redhat.com>
293
294 PR target/19938
295 * testsuite/binutils-all/i386/compressed-1b.d: Allow for the
296 string sections possibly having the SHF_STRINGS flag bit set.
297 * testsuite/binutils-all/i386/compressed-1c.d: Likewise.
298 * testsuite/binutils-all/readelf.s: Likewise.
299 * testsuite/binutils-all/readelf.s-64: Likewise.
300 * testsuite/binutils-all/x86-64/compressed-1b.d: Likewise.
301 * testsuite/binutils-all/x86-64/compressed-1c.d: Likewise.
302
fd85a6a1
NC
3032016-04-13 Nick Clifton <nickc@redhat.com>
304
84865015 305 PR target/19938
fd85a6a1
NC
306 * readelf.c (get_solaris_section_type): New function: Returns the
307 name of Solaris specific section types.
308 (get_solaris_dynamic_type): New function: Return the name of
309 Solaris specific dynamic types.
310 (get_dynamic_type): Use get_solaris_dynamic_type.
311 (get_section_type_name): Use get_solaris_section_type.
312 (get_solaris_symbol_visibility): New function: Returns Solaris
313 specific symbol visibilities.
314 (print_dynamic_symbol): Use get_solaris_symbol_visibility.
315 (process_symbol_table): Likewise.
316
d6bb17b0
AA
3172016-04-13 Andreas Arnez <arnez@linux.vnet.ibm.com>
318
319 * dwarf.h (init_dwarf_regnames_s390): Declare.
320 * dwarf.c (dwarf_regnames_s390): New.
321 (init_dwarf_regnames_s390): New.
322 (init_dwarf_regnames): Call it.
323 * objdump.c (dump_dwarf): Likewise.
324
92708cec
MR
3252016-04-11 Maciej W. Rozycki <macro@imgtec.com>
326
327 * testsuite/binutils-all/mips/mips16-undecoded.d: New test.
328 * testsuite/binutils-all/mips/mips16-undecoded.s: New test
329 source.
330 * testsuite/binutils-all/mips/mips.exp: Run the new test.
331
67f101ee
NC
3322016-04-04 Nick Clifton <nickc@redhat.com>
333
334 PR 19872
335 * dwarf.c (display_debug_aranges): Skip warning about unrecognised
336 version number if the version is zero.
337
ed754a13
AM
3382016-03-29 Alan Modra <amodra@gmail.com>
339
340 * readelf.c (get_data): Use BFD_VMA_FMT to print bfd_size_type vars.
341 (get_dynamic_data): Likewise.
342
9780e045
NC
3432016-03-22 Nick Clifton <nickc@redhat.com>
344
34b9f729
NC
345 PR 19851
346 * dwarf.c (SAFE_BYTE_GET): Replace local dynamic array allocation
347 with run time size check.
348
9780e045
NC
349 * configure: Regenerate.
350
8699fc3e
AB
3512016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
352
353 * readelf.c (decode_ARC_machine_flags): Handle nps400.
354
a9522a21
AB
3552016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
356
357 * readelf.c (get_machine_flags): Move arc processing into...
358 (decode_ARC_machine_flags): ... new function. Remove use of
359 EF_ARC_CPU_GENERIC, change default case from "generic arc" to
360 "unknown arc". Merged ABI printing between two machine types.
361
24740d83
AB
3622016-03-21 Andrew Burgess <andrew.burgess@embecosm.com>
363
364 * testsuite/binutils-all/objdump.exp (cpus_expected): Add ARC700
365 to the architecture list.
366
e1fa0163
NC
3672016-03-21 Nick Clifton <nickc@redhat.com>
368
369 * dlltool.c: Replace use of alloca with call to xmalloc.
370 * dllwrap.c: Likewise.
371 * nlmconv.c: Likewise.
372 * objdump.c: Likewise.
373 * resrc.c: Likewise.
374 * winduni.c: Likewise.
375 * configure: Regenerate.
376
4fc87424
NC
3772016-03-07 Nick Clifton <nickc@redhat.com>
378
379 PR binutils/19775
380 * testsuite/binutils-all/ar.exp (proc empty_archive): New proc.
381 Run the new proc.
382 * testsuite/binutils-all/empty: New, empty, file.
383
9411fd44
MW
3842016-03-04 Matthew Wahab <matthew.wahab@arm.com>
385
386 * readelf.c (arm_attry_tag_FP_arch): Add "NEON for ARMv8.1".
387
11e5f1ec
L
3882016-02-26 H.J. Lu <hongjiu.lu@intel.com>
389
390 PR ld/19645
391 * NEWS: Mention --elf-stt-common= for objcopy.
392 * doc/binutils.texi: Document --elf-stt-common= for objcopy.
393 * objcopy.c (do_elf_stt_common): New.
394 (command_line_switch): Add OPTION_ELF_STT_COMMON.
395 (copy_options): Add --elf-stt-common=.
396 (copy_usage): Add --elf-stt-common=.
397 (copy_object): Also check do_elf_stt_common for ELF targets.
398 (copy_file): Handle do_elf_stt_common.
399 (copy_main): Handle OPTION_ELF_STT_COMMON.
400 * readelf.c (apply_relocations): Support STT_COMMON.
401 * testsuite/binutils-all/common-1.s: New file.
402 * testsuite/binutils-all/common-1a.d: Likewise.
403 * testsuite/binutils-all/common-1b.d: Likewise.
404 * testsuite/binutils-all/common-1c.d: Likewise.
405 * testsuite/binutils-all/common-1d.d: Likewise.
406 * testsuite/binutils-all/common-1e.d: Likewise.
407 * testsuite/binutils-all/common-1f.d: Likewise.
408 * testsuite/binutils-all/common-2.s: Likewise.
409 * testsuite/binutils-all/common-2a.d: Likewise.
410 * testsuite/binutils-all/common-2b.d: Likewise.
411 * testsuite/binutils-all/common-2c.d: Likewise.
412 * testsuite/binutils-all/common-2d.d: Likewise.
413 * testsuite/binutils-all/common-2e.d: Likewise.
414 * testsuite/binutils-all/common-2f.d: Likewise.
415 * testsuite/binutils-all/objcopy.exp
416 (objcopy_test_elf_common_symbols): New proc.
417 Run objcopy_test_elf_common_symbols for ELF targets
418
a9fb83be
L
4192016-02-16 H.J. Lu <hongjiu.lu@intel.com>
420
421 PR binutils/19647
422 * readelf.c (get_section_type_name): Add a missing break.
423
726c18e1
CZ
4242016-02-16 Claudiu Zissulescu <claziss@synopsys.com>
425
426 * readelf.c (is_32bit_pcrel_reloc): Add R_ARC_32_PCREL.
427
9fb71ee4
NC
4282016-02-15 Nick Clifton <nickc@redhat.com>
429
430 * readelf.c (get_section_type_name): Add hex prefix to offsets
431 printed for LOPROC and LOOS values. Ensure that a result is
432 always returned for the V850 target, even when an unrecognised
433 processor specific value is encountered.
434 (process_section_headers): Display key values in the order in
435 which they appear to the user. Add the "C (compressed)" value to
436 the list.
437
96d491cf
L
4382016-02-12 H.J. Lu <hongjiu.lu@intel.com>
439
440 * doc/binutils.texi: Fix a typo.
441
bdbca4e6
CM
4422016-02-05 Cupertino Miranda <Cupertino.Miranda@synopsys.com>
443
444 * testsuite/binutils-all/objdump.exp: Update expected default
445 architecture value for ARC binaries.
446
14f2c699
L
4472016-02-02 H.J. Lu <hongjiu.lu@intel.com>
448
449 PR binutils/19547
450 * testsuite/binutils-all/objcopy.exp
451 (objcopy_test_without_global_symbol): New proc.
452 Run objcopy_test_without_global_symbol.
453 * testsuite/binutils-all/pr19547.c: New file.
454
bf150a0b
L
4552016-01-28 H.J. Lu <hongjiu.lu@intel.com>
456
457 PR binutils/19523
458 * Makefile.am (check-DEJAGNU): Pass CC and CC_FOR_BUILD to
459 runtest.
460 * Makefile.in: Regenerated.
461 * testsuite/binutils-all/compress.exp (test_gnu_debuglink): New
462 proc.
463 Run test_gnu_debuglink for native ELF build.
464
0398b8d6
NC
4652016-01-20 Nick Clifton <nickc@redhat.com>
466
467 PR 19495
468 * testsuite/binutils-all/dlltool.exp: Fix tests for targets which
bdbca4e6 469 do not support inserting leading underscores.
0398b8d6 470
91f68a68
MG
4712016-01-20 Mickael Guene <mickael.guene@st.com>
472
473 * readelf.c (get_elf_section_flags): Display y letter for section
474 with SHF_ARM_NOREAD section flag in readelf section output.
475 (process_section_headers): Add y letter in readelf section output
476 key mapping for ARM architecture.
477 * objdump.c (dump_section_header): Display NOREAD attributes as
478 well.
479 * doc/binutils.texi (objdump): Note that it is correct for
480 sections to have both the READONLY and NOREAD attributes.
481
40068dcc
JB
4822016-01-19 John Baldwin <jhb@FreeBSD.org>
483
484 * readelf.c (get_freebsd_elfcore_note_type): Remove unused variable.
485
f4ddf30f
JB
4862016-01-19 John Baldwin <jhb@FreeBSD.org>
487
488 * readelf.c (get_freebsd_elfcore_note_type): New
489 (process_note): Add support for FreeBSD core notes.
490
34e967a5
MC
4912016-01-18 Miranda Cupertino <Cupertino.Miranda@synopsys.com>
492 Zissulescu Claudiu <Claudiu.Zissulescu@synopsys.com>
493
494 * readelf.c (get_machine_flags): Add support for newer ARC ELF
495 header flags.
496
3d961d0d
AM
4972016-01-18 Alan Modra <amodra@gmail.com>
498
499 * configure: Regenerate.
500
5c14705f
AM
5012016-01-17 Alan Modra <amodra@gmail.com>
502
503 * configure: Regenerate.
504
b3066ae8
AM
5052016-01-17 Alan Modra <amodra@gmail.com>
506
507 * testsuite/lib/binutils-common.exp (is_elf_format): Return true
508 for m68hc11/12 and xgate triples.
509
adec12c1
AM
5102016-01-17 Alan Modra <amodra@gmail.com>
511
512 * readelf.c (is_32bit_abs_reloc): Add R_M68HC11_32.
513
6f2750fe
AM
5142016-01-01 Alan Modra <amodra@gmail.com>
515
516 Update year range in copyright notice of all files.
517
3499769a
AM
518For older changes see ChangeLog-2015 and testsuite/ChangeLog-1215
519\f
520Copyright (C) 2016 Free Software Foundation, Inc.
521
522Copying and distribution of this file, with or without modification,
523are permitted in any medium without royalty provided the copyright
524notice and this notice are preserved.
525
526Local Variables:
527mode: change-log
528left-margin: 8
529fill-column: 74
530version-control: never
531End:
This page took 0.069413 seconds and 4 git commands to generate.