Add symbol called __nm_<name> to exported symbols created by dlltool.
[binutils-gdb.git] / binutils / ChangeLog
1 2017-02-27 Rudy Y <rudyy.id@gmail.com>
2
3 PR 20881
4 * dlltool.c (secdata): Align .idata$6 on 2 byte boundary.
5 (make_one_lib_file): Export a symbol called __nm_<symbol> for use
6 with auto-importing.
7
8 2017-02-25 Alan Modra <amodra@gmail.com>
9
10 * testsuite/binutils-all/dw5.S: Replace .string with .asciz.
11 Support hpux .comm variant.
12 * testsuite/binutils-all/readelf.exp: Define HPUX when assembling
13 dw5 test for hppa64-hpux.
14
15 2017-02-24 Nick Clifton <nickc@redhat.com>
16
17 * readelf.c (show_name, do_dynamic, do_syms, do_dyn_syms,
18 (do_reloc, do_sections, do_section_groups, do_section_details,
19 (do_segments, do_unwind, do_using_dynamic, do_header, do_dump,
20 (do_version, do_histogram, do_debugging, do_arch, do_notes,
21 (do_archive_index, is_32bit_elf, decompress_dumps): Use
22 bfd_boolean type.
23 (parse_args): Treat the do_* variables as booleans.
24 (print_vma): Return an unsigned int.
25 (print_symbol): Change width parameter to signed int.
26 (is_ia64_vms): Change return type to bfd_boolean.
27 (guess_is_rela): Likewise.
28 (slurp_rela_relocs): Likewise.
29 (slurp_rel_relocs): Likewise.
30 (dump_relocations): Likewise.
31 (process_file_header): Likewise.
32 (get_program_headers): Likewise.
33 (process_program_headers): Likewise.
34 (process_section_headers): Likewise.
35 (process_section_groups): Likewise.
36 (dump_ia64_vms_dynamic_fixups): Likewise.
37 (dump_ia64_vms_dynamic_relocs): Likewise.
38 (process_ia64_vms_dynamic_relocs): Likewise.
39 (process_relocs): Likewise.
40 (dump_ia64_unwind): Likewise.
41 (ia64_process_unwind): Likewise.
42 (dump_hppa_unwind): Likewise.
43 (slurp_hppa_unwind_table): Likewise.
44 (hppa_process_unwind): Likewise.
45 (decode_arm_unwind_bytecode): Likewise.
46 (decode_tic6x_unwind_bytecode): Likewise.
47 (decode_arm_unwind): Likewise.
48 (dump_arm_unwind): Likewise.
49 (arm_process_unwind): Likewise.
50 (process_unwind): Likewise.
51 (get_32bit_dynamic_section): Likewise.
52 (get_64bit_dynamic_section): Likewise.
53 (process_dynamic_section): Likewise.
54 (process_version_sections): Likewise.
55 (process_symbol_table): Likewise.
56 (process_syminfo): Likewise.
57 (apply_relocations): Likewise.
58 (disassemble_section): Likewise.
59 (dump_section_as_strings): Likewise.
60 (dump_section_as_bytes): Likewise.
61 (load_specific_debug_section): Likewise.
62 (load_debug_section): Likewise.
63 (display_debug_section): Likewise.
64 (process_section_contents): Likewise.
65 (process_attributes): Likewise.
66 (process_nds32_specific): Likewise.
67 (process_gnu_liblist): Likewise.
68 (print_core_note): Likewise.
69 (print_gnu_note): Likewise.
70 (print_v850_note): Likewise.
71 (process_netbsd_elf_note): Likewise.
72 (print_stapsdt_note): Likewise.
73 (print_ia64_vms_note): Likewise.
74 (process_note): Likewise.
75 (process_notes_at): Likewise.
76 (process_corefile_note_segments): Likewise.
77 (process_v850_notes): Likewise.
78 (process_note_sections): Likewise.
79 (process_notes): Likewise.
80 (process_arch_specific): Likewise.
81 (get_file_header): Likewise.
82 (process_object): Likewise.
83 (process_archive): Likewise.
84 (process_file): Likewise.
85 (section_subset): Make static.
86 (get_mips_reg_size): Return a signed integer.
87 (process_object): Reverse the logic of the return value.
88 (process_archive): Likewise.
89 (process_file): Likewise.
90 (process_program_headers): Fix snafu - if the program headers are
91 not available then this is not a cause to fail.
92 (process_corefile_note_segments): Likewise.
93
94 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
95
96 * readelf.c (get_ver_flags): Tidy the formatting of the string
97 returned
98
99 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
100
101 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Make
102 `isum' unsigned.
103 <SHT_GNU_verneed>: Likewise.
104
105 2017-02-24 Maciej W. Rozycki <macro@imgtec.com>
106
107 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Limit
108 the number of entries processed by the section size. Don't
109 break out of the loop if `ent.vd_next' is 0.
110
111 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
112
113 * testsuite/binutils-all/dw5.S: New file.
114 * testsuite/binutils-all/dw5.W: New file.
115 * testsuite/binutils-all/readelf.exp (readelf -wiaoRlL): New test.
116
117 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
118
119 * dwarf.c (read_and_display_attr_value): Support DW_FORM_data16.
120
121 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
122
123 * dwarf.c (display_debug_macro): Support DWARF-5. Rename
124 DW_MACRO_GNU_*.
125
126 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
127
128 * dwarf.c (decode_location_expression): Support DW_OP_implicit_pointer,
129 DW_OP_const_type, DW_OP_regval_type, DW_OP_deref_type, DW_OP_convert
130 and DW_OP_reinterpret.
131 (read_and_display_attr_value): Support DW_AT_call_value,
132 DW_AT_call_data_value, DW_AT_call_target and
133 DW_AT_call_target_clobbered.
134
135 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
136
137 * dwarf.c (fetch_indirect_line_string): New function.
138 (abbrev_attr): New field implicit_const.
139 (add_abbrev_attr): New parameter implicit_const.
140 (process_abbrev_section): Support DW_FORM_implicit_const.
141 (decode_location_expression): Support DW_OP_entry_value.
142 (read_and_display_attr_value): Add parameter implicit_const. Support
143 DW_FORM_line_strp and DW_FORM_implicit_const.
144 (read_and_display_attr): Add parameter implicit_const.
145 (process_debug_info): Support line_str and DWARF-5.
146 (read_debug_line_header): Support DWARF-5.
147 (display_formatted_table): New function.
148 (display_debug_lines_raw): New parameter file. Support DWARF-5.
149 (display_debug_lines_decoded): New parameter fileptr. Support DWARF-5.
150 (display_debug_lines): Pass file parameter.
151 (display_debug_macro): Update read_and_display_attr_value caller.
152 (display_debug_abbrev): Support DW_FORM_implicit_const.
153 (display_loclists_list): New function.
154 (display_loc_list): Support .debug_loclists.
155 (display_debug_ranges_list): New function from display_debug_ranges.
156 (display_debug_rnglists_list): New function.
157 (display_debug_ranges): Support .debug_rnglists.
158 (debug_displays): Add .debug_line_str, .debug_loclists and
159 .debug_rnglists.
160 * dwarf.h: Include dwarf2.h
161 (DWARF2_Internal_LineInfo): Add li_offset_size.
162 (DWARF2_Internal_CompUnit): Add cu_unit_type.
163 (enum dwarf_section_display_enum): Add line_str.
164 * readelf.c (process_section_headers): Add rnglists and loclists.
165
166 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
167
168 * dwarf.c (display_block): Add parameter delimiter.
169 (decode_location_expression): Update display_block callers.
170 (read_and_display_attr_value): Add parameter delimiter.
171 (read_and_display_attr, display_debug_macro): Update
172 read_and_display_attr_value caller.
173
174 2017-02-23 Jan Kratochvil <jan.kratochvil@redhat.com>
175
176 * dwarf.c (display_loc_list): Use dwarf_vma for offset, base_address
177 and off.
178 (display_loc_list_dwo): Use dwarf_vma for offset.
179 (display_debug_loc): Use dwarf_vma for offset, base_address.
180 (struct range_entry, range_entry_compar): Use dwarf_vma for
181 ranges_offset.
182 (display_debug_ranges): Use dwarf_vma for ranges_offset, offset and
183 base_address.
184
185 2017-02-23 Nick Clifton <nickc@redhat.com>
186
187 * readelf.c (display_tag_value): Use an explicit signed type for
188 the tag parameter.
189 (display_gnu_attributes): Use an unsigned integer type for
190 attribute tags.
191 (display_power_gnu_attribute): Likewise.
192 (display_s390_gnu_attribute): Likewise.
193 (display_sparc_hwcaps): Likewise.
194 (display_sparc_hwcaps2): Likewise.
195 (display_sparc_gnu_attribute): Likewise.
196 (display_mips_gnu_attribute): Likewise.
197 (display_tic6x_attribute): Likewise.
198 (display_raw_attribute): Likewise.
199 (process_attributes): Likewise.
200 (process_arm_specific): Delete redundant function.
201 (process_power_specific): Likewise.
202 (process_s390_specific): Likewise.
203 (process_sparc_specific): Likewise.
204 (process_tic6x_specific): Likewise.
205 (process_msp430x_specific): Likewise.
206 (display_public_gnu_attributes): New function. Displays known
207 information about an unknown gnu attribute.
208 (display_generic_attribute): New function. Calls
209 display_tag_value for non-nul tags.
210 (process_arch_specific): Call process_attributes even for
211 architectures not known to specifically support gnu attributes.
212
213 2017-02-22 Jan Kratochvil <jan.kratochvil@redhat.com>
214
215 * dwarf.c (decode_location_expression): Display also OP.
216
217 2017-02-22 Maciej W. Rozycki <macro@imgtec.com>
218
219 * readelf.c (process_version_sections) <SHT_GNU_verdef>: Print a
220 new line between the heading and the first version definition
221 entry.
222
223 2017-02-20 Nick Clifton <nickc@redhat.com>
224
225 PR binutils/21156
226 * dwarf.c (cu_tu_indexes_read): Move into...
227 (load_cu_tu_indexes): ... here. Change the variable into
228 tri-state. Change the function into boolean, returning
229 false if the indicies could not be loaded.
230 (find_cu_tu_set): Return NULL if the indicies could not be
231 loaded.
232
233 2017-02-17 Nick Clifton <nickc@redhat.com>
234
235 PR binutils/21156
236 * readelf.c (find_section_in_set): Test for invalid section
237 indicies.
238
239 2017-02-17 Nick Clifton <nickc@redhat.com>
240
241 * readelf.c (get_section_type_name): Add decoding of GNU section
242 types.
243
244 2017-02-15 Nick Clifton <nickc@redhat.com>
245
246 * MAINTAINERS: (MIPS, MN10300): Move Eric Christopher to Past
247 Maintainers section.
248
249 2017-02-14 Nick Clifton <nickc@redhat.com>
250
251 PR binutils/21159
252 * readelf.c (dump_section_as_strings): Reset the start address if
253 no decompression is perfromed.
254 (dump_section_as_bytes): Likewise.
255
256 2017-02-14 Nick Clifton <nickc@redhat.com>
257
258 PR binutils/21158
259 * rddbg.c (read_symbol_stabs_debugging_info): Check for a null or
260 empty symbol name.
261
262 2017-02-14 Nick Clifton <nickc@redhat.com>
263
264 PR binutils/21157
265 * stabs.c (parse_stab_enum_type): Check for corrupt NAME:VALUE
266 pairs.
267 (parse_number): Exit early if passed an empty string.
268
269 2017-02-14 Nick Clifton <nickc@redhat.com>
270
271 PR binutils/21155
272 * readelf.c (IN_RANGE): New macro. Tests for an address + offset
273 being within a given range.
274 (target_specific_reloc_handling): Use macro to test for underflow
275 as well as overflow of reloc offset.
276
277 2017-02-13 Nick Clifton <nickc@redhat.com>
278
279 PR binutils/21150
280 * nm.c (file_symbol): Add test of string length before testing
281 string characters.
282
283 2017-02-13 Nick Clifton <nickc@redhat.com>
284
285 PR binutils/21135
286 * readelf.c (dump_section_as_bytes): Handle the case where
287 uncompress_section_contents returns false.
288 (dump_section_as_bytes, load_specific_debug_section): Likewise.
289
290 2017-02-13 Nick Clifton <nickc@redhat.com>
291
292 PR binutils/21149
293 * readelf.c (get_compression_header): Add size parameter. Check
294 size against sizeof compression header before attempting to
295 extract the header.
296 (process_section_headers): Pass size to get_compression_header.
297 (dump_section_as_strings): Likewise.
298 (dump_section_as_bytes): Likewise.
299 (load_specific_debug_section): Likewise.
300
301 2017-02-13 Nick Clifton <nickc@redhat.com>
302
303 PR binutils/21148
304 * readelf.c (process_version_sections): Include size of auxillary
305 version information when checking for buffer overflow.
306
307 2017-02-13 Nick Clifton <nickc@redhat.com>
308
309 PR binutils/21147
310 * readelf.c (process_section_contents): Fix off by one error
311 reporting un-dumped sections.
312
313 2017-02-13 Nick Clifton <nickc@redhat.com>
314
315 PR binutils/21139
316 * readelf.c (target_specific_reloc_handling): Add num_syms
317 parameter. Check for symbol table overflow before accessing
318 symbol value. If reloc pointer is NULL, discard all saved state.
319 (apply_relocations): Pass num_syms to target_specific_reloc_handling.
320 Call target_specific_reloc_handling with a NULL reloc pointer
321 after processing all of the relocs.
322
323 2017-02-13 Nick Clifton <nickc@redhat.com>
324
325 PR binutils/21137
326 * readelf.c (target_specific_reloc_handling): Add end parameter.
327 Check for buffer overflow before writing relocated values.
328 (apply_relocations): Pass end to target_specific_reloc_handling.
329
330 2017-01-27 Dilyan Palauzov <dilyan.palauzov@aegee.org>
331 Nick Clifton <nickc@redhat.com>
332
333 PR 20343
334 * doc/binutils.texi (ar): Extend documentation of the --plugin
335 option. Include a description of where the plugins should be
336 located.
337 (nm): Likewise.
338
339 2017-01-23 Nick Clifton <nickc@redhat.com>
340
341 * MAINTAINERS: Add Bernd to Past Maintainers section.
342 (SCORE): Remove Mei Ligang as maintainer. Add to Past Maintainers
343 section.
344
345 2017-01-23 Bernd Schmidt <bschmidt@redhat.com>
346
347 * MAINTAINERS (BFIN): Remove myself as Blackfin maintainer.
348
349 2017-01-20 Andrew Burgess <andrew.burgess@embecosm.com>
350
351 * objdump.c (dump_section_header): Extract max section name length
352 from data parameter, use this when formatting output.
353 (find_longest_section_name): New function.
354 (dump_headers): Calculate longest section name when in wide mode,
355 reformat to unify printing of header line.
356
357 2017-01-18 Bernhard Rosenkranzer <bero@lindev.ch>
358
359 PR 21059
360 * arlex.l: Support processing with flex 2.6.3.
361 * deflex.l: Likewise.
362
363 2017-01-17 Dmitry Timoshkov <dmitry@baikal.ru>
364
365 * resbin.c: Optional dialog control data immediately follows
366 the control description without alignment.
367 * testsuite/binutils-all/windres/controldata.rc: New test.
368 source.
369 * testsuite/binutils-all/windres/controldata.rsd: New test.
370
371 2017-01-12 Nick Clifton <nickc@redhat.com>
372
373 PR binutils/20876
374 * NEWS: Mention the new feature.
375 * testsuite/binutils-all/objdump.exp (test_build_id_debuglink):
376 New proc to test the location of separate debug info files using
377 the build-id method.
378
379 2017-01-10 Nick Clifton <nickc@redhat.com>
380
381 PR 21034
382 * stabs.c (parse_stab_members): Fix thinko checking for g++
383 version 1 stabs information.
384
385 2017-01-09 Nick Clifton <nickc@redhat.com>
386
387 * objdump.c (display_file): Add new parameter 'last_file'. If
388 last_file is true, do not call bfd_close at the end of the
389 function.
390 (main): Set the value of the last_file parameter when calling
391 display_file.
392
393 2017-01-09 Alan Modra <amodra@gmail.com>
394
395 * readelf.c (process_section_headers): Correct .rel.dyn/.rela.dyn
396 comment.
397
398 2017-01-06 Nick Clifton <nickc@redhat.com>
399
400 * MAINTAINERS: Move Paul Brook to the Past Maintainers section.
401
402 2017-01-04 Dilan Palauzov <dilyan.palauzov@aegee.org>
403
404 PR 20958
405 * syslex.l (option): Add noyywrap
406 (yywrap): Delete.
407
408 2017-01-02 Alan Modra <amodra@gmail.com>
409
410 Update year range in copyright notice of all files.
411
412 For older changes see ChangeLog-2016
413 \f
414 Copyright (C) 2017 Free Software Foundation, Inc.
415
416 Copying and distribution of this file, with or without modification,
417 are permitted in any medium without royalty provided the copyright
418 notice and this notice are preserved.
419
420 Local Variables:
421 mode: change-log
422 left-margin: 8
423 fill-column: 74
424 version-control: never
425 End: