]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
2011-05-17 Tomas Martinec <fyzmat@gmail.com>
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
41e04eaa
AM
12011-05-16 Alan Modra <amodra@gmail.com>
2
3 * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
4
77c56f44
RS
52011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
6
7 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
8 global GOT entries for GOT_PAGE relocations against global symbols.
9
2a616379
BS
102011-05-13 Bernd Schmidt <bernds@codesourcery.com>
11
12 * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
13 (tic6x-*-*): Replaced by these.
14 * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
15 (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
16 (elf_backend_relocs_compatible, elf_backend_post_process_headers):
17 Define.
18 (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
19 TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
20 "elf32-target.h" two more times.
21 * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
22 bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
23 bfd_elf32_tic6x_elf_le_vec.
24 * configure: Regenerate.
25
3ac5406b
JB
262011-05-13 Jan Beulich <jbeulich@novell.com>
27
28 * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
29
335e41d4
JK
302011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
31
32 * config.in: Regenerated.
33 * configure: Regenerated.
34 * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
35 HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
36 HAVE_PSINFO32_T_PR_PID.
37 * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
38 HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
39 and HAVE_PSINFO32_T_PR_PID.
40 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
41
bc989cdc
JK
422011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
43
44 * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
45 32bit psinfo.
46 * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
47 * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
48
fbd9ad90
PB
492011-05-09 Paul Brook <paul@codesourcery.com>
50
51 * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
52 * bfd-in2.h: Regenerate.
53 * elf32-tic6x.c: Include limits.h.
54 (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
55 _tic6x_elf_section_data): New.
56 (elf32_tic6x_section_data): Define.
57 (elf32_tic6x_new_section_hook): Allocate target specific data.
58 (elf32_tic6x_add_unwind_table_edit): New function.
59 (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
60 elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
61 elf32_tic6x_copy_exidx_entry): New functions.
62 (elf_backend_write_section): Define.
63
1bce6bd8
PB
642011-05-09 Paul Brook <paul@codesourcery.com>
65
66 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
67 elf32_tic6x_fake_sections): New functions.
68 (elf_backend_fake_sections): Define.
69
9cf0e282
PB
702011-05-09 Paul Brook <paul@codesourcery.com>
71
72 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
73 (elf_backend_gc_mark_extra_sections): Define.
74
730035f7
DK
752011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
76
77 PR ld/12365
78 * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
79 references to symbols defined in discarded sections.
80
88e59394
DK
812011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
82
83 PR ld/12365
84 * coffgen.c (coff_write_symbol): Assume input section is its own
85 output section if output_section member not set.
86 (coff_write_alien_symbol): Likewise.
87
310fd250
L
882011-05-07 H.J. Lu <hongjiu.lu@intel.com>
89
90 PR ld/12730
91 * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
92
93 * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
41e04eaa 94 sections if needed.
310fd250
L
95
96 * section.c (SEC_ELF_REVERSE_COPY): New.
97 * bfd-in2.h: Regenerated.
98
70778fc7
AM
992011-05-07 Anders Kaseorg <andersk@ksplice.com>
100
101 PR 12739
102 * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
103 * bfd-in2.h: Regenerate.
104
8185f55c
TG
1052011-05-06 Tristan Gingold <gingold@adacore.com>
106
107 * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
108 (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
109 any code section. Add comments.
110 (alpha_vms_object_p): Use void * instead of PTR.
111 (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
112 (build_module_list): Guard against no DST section. Add comments.
113 (alpha_vms_link_output_symbol): Discard undefined symbols.
114 (alpha_vms_get_section_contents): Simply memcpy if the section was
115 already loaded. Fix typo.
116 (vms_new_section_hook): Use void * instead of PTR.
117 (vms_alpha_vec): Ditto.
118
7d24e6a6
RS
1192011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
120
121 * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
122 branch to a PLT entry, redirect it to the PLT's Thumb entry point.
123
c6a8f6e0
BS
1242011-05-05 Bernd Schmidt <bernds@codesourcery.com>
125
126 * elf32-tic6x.c (elf32_tic6x_final_link): New function.
127 (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
128 mismatch. Choose the lower of the two values.
129 (bfd_elf32_bfd_final_link): New macro.
130
7f41df2e
TG
1312011-04-28 Tristan Gingold <gingold@adacore.com>
132
133 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
134 (bfd_xcoff_swap_aux_out): Ditto.
135 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
136 (bfd_xcoff64_swap_aux_out): Ditto.
137
9507a174
AM
1382011-05-04 Alan Modra <amodra@gmail.com>
139
140 PR ld/12727
141 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
142 was_undefined on dot-symbols.
143
2fbb87f6
PB
1442011-05-03 Paul Brook <paul@codesourcery.com>
145
146
147 * elf32-tic6x.c (elf32_tic6x_howto_table,
148 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
149 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
150 Add R_C6000_EHTYPE.
151
9d4057ee
AM
1522011-05-01 Alan Modra <amodra@gmail.com>
153
154 PR ld/12718
155 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
156 creating ifunc sections.
157 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
158
71e7aa7d
L
1592011-04-30 H.J. Lu <hongjiu.lu@intel.com>
160
161 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
162 names.
163
b5dee4ea
TT
1642011-04-28 Tom Tromey <tromey@redhat.com>
165
166 * bfdio.c (memory_bstat): Pass correct size to memset.
167
e4c93b56
MF
1682011-04-28 Mike Frysinger <vapier@gentoo.org>
169
170 * dwarf2.c (dwarf_debug_sections): Mark const.
171 * elf.c (special_sections): Likewise.
172 * libbfd-in.h (dwarf_debug_sections): Likewise.
173 * libbfd.h: Regenerate.
174
72b016b4
NC
1752011-04-26 Kai Tietz <ktietz@redhat.com>
176
177 * coffcode.h (sec_to_styp_flags): Allow linkonce for
178 debugging sections.
179
4964e065
TG
1802011-04-26 Tristan Gingold <gingold@adacore.com>
181
182 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
183
35ed3f94
AM
1842011-04-24 Alan Modra <amodra@gmail.com>
185
186 PR ld/12365
187 PR ld/12696
188 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
189 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
190 (_bfd_generic_link_add_one_symbol): Update "notice" call.
191 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
192 it is a redef of an IR symbol in a real BFD.
193
b70321a2
L
1942011-04-22 H.J. Lu <hongjiu.lu@intel.com>
195
196 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
197 in readonly section in a shared object.
198 (elf_i386_size_dynamic_sections): Likewise.
199 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
200 (elf_x86_64_size_dynamic_sections): Likewise.
201
aa715242
L
2022011-04-21 H.J. Lu <hongjiu.lu@intel.com>
203
204 PR ld/12694
205 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
206 symbols.
207 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
208
f6df62c8
L
2092011-04-21 H.J. Lu <hongjiu.lu@intel.com>
210
211 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
212 on dynamic symbol error.
213 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
214
4bbd5a24
TG
2152011-04-20 Tristan Gingold <gingold@adacore.com>
216
217 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
218
8ad17b3a
AM
2192011-04-20 Alan Modra <amodra@gmail.com>
220
221 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
222 (bfd_hash_table_init_n): Overflow checking.
223 (bfd_hash_set_default_size): Return current size. Take unsigned long
224 arg. Add 65537 to hash_size primes.
225 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
226 * bfd-in2.h: Regenerate.
227
1b0df531
JK
2282011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
229
230 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
231 memmove elements.
232
595213d4
AM
2332011-04-20 Alan Modra <amodra@gmail.com>
234
9e6619e2
AM
235 * libbfd.c (bfd_log2): Do return rounded up value.
236 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
237 call with expanded old round down version of the function.
238
595213d4
AM
239 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
240 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
241
02d00247
AM
2422011-04-20 Alan Modra <amodra@gmail.com>
243
244 PR ld/12365
245 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
246 in their own common section.
247 * elflink.c (elf_link_add_object_symbols): Likewise.
248 * linker.c (generic_link_check_archive_element): Don't lose flags
249 if common section is pre-existing.
250 (_bfd_generic_link_add_one_symbol): Likewise.
251
24f58f47
AM
2522011-04-20 Alan Modra <amodra@gmail.com>
253
254 PR ld/12365
255 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
256 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
257 multiple_definition regardless of allow_multiple_definition.
258 * simple.c (simple_dummy_multiple_definition): Update.
259 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
260 calls.
261
417236c0
TG
2622011-04-18 Tristan Gingold <gingold@adacore.com>
263
264 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
265
901f1d17
AM
2662011-04-18 Alan Modra <amodra@gmail.com>
267
268 PR ld/12365
269 PR ld/12672
270 * bfd.c (BFD_PLUGIN): Define.
271 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
272 * bfd-in2.h: Regenerate.
273 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
274 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
275
63524580
JK
2762011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
277
278 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
279 SEC_LOAD.
280
e21e5835
NC
2812011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
282
283 * elf-bfd.h (struct sdt_note): New struct.
284 (struct elf_obj_tdata) <sdt_note_head>: New field.
285 * elf.c (elfobj_grok_stapsdt_note_1): New function.
286 (elfobj_grok_stapsdt_note): Likewise.
287 (elf_parse_notes): Added code to treat SystemTap note
288 sections.
289
6452a567
RH
2902011-04-12 Richard Henderson <rth@redhat.com>
291
292 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
293 exclude empty .got sections.
294
2a750708
L
2952011-04-11 H.J. Lu <hongjiu.lu@intel.com>
296
297 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
298 array access for BFD_RELOC_386_IRELATIVE.
299
2123f9ad
BS
3002011-04-11 Bernd Schmidt <bernds@codesourcery.com>
301
302 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
303
f64b2e8d
NC
3042011-04-11 Mark Wielaard <mjw@redhat.com>
305
306 PR 10549
307 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
308 (has_gnu_symbols): Renamed from has_ifunc_symbols.
309 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
310 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
311 also if STB_GNU_UNIQUE symbol binding was seen.
312 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
313 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
314 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
315 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
316 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
317 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
318
e57278ef
AM
3192011-04-11 Alan Modra <amodra@gmail.com>
320
321 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
322 sections.
323 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
324 (_bfd_generic_get_section_contents_in_window): Likewise.
325 * section.c (bfd_get_section_contents): Likewise.
326 * compress.c (bfd_get_full_section_contents): Likewise.
327 * elf32-rx.c (rx_final_link): Ignore rawsize.
328 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
329 bfd with bfd_get_section_limit.
330 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
331 os->size during final link. Update callers.
332 * bfd-in2.h: Regenerate.
333
e2ece73c
RS
3342011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
335
336 PR ld/12637
337 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
338 as the number of global entries when merging with the primary GOT.
339
9f973f28
L
3402011-04-09 H.J. Lu <hongjiu.lu@intel.com>
341
342 * elf32-i386.c: Update copyright year.
343 * elf64-x86-64.c: Likewise.
344
21e68916
KT
3452011-04-09 Kai Tietz <ktietz@redhat.com>
346
347 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
348 buffer and use rawsize for sorting.
349 * coffcode.h (coff_compute_section_file_positions): Set rawsize
350 before doing alignment.
351
62d78908
L
3522011-04-09 H.J. Lu <hongjiu.lu@intel.com>
353
354 * elf32-i386.c (elf_i386_relocate_section): Return relocation
355 error on unsupported relocation.
356 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
357
2351cae0
L
3582011-04-09 H.J. Lu <hongjiu.lu@intel.com>
359
360 PR binutils/12657
361 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
362 pid_t.
363
959b0961
L
3642011-04-08 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR ld/12654
367 * elf32-i386.c (elf_i386_relocate_section): Check !executable
368 instead of shared for R_386_TLS_LDO_32.
369
33b54431
TG
3702011-04-08 Tristan Gingold <gingold@adacore.com>
371
372 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
373 * coff-pmac: Remove
374 * xcoff-target.h: Remove
375 * Makefile.in: Regenerate.
376
5d8e6b4d
CC
3772011-04-07 Cary Coutant <ccoutant@google.com>
378
379 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
380
44e87ece 3812011-04-07 Paul Brook <paul@codesourcery.com>
33b54431 382
44e87ece
PB
383 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
384 pc-relative.
385 (elf32_tic6x_howto_table_rel): Ditto.
386 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
387 (elf32_tic6x_check_relocs): Ditto.
388
8c5fc800
JM
3892011-04-06 Joseph Myers <joseph@codesourcery.com>
390
391 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
392 targets.
393 (strongarm*, thumb*, xscale*): Remove architectures.
394 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
395 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
396 xscale-*-coff): Remove targets.
397
6f8027ae
TG
3982011-04-01 Tristan Gingold <gingold@adacore.com>
399
400 * elfxx-ia64.c: include bfd_stdint.h
401
c89ce65c
JK
4022011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
403
404 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
405 dynobj and its initialization.
406
545f57c6
TG
4072011-03-31 Tristan Gingold <gingold@adacore.com>
408
409 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
410 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
411 BFD_HOST_LONG_LONG to 1.
412
083faca9
TG
4132011-03-31 Tristan Gingold <gingold@adacore.com>
414
415 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
416 (_bfd_vms_write_etir): Ditto.
417 (_bfd_vms_slurp_etir): Avoid to use intptr_t
418 * configure.com: Generate bfd_stdint.h
419
ac145307
BS
4202011-03-31 Bernd Schmidt <bernds@codesourcery.com>
421
422 * elf32-tic6x.h (struct elf32_tic6x_params): New.
423 (elf32_tic6x_setup): Declare.
424 * elf32-tic6x.c: Include <limits.h>.
425 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
426 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
427 New structures.
428 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
429 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
430 tic6x_elf_scom_symbol_ptr): New static variables.
431 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
432 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
433 R_C6000_PCR_H16 and R_C6000_PCR_L16.
434 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
435 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
436 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
437 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
438 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
439 elf32_tic6x_adjust_dynamic_symbol): New static functions.
440 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
441 to weak symbols as required by the ABI.
442 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
443 as needed when generating DSBT output.
444 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
445 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
446 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
447 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
448 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
449 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
450 New static functions.
451 (ELF_MAXPAGESIZE): Define to 0x1000.
452 (bfd_elf32_bfd_copy_private_bfd_data,
453 bfd_elf32_bfd_link_hash_table_create,
454 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
455 elf_backend_want_got_plt, elf_backend_want_dynbss,
456 elf_backend_plt_readonly, elf_backend_got_header_size,
457 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
458 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
459 elf_backend_check_relocs, elf_backend_add_symbol_hook,
460 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
461 elf_backend_section_from_bfd_section,
462 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
463 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
464 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
465
466 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
467 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
468 * bfd/bfd-in2.h: Regenerate.
469 * bfd/libbfd.h: Regenerate.
470 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
471
53dd76d3
TG
4722011-03-31 Tristan Gingold <gingold@adacore.com>
473
474 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
475 entry on xcoff when value is C_NULL_VALUE.
476
4772011-03-31 Tristan Gingold <gingold@adacore.com>
2040caca
TG
478
479 * libcoff-in.h (exec_hdr): Remove.
480 * libcoff.h: Regenerate.
481
3a294fa7
NC
4822011-03-30 Nick Clifton <nickc@redhat.com>
483
484 * po/da.po: Updated Danish translation.
485
e117360e
RH
4862011-03-29 Richard Henderson <rth@redhat.com>
487
488 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
489 (elf64_alpha_gc_sweep_hook): New.
490 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
491 (elf_backend_can_gc_sections): New.
492
5b806d27
NC
4932011-03-26 John Marino <binutils@marino.st>
494
495 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
496 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
497 * configure: Regenerate.
498
b42adabf
NC
4992011-03-25 Michael Snyder <msnyder@vmware.com>
500
501 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
502
a283ff93
TG
5032011-03-25 Tristan Gingold <gingold@adacore.com>
504
505 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
506 of find_nearest_line on object files.
507
cf6b8767
TG
5082011-03-25 Tristan Gingold <gingold@adacore.com>
509
510 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
511 Minor reordering.
512 (alpha_vms_create_eisd_for_section): Make code sections read-only.
513
663a1470
AM
5142011-03-24 Alan Modra <amodra@gmail.com>
515
516 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
517 old-style __tls_get_addr calls without marker relocs don't match
518 their arg setup insn one for one. If such mismatches are found
519 report the reloc and don't do any tls optimization.
520 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
521
dc80f6ae
EW
5222011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
523
524 * bfd-in2.h: Regenerate.
525
8cc66334
EW
5262011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
527
528 * archures.c: Add AVR XMEGA architecture information.
529 * cpu-avr.c (arch_info_struct): Likewise.
530 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
531 (elf32_avr_object_p): Likewise.
532
34e77a92
RS
5332011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
534
535 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
536 * bfd-in2.h: Regenerate.
537 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
538 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
539 entry.
540 (elf32_arm_howto_from_type): Update accordingly.
541 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
542 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
543 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
544 with an extra noncall_refcount field.
545 (arm_local_iplt_info): New structure.
546 (elf_arm_obj_tdata): Add local_iplt.
547 (elf32_arm_local_iplt): New accessor macro.
548 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
549 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
550 Change tls_type to a bitfield and add is_iplt.
551 (elf32_arm_link_hash_newfunc): Update accordingly.
552 (elf32_arm_allocate_local_sym_info): New function.
553 (elf32_arm_create_local_iplt): Likewise.
554 (elf32_arm_get_plt_info): Likewise.
555 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
556 (elf32_arm_get_local_dynreloc_list): Likewise.
557 (create_ifunc_sections): Likewise.
558 (elf32_arm_copy_indirect_symbol): Update after the changes to
559 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
560 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
561 to get PLT information. Assert that all STT_GNU_IFUNC references
562 are turned into PLT references.
563 (arm_build_one_stub): Pass the symbol type to
564 elf32_arm_final_link_relocate.
565 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
566 (elf32_arm_allocate_irelocs): New function.
567 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
568 all R_ARM_IRELATIVE.
569 (elf32_arm_allocate_plt_entry): New function.
570 (elf32_arm_populate_plt_entry): Likewise.
571 (elf32_arm_final_link_relocate): Add an st_type parameter.
572 Set srelgot to null for static objects. Use separate variables
573 to record which st_value and st_type should be used when generating
574 a dynamic relocation. Use elf32_arm_get_plt_info to find the
575 symbol's PLT information, setting has_iplt_entry, splt,
576 plt_offset and gotplt_offset accordingly. Check whether
577 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
578 the relocation target accordingly. Broaden assert to include
579 .iplts. Don't set sreloc for static relocations. Assert that
580 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
581 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
582 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
583 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
584 resolve GOT references to the .igot.plt entry.
585 (elf32_arm_relocate_section): Update the call to
586 elf32_arm_final_link_relocate.
587 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
588 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
589 relocations in shared libraries and relocatable executables.
590 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
591 to get the list of dynamic relocations for a local symbol.
592 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
593 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
594 to allocate local symbol information. Treat R_ARM_REL32 and
595 R_ARM_REL32_NOI as call relocations in shared libraries and
596 relocatable executables. Record PLT information for local
597 STT_GNU_IFUNC functions as well as global functions. Count
598 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
599 to get the list of dynamic relocations for a local symbol.
600 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
601 Don't remove STT_GNU_IFUNC PLTs unless all references have been
602 removed. Update after the changes to elf32_arm_link_hash_entry.
603 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
604 entries should live in .plt or .iplt. Check whether the .igot.plt
605 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
606 to allocate .plt and .(i)got.plt entries. Detect which .got
607 entries will need R_ARM_IRELATIVE relocations and use
608 elf32_arm_allocate_irelocs to allocate them. Likewise other
609 non-.got dynamic relocations.
610 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
611 and dynamic relocations for local STT_GNU_IFUNC symbols.
612 Check whether the .igot.plt and .got entries can be combined.
613 Detect which .got entries will need R_ARM_IRELATIVE relocations
614 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
615 section pointers intead of strcmp checks. Handle iplt and igotplt.
616 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
617 to fill in .plt, .got.plt and .rel(a).plt entries. Point
618 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
619 resolve to it.
620 (elf32_arm_output_plt_map_1): New function, split out from
621 elf32_arm_output_plt_map. Handle .iplt entries. Use
622 elf32_arm_plt_needs_thumb_stub_p.
623 (elf32_arm_output_plt_map): Call it.
624 (elf32_arm_output_arch_local_syms): Add mapping symbols for
625 local .iplt entries.
626 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
627 (elf32_arm_swap_symbol_out): Likewise.
628 (elf32_arm_add_symbol_hook): New function.
629 (elf_backend_add_symbol_hook): Define for all targets.
630
35fc36a8
RS
6312011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
632
633 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
634 * elf.c (swap_out_syms): Set st_target_internal for each
635 Elf_Internal_Sym.
636 * elfcode.h (elf_swap_symbol_in): Likewise.
637 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
638 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
639 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
640 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
641 * elflink.c (elf_link_output_extsym): Likewise.
642 (bfd_elf_final_link): Likewise.
643 (elf_link_add_object_symbols): Copy st_target_internal
644 to the hash table if we see a definition.
645 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
646 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
647 a branch_type field.
648 (a8_erratum_fix, a8_erratum_reloc): Likewise.
649 (arm_type_of_stub): Replace actual_st_type with an
650 actual_branch_type parameter.
651 (arm_build_one_stub): Use branch types rather than st_types to
652 determine the type of branch.
653 (cortex_a8_erratum_scan): Likewise.
654 (elf32_arm_size_stubs): Likewise.
655 (bfd_elf32_arm_process_before_allocation): Likewise.
656 (allocate_dynrelocs_for_symbol): Likewise.
657 (elf32_arm_finish_dynamic_sections): Likewise.
658 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
659 a branch_type parameter.
660 (elf32_arm_relocate_section): Update call accordingly.
661 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
662 (elf32_arm_output_map_sym): Initialize st_target_internal.
663 (elf32_arm_output_stub_sym): Likewise.
664 (elf32_arm_symbol_processing): Delete.
665 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
666 Use st_target_internal to record the branch type.
667 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
668 Thumb functions.
669 (elf32_arm_is_function_type): Delete.
670 (elf_backend_symbol_processing): Likewise.
671 (elf_backend_is_function_type): Likewise.
672
cbc704f3
RS
6732011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
674
675 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
676 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
677 into the PLT block.
678
f6e32f6d
RS
6792011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
680
681 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
682 may_need_local_target_p and may_become_dynamic_p to classify
683 the relocation type. Don't check info->symbolic or h->def_regular
684 when deciding whether to record a potential dynamic reloc.
685 Don't treat potential dynamic relocs as PLT references.
686 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
687 try to make the PLT reference count go negative.
688
b436d854
RS
6892011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
690
691 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
692 GOT entry here, rather than leaving it to finish_dynamic_symbol.
693 Only create a dynamic relocation for local references if
694 info->shared.
695 (allocate_dynrelocs_for_symbol): Update dynamic relocation
696 allocation accordingly.
697 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
698
47beaa6a
RS
6992011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
700
701 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
702 (elf32_arm_add_dynreloc): Likewise.
703 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
704 to allocate dynamic relocations.
705 (elf32_arm_size_dynamic_sections): Likewise.
706 (allocate_dynrelocs): Likewise. Rename to
707 allocate_dynrelocs_for_symbol.
708 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
709 create dynamic relocations.
710 (elf32_arm_finish_dynamic_symbol): Likewise.
711
52bc799a
L
7122011-03-12 H.J. Lu <hongjiu.lu@intel.com>
713
714 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
715 x32 GD->IE and GD->LE transitions.
716 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
717 and LD->LE transitions.
718
e11840f9
AM
7192011-03-10 Alan Modra <amodra@gmail.com>
720
721 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
722 for LO_DS error message and correct multiple.
723
aa374f67
AM
7242011-03-10 Alan Modra <amodra@gmail.com>
725
726 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
727 (ppc64_elf_link_just_syms): New function.
728 (opd_entry_value): Don't assume big-endian host.
729 (get_r2off): New function.
730 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
731
d59a60e9
MS
7322011-03-06 Michael Snyder <msnyder@vmware.com>
733
4281caad
MS
734 * compress.c (bfd_compress_section_contents): Check for out of mem.
735
17672001
MS
736 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
737 that case statement falls through intentionally.
738
d59a60e9
MS
739 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
740
0e29e6e8
AM
7412011-03-04 Alan Modra <amodra@gmail.com>
742
743 * archive.c (bsd_write_armap): Don't call stat in deterministic
744 mode, and don't use st_mtime if stat returns error.
745
eb00922a
MS
7462011-03-03 Michael Snyder <msnyder@vmware.com>
747
08c13595
MS
748 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
749
d543c50d
MS
750 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
751
c38eb2a6
MS
752 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
753 (aout_link_write_other_symbol): Missing break statement.
754
8ecc1f20
MS
755 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
756
eb00922a
MS
757 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
758
4a4c5f25
L
7592011-03-03 H.J. Lu <hongjiu.lu@intel.com>
760
761 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
762 x32 IE->LE transition.
763 (elf_x86_64_relocate_section): Likewise.
764
ddcf1fcf
BS
7652011-03-02 Bernd Schmidt <bernds@codesourcery.com>
766
aa374f67
AM
767 * elflink.c (is_reloc_section): Remove function.
768 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 769
007d6189
KT
7702011-02-28 Kai Tietz <kai.tietz@onevision.com>
771
772 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
773 (adjust_relative_path): Likewise.
774 (_bfd_construct_extended_name_table): Likewise.
775 * corefile.c (generic_core_file_matches_executable_p): Likewise.
776 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
777 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
778 * elf32-spu.c (sort_bfds): Likewise.
779 (spu_elf_auto_overlay): Likewise.
780 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
781 * xcofflink.c (xcoff_set_import_path): Likewise.
782 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
783 (xtensa_regfile_lookup_shortname): Likewise.
784
8616ad89
AM
7852011-02-28 Alan Modra <amodra@gmail.com>
786
787 PR 12513
788 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
789 stringsize. Properly sanity check symdef_count. Remove redundant
790 bfd_release.
791
80549d04
RÁE
7922011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
793
794 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
795 and handle claim_file seeking. Only try to load the plugin once.
796
93b3ac75
AS
7972011-02-22 Andreas Schwab <schwab@redhat.com>
798
799 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
800 relocation read the value from the second GOT slot.
801
6fa052f0
TG
8022011-02-15 Tristan Gingold <gingold@adacore.com>
803
804 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
805
28be611c
AM
8062011-02-15 Alan Modra <amodra@gmail.com>
807
808 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
809 toc relocs. Fuss over free(NULL).
810
93252b1c
MF
8112011-02-14 Mike Frysinger <vapier@gentoo.org>
812
813 * elflink.c (bfd_elf_size_dynamic_sections): Add
814 bfd_get_symbol_leading_char to the start of newname.
815
822ce8ee
RW
8162011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
817
818 * configure: Regenerate.
819
425b145b
AM
8202011-02-09 Alan Modra <amodra@gmail.com>
821
822 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
823 we are done. When optimising large toc, check that a global
824 symbol on a toc reloc is defined in a kept section.
825
82f2dbf7
NC
8262011-02-08 Nick Clifton <nickc@redhat.com>
827
828 PR binutils/12467
829 * elf.c (assign_file_positions_for_load_sections): Set the program
830 header offset and entry size to zero if there are no program
831 headers.
832
df22d223
AM
8332011-02-08 Alan Modra <amodra@gmail.com>
834
835 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
836 local_syms when looking for local symbols in .toc.
837
6683a28d
AM
8382011-02-01 Alan Modra <amodra@gmail.com>
839
840 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
841 for toc pointer on any section having makes_toc_func_call set.
842 (check_pasted_section): Ensure pasted .init/.fini fragments use
843 the same toc if any has makes_toc_func_call set.
844
5240d94d
JM
8452011-01-28 Joseph Myers <joseph@codesourcery.com>
846
847 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
848 field.
849
ed88c97e
RS
8502011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
851
852 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
853 common sections too.
854
1a0c107f
L
8552011-01-18 H.J. Lu <hongjiu.lu@intel.com>
856
04449d86
L
857 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
858 Solaris target.
1a0c107f 859
d68cd58c
NC
8602011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
861
862 Fix compilation for mingw64.
863 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
864 typecast to avoid warning.
865 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
866 usage.
867 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
868 of long for pointer to avoid warning.
869 (elfNN_ia64_relax_brl): Idem.
870 (elfNN_ia64_install_value): Idem.
871 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
872
da17376b
RS
8732011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
874
875 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
876 h->needs_plt when deciding whether to record a possible dynamic reloc.
877
1e81e12b
RS
8782011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
879
880 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
881 dynamic relocs for the removed section.
882
d1534d16
L
8832011-01-15 H.J. Lu <hongjiu.lu@intel.com>
884
885 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
886 relocations.
887
248775ba
L
8882011-01-14 H.J. Lu <hongjiu.lu@intel.com>
889
890 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
891 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
892 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
893 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
894 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
895 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
896 for ILP32.
897
4a97a0e5
AM
8982011-01-14 Alan Modra <amodra@gmail.com>
899
900 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
901 error.
902 (_bfd_default_error_handler): Likewise.
903 * elf.c (print_segment_map): Likewise.
904 * libbfd.c (warn_deprecated): Likewise.
905 * som.c (som_sizeof_headers): No need to do so here.
906 * coff-i860.c: Replace use of printf for error messages with
907 _bfd_error_handler.
908 * coff-ppc.c: Likewise.
909 * coff-sh.c: Likewise.
910 * elf32-bfin.c: Likewise.
911 * elf32-dlx.c: Likewise.
912 * elf32-mep.c: Likewise.
913 * elf32-v850.c: Likewise.
914 * mach-o.c: Likewise.
915 * pef.c: Likewise.
916
82e96e07
L
9172011-01-13 H.J. Lu <hongjiu.lu@intel.com>
918
919 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
920 swap_reloca_out.
921 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
922 (elf_x86_64_check_relocs): Align relocation section to 4 byte
923 for 32bit.
924 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
925 ELF_ST_TYPE.
926 (elf_x86_64_finish_dynamic_symbol): Updated.
927 (elf_x86_64_finish_dynamic_sections): Don't use
928 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
929 bfd_elf64_swap_dyn_out.
930
e6a6bb22
AM
9312011-01-14 J. Park <grassman@gmail.com>
932
933 PR ld/12339
934 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
935 following bfd_link_hash_warning symbol link.
936
0855e32b
NS
9372011-01-10 Nathan Sidwell <nathan@codesourcery.com>
938 Glauber de Oliveira Costa <glommer@gmail.com>
939
940 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
941 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
942 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
943 relocations.
944 * libbfd.h: Rebuilt.
945 * bfd-in2.h: Rebuilt.
946 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
947 (elf32_arm_reloc_map): Likewise.
948 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
949 (elf32_arm_stub_long_branch_any_tls_pic,
950 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
951 (DEF_STUBS): Add new stubs.
952 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
953 (elf32_arm_local_tlsdesc_gotent): New.
954 (GOT_TLS_GDESC): New mask.
955 (GOT_TLS_GD_ANY): Define.
956 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
957 (elf32_arm_compute_jump_table_size): New.
958 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
959 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
960 sgotplt_jump_table_size fields.
961 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
962 (elf32_arm_link_hash_table_create): Initialize new fields.
963 (arm_type_of_stub): Check TLS desc relocs too.
964 (elf32_arm_stub_name): TLS desc relocs can be shared.
965 (elf32_arm_tls_transition): Determine relaxation.
966 (arm_stub_required_alignment): Add tls stubs.
967 (elf32_arm_size_stubs): Likewise.
968 (elf32_arm_tls_relax): Perform TLS relaxing.
969 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
970 (IS_ARM_TLS_GNU_RELOC): New.
971 (IS_ARM_TLS_RELOC): Use it.
972 (elf32_arm_relocate_section): Perform TLS relaxing.
973 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
974 desc relocations.
975 (allocate_dynrelocs): Allocate tls desc relcoations.
976 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
977 symbols.
978 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
979 got slots.
980 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
981 symbol.
982 (elf32_arm_finish_dynamic_symbol): Adjust.
983 (arm_put_trampoline): New.
984 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
985 trampolines.
986 (elf_backend_always_size_sections): Define.
987
7be86737
L
9882011-01-06 H.J. Lu <hongjiu.lu@intel.com>
989
990 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
991
ae428b57 9922011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
993
994 PR ld/12366
995 PR ld/12371
996 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
997 handle symbols marked with regular reference, but not non-GOT
998 reference when building shared library.
999
1000 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
1001 local and global STT_GNU_IFUNC symols when building shared
1002 library.
1003 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
1004
9689e3a3
DD
10052011-01-05 DJ Delorie <dj@redhat.com>
1006
1007 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
1008 * libbfd.h: Regenerate.
1009 * bfd-in2.h: Regenerate.
1010 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
1011
889a4d3e
L
10122011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1013
1014 * cpu-i386.c (bfd_i386_compatible): New.
1015 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
1016 with bfd_i386_compatible.
1017 (bfd_x86_64_arch_intel_syntax): Likewise.
1018 (bfd_i386_arch_intel_syntax): Likewise.
1019 (i8086_arch): Likewise.
1020 (bfd_x64_32_arch): Likewise.
1021 (bfd_x86_64_arch): Likewise.
1022 (bfd_i386_arch): Likewise.
1023
9e9e0820 1024For older changes see ChangeLog-2010
56882138
AM
1025\f
1026Local Variables:
1027mode: change-log
1028left-margin: 8
1029fill-column: 74
1030version-control: never
1031End: