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