* elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2011-07-14 Alan Modra <amodra@gmail.com>
2
3 * elflink.c (_bfd_elf_fix_symbol_flags): Loop on indirect syms.
4 (_bfd_elf_adjust_dynamic_symbol): Remove FIXME.
5
6 2011-07-14 Alan Modra <amodra@gmail.com>
7
8 * elf64-ppc.c (struct ppc_link_hash_table): Add plt_static_chain.
9 (build_plt_stub): Add plt_static_chain param, don't load r11 if false.
10 (build_tls_get_addr_stub): Likewise.
11 (ppc_build_one_stub): Update calls to above.
12 (ppc_size_one_stub): Adjust stub size.
13 (ppc64_elf_size_stubs): Add plt_static_chain param, save to htab.
14 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
15
16 2011-07-12 Nick Clifton <nickc@redhat.com>
17
18 * elf32-arm.c (elf32_arm_section_flags): Delete.
19 (elf_backend_section_flags): Remove.
20
21 2011-07-11 H.J. Lu <hongjiu.lu@intel.com>
22
23 PR ld/12982
24 * elflink.c (bfd_elf_size_dynamic_sections): Also skip BFD_PLUGIN
25 when setting stack_flags.
26
27 2011-07-11 Catherine Moore <clm@codesourcery.com>
28
29 * aout-adobe.c (aout_32_bfd_lookup_section_flags): New definition.
30 * aout-target.h (MY_bfd_lookup_section_flags): New definition.
31 * aout-tic30.c (MY_bfd_lookup_section_flags): New definition.
32 * bfd-in2.h: Regenerated.
33 * bfd.c (bfd_lookup_section_flags): New definition.
34 * binary.c (binary_bfd_lookup_section_flags): New definition.
35 * bout.c (b_out_bfd_lookup_section_flags): New definition.
36 * coff-alpha.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
37 * coff-mips.c (_bfd_ecoff_bfd_lookup_section_flags): New definition.
38 * coff-rs6000.c (rs6000coff_vec): Include
39 bfd_generic_lookup_section_flags.
40 (pmac_xcoff_vec): Likewise.
41 * coffcode.h (coff_bfd_lookup_section_flags): New definition.
42 * coff64-rs6000.c (rs6000coff64_vec): Include
43 bfd_generic_lookup_section_flags.
44 (aix5coff64_vec): Likewise.
45 * ecoff.c (bfd_debug_section): Initialize flag_info field.
46 * elf-bfd.h (elf_backend_lookup_section_flags_hook): Declare.
47 (bfd_elf_lookup_section_flags): Declare.
48 * elflink.c (bfd_elf_lookup_section_flags): New function.
49 * elfxx-target.h (bfd_elfNN_bfd_lookup_section_flags): Define.
50 (elf_backend_lookup_section_flags_hook): Define.
51 (elf_backend_data): Add elf_backend_lookup_section_flags_hook.
52 * i386msdos.c (msdos_bfd_lookup_section_flags): New define.
53 * i386os9k.c (os9k_bfd_lookup_section_flags): New define.
54 * ieee.c (ieee_bfd_lookup_section_flags): New define.
55 * ihex.c (ihex_bfd_lookup_section_flags): New define.
56 * libbfd-in.h (_bfd_nolink_bfd_lookup_section_flags): Declare.
57 (bfd_generic_lookup_section_flags): Declare.
58 * libbfd.h: Regenerated.
59 * mach-o-target.c (bfd_mach_o_bfd_lookup_section_flags): New.
60 * mmo.c (mmo_bfd_lookup_section_flags): New definition.
61 * nlm-target.h (nlm_bfd_lookup_section_flags): New definition.
62 * oasys.c (oasys_bfd_lookup_section_flags): New definition.
63 * pef.c (bfd_pef_bfd_lookup_section_flags): New definition.
64 * plugin.c (bfd_plugin_bfd_lookup_section_flags): New definition.
65 * ppcboot.c (ppcboot_bfd_lookup_section_flags): New definition.
66 * reloc.c (bfd_generic_lookup_section_flags): New function.
67 * som.c (som_bfd_lookup_section_flags): New definition.
68 * srec.c (srec_bfd_lookup_section_flags): New definition.
69 * targets.c (flag_info): Declare.
70 (NAME##_bfd_lookup_section_flags): Add to LINK jump table.
71 (_bfd_lookup_section_flags): New.
72 * tekhex.c (tekhex_bfd_lookup_section_flags): New definition.
73 * versados.c (versados_bfd_lookup_section_flags): New definition.
74 * vms-alpha.c (alpha_vms_bfd_lookup_section_flag): New definition.
75 * xsym.c (bfd_sym_bfd_lookup_section_flags): New definition.
76
77 2011-07-11 H.J. Lu <hongjiu.lu@intel.com>
78
79 PR ld/12978
80 * elfnn-ia64.c (count_dyn_reloc): Fix a typo.
81
82 2011-07-09 Alan Modra <amodra@gmail.com>
83
84 PR ld/12942
85 * elflink.c (elf_link_add_object_symbols): Use elf_discarded_section
86 rather than kept_section to determine whether a symbol is from
87 a discarded section.
88 * cofflink.c (coff_link_add_symbols): Make symbols from discarded
89 sections appear undefined.
90
91 2011-07-09 H.J. Lu <hongjiu.lu@intel.com>
92
93 PR ld/12942
94 * elf-bfd.h (_bfd_elf_section_already_linked): Replace
95 "asection *" with "struct already_linked *".
96 * libbfd-in.h (_bfd_nolink_section_already_linked): Likewise.
97 (_bfd_generic_section_already_linked): Likewise.
98 (bfd_section_already_linked_table_insert): Likewise.
99 (struct already_linked): New.
100 (struct bfd_section_already_linked): Use it.
101 * elflink.c (_bfd_elf_section_already_linked): Replace.
102 "asection *" with "struct already_linked *". Replace the plugin
103 dummy with the LTO output.
104 * linker.c (_bfd_generic_section_already_linked): Likewise.
105 * targets.c (struct already_linked): Add forward declaration.
106 (bfd_target): Replace "struct bfd_section *" with
107 "struct already_linked *" in _section_already_linked.
108 * bfd-in2.h: Regenerate.
109 * libbfd.h: Regenerate.
110
111 2011-07-06 Tristan Gingold <gingold@adacore.com>
112
113 * mach-o.h: Move loader related definitions to
114 include/mach-o/loader.h. Include it.
115
116 2011-07-05 H.J. Lu <hongjiu.lu@intel.com>
117
118 * elf64-x86-64.c (elf_backend_post_process_headers): Always
119 define to _bfd_elf_set_osabi.
120
121 2011-07-03 Samuel Thibault <samuel.thibault@gnu.org>
122 Thomas Schwinge <thomas@schwinge.name>
123
124 PR binutils/12913
125 * elf.c (_bfd_elf_set_osabi): Use ELFOSABI_GNU name instead of
126 ELFOSABI_LINUX alias.
127 * elf32-hppa.c: Likewise.
128 * elf32-i370.c: Likewise.
129 * elf64-hppa.c: Likewise.
130
131 2011-07-01 Ian Lance Taylor <iant@google.com>
132
133 * elf32-i386.c (elf_i386_eh_frame_plt): Correct expression: change
134 DW_OP_lit3 to DW_OP_lit2.
135
136 2011-07-01 Alan Modra <amodra@gmail.com>
137
138 * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Don't look at
139 dyn relocs when called to copy flags for a weak sym.
140 * elf64-ppc.c (ppc64_elf_copy_indirect_symbol): Likewise.
141 (ppc64_elf_merge_private_bfd_data): Delete.
142 (bfd_elf64_bfd_merge_private_bfd_data): Define as
143 _bfd_generic_verify_endian_match.
144
145 2011-06-30 Bernd Schmidt <bernds@codesourcery.com>
146
147 * bfd/elf32-tic6x.c (elf32_tic6x_set_osabi): Also set it if
148 link_info is NULL.
149
150 2011-06-28 Tristan Gingold <gingold@adacore.com>
151
152 * vms-alpha.c (vms_private_data_struct): Make vms_linkage_index
153 unsigned int.
154 (_bfd_vms_write_etir): Write linkage index from reloc.
155
156 2011-06-28 Fawzi Mohamed <fawzi.mohamed@nokia.com>
157
158 * mach-o.c (bfd_mach_o_read_command): Also ignore
159 BFD_MACH_O_LC_ROUTINES_64.
160
161 2011-06-27 Tristan Gingold <gingold@adacore.com>
162
163 * vms-alpha.c (_bfd_vms_write_etir): Use 'section' to get current
164 section target index.
165
166 2011-06-27 Nick Clifton <nickc@redhat.com>
167
168 * cisco-core.c (cisco_core_little_vec): Add initialization of
169 match_priority field.
170
171 2011-06-27 Tristan Gingold <gingold@adacore.com>
172
173 * cache.c: Include bfd_stdint.h.
174 (cache_bmmap): Change profile. Return region start and size.
175 * bfdio.c (struct bfd_iovec): Change bmmap profile.
176 (bfd_mmap): Change profile and adjust. Update comment.
177 (memory_bmmap): Change profile.
178 * opncls.c (opncls_bmmap): Change profile.
179 * vms-lib.c (vms_lib_bmmap): Likewise.
180 * libbfd.h: Regenerate.
181 * bfd-in2.h: Regenerate.
182
183 2011-06-27 Tristan Gingold <gingold@adacore.com>
184
185 * vms-misc.c (vms_time_to_time_t): Adjust overflow detection.
186 Add comment.
187
188 2011-06-25 H.J. Lu <hongjiu.lu@intel.com>
189
190 * elf64-x86-64.c (elf_backend_post_process_headers): Don't
191 define for FreeBSD/x86-64 nor FreeBSD/L1OM. Define for L1OM.
192
193 2011-06-25 Jan Kratochvil <jan.kratochvil@redhat.com>
194
195 * elf64-x86-64.c (elf_x86_64_link_hash_table_create): Initialize
196 PLT_EH_FRAME.
197 * elf32-i386.c (elf_i386_link_hash_table): Likewise.
198
199 2011-06-24 Richard Henderson <rth@redhat.com>
200
201 PR ld/12928
202 * elf64-alpha.c (elf64_alpha_relax_tls_get_addr): Recover the
203 tlsgd insn before swapping adjacent insns.
204
205 2011-06-24 Tristan Gingold <gingold@adacore.com>
206
207 * vms-alpha.c (alpha_vms_slurp_relocs): Add a guard for relocs in the
208 absolute section.
209
210 2011-06-24 Alan Modra <amodra@gmail.com>
211
212 PR ld/12921
213 * elf.c (assign_file_positions_for_load_sections): Don't align
214 sh_offset for all SHT_NOBITS sections here, just .tbss sections
215 that don't get a PT_LOAD.
216
217 2011-06-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
218
219 * elf32-sh.c (sh_elf_relocate_section): Allow R_SH_TLS_LE_32 for PIE.
220 (sh_elf_check_relocs): Likewise.
221
222 2011-06-22 Richard Henderson <rth@redhat.com>
223
224 * elf64-alpha.c (elf64_alpha_check_relocs): No dynamic reloc for
225 TPREL in a PIE image.
226 (alpha_dynamic_entries_for_reloc): Likewise.
227 (elf64_alpha_relocate_section): Allow TPREL in PIE images.
228 (elf64_alpha_relax_got_load): Likewise.
229
230 2011-06-22 Ramana Radhakrishnan <ramana.radhakrishnan@linaro.org>
231
232 * elf32-arm.c (elf32_arm_final_link_relocate): Allow R_ARM_TLS_LE32
233 for PIE.
234
235 2011-06-22 Alan Modra <amodra@gmail.com>
236
237 * elflink.c (_bfd_elf_merge_symbol): Allow type changes for
238 plugin symbols. Fix segfault on linker scrip defined syms.
239
240 2011-06-20 Jakub Jelinek <jakub@redhat.com>
241
242 PR ld/12570
243 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Allow no relocations
244 at all for linker created .eh_frame sections.
245 (_bfd_elf_discard_section_eh_frame): Handle linker created
246 .eh_frame sections with no relocations.
247 * elf64-x86-64.c: Include dwarf2.h.
248 (elf_x86_64_eh_frame_plt): New variable.
249 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
250 PLT_FDE_LEN_OFFSET): Define.
251 (struct elf_x86_64_link_hash_table): Add plt_eh_frame field.
252 (elf_x86_64_create_dynamic_sections): Create and fill in
253 .eh_frame section for .plt section.
254 (elf_x86_64_size_dynamic_sections): Write .plt section size
255 into .eh_frame FDE covering .plt section.
256 (elf_x86_64_finish_dynamic_sections): Write .plt section
257 start into .eh_frame FDE covering .plt section. Call
258 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
259 (elf_backend_plt_alignment): Define to 4.
260 * elf32-i386.c: Include dwarf2.h.
261 (elf_i386_eh_frame_plt): New variable.
262 (PLT_CIE_LENGTH, PLT_FDE_LENGTH, PLT_FDE_START_OFFSET,
263 PLT_FDE_LEN_OFFSET): Define.
264 (struct elf_i386_link_hash_table): Add plt_eh_frame field.
265 (elf_i386_create_dynamic_sections): Create and fill in
266 .eh_frame section for .plt section.
267 (elf_i386_size_dynamic_sections): Write .plt section size
268 into .eh_frame FDE covering .plt section.
269 (elf_i386_finish_dynamic_sections): Write .plt section
270 start into .eh_frame FDE covering .plt section. Call
271 _bfd_elf_write_section_eh_frame on htab->plt_eh_frame section.
272 (elf_backend_plt_alignment): Define to 4.
273
274 2011-06-19 H.J. Lu <hongjiu.lu@intel.com>
275
276 * elf64-x86-64.c (elf_backend_post_process_headers): Defined
277 for x32.
278
279 2011-06-16 H.J. Lu <hongjiu.lu@intel.com>
280
281 * elf64-x86-64.c: Include <stdarg.h> and CORE_HEADER if
282 CORE_HEADER is defined.
283 (elf_x86_64_write_core_note): New.
284 (elf_backend_write_core_note): Likewise.
285
286 * hosts/x86-64linux.h (uint64_t): New.
287 (user_regsx32_struct): Likewise.
288 (elf_gregx32_t): Likewise.
289 (ELF_NGREGX32): Likewise.
290 (elf_gregsetx32_t): Likewise.
291 (elf_prstatusx32): Likewise.
292 (prstatusx32_t): Likewise.
293 (user_fpregs32_struct): Removed.
294 (user_fpxregs32_struct): Likewise.
295 (user32): Likewise.
296 (elf_fpregset32_t): Likewise.
297 (elf_fpxregset32_t): Likewise.
298 (prgregset32_t): Likewise.
299 (prfpregset32_t): Likewise.
300
301 2011-06-16 H.J. Lu <hongjiu.lu@intel.com>
302
303 * elf64-x86-64.c (elf_x86_64_grok_prstatus): Support x32.
304 (elf_x86_64_grok_psinfo): Likewise.
305
306 2011-06-16 Nick Clifton <nickc@redhat.com>
307
308 * elf.c (elf_find_function): Fail if not provided with a symbol
309 table.
310
311 2011-06-15 Ulrich Weigand <ulrich.weigand@linaro.org>
312
313 * elf-bfd.h (elfcore_write_arm_vfp): Add prototype.
314 * elf.c (elfcore_grok_arm_vfp): New function.
315 (elfcore_grok_note): Call it to handle NT_ARM_VFP notes.
316 (elfcore_write_arm_vfp): New function.
317 (elfcore_write_register_note): Call it to handle .reg-arm-vfp.
318
319 2011-06-14 Richard Henderson <rth@redhat.com>
320
321 * elf64-alpha.c (elf64_alpha_copy_indirect_symbol): Rename from
322 elf64_alpha_merge_ind_symbols; adjust for the generic interface.
323 (elf64_alpha_always_size_sections): Don't call
324 elf64_alpha_merge_ind_symbols.
325 (elf_backend_copy_indirect_symbol): New.
326
327 2011-06-14 Alan Modra <amodra@gmail.com>
328
329 PR ld/12887
330 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Check sec_info_type
331 before doing anything.
332 (_bfd_elf_discard_section_eh_frame): Likewise.
333
334 2011-06-14 Alan Modra <amodra@gmail.com>
335
336 * Makefile.am: Formatting.
337 * Makefile.in: Regenerate.
338 * configure.in (bfd_elf64_tilegx_vec): Add elfxx-tilegx.lo.
339 * po/SRC-POTFILES.in: Regnerate.
340
341 2011-06-14 Alan Modra <amodra@gmail.com>
342
343 * elf32-tilepro.c (tilepro_elf_size_dynamic_sections): Don't use PTR.
344 (allocate_dynrelocs, readonly_dynrelocs): Replace PTR with void *.
345 Don't handle warning symbols here.
346 * elfxx-tilegx.c (tilegx_elf_size_dynamic_sections): As above.
347 (allocate_dynrelocs, readonly_dynrelocs): As above.
348
349 2011-06-14 Alan Modra <amodra@gmail.com>
350
351 PR ld/12851
352 * elflink.c (_bfd_elf_gc_mark_extra_sections): New function.
353 (elf_gc_sweep): Don't treat debug and sections like .comment
354 specially here.
355 (bfd_elf_gc_sections): Treat note sections as gc roots only when
356 not part of a group. Always call gc_mark_extra_sections.
357 * elf-bfd.h (_bfd_elf_gc_mark_extra_sections): Declare.
358 * elfxx-target.h (elf_backend_gc_mark_extra_sections): Default to
359 _bfd_elf_gc_mark_extra_sections.
360 * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Call
361 _bfd_elf_gc_mark_extra_sections.
362 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): Likewise.
363
364 2011-06-13 Nick Clifton <nickc@redhat.com>
365
366 * elf32-tilepro.c (tilepro_elf_check_relocs): Delete unused local
367 variable 'local_got_offsets'.
368 * elfxx-tilegx.c (tilegx_elf_check_relocs): Likewise.
369 (tilegx_finish_dyn): Delete unused local variable 'abi_64_p'.
370
371 2011-06-13 Walter Lee <walt@tilera.com>
372
373 * Makefile.am (ALL_MACHINES): Add cpu-tilegx.lo and cpu-tilepro.lo.
374 (ALL_MACHINE_CFILES): Add cpu-tilegx.c and cpu-tilepro.c.
375 (BFD32_BACKENDS): Add elf32-tilegx.lo, elf32-tilepro.lo,
376 and elfxx-tilegx.lo.
377 (BFD32_BACKENDS_CFILES): Add elf32-tilegx.c elf32-tilepro.c, and
378 elfxx-tilegx.c.
379 (BFD64_BACKENDS): Add elf64-tilegx.lo.
380 (BFD64_BACKENDS_CFILES): Add elf64-tilegx.c.
381 * Makefile.in: Regenerate.
382 * arctures.c (bfd_architecture): Define bfd_arch_tilepro,
383 bfd_arch_tilegx, bfd_mach_tilepro, bfd_mach_tilegx.
384 (bfd_arch_info): Add bfd_tilegx_arch, bfd_tilepro_arch.
385 (bfd_archures_list): Add bfd_tilegx_arch, bfd_tilepro_arch.
386 bfd-in2.h: Regenerate.
387 * config.bfd: Handle tilegx-*-* and tilepro-*-*.
388 * configure.in: Handle bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
389 and bfd_elf64_tilegx_vec.
390 * configure: Regenerate.
391 * elf-bfd.h (enum elf_target_id): Define TILEGX_ELF_DATA and
392 TILEPRO_ELF_DATA.
393 * libbfd.h: Regenerate.
394 * reloc.c: Add BFD_RELOC_TILEPRO_{COPY, GLOB_DAT, JMP_SLOT,
395 RELATIVE, BROFF_X1, JOFFLONG_X1, JOFFLONG_X1_PLT, IMM8_X0,
396 IMM8_Y0, IMM8_X1, IMM8_Y1, DEST_IMM8_X1, MT_IMM15_X1, MF_IMM15_X1,
397 IMM16_X0, IMM16_X1, IMM16_X0_LO, IMM16_X1_LO, IMM16_X0_HI,
398 IMM16_X1_HI, IMM16_X0_HA, IMM16_X1_HA, IMM16_X0_PCREL,
399 IMM16_X1_PCREL, IMM16_X0_LO_PCREL, IMM16_X1_LO_PCREL,
400 IMM16_X0_HI_PCREL, IMM16_X1_HI_PCREL, IMM16_X0_HA_PCREL,
401 IMM16_X1_HA_PCREL, IMM16_X0_GOT, IMM16_X1_GOT, IMM16_X0_GOT_LO,
402 IMM16_X1_GOT_LO, IMM16_X0_GOT_HI, IMM16_X1_GOT_HI,
403 IMM16_X0_GOT_HA, IMM16_X1_GOT_HA, MMSTART_X0, MMEND_X0,
404 MMSTART_X1, MMEND_X1, SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1,
405 IMM16_X0_TLS_GD, IMM16_X1_TLS_GD, IMM16_X0_TLS_GD_LO,
406 IMM16_X1_TLS_GD_LO, IMM16_X0_TLS_GD_HI, IMM16_X1_TLS_GD_HI,
407 IMM16_X0_TLS_GD_HA, IMM16_X1_TLS_GD_HA, IMM16_X0_TLS_IE,
408 IMM16_X1_TLS_IE, IMM16_X0_TLS_IE_LO, IMM16_X1_TLS_IE_LO,
409 IMM16_X0_TLS_IE_HI, IMM16_X1_TLS_IE_HI, IMM16_X0_TLS_IE_HA,
410 IMM16_X1_TLS_IE_HA, TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
411 Add BFD_RELOC_TILEGX_{HW0, HW1, HW2, HW3, HW0_LAST, HW1_LAST,
412 HW2_LAST, COPY, GLOB_DAT, JMP_SLOT, RELATIVE, BROFF_X1,
413 JUMPOFF_X1, JUMPOFF_X1_PLT, IMM8_X0, IMM8_Y0, IMM8_X1, IMM8_Y1,
414 DEST_IMM8_X1, MT_IMM14_X1, MF_IMM14_X1, MMSTART_X0, MMEND_X0,
415 SHAMT_X0, SHAMT_X1, SHAMT_Y0, SHAMT_Y1, IMM16_X0_HW0,
416 IMM16_X1_HW0, IMM16_X0_HW1, IMM16_X1_HW1, IMM16_X0_HW2,
417 IMM16_X1_HW2, IMM16_X0_HW3, IMM16_X1_HW3, IMM16_X0_HW0_LAST,
418 IMM16_X1_HW0_LAST, IMM16_X0_HW1_LAST, IMM16_X1_HW1_LAST,
419 IMM16_X0_HW2_LAST, IMM16_X1_HW2_LAST, IMM16_X0_HW0_PCREL,
420 IMM16_X1_HW0_PCREL, IMM16_X0_HW1_PCREL, IMM16_X1_HW1_PCREL,
421 IMM16_X0_HW2_PCREL, IMM16_X1_HW2_PCREL, IMM16_X0_HW3_PCREL,
422 IMM16_X1_HW3_PCREL, IMM16_X0_HW0_LAST_PCREL,
423 IMM16_X1_HW0_LAST_PCREL, IMM16_X0_HW1_LAST_PCREL,
424 IMM16_X1_HW1_LAST_PCREL, IMM16_X0_HW2_LAST_PCREL,
425 IMM16_X1_HW2_LAST_PCREL, IMM16_X0_HW0_GOT, IMM16_X1_HW0_GOT,
426 IMM16_X0_HW1_GOT, IMM16_X1_HW1_GOT, IMM16_X0_HW2_GOT,
427 IMM16_X1_HW2_GOT, IMM16_X0_HW3_GOT, IMM16_X1_HW3_GOT,
428 IMM16_X0_HW0_LAST_GOT, IMM16_X1_HW0_LAST_GOT,
429 IMM16_X0_HW1_LAST_GOT, IMM16_X1_HW1_LAST_GOT,
430 IMM16_X0_HW2_LAST_GOT, IMM16_X1_HW2_LAST_GOT, IMM16_X0_HW0_TLS_GD,
431 IMM16_X1_HW0_TLS_GD, IMM16_X0_HW1_TLS_GD, IMM16_X1_HW1_TLS_GD,
432 IMM16_X0_HW2_TLS_GD, IMM16_X1_HW2_TLS_GD, IMM16_X0_HW3_TLS_GD,
433 IMM16_X1_HW3_TLS_GD, IMM16_X0_HW0_LAST_TLS_GD,
434 IMM16_X1_HW0_LAST_TLS_GD, IMM16_X0_HW1_LAST_TLS_GD,
435 IMM16_X1_HW1_LAST_TLS_GD, IMM16_X0_HW2_LAST_TLS_GD,
436 IMM16_X1_HW2_LAST_TLS_GD, IMM16_X0_HW0_TLS_IE,
437 IMM16_X1_HW0_TLS_IE, IMM16_X0_HW1_TLS_IE, IMM16_X1_HW1_TLS_IE,
438 IMM16_X0_HW2_TLS_IE, IMM16_X1_HW2_TLS_IE, IMM16_X0_HW3_TLS_IE,
439 IMM16_X1_HW3_TLS_IE, IMM16_X0_HW0_LAST_TLS_IE,
440 IMM16_X1_HW0_LAST_TLS_IE, IMM16_X0_HW1_LAST_TLS_IE,
441 IMM16_X1_HW1_LAST_TLS_IE, IMM16_X0_HW2_LAST_TLS_IE,
442 IMM16_X1_HW2_LAST_TLS_IE, TLS_DTPMOD64, TLS_DTPOFF64, TLS_TPOFF64,
443 TLS_DTPMOD32, TLS_DTPOFF32, TLS_TPOFF32}
444 * targets.c (bfd_elf32_tilegx_vec): Declare.
445 (bfd_elf32_tilepro_vec): Declare.
446 (bfd_elf64_tilegx_vec): Declare.
447 (bfd_target_vector): Add bfd_elf32_tilegx_vec, bfd_elf32_tilepro_vec,
448 and bfd_elf64_tilegx_vec.
449 * cpu-tilegx.c: New file.
450 * cpu-tilepro.c: New file.
451 * elf32-tilepro.h: New file.
452 * elf32-tilepro.c: New file.
453 * elf32-tilegx.c: New file.
454 * elf32-tilegx.h: New file.
455 * elf64-tilegx.c: New file.
456 * elf64-tilegx.h: New file.
457 * elfxx-tilegx.c: New file.
458 * elfxx-tilegx.h: New file.
459
460 2011-06-13 Alan Modra <amodra@gmail.com>
461
462 * linker.c (bfd_link_hash_traverse): Follow warning symbol link.
463 (_bfd_generic_link_write_global_symbol, fix_syms): Don't handle
464 warning symbols here.
465 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Likewise.
466 * elf32-arm.c (allocate_dynrelocs_for_symbol,
467 elf32_arm_readonly_dynrelocs): Likewise.
468 * elf32-bfin.c (bfin_discard_copies): Likewise.
469 * elf32-cris.c (elf_cris_adjust_gotplt_to_got,
470 elf_cris_discard_excess_dso_dynamics,
471 elf_cris_discard_excess_program_dynamics): Likewise.
472 * elf32-hppa.c (allocate_plt_static, allocate_dynrelocs,
473 clobber_millicode_symbols, readonly_dynrelocs): Likewise.
474 * elf32-i370.c (i370_elf_adjust_dynindx): Likewise.
475 * elf32-i386.c (elf_i386_allocate_dynrelocs,
476 elf_i386_readonly_dynrelocs): Likewise.
477 * elf32-lm32.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
478 * elf32-m32c.c (m32c_relax_plt_check, m32c_relax_plt_realloc): Likewise.
479 * elf32-m32r.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
480 * elf32-m68k.c (elf_m68k_discard_copies): Likewise.
481 * elf32-microblaze.c (allocate_dynrelocs): Likewise.
482 * elf32-ppc.c (allocate_dynrelocs, maybe_set_textrel): Likewise.
483 * elf32-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
484 * elf32-score.c (score_elf_sort_hash_table_f): Likewise.
485 * elf32-score7.c (score_elf_sort_hash_table_f): Likewise.
486 * elf32-sh.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
487 * elf32-tic6x.c (elf32_tic6x_allocate_dynrelocs,
488 elf32_tic6x_readonly_dynrelocs): Likewise.
489 * elf32-vax.c (elf_vax_discard_copies): Likewise.
490 * elf32-xstormy16.c (xstormy16_relax_plt_check,
491 xstormy16_relax_plt_realloc): Likewise.
492 * elf32-xtensa.c (elf_xtensa_allocate_dynrelocs): Likewise.
493 * elf64-alpha.c (elf64_alpha_output_extsym,
494 elf64_alpha_calc_got_offsets_for_symbol,
495 elf64_alpha_calc_dynrel_sizes, elf64_alpha_size_rela_got_1): Likewise.
496 * elf64-hppa.c (elf64_hppa_mark_exported_functions,
497 allocate_global_data_opd, elf64_hppa_mark_milli_and_exported_functions,
498 elf_hppa_unmark_useless_dynamic_symbols,
499 elf_hppa_remark_useless_dynamic_symbols): Likewise.
500 * elf64-ppc.c (ppc64_elf_gc_mark_dynamic_ref, func_desc_adjust,
501 adjust_opd_syms, adjust_toc_syms, allocate_dynrelocs,
502 readonly_dynrelocs, merge_global_got, reallocate_got,
503 undo_symbol_twiddle): Likewise.
504 * elf64-s390.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
505 * elf64-sh64.c (sh64_elf64_discard_copies): Likewise.
506 * elf64-x86-64.c (elf_x86_64_allocate_dynrelocs,
507 elf_x86_64_readonly_dynrelocs): Likewise.
508 * elflink.c (elf_link_renumber_hash_table_dynsyms,
509 elf_link_renumber_local_hash_table_dynsyms, _bfd_elf_export_symbol,
510 _bfd_elf_link_find_version_dependencies,
511 _bfd_elf_link_assign_sym_version, _bfd_elf_adjust_dynamic_symbol,
512 _bfd_elf_link_sec_merge_syms, elf_adjust_dynstr_offsets,
513 elf_collect_hash_codes, elf_collect_gnu_hash_codes,
514 elf_renumber_gnu_hash_syms, elf_gc_sweep_symbol,
515 elf_gc_propagate_vtable_entries_used,
516 elf_gc_smash_unused_vtentry_relocs, bfd_elf_gc_mark_dynamic_ref_symbol,
517 elf_gc_allocate_got_offsets): Likewise.
518 * elfnn-ia64.c (elfNN_ia64_global_dyn_info_free,
519 elfNN_ia64_global_dyn_sym_thunk): Likewise.
520 * elfxx-mips.c (mips_elf_check_symbols, mips_elf_output_extsym,
521 mips_elf_sort_hash_table_f, allocate_dynrelocs): Likewise.
522 * elfxx-sparc.c (allocate_dynrelocs, readonly_dynrelocs): Likewise.
523 * i386linux.c (linux_tally_symbols): Likewise.
524 * m68klinux.c (linux_tally_symbols): Likewise.
525 * sparclinux.c (linux_tally_symbols): Likewise.
526 * sunos.c (sunos_scan_dynamic_symbol): Likewise.
527 * xcofflink.c (xcoff_post_gc_symbol): Likewise.
528
529 * elflink.c (elf_link_output_extsym): Make it a bfd_hash_traverse
530 function. Update all callers.
531 * aoutx.h (aout_link_write_other_symbol): Likewise.
532 * pdp11.c (aout_link_write_other_symbol): Likewise.
533 * cofflink.c (_bfd_coff_write_global_sym): Likewise.
534 * ecoff.c (ecoff_link_write_external): Likewise.
535 * xcofflink.c (xcoff_write_global_symbol): Likewise.
536 * vms-alpha.c (alpha_vms_link_output_symbol): Likewise. Handle
537 warning symbols.
538 * ecoff.c (ecoff_link_hash_traverse): Delete.
539 * coff-ppc.c (ppc_bfd_coff_final_link): Use bfd_hash_traverse for
540 _bfd_coff_write_global_sym.
541 * libcoff-in.h (_bfd_coff_write_global_sym): Update prototype.
542 * libcoff.h: Regenerate.
543
544 2011-06-10 Nick Clifton <nickc@redhat.com>
545
546 * elflink.c (_bfd_elf_link_create_dynamic_sections): If the
547 backend does not provide a function for creating dynamic sections
548 then fail.
549 (bfd_elf_final_link): Issue a warning message if a dynamic section
550 has the SHT_NOTE type.
551 (bfd_elf_final_link): Do not look for dynamic strings in a section
552 that does not have the SHT_STRTAB type or the name .dynstr.
553 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Fail if the got
554 section is not in the output binary.
555 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Likewise.
556
557 2011-06-09 Tristan Gingold <gingold@adacore.com>
558
559 * elfnn-ia64.c (elfNN_ia64_relax_section, elfNN_ia64_choose_gp)
560 (elfNN_ia64_relocate_section, elfNN_vms_object_p): Remove trailing
561 spaces.
562
563 2011-06-09 Tristan Gingold <gingold@adacore.com>
564
565 * bfd.c (bfd_get_sign_extend_vma): Handle aixcoff.
566
567 2011-06-09 Nick Clifton <nickc@redhat.com>
568
569 PR ld/12845
570 * elf.c (_bfd_elf_init_private_section_data): Add an assertion
571 that the output section has an allocated bfd_elf_section_data
572 structure.
573 * elfxx-mips.c (mips_elf_check_symbols): Do not create a stub for
574 symbols in sections that have been removed by garbage collection.
575
576 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
577
578 * elf64-x86-64.c (elf_x86_64_check_relocs): Allow R_X86_64_64
579 relocations in SEC_DEBUGGING sections when building shared
580 libraries.
581
582 2011-06-08 H.J. Lu <hongjiu.lu@intel.com>
583
584 PR ld/12851
585 * elflink.c (elf_gc_sweep): Don't check SHT_NOTE sections here.
586 (bfd_elf_gc_sections): Also check SHT_NOTE sections.
587
588 2011-06-08 Tristan Gingold <gingold@adacore.com>
589
590 * makefile.vms (OBJS): Add elfxx-ia64.obj
591 Remove vax case.
592
593 2011-06-08 Alan Modra <amodra@gmail.com>
594
595 * aix386-core.c, * cisco-core.c, * hpux-core.c, * osf-core.c,
596 * sco5-core.c: Init match_priority field.
597
598 2011-06-08 Alan Modra <amodra@gmail.com>
599
600 * elflink.c (_bfd_elf_archive_symbol_lookup): Follow warning and
601 indirect links here.
602
603 2011-06-07 Joel Brobecker <brobecker@adacore.com>
604
605 * irix-core.c (irix_core_vec): Add match_priority field.
606
607 2011-06-06 Alan Modra <amodra@gmail.com>
608
609 * targets.c (bfd_target): Make ar_max_namelen an unsigned char.
610 Add match_priority.
611 * configure.in: Bump bfd version.
612 * elfcode.h (elf_object_p): Delete hacks preventing match of
613 EM_NONE and ELFOSABI_NONE targets when a better match exists.
614 * elfxx-target.h (elf_match_priority): Define and use.
615 * format.c (bfd_check_format_matches): Use target match_priority
616 to choose best of multiple matching targets. In cases with multiple
617 matches rerun _bfd_check_format if we don't choose the last match.
618 * aout-adobe.c, * aout-arm.c, * aout-target.h, * aout-tic30.c,
619 * binary.c, * bout.c, * coff-alpha.c, * coff-i386.c, * coff-i860.c,
620 * coff-i960.c, * coff-ia64.c, * coff-mips.c, * coff-or32.c,
621 * coff-ppc.c, * coff-rs6000.c, * coff-sh.c, * coff-tic30.c,
622 * coff-tic54x.c, * coff-x86_64.c, * coff64-rs6000.c, * coffcode.h,
623 * i386msdos.c, * i386os9k.c, * ieee.c, * ihex.c, * mach-o-target.c,
624 * mipsbsd.c, * mmo.c, * nlm-target.h, * oasys.c, * pdp11.c,
625 * pe-mips.c, * pef.c, * plugin.c, * ppcboot.c, * som.c, * srec.c,
626 * tekhex.c, * trad-core.c, * verilog.c, * versados.c, * vms-alpha.c,
627 * vms-lib.c, * xsym.c: Init match_priority field.
628 * configure: Regenerate.
629 * bfd-in2.h: Regenerate.
630
631 2011-06-04 H.J. Lu <hongjiu.lu@intel.com>
632
633 PR ld/12842
634 * elfcode.h (elf_object_p): Revert the last change.
635
636 2011-06-04 Alan Modra <amodra@gmail.com>
637
638 * archures.c (bfd_arch_get_compatible): If one arch is unknown,
639 return the other arch.
640 * elfcode.h (elf_object_p): Allow explicit match to generic ELF
641 target.
642
643 2011-06-03 Bertram Felgenhauer <bertram.felgenhauer@gmail.com>
644
645 PR ld/12682
646 * hash.c (higher_primer_number): Add more, small, prime numbers.
647 (bfd_hash_set_default_size): Likewise.
648
649 2011-06-02 Nick Clifton <nickc@redhat.com>
650
651 * coff-mcore.c: Fix spelling typo.
652 * coff-stgo32.c: Likewise.
653 * elf32-arm.c: Likewise.
654 * elf32-avr.c: Likewise.
655 * elf-m68hc1x.c: Likewise.
656 * elf32-mcore.c: Likewise.
657 * elf32-mep.c: Likewise.
658 * elf32-mt.c: Likewise.
659 * elf32-ppc.c: Likewise.
660 * elf32-xtensa.c: Likewise.
661 * elf64-ppc.c: Likewise.
662 * elfxx-mips.c: Likewise.
663 * netbsd.h: Likewise.
664 * nlmcode.h: Likewise.
665 * vms-alpha.c: Likewise.
666 * po/bfd.pot: Regenerate.
667 * po/SRC-POTFILES.in: Regenerate.
668
669 2011-06-01 DJ Delorie <dj@redhat.com>
670
671 * config.bfd: Add bfd_elf32_rx_be_ns_vec.
672 * target.c: Likewise.
673 * configure.in: Likewise.
674 * configure.in: Regenerate.
675 * elf32-rx.c: Add elf32-rx-be-ns target.
676 (rx_elf_object_p): Never allow the be-ns target by default,
677 only allow it if the user requests it.
678
679 2011-06-01 H.J. Lu <hongjiu.lu@intel.com>
680
681 * elf32-i386.c (elf_i386_size_dynamic_sections): Properly warn
682 relocation in readonly section in a shared object.
683 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
684
685 2011-05-31 Nick Clifton <nickc@redhat.com>
686
687 * archive.c (adjust_relative_path): Fix comment to prevent it
688 corrupting the auto-generated bfd.h.
689
690 2011-05-31 Paul Brook <paul@codesourcery.com>
691
692 * elf32-arm.c (elf32_arm_final_link_relocate): Only do bl conversion
693 for known functions.
694 (elf32_arm_swap_symbol_in): Only set ST_BRANCH_TO_ARM for function
695 symbols.
696
697 2011-05-31 Paul Brook <paul@codesourcery.com>
698
699 * elf32-arm.c (arm_stub_is_thumb): Add
700 arm_stub_long_branch_v4t_thumb_tls_pic.
701 (elf32_arm_final_link_relocate): TLS stubs are always ARM.
702 Handle Thumb stubs.
703
704 2011-05-27 Nick Clifton <nickc@redhat.com>
705
706 PR binutils/12710
707 * archive.c (_bfd_get_elt_at_filepos): Set correct error value if
708 unable to read a file pointed to by an entry in a thin archive.
709 (adjust_relative_path): Use lrealpath to canonicalize paths.
710 Handle the case where the reference path is above the current
711 path in the directory tree.
712
713 2011-05-26 H.J. Lu <hongjiu.lu@intel.com>
714
715 PR ld/12809
716 * elf64-x86-64.c (elf_x86_64_relocate_section): Handle
717 R_X86_64_TPOFF64 in executable.
718
719 2011-05-26 Alan Modra <amodra@gmail.com>
720
721 * elf-bfd.h (SYMBOL_REFERENCES_LOCAL): Remove most of comment.
722 * elflink.c (_bfd_elf_symbol_refs_local_p): Expand
723 local_protected comment.
724
725 2011-05-25 Tristan Gingold <gingold@adacore.com>
726
727 * configure.in (bfd_elf32_ia64_big_vec, bfd_elf32_ia64_hpux_big_vec)
728 (bfd_elf64_ia64_big_vec, bfd_elf64_ia64_hpux_big_vec)
729 (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_vms_vec): Add elfxx-ia64.lo
730 * Makefile.am (BFD64_BACKENDS): Add elfxx-ia64.lo
731 (BFD64_BACKENDS_CFILES): Add elfxx-ia64.c
732 (elf32-ia64.c): Created from elfnn-ia64.c
733 (elf64-ia64.c): Likewise.
734 * elfxx-ia64.h: New file.
735 * elfxx-ia64.c: Split with elfnn-ia64.c. Keep only the following
736 functions.Includes elfxx-ia64.h.
737 (elfNN_ia64_reloc): Renames to ia64_elf_reloc. Adjust error message.
738 (IA64_HOWTO): Adjust.
739 (lookup_howto): Renames to ia64_elf_lookup_howto. Make it public.
740 (elfNN_ia64_reloc_type_lookup): Renames to
741 ia64_elf_reloc_type_lookup. Make it public. Adjust calls.
742 (elfNN_ia64_reloc_name_lookup): Renames to
743 ia64_elf_reloc_name_lookup. Make it public.
744 (elfNN_ia64_relax_br): Renames to ia64_elf_relax_br. Make it public.
745 (elfNN_ia64_relax_brl): Renames to ia64_elf_relax_brl. Make it
746 public.
747 (elfNN_ia64_relax_ldxmov): Renames to ia64_elf_relax_ldxmov.
748 Move it and make it public. Move prototype to elfxx-ia64.h
749 (elfNN_ia64_install_value): Renames to ia64_elf_install_value.
750 Move prototype to elfxx-ia64.h
751 * elfnn-ia64.c: New file, split from elfxx-ia64.c.
752 (elfNN_ia64_info_to_howto): Adjust calls.
753 (elfNN_ia64_relax_section): Adjust calls.
754 (count_dyn_reloc): Fix typo.
755 (elfNN_ia64_relocate_section): Adjust calls.
756 (elfNN_ia64_finish_dynamic_symbol): Likewise.
757 (bfd_elfNN_bfd_reloc_type_lookup)
758 (bfd_elfNN_bfd_reloc_name_lookup): Adjust macros.
759 * configure: Regenerate.
760 * Makefile.in: Regenerate.
761
762 2011-05-23 DJ Delorie <dj@redhat.com>
763
764 * elf32-rx.c (rx_elf_object_p): When reading an RX object in, undo
765 the vma/lma swapping done in elf32_rx_modify_program_headers.
766
767 2011-05-23 Nick Clifton <nickc@redhat.com>
768
769 * elf-m10300.c (mn10300_elf_mkobject): New function.
770 (bfd_elf32_mkobject): Define.
771
772 2011-05-23 Alan Modra <amodra@gmail.com>
773
774 * elf-bfd.h: Comment typo fix.
775 * elf32-ppc.c (struct ppc_elf_dyn_relocs): Delete. Replace with
776 struct elf_dyn_relocs throughout.
777 * elf64-ppc.c (struct ppc_dyn_relocs): Likewise.
778
779 2011-05-23 Alan Modra <amodra@gmail.com>
780
781 * elf32-frv.c: Use info->callbacks->einfo throughout file in linker
782 functions rather than warning callback or _bfd_error_handler.
783 * elf32-ppc.c: Likewise.
784 * elf64-ppc.c: Likewise.
785 * elf32-ppc.c (ppc_elf_tls_optimize): Use %H in __tls_get_addr lost
786 arg error.
787 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
788
789 2011-05-23 Alan Modra <amodra@gmail.com>
790
791 PR 12763
792 * elf.c (assign_file_positions_for_load_sections): Set sh_offset for
793 .tbss, and page align same for all SHT_NOBITS sections.
794
795 2011-05-21 Alan Modra <amodra@gmail.com>
796
797 PR 12763
798 * elf.c (_bfd_elf_make_section_from_shdr): Set up TLS section LMAs
799 from PT_TLS header.
800 (_bfd_elf_map_sections_to_segments): Don't create a final PT_LOAD
801 segment if just for .tbss.
802 (assign_file_positions_for_load_sections): Don't report "can't
803 allocate in segment" errors for .tbss.
804 (assign_file_positions_for_non_load_sections): Don't set p_filesz
805 from SHT_NOBITS section filepos.
806
807 2011-05-20 Bernd Schmidt <bernds@codesourcery.com>
808
809 * elf32-tic6x.c (elf32_tic6x_howto_table): Add entries for
810 R_C6000_PCR_H16 and R_C6000_PCR_L16.
811 (elf32_tic6x_relocate_section): Handle them.
812
813 2011-05-18 Nick Clifton <nickc@redhat.com>
814
815 PR ld/12761
816 * elflink.c (elf_link_add_object_symbols): Process .gnu.warning
817 sections when building shared libraries.
818
819 2011-05-18 Rafał Krypa <r.krypa@samsung.com>
820
821 PR ld/12778
822 * elf32-arm.c (elf32_arm_gc_sweep_hook): Use the computed dynamic
823 reloc pointer.
824
825 2011-05-18 Tristan Gingold <gingold@adacore.com>
826
827 * xcofflink.c (xcoff_link_add_symbols): Handle C_DWARF symbols.
828 (xcoff_sweep): Always keep dwarf sections.
829 (xcoff_link_input_bfd): Handle dwarf symbols and sections.
830
831 2011-05-18 Tristan Gingold <gingold@adacore.com>
832
833 * libxcoff.h (struct xcoff_dwsect_name): New type.
834 (XCOFF_DWSECT_NBR_NAMES): New macro.
835 (xcoff_dwsect_names): Declare.
836 * coffcode.h (sec_to_styp_flags): Handle xcoff dwarf sections.
837 (styp_to_sec_flags): Ditto.
838 (coff_new_section_hook): Ditto.
839 (coff_slurp_symbol_table): Handle C_DWARF and C_INFO.
840 * coff-rs6000.c (xcoff_dwsect_name): New variable.
841
842 2011-05-17 Tomohiro Kashiwada <kikairoya@gmail.com>
843
844 PR ld/12759
845 * elf32-rx.c (ignore_lma): New variable.
846 (bfd_elf32_rx_set_target_flags): Add ignore_lma parameter.
847 (rx_modify_program_headers): Only copy the LMA into the VMA if
848 ignore_lma is true.
849
850 2011-05-17 Alan Modra <amodra@gmail.com>
851
852 PR ld/12760
853 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Adjust "notice" call.
854 * elflink.c (elf_link_add_object_symbols): Likewise.
855 * linker.c (_bfd_generic_link_add_one_symbol): Likewise.
856
857 2011-05-16 Alan Modra <amodra@gmail.com>
858
859 * linker.c (_bfd_generic_link_add_one_symbol): Don't init u.undef.weak.
860
861 2011-05-15 Richard Sandiford <rdsandiford@googlemail.com>
862
863 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Record both local and
864 global GOT entries for GOT_PAGE relocations against global symbols.
865
866 2011-05-13 Bernd Schmidt <bernds@codesourcery.com>
867
868 * config.bfd (tic6x-*-elf, tic6x-*-uclinux): New.
869 (tic6x-*-*): Replaced by these.
870 * elf32-tic6x.c (elf32_tic6x_set_osabi): New static function.
871 (elf32_tic6x_check_relocs): Create dynamic sections if -shared.
872 (elf_backend_relocs_compatible, elf_backend_post_process_headers):
873 Define.
874 (elf32_bed, TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, TARGET_BIG_SYM,
875 TARGET_BIG_NAME, ELF_OSABI): Redefine twice, and include
876 "elf32-target.h" two more times.
877 * configure.in: Handle bfd_elf32_tic6x_linux_be_vec,
878 bfd_elf32_tic6x_linux_le_vec, bfd_elf32_tic6x_elf_be_vec and
879 bfd_elf32_tic6x_elf_le_vec.
880 * configure: Regenerate.
881
882 2011-05-13 Jan Beulich <jbeulich@novell.com>
883
884 * config.bfd: Add targets x86_64-*-pe and x86_64-*-pep.
885
886 2011-05-12 Jan Kratochvil <jan.kratochvil@redhat.com>
887
888 * config.in: Regenerated.
889 * configure: Regenerated.
890 * configure.in: New tests for HAVE_PRPSINFO_T_PR_PID,
891 HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID and
892 HAVE_PSINFO32_T_PR_PID.
893 * elf.c (elfcore_grok_psinfo): Protect reading psinfo.pr_pid by
894 HAVE_PRPSINFO_T_PR_PID, HAVE_PRPSINFO32_T_PR_PID, HAVE_PSINFO_T_PR_PID
895 and HAVE_PSINFO32_T_PR_PID.
896 * hosts/x86-64linux.h (HAVE_PRPSINFO32_T_PR_PID): New redefinition.
897
898 2011-05-10 Jan Kratochvil <jan.kratochvil@redhat.com>
899
900 * elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and
901 32bit psinfo.
902 * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid.
903 * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
904
905 2011-05-09 Paul Brook <paul@codesourcery.com>
906
907 * bfd-in.h (elf32_tic6x_fix_exidx_coverage): Add prototype.
908 * bfd-in2.h: Regenerate.
909 * elf32-tic6x.c: Include limits.h.
910 (tic6x_unwind_edit_type, tic6x_unwind_table_edit,
911 _tic6x_elf_section_data): New.
912 (elf32_tic6x_section_data): Define.
913 (elf32_tic6x_new_section_hook): Allocate target specific data.
914 (elf32_tic6x_add_unwind_table_edit): New function.
915 (get_tic6x_elf_section_data, elf32_tic6x_adjust_exidx_size,
916 elf32_tic6x_insert_cantunwind_after, elf32_tic6x_add_low31,
917 elf32_tic6x_copy_exidx_entry): New functions.
918 (elf_backend_write_section): Define.
919
920 2011-05-09 Paul Brook <paul@codesourcery.com>
921
922 * elf32-tic6x.c (is_tic6x_elf_unwind_section_name,
923 elf32_tic6x_fake_sections): New functions.
924 (elf_backend_fake_sections): Define.
925
926 2011-05-09 Paul Brook <paul@codesourcery.com>
927
928 * elf32-tic6x.c (elf32_tic6x_gc_mark_extra_sections): New function.
929 (elf_backend_gc_mark_extra_sections): Define.
930
931 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
932
933 PR ld/12365
934 * cofflink.c (bfd_coff_link_input_bfd): Check for and warn about
935 references to symbols defined in discarded sections.
936
937 2011-05-07 Dave Korn <dave.korn.cygwin@gmail.com>
938
939 PR ld/12365
940 * coffgen.c (coff_write_symbol): Assume input section is its own
941 output section if output_section member not set.
942 (coff_write_alien_symbol): Likewise.
943
944 2011-05-07 H.J. Lu <hongjiu.lu@intel.com>
945
946 PR ld/12730
947 * elf.c (_bfd_elf_section_offset): Check SEC_ELF_REVERSE_COPY.
948
949 * elflink.c (elf_link_input_bfd): Reverse copy .ctors/.dtors
950 sections if needed.
951
952 * section.c (SEC_ELF_REVERSE_COPY): New.
953 * bfd-in2.h: Regenerated.
954
955 2011-05-07 Anders Kaseorg <andersk@ksplice.com>
956
957 PR 12739
958 * libbfd.c (bfd_get_8, bfd_get_signed_8): Use const cast.
959 * bfd-in2.h: Regenerate.
960
961 2011-05-06 Tristan Gingold <gingold@adacore.com>
962
963 * vms-alpha.c (evax_section_flags): Remove SEC_IN_MEMORY.
964 (_bfd_vms_slurp_egsd): Rename old_flags to vms_flags. Handle
965 any code section. Add comments.
966 (alpha_vms_object_p): Use void * instead of PTR.
967 (alpha_vms_create_eisd_for_section): Fix test for setting DZRO.
968 (build_module_list): Guard against no DST section. Add comments.
969 (alpha_vms_link_output_symbol): Discard undefined symbols.
970 (alpha_vms_get_section_contents): Simply memcpy if the section was
971 already loaded. Fix typo.
972 (vms_new_section_hook): Use void * instead of PTR.
973 (vms_alpha_vec): Ditto.
974
975 2011-05-06 Richard Sandiford <richard.sandiford@linaro.org>
976
977 * elf32-arm.c (cortex_a8_erratum_scan): If the stub is a Thumb
978 branch to a PLT entry, redirect it to the PLT's Thumb entry point.
979
980 2011-05-05 Bernd Schmidt <bernds@codesourcery.com>
981
982 * elf32-tic6x.c (elf32_tic6x_final_link): New function.
983 (elf32_tic6x_merge_attributes): Do not warn for PID or PIC
984 mismatch. Choose the lower of the two values.
985 (bfd_elf32_bfd_final_link): New macro.
986
987 2011-04-28 Tristan Gingold <gingold@adacore.com>
988
989 * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Adjust for x_file.
990 (bfd_xcoff_swap_aux_out): Ditto.
991 * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Ditto.
992 (bfd_xcoff64_swap_aux_out): Ditto.
993
994 2011-05-04 Alan Modra <amodra@gmail.com>
995
996 PR ld/12727
997 * elf64-ppc.c (ppc_build_one_stub <ppc_sub_plt_call>): Clear
998 was_undefined on dot-symbols.
999
1000 2011-05-03 Paul Brook <paul@codesourcery.com>
1001
1002
1003 * elf32-tic6x.c (elf32_tic6x_howto_table,
1004 elf32_tic6x_howto_table_rel, (elf32_tic6x_gc_sweep_hook,
1005 elf32_tic6x_relocate_section, elf32_tic6x_check_relocs):
1006 Add R_C6000_EHTYPE.
1007
1008 2011-05-01 Alan Modra <amodra@gmail.com>
1009
1010 PR ld/12718
1011 * elf32-i386.c (elf_i386_check_relocs): Ensure dynobj set before
1012 creating ifunc sections.
1013 * elf64-x86-64.c (elf_x86_64_check_relocs): Likewise.
1014
1015 2011-04-30 H.J. Lu <hongjiu.lu@intel.com>
1016
1017 * elf64-x86-64.c (elf_x86_64_merge_symbol): Correct parameter
1018 names.
1019
1020 2011-04-28 Tom Tromey <tromey@redhat.com>
1021
1022 * bfdio.c (memory_bstat): Pass correct size to memset.
1023
1024 2011-04-28 Mike Frysinger <vapier@gentoo.org>
1025
1026 * dwarf2.c (dwarf_debug_sections): Mark const.
1027 * elf.c (special_sections): Likewise.
1028 * libbfd-in.h (dwarf_debug_sections): Likewise.
1029 * libbfd.h: Regenerate.
1030
1031 2011-04-26 Kai Tietz <ktietz@redhat.com>
1032
1033 * coffcode.h (sec_to_styp_flags): Allow linkonce for
1034 debugging sections.
1035
1036 2011-04-26 Tristan Gingold <gingold@adacore.com>
1037
1038 * coff64-rs6000.c: Convert to ISO-C. Remove PARAMS and PTR macros.
1039
1040 2011-04-24 Alan Modra <amodra@gmail.com>
1041
1042 PR ld/12365
1043 PR ld/12696
1044 * coff-aux.c (coff_m68k_aux_link_add_one_symbol): Update "notice" call.
1045 * linker.c (_bfd_link_hash_newfunc): Clear bitfields.
1046 (_bfd_generic_link_add_one_symbol): Update "notice" call.
1047 * elflink.c (_bfd_elf_merge_symbol): Don't skip weak redefs when
1048 it is a redef of an IR symbol in a real BFD.
1049
1050 2011-04-22 H.J. Lu <hongjiu.lu@intel.com>
1051
1052 * elf32-i386.c (elf_i386_readonly_dynrelocs): Warn relocation
1053 in readonly section in a shared object.
1054 (elf_i386_size_dynamic_sections): Likewise.
1055 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1056 (elf_x86_64_size_dynamic_sections): Likewise.
1057
1058 2011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1059
1060 PR ld/12694
1061 * elf32-i386.c (elf_i386_readonly_dynrelocs): Skip local IFUNC
1062 symbols.
1063 * elf64-x86-64.c (elf_x86_64_readonly_dynrelocs): Likewise.
1064
1065 2011-04-21 H.J. Lu <hongjiu.lu@intel.com>
1066
1067 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Return false
1068 on dynamic symbol error.
1069 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1070
1071 2011-04-20 Tristan Gingold <gingold@adacore.com>
1072
1073 * config.bfd (alpha*-*-*vms*, ia64*-*-*vms*): Define targ_selvecs.
1074
1075 2011-04-20 Alan Modra <amodra@gmail.com>
1076
1077 * hash.c (bfd_default_hash_table_size): Make it an unsigned long.
1078 (bfd_hash_table_init_n): Overflow checking.
1079 (bfd_hash_set_default_size): Return current size. Take unsigned long
1080 arg. Add 65537 to hash_size primes.
1081 * bfd-in.h (bfd_hash_set_default_size): Update prototype.
1082 * bfd-in2.h: Regenerate.
1083
1084 2011-04-20 Jan Kratochvil <jan.kratochvil@redhat.com>
1085
1086 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Fix +1 overrun of
1087 memmove elements.
1088
1089 2011-04-20 Alan Modra <amodra@gmail.com>
1090
1091 * libbfd.c (bfd_log2): Do return rounded up value.
1092 * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Replace bfd_log2
1093 call with expanded old round down version of the function.
1094
1095 * archive.c (_bfd_get_elt_at_filepos): Don't release n_nfd.
1096 * elflink.c (elf_link_add_object_symbols): Delete redundant code.
1097
1098 2011-04-20 Alan Modra <amodra@gmail.com>
1099
1100 PR ld/12365
1101 * elfcode.h (elf_slurp_symbol_table): Put common plugin IR symbols
1102 in their own common section.
1103 * elflink.c (elf_link_add_object_symbols): Likewise.
1104 * linker.c (generic_link_check_archive_element): Don't lose flags
1105 if common section is pre-existing.
1106 (_bfd_generic_link_add_one_symbol): Likewise.
1107
1108 2011-04-20 Alan Modra <amodra@gmail.com>
1109
1110 PR ld/12365
1111 * elflink.c (_bfd_elf_merge_symbol): Update multiple_common calls.
1112 * linker.c (_bfd_generic_link_add_one_symbol): Likewise. Call
1113 multiple_definition regardless of allow_multiple_definition.
1114 * simple.c (simple_dummy_multiple_definition): Update.
1115 * xcofflink.c (xcoff_link_add_symbols): Update multiple_definition
1116 calls.
1117
1118 2011-04-18 Tristan Gingold <gingold@adacore.com>
1119
1120 * coff-rs6000.c: Convert to ISO-C. Remove PARAMS macro.
1121
1122 2011-04-18 Alan Modra <amodra@gmail.com>
1123
1124 PR ld/12365
1125 PR ld/12672
1126 * bfd.c (BFD_PLUGIN): Define.
1127 (BFD_FLAGS_SAVED, BFD_FLAGS_FOR_BFD_USE_MASK): Add BFD_PLUGIN.
1128 * bfd-in2.h: Regenerate.
1129 * elflink.c (elf_link_output_extsym): Strip undefined plugin syms.
1130 * opncls.c (bfd_make_readable): Don't lose original bfd flags.
1131
1132 2011-04-17 Jan Kratochvil <jan.kratochvil@redhat.com>
1133
1134 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Do not check for
1135 SEC_LOAD.
1136
1137 2011-04-15 Sergio Durigan Junior <sergiodj@redhat.com>
1138
1139 * elf-bfd.h (struct sdt_note): New struct.
1140 (struct elf_obj_tdata) <sdt_note_head>: New field.
1141 * elf.c (elfobj_grok_stapsdt_note_1): New function.
1142 (elfobj_grok_stapsdt_note): Likewise.
1143 (elf_parse_notes): Added code to treat SystemTap note
1144 sections.
1145
1146 2011-04-12 Richard Henderson <rth@redhat.com>
1147
1148 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Do not
1149 exclude empty .got sections.
1150
1151 2011-04-11 H.J. Lu <hongjiu.lu@intel.com>
1152
1153 * elf32-i386.c (elf_i386_reloc_type_lookup): Fix the out of bound
1154 array access for BFD_RELOC_386_IRELATIVE.
1155
1156 2011-04-11 Bernd Schmidt <bernds@codesourcery.com>
1157
1158 * elf32-tic6x.c (elf32_tic6x_check_relocs): Initialize pc_count field.
1159
1160 2011-04-11 Mark Wielaard <mjw@redhat.com>
1161
1162 PR 10549
1163 * elf-bfd.h (has_ifunc_symbols): Renamed to has_gnu_symbols.
1164 (has_gnu_symbols): Renamed from has_ifunc_symbols.
1165 * elf.c (_bfd_elf_set_osabi): Use new has_gnu_symbols name.
1166 * elf32-arm.c (elf32_arm_add_symbol_hook): Set has_gnu_symbols
1167 also if STB_GNU_UNIQUE symbol binding was seen.
1168 * elf32-i386.c (elf_i386_add_symbol_hook): Likewise.
1169 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
1170 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
1171 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
1172 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
1173 * elf64-x86-64.c (elf_x86_64_add_symbol_hook): Likewise.
1174
1175 2011-04-11 Alan Modra <amodra@gmail.com>
1176
1177 * bfd-in.h (bfd_get_section_limit): Don't use rawsize with output
1178 sections.
1179 * libbfd.c (_bfd_generic_get_section_contents): Likewise.
1180 (_bfd_generic_get_section_contents_in_window): Likewise.
1181 * section.c (bfd_get_section_contents): Likewise.
1182 * compress.c (bfd_get_full_section_contents): Likewise.
1183 * elf32-rx.c (rx_final_link): Ignore rawsize.
1184 * elf32-microblaze.c (microblaze_elf_relocate_section): Use correct
1185 bfd with bfd_get_section_limit.
1186 * elfxx-ia64.c (elfNN_ia64_choose_gp): Add "final" parameter. Use
1187 os->size during final link. Update callers.
1188 * bfd-in2.h: Regenerate.
1189
1190 2011-04-10 Richard Sandiford <rdsandiford@googlemail.com>
1191
1192 PR ld/12637
1193 * elfxx-mips.c (mips_elf_merge_got_with): Use arg->global_count
1194 as the number of global entries when merging with the primary GOT.
1195
1196 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1197
1198 * elf32-i386.c: Update copyright year.
1199 * elf64-x86-64.c: Likewise.
1200
1201 2011-04-09 Kai Tietz <ktietz@redhat.com>
1202
1203 * peXXigen.c (_bfd_XXi_final_link_postscripte): Sort pdata in temporary
1204 buffer and use rawsize for sorting.
1205 * coffcode.h (coff_compute_section_file_positions): Set rawsize
1206 before doing alignment.
1207
1208 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1209
1210 * elf32-i386.c (elf_i386_relocate_section): Return relocation
1211 error on unsupported relocation.
1212 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1213
1214 2011-04-09 H.J. Lu <hongjiu.lu@intel.com>
1215
1216 PR binutils/12657
1217 * hosts/x86-64linux.h (elf_prstatus32): Replace __pid_t with
1218 pid_t.
1219
1220 2011-04-08 H.J. Lu <hongjiu.lu@intel.com>
1221
1222 PR ld/12654
1223 * elf32-i386.c (elf_i386_relocate_section): Check !executable
1224 instead of shared for R_386_TLS_LDO_32.
1225
1226 2011-04-08 Tristan Gingold <gingold@adacore.com>
1227
1228 * Makefile.am (SOURCE_HFILES): Remove xcoff-target.h
1229 * coff-pmac: Remove
1230 * xcoff-target.h: Remove
1231 * Makefile.in: Regenerate.
1232
1233 2011-04-07 Cary Coutant <ccoutant@google.com>
1234
1235 * dwarf2.c (scan_unit_for_symbols): Check for DW_AT_specification.
1236
1237 2011-04-07 Paul Brook <paul@codesourcery.com>
1238
1239 * elf32-tic6x.c (elf32_tic6x_howto_table): R_C6000_PREL31 is
1240 pc-relative.
1241 (elf32_tic6x_howto_table_rel): Ditto.
1242 (elf32_tic6x_relocate_section): Implement R_C6000_PREL31.
1243 (elf32_tic6x_check_relocs): Ditto.
1244
1245 2011-04-06 Joseph Myers <joseph@codesourcery.com>
1246
1247 * config.bfd (thumb-*-oabi): Don't handle in list of obsolete
1248 targets.
1249 (strongarm*, thumb*, xscale*): Remove architectures.
1250 (strongarm-*-kaos*, thumb-*-coff, thumb-*-elf, thumb-epoc-pe*,
1251 thumb-*-pe*, strongarm-*-elf, strongarm-*-coff, xscale-*-elf,
1252 xscale-*-coff): Remove targets.
1253
1254 2011-04-01 Tristan Gingold <gingold@adacore.com>
1255
1256 * elfxx-ia64.c: include bfd_stdint.h
1257
1258 2011-03-31 Jan Kratochvil <jan.kratochvil@redhat.com>
1259
1260 * elf32-tic6x.c (elf32_tic6x_relocate_section): Remove unused variable
1261 dynobj and its initialization.
1262
1263 2011-03-31 Tristan Gingold <gingold@adacore.com>
1264
1265 * makefile.vms (DEFS): Add HAVE_bfd_elf64_ia64_vms_vec.
1266 * configure.com: Set BFD_HOST_64BIT_LONG_LONG and
1267 BFD_HOST_LONG_LONG to 1.
1268
1269 2011-03-31 Tristan Gingold <gingold@adacore.com>
1270
1271 * vms-alpha.c (vms_get_remaining_object_record): Fix dec-c warning.
1272 (_bfd_vms_write_etir): Ditto.
1273 (_bfd_vms_slurp_etir): Avoid to use intptr_t
1274 * configure.com: Generate bfd_stdint.h
1275
1276 2011-03-31 Bernd Schmidt <bernds@codesourcery.com>
1277
1278 * elf32-tic6x.h (struct elf32_tic6x_params): New.
1279 (elf32_tic6x_setup): Declare.
1280 * elf32-tic6x.c: Include <limits.h>.
1281 (ELF_DYNAMIC_LINKER, DEFAULT_STACK_SIZE, PLT_ENTRY_SIZE): Define.
1282 (struct elf32_tic6x_link_hash_table, struct elf32_link_hash_entry):
1283 New structures.
1284 (elf32_tic6x_link_hash_table, is_tic6x_elf): New macros.
1285 (tic6x_elf_scom_section, tic6x_elf_scom_symbol,
1286 tic6x_elf_scom_symbol_ptr): New static variables.
1287 (elf32_tic6x_howto_table, elf32_tic6x_howto_table_rel,
1288 elf32_tic6x_reloc_map): Add R_C6000_JUMP_SLOT, R_C6000_EHTYPE,
1289 R_C6000_PCR_H16 and R_C6000_PCR_L16.
1290 (elf32_tic6x_link_hash_newfunc, elf32_tic6x_link_hash_table_create,
1291 elf32_tic6x_link_hash_table_free, elf32_tic6x_setup,
1292 elf32_tic6x_using_dsbt, elf32_tic6x_install_rela,
1293 elf32_tic6x_create_dynamic_sections, elf32_tic6x_make_got_dynreloc,
1294 elf32_tic6x_finish_dynamic_symbol, elf32_tic6x_gc_sweep_hook,
1295 elf32_tic6x_adjust_dynamic_symbol): New static functions.
1296 (elf32_tic6x_relocate_section): For R_C6000_PCR_S21, convert branches
1297 to weak symbols as required by the ABI.
1298 Handle GOT and DSBT_INDEX relocs, and copy relocs to the output file
1299 as needed when generating DSBT output.
1300 (elf32_tic6x_check_relocs, elf32_tic6x_add_symbol_hook,
1301 elf32_tic6x_symbol_processing, elf32_tic6x_section_from_bfd_section,
1302 elf32_tic6x_allocate_dynrelocs, elf32_tic6x_size_dynamic_sections,
1303 elf32_tic6x_always_size_sections, elf32_tic6x_modify_program_headers,
1304 elf32_tic6x_finish_dynamic_sections, elf32_tic6x_plt_sym_val,
1305 elf32_tic6x_copy_private_data, elf32_tic6x_link_omit_section_dynsym):
1306 New static functions.
1307 (ELF_MAXPAGESIZE): Define to 0x1000.
1308 (bfd_elf32_bfd_copy_private_bfd_data,
1309 bfd_elf32_bfd_link_hash_table_create,
1310 bfd_elf32_bfd_link_hash_table_free, elf_backend_can_refcount,
1311 elf_backend_want_got_plt, elf_backend_want_dynbss,
1312 elf_backend_plt_readonly, elf_backend_got_header_size,
1313 elf_backend_gc_sweep_hook, elf_backend_modify_program_headers,
1314 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
1315 elf_backend_check_relocs, elf_backend_add_symbol_hook,
1316 elf_backend_symbol_processing, elf_backend_link_output_symbol_hook,
1317 elf_backend_section_from_bfd_section,
1318 elf_backend_finish_dynamic_symbol, elf_backend_always_size_sections,
1319 elf32_tic6x_size_dynamic_sections, elf_backend_finish_dynamic_sections,
1320 elf_backend_omit_section_dynsym, elf_backend_plt_sym_val): Define.
1321
1322 * bfd/reloc.c (BFD_RELOC_C6000_JUMP_SLOT, BFD_RELOC_C6000_EHTYPE,
1323 BFD_RELOC_C6000_PCR_H16, BFD_RELOC_C6000_PCR_S16): Add.
1324 * bfd/bfd-in2.h: Regenerate.
1325 * bfd/libbfd.h: Regenerate.
1326 * config.bfd: Accept tic6x-*-* instead of tic6x-*-elf.
1327
1328 2011-03-31 Tristan Gingold <gingold@adacore.com>
1329
1330 * coffcode.h (coff_slurp_symbol_table): Silently discard C_NULL
1331 entry on xcoff when value is C_NULL_VALUE.
1332
1333 2011-03-31 Tristan Gingold <gingold@adacore.com>
1334
1335 * libcoff-in.h (exec_hdr): Remove.
1336 * libcoff.h: Regenerate.
1337
1338 2011-03-30 Nick Clifton <nickc@redhat.com>
1339
1340 * po/da.po: Updated Danish translation.
1341
1342 2011-03-29 Richard Henderson <rth@redhat.com>
1343
1344 * elf64-alpha.c (elf64_alpha_gc_mark_hook): New.
1345 (elf64_alpha_gc_sweep_hook): New.
1346 (elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook): New.
1347 (elf_backend_can_gc_sections): New.
1348
1349 2011-03-26 John Marino <binutils@marino.st>
1350
1351 * config.bfd: Add x86_64-*-dragonfly*, fix i386-*-dragonfly*.
1352 * configure.in: Delete unused bfd_elf32_i386_dragonfly_vec.
1353 * configure: Regenerate.
1354
1355 2011-03-25 Michael Snyder <msnyder@vmware.com>
1356
1357 * coffcode.h (coff_set_alignment_hook): Check return of bfd_seek.
1358
1359 2011-03-25 Tristan Gingold <gingold@adacore.com>
1360
1361 * vms-alpha.c (_bfd_vms_find_nearest_dst_line): Allow the use
1362 of find_nearest_line on object files.
1363
1364 2011-03-25 Tristan Gingold <gingold@adacore.com>
1365
1366 * vms-alpha.c (evax_section_flags): Make $CODE$ section read-only.
1367 Minor reordering.
1368 (alpha_vms_create_eisd_for_section): Make code sections read-only.
1369
1370 2011-03-24 Alan Modra <amodra@gmail.com>
1371
1372 * elf32-ppc.c (ppc_elf_tls_optimize): Catch more cases where
1373 old-style __tls_get_addr calls without marker relocs don't match
1374 their arg setup insn one for one. If such mismatches are found
1375 report the reloc and don't do any tls optimization.
1376 * elf64-ppc.c (ppc64_elf_tls_optimize): Likewise.
1377
1378 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
1379
1380 * bfd-in2.h: Regenerate.
1381
1382 2011-03-22 Eric B. Weddington <eric.weddington@atmel.com>
1383
1384 * archures.c: Add AVR XMEGA architecture information.
1385 * cpu-avr.c (arch_info_struct): Likewise.
1386 * elf32-avr.c (bfd_elf_avr_final_write_processing): Likewise.
1387 (elf32_avr_object_p): Likewise.
1388
1389 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1390
1391 * reloc.c (BFD_RELOC_ARM_IRELATIVE): New relocation.
1392 * bfd-in2.h: Regenerate.
1393 * elf32-arm.c (elf32_arm_howto_table_2): Rename existing definition
1394 to elf32_arm_howto_table_3 and replace with a single R_ARM_IRELATIVE
1395 entry.
1396 (elf32_arm_howto_from_type): Update accordingly.
1397 (elf32_arm_reloc_map): Map BFD_RELOC_ARM_IRELATIVE to R_ARM_IRELATIVE.
1398 (elf32_arm_reloc_name_lookup): Handle elf32_arm_howto_table_3.
1399 (arm_plt_info): New structure, split out from elf32_arm_link_hash_entry
1400 with an extra noncall_refcount field.
1401 (arm_local_iplt_info): New structure.
1402 (elf_arm_obj_tdata): Add local_iplt.
1403 (elf32_arm_local_iplt): New accessor macro.
1404 (elf32_arm_link_hash_entry): Replace plt_thumb_refcount,
1405 plt_maybe_thumb_refcount and plt_got_offset with an arm_plt_info.
1406 Change tls_type to a bitfield and add is_iplt.
1407 (elf32_arm_link_hash_newfunc): Update accordingly.
1408 (elf32_arm_allocate_local_sym_info): New function.
1409 (elf32_arm_create_local_iplt): Likewise.
1410 (elf32_arm_get_plt_info): Likewise.
1411 (elf32_arm_plt_needs_thumb_stub_p): Likewise.
1412 (elf32_arm_get_local_dynreloc_list): Likewise.
1413 (create_ifunc_sections): Likewise.
1414 (elf32_arm_copy_indirect_symbol): Update after the changes to
1415 elf32_arm_link_hash_entry. Assert the is_iplt has not yet been set.
1416 (arm_type_of_stub): Add an st_type argument. Use elf32_arm_get_plt_info
1417 to get PLT information. Assert that all STT_GNU_IFUNC references
1418 are turned into PLT references.
1419 (arm_build_one_stub): Pass the symbol type to
1420 elf32_arm_final_link_relocate.
1421 (elf32_arm_size_stubs): Pass the symbol type to arm_type_of_stub.
1422 (elf32_arm_allocate_irelocs): New function.
1423 (elf32_arm_add_dynreloc): In static objects, use .rel.iplt for
1424 all R_ARM_IRELATIVE.
1425 (elf32_arm_allocate_plt_entry): New function.
1426 (elf32_arm_populate_plt_entry): Likewise.
1427 (elf32_arm_final_link_relocate): Add an st_type parameter.
1428 Set srelgot to null for static objects. Use separate variables
1429 to record which st_value and st_type should be used when generating
1430 a dynamic relocation. Use elf32_arm_get_plt_info to find the
1431 symbol's PLT information, setting has_iplt_entry, splt,
1432 plt_offset and gotplt_offset accordingly. Check whether
1433 STT_GNU_IFUNC symbols should resolve to an .iplt entry, and change
1434 the relocation target accordingly. Broaden assert to include
1435 .iplts. Don't set sreloc for static relocations. Assert that
1436 we only generate dynamic R_ARM_RELATIVE relocations for R_ARM_ABS32
1437 and R_ARM_ABS32_NOI. Generate R_ARM_IRELATIVE relocations instead
1438 of R_ARM_RELATIVE relocations if the target is an STT_GNU_IFUNC
1439 symbol. Pass the symbol type to arm_type_of_stub. Conditionally
1440 resolve GOT references to the .igot.plt entry.
1441 (elf32_arm_relocate_section): Update the call to
1442 elf32_arm_final_link_relocate.
1443 (elf32_arm_gc_sweep_hook): Use elf32_arm_get_plt_info to get PLT
1444 information. Treat R_ARM_REL32 and R_ARM_REL32_NOI as call
1445 relocations in shared libraries and relocatable executables.
1446 Count non-call PLT references. Use elf32_arm_get_local_dynreloc_list
1447 to get the list of dynamic relocations for a local symbol.
1448 (elf32_arm_check_relocs): Always create ifunc sections. Set isym
1449 at the same time as setting h. Use elf32_arm_allocate_local_sym_info
1450 to allocate local symbol information. Treat R_ARM_REL32 and
1451 R_ARM_REL32_NOI as call relocations in shared libraries and
1452 relocatable executables. Record PLT information for local
1453 STT_GNU_IFUNC functions as well as global functions. Count
1454 non-call PLT references. Use elf32_arm_get_local_dynreloc_list
1455 to get the list of dynamic relocations for a local symbol.
1456 (elf32_arm_adjust_dynamic_symbol): Handle STT_GNU_IFUNC symbols.
1457 Don't remove STT_GNU_IFUNC PLTs unless all references have been
1458 removed. Update after the changes to elf32_arm_link_hash_entry.
1459 (allocate_dynrelocs_for_symbol): Decide whether STT_GNU_IFUNC PLT
1460 entries should live in .plt or .iplt. Check whether the .igot.plt
1461 and .got entries can be combined. Use elf32_arm_allocate_plt_entry
1462 to allocate .plt and .(i)got.plt entries. Detect which .got
1463 entries will need R_ARM_IRELATIVE relocations and use
1464 elf32_arm_allocate_irelocs to allocate them. Likewise other
1465 non-.got dynamic relocations.
1466 (elf32_arm_size_dynamic_sections): Allocate .iplt, .igot.plt
1467 and dynamic relocations for local STT_GNU_IFUNC symbols.
1468 Check whether the .igot.plt and .got entries can be combined.
1469 Detect which .got entries will need R_ARM_IRELATIVE relocations
1470 and use elf32_arm_allocate_irelocs to allocate them. Use stashed
1471 section pointers intead of strcmp checks. Handle iplt and igotplt.
1472 (elf32_arm_finish_dynamic_symbol): Use elf32_arm_populate_plt_entry
1473 to fill in .plt, .got.plt and .rel(a).plt entries. Point
1474 STT_GNU_IFUNC symbols at an .iplt entry if non-call relocations
1475 resolve to it.
1476 (elf32_arm_output_plt_map_1): New function, split out from
1477 elf32_arm_output_plt_map. Handle .iplt entries. Use
1478 elf32_arm_plt_needs_thumb_stub_p.
1479 (elf32_arm_output_plt_map): Call it.
1480 (elf32_arm_output_arch_local_syms): Add mapping symbols for
1481 local .iplt entries.
1482 (elf32_arm_swap_symbol_in): Handle Thumb STT_GNU_IFUNC symbols.
1483 (elf32_arm_swap_symbol_out): Likewise.
1484 (elf32_arm_add_symbol_hook): New function.
1485 (elf_backend_add_symbol_hook): Define for all targets.
1486
1487 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1488
1489 * elf-bfd.h (elf_link_hash_entry): Add target_internal.
1490 * elf.c (swap_out_syms): Set st_target_internal for each
1491 Elf_Internal_Sym.
1492 * elfcode.h (elf_swap_symbol_in): Likewise.
1493 * elf32-i370.c (i370_elf_finish_dynamic_sections): Likewise.
1494 * elf32-sh-symbian.c (sh_symbian_relocate_section): Likewise.
1495 * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
1496 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Likewise.
1497 * elflink.c (elf_link_output_extsym): Likewise.
1498 (bfd_elf_final_link): Likewise.
1499 (elf_link_add_object_symbols): Copy st_target_internal
1500 to the hash table if we see a definition.
1501 (_bfd_elf_copy_link_hash_symbol_type): Copy target_internal.
1502 * elf32-arm.c (elf32_arm_stub_hash_entry): Replace st_type with
1503 a branch_type field.
1504 (a8_erratum_fix, a8_erratum_reloc): Likewise.
1505 (arm_type_of_stub): Replace actual_st_type with an
1506 actual_branch_type parameter.
1507 (arm_build_one_stub): Use branch types rather than st_types to
1508 determine the type of branch.
1509 (cortex_a8_erratum_scan): Likewise.
1510 (elf32_arm_size_stubs): Likewise.
1511 (bfd_elf32_arm_process_before_allocation): Likewise.
1512 (allocate_dynrelocs_for_symbol): Likewise.
1513 (elf32_arm_finish_dynamic_sections): Likewise.
1514 (elf32_arm_final_link_relocate): Replace sym_flags parameter with
1515 a branch_type parameter.
1516 (elf32_arm_relocate_section): Update call accordingly.
1517 (elf32_arm_adjust_dynamic_symbol): Don't check STT_ARM_TFUNC.
1518 (elf32_arm_output_map_sym): Initialize st_target_internal.
1519 (elf32_arm_output_stub_sym): Likewise.
1520 (elf32_arm_symbol_processing): Delete.
1521 (elf32_arm_swap_symbol_in): Convert STT_ARM_TFUNCs into STT_FUNCs.
1522 Use st_target_internal to record the branch type.
1523 (elf32_arm_swap_symbol_out): Use st_target_internal to test for
1524 Thumb functions.
1525 (elf32_arm_is_function_type): Delete.
1526 (elf_backend_symbol_processing): Likewise.
1527 (elf_backend_is_function_type): Likewise.
1528
1529 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1530
1531 * elf32-arm.c (elf32_arm_check_relocs): Always assign a dynobj.
1532 (elf32_arm_finish_dynamic_sections): Move sgot != NULL assertion
1533 into the PLT block.
1534
1535 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1536
1537 * elf32-arm.c (elf32_arm_check_relocs): Use call_reloc_p,
1538 may_need_local_target_p and may_become_dynamic_p to classify
1539 the relocation type. Don't check info->symbolic or h->def_regular
1540 when deciding whether to record a potential dynamic reloc.
1541 Don't treat potential dynamic relocs as PLT references.
1542 (elf32_arm_gc_sweep_hook): Update to match. Assert that we don't
1543 try to make the PLT reference count go negative.
1544
1545 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1546
1547 * elf32-arm.c (elf32_arm_final_link_relocate): Always fill in the
1548 GOT entry here, rather than leaving it to finish_dynamic_symbol.
1549 Only create a dynamic relocation for local references if
1550 info->shared.
1551 (allocate_dynrelocs_for_symbol): Update dynamic relocation
1552 allocation accordingly.
1553 (elf32_arm_finish_dynamic_symbol): Don't initialise the GOT entry here.
1554
1555 2011-03-14 Richard Sandiford <richard.sandiford@linaro.org>
1556
1557 * elf32-arm.c (elf32_arm_allocate_dynrelocs): New function.
1558 (elf32_arm_add_dynreloc): Likewise.
1559 (elf32_arm_adjust_dynamic_symbol): Use elf32_arm_allocate_dynrelocs
1560 to allocate dynamic relocations.
1561 (elf32_arm_size_dynamic_sections): Likewise.
1562 (allocate_dynrelocs): Likewise. Rename to
1563 allocate_dynrelocs_for_symbol.
1564 (elf32_arm_final_link_relocate): Use elf32_arm_add_dynreloc to
1565 create dynamic relocations.
1566 (elf32_arm_finish_dynamic_symbol): Likewise.
1567
1568 2011-03-12 H.J. Lu <hongjiu.lu@intel.com>
1569
1570 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
1571 x32 GD->IE and GD->LE transitions.
1572 (elf_x86_64_relocate_section): Supprt TLS x32 GD->IE, GD->LE
1573 and LD->LE transitions.
1574
1575 2011-03-10 Alan Modra <amodra@gmail.com>
1576
1577 * elf64-ppc.c (ppc64_elf_relocate_section): Provide section/offset
1578 for LO_DS error message and correct multiple.
1579
1580 2011-03-10 Alan Modra <amodra@gmail.com>
1581
1582 * elf64-ppc.c (bfd_elf64_bfd_link_just_syms): Define.
1583 (ppc64_elf_link_just_syms): New function.
1584 (opd_entry_value): Don't assume big-endian host.
1585 (get_r2off): New function.
1586 (ppc_build_one_stub, ppc_size_one_stub): Use it here.
1587
1588 2011-03-06 Michael Snyder <msnyder@vmware.com>
1589
1590 * compress.c (bfd_compress_section_contents): Check for out of mem.
1591
1592 * elf64-x86-64.c (elf_x86_64_relocate_section): Document
1593 that case statement falls through intentionally.
1594
1595 * elf32-i386.c (elf_i386_relocate_section): Document fall through.
1596
1597 2011-03-04 Alan Modra <amodra@gmail.com>
1598
1599 * archive.c (bsd_write_armap): Don't call stat in deterministic
1600 mode, and don't use st_mtime if stat returns error.
1601
1602 2011-03-03 Michael Snyder <msnyder@vmware.com>
1603
1604 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove dead code.
1605
1606 * coff-x86_64.c (coff_amd64_rtype_to_howto): Fencepost error.
1607
1608 * aoutx.h (aout_final_link): Use sizeof int not sizeof int*.
1609 (aout_link_write_other_symbol): Missing break statement.
1610
1611 * dwarf2.c (scan_unit_for_symbols): Stop memory leak.
1612
1613 * archive.c (_bfd_slurp_extended_name_table): Fail if bfd_seek fails.
1614
1615 2011-03-03 H.J. Lu <hongjiu.lu@intel.com>
1616
1617 * elf64-x86-64.c (elf_x86_64_check_tls_transition): Supprt TLS
1618 x32 IE->LE transition.
1619 (elf_x86_64_relocate_section): Likewise.
1620
1621 2011-03-02 Bernd Schmidt <bernds@codesourcery.com>
1622
1623 * elflink.c (is_reloc_section): Remove function.
1624 (get_dynamic_reloc_section_name): Construct string manually.
1625
1626 2011-02-28 Kai Tietz <kai.tietz@onevision.com>
1627
1628 * archive.c (_bfd_find_nested_archive): Use filename_(n)cmp.
1629 (adjust_relative_path): Likewise.
1630 (_bfd_construct_extended_name_table): Likewise.
1631 * corefile.c (generic_core_file_matches_executable_p): Likewise.
1632 * elf32-bfin.c (bfinfdpic_relocate_section): Likewise.
1633 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1634 * elf32-spu.c (sort_bfds): Likewise.
1635 (spu_elf_auto_overlay): Likewise.
1636 * syms.c (_bfd_stab_section_find_nearest_line): Likewise.
1637 * xcofflink.c (xcoff_set_import_path): Likewise.
1638 * xtensa-isa.c (xtensa_regfile_lookup): Likewise.
1639 (xtensa_regfile_lookup_shortname): Likewise.
1640
1641 2011-02-28 Alan Modra <amodra@gmail.com>
1642
1643 PR 12513
1644 * archive.c (bfd_slurp_bsd_armap_f2): Sanity check parsed_size and
1645 stringsize. Properly sanity check symdef_count. Remove redundant
1646 bfd_release.
1647
1648 2011-02-25 Rafael Ávila de Espíndola <respindola@mozilla.com>
1649
1650 * plugin.c (bfd_plugin_object_p): Correctly set the filesize
1651 and handle claim_file seeking. Only try to load the plugin once.
1652
1653 2011-02-22 Andreas Schwab <schwab@redhat.com>
1654
1655 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): For a TLS_GD
1656 relocation read the value from the second GOT slot.
1657
1658 2011-02-15 Tristan Gingold <gingold@adacore.com>
1659
1660 * vms-alpha.c (alpha_vms_link_add_archive_symbols): Add a comment.
1661
1662 2011-02-15 Alan Modra <amodra@gmail.com>
1663
1664 * elf64-ppc.c (ppc64_elf_edit_toc): Reinstate second read of
1665 toc relocs. Fuss over free(NULL).
1666
1667 2011-02-14 Mike Frysinger <vapier@gentoo.org>
1668
1669 * elflink.c (bfd_elf_size_dynamic_sections): Add
1670 bfd_get_symbol_leading_char to the start of newname.
1671
1672 2011-02-13 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1673
1674 * configure: Regenerate.
1675
1676 2011-02-09 Alan Modra <amodra@gmail.com>
1677
1678 * elf64-ppc.c (ppc64_elf_edit_toc): Don't free toc relocs until
1679 we are done. When optimising large toc, check that a global
1680 symbol on a toc reloc is defined in a kept section.
1681
1682 2011-02-08 Nick Clifton <nickc@redhat.com>
1683
1684 PR binutils/12467
1685 * elf.c (assign_file_positions_for_load_sections): Set the program
1686 header offset and entry size to zero if there are no program
1687 headers.
1688
1689 2011-02-08 Alan Modra <amodra@gmail.com>
1690
1691 * elf64-ppc.c (ppc64_elf_edit_toc): Don't segfault on NULL
1692 local_syms when looking for local symbols in .toc.
1693
1694 2011-02-01 Alan Modra <amodra@gmail.com>
1695
1696 * elf64-ppc.c (ppc64_elf_next_input_section): Use elf_gp value
1697 for toc pointer on any section having makes_toc_func_call set.
1698 (check_pasted_section): Ensure pasted .init/.fini fragments use
1699 the same toc if any has makes_toc_func_call set.
1700
1701 2011-01-28 Joseph Myers <joseph@codesourcery.com>
1702
1703 * elf32-ppc.c (ppc_elf_link_hash_newfunc): Initialize has_sda_refs
1704 field.
1705
1706 2011-01-22 Richard Sandiford <rdsandiford@googlemail.com>
1707
1708 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Ignore
1709 common sections too.
1710
1711 2011-01-18 H.J. Lu <hongjiu.lu@intel.com>
1712
1713 * elf64-x86-64.c (elf_backend_want_plt_sym): Redefine to 0 after
1714 Solaris target.
1715
1716 2011-01-18 Pierre Muller <muller@ics.u-strasbg.fr>
1717
1718 Fix compilation for mingw64.
1719 * coffcode.h (coff_slurp_symbol_table): Add intptr_t intermediate
1720 typecast to avoid warning.
1721 * elf32-rx.c: Add "bfd_stdint.h" include required for int32_t type
1722 usage.
1723 * elfxx-ia64.c (elfNN_ia64_relax_br): Use intptr_t typeacast instead
1724 of long for pointer to avoid warning.
1725 (elfNN_ia64_relax_brl): Idem.
1726 (elfNN_ia64_install_value): Idem.
1727 * vms-alpha.c (_bfd_vms_slurp_etir): Idem.
1728
1729 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
1730
1731 * elf32-arm.c (elf32_arm_check_relocs): Check needs_plt rather than
1732 h->needs_plt when deciding whether to record a possible dynamic reloc.
1733
1734 2011-01-17 Richard Sandiford <richard.sandiford@linaro.org>
1735
1736 * elf32-arm.c (elf32_arm_gc_sweep_hook): Remove all registered
1737 dynamic relocs for the removed section.
1738
1739 2011-01-15 H.J. Lu <hongjiu.lu@intel.com>
1740
1741 * elf64-x86-64.c (elf_x86_64_check_relocs): Check invalid x32
1742 relocations.
1743
1744 2011-01-14 H.J. Lu <hongjiu.lu@intel.com>
1745
1746 * elf64-x86-64.c (elf_x86_64_link_hash_table): Add pointer_r_type.
1747 (elf_x86_64_link_hash_table_create): Set pointer_r_type.
1748 (elf_x86_64_check_relocs): Handle R_X86_64_32 like R_X86_64_64
1749 for ILP32. Remove ABI_64_P PIC check for R_X86_64_8,
1750 R_X86_64_16, R_X86_64_32 and R_X86_64_32S.
1751 (elf_x86_64_relocate_section): Handle R_X86_64_32 like R_X86_64_64
1752 for ILP32.
1753
1754 2011-01-14 Alan Modra <amodra@gmail.com>
1755
1756 * bfd.c (bfd_perror): Flush stdout before and stderr after printing
1757 error.
1758 (_bfd_default_error_handler): Likewise.
1759 * elf.c (print_segment_map): Likewise.
1760 * libbfd.c (warn_deprecated): Likewise.
1761 * som.c (som_sizeof_headers): No need to do so here.
1762 * coff-i860.c: Replace use of printf for error messages with
1763 _bfd_error_handler.
1764 * coff-ppc.c: Likewise.
1765 * coff-sh.c: Likewise.
1766 * elf32-bfin.c: Likewise.
1767 * elf32-dlx.c: Likewise.
1768 * elf32-mep.c: Likewise.
1769 * elf32-v850.c: Likewise.
1770 * mach-o.c: Likewise.
1771 * pef.c: Likewise.
1772
1773 2011-01-13 H.J. Lu <hongjiu.lu@intel.com>
1774
1775 * elf64-x86-64.c (elf_x86_64_link_hash_table): Remove
1776 swap_reloca_out.
1777 (elf_x86_64_link_hash_table_create): Don't set swap_reloca_out.
1778 (elf_x86_64_check_relocs): Align relocation section to 4 byte
1779 for 32bit.
1780 (elf_x86_64_gc_sweep_hook): Replace ELF64_ST_TYPE with
1781 ELF_ST_TYPE.
1782 (elf_x86_64_finish_dynamic_symbol): Updated.
1783 (elf_x86_64_finish_dynamic_sections): Don't use
1784 Elf64_External_Dyn, bfd_elf64_swap_dyn_in, nor
1785 bfd_elf64_swap_dyn_out.
1786
1787 2011-01-14 J. Park <grassman@gmail.com>
1788
1789 PR ld/12339
1790 * elf32-arm.c (allocate_dynrelocs): Don't set up eh before
1791 following bfd_link_hash_warning symbol link.
1792
1793 2011-01-10 Nathan Sidwell <nathan@codesourcery.com>
1794 Glauber de Oliveira Costa <glommer@gmail.com>
1795
1796 * reloc.c (BFD_RELOC_ARM_TLS_GOTDESC, BFD_RELOC_ARM_TLS_CALL,
1797 BFD_RELOC_ARM_THM_TLS_CALL, BFD_RELOC_ARM_TLS_DESCSEQ,
1798 BFD_RELOC_ARM_THM_TLS_DESCSEQ, BFD_RELOC_ARM_TLS_DESC): New
1799 relocations.
1800 * libbfd.h: Rebuilt.
1801 * bfd-in2.h: Rebuilt.
1802 * elf32-arm.c (elf32_arm_howto_table_1): Add new relocations.
1803 (elf32_arm_reloc_map): Likewise.
1804 (tls_trampoline, dl_tlsdesc_lazy_trampoline): New PLT templates.
1805 (elf32_arm_stub_long_branch_any_tls_pic,
1806 elf32_arm_stub_long_branch_v4t_thumb_tls_pic): New stub templates.
1807 (DEF_STUBS): Add new stubs.
1808 (struct_elf_arm_obj_data): Add local_tlsdesc_gotent field.
1809 (elf32_arm_local_tlsdesc_gotent): New.
1810 (GOT_TLS_GDESC): New mask.
1811 (GOT_TLS_GD_ANY): Define.
1812 (struct elf32_arm_link_hash_entry): Add tlsdesc_got field.
1813 (elf32_arm_compute_jump_table_size): New.
1814 (struct elf32_arm_link_hash_table): Add next_tls_desc_index,
1815 num_tls_desc, dt_tlsdesc_plt, dt_tlsdesc_got, tls_trampoline,
1816 sgotplt_jump_table_size fields.
1817 (elf32_arm_link_hash_newfunc): Initialize tlsdesc_got field.
1818 (elf32_arm_link_hash_table_create): Initialize new fields.
1819 (arm_type_of_stub): Check TLS desc relocs too.
1820 (elf32_arm_stub_name): TLS desc relocs can be shared.
1821 (elf32_arm_tls_transition): Determine relaxation.
1822 (arm_stub_required_alignment): Add tls stubs.
1823 (elf32_arm_size_stubs): Likewise.
1824 (elf32_arm_tls_relax): Perform TLS relaxing.
1825 (elf32_arm_final_link_relocate): Process TLS DESC relocations.
1826 (IS_ARM_TLS_GNU_RELOC): New.
1827 (IS_ARM_TLS_RELOC): Use it.
1828 (elf32_arm_relocate_section): Perform TLS relaxing.
1829 (elf32_arm_check_relocs): Anticipate TLS relaxing, process tls
1830 desc relocations.
1831 (allocate_dynrelocs): Allocate tls desc relcoations.
1832 (elf32_arm_output_arch_local_syms): Emit tls trampoline mapping
1833 symbols.
1834 (elf32_arm_size_dynamic_sections): Allocate tls trampolines and
1835 got slots.
1836 (elf32_arm_always_size_sections): New. Create _TLS_MODULE_BASE
1837 symbol.
1838 (elf32_arm_finish_dynamic_symbol): Adjust.
1839 (arm_put_trampoline): New.
1840 (elf32_arm_finish_dynamic_sections): Emit new dynamic tags and tls
1841 trampolines.
1842 (elf_backend_always_size_sections): Define.
1843
1844 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
1845
1846 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Optimized.
1847
1848 2011-01-06 H.J. Lu <hongjiu.lu@intel.com>
1849
1850 PR ld/12366
1851 PR ld/12371
1852 * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Properly
1853 handle symbols marked with regular reference, but not non-GOT
1854 reference when building shared library.
1855
1856 * elf32-i386.c (elf_i386_gc_sweep_hook): Properly handle
1857 local and global STT_GNU_IFUNC symols when building shared
1858 library.
1859 * elf64-x86-64.c (elf_x86_64_gc_sweep_hook): Likewise.
1860
1861 2011-01-05 DJ Delorie <dj@redhat.com>
1862
1863 * reloc.c: Add BFD_RELOC_RX_OP_NEG.
1864 * libbfd.h: Regenerate.
1865 * bfd-in2.h: Regenerate.
1866 * elf32-rx.c: Add it to the list, corresponding to R_RX_OPneg.
1867
1868 2011-01-03 H.J. Lu <hongjiu.lu@intel.com>
1869
1870 * cpu-i386.c (bfd_i386_compatible): New.
1871 (bfd_x64_32_arch_intel_syntax): Replace bfd_default_compatible
1872 with bfd_i386_compatible.
1873 (bfd_x86_64_arch_intel_syntax): Likewise.
1874 (bfd_i386_arch_intel_syntax): Likewise.
1875 (i8086_arch): Likewise.
1876 (bfd_x64_32_arch): Likewise.
1877 (bfd_x86_64_arch): Likewise.
1878 (bfd_i386_arch): Likewise.
1879
1880 For older changes see ChangeLog-2010
1881 \f
1882 Local Variables:
1883 mode: change-log
1884 left-margin: 8
1885 fill-column: 74
1886 version-control: never
1887 End:
This page took 0.068635 seconds and 5 git commands to generate.