* elf-m10300.c (mn10300_elf_mkobject): New function.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
997fbe36
NC
12011-05-23 Nick Clifton <nickc@redhat.com>
2
3 * elf-m10300.c (mn10300_elf_mkobject): New function.
4 (bfd_elf32_mkobject): Define.
5
6061a67d
AM
62011-05-23 Alan Modra <amodra@gmail.com>
7
8 * elf-bfd.h: Comment typo fix.
9 * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
10 struct elf_dyn_relocs throughout.
11 * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
12
25f53a85
AM
132011-05-23 Alan Modra <amodra@gmail.com>
14
15 * elf32-frv.c: Use info->callbacks->einfo throughout file in linker
16 functions rather than warning callback or _bfd_error_handler.
17 * elf32-ppc.c: Likewise.
18 * elf64-ppc.c: Likewise.
19 * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
20 arg error.
21 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
22
6de6a7fe
AM
232011-05-23 Alan Modra <amodra@gmail.com>
24
25 PR 12763
26 * elf.c (assign_file_positions_for_load_sections): Set sh_offset for
27 .tbss, and page align same for all SHT_NOBITS sections.
28
86b2281f
AM
292011-05-21 Alan Modra <amodra@gmail.com>
30
31 PR 12763
32 * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
33 from PT_TLS header.
34 (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
35 segment if just for .tbss.
36 (assign_file_positions_for_load_sections): Don't report "can't
37 allocate in segment" errors for .tbss.
38 (assign_file_positions_for_non_load_sections): Don't set p_filesz
39 from SHT_NOBITS section filepos.
40
4a732032
BS
412011-05-20 Bernd Schmidt <bernds@codesourcery.com>
42
43 * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
44 R_C6000_PCR_H16 and R_C6000_PCR_L16.
45 (elf32_tic6x_relocate_section): Handle them.
46
dd98f8d2
NC
472011-05-18 Nick Clifton <nickc@redhat.com>
48
49 PR ld/12761
50 * elflink.c (elf_link_add_object_symbols): Process .gnu.warning
51 sections when building shared libraries.
52
9c489990
NC
532011-05-18 RafaƂ Krypa <r.krypa@samsung.com>
54
55 PR ld/12778
56 * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
57 reloc pointer.
58
5ccfed9b
TG
592011-05-18 Tristan Gingold <gingold@adacore.com>
60
61 * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
62 (xcoff_sweep): Always keep dwarf sections.
63 (xcoff_link_input_bfd): Handle dwarf symbols and sections.
64
85645aed
TG
652011-05-18 Tristan Gingold <gingold@adacore.com>
66
67 * libxcoff.h (struct xcoff_dwsect_name): New type.
68 (XCOFF_DWSECT_NBR_NAMES): New macro.
69 (xcoff_dwsect_names): Declare.
70 * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
71 (styp_to_sec_flags): Ditto.
72 (coff_new_section_hook): Ditto.
73 (coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
74 * coff-rs6000.c (xcoff_dwsect_name): New variable.
75
84bff83f
NC
762011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
77
78 PR ld/12759
79 * elf32-rx.c (ignore_lma): New variable.
80 (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
81 (rx_modify_program_headers): Only copy the LMA into the VMA if
82 ignore_lma is true.
83
16d96b5b
AM
842011-05-17 Alan Modra <amodra@gmail.com>
85
86 PR ld/12760
87 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
88 * elflink.c (elf_link_add_object_symbols): Likewise.
89 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
90
41e04eaa
AM
912011-05-16 Alan Modra <amodra@gmail.com>
92
93 * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
94
77c56f44
RS
952011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
96
97 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
98 global GOT entries for GOT_PAGE relocations against global symbols.
99
2a616379
BS
1002011-05-13 Bernd Schmidt <bernds@codesourcery.com>
101
102 * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
103 (tic6x-*-*): Replaced by these.
104 * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
105 (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
106 (elf_backend_relocs_compatible, elf_backend_post_process_headers):
107 Define.
108 (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
109 TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
110 "elf32-target.h" two more times.
111 * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
112 bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
113 bfd_elf32_tic6x_elf_le_vec.
114 * configure: Regenerate.
115
3ac5406b
JB
1162011-05-13 Jan Beulich <jbeulich@novell.com>
117
118 * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
119
335e41d4
JK
1202011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
121
122 * config.in: Regenerated.
123 * configure: Regenerated.
124 * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
125 HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
126 HAVE_PSINFO32_T_PR_PID.
127 * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
128 HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
129 and HAVE_PSINFO32_T_PR_PID.
130 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
131
bc989cdc
JK
1322011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
133
134 * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
135 32bit psinfo.
136 * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
137 * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
138
fbd9ad90
PB
1392011-05-09 Paul Brook <paul@codesourcery.com>
140
141 * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
142 * bfd-in2.h: Regenerate.
143 * elf32-tic6x.c: Include limits.h.
144 (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
145 _tic6x_elf_section_data): New.
146 (elf32_tic6x_section_data): Define.
147 (elf32_tic6x_new_section_hook): Allocate target specific data.
148 (elf32_tic6x_add_unwind_table_edit): New function.
149 (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
150 elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
151 elf32_tic6x_copy_exidx_entry): New functions.
152 (elf_backend_write_section): Define.
153
1bce6bd8
PB
1542011-05-09 Paul Brook <paul@codesourcery.com>
155
156 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
157 elf32_tic6x_fake_sections): New functions.
158 (elf_backend_fake_sections): Define.
159
9cf0e282
PB
1602011-05-09 Paul Brook <paul@codesourcery.com>
161
162 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
163 (elf_backend_gc_mark_extra_sections): Define.
164
730035f7
DK
1652011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
166
167 PR ld/12365
168 * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
169 references to symbols defined in discarded sections.
170
88e59394
DK
1712011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
172
173 PR ld/12365
174 * coffgen.c (coff_write_symbol): Assume input section is its own
175 output section if output_section member not set.
176 (coff_write_alien_symbol): Likewise.
177
310fd250
L
1782011-05-07 H.J. Lu <hongjiu.lu@intel.com>
179
180 PR ld/12730
181 * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
182
183 * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
41e04eaa 184 sections if needed.
310fd250
L
185
186 * section.c (SEC_ELF_REVERSE_COPY): New.
187 * bfd-in2.h: Regenerated.
188
70778fc7
AM
1892011-05-07 Anders Kaseorg <andersk@ksplice.com>
190
191 PR 12739
192 * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
193 * bfd-in2.h: Regenerate.
194
8185f55c
TG
1952011-05-06 Tristan Gingold <gingold@adacore.com>
196
197 * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
198 (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
199 any code section. Add comments.
200 (alpha_vms_object_p): Use void * instead of PTR.
201 (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
202 (build_module_list): Guard against no DST section. Add comments.
203 (alpha_vms_link_output_symbol): Discard undefined symbols.
204 (alpha_vms_get_section_contents): Simply memcpy if the section was
205 already loaded. Fix typo.
206 (vms_new_section_hook): Use void * instead of PTR.
207 (vms_alpha_vec): Ditto.
208
7d24e6a6
RS
2092011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
210
211 * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
212 branch to a PLT entry, redirect it to the PLT's Thumb entry point.
213
c6a8f6e0
BS
2142011-05-05 Bernd Schmidt <bernds@codesourcery.com>
215
216 * elf32-tic6x.c (elf32_tic6x_final_link): New function.
217 (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
218 mismatch. Choose the lower of the two values.
219 (bfd_elf32_bfd_final_link): New macro.
220
7f41df2e
TG
2212011-04-28 Tristan Gingold <gingold@adacore.com>
222
223 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
224 (bfd_xcoff_swap_aux_out): Ditto.
225 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
226 (bfd_xcoff64_swap_aux_out): Ditto.
227
9507a174
AM
2282011-05-04 Alan Modra <amodra@gmail.com>
229
230 PR ld/12727
231 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
232 was_undefined on dot-symbols.
233
2fbb87f6
PB
2342011-05-03 Paul Brook <paul@codesourcery.com>
235
236
237 * elf32-tic6x.c (elf32_tic6x_howto_table,
238 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
239 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
240 Add R_C6000_EHTYPE.
241
9d4057ee
AM
2422011-05-01 Alan Modra <amodra@gmail.com>
243
244 PR ld/12718
245 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
246 creating ifunc sections.
247 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
248
71e7aa7d
L
2492011-04-30 H.J. Lu <hongjiu.lu@intel.com>
250
251 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
252 names.
253
b5dee4ea
TT
2542011-04-28 Tom Tromey <tromey@redhat.com>
255
256 * bfdio.c (memory_bstat): Pass correct size to memset.
257
e4c93b56
MF
2582011-04-28 Mike Frysinger <vapier@gentoo.org>
259
260 * dwarf2.c (dwarf_debug_sections): Mark const.
261 * elf.c (special_sections): Likewise.
262 * libbfd-in.h (dwarf_debug_sections): Likewise.
263 * libbfd.h: Regenerate.
264
72b016b4
NC
2652011-04-26 Kai Tietz <ktietz@redhat.com>
266
267 * coffcode.h (sec_to_styp_flags): Allow linkonce for
268 debugging sections.
269
4964e065
TG
2702011-04-26 Tristan Gingold <gingold@adacore.com>
271
272 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
273
35ed3f94
AM
2742011-04-24 Alan Modra <amodra@gmail.com>
275
276 PR ld/12365
277 PR ld/12696
278 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
279 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
280 (_bfd_generic_link_add_one_symbol): Update "notice" call.
281 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
282 it is a redef of an IR symbol in a real BFD.
283
b70321a2
L
2842011-04-22 H.J. Lu <hongjiu.lu@intel.com>
285
286 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
287 in readonly section in a shared object.
288 (elf_i386_size_dynamic_sections): Likewise.
289 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
290 (elf_x86_64_size_dynamic_sections): Likewise.
291
aa715242
L
2922011-04-21 H.J. Lu <hongjiu.lu@intel.com>
293
294 PR ld/12694
295 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
296 symbols.
297 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
298
f6df62c8
L
2992011-04-21 H.J. Lu <hongjiu.lu@intel.com>
300
301 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
302 on dynamic symbol error.
303 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
304
4bbd5a24
TG
3052011-04-20 Tristan Gingold <gingold@adacore.com>
306
307 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
308
8ad17b3a
AM
3092011-04-20 Alan Modra <amodra@gmail.com>
310
311 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
312 (bfd_hash_table_init_n): Overflow checking.
313 (bfd_hash_set_default_size): Return current size. Take unsigned long
314 arg. Add 65537 to hash_size primes.
315 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
316 * bfd-in2.h: Regenerate.
317
1b0df531
JK
3182011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
319
320 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
321 memmove elements.
322
595213d4
AM
3232011-04-20 Alan Modra <amodra@gmail.com>
324
9e6619e2
AM
325 * libbfd.c (bfd_log2): Do return rounded up value.
326 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
327 call with expanded old round down version of the function.
328
595213d4
AM
329 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
330 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
331
02d00247
AM
3322011-04-20 Alan Modra <amodra@gmail.com>
333
334 PR ld/12365
335 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
336 in their own common section.
337 * elflink.c (elf_link_add_object_symbols): Likewise.
338 * linker.c (generic_link_check_archive_element): Don't lose flags
339 if common section is pre-existing.
340 (_bfd_generic_link_add_one_symbol): Likewise.
341
24f58f47
AM
3422011-04-20 Alan Modra <amodra@gmail.com>
343
344 PR ld/12365
345 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
346 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
347 multiple_definition regardless of allow_multiple_definition.
348 * simple.c (simple_dummy_multiple_definition): Update.
349 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
350 calls.
351
417236c0
TG
3522011-04-18 Tristan Gingold <gingold@adacore.com>
353
354 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
355
901f1d17
AM
3562011-04-18 Alan Modra <amodra@gmail.com>
357
358 PR ld/12365
359 PR ld/12672
360 * bfd.c (BFD_PLUGIN): Define.
361 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
362 * bfd-in2.h: Regenerate.
363 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
364 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
365
63524580
JK
3662011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
367
368 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
369 SEC_LOAD.
370
e21e5835
NC
3712011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
372
373 * elf-bfd.h (struct sdt_note): New struct.
374 (struct elf_obj_tdata) <sdt_note_head>: New field.
375 * elf.c (elfobj_grok_stapsdt_note_1): New function.
376 (elfobj_grok_stapsdt_note): Likewise.
377 (elf_parse_notes): Added code to treat SystemTap note
378 sections.
379
6452a567
RH
3802011-04-12 Richard Henderson <rth@redhat.com>
381
382 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
383 exclude empty .got sections.
384
2a750708
L
3852011-04-11 H.J. Lu <hongjiu.lu@intel.com>
386
387 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
388 array access for BFD_RELOC_386_IRELATIVE.
389
2123f9ad
BS
3902011-04-11 Bernd Schmidt <bernds@codesourcery.com>
391
392 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
393
f64b2e8d
NC
3942011-04-11 Mark Wielaard <mjw@redhat.com>
395
396 PR 10549
397 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
398 (has_gnu_symbols): Renamed from has_ifunc_symbols.
399 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
400 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
401 also if STB_GNU_UNIQUE symbol binding was seen.
402 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
403 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
404 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
405 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
406 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
407 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
408
e57278ef
AM
4092011-04-11 Alan Modra <amodra@gmail.com>
410
411 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
412 sections.
413 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
414 (_bfd_generic_get_section_contents_in_window): Likewise.
415 * section.c (bfd_get_section_contents): Likewise.
416 * compress.c (bfd_get_full_section_contents): Likewise.
417 * elf32-rx.c (rx_final_link): Ignore rawsize.
418 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
419 bfd with bfd_get_section_limit.
420 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
421 os->size during final link. Update callers.
422 * bfd-in2.h: Regenerate.
423
e2ece73c
RS
4242011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
425
426 PR ld/12637
427 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
428 as the number of global entries when merging with the primary GOT.
429
9f973f28
L
4302011-04-09 H.J. Lu <hongjiu.lu@intel.com>
431
432 * elf32-i386.c: Update copyright year.
433 * elf64-x86-64.c: Likewise.
434
21e68916
KT
4352011-04-09 Kai Tietz <ktietz@redhat.com>
436
437 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
438 buffer and use rawsize for sorting.
439 * coffcode.h (coff_compute_section_file_positions): Set rawsize
440 before doing alignment.
441
62d78908
L
4422011-04-09 H.J. Lu <hongjiu.lu@intel.com>
443
444 * elf32-i386.c (elf_i386_relocate_section): Return relocation
445 error on unsupported relocation.
446 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
447
2351cae0
L
4482011-04-09 H.J. Lu <hongjiu.lu@intel.com>
449
450 PR binutils/12657
451 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
452 pid_t.
453
959b0961
L
4542011-04-08 H.J. Lu <hongjiu.lu@intel.com>
455
456 PR ld/12654
457 * elf32-i386.c (elf_i386_relocate_section): Check !executable
458 instead of shared for R_386_TLS_LDO_32.
459
33b54431
TG
4602011-04-08 Tristan Gingold <gingold@adacore.com>
461
462 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
463 * coff-pmac: Remove
464 * xcoff-target.h: Remove
465 * Makefile.in: Regenerate.
466
5d8e6b4d
CC
4672011-04-07 Cary Coutant <ccoutant@google.com>
468
469 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
470
44e87ece 4712011-04-07 Paul Brook <paul@codesourcery.com>
33b54431 472
44e87ece
PB
473 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
474 pc-relative.
475 (elf32_tic6x_howto_table_rel): Ditto.
476 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
477 (elf32_tic6x_check_relocs): Ditto.
478
8c5fc800
JM
4792011-04-06 Joseph Myers <joseph@codesourcery.com>
480
481 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
482 targets.
483 (strongarm*, thumb*, xscale*): Remove architectures.
484 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
485 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
486 xscale-*-coff): Remove targets.
487
6f8027ae
TG
4882011-04-01 Tristan Gingold <gingold@adacore.com>
489
490 * elfxx-ia64.c: include bfd_stdint.h
491
c89ce65c
JK
4922011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
493
494 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
495 dynobj and its initialization.
496
545f57c6
TG
4972011-03-31 Tristan Gingold <gingold@adacore.com>
498
499 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
500 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
501 BFD_HOST_LONG_LONG to 1.
502
083faca9
TG
5032011-03-31 Tristan Gingold <gingold@adacore.com>
504
505 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
506 (_bfd_vms_write_etir): Ditto.
507 (_bfd_vms_slurp_etir): Avoid to use intptr_t
508 * configure.com: Generate bfd_stdint.h
509
ac145307
BS
5102011-03-31 Bernd Schmidt <bernds@codesourcery.com>
511
512 * elf32-tic6x.h (struct elf32_tic6x_params): New.
513 (elf32_tic6x_setup): Declare.
514 * elf32-tic6x.c: Include <limits.h>.
515 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
516 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
517 New structures.
518 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
519 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
520 tic6x_elf_scom_symbol_ptr): New static variables.
521 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
522 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
523 R_C6000_PCR_H16 and R_C6000_PCR_L16.
524 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
525 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
526 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
527 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
528 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
529 elf32_tic6x_adjust_dynamic_symbol): New static functions.
530 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
531 to weak symbols as required by the ABI.
532 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
533 as needed when generating DSBT output.
534 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
535 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
536 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
537 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
538 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
539 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
540 New static functions.
541 (ELF_MAXPAGESIZE): Define to 0x1000.
542 (bfd_elf32_bfd_copy_private_bfd_data,
543 bfd_elf32_bfd_link_hash_table_create,
544 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
545 elf_backend_want_got_plt, elf_backend_want_dynbss,
546 elf_backend_plt_readonly, elf_backend_got_header_size,
547 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
548 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
549 elf_backend_check_relocs, elf_backend_add_symbol_hook,
550 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
551 elf_backend_section_from_bfd_section,
552 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
553 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
554 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
555
556 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
557 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
558 * bfd/bfd-in2.h: Regenerate.
559 * bfd/libbfd.h: Regenerate.
560 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
561
53dd76d3
TG
5622011-03-31 Tristan Gingold <gingold@adacore.com>
563
564 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
565 entry on xcoff when value is C_NULL_VALUE.
566
5672011-03-31 Tristan Gingold <gingold@adacore.com>
2040caca
TG
568
569 * libcoff-in.h (exec_hdr): Remove.
570 * libcoff.h: Regenerate.
571
3a294fa7
NC
5722011-03-30 Nick Clifton <nickc@redhat.com>
573
574 * po/da.po: Updated Danish translation.
575
e117360e
RH
5762011-03-29 Richard Henderson <rth@redhat.com>
577
578 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
579 (elf64_alpha_gc_sweep_hook): New.
580 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
581 (elf_backend_can_gc_sections): New.
582
5b806d27
NC
5832011-03-26 John Marino <binutils@marino.st>
584
585 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
586 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
587 * configure: Regenerate.
588
b42adabf
NC
5892011-03-25 Michael Snyder <msnyder@vmware.com>
590
591 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
592
a283ff93
TG
5932011-03-25 Tristan Gingold <gingold@adacore.com>
594
595 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
596 of find_nearest_line on object files.
597
cf6b8767
TG
5982011-03-25 Tristan Gingold <gingold@adacore.com>
599
600 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
601 Minor reordering.
602 (alpha_vms_create_eisd_for_section): Make code sections read-only.
603
663a1470
AM
6042011-03-24 Alan Modra <amodra@gmail.com>
605
606 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
607 old-style __tls_get_addr calls without marker relocs don't match
608 their arg setup insn one for one. If such mismatches are found
609 report the reloc and don't do any tls optimization.
610 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
611
dc80f6ae
EW
6122011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
613
614 * bfd-in2.h: Regenerate.
615
8cc66334
EW
6162011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
617
618 * archures.c: Add AVR XMEGA architecture information.
619 * cpu-avr.c (arch_info_struct): Likewise.
620 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
621 (elf32_avr_object_p): Likewise.
622
34e77a92
RS
6232011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
624
625 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
626 * bfd-in2.h: Regenerate.
627 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
628 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
629 entry.
630 (elf32_arm_howto_from_type): Update accordingly.
631 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
632 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
633 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
634 with an extra noncall_refcount field.
635 (arm_local_iplt_info): New structure.
636 (elf_arm_obj_tdata): Add local_iplt.
637 (elf32_arm_local_iplt): New accessor macro.
638 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
639 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
640 Change tls_type to a bitfield and add is_iplt.
641 (elf32_arm_link_hash_newfunc): Update accordingly.
642 (elf32_arm_allocate_local_sym_info): New function.
643 (elf32_arm_create_local_iplt): Likewise.
644 (elf32_arm_get_plt_info): Likewise.
645 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
646 (elf32_arm_get_local_dynreloc_list): Likewise.
647 (create_ifunc_sections): Likewise.
648 (elf32_arm_copy_indirect_symbol): Update after the changes to
649 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
650 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
651 to get PLT information. Assert that all STT_GNU_IFUNC references
652 are turned into PLT references.
653 (arm_build_one_stub): Pass the symbol type to
654 elf32_arm_final_link_relocate.
655 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
656 (elf32_arm_allocate_irelocs): New function.
657 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
658 all R_ARM_IRELATIVE.
659 (elf32_arm_allocate_plt_entry): New function.
660 (elf32_arm_populate_plt_entry): Likewise.
661 (elf32_arm_final_link_relocate): Add an st_type parameter.
662 Set srelgot to null for static objects. Use separate variables
663 to record which st_value and st_type should be used when generating
664 a dynamic relocation. Use elf32_arm_get_plt_info to find the
665 symbol's PLT information, setting has_iplt_entry, splt,
666 plt_offset and gotplt_offset accordingly. Check whether
667 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
668 the relocation target accordingly. Broaden assert to include
669 .iplts. Don't set sreloc for static relocations. Assert that
670 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
671 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
672 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
673 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
674 resolve GOT references to the .igot.plt entry.
675 (elf32_arm_relocate_section): Update the call to
676 elf32_arm_final_link_relocate.
677 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
678 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
679 relocations in shared libraries and relocatable executables.
680 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
681 to get the list of dynamic relocations for a local symbol.
682 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
683 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
684 to allocate local symbol information. Treat R_ARM_REL32 and
685 R_ARM_REL32_NOI as call relocations in shared libraries and
686 relocatable executables. Record PLT information for local
687 STT_GNU_IFUNC functions as well as global functions. Count
688 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
689 to get the list of dynamic relocations for a local symbol.
690 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
691 Don't remove STT_GNU_IFUNC PLTs unless all references have been
692 removed. Update after the changes to elf32_arm_link_hash_entry.
693 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
694 entries should live in .plt or .iplt. Check whether the .igot.plt
695 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
696 to allocate .plt and .(i)got.plt entries. Detect which .got
697 entries will need R_ARM_IRELATIVE relocations and use
698 elf32_arm_allocate_irelocs to allocate them. Likewise other
699 non-.got dynamic relocations.
700 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
701 and dynamic relocations for local STT_GNU_IFUNC symbols.
702 Check whether the .igot.plt and .got entries can be combined.
703 Detect which .got entries will need R_ARM_IRELATIVE relocations
704 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
705 section pointers intead of strcmp checks. Handle iplt and igotplt.
706 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
707 to fill in .plt, .got.plt and .rel(a).plt entries. Point
708 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
709 resolve to it.
710 (elf32_arm_output_plt_map_1): New function, split out from
711 elf32_arm_output_plt_map. Handle .iplt entries. Use
712 elf32_arm_plt_needs_thumb_stub_p.
713 (elf32_arm_output_plt_map): Call it.
714 (elf32_arm_output_arch_local_syms): Add mapping symbols for
715 local .iplt entries.
716 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
717 (elf32_arm_swap_symbol_out): Likewise.
718 (elf32_arm_add_symbol_hook): New function.
719 (elf_backend_add_symbol_hook): Define for all targets.
720
35fc36a8
RS
7212011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
722
723 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
724 * elf.c (swap_out_syms): Set st_target_internal for each
725 Elf_Internal_Sym.
726 * elfcode.h (elf_swap_symbol_in): Likewise.
727 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
728 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
729 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
730 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
731 * elflink.c (elf_link_output_extsym): Likewise.
732 (bfd_elf_final_link): Likewise.
733 (elf_link_add_object_symbols): Copy st_target_internal
734 to the hash table if we see a definition.
735 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
736 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
737 a branch_type field.
738 (a8_erratum_fix, a8_erratum_reloc): Likewise.
739 (arm_type_of_stub): Replace actual_st_type with an
740 actual_branch_type parameter.
741 (arm_build_one_stub): Use branch types rather than st_types to
742 determine the type of branch.
743 (cortex_a8_erratum_scan): Likewise.
744 (elf32_arm_size_stubs): Likewise.
745 (bfd_elf32_arm_process_before_allocation): Likewise.
746 (allocate_dynrelocs_for_symbol): Likewise.
747 (elf32_arm_finish_dynamic_sections): Likewise.
748 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
749 a branch_type parameter.
750 (elf32_arm_relocate_section): Update call accordingly.
751 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
752 (elf32_arm_output_map_sym): Initialize st_target_internal.
753 (elf32_arm_output_stub_sym): Likewise.
754 (elf32_arm_symbol_processing): Delete.
755 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
756 Use st_target_internal to record the branch type.
757 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
758 Thumb functions.
759 (elf32_arm_is_function_type): Delete.
760 (elf_backend_symbol_processing): Likewise.
761 (elf_backend_is_function_type): Likewise.
762
cbc704f3
RS
7632011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
764
765 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
766 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
767 into the PLT block.
768
f6e32f6d
RS
7692011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
770
771 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
772 may_need_local_target_p and may_become_dynamic_p to classify
773 the relocation type. Don't check info->symbolic or h->def_regular
774 when deciding whether to record a potential dynamic reloc.
775 Don't treat potential dynamic relocs as PLT references.
776 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
777 try to make the PLT reference count go negative.
778
b436d854
RS
7792011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
780
781 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
782 GOT entry here, rather than leaving it to finish_dynamic_symbol.
783 Only create a dynamic relocation for local references if
784 info->shared.
785 (allocate_dynrelocs_for_symbol): Update dynamic relocation
786 allocation accordingly.
787 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
788
47beaa6a
RS
7892011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
790
791 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
792 (elf32_arm_add_dynreloc): Likewise.
793 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
794 to allocate dynamic relocations.
795 (elf32_arm_size_dynamic_sections): Likewise.
796 (allocate_dynrelocs): Likewise. Rename to
797 allocate_dynrelocs_for_symbol.
798 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
799 create dynamic relocations.
800 (elf32_arm_finish_dynamic_symbol): Likewise.
801
52bc799a
L
8022011-03-12 H.J. Lu <hongjiu.lu@intel.com>
803
804 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
805 x32 GD->IE and GD->LE transitions.
806 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
807 and LD->LE transitions.
808
e11840f9
AM
8092011-03-10 Alan Modra <amodra@gmail.com>
810
811 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
812 for LO_DS error message and correct multiple.
813
aa374f67
AM
8142011-03-10 Alan Modra <amodra@gmail.com>
815
816 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
817 (ppc64_elf_link_just_syms): New function.
818 (opd_entry_value): Don't assume big-endian host.
819 (get_r2off): New function.
820 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
821
d59a60e9
MS
8222011-03-06 Michael Snyder <msnyder@vmware.com>
823
4281caad
MS
824 * compress.c (bfd_compress_section_contents): Check for out of mem.
825
17672001
MS
826 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
827 that case statement falls through intentionally.
828
d59a60e9
MS
829 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
830
0e29e6e8
AM
8312011-03-04 Alan Modra <amodra@gmail.com>
832
833 * archive.c (bsd_write_armap): Don't call stat in deterministic
834 mode, and don't use st_mtime if stat returns error.
835
eb00922a
MS
8362011-03-03 Michael Snyder <msnyder@vmware.com>
837
08c13595
MS
838 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
839
d543c50d
MS
840 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
841
c38eb2a6
MS
842 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
843 (aout_link_write_other_symbol): Missing break statement.
844
8ecc1f20
MS
845 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
846
eb00922a
MS
847 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
848
4a4c5f25
L
8492011-03-03 H.J. Lu <hongjiu.lu@intel.com>
850
851 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
852 x32 IE->LE transition.
853 (elf_x86_64_relocate_section): Likewise.
854
ddcf1fcf
BS
8552011-03-02 Bernd Schmidt <bernds@codesourcery.com>
856
aa374f67
AM
857 * elflink.c (is_reloc_section): Remove function.
858 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 859
007d6189
KT
8602011-02-28 Kai Tietz <kai.tietz@onevision.com>
861
862 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
863 (adjust_relative_path): Likewise.
864 (_bfd_construct_extended_name_table): Likewise.
865 * corefile.c (generic_core_file_matches_executable_p): Likewise.
866 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
867 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
868 * elf32-spu.c (sort_bfds): Likewise.
869 (spu_elf_auto_overlay): Likewise.
870 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
871 * xcofflink.c (xcoff_set_import_path): Likewise.
872 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
873 (xtensa_regfile_lookup_shortname): Likewise.
874
8616ad89
AM
8752011-02-28 Alan Modra <amodra@gmail.com>
876
877 PR 12513
878 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
879 stringsize. Properly sanity check symdef_count. Remove redundant
880 bfd_release.
881
80549d04
RÁE
8822011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
883
884 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
885 and handle claim_file seeking. Only try to load the plugin once.
886
93b3ac75
AS
8872011-02-22 Andreas Schwab <schwab@redhat.com>
888
889 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
890 relocation read the value from the second GOT slot.
891
6fa052f0
TG
8922011-02-15 Tristan Gingold <gingold@adacore.com>
893
894 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
895
28be611c
AM
8962011-02-15 Alan Modra <amodra@gmail.com>
897
898 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
899 toc relocs. Fuss over free(NULL).
900
93252b1c
MF
9012011-02-14 Mike Frysinger <vapier@gentoo.org>
902
903 * elflink.c (bfd_elf_size_dynamic_sections): Add
904 bfd_get_symbol_leading_char to the start of newname.
905
822ce8ee
RW
9062011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
907
908 * configure: Regenerate.
909
425b145b
AM
9102011-02-09 Alan Modra <amodra@gmail.com>
911
912 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
913 we are done. When optimising large toc, check that a global
914 symbol on a toc reloc is defined in a kept section.
915
82f2dbf7
NC
9162011-02-08 Nick Clifton <nickc@redhat.com>
917
918 PR binutils/12467
919 * elf.c (assign_file_positions_for_load_sections): Set the program
920 header offset and entry size to zero if there are no program
921 headers.
922
df22d223
AM
9232011-02-08 Alan Modra <amodra@gmail.com>
924
925 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
926 local_syms when looking for local symbols in .toc.
927
6683a28d
AM
9282011-02-01 Alan Modra <amodra@gmail.com>
929
930 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
931 for toc pointer on any section having makes_toc_func_call set.
932 (check_pasted_section): Ensure pasted .init/.fini fragments use
933 the same toc if any has makes_toc_func_call set.
934
5240d94d
JM
9352011-01-28 Joseph Myers <joseph@codesourcery.com>
936
937 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
938 field.
939
ed88c97e
RS
9402011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
941
942 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
943 common sections too.
944
1a0c107f
L
9452011-01-18 H.J. Lu <hongjiu.lu@intel.com>
946
04449d86
L
947 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
948 Solaris target.
1a0c107f 949
d68cd58c
NC
9502011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
951
952 Fix compilation for mingw64.
953 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
954 typecast to avoid warning.
955 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
956 usage.
957 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
958 of long for pointer to avoid warning.
959 (elfNN_ia64_relax_brl): Idem.
960 (elfNN_ia64_install_value): Idem.
961 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
962
da17376b
RS
9632011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
964
965 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
966 h->needs_plt when deciding whether to record a possible dynamic reloc.
967
1e81e12b
RS
9682011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
969
970 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
971 dynamic relocs for the removed section.
972
d1534d16
L
9732011-01-15 H.J. Lu <hongjiu.lu@intel.com>
974
975 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
976 relocations.
977
248775ba
L
9782011-01-14 H.J. Lu <hongjiu.lu@intel.com>
979
980 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
981 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
982 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
983 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
984 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
985 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
986 for ILP32.
987
4a97a0e5
AM
9882011-01-14 Alan Modra <amodra@gmail.com>
989
990 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
991 error.
992 (_bfd_default_error_handler): Likewise.
993 * elf.c (print_segment_map): Likewise.
994 * libbfd.c (warn_deprecated): Likewise.
995 * som.c (som_sizeof_headers): No need to do so here.
996 * coff-i860.c: Replace use of printf for error messages with
997 _bfd_error_handler.
998 * coff-ppc.c: Likewise.
999 * coff-sh.c: Likewise.
1000 * elf32-bfin.c: Likewise.
1001 * elf32-dlx.c: Likewise.
1002 * elf32-mep.c: Likewise.
1003 * elf32-v850.c: Likewise.
1004 * mach-o.c: Likewise.
1005 * pef.c: Likewise.
1006
82e96e07
L
10072011-01-13 H.J. Lu <hongjiu.lu@intel.com>
1008
1009 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
1010 swap_reloca_out.
1011 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
1012 (elf_x86_64_check_relocs): Align relocation section to 4 byte
1013 for 32bit.
1014 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
1015 ELF_ST_TYPE.
1016 (elf_x86_64_finish_dynamic_symbol): Updated.
1017 (elf_x86_64_finish_dynamic_sections): Don't use
1018 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
1019 bfd_elf64_swap_dyn_out.
1020
e6a6bb22
AM
10212011-01-14 J. Park <grassman@gmail.com>
1022
1023 PR ld/12339
1024 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
1025 following bfd_link_hash_warning symbol link.
1026
0855e32b
NS
10272011-01-10 Nathan Sidwell <nathan@codesourcery.com>
1028 Glauber de Oliveira Costa <glommer@gmail.com>
1029
1030 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
1031 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
1032 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
1033 relocations.
1034 * libbfd.h: Rebuilt.
1035 * bfd-in2.h: Rebuilt.
1036 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
1037 (elf32_arm_reloc_map): Likewise.
1038 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
1039 (elf32_arm_stub_long_branch_any_tls_pic,
1040 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
1041 (DEF_STUBS): Add new stubs.
1042 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
1043 (elf32_arm_local_tlsdesc_gotent): New.
1044 (GOT_TLS_GDESC): New mask.
1045 (GOT_TLS_GD_ANY): Define.
1046 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
1047 (elf32_arm_compute_jump_table_size): New.
1048 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
1049 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
1050 sgotplt_jump_table_size fields.
1051 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
1052 (elf32_arm_link_hash_table_create): Initialize new fields.
1053 (arm_type_of_stub): Check TLS desc relocs too.
1054 (elf32_arm_stub_name): TLS desc relocs can be shared.
1055 (elf32_arm_tls_transition): Determine relaxation.
1056 (arm_stub_required_alignment): Add tls stubs.
1057 (elf32_arm_size_stubs): Likewise.
1058 (elf32_arm_tls_relax): Perform TLS relaxing.
1059 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
1060 (IS_ARM_TLS_GNU_RELOC): New.
1061 (IS_ARM_TLS_RELOC): Use it.
1062 (elf32_arm_relocate_section): Perform TLS relaxing.
1063 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
1064 desc relocations.
1065 (allocate_dynrelocs): Allocate tls desc relcoations.
1066 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
1067 symbols.
1068 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
1069 got slots.
1070 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
1071 symbol.
1072 (elf32_arm_finish_dynamic_symbol): Adjust.
1073 (arm_put_trampoline): New.
1074 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
1075 trampolines.
1076 (elf_backend_always_size_sections): Define.
1077
7be86737
L
10782011-01-06 H.J. Lu <hongjiu.lu@intel.com>
1079
1080 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
1081
ae428b57 10822011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
1083
1084 PR ld/12366
1085 PR ld/12371
1086 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
1087 handle symbols marked with regular reference, but not non-GOT
1088 reference when building shared library.
1089
1090 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
1091 local and global STT_GNU_IFUNC symols when building shared
1092 library.
1093 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
1094
9689e3a3
DD
10952011-01-05 DJ Delorie <dj@redhat.com>
1096
1097 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
1098 * libbfd.h: Regenerate.
1099 * bfd-in2.h: Regenerate.
1100 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
1101
889a4d3e
L
11022011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1103
1104 * cpu-i386.c (bfd_i386_compatible): New.
1105 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
1106 with bfd_i386_compatible.
1107 (bfd_x86_64_arch_intel_syntax): Likewise.
1108 (bfd_i386_arch_intel_syntax): Likewise.
1109 (i8086_arch): Likewise.
1110 (bfd_x64_32_arch): Likewise.
1111 (bfd_x86_64_arch): Likewise.
1112 (bfd_i386_arch): Likewise.
1113
9e9e0820 1114For older changes see ChangeLog-2010
56882138
AM
1115\f
1116Local Variables:
1117mode: change-log
1118left-margin: 8
1119fill-column: 74
1120version-control: never
1121End:
This page took 0.590805 seconds and 4 git commands to generate.