]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
* configure.ac: Separate libgloss_dir settings from general case
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
9507a174
AM
12011-05-04 Alan Modra <amodra@gmail.com>
2
3 PR ld/12727
4 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
5 was_undefined on dot-symbols.
6
2fbb87f6
PB
72011-05-03 Paul Brook <paul@codesourcery.com>
8
9
10 * elf32-tic6x.c (elf32_tic6x_howto_table,
11 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
12 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
13 Add R_C6000_EHTYPE.
14
9d4057ee
AM
152011-05-01 Alan Modra <amodra@gmail.com>
16
17 PR ld/12718
18 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
19 creating ifunc sections.
20 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
21
71e7aa7d
L
222011-04-30 H.J. Lu <hongjiu.lu@intel.com>
23
24 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
25 names.
26
b5dee4ea
TT
272011-04-28 Tom Tromey <tromey@redhat.com>
28
29 * bfdio.c (memory_bstat): Pass correct size to memset.
30
e4c93b56
MF
312011-04-28 Mike Frysinger <vapier@gentoo.org>
32
33 * dwarf2.c (dwarf_debug_sections): Mark const.
34 * elf.c (special_sections): Likewise.
35 * libbfd-in.h (dwarf_debug_sections): Likewise.
36 * libbfd.h: Regenerate.
37
72b016b4
NC
382011-04-26 Kai Tietz <ktietz@redhat.com>
39
40 * coffcode.h (sec_to_styp_flags): Allow linkonce for
41 debugging sections.
42
4964e065
TG
432011-04-26 Tristan Gingold <gingold@adacore.com>
44
45 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
46
35ed3f94
AM
472011-04-24 Alan Modra <amodra@gmail.com>
48
49 PR ld/12365
50 PR ld/12696
51 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
52 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
53 (_bfd_generic_link_add_one_symbol): Update "notice" call.
54 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
55 it is a redef of an IR symbol in a real BFD.
56
b70321a2
L
572011-04-22 H.J. Lu <hongjiu.lu@intel.com>
58
59 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
60 in readonly section in a shared object.
61 (elf_i386_size_dynamic_sections): Likewise.
62 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
63 (elf_x86_64_size_dynamic_sections): Likewise.
64
aa715242
L
652011-04-21 H.J. Lu <hongjiu.lu@intel.com>
66
67 PR ld/12694
68 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
69 symbols.
70 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
71
f6df62c8
L
722011-04-21 H.J. Lu <hongjiu.lu@intel.com>
73
74 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
75 on dynamic symbol error.
76 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
77
4bbd5a24
TG
782011-04-20 Tristan Gingold <gingold@adacore.com>
79
80 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
81
8ad17b3a
AM
822011-04-20 Alan Modra <amodra@gmail.com>
83
84 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
85 (bfd_hash_table_init_n): Overflow checking.
86 (bfd_hash_set_default_size): Return current size. Take unsigned long
87 arg. Add 65537 to hash_size primes.
88 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
89 * bfd-in2.h: Regenerate.
90
1b0df531
JK
912011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
92
93 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
94 memmove elements.
95
595213d4
AM
962011-04-20 Alan Modra <amodra@gmail.com>
97
9e6619e2
AM
98 * libbfd.c (bfd_log2): Do return rounded up value.
99 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
100 call with expanded old round down version of the function.
101
595213d4
AM
102 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
103 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
104
02d00247
AM
1052011-04-20 Alan Modra <amodra@gmail.com>
106
107 PR ld/12365
108 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
109 in their own common section.
110 * elflink.c (elf_link_add_object_symbols): Likewise.
111 * linker.c (generic_link_check_archive_element): Don't lose flags
112 if common section is pre-existing.
113 (_bfd_generic_link_add_one_symbol): Likewise.
114
24f58f47
AM
1152011-04-20 Alan Modra <amodra@gmail.com>
116
117 PR ld/12365
118 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
119 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
120 multiple_definition regardless of allow_multiple_definition.
121 * simple.c (simple_dummy_multiple_definition): Update.
122 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
123 calls.
124
417236c0
TG
1252011-04-18 Tristan Gingold <gingold@adacore.com>
126
127 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
128
901f1d17
AM
1292011-04-18 Alan Modra <amodra@gmail.com>
130
131 PR ld/12365
132 PR ld/12672
133 * bfd.c (BFD_PLUGIN): Define.
134 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
135 * bfd-in2.h: Regenerate.
136 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
137 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
138
63524580
JK
1392011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
140
141 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
142 SEC_LOAD.
143
e21e5835
NC
1442011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
145
146 * elf-bfd.h (struct sdt_note): New struct.
147 (struct elf_obj_tdata) <sdt_note_head>: New field.
148 * elf.c (elfobj_grok_stapsdt_note_1): New function.
149 (elfobj_grok_stapsdt_note): Likewise.
150 (elf_parse_notes): Added code to treat SystemTap note
151 sections.
152
6452a567
RH
1532011-04-12 Richard Henderson <rth@redhat.com>
154
155 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
156 exclude empty .got sections.
157
2a750708
L
1582011-04-11 H.J. Lu <hongjiu.lu@intel.com>
159
160 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
161 array access for BFD_RELOC_386_IRELATIVE.
162
2123f9ad
BS
1632011-04-11 Bernd Schmidt <bernds@codesourcery.com>
164
165 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
166
f64b2e8d
NC
1672011-04-11 Mark Wielaard <mjw@redhat.com>
168
169 PR 10549
170 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
171 (has_gnu_symbols): Renamed from has_ifunc_symbols.
172 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
173 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
174 also if STB_GNU_UNIQUE symbol binding was seen.
175 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
176 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
177 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
178 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
179 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
180 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
181
e57278ef
AM
1822011-04-11 Alan Modra <amodra@gmail.com>
183
184 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
185 sections.
186 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
187 (_bfd_generic_get_section_contents_in_window): Likewise.
188 * section.c (bfd_get_section_contents): Likewise.
189 * compress.c (bfd_get_full_section_contents): Likewise.
190 * elf32-rx.c (rx_final_link): Ignore rawsize.
191 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
192 bfd with bfd_get_section_limit.
193 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
194 os->size during final link. Update callers.
195 * bfd-in2.h: Regenerate.
196
e2ece73c
RS
1972011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
198
199 PR ld/12637
200 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
201 as the number of global entries when merging with the primary GOT.
202
9f973f28
L
2032011-04-09 H.J. Lu <hongjiu.lu@intel.com>
204
205 * elf32-i386.c: Update copyright year.
206 * elf64-x86-64.c: Likewise.
207
21e68916
KT
2082011-04-09 Kai Tietz <ktietz@redhat.com>
209
210 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
211 buffer and use rawsize for sorting.
212 * coffcode.h (coff_compute_section_file_positions): Set rawsize
213 before doing alignment.
214
62d78908
L
2152011-04-09 H.J. Lu <hongjiu.lu@intel.com>
216
217 * elf32-i386.c (elf_i386_relocate_section): Return relocation
218 error on unsupported relocation.
219 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
220
2351cae0
L
2212011-04-09 H.J. Lu <hongjiu.lu@intel.com>
222
223 PR binutils/12657
224 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
225 pid_t.
226
959b0961
L
2272011-04-08 H.J. Lu <hongjiu.lu@intel.com>
228
229 PR ld/12654
230 * elf32-i386.c (elf_i386_relocate_section): Check !executable
231 instead of shared for R_386_TLS_LDO_32.
232
33b54431
TG
2332011-04-08 Tristan Gingold <gingold@adacore.com>
234
235 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
236 * coff-pmac: Remove
237 * xcoff-target.h: Remove
238 * Makefile.in: Regenerate.
239
5d8e6b4d
CC
2402011-04-07 Cary Coutant <ccoutant@google.com>
241
242 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
243
44e87ece 2442011-04-07 Paul Brook <paul@codesourcery.com>
33b54431 245
44e87ece
PB
246 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
247 pc-relative.
248 (elf32_tic6x_howto_table_rel): Ditto.
249 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
250 (elf32_tic6x_check_relocs): Ditto.
251
8c5fc800
JM
2522011-04-06 Joseph Myers <joseph@codesourcery.com>
253
254 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
255 targets.
256 (strongarm*, thumb*, xscale*): Remove architectures.
257 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
258 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
259 xscale-*-coff): Remove targets.
260
6f8027ae
TG
2612011-04-01 Tristan Gingold <gingold@adacore.com>
262
263 * elfxx-ia64.c: include bfd_stdint.h
264
c89ce65c
JK
2652011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
266
267 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
268 dynobj and its initialization.
269
545f57c6
TG
2702011-03-31 Tristan Gingold <gingold@adacore.com>
271
272 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
273 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
274 BFD_HOST_LONG_LONG to 1.
275
083faca9
TG
2762011-03-31 Tristan Gingold <gingold@adacore.com>
277
278 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
279 (_bfd_vms_write_etir): Ditto.
280 (_bfd_vms_slurp_etir): Avoid to use intptr_t
281 * configure.com: Generate bfd_stdint.h
282
ac145307
BS
2832011-03-31 Bernd Schmidt <bernds@codesourcery.com>
284
285 * elf32-tic6x.h (struct elf32_tic6x_params): New.
286 (elf32_tic6x_setup): Declare.
287 * elf32-tic6x.c: Include <limits.h>.
288 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
289 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
290 New structures.
291 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
292 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
293 tic6x_elf_scom_symbol_ptr): New static variables.
294 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
295 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
296 R_C6000_PCR_H16 and R_C6000_PCR_L16.
297 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
298 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
299 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
300 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
301 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
302 elf32_tic6x_adjust_dynamic_symbol): New static functions.
303 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
304 to weak symbols as required by the ABI.
305 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
306 as needed when generating DSBT output.
307 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
308 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
309 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
310 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
311 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
312 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
313 New static functions.
314 (ELF_MAXPAGESIZE): Define to 0x1000.
315 (bfd_elf32_bfd_copy_private_bfd_data,
316 bfd_elf32_bfd_link_hash_table_create,
317 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
318 elf_backend_want_got_plt, elf_backend_want_dynbss,
319 elf_backend_plt_readonly, elf_backend_got_header_size,
320 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
321 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
322 elf_backend_check_relocs, elf_backend_add_symbol_hook,
323 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
324 elf_backend_section_from_bfd_section,
325 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
326 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
327 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
328
329 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
330 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
331 * bfd/bfd-in2.h: Regenerate.
332 * bfd/libbfd.h: Regenerate.
333 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
334
53dd76d3
TG
3352011-03-31 Tristan Gingold <gingold@adacore.com>
336
337 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
338 entry on xcoff when value is C_NULL_VALUE.
339
3402011-03-31 Tristan Gingold <gingold@adacore.com>
2040caca
TG
341
342 * libcoff-in.h (exec_hdr): Remove.
343 * libcoff.h: Regenerate.
344
3a294fa7
NC
3452011-03-30 Nick Clifton <nickc@redhat.com>
346
347 * po/da.po: Updated Danish translation.
348
e117360e
RH
3492011-03-29 Richard Henderson <rth@redhat.com>
350
351 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
352 (elf64_alpha_gc_sweep_hook): New.
353 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
354 (elf_backend_can_gc_sections): New.
355
5b806d27
NC
3562011-03-26 John Marino <binutils@marino.st>
357
358 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
359 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
360 * configure: Regenerate.
361
b42adabf
NC
3622011-03-25 Michael Snyder <msnyder@vmware.com>
363
364 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
365
a283ff93
TG
3662011-03-25 Tristan Gingold <gingold@adacore.com>
367
368 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
369 of find_nearest_line on object files.
370
cf6b8767
TG
3712011-03-25 Tristan Gingold <gingold@adacore.com>
372
373 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
374 Minor reordering.
375 (alpha_vms_create_eisd_for_section): Make code sections read-only.
376
663a1470
AM
3772011-03-24 Alan Modra <amodra@gmail.com>
378
379 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
380 old-style __tls_get_addr calls without marker relocs don't match
381 their arg setup insn one for one. If such mismatches are found
382 report the reloc and don't do any tls optimization.
383 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
384
dc80f6ae
EW
3852011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
386
387 * bfd-in2.h: Regenerate.
388
8cc66334
EW
3892011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
390
391 * archures.c: Add AVR XMEGA architecture information.
392 * cpu-avr.c (arch_info_struct): Likewise.
393 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
394 (elf32_avr_object_p): Likewise.
395
34e77a92
RS
3962011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
397
398 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
399 * bfd-in2.h: Regenerate.
400 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
401 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
402 entry.
403 (elf32_arm_howto_from_type): Update accordingly.
404 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
405 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
406 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
407 with an extra noncall_refcount field.
408 (arm_local_iplt_info): New structure.
409 (elf_arm_obj_tdata): Add local_iplt.
410 (elf32_arm_local_iplt): New accessor macro.
411 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
412 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
413 Change tls_type to a bitfield and add is_iplt.
414 (elf32_arm_link_hash_newfunc): Update accordingly.
415 (elf32_arm_allocate_local_sym_info): New function.
416 (elf32_arm_create_local_iplt): Likewise.
417 (elf32_arm_get_plt_info): Likewise.
418 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
419 (elf32_arm_get_local_dynreloc_list): Likewise.
420 (create_ifunc_sections): Likewise.
421 (elf32_arm_copy_indirect_symbol): Update after the changes to
422 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
423 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
424 to get PLT information. Assert that all STT_GNU_IFUNC references
425 are turned into PLT references.
426 (arm_build_one_stub): Pass the symbol type to
427 elf32_arm_final_link_relocate.
428 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
429 (elf32_arm_allocate_irelocs): New function.
430 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
431 all R_ARM_IRELATIVE.
432 (elf32_arm_allocate_plt_entry): New function.
433 (elf32_arm_populate_plt_entry): Likewise.
434 (elf32_arm_final_link_relocate): Add an st_type parameter.
435 Set srelgot to null for static objects. Use separate variables
436 to record which st_value and st_type should be used when generating
437 a dynamic relocation. Use elf32_arm_get_plt_info to find the
438 symbol's PLT information, setting has_iplt_entry, splt,
439 plt_offset and gotplt_offset accordingly. Check whether
440 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
441 the relocation target accordingly. Broaden assert to include
442 .iplts. Don't set sreloc for static relocations. Assert that
443 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
444 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
445 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
446 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
447 resolve GOT references to the .igot.plt entry.
448 (elf32_arm_relocate_section): Update the call to
449 elf32_arm_final_link_relocate.
450 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
451 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
452 relocations in shared libraries and relocatable executables.
453 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
454 to get the list of dynamic relocations for a local symbol.
455 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
456 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
457 to allocate local symbol information. Treat R_ARM_REL32 and
458 R_ARM_REL32_NOI as call relocations in shared libraries and
459 relocatable executables. Record PLT information for local
460 STT_GNU_IFUNC functions as well as global functions. Count
461 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
462 to get the list of dynamic relocations for a local symbol.
463 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
464 Don't remove STT_GNU_IFUNC PLTs unless all references have been
465 removed. Update after the changes to elf32_arm_link_hash_entry.
466 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
467 entries should live in .plt or .iplt. Check whether the .igot.plt
468 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
469 to allocate .plt and .(i)got.plt entries. Detect which .got
470 entries will need R_ARM_IRELATIVE relocations and use
471 elf32_arm_allocate_irelocs to allocate them. Likewise other
472 non-.got dynamic relocations.
473 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
474 and dynamic relocations for local STT_GNU_IFUNC symbols.
475 Check whether the .igot.plt and .got entries can be combined.
476 Detect which .got entries will need R_ARM_IRELATIVE relocations
477 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
478 section pointers intead of strcmp checks. Handle iplt and igotplt.
479 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
480 to fill in .plt, .got.plt and .rel(a).plt entries. Point
481 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
482 resolve to it.
483 (elf32_arm_output_plt_map_1): New function, split out from
484 elf32_arm_output_plt_map. Handle .iplt entries. Use
485 elf32_arm_plt_needs_thumb_stub_p.
486 (elf32_arm_output_plt_map): Call it.
487 (elf32_arm_output_arch_local_syms): Add mapping symbols for
488 local .iplt entries.
489 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
490 (elf32_arm_swap_symbol_out): Likewise.
491 (elf32_arm_add_symbol_hook): New function.
492 (elf_backend_add_symbol_hook): Define for all targets.
493
35fc36a8
RS
4942011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
495
496 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
497 * elf.c (swap_out_syms): Set st_target_internal for each
498 Elf_Internal_Sym.
499 * elfcode.h (elf_swap_symbol_in): Likewise.
500 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
501 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
502 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
503 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
504 * elflink.c (elf_link_output_extsym): Likewise.
505 (bfd_elf_final_link): Likewise.
506 (elf_link_add_object_symbols): Copy st_target_internal
507 to the hash table if we see a definition.
508 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
509 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
510 a branch_type field.
511 (a8_erratum_fix, a8_erratum_reloc): Likewise.
512 (arm_type_of_stub): Replace actual_st_type with an
513 actual_branch_type parameter.
514 (arm_build_one_stub): Use branch types rather than st_types to
515 determine the type of branch.
516 (cortex_a8_erratum_scan): Likewise.
517 (elf32_arm_size_stubs): Likewise.
518 (bfd_elf32_arm_process_before_allocation): Likewise.
519 (allocate_dynrelocs_for_symbol): Likewise.
520 (elf32_arm_finish_dynamic_sections): Likewise.
521 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
522 a branch_type parameter.
523 (elf32_arm_relocate_section): Update call accordingly.
524 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
525 (elf32_arm_output_map_sym): Initialize st_target_internal.
526 (elf32_arm_output_stub_sym): Likewise.
527 (elf32_arm_symbol_processing): Delete.
528 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
529 Use st_target_internal to record the branch type.
530 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
531 Thumb functions.
532 (elf32_arm_is_function_type): Delete.
533 (elf_backend_symbol_processing): Likewise.
534 (elf_backend_is_function_type): Likewise.
535
cbc704f3
RS
5362011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
537
538 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
539 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
540 into the PLT block.
541
f6e32f6d
RS
5422011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
543
544 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
545 may_need_local_target_p and may_become_dynamic_p to classify
546 the relocation type. Don't check info->symbolic or h->def_regular
547 when deciding whether to record a potential dynamic reloc.
548 Don't treat potential dynamic relocs as PLT references.
549 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
550 try to make the PLT reference count go negative.
551
b436d854
RS
5522011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
553
554 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
555 GOT entry here, rather than leaving it to finish_dynamic_symbol.
556 Only create a dynamic relocation for local references if
557 info->shared.
558 (allocate_dynrelocs_for_symbol): Update dynamic relocation
559 allocation accordingly.
560 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
561
47beaa6a
RS
5622011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
563
564 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
565 (elf32_arm_add_dynreloc): Likewise.
566 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
567 to allocate dynamic relocations.
568 (elf32_arm_size_dynamic_sections): Likewise.
569 (allocate_dynrelocs): Likewise. Rename to
570 allocate_dynrelocs_for_symbol.
571 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
572 create dynamic relocations.
573 (elf32_arm_finish_dynamic_symbol): Likewise.
574
52bc799a
L
5752011-03-12 H.J. Lu <hongjiu.lu@intel.com>
576
577 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
578 x32 GD->IE and GD->LE transitions.
579 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
580 and LD->LE transitions.
581
e11840f9
AM
5822011-03-10 Alan Modra <amodra@gmail.com>
583
584 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
585 for LO_DS error message and correct multiple.
586
aa374f67
AM
5872011-03-10 Alan Modra <amodra@gmail.com>
588
589 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
590 (ppc64_elf_link_just_syms): New function.
591 (opd_entry_value): Don't assume big-endian host.
592 (get_r2off): New function.
593 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
594
d59a60e9
MS
5952011-03-06 Michael Snyder <msnyder@vmware.com>
596
4281caad
MS
597 * compress.c (bfd_compress_section_contents): Check for out of mem.
598
17672001
MS
599 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
600 that case statement falls through intentionally.
601
d59a60e9
MS
602 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
603
0e29e6e8
AM
6042011-03-04 Alan Modra <amodra@gmail.com>
605
606 * archive.c (bsd_write_armap): Don't call stat in deterministic
607 mode, and don't use st_mtime if stat returns error.
608
eb00922a
MS
6092011-03-03 Michael Snyder <msnyder@vmware.com>
610
08c13595
MS
611 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
612
d543c50d
MS
613 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
614
c38eb2a6
MS
615 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
616 (aout_link_write_other_symbol): Missing break statement.
617
8ecc1f20
MS
618 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
619
eb00922a
MS
620 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
621
4a4c5f25
L
6222011-03-03 H.J. Lu <hongjiu.lu@intel.com>
623
624 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
625 x32 IE->LE transition.
626 (elf_x86_64_relocate_section): Likewise.
627
ddcf1fcf
BS
6282011-03-02 Bernd Schmidt <bernds@codesourcery.com>
629
aa374f67
AM
630 * elflink.c (is_reloc_section): Remove function.
631 (get_dynamic_reloc_section_name): Construct string manually.
ddcf1fcf 632
007d6189
KT
6332011-02-28 Kai Tietz <kai.tietz@onevision.com>
634
635 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
636 (adjust_relative_path): Likewise.
637 (_bfd_construct_extended_name_table): Likewise.
638 * corefile.c (generic_core_file_matches_executable_p): Likewise.
639 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
640 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
641 * elf32-spu.c (sort_bfds): Likewise.
642 (spu_elf_auto_overlay): Likewise.
643 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
644 * xcofflink.c (xcoff_set_import_path): Likewise.
645 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
646 (xtensa_regfile_lookup_shortname): Likewise.
647
8616ad89
AM
6482011-02-28 Alan Modra <amodra@gmail.com>
649
650 PR 12513
651 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
652 stringsize. Properly sanity check symdef_count. Remove redundant
653 bfd_release.
654
80549d04
RÁE
6552011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
656
657 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
658 and handle claim_file seeking. Only try to load the plugin once.
659
93b3ac75
AS
6602011-02-22 Andreas Schwab <schwab@redhat.com>
661
662 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
663 relocation read the value from the second GOT slot.
664
6fa052f0
TG
6652011-02-15 Tristan Gingold <gingold@adacore.com>
666
667 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
668
28be611c
AM
6692011-02-15 Alan Modra <amodra@gmail.com>
670
671 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
672 toc relocs. Fuss over free(NULL).
673
93252b1c
MF
6742011-02-14 Mike Frysinger <vapier@gentoo.org>
675
676 * elflink.c (bfd_elf_size_dynamic_sections): Add
677 bfd_get_symbol_leading_char to the start of newname.
678
822ce8ee
RW
6792011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
680
681 * configure: Regenerate.
682
425b145b
AM
6832011-02-09 Alan Modra <amodra@gmail.com>
684
685 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
686 we are done. When optimising large toc, check that a global
687 symbol on a toc reloc is defined in a kept section.
688
82f2dbf7
NC
6892011-02-08 Nick Clifton <nickc@redhat.com>
690
691 PR binutils/12467
692 * elf.c (assign_file_positions_for_load_sections): Set the program
693 header offset and entry size to zero if there are no program
694 headers.
695
df22d223
AM
6962011-02-08 Alan Modra <amodra@gmail.com>
697
698 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
699 local_syms when looking for local symbols in .toc.
700
6683a28d
AM
7012011-02-01 Alan Modra <amodra@gmail.com>
702
703 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
704 for toc pointer on any section having makes_toc_func_call set.
705 (check_pasted_section): Ensure pasted .init/.fini fragments use
706 the same toc if any has makes_toc_func_call set.
707
5240d94d
JM
7082011-01-28 Joseph Myers <joseph@codesourcery.com>
709
710 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
711 field.
712
ed88c97e
RS
7132011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
714
715 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
716 common sections too.
717
1a0c107f
L
7182011-01-18 H.J. Lu <hongjiu.lu@intel.com>
719
04449d86
L
720 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
721 Solaris target.
1a0c107f 722
d68cd58c
NC
7232011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
724
725 Fix compilation for mingw64.
726 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
727 typecast to avoid warning.
728 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
729 usage.
730 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
731 of long for pointer to avoid warning.
732 (elfNN_ia64_relax_brl): Idem.
733 (elfNN_ia64_install_value): Idem.
734 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
735
da17376b
RS
7362011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
737
738 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
739 h->needs_plt when deciding whether to record a possible dynamic reloc.
740
1e81e12b
RS
7412011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
742
743 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
744 dynamic relocs for the removed section.
745
d1534d16
L
7462011-01-15 H.J. Lu <hongjiu.lu@intel.com>
747
748 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
749 relocations.
750
248775ba
L
7512011-01-14 H.J. Lu <hongjiu.lu@intel.com>
752
753 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
754 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
755 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
756 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
757 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
758 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
759 for ILP32.
760
4a97a0e5
AM
7612011-01-14 Alan Modra <amodra@gmail.com>
762
763 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
764 error.
765 (_bfd_default_error_handler): Likewise.
766 * elf.c (print_segment_map): Likewise.
767 * libbfd.c (warn_deprecated): Likewise.
768 * som.c (som_sizeof_headers): No need to do so here.
769 * coff-i860.c: Replace use of printf for error messages with
770 _bfd_error_handler.
771 * coff-ppc.c: Likewise.
772 * coff-sh.c: Likewise.
773 * elf32-bfin.c: Likewise.
774 * elf32-dlx.c: Likewise.
775 * elf32-mep.c: Likewise.
776 * elf32-v850.c: Likewise.
777 * mach-o.c: Likewise.
778 * pef.c: Likewise.
779
82e96e07
L
7802011-01-13 H.J. Lu <hongjiu.lu@intel.com>
781
782 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
783 swap_reloca_out.
784 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
785 (elf_x86_64_check_relocs): Align relocation section to 4 byte
786 for 32bit.
787 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
788 ELF_ST_TYPE.
789 (elf_x86_64_finish_dynamic_symbol): Updated.
790 (elf_x86_64_finish_dynamic_sections): Don't use
791 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
792 bfd_elf64_swap_dyn_out.
793
e6a6bb22
AM
7942011-01-14 J. Park <grassman@gmail.com>
795
796 PR ld/12339
797 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
798 following bfd_link_hash_warning symbol link.
799
0855e32b
NS
8002011-01-10 Nathan Sidwell <nathan@codesourcery.com>
801 Glauber de Oliveira Costa <glommer@gmail.com>
802
803 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
804 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
805 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
806 relocations.
807 * libbfd.h: Rebuilt.
808 * bfd-in2.h: Rebuilt.
809 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
810 (elf32_arm_reloc_map): Likewise.
811 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
812 (elf32_arm_stub_long_branch_any_tls_pic,
813 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
814 (DEF_STUBS): Add new stubs.
815 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
816 (elf32_arm_local_tlsdesc_gotent): New.
817 (GOT_TLS_GDESC): New mask.
818 (GOT_TLS_GD_ANY): Define.
819 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
820 (elf32_arm_compute_jump_table_size): New.
821 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
822 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
823 sgotplt_jump_table_size fields.
824 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
825 (elf32_arm_link_hash_table_create): Initialize new fields.
826 (arm_type_of_stub): Check TLS desc relocs too.
827 (elf32_arm_stub_name): TLS desc relocs can be shared.
828 (elf32_arm_tls_transition): Determine relaxation.
829 (arm_stub_required_alignment): Add tls stubs.
830 (elf32_arm_size_stubs): Likewise.
831 (elf32_arm_tls_relax): Perform TLS relaxing.
832 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
833 (IS_ARM_TLS_GNU_RELOC): New.
834 (IS_ARM_TLS_RELOC): Use it.
835 (elf32_arm_relocate_section): Perform TLS relaxing.
836 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
837 desc relocations.
838 (allocate_dynrelocs): Allocate tls desc relcoations.
839 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
840 symbols.
841 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
842 got slots.
843 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
844 symbol.
845 (elf32_arm_finish_dynamic_symbol): Adjust.
846 (arm_put_trampoline): New.
847 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
848 trampolines.
849 (elf_backend_always_size_sections): Define.
850
7be86737
L
8512011-01-06 H.J. Lu <hongjiu.lu@intel.com>
852
853 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
854
ae428b57 8552011-01-06 H.J. Lu <hongjiu.lu@intel.com>
3db2e7dd
L
856
857 PR ld/12366
858 PR ld/12371
859 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
860 handle symbols marked with regular reference, but not non-GOT
861 reference when building shared library.
862
863 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
864 local and global STT_GNU_IFUNC symols when building shared
865 library.
866 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
867
9689e3a3
DD
8682011-01-05 DJ Delorie <dj@redhat.com>
869
870 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
871 * libbfd.h: Regenerate.
872 * bfd-in2.h: Regenerate.
873 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
874
889a4d3e
L
8752011-01-03 H.J. Lu <hongjiu.lu@intel.com>
876
877 * cpu-i386.c (bfd_i386_compatible): New.
878 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
879 with bfd_i386_compatible.
880 (bfd_x86_64_arch_intel_syntax): Likewise.
881 (bfd_i386_arch_intel_syntax): Likewise.
882 (i8086_arch): Likewise.
883 (bfd_x64_32_arch): Likewise.
884 (bfd_x86_64_arch): Likewise.
885 (bfd_i386_arch): Likewise.
886
9e9e0820 887For older changes see ChangeLog-2010
56882138
AM
888\f
889Local Variables:
890mode: change-log
891left-margin: 8
892fill-column: 74
893version-control: never
894End: