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