gdb/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
4c6a93d3
NC
12012-06-28 Nick Clifton <nickc@redhat.com>
2
3 * po/uk.po: New Ukranian translation.
4 * configure.in (ALL_LINGUAS): Add uk.
5 * configure: Regenerate.
6
a4fd3de5
AM
72012-06-26 Alan Modra <amodra@gmail.com>
8
9 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
10 file has multiple .got/.toc sections and all don't fit in
11 current toc group.
12
62655c7b
RM
132012-06-22 Roland McGrath <mcgrathr@google.com>
14
15 * elf.c (assign_file_positions_for_non_load_sections): Define
16 __ehdr_start symbol if it's referenced and there's a PT_LOAD
17 segment that covers both the file and program headers.
18
b70e7a2f
AS
192012-06-22 Andreas Schwab <schwab@linux-m68k.org>
20
21 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
22 _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
23
27fc25a1
AM
242012-06-22 Alan Modra <amodra@gmail.com>
25
26 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
27 save/restore functions when relocatable. Make "funcs" static.
28
51806b97
HPN
292012-06-18 Hans-Peter Nilsson <hp@axis.com>
30
31 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
32 of merged .got and .got.plt entries.
33
46691134
AM
342012-06-18 John Szakmeister <john@szakmeister.net>
35
36 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
37
26a48bb3
HPN
382012-06-17 Hans-Peter Nilsson <hp@axis.com>
39
40 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
41 <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
42 thread common symbols.
43
5968a7b8
NC
442012-06-13 Nick Clifton <nickc@redhat.com>
45
46 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
47 (elf32_arm_object_p): If the machine number could not be deduced
48 from the notes, call bfd_arm_get_mach_from_attributes to get the
49 number from the attributes.
50
8981c88a
L
512012-06-12 H.J. Lu <hongjiu.lu@intel.com>
52
53 PR bfd/14207
54 * elf.c (assign_file_positions_for_non_load_sections): Abort if
55 PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
56
3832a4d8
AM
572012-06-12 Alan Modra <amodra@gmail.com>
58
59 PR ld/14207
60 * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
61 sections at end of PT_LOAD segment when searching for segment
62 that contains end of relro extent.
63
f3944f72
L
642012-06-11 H.J. Lu <hongjiu.lu@intel.com>
65
66 * elf.c (assign_file_positions_for_non_load_sections): Reindent.
67
be01b344
L
682012-06-11 H.J. Lu <hongjiu.lu@intel.com>
69
70 * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
71
ffbc01cc
AM
722012-06-06 Alan Modra <amodra@gmail.com>
73
74 * elflink.c (elf_link_input_bfd): Provide a file symbol for
75 each input file with local syms, if the input lacks such.
76 (bfd_elf_final_link): Add a file symbol to mark end of locals
77 for which we can associate with input files.
78 (struct elf_final_link_info): Add filesym_count field.
79 (struct elf_outext_info): Add need_second_pass and second_pass.
80 (elf_link_output_extsym): Detect symbols defined in the output
81 file, emit them on second pass over locals.
82
fe78531d
JK
832012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
84
85 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
86 of target_read_memory as bfd_size_type.
87 * bfd-in2.h: Regenerate.
88 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
89 argument of target_read_memory as bfd_size_type.
90 (_bfd_elf32_bfd_from_remote_memory): Likewise.
91 (_bfd_elf64_bfd_from_remote_memory): Likewise.
92 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
93 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
94
aef36ac1
AM
952012-06-03 Alan Modra <amodra@gmail.com>
96
97 PR binutils/13897
98 * elf.c (elf_find_function): Cache last function sym info.
99 (_bfd_elf_maybe_function_sym): Return function size, pass in
100 section of interest.
101 * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
102 (_bfd_elf_maybe_function_sym): Likewise.
103 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
104 (opd_entry_value): Add in_code_sec param. Revert caching code.
105 Return -1 if in_code_sec and function found in wrong section.
106 Update all calls.
107
5299c1c4
JK
1082012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
109
110 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
111 of target_read_memory as size_t.
112 * bfd-in2.h: Regenerate.
113 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
114 argument of target_read_memory as size_t.
115 (_bfd_elf32_bfd_from_remote_memory): Likewise.
116 (_bfd_elf64_bfd_from_remote_memory): Likewise.
117 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
118 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
119
ee1e4ede
AM
1202012-06-01 Alan Modra <amodra@gmail.com>
121
122 PR binutils/13897
123 * elf64-ppc.c (opd_entry_value): Rewrite cache code.
124
6f0c7050
TT
1252012-05-29 Tom Tromey <tromey@redhat.com>
126
127 * opncls.c (bfd_fopen): Always close fd on failure.
128 (bfd_fdopenr): Likewise.
129
f5eda473
AM
1302012-05-27 Alan Modra <amodra@gmail.com>
131
132 PR ld/14170
133 * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
134 a dynamic library finds a new instance with non-default
135 visibility in a regular object, correctly handle symbols
136 already on the undefs list and undo dynamic symbol state when
137 the new symbol is hidden or internal.
138
bbf96e4e
L
1392012-05-25 H.J. Lu <hongjiu.lu@intel.com>
140
141 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
142 dynamic_sec_flags to create PLT .eh_frame section.
143 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
144
9a2a56cc
AM
1452012-05-25 Alan Modra <amodra@gmail.com>
146
147 PR ld/13909
148 * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
149 (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
150 * elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
151 * elflink.c (bfd_elf_size_dynamic_sections): Let the backend
152 size dynamic sections before stripping eh_frame_hdr.
153 (bfd_elf_gc_sections): Handle multiple .eh_frame sections.
154 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
155 if no other .eh_frame sections exist.
156 * elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
157 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
158 or alloc plt_eh_frame here..
159 (elf_i386_size_dynamic_sections): ..do it here instead. Don't
160 specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
161 (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
162 before writing plt offset.
163 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
164 or alloc plt_eh_frame here..
165 (elf_x86_64_size_dynamic_sections): ..do it here instead.
166 (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
167 before writing plt offset.
168
4bbe044a
AM
1692012-05-24 Alan Modra <amodra@gmail.com>
170
171 PR ld/14158
172 * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
173 size to output section alignment.
174 (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
175
89b2bec8
AM
1762012-05-23 Alan Modra <amodra@gmail.com>
177
178 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
179 BFDs with multiple .eh_frame sections.
180
259b427a
AM
1812012-05-23 Alan Modra <amodra@gmail.com>
182
183 PR ld/13909
184 * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
185
e4de50d4
L
1862012-05-22 H.J. Lu <hongjiu.lu@intel.com>
187
188 PR ld/13909
189 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
190 last change.
191 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
192
7e01508c
AM
1932012-05-22 Alan Modra <amodra@gmail.com>
194
195 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
196 first one is zero size or discarded.
197 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
198 glink_eh_frame contents here..
199 (ppc_elf_finish_dynamic_sections): ..rather than here. Just set
200 offset to .glink.
201
5d4f7eb2
L
2022012-05-22 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/13909
205 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
206 eh_frame section if there is an input .eh_frame section.
207 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
208
2fe0fd06
L
2092012-05-22 H.J. Lu <hongjiu.lu@intel.com>
210
211 PR ld/14105
212 * elf32-i386.c (elf_i386_create_dynamic_sections): Always
213 create PLT eh_frame section with SEC_LINKER_CREATED.
214 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
215
90061c33
AM
2162012-05-22 Alan Modra <amodra@gmail.com>
217
218 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
219 sections attached to a BFD.
220 * section.c (bfd_get_section_by_name): Rewrite description.
221 (bfd_get_next_section_by_name): New function.
222 * bfd-in2.h: Regenerate.
223
8bbeae90
AS
2242012-05-21 Andreas Schwab <schwab@linux-m68k.org>
225
226 * elf32-m68k.c (elf_m68k_grok_prstatus): New function.
227 (elf_m68k_grok_psinfo): New function.
228 (elf_backend_grok_prstatus): Define.
229 (elf_backend_grok_psinfo): Define.
230
a44acb1e
MR
2312012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
232
233 * elf64-mips.c (elf_backend_got_header_size): Correct definition.
234 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
235 backend's GOT header size instead of hardcoding it.
236
751c1fe7
MR
2372012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
238
239 * elf32-vax.c (elf_vax_relocate_section)
240 <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
241
ddd74d3c
MR
2422012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
243
244 * elf32-vax.c (elf_vax_relocate_section)
245 <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
246 its name as the check for text sections.
247
b0189df0
MR
2482012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
249
250 * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
251 the third reloc offset is the same as the first.
252
94caa966
AM
2532012-05-19 Alan Modra <amodra@gmail.com>
254
255 * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
256 (has_tls_reloc, has_tls_get_addr_call): Move back to..
257 * elf32-ppc.c: ..here.
258 (ppc_elf_section_flags, elf_backend_section_flags): Delete.
259 (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
260
220cf809
L
2612012-05-18 H.J. Lu <hongjiu.lu@intel.com>
262
263 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
264 _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
265 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
266
3a11e31e
RM
2672012-05-18 Roland McGrath <mcgrathr@google.com>
268
269 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
270 not to clobber the ar_fmag field stored in ARED->arch_header.
271
2a0bfc8d
PA
2722012-05-18 Pedro Alves <palves@redhat.com>
273
274 * mach-o.h: Don't include sysdep.h.
275
0bee45d9
NC
2762012-05-18 Nick Clifton <nickc@redhat.com>
277
278 PR 14072
279 * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
280 complaining about config.h not having been included.
281 * bfd-in2.h: Regenerate.
282
f2c621e4
AS
2832012-05-18 Andreas Schwab <schwab@linux-m68k.org>
284
285 * aclocal.m4: Regenerate.
286 * Makefile.in: Regenerate.
287
df7b86aa
NC
2882012-05-17 Daniel Richard G. <skunk@iskunk.org>
289 Nick Clifton <nickc@redhat.com>
290
291 PR 14072
292 * configure.in: Add check that sysdep.h has been included before
293 any system header files.
294 * configure: Regenerate.
295 * config.in: Regenerate.
296 * aclocal.m4: Regenerate.
297 * bfd-in.h: Generate an error if included before config.h.
298 * sysdep.h: Likewise.
299 * bfd-in2.h: Regenerate.
300 * compress.c: Remove #include "config.h".
301 * plugin.c: Likewise.
302 * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
303 * elf64-hppa.c: Likewise.
304 * som.c: Likewise.
305 * xsymc.c: Likewise.
306
2633a79c
AM
3072012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
308 Alan Modra <amodra@gmail.com>
309
310 * elf.c (ignore_section_sym): Correct comment. Don't return
311 true for absolute section.
312 (elf_map_symbols): Move stray comment. Adjust for above change.
313 Don't discard global section symbols.
314
ab6dce23
AM
3152012-05-17 Alan Modra <amodra@gmail.com>
316
317 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
318 _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
319 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
320 absolute.
321
e1dad58d
AM
3222012-05-17 Alan Modra <amodra@gmail.com>
323
324 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
325 is_ppc_vle): Move to..
326 * elf32-ppc.h: ..here, making is_ppc_vle a macro.
327
a0f49396
NC
3282012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
329
330 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
331 bfd_get_section_lma, bfd_get_section_alignment,
332 bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
333 in order to use the `bfd' argument.
334 * bfd-in2.h: Regenerate.
335 * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
336 as the first argument for `bfd_get_section_alignment'.
337 * elf32-arm.c (create_ifunc_sections): Likewise, for
338 `bfd_set_section_alignment'.
339 * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
340 `bfd_get_section_name'.
341 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
342 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
343 (ppc_elf_relocate_section): Likewise.
344 * elf64-mmix.c (mmix_final_link_relocate): Likewise, for
345 `bfd_get_section_vma'.
346 * elf64-ppc.c (create_linkage_sections): Likewise, for
347 `bfd_set_section_alignment'.
348
40551fb8
NC
3492012-05-16 Georg-Johann Lay <avr@gjlay.de>
350
351 PR target/13503
352 * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
353 * bfd-in2.h: Regenerate.
354 * libbfd.h: Regenrate.
355 * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
356 R_AVR_8_HLO8.
357 (avr_reloc_map): Likewise.
358
691bf19c
NC
3592012-05-16 Daniel Richard G. <skunk@iskunk.org>
360
361 PR binutils/13558
362 * bfd/aout-cris.c: Include sysdep.h before bfd.h.
363 * bfd/aout-ns32k.c: Likewise.
364 * bfd/aout-sparcle.c: Likewise.
365 * bfd/aout0.c: Likewise.
366 * bfd/bfd-in2.h: Likewise.
367 * bfd/coff-stgo32.c: Likewise.
368 * bfd/cpu-lm32.c: Likewise.
369 * bfd/cpu-microblaze.c: Likewise.
370 * bfd/cpu-score.c: Likewise.
371 * bfd/cpu-tilegx.c: Likewise.
372 * bfd/cpu-tilepro.c: Likewise.
373 * bfd/elf32-lm32.c: Likewise.
374 * bfd/elf32-microblaze.c: Likewise.
375 * bfd/elf32-score7.c: Likewise.
376 * bfd/elf32-tilepro.c: Likewise.
377 * bfd/elfxx-tilegx.c: Likewise.
378 * bfd/mach-o.h: Likewise.
379 * bfd/nlm32-ppc.c: Likewise.
380 * bfd/ns32knetbsd.c: Likewise.
381 * bfd/pef.h: Likewise.
382 * bfd/plugin.c: Likewise.
383 * bfd/stab-syms.c: Likewise.
384 * bfd/sunos.c: Likewise.
385 * bfd/syms.c: Likewise.
386 * bfd/xsym.h: Likewise.
387
8b127cbc
AM
3882012-05-16 Alan Modra <amodra@gmail.com>
389
390 * elflink.c: Rename flaginfo to flinfo throughout, except..
391 (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo.
392 Formatting, style. Simplify flag match.
393
a2a50954
AM
3942012-05-16 Alan Modra <amodra@gmail.com>
395
396 * dwarf2.c: Formatting.
397 (arange_add): Pass in unit rather than bfd. Update callers.
398 Ignore empty ranges. Don't ask for cleared memory.
399 (parse_comp_unit): Only set unit->base_address if processing
400 DW_TAG_compile_unit.
401 (find_debug_info): Optimise section lookup.
402 (place_sections): Use bfd_alloc for stash->adjusted_sections.
403 (find_line): Match previously parsed comp unit addresses as we
404 do for newly parsed comp units.
405
df35687a
AM
4062012-05-16 Alan Modra <amodra@gmail.com>
407
408 * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf
409 stops at end of ar_size field.
410
eee3b786
AM
4112012-05-16 Alan Modra <amodra@gmail.com>
412
413 PR ld/13962
414 PR ld/7023
415 * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is
416 out of range. As a special case, fix sh_info for zero sh_size.
417 Do the same for .symtab.
418
6927f982
NC
4192012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
420 Stephane Carrez <stcarrez@nerim.fr>
421
422 * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
423 * config.bfd: Likewise.
424 * cpu-m9s12x.c: New.
425 * cpu-m9s12xg.c: New.
426 * elf32-m68hc12.c: Add S12X and XGATE co-processor support.
427 Add option to offset S12 addresses into XGATE memory space.
428 Fix carry bug in IMM16 (IMM8 low/high) relocate.
429 * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
430 (ALL_MACHINES_CFILES): Likewise.
431 * reloc.c: Add S12X relocs.
432 * Makefile.in: Regenerate.
433 * bfd-in2.h: Regenerate.
434 * libbfd.h: Regenerate.
435
b9c361e0
JL
4362012-05-14 James Lemke <jwlemke@codesourcery.com>
437 Catherine Moore <clm@codesourcery.com>
438
439 * bfd.c (bfd_lookup_section_flags): Add section parm.
440 * ecoff.c (bfd_debug_section): Remove flag_info initializer.
441 * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
442 (bfd_elf_lookup_section_flags): Add section parm.
443 * elf32-ppc.c (is_ppc_vle): New function.
444 (ppc_elf_modify_segment_map): New function.
445 (elf_backend_modify_segment_map): Define.
446 (has_vle_insns): New define.
447 * elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
448 * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
449 Move in logic to omit / include a section.
450 * libbfd-in.h (bfd_link_info): Add section parm.
451 (bfd_generic_lookup_section_flags): Likewise.
452 * reloc.c (bfd_generic_lookup_section_flags): Likewise.
453 * section.c (bfd_section): Move out section_flag_info.
454 (BFD_FAKE_SECTION): Remove flag_info initializer.
455 * targets.c (_bfd_lookup_section_flags): Add section parm.
456
4572012-05-14 Catherine Moore <clm@codesourcery.com>
458
459 * archures.c (bfd_mach_ppc_vle): New.
460 * bfd-in2.h: Regenerated.
461 * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
462 * elf32-ppc.c (split16_format_type): New enumeration.
463 (ppc_elf_vle_split16): New function.
464 (HOWTO): Add entries for R_PPC_VLE relocations.
465 (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
466 (ppc_elf_section_flags): New function.
467 (ppc_elf_lookup_section_flags): New function.
468 (ppc_elf_section_processing): New function.
469 (ppc_elf_check_relocs): Handle PPC_VLE relocations.
470 (ppc_elf_relocation_section): Likewise.
471 (elf_backend_lookup_section_flags_hook): Define.
472 (elf_backend_section_flags): Define.
473 (elf_backend_section_processing): Define.
6927f982 474 * elf32-ppc.h (ppc_elf_section_processing): Declare.
b9c361e0
JL
475 * libbfd.h: Regenerated.
476 * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
477 BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
478 BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
479 BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
480 BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
481 BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
482 BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
483 BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
484 BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.
485
8b127cbc 4862012-05-11 Georg-Johann Lay <avr@gjlay.de>
99700d6f
NC
487
488 PR target/13503
489 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
490 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
491 * bfd-in2.h: Regenerate.
492 * libbfd.h: Regenrate.
493 * elf32-avr.c (elf_avr_howto_table): Add entries for
494 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
495 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
496 R_AVR_8_HHI8.
497
268a8d3a
L
4982012-05-10 H.J. Lu <hongjiu.lu@intel.com>
499
500 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
501 addend overflow check.
502
74b1e045
DD
5032012-05-10 DJ Delorie <dj@redhat.com>
504
505 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
506
6f2c9068
L
5072012-05-10 H.J. Lu <hongjiu.lu@intel.com>
508
509 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
510 hex number in x32 addend overflow check.
511
1da80baa
L
5122012-05-10 H.J. Lu <hongjiu.lu@intel.com>
513
514 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
515 R_X86_64_RELATIVE64.
516
8cf0d2dd
L
5172012-05-09 H.J. Lu <hongjiu.lu@intel.com>
518
519 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
520 overflow for R_X86_64_RELATIVE64.
521
2d16d28e
DK
5222012-05-08 Ben Cheng <bccheng@google.com>
523
8b127cbc 524 * elf.c: Preserve the original p_align and p_flags if they are
2d16d28e
DK
525 valid.
526
2de5d135
AM
5272012-05-07 Alan Modra <amodra@gmail.com>
528
529 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
530 RELOC_AGAINST_DISCARDED_SECTION invocation.
531
a134cc9b
HPN
5322012-05-07 Hans-Peter Nilsson <hp@axis.com>
533
534 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
535 local variable i_ instead of assuming and using a variable i.
536
545fd46b
MR
5372012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
538
539 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
540 relocations.
541 * elfxx-mips.c (mips_reloc_against_discarded_section): New
542 function.
543 (_bfd_mips_elf_relocate_section): Call it, in place of
544 RELOC_AGAINST_DISCARDED_SECTION.
545 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
546 to RELOC_AGAINST_DISCARDED_SECTION.
547 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
548 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
549 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
550 * elf32-bfin.c (bfin_relocate_section): Likewise.
551 (bfinfdpic_relocate_section): Likewise.
552 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
553 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
554 * elf32-cris.c (cris_elf_relocate_section): Likewise.
555 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
556 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
557 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
558 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
559 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
560 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
561 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
562 * elf32-i370.c (i370_elf_relocate_section): Likewise.
563 * elf32-i386.c (elf_i386_relocate_section): Likewise.
564 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
565 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
566 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
567 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
568 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
569 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
570 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
571 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
572 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
573 * elf32-mep.c (mep_elf_relocate_section): Likewise.
574 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
575 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
576 * elf32-mt.c (mt_elf_relocate_section): Likewise.
577 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
578 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
579 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
580 * elf32-rx.c (rx_elf_relocate_section): Likewise.
581 * elf32-s390.c (elf_s390_relocate_section): Likewise.
582 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
583 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
584 * elf32-sh.c (sh_elf_relocate_section): Likewise.
585 * elf32-spu.c (spu_elf_relocate_section): Likewise.
586 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
587 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
588 * elf32-v850.c (v850_elf_relocate_section): Likewise.
589 * elf32-vax.c (elf_vax_relocate_section): Likewise.
590 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
591 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
592 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
593 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
594 (elf64_alpha_relocate_section): Likewise.
595 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
596 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
597 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
598 * elf64-s390.c (elf_s390_relocate_section): Likewise.
599 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
600 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
601 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
602 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
603 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
604
62ab84ec
AM
6052012-05-05 Alan Modra <amodra@gmail.com>
606
607 PR ld/14052
608 PR ld/13621
609 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
610
45dfa85a
AM
6112012-05-05 Alan Modra <amodra@gmail.com>
612
613 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
614 bfd_und_section and bfd_ind_section with their _ptr variants, or
615 use corresponding bfd_is_* macros.
616 * aout-ns32k.c: Likewise.
617 * aout-tic30.c: Likewise.
618 * coff-arm.c: Likewise.
619 * coff-tic54x.c: Likewise.
620 * cpu-ns32k.c: Likewise.
621 * elf-attrs.c: Likewise.
622 * elfcode.h: Likewise.
623 * peicode.h: Likewise.
624 * reloc.c: Likewise.
625 * riscix.c: Likewise.
626 * versados.c: Likewise.
627 * section.c: Likewise.
628 (bfd_abs_section, bfd_ind_section, bfd_com_section,
629 bfd_ind_section): Delete.
630 (std_section): New array replacing above.
631 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
632 bfd_ind_section_ptr, STD_SECTION): Update.
633 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
36ab465d 634 * bfd-in2.h: Regenerate.
45dfa85a 635
f6c1a2d5
NC
6362012-05-03 Sean Keys <skeys@ipdatasys.com>
637
638 * cpu-xgate.c: New file. Added XGATE support.
639 * archures.c (bfd_architecture): Add XGATE architecture.
640 (bfd_archures_list): Add reference to XGATE architecture info.
641 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
642 * reloc.c: Add various XGATE relocation enums.
643 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
644 list.
645 * Makefile.am: Add support for XGATE elf.
646 * configure.in: Ditto.
647 * config.bfd: Ditto.
648 * Makefile.in: Regenerate.
649 * configure: Ditto.
650 * bfd-in2.h: Ditto.
651 * libbfd.h: Ditto.
652 Added files for XGATE relocations.
653 * elf32-xgate.c: Created minimal relocation file.
654 * elf32-xgate.h: Created minimal header file for elf32-xgate.
655
fec16237
TG
6562012-05-03 Tristan Gingold <gingold@adacore.com>
657
658 * dwarf2.c (decode_line_info): Ignore
659 DW_LNE_HP_source_file_correlation.
660
57402f1e
NC
6612012-05-01 Nick Clifton <nickc@redhat.com>
662
663 PR binutils/13121
664 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
665 AIX system headers.
666 * coff-ppc.c: Likewise.
667 * cofflink.c: Likewise.
668 * elf32-arm.c: Likewise.
669 * elf64-sparc.c: Likewise.
670 * elflink.c: Likewise.
671 * pdp11.c: Likewise.
672 * rescoff.c: Likewise.
673
c49ead2f
MW
6742012-04-26 Mark Wielaard <mjw@redhat.com>
675
676 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
677 possibly being relative to DW_AT_low_pc.
678 (parse_comp_unit): Likewise.
679
cab0ad83
AS
6802012-04-26 Andreas Schwab <schwab@linux-m68k.org>
681
682 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
683 also when generating PIE.
684 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
685 by relocations as dynamic.
686
2b56b3f3
HPN
6872012-04-26 Hans-Peter Nilsson <hp@axis.com>
688
689 Provide a way for programs to recognize BFD_ASSERT calls.
690 * bfd.c (bfd_assert_handler_type): New API type.
691 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
692 (_bfd_assert_handler): New variable.
693 (_bfd_default_assert_handler): New function.
694 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
695 * libbfd-in.h (_bfd_assert_handler): Declare.
696 * libbfd.h, bfd-in2.h: Regenerate.
697
27586251
HPN
6982012-04-24 Hans-Peter Nilsson <hp@axis.com>
699
700 PR ld/13990
701 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
702 symbol, where PLT refcount is set to -1.
703
dbaa2011
AM
7042012-04-24 Alan Modra <amodra@gmail.com>
705
706 PR ld/13991
8b127cbc 707 * elf-bfd.h (_bfd_elf_link_just_syms): Define as
dbaa2011 708 _bfd_generic_link_just_syms.
8b127cbc
AM
709 * elflink.c (_bfd_elf_link_just_syms): Delete.
710 * linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
dbaa2011 711
8b127cbc
AM
712 * bfd-in.h (discarded_section): Renamed from elf_discarded_section.
713 * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
dbaa2011
AM
714 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
715 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
8b127cbc
AM
716 * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
717 * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
718 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
719 * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c,
720 * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c,
721 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c,
722 * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c,
723 * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c,
724 * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
725 * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c,
726 * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c,
727 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c,
728 * elf32-score.c, * elf32-score7.c, * elf32-sh.c,
729 * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c,
730 * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c,
731 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
732 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
733 * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c,
734 * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c,
735 * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c,
736 * reloc.c: Update all references.
737 * bfd-in2.h: Regenerate.
dbaa2011 738
87049b0d
AK
7392012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
740
741 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
742 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
743
85e02784
TS
7442012-04-19 Thomas Schwinge <thomas@codesourcery.com>
745
746 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
747 got_type.
748 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
749 it.
750
87458ed2
KK
7512012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
752
753 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
754 relocations when LE conversion happens on the IE tls symbol.
755
ea2d813e
RM
7562012-04-17 Roland McGrath <mcgrathr@google.com>
757
758 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
759 so that 32-byte boundary is a proper instruction boundary.
760
da03bf4d
TG
7612012-04-17 Tristan Gingold <gingold@adacore.com>
762
763 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
764 member of an object archive.<
765
d2226024
TG
7662012-04-17 Tristan Gingold <gingold@adacore.com>
767
768 * vms-lib.c (MAX_EKEYLEN): Define.
769 (MAX_KEYLEN): Fix value.
770 (vms_write_index): Add comments and fix indentation.
771 Adjust comparaison. Add assertions. Free kbn_blk.
772 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
773 Compense MAX_KEYLEN adjustment.
774
cb4437b8
MR
7752012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
776
777 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
778 (_bfd_mips_elf_check_relocs): Update accordingly.
779
aed64b35
L
7802012-04-13 Alan Modra <amodra@gmail.com>
781
782 PR ld/13947
783 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
784 reloc sections.
785
2615994e
DM
7862012-04-12 David S. Miller <davem@davemloft.net>
787
788 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
789 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
790 * libbfd.h: Regenerate.
791 * bfd-in2.h: Likewise.
792 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
793 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
794 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
795 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
796 (_bfd_sparc_elf_check_relocs): Likewise.
797 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
798 (_bfd_sparc_elf_relocate_section): Likewise.
799
b38cadfb
NC
8002012-04-12 Roland McGrath <mcgrathr@google.com>
801
802 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
803 New variables.
804 (struct elf32_arm_link_hash_table): New member `nacl_p'.
805 (elf32_arm_link_hash_table_create): Initialize it.
806 (elf32_arm_nacl_link_hash_table_create): New function.
807 (arm_movw_immediate, arm_movt_immediate): New functions.
808 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
809 (elf32_arm_finish_dynamic_sections): Likewise.
810 (elf32_arm_output_plt_map_1): Likewise.
811 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
812 New backend vector stanza.
813 (elf32_arm_nacl_modify_segment_map): New function.
814 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
815 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
816 * configure.in: Likewise.
817 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
818 (bfd_elf32_littlearm_nacl_vec): Likewise.
819 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
820 (bfd_elf32_bigarm_symbian_vec): Likewise.
821 (bfd_elf32_littlearm_symbian_vec): Likewise.
822 (bfd_elf32_bigarm_vxworks_vec): Likewise.
823 (bfd_elf32_littlearm_vxworks_vec): Likewise.
824 * configure: Regenerated.
825
202e2356
NC
8262012-04-12 Tristan Gingold <gingold@adacore.com>
827
828 * elflink.c (elf_link_output_extsym): Add a guard.
829 (bfd_elf_final_link): Remove assertion.
830 (bfd_elf_final_link): Add a guard.
831 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
832 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
833 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
834 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
835 Remove.
836 (elfNN-ia64-vms target): Move to ...
837 * elf64-ia64-vms.c: New file.
838 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
839 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
840 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
841 * configure: Regenerate.
842 * Makefile.in: Regenerate.
843
4841cf0c
NC
8442012-04-11 Nick Clifton <nickc@redhat.com>
845
846 PR binutils/13897
847 * elf64-ppc.c (opd_entry_value): When dealing with sections
848 without relocs, keep the last section loaded in order to avoid
849 unnecessary reloads.
850
d324f6d6
RM
8512012-04-09 Roland McGrath <mcgrathr@google.com>
852
853 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
854 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
855 (nacl_modify_program_headers): Likewise.
856
5a68afcf
RM
8572012-04-03 Roland McGrath <mcgrathr@google.com>
858
859 * elf-nacl.c: New file.
860 * elf-nacl.h: New file.
861 * elf32-i386.c (elf_backend_modify_segment_map): Define for
862 bfd_elf32_i386_nacl_vec.
863 (elf_backend_modify_program_headers): Likewise.
864 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
865 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
866 (elf_backend_modify_program_headers): Likewise.
867 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
868 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
869 * Makefile.in: Regenerated.
870 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
871 (bfd_elf32_x86_64_nacl_vec): Likewise.
872 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
873 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
874 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
875 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
876 (bfd_elf32_i386_nacl_vec): Likewise.
877 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
878 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
879 * configure: Regenerated.
880
3a4ae681
AS
8812012-03-31 Andreas Schwab <schwab@linux-m68k.org>
882
883 * elf32-m68k.c (elf_m68k_relocate_section): Allow
884 R_68K_TLS_LE{8,16,32} for PIE.
885
a7e28bbe
AK
8862012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
887
888 * elf64-s390.c: Fix several comments regarding PLT entry
889 description.
890 * elf32-s390.c: Likewise.
891
f41345a7
AK
8922012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
893
894 * elf64-s390.c: Use the section pointer shortcuts in
895 elf_link_hash_table and remove them from the target specific
896 variant.
897 * elf32-s390.c: Likewise.
898
9aa17453
AK
8992012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
900
901 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
902 New definitions.
903 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
904 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
905 (elf_s390_finish_dynamic_sections): Likewise.
906 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
907 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
908 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
909 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
910 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
911
00d8c7a9
AK
9122012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
913
914 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
915 Rename all occurrences in the file to elf_dyn_relocs.
916 * elf64-s390.c: Likewise.
917
a66eed7a
AM
9182012-03-30 Alan Modra <amodra@gmail.com>
919
920 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
921 libraries.
922
f67f98b5
AM
9232012-03-29 Alan Modra <amodra@gmail.com>
924
925 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
926 * bfd-in2.h: Regenerate.
927
e8d2ba53
AM
9282012-03-23 Alan Modra <amodra@gmail.com>
929
930 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
931 on empty alloc sections.
932
051d833a
AM
9332012-03-23 Alan Modra <amodra@gmail.com>
934
935 * linker.c (_bfd_nearby_section): New function, split out from..
936 (fix_syms): ..here.
937 * bfd-in.h (_bfd_nearby_section): Declare.
938 * bfd-in2.h: Regenerate.
939 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
940 data_index_section with ld -q or ld -r output relocs against
941 stripped output sections. Instead use _bfd_nearby_section.
942
62599110
AM
9432012-03-23 Alan Modra <amodra@gmail.com>
944
945 PR binutils/13894
946 * elf64-ppc.c (opd_entry_value): Read full symbol table when
947 sym hashes unavailable.
948
b781d74f
JM
9492012-03-21 Eliot Dresselhaus <eliot@sonic.net>
950
951 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
952 for non-C6X objects.
953
17d5dae2
KT
9542012-03-20 Kai Tietz <ktietz@redhat.com>
955
956 PR ld/12742
957 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
958 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
959 Add windows.h header include if HAVE_WINDOWS_H is defined.
960 (dlerror): New static function if windows variant is used instead
961 of dlfcn.h.
962 (dlclose): Likewise.
963 (dlopen): Likewise.
964 (dlsym): Likewise.
965 * configure: Regenerated.
966 * config.in: Regenerated.
967
bdb892b9
L
9682012-03-20 H.J. Lu <hongjiu.lu@intel.com>
969
970 PR ld/13880
971 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
972 for R_386_GOTOFF relocation against protected function if
973 SYMBOLIC_BIND is true.
974
975 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
976 error for R_X86_64_GOTOFF64 relocation against protected function
977 when building executable or SYMBOLIC_BIND is true.
978
8059fb19
RM
9792012-03-16 Roland McGrath <mcgrathr@google.com>
980
981 * config.bfd: Handle x86_64-*-nacl*.
982 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
983 (bfd_elf32_x86_64_nacl_vec): Likewise.
984 * targets.c: Support them.
985 * configure.in: Likewise.
986 * configure: Regenerated.
987
ac56ee8f
MGD
9882012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
989
990 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
991 (elf32_arm_attributes_forbid_div): Likewise.
992 (elf32_arm_merge_eabi_attributes): Correct handling of
993 Tag_DIV_use.
994
eed180f8
RM
9952012-03-15 Roland McGrath <mcgrathr@google.com>
996
a4456d24
RM
997 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
998 elf_x86_64_backend_data parameters for plt_eh_frame.
999
eed180f8
RM
1000 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
1001 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
1002 (elf_x86_64_arch_bed): New variable.
1003 (elf_backend_arch_data): New macro.
1004 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
1005 (elf_x86_64_allocate_dynrelocs): Likewise.
1006 (elf_x86_64_relocate_section): Likewise.
1007 (elf_x86_64_plt_sym_val): Likewise.
1008 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
1009 parameters for PLT details.
1010 (elf_x86_64_finish_dynamic_sections): Likewise.
1011
caa0075c
RM
10122012-03-14 Roland McGrath <mcgrathr@google.com>
1013
1014 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
1015 to the full size, padding out with nop instructions.
1016
1d7e9d18
AM
10172012-03-12 Alan Modra <amodra@gmail.com>
1018
1019 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
1020 on zero size dynbss symbol.
1021 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
1022 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
1023 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
1024 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1025 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
1026 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
1027 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
1028 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
1029 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1030 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1031 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1032 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
1033 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
1034 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
1035 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
1036 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1037 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1038 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
1039 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
1040 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1041 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
1042
aea77599
AM
10432012-03-10 Edmar Wienskoski <edmar@freescale.com>
1044
1045 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1046 * bfd-in2.h: Regenerate.
1047 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
1048 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1049
56b8aada
L
10502012-03-09 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 PR ld/13817
8b127cbc 1053 * elf32-i386.c (elf_i386_relocate_section): Restore
56b8aada
L
1054 R_386_IRELATIVE.
1055
8b127cbc 1056 * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
56b8aada
L
1057 R_X86_64_IRELATIVE.
1058
460f1cdc
TG
10592012-03-08 Tristan Gingold <gingold@adacore.com>
1060
1061 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
1062 keylen according to archive kind. Set nextvbn and nextrfa lhd
1063 fields. Add comments.
1064
0a22ae8e
NC
10652012-03-07 Nick Clifton <nickc@redhat.com>
1066
1067 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
1068 field.
1069 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
1070 (elf_mn10300_tdata): Define.
1071 (elf_mn10300_local_got_tls_type): Define.
1072 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
1073 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
1074 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
1075 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
1076 (mn10300_reloc_map): Likewise.
1077 (elf_mn10300_tls_transition): New function.
1078 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
1079 (mn10300_elf_check_relocs): Add TLS support.
1080 (mn10300_elf_final_link_relocate): Likewise.
1081 (mn10300_elf_relocate_section): Likewise.
1082 (mn10300_elf_relax_section): Likewise.
1083 (elf32_mn10300_link_hash_newfunc): Initialise new field.
1084 (_bfd_mn10300_copy_indirect_symbol): New function.
1085 (elf32_mn10300_link_hash_table_create): Initialise new fields.
1086 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
1087 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
1088 (_bfd_mn10300_elf_reloc_type_class): Allocate an
1089 elf_mn10300_obj_tdata structure.
1090 (elf_backend_copy_indirect_symbol): Define.
1091 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
1092 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
1093 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
1094 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
1095 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
1096 alongside other MN10300 relocations.
1097 * bfd-in2.h: Regenerate.
1098 * libbfd.h: Regenerate.
1099
3ce231f8
JJ
11002012-03-06 Jakub Jelinek <jakub@redhat.com>
1101
1102 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
1103 set relocate to TRUE.
1104
0bef263a
RO
11052012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1106
1107 PR ld/12152
1108 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
1109 overflows for R_SPARC_UA32 in .stab sections.
1110
84abc003
AM
11112012-03-01 Alan Modra <amodra@gmail.com>
1112
1113 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
1114
3d301fdc
AM
11152012-02-27 Alan Modra <amodra@gmail.com>
1116
1117 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
1118 before calling elf specific function.
1119 (sh_elf_osec_readonly_p): Test for error return from above.
1120
cb83c803
AM
11212012-02-27 Alan Modra <amodra@gmail.com>
1122
1123 * elf32-spu.c (build_stub): Fix malloc under-allocation.
1124
6f7be959
WL
11252012-02-25 Walter Lee <walt@tilera.com>
1126 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
1127 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
1128 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
1129 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
1130 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
1131 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
1132 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
1133 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
1134 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
1135 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
1136 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
1137 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
1138 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
1139 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
1140 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
1141 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
1142 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
1143 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
1144 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
1145 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
1146 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
1147 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
1148 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
1149 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
1150 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
1151 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
1152 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
1153 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
1154 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
1155 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
1156 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
1157 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
1158 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
1159 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
1160 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
1161 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
1162 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
1163 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
1164 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
1165 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
1166 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
1167 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
1168 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
1169 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
1170 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
1171 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
1172 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
1173 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
1174 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
1175 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
1176 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
1177 relocations.
1178 (tilepro_reloc_map): Ditto.
1179 (tilepro_info_to_howto_rela): Ditto.
1180 (reloc_to_create_func): Ditto.
1181 (tilepro_tls_translate_to_le): New.
1182 (tilepro_tls_translate_to_ie): New.
1183 (tilepro_elf_tls_transition): New.
1184 (tilepro_elf_check_relocs): Handle new tls relocations.
1185 (tilepro_elf_gc_sweep_hook): Ditto.
1186 (allocate_dynrelocs): Ditto.
1187 (tilepro_elf_relocate_section): Ditto.
1188 (tilepro_replace_insn): New.
1189 (insn_mask_X1): New.
1190 (insn_mask_X0_no_dest_no_srca): New
1191 (insn_mask_X1_no_dest_no_srca): New
1192 (insn_mask_Y0_no_dest_no_srca): New
1193 (insn_mask_Y1_no_dest_no_srca): New
1194 (srca_mask_X0): New
1195 (srca_mask_X1): New
1196 (insn_tls_le_move_X1): New
1197 (insn_tls_le_move_zero_X0X1): New
1198 (insn_tls_ie_lw_X1): New
1199 (insn_tls_ie_add_X0X1): New
1200 (insn_tls_ie_add_Y0Y1): New
1201 (insn_tls_gd_add_X0X1): New
1202 (insn_tls_gd_add_Y0Y1): New
1203 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
1204 relocations.
1205 (tilegx_reloc_map): Ditto.
1206 (tilegx_info_to_howto_rela): Ditto.
1207 (reloc_to_create_func): Ditto.
1208 (tilegx_elf_link_hash_table): New field disable_le_transition.
1209 (tilegx_tls_translate_to_le): New.
1210 (tilegx_tls_translate_to_ie): New.
1211 (tilegx_elf_tls_transition): New.
1212 (tilegx_elf_check_relocs): Handle new tls relocations.
1213 (tilegx_elf_gc_sweep_hook): Ditto.
1214 (allocate_dynrelocs): Ditto.
1215 (tilegx_elf_relocate_section): Ditto.
1216 (tilegx_copy_bits): New.
1217 (tilegx_replace_insn): New.
1218 (insn_mask_X1): New.
1219 (insn_mask_X0_no_dest_no_srca): New.
1220 (insn_mask_X1_no_dest_no_srca): New.
1221 (insn_mask_Y0_no_dest_no_srca): New.
1222 (insn_mask_Y1_no_dest_no_srca): New.
1223 (insn_mask_X0_no_operand): New.
1224 (insn_mask_X1_no_operand): New.
1225 (insn_mask_Y0_no_operand): New.
1226 (insn_mask_Y1_no_operand): New.
1227 (insn_tls_ie_ld_X1): New.
1228 (insn_tls_ie_ld4s_X1): New.
1229 (insn_tls_ie_add_X0X1): New.
1230 (insn_tls_ie_add_Y0Y1): New.
1231 (insn_tls_ie_addx_X0X1): New.
1232 (insn_tls_ie_addx_Y0Y1): New.
1233 (insn_tls_gd_add_X0X1): New.
1234 (insn_tls_gd_add_Y0Y1): New.
1235 (insn_move_X0X1): New.
1236 (insn_move_Y0Y1): New.
1237 (insn_add_X0X1): New.
1238 (insn_add_Y0Y1): New.
1239 (insn_addx_X0X1): New.
1240 (insn_addx_Y0Y1): New.
1241 * libbfd.h: Regenerate.
1242 * bfd-in2.h: Regenerate.
1243
82590249
WL
12442012-02-25 Walter Lee <walt@tilera.com>
1245
fb6cedde
WL
1246 * config.bfd (tilegx-*-*): rename little endian vector; add big
1247 endian vector.
1248 (tilegxbe-*-*): New case.
1249 * configure.in (bfd_elf32_tilegx_vec): Rename...
1250 (bfd_elf32_tilegx_le_vec): ... to this.
1251 (bfd_elf32_tilegx_be_vec): New vector.
1252 (bfd_elf64_tilegx_vec): Rename...
1253 (bfd_elf64_tilegx_le_vec): ... to this.
1254 (bfd_elf64_tilegx_be_vec): New vector.
1255 * configure: Regenerate.
1256 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
1257 (TARGET_LITTLE_NAME): Ditto.
1258 (TARGET_BIG_SYM): Define.
1259 (TARGET_BIG_NAME): Define.
1260 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
1261 (TARGET_LITTLE_NAME): Ditto.
1262 (TARGET_BIG_SYM): Define.
1263 (TARGET_BIG_NAME): Define.
1264 * targets.c (bfd_elf32_tilegx_vec): Rename...
1265 (bfd_elf32_tilegx_le_vec): ... to this.
1266 (bfd_elf32_tilegx_be_vec): Declare.
1267 (bfd_elf64_tilegx_vec): Rename...
1268 (bfd_elf64_tilegx_le_vec): ... to this.
1269 (bfd_elf64_tilegx_be_vec): Declare.
1270 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
1271 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
1272 * bfd-in2.h: Regenerate.
1273 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 1274 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 1275
4115917d
NC
12762012-02-24 Nick Clifton <nickc@redhat.com>
1277
1278 PR ld/13730
1279 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
1280 error message instead of aborting, when an outofrange reloc is
1281 encountered.
1282
19765f52
IS
12832012-02-23 Iain Sandoe <idsandoe@googlemail.com>
1284
1285 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
1286 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
1287 bit-fields when target and host differ in endian-ness. When
1288 PAIRs are non-scattered find the 'symbol' from the preceding
1289 reloc. Add FIXME re. reloc symbols on section boundaries.
1290 (bfd_mach_o_swap_out_non_scattered_reloc): New.
1291 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
1292
6639d37a
IS
12932012-02-17 Iain Sandoe <idsandoe@googlemail.com>
1294
1295 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
1296 sect-diffs.
1297 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
1298 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1299
e1e81ed3
IS
13002012-02-17 Tristan Gingold <gingold@adacore.com>
1301
1302 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
1303 * libbfd.h: Regenerated.
1304 * bfd-in2.h: Likewise.
1305 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
1306 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
1307 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1308
d0ddfe27
AK
13092012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1310
1311 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
1312 GD->LE and LD->LE optimizations.
1313
eb8c5f3f
AM
13142012-02-16 Alan Modra <amodra@gmail.com>
1315
1316 PR binutils/13355
1317 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
1318
e1741a1e
RH
13192012-02-13 Richard Henderson <rth@redhat.com>
1320
1321 PR ld/13621
1322 * linker.c (fix_syms): Force symbols outside any section into
1323 bfd_abs_section_ptr.
1324
5efbbc43
AM
13252012-02-13 Alan Modra <amodra@gmail.com>
1326
1327 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
1328 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
1329 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
1330 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
1331
3e3c397d
JK
13322012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1333 Nick Clifton <nickc@redhat.com>
1334
1335 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
1336 memset.
1337
09903f4b
IS
13382012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1339
1340 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
1341 vma additions in their logical, rather than physical order.
1342
632039e0
IS
13432012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1344
1345 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
1346 parameters.
1347 * mach-o-x86-64.c (text_section_names_xlat): New.
1348 (mach_o_x86_64_segsec_names_xlat): New.
1349 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
1350 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
1351
565a6476
TG
13522012-02-10 Tristan Gingold <gingold@adacore.com>
1353
1354 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
1355 to avoid infinite loop. Add comments.
1356
923f257f
L
13572012-02-09 H.J. Lu <hongjiu.lu@intel.com>
1358
1359 PR ld/13675
1360 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
1361 nop instructions.
1362 (bfd_arch_i386_short_nop_fill): New.
1363 (bfd_arch_i386_long_nop_fill): Likewise.
1364 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
1365 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
1366 bfd_arch_info initializers.
1367
1368 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
1369 (bfd_arch_i386_short_nop_fill): This.
1370 Update bfd_arch_info initializers.
1371 * cpu-l1om.c: Likewise.
1372
4e6b54a6
AM
13732012-02-08 Alan Modra <amodra@gmail.com>
1374
1375 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
1376 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
1377 the correct h->u.weakdef.
1378
ff9e0f5b
AM
13792012-02-07 Alan Modra <amodra@gmail.com>
1380
1381 * elf.c (elf_find_function): Don't use internal_elf_sym.
1382 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
1383 parameter with asymbol.
1384 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
1385 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
1386 (struct elf_backend_data <maybe_function_sym>): Likewise.
1387
526f25b2
EW
13882012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
1389
1390 PR bfd/13410
8b127cbc 1391 * elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
1392 condition that qualifies the candidates for relaxation.
1393
7c4f9963
TG
13942012-02-02 Tristan Gingold <gingold@adacore.com>
1395
1396 * bfdio.c (real_fopen): Remove unused vms_modes variable.
1397
facf03f2
TG
13982012-02-02 Tristan Gingold <gingold@adacore.com>
1399
1400 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
1401 variable warning.
1402
cd99171c
TG
14032012-02-02 Tristan Gingold <gingold@adacore.com>
1404
1405 * archive.c (bfd_slurp_armap): Fix thinko in cast.
1406
b7761f11
L
14072012-01-31 H.J. Lu <hongjiu.lu@intel.com>
1408
1409 PR ld/13616
1410 * archures.c (bfd_arch_info): Add fill.
1411 (bfd_default_arch_struct): Add bfd_arch_default_fill.
1412 (bfd_arch_default_fill): New.
1413
1414 * configure.in: Set bfd version to 2.22.52.
1415 * configure: Regenerated.
1416
1417 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
1418 initializer.
1419 * cpu-arc.c: Likewise.
1420 * cpu-arm.c: Likewise.
1421 * cpu-avr.c: Likewise.
1422 * cpu-bfin.c: Likewise.
1423 * cpu-cr16.c: Likewise.
1424 * cpu-cr16c.c: Likewise.
1425 * cpu-cris.c: Likewise.
1426 * cpu-crx.c: Likewise.
1427 * cpu-d10v.c: Likewise.
1428 * cpu-d30v.c: Likewise.
1429 * cpu-dlx.c: Likewise.
1430 * cpu-epiphany.c: Likewise.
1431 * cpu-fr30.c: Likewise.
1432 * cpu-frv.c: Likewise.
1433 * cpu-h8300.c: Likewise.
1434 * cpu-h8500.c: Likewise.
1435 * cpu-hppa.c: Likewise.
1436 * cpu-i370.c: Likewise.
1437 * cpu-i860.c: Likewise.
1438 * cpu-i960.c: Likewise.
1439 * cpu-ia64.c: Likewise.
1440 * cpu-ip2k.c: Likewise.
1441 * cpu-iq2000.c: Likewise.
1442 * cpu-lm32.c: Likewise.
1443 * cpu-m10200.c: Likewise.
1444 * cpu-m10300.c: Likewise.
1445 * cpu-m32c.c: Likewise.
1446 * cpu-m32r.c: Likewise.
1447 * cpu-m68hc11.c: Likewise.
1448 * cpu-m68hc12.c: Likewise.
1449 * cpu-m68k.c: Likewise.
1450 * cpu-m88k.c: Likewise.
1451 * cpu-mcore.c: Likewise.
1452 * cpu-mep.c: Likewise.
1453 * cpu-microblaze.c: Likewise.
1454 * cpu-mips.c: Likewise.
1455 * cpu-mmix.c: Likewise.
1456 * cpu-moxie.c: Likewise.
1457 * cpu-msp430.c: Likewise.
1458 * cpu-mt.c: Likewise.
1459 * cpu-ns32k.c: Likewise.
1460 * cpu-openrisc.c: Likewise.
1461 * cpu-or32.c: Likewise.
1462 * cpu-pdp11.c: Likewise.
1463 * cpu-pj.c: Likewise.
1464 * cpu-plugin.c: Likewise.
1465 * cpu-powerpc.c: Likewise.
1466 * cpu-rl78.c: Likewise.
1467 * cpu-rs6000.c: Likewise.
1468 * cpu-rx.c: Likewise.
1469 * cpu-s390.c: Likewise.
1470 * cpu-score.c: Likewise.
1471 * cpu-sh.c: Likewise.
1472 * cpu-sparc.c: Likewise.
1473 * cpu-spu.c: Likewise.
1474 * cpu-tic30.c: Likewise.
1475 * cpu-tic4x.c: Likewise.
1476 * cpu-tic54x.c: Likewise.
1477 * cpu-tic6x.c: Likewise.
1478 * cpu-tic80.c: Likewise.
1479 * cpu-tilegx.c: Likewise.
1480 * cpu-tilepro.c: Likewise.
1481 * cpu-v850.c: Likewise.
1482 * cpu-vax.c: Likewise.
1483 * cpu-w65.c: Likewise.
1484 * cpu-we32k.c: Likewise.
1485 * cpu-xc16x.c: Likewise.
1486 * cpu-xstormy16.c: Likewise.
1487 * cpu-xtensa.c: Likewise.
1488 * cpu-z80.c: Likewise.
1489 * cpu-z8k.c: Likewise.
1490
1491 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 1492 (bfd_arch_i386_fill): New.
b7761f11
L
1493 Add bfd_arch_i386_fill to bfd_arch_info initializer.
1494
1495 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
1496 * cpu-l1om.c: Likewise.
1497
ff9e0f5b 1498 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
1499 if fill size is 0.
1500
1501 * bfd-in2.h: Regenerated.
1502
0d048da3
ME
15032012-01-27 Michael Eager <eager@eagercon.com>
1504
8b127cbc 1505 * elf32-microblaze.c (create_got_section):
0d048da3
ME
1506 Reuse existing .rela.got section.
1507
9f296da3
AM
15082012-01-23 Alan Modra <amodra@gmail.com>
1509
1510 * elf-bfd.h: Formatting.
1511 (struct elf_backend_data): Add "maybe_function_sym".
1512 (_bfd_elf_maybe_function_sym): Declare.
1513 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
1514 (elfNN_bed): Init new field.
1515 * elf.c (elf_find_function): Use maybe_function_sym.
1516 (_bfd_elf_maybe_function_sym): New function.
1517 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
1518 (ppc64_elf_maybe_function_sym): New function.
1519
f1bb16f8
NC
15202012-01-20 Francois Gouget <fgouget@codeweavers.com>
1521
1522 PR binutils/13534
1523 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
1524 pad the size field in an archive header.
1525 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
1526 function for the archive size field.
1527 (bfd_generic_openr_next_archived_file): Likewise.
1528 (do_slurp_coff_armap): Likewise.
1529 (_bfd_write_archive_contents): Likewise.
1530 (_bfd_bsd44_write_ar_hdr): Use the new function.
1531 (bfd_ar_hdr_from_filesystem): Likewise.
1532 (_bfd_write_archive_contents): Likewise.
1533 (bsd_write_armap): Likewise.
1534 (coff_write_armap): Likewise.
1535 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
1536 * bfdio.c (bfd_bread): Use correct type for archive element
1537 sizes.
1538 * ar.c (open_inarch): Likewise.
1539 (extract_file): Likewise.
1540 * libbfd-in.h (struct areltdata): Use correct types for
1541 parsed_size and extra_size fields.
1542 Prototype _bfd_ar_sizepad function.
1543 * libbfd.h: Regenerate.
1544
1f20dca5
UW
15452012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1546
1547 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
1548 Return NULL if core file generation is unsupported.
1549 (elfcore_write_prstatus): Likewise.
1550 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
1551 (elf_backend_write_core_note): Define.
1552
100fc767
TG
15532012-01-19 Tristan Gingold <gingold@adacore.com>
1554
1555 * pef.c: Add a comment.
1556 * xsym.c: Likewise.
1557
75cd47ed
AM
15582012-01-17 Alan Modra <amodra@gmail.com>
1559
1560 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
1561 trailing garbage in the note.
1562 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
1563
8a5dcf53
AM
15642012-01-16 Daniel Green <venix1@gmail.com>
1565
1566 PR ld/13491
1567 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
1568 h->root.type not h->type.
1569 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
1570
bb76d940
IS
15712012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1572
8a5dcf53
AM
1573 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
1574 indirect symbols.
687be931
IS
1575
15762012-01-13 Iain Sandoe <idsandoe@googlemail.com>
1577
1578 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
1579 position from here... to (bfd_mach_o_build_seg_command): Here.
1580
50d10658
IS
15812012-01-12 Iain Sandoe <idsandoe@googlemail.com>
1582
1583 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
1584 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
1585 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
1586 file. (bfd_mach_o_section): Add indirect_syms field.
1587
e5081f2f
IS
15882012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1589
1590 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
1591 vmsize from filesize. Don't compute offsets or file sizes for
1592 zerofill sections.
1593
bbd56171
IS
15942012-01-11 Iain Sandoe <idsandoe@googlemail.com>
1595
1596 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
1597 command type independent.
1598
794e51c0
AM
15992012-01-11 Alan Modra <amodra@gmail.com>
1600
1601 * elf64-ppc.c: Define more insns used in plt call stubs.
1602 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
1603 (ppc64_elf_relocate_section): Likewise.
1604 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
1605 (struct ppc_link_hash_table): Increase size of stub_count array.
1606 Add plt_stub_align and plt_thread_safe.
1607 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
1608 (plt_stub_size, plt_stub_pad): New functions.
1609 (build_plt_stub): Emit barriers for power7 thread safety. Don't
1610 emit needless save of r2.
1611 (build_tls_get_addr_stub): Adjust params.
1612 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
1613 plt stubs. Adjust build_*plt_stub calls.
1614 (ppc_size_one_stub): Similarly.
1615 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
1616 params. Choose default for plt_thread_safe based on existence of
1617 calls to thread creation functions. Modify plt_call to
1618 plt_call_r2save when no tocsave reloc found. Align tail of stub
1619 sections.
1620 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
1621 output of stub statistics.
1622 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
1623 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
1624
df4f9443
L
16252012-01-10 H.J. Lu <hongjiu.lu@intel.com>
1626
1627 PR ld/13581
1628 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
1629 check on R_X86_64_PCXX.
1630
2a65a88e
TG
16312012-01-10 Tristan Gingold <gingold@adacore.com>
1632
1633 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
1634 warning.
1635
660722b0
TG
16362012-01-10 Tristan Gingold <gingold@adacore.com>
1637
1638 * bfdio.c (bfd_tell): Handle nested archives.
1639 (bfd_seek): Ditto.
1640 * cache.c (bfd_cache_lookup_worker): Ditto.
1641 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
1642 nested archives.
1643 (bfd_generic_openr_next_archived_file): Likewise.
1644
b22161d6
IS
16452012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1646
1647 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
1648 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
1649 (bfd_mach_o_primary_symbol_sort_key): Likewise.
1650 (bfd_mach_o_cf_symbols): Likewise.
1651 (bfd_mach_o_sort_symbol_table): Remove.
1652 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
1653 for indirect and dysymtab counts. Do the symbol sorting here.
1654 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
1655 Make the indirect symbols a TODO.
1656 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
1657 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
1658 a non-zero value.
1659 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
1660 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
1661 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
1662 (IS_MACHO_INDIRECT): Remove.
1663 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
1664
28a1b4f8
NC
16652012-01-06 Nick Clifton <nickc@redhat.com>
1666
1667 PR binutils/13121
1668 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
1669 'flaginfo' to avoid conflicts with AIX system headers.
1670
36f0a48f
TG
16712012-01-06 Tristan Gingold <gingold@adacore.com>
1672
1673 * bfdio.c (bfd_bread): Use arelt_size macro.
1674
76d4c1cb
TG
16752012-01-06 Tristan Gingold <gingold@adacore.com>
1676
1677 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
1678
a1c7aafb
NC
16792012-01-05 Nick Clifton <nickc@redhat.com>
1680
1681 PR ld/12161
1682 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
1683 necessary.
1684
e85c6a70
JK
16852012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1686
1687 Fix zero registers core files when built by gcc-4.7.
1688 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
1689 size. Call elfcore_write_note for the local variables. Remove the
1690 final elfcore_write_note call. Add NOTREACHED comments.
1691
15bbba8d
TG
16922012-01-04 Tristan Gingold <gingold@adacore.com>
1693
1694 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
1695 (bfd_mach_o_generic_stat_arch_elt): Adjust.
1696
a4e241ca
TG
16972012-01-04 Tristan Gingold <gingold@adacore.com>
1698
1699 * mach-o.c (bfd_mach_o_fat_member_init): New function.
1700 (bfd_mach_o_openr_next_archived_file): Reindent.
1701 Adjust to call bfd_mach_o_fat_member_init.
1702 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
1703
71141310
TG
17042012-01-04 Tristan Gingold <gingold@adacore.com>
1705
1706 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
1707 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
1708 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
1709 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
1710 BFD_RELOC_MACH_O_X86_64_BRANCH32,
1711 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
1712 BFD_RELOC_MACH_O_X86_64_GOT.
1713
9f4a5bd1
TG
17142012-01-04 Tristan Gingold <gingold@adacore.com>
1715
1716 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
1717 (bfd_mach_o_load_command): Add fvmlib field.
1718
1719 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
1720 (bfd_mach_o_read_command): Handle fvmlib.
1721
0b2de107
TG
17222012-01-04 Tristan Gingold <gingold@adacore.com>
1723
1724 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
1725 Decode msubtype for ARM.
1726
aeefa1c9
TG
17272012-01-04 Tristan Gingold <gingold@adacore.com>
1728
1729 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
1730
fc55a902
TG
17312012-01-04 Tristan Gingold <gingold@adacore.com>
1732
1733 * mach-o.h: Reindent header.
1734 (bfd_mach_o_encryption_info_command): New structure.
1735 (bfd_mach_o_load_command): Add encryption_info field.
1736
1737 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
1738 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
1739 (bfd_mach_o_read_command): Adjust error message.
1740
2ca7691a
TG
17412012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
1742
1743 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
1744 which reads DWARF2 and stores in stash from find_line.
1745 (find_line) Call _bfd_dwarf2_slurp_debug_info.
1746 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
1747 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
1748 * mach-o.c (dsym_subdir): The name of subdir where debug
1749 information may be stored.
1750 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
1751 type is UUID.
1752 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
1753 corresponding to the executable.
1754 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
1755 specified binary file.
1756 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
1757 the original BFD.
1758 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
1759 executables, dylibs, and bundles.
1760 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
1761 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
1762
68588f95
IS
17632012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1764
1765 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
1766 for stabd symbols.
1767 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
1768 (bfd_mach_o_cf_symbols): Likewise.
1769
f2b324f1
IS
17702012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1771
1772 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
1773
7f307238
IS
17742012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1775
1776 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
1777 as the value of an indirect symbol. Keep the string table index in
1778 non-indirect syms for reference.
1779 (bfd_mach_o_write_dysymtab): New.
1780 (bfd_mach_o_primary_symbol_sort_key): New.
1781 (bfd_mach_o_cf_symbols): New.
1782 (bfd_mach_o_sort_symbol_table): New.
1783 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
1784 If we are emitting a dysymtab, process indirect symbols and count the
1785 number of each other kind.
1786 (bfd_mach_o_mangle_sections): New.
1787 (bfd_mach_o_write_contents): Split out some pre-requisite code into
1788 the command builder. Write dysymtab if the command is present.
1789 (bfd_mach_o_count_sections_for_seg): New.
1790 (bfd_mach_o_build_seg_command): New.
1791 (bfd_mach_o_build_dysymtab_command): New.
1792 (bfd_mach_o_build_commands): Reorganize to support the fact that some
1793 commands are optional and should not be emitted if there are no
1794 sections or symbols.
1795 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 1796 * mach-o.h: Amend and add to comments.
7f307238
IS
1797 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
1798 pointer to the indirects, when present.
1799 (bfd_mach_o_should_emit_dysymtab): New macro.
1800 (IS_MACHO_INDIRECT): Likewise.
1801
23e1d329 1802For older changes see ChangeLog-2011
56882138
AM
1803\f
1804Local Variables:
1805mode: change-log
1806left-margin: 8
1807fill-column: 74
1808version-control: never
1809End:
This page took 1.118754 seconds and 4 git commands to generate.