sim: also constify sim_fpu_print_func
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
3d540e93
NC
12010-04-09 Nick Clifton <nickc@redhat.com>
2
3 * aoutx.h (aout_link_input_bfd): Remove unused variable sym_count.
4 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Remove unused
5 variables htab and hdr_info and mark info parameter as unused.
6 * elf.c (prep_headers): Remove unused variable i_phdrp.
7 (_bfd_elf_write_object_contents): Remove unused variable i_ehdrp.
8 * elf32-i386.c (elf_i386_relocate_section): Mark variabled warned
9 as unused.
10 * peXXigen.c (pe_print_reloc): Remove unused variable datasize.
11 * verilog.c (verilog_write_section): Remove unused variable
12 address.
13
d1a98e0c
AM
142010-04-07 Alan Modra <amodra@gmail.com>
15
16 * warning.m4 (GCC_WARN_CFLAGS): Only add -Wshadow for gcc-4 and above.
17 * configure: Regenerate.
18
6f8bcf84
L
192010-04-06 H.J. Lu <hongjiu.lu@intel.com>
20
21 PR ld/11434
22 * elf-bfd.h (SYMBOLIC_BIND): Don't bind unique symbol locally.
23
0e9b2e9a
TG
242010-04-06 Tristan Gingold <gingold@adacore.com>
25
26 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Fix idd flags.
27
a233b20c
JJ
282010-04-05 Jakub Jelinek <jakub@redhat.com>
29
604282a7
JJ
30 * elf-eh-frame.c (_bfd_elf_parse_eh_frame): Handle CIE version 4
31 provided that it has the expected address size and zero segment
32 length.
33
a233b20c
JJ
34 * dwarf2.c (struct line_head): Add maximum_ops_per_insn field.
35 (struct line_info): Add op_index field, change end_sequence type to
36 unsigned char.
37 (new_line_sorts_after): For the same address compare op_index.
38 (add_line_info): Add op_index argument, store it into the structure.
39 (decode_line_info): Complain about unknown versions of .debug_line.
40 Initialize maximum_ops_per_insn. Add op_index state register and
41 track it.
42
f2faa800
NS
432010-04-01 Nathan Sidwell <nathan@codesourcery.com>
44
45 * elf32-ppc.c (apuinfo_set): New static var.
46 (ppc_elf_begin_write_processing): Set it here, always create an
47 APUinfo section if there were any in the inputs.
48 (ppc_elf_write_section): Check apuinfo_set.
49 (ppc_elf_final_write_processing): Likewise.
50
4b544b64
TG
512010-04-01 Tristan Gingold <gingold@adacore.com>
52
53 * vms.h: Include time.h. Add prototypes for vms_get_module_name,
54 vms_time_to_time_t and vms_rawtime_to_time_t.
55 * vms.c (vms_alpha_vec): Add archives support.
56 * vms-misc.c: Include safe-ctype.h
57 (vms_get_module_name): New function.
58 (vms_time_to_time_t, vms_rawtime_to_time_t): Ditto.
59 * vms-hdr.c (_bfd_vms_write_hdr): Put module name creation to the
60 vms_get_module_name function. Use this function.
61 * targets.c: Declare vms_lib_txt_vec. Add it to _bfd_target_vector.
62 * libbfd-in.h: Add prototype for _bfd_append_relative_path.
63 Add prototypes for vms-lib.c
64 * libbfd.h: Regenerate.
65 * configure.in (TDEFINES): Add an entry for vms_lib_txt_vec. Add
66 vms-lib.lo to vms_alpha_vec.
67 * config.bfd (targ_cpu): Add targ_selvecs for alpha*-*-*vms*.
68 * configure: Regenerate.
69 * bfd.c: Add selective_search field.
70 * bfd-in2.h: Regenerate.
71 * archive.c (append_relative_path): Rename to
72 _bfd_append_relative_path and make it public.
73 (_bfd_get_elt_at_filepos): Adjust for above renaming.
74 * Makefile.am (BFD32_BACKENDS): Add vms-lib.lo
75 (BFD32_BACKENDS_CFILES): Add vms-lib.c
76 * Makefile.in: Regenerate.
77
c07cbdd7
JJ
782010-04-01 Jakub Jelinek <jakub@redhat.com>
79
80 * dwarf2.c (read_attribute_value): Handle CU version 4
81 for DW_FORM_ref_addr, handle DW_FORM_sec_offset, DW_FORM_exprloc
82 and DW_FORM_flag_present. For unknown form value return NULL.
83 (scan_unit_for_symbols): For DW_AT_location handle DW_FORM_exprloc
84 like DW_FORM_block.
85 (parse_comp_unit): Allow CU version 4.
86
e236b51d
HPN
872010-04-01 Hans-Peter Nilsson <hp@axis.com>
88
89 * elf32-cris.c (cris_elf_relocate_section): Correct first argument
90 to _bfd_elf_get_dynamic_reloc_section.
91 (elf_cris_discard_excess_dso_dynamics): Ditto.
92
b706dc83
KT
932010-03-31 Kai Tietz <kai.tietz@onevision.com>
94
95 * coff-i386.c (in_reloc_p): Check also for R_SECREL32.
96 * coff-x86_64.c (in_reloc_p): Check also for R_AMD64_SECREL.
97
9d6ded02
AM
982010-03-31 Alan Modra <amodra@gmail.com>
99
100 * elf64-ppc.c (ppc64_elf_relocate_section): Nop out optimized
101 TPREL16_HI and TPREL16_HA insns.
102
bfbff9eb
HPN
1032010-03-31 Hans-Peter Nilsson <hp@axis.com>
104
105 PR ld/11458
106 * elf32-cris.c (elf_cris_copy_indirect_symbol): Remove invalid
107 assert of empty pcrel_relocs_copied on the direct symbol. Instead
108 of moving the list from the indirect symbol to the direct symbol,
109 merge into any existing list.
110 (cris_elf_check_relocs): Store the original section in the
111 pcrel_relocs_copied list, not the relocation section.
112 (elf_cris_discard_excess_dso_dynamics): Adjust accordingly to find
113 the relocation section, for reducing its size. Change the
114 BFD_ASSERT into a check for the section being read-only, and only
115 emit warnings and TEXTREL marker when there's an entry for a
116 read-only section.
117
41ed1ee7
DJ
1182010-03-29 Daniel Jacobowitz <dan@codesourcery.com>
119
120 * elf32-arm.c (using_thumb_only): Handle v6-M.
121
ddfd6795
AM
1222010-03-26 Alan Modra <amodra@gmail.com>
123
124 * elf32-ppc.c (ppc_elf_howto_raw <R_PPC_EMB_RELSDA>): Not pc-relative.
125 * bfd-in.h (elf_discarded_section): Clarify comment.
126 * reloc.c (struct reloc_howto_struct <pc_relative>): Likewise.
127 * bfd-in2.h: Regenerate.
128
1352b58a
AM
1292010-03-26 Matt Rice <ratmice@gmail.com>
130
131 * archive.c (_bfd_compute_and_write_armap): Allow symbols flagged
132 as unique in the armap.
133
6abec6bc
AM
1342010-03-26 Alan Modra <amodra@gmail.com>
135
136 PR ld/11375
137 * elf64-ppc.c (ppc64_elf_relocate_section): Always look up a
138 possible stub on branches.
139
40b36596
JM
1402010-03-25 Joseph Myers <joseph@codesourcery.com>
141
142 * Makefile.am (ALL_MACHINES): Add cpu-tic6x.lo.
143 (ALL_MACHINES_CFILES): Add cpu-tic6x.c.
144 (BFD32_BACKENDS): Add elf32-tic6x.lo.
145 (BFD32_BACKENDS_CFILES): Add elf32-tic6x.c.
146 * Makefile.in: Regenerate.
147 * archures.c (bfd_arch_tic6x, bfd_tic6x_arch): New.
148 (bfd_archures_list): Update.
149 * config.bfd (tic6x-*-elf): New.
150 * configure.in (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec):
151 New.
152 * configure: Regenerate.
153 * cpu-tic6x.c, elf32-tic6x.c: New.
154 * reloc.c (BFD_RELOC_C6000_PCR_S21, BFD_RELOC_C6000_PCR_S12,
155 BFD_RELOC_C6000_PCR_S10, BFD_RELOC_C6000_PCR_S7,
156 BFD_RELOC_C6000_ABS_S16, BFD_RELOC_C6000_ABS_L16,
157 BFD_RELOC_C6000_ABS_H16, BFD_RELOC_C6000_SBR_U15_B,
158 BFD_RELOC_C6000_SBR_U15_H, BFD_RELOC_C6000_SBR_U15_W,
159 BFD_RELOC_C6000_SBR_S16, BFD_RELOC_C6000_SBR_L16_B,
160 BFD_RELOC_C6000_SBR_L16_H, BFD_RELOC_C6000_SBR_L16_W,
161 BFD_RELOC_C6000_SBR_H16_B, BFD_RELOC_C6000_SBR_H16_H,
162 BFD_RELOC_C6000_SBR_H16_W, BFD_RELOC_C6000_SBR_GOT_U15_W,
163 BFD_RELOC_C6000_SBR_GOT_L16_W, BFD_RELOC_C6000_SBR_GOT_H16_W,
164 BFD_RELOC_C6000_DSBT_INDEX, BFD_RELOC_C6000_PREL31,
165 BFD_RELOC_C6000_COPY, BFD_RELOC_C6000_ALIGN,
166 BFD_RELOC_C6000_FPHEAD, BFD_RELOC_C6000_NOCMP): New.
167 * targets.c (bfd_elf32_tic6x_be_vec, bfd_elf32_tic6x_le_vec): New.
168 (_bfd_target_vector): Update.
169 * bfd-in2.h, libbfd.h: Regenerate.
170
4f608e79
L
1712010-03-24 H.J. Lu <hongjiu.lu@intel.com>
172
173 * aout-target.h: Update copyright year.
174 * aout-tic30.c: Likewise.
175 * coff-alpha.c: Likewise.
176 * coff-rs6000.c: Likewise.
177 * coff64-rs6000.c: Likewise.
178 * elf64-mips.c: Likewise.
179 * ieee.c: Likewise.
180 * libecoff.h: Likewise.
181 * mach-o-target.c: Likewise.
182 * mach-o.c: Likewise.
183 * oasys.c: Likewise.
184 * targets.c: Likewise.
185
337660d8
L
1862010-03-24 H.J. Lu <hongjiu.lu@intel.com>
187
188 * libbfd-in.h: Update copyright year.
189
ca4a656b
L
1902010-03-21 H.J. Lu <hongjiu.lu@intel.com>
191
192 PR ld/11413
193 * elflink.c (_bfd_elf_add_default_symbol): Check !executable
194 instead of shared.
195
47b2e99c
JZ
1962010-03-19 Jie Zhang <jie@codesourcery.com>
197
198 * elf32-arm.c (struct section_list): Remove.
199 (section_list): Remove typedef.
200 (record_section_with_arm_elf_section_data): Remove.
201 (find_arm_elf_section_entry): Remove.
202 (get_arm_elf_section_data): Use is_arm_elf.
203 (unrecord_section_with_arm_elf_section_data): Remove.
204 (elf32_arm_new_section_hook): Don't call
205 record_section_with_arm_elf_section_data.
206 (elf32_arm_write_section): Set mapcount to -1 when
207 the map has been used. Don't call
208 unrecord_section_with_arm_elf_section_data.
209 (unrecord_section_via_map_over_sections): Remove.
210 (elf32_arm_close_and_cleanup): Remove.
211 (elf32_arm_bfd_free_cached_info): Remove.
212 (bfd_elf32_close_and_cleanup): Don't define.
213 (bfd_elf32_bfd_free_cached_info): Don't define.
214
441f34fa
L
2152010-03-18 H.J. Lu <hongjiu.lu@intel.com>
216
217 PR binutils/11396
218 * libcoff-in.h (pe_tdata): Add dont_strip_reloc.
219 * libcoff.h: Regenerated.
220
221 * peXXigen.c (_bfd_XXi_only_swap_filehdr_out): Clear F_RELFLG
222 if dont_strip_reloc is set.
223 (_bfd_XX_bfd_copy_private_bfd_data_common): Set
224 dont_strip_reloc on output if there is no .reloc and
225 IMAGE_FILE_RELOCS_STRIPPED isn't set in input.
226
b43420e6
NC
2272010-03-18 Wei Guozhi <carrot@google.com>
228
229 PR gas/11323
230 * elf32-arm.c (elf32_arm_reloc_map): Map BFD_RELOC_ARM_GOT_PREL to
231 R_ARM_GOT_PREL.
232 * reloc.c (BFD_RELOC_ARM_GOT_PREL): New ARM relocation.
233 * bfd-in2.h: Regenerate.
234 * libbfd.h: Regenerate.
235
a1b88b01
L
2362010-03-17 H.J. Lu <hongjiu.lu@intel.com>
237
238 * reloc.c (BFD_RELOC_SPU_PIC18): Removed.
239 (BFD_RELOC_SPU_STUB): Likewise.
240
4b0f0711
L
2412010-03-17 Jie Zhang <jie@codesourcery.com>
242
243 * elf.c (assign_file_positions_for_load_sections): Avoid
244 overflow.
245
f4bacdc0
AM
2462010-03-17 Alan Modra <amodra@gmail.com>
247
93620fdb 248 PR binutils/11382
f4bacdc0
AM
249 * plugin.c (bfd_plugin_object_p): Pass iostream to fileno using
250 proper type.
251
8f73510c
AM
2522010-03-17 Alan Modra <amodra@gmail.com>
253
254 * elf32-arm.c (cortex_a8_erratum_scan): Warning fix.
255
67f0cbdb
AM
2562010-03-16 Alan Modra <amodra@gmail.com>
257
258 * elf64-ppc.c (struct ppc_link_hash_table): Add do_toc_opt.
259 (ppc64_elf_edit_toc): Set it here.
260 (ha_reloc_match): New function.
261 (ppc64_elf_relocate_section): Optimize bigtoc insn sequences.
262
1bbe0902
AM
2632010-03-15 Alan Modra <amodra@gmail.com>
264
265 * elf64-ppc.c (ppc64_elf_has_small_toc_reloc): New function.
266 * elf64-ppc.h (ppc64_elf_has_small_toc_reloc): Declare.
267
70cc837d
AM
2682010-03-14 Alan Modra <amodra@gmail.com>
269
270 PR ld/11378
271 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
272 * elf64-ppc.c (call_check_done): Define.
273 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
274 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
275 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
276 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
277 Simplify return logic. Iterate over all .init and .fini fragments
278 by recursion. Set makes_toc_func_call here..
279 (ppc64_elf_next_input_section): ..rather than here.
280 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
281
7b8f6675
AM
2822010-03-13 Alan Modra <amodra@gmail.com>
283
284 PR ld/11375
285 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
286 function descriptor symbol if there is one, not just for plt stubs.
287 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
288
a6cc6b3b
RO
2892010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
290
291 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
292 version twice.
293 Skip it when constructing def.vd_next.
294
295 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
296 bfd_elf32_i386_sol2_vec.
297 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
298 (elf32_bed): Redefine to elf32_i386_sol2_bed.
299 (elf_backend_want_plt_sym): Redefine to 1.
300
301 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
302 bfd_elf64_x86_64_sol2_vec.
303 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
304 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
305 (elf_backend_want_plt_sym): Redefine to 1.
306
307 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
308 bfd_elf32_i386_sol2_vec.
309 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
310 targ64_selvecs.
311 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
312 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
313 targ_selvecs.
314
315 * configure.in: Handle bfd_elf32_i386_sol2_vec,
316 bfd_elf64_x86_64_sol2_vec.
317 * configure: Regenerate.
318
319 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
320 (bfd_elf64_x86_64_sol2_vec): Declare.
321 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
322 bfd_elf64_x86_64_sol2_vec.
323
f7dd8c79
DJ
3242010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
325
326 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
327 sections.
328
8af6b354
AM
3292010-03-04 Alan Modra <amodra@gmail.com>
330
331 PR 11302
332 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
333 (read_attribute_value, decode_line_info): Likewise.
334 (add_line_info, read_rangelist): Return FALSE on alloc failures.
335 (arange_add, sort_line_sequences): Likewise.
336 (find_abstract_instance_name): Handle failures from called funcs.
337 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
338 (find_line): Realloc to a temp, and handle alloc fail.
339
501abfe0
DJ
3402010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
341
342 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
343 a mapping symbol to an empty section.
344
5488d830
MGD
3452010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
346
347 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
348 return value from the call to _bfd_elf_merge_object_attributes.
349
fe33d2fa
CL
3502010-03-02 Christophe Lyon <christophe.lyon@st.com>
351 Alan Modra <amodra@gmail.com>
352
353 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
354 destination mode of the a8 stub.
355 (elf32_arm_link_hash_table): Add top_id field.
356 (elf32_arm_link_hash_table_create): Initialize top_id.
357 (arm_type_of_stub): Update prototype, st_type can now be updated
358 by this function. Actual destination address in case of PLT is
359 computed here, to help factorizing code.
360 (elf32_arm_stub_name): Update prototype, use stub_type additional
361 parameter to build stub name.
362 (elf32_arm_get_stub_entry): Update prototype, use stub_type
363 additional parameter to build stub entry.
364 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
365 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
366 Call elf32_arm_final_link_relocate to process all in-stub
367 relocations.
368 (elf32_arm_setup_section_lists): Update top_id.
369 (cortex_a8_erratum_scan): Record stub destination mode.
370 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
371 to new prototype.
372 (elf32_arm_final_link_relocate): Enable processing of in-stub
373 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
374 needed, enabling code factorization.
375 (elf32_arm_final_link): Process stub sections.
376 (elf32_arm_output_map_sym): Add entry to code/data map.
377
b48ca1d4
DM
3782010-03-01 David S. Miller <davem@davemloft.net>
379
380 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
381 h->def_regular, set h->ref_regular.
382 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
383 and dynamic relocations if h->ref_regular.
384
679b7c76
DM
385 * elfxx-sparc.c (struct elf_reloc_map): Delete.
386 (sparc_reloc_map): Delete.
387 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
388 relocation type in switch statements.
389
dfa7b0b8
AM
3902010-02-25 Alan Modra <amodra@gmail.com>
391
392 PR ld/11304
393 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
394 to final_link and invert. For final link allow some flags to
395 differ. Don't specially allow flags to be all zero.
396
d4a77f3f
NC
3972010-02-24 Alan Modra <amodra@gmail.com>
398
399 PR binutils/10858
400 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
401 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
402 table.
403
17e57237
NC
4042010-02-23 Andrew Zabolotny <anpaza@mail.ru>
405
406 PR binutils/11297
407 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
408 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
409
263badd7
AM
4102010-02-22 Alan Modra <amodra@gmail.com>
411
412 * reloc.c (bfd_check_overflow): When forming addrmask, shift
413 fieldmask left by rightshift.
414 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
415 overflow checks.
416
c35bdf6e
L
4172010-02-20 H.J. Lu <hongjiu.lu@intel.com>
418
419 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
420 STT_GNU_IFUNC on large common symbol.
421
c16153ae
L
4222010-02-18 H.J. Lu <hongjiu.lu@intel.com>
423
424 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
425 has_ifunc_symbols if the symbol comes from a shared library.
426 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
427 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
428 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
429 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
430 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
431
d0bf826b
AM
4322010-02-19 Alan Modra <amodra@gmail.com>
433
434 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
435 (_bfd_elf_copy_private_header_data): ..here.
436 * elflink.c (_bfd_elf_size_group_sections): New function.
437 (bfd_elf_size_dynamic_sections): Call it.
438 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
439 (_bfd_elf_fixup_group_sections): Declare.
440
cd21e546
MGD
4412010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
442
443 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
444 merging Tag_DIV_use, Tag_MPextension_use, and
445 Tag_MPextension_use_legacy tags.
446
415f38a6
AM
4472010-02-18 Alan Modra <amodra@gmail.com>
448
449 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
450 commit. Don't write zeros for removed group members.
451 (_bfd_elf_copy_private_header_data): Adjust size of group section
452 when group members are removed by objcopy.
453
b946d5d8
DK
4542010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
455
456 PR binutils/11280
457 * configure.host (*-*-solaris2.11): Add host define to select
458 valid default code page for windres/windmc on solaris.
459
ab7875de
NC
4602010-02-15 Nick Clifton <nickc@redhat.com>
461
462 * po/vi.po: Updated Vietnamese translation.
463
33811162
DG
4642010-02-12 Daniel Gutson <dgutson@codesourcery.com>
465
466 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
467 missing mapping symbol to data only sections.
468
00c50991
DM
4692010-02-11 David S. Miller <davem@davemloft.net>
470
471 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
472 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
473 symbols.
474 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
475 these relocs on global symbols.
476 (gdopoff): New.
477 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
478 local symbol references which are not STT_GNU_IFUNC. Handle
479 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
480 and deal with negative vs. non-negative values properly.
481
1523fa24
TG
4822010-02-09 Tristan Gingold <gingold@adacore.com>
483
484 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
485 non-external relocation.
486
7865406b
AM
4872010-02-09 Alan Modra <amodra@gmail.com>
488
489 * elf64-ppc.c (merge_got_entries): Move earlier in file.
490 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
491 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
492 (ppc64_elf_layout_multitoc): Don't resize if we have already
493 merged got entries.
494
d7eeb400
MS
4952010-02-09 Michael Holzheu <holzheu@de.ibm.com>
496
497 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
498 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
499 elfcore_write_s390_prefix): New.
500 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
501 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
502 elfcore_write_s390_prefix): New.
503 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
504 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
1352b58a 505 (elfcore_write_register_note): Handle .reg-s390-timer,
d7eeb400
MS
506 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
507 .reg-s390-prefix section.
508
f961d9dd
AM
5092010-02-09 Alan Modra <amodra@gmail.com>
510
511 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
512 unsigned char. Update variables and code using them throughout file.
513 (struct ppc_link_hash_entry): Likewise for tls_mask.
514
d0fae19d
AM
515 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
516
d77c8a4b
AM
517 * elf64-ppc.c (has_small_toc_reloc): Don't define.
518 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
519 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
520 code setting the flag.
521 (ppc64_elf_next_toc_section): Group big-toc sections in
522 0x80008000 chunks.
523
72fbc6e5
DM
5242010-02-08 David S. Miller <davem@davemloft.net>
525
526 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
527 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
528
529 * elfxx-sparc.c (create_got_section): Delete.
530 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
531 section creator does that work for us. Use ->elf.foo instead of
532 ->foo where applicable.
533 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
534 where applicable.
535 (allocate_dynrelocs): Likewise.
536 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
537 (_bfd_sparc_elf_relocate_section): Likewise.
538 (sparc_vxworks_build_plt_entry): Likewise.
539 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
540 (sparc_finish_dyn): Likewise.
541 (sparc_vxworks_finish_exec_plt): Likewise.
542 (sparc_vxworks_finish_shared_plt): Likewise.
543 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
544
545 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
546 macros for visibilty and locality checks.
547 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
548 (allocate_dynrelocs): Likewise.
549 (_bfd_sparc_elf_relocate_section): Likewise.
550 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
551
552 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
553 but never used local var 'dynobj'.
554
555 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
556 nocopyreloc.
557
d0c9aeb3
DM
558 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
559 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
560 * bfd-in2.h: Regenerate.
561 * libbfd.h: Regenerate.
562
563 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
564 and loc_hash_memory.
565 (_bfd_sparc_elf_link_hash_table_free): Declare.
566 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
567 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
568 bfd_elf32_bfd_link_hash_table_free): Define.
569 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
570 has_ifunc_symbols if STT_GNU_IFUNC.
571 (bfd_elf64_bfd_link_hash_table_free): Define.
572 (elf_backend_post_process_headers): Define always.
573 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
574 (sparc_reloc_map): Add entries for new IFUNC relocs.
575 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
576 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
577 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
578 elf_sparc_get_local_sym_hash): New.
579 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
580 from here...
581 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
582 local hash table.
583 (_bfd_sparc_elf_link_hash_table_free): New.
584 (create_ifunc_sections): New.
585 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
586 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
587 cons up a fake local hash table entry for it. Unconditionally add
588 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
589 dyn relocs for ifunc.
590 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
591 (allocate_dynrelocs): Unconditionally emit a PLT entry when
592 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
593 (allocate_local_dynrelocs): New function.
594 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
595 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
596 like splt.
597 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
598 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
599 plt in iplt/irelplt.
600
9ea2b942
RS
6012010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
602
603 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
604 max_contents_size, only consider sections whose contents must
605 be swapped in.
606
0b8bcf0d
AM
6072010-02-09 Alan Modra <amodra@gmail.com>
608
609 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
610 (ppc64_elf_size_dynamic_sections): ..and here..
611 (merge_got_entries): ..rather than here.
612
33c0ec9d
AM
6132010-02-09 Alan Modra <amodra@gmail.com>
614
615 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
616 (has_small_toc_reloc): Define.
617 (ppc64_elf_check_relocs): Set the above flags.
618 (ppc64_elf_edit_opd): Delete obfd param.
619 (ppc64_elf_tls_optimize): Likewise.
620 (ppc64_elf_edit_toc): Likewise.
621 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
622 * elf64-ppc.h: Update prototypes.
623
b0dddeec
AM
6242010-02-08 Alan Modra <amodra@gmail.com>
625
626 * section.c (struct bfd_section): Delete has_tls_reloc,
627 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
628 Add sec_flg0 thru sec_flg5.
629 (BFD_FAKE_SECTION): Update for changed flags.
630 * ecoff.c (bfd_debug_section): Likewise.
631 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
632 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
633 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
634 * elf32-xtensa.c (reloc_done): Define.
635 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
636 * bfd-in2.h: Regenerate.
637
06988dfc
TG
6382010-02-08 Tristan Gingold <gingold@adacore.com>
639
640 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
641 for non-scattered relocations.
642
deddc40b
NS
6432010-02-08 Nathan Sidwell <nathan@codesourcery.com>
644
645 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
646 apuinfo sections, only scan input sections once and reuse the
647 buffer.
648
ce3d2015
AM
6492010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
650
651 * archures.c (bfd_mach_ppc_titan): Define.
652 * bfd-in2.h: Regenerate.
653 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
654
06a162cf
AM
6552010-02-08 Alan Modra <amodra@gmail.com>
656
657 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
658
4c348442
SA
6592010-02-05 Sterling Augustine <sterling@tensilica.com>
660
661 * elf.c (assign_file_positions_for_load_sections) Update lma of
662 section if necessary. Fixes Bugzilla 11219.
663
6bbec505
L
6642010-02-05 H.J. Lu <hongjiu.lu@intel.com>
665
666 * elf32-i386.c: Remove trailing white spaces.
667 * elf64-x86-64.c: Likewise.
668
4dfe6ac6
NC
6692010-02-03 Nick Clifton <nickc@redhat.com>
670
671 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
672 entries for other architectures.
673 (struct elf_link_hash_table): Add hash_table_id field.
674 (elf_hash_table_id): New accessor macro.
675 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
676 parameter.
677 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
678 returning cast pointer.
679 (elf32_mn10300_link_hash_table_create): Identify new table as
680 containing MN10300 extensions.
681 (mn10300_elf_relax_section): Check pointer returned by
682 elf32_mn10300_hash_table.
683 * elf32-arm.c: Likewise, except using ARM extensions.
684 * elf32-avr.c: Likewise, except using AVR extensions.
685 * elf32-bfin.c: Likewise, except using BFIN extensions.
686 * elf32-cris.c: Likewise, except using CRIS extensions.
687 * elf32-frv.c: Likewise, except using FRV extensions.
688 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
689 * elf32-i386.c: Likewise, except using I386 extensions.
690 * elf32-lm32.c: Likewise, except using LM32 extensions.
691 * elf32-m32r.c: Likewise, except using M32RM extensions.
692 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
693 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
694 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
695 * elf32-m68k.c: Likewise, except using M68K extensions.
696 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
697 * elf32-ppc.c: Likewise, except using PPC32 extensions.
698 * elf32-s390.c: Likewise, except using S390 extensions.
699 * elf32-sh.c: Likewise, except using SH extensions.
700 * elf32-spu.c: Likewise, except using SPU extensions.
701 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
702 * elf64-alpha.c: Likewise, except using ALPHA extensions.
703 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
704 * elf64-ppc.c: Likewise, except using PPC64 extensions.
705 * elf64-s390.c: Likewise, except using S390 extensions.
706 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
707 * elfxx-ia64.c: Likewise, except using IA64 extensions.
708 * elfxx-mips.c: Likewise, except using MIPS extensions.
709 * elfxx-sparc.c: Likewise, except using SPARC extensions.
710 * elfxx-sparc.h: Likewise, except using SPARC extensions.
711 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
712 redundant structure.
713 (elf32_cr16_hash_table): Delete unused macro.
714 (elf32_cr16_link_hash_traverse): Delete unused macro.
715 * elf32-score.c: Likewise.
716 * elf32-score7.c: Likewise.
717 * elf32-vax.c: Likewise.
718 * elf64-sh64.c: Likewise.
719
927be08e
AM
7202010-02-03 Alan Modra <amodra@gmail.com>
721
722 * elf64-ppc.c (struct plt_entry): Move earlier in file.
723 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
724 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
725 Update all uses.
726 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
727 Remove no_multi_toc.
728 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
729 when allocating a new struct got_entry.
730 (allocate_got): New function, extracted from..
731 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
732 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
733 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
734 (ppc64_elf_setup_section_lists): Remove output_bfd param and
735 no_multi_toc, add add_stub_section and layout_sections_again. Stash
736 new params in htab. Extract some code to..
737 (ppc64_elf_start_multitoc_partition): ..here. New function.
738 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
739 second pass toc scan.
740 (merge_got_entries, merge_global_got, reallocate_got): New functions.
741 (ppc64_elf_reinit_toc): Rename to..
742 (ppc64_elf_finish_multitoc_partition): ..this.
743 (ppc64_elf_layout_multitoc): New function.
744 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
745 layout_sections_again params.
746 (ppc64_elf_relocate_section): Handle indirect got entries.
747 * elf64-ppc.h: Update prototypes. Declare new functions.
748
4339cae0
L
7492010-02-02 H.J. Lu <hongjiu.lu@intel.com>
750
751 * elf-bfd.h (elfcore_write_xstatereg): New.
752
753 * elf.c (elfcore_grok_xstatereg): New.
754 (elfcore_write_xstatereg): Likewise.
755 (elfcore_grok_note): Handle NT_X86_XSTATE.
756 (elfcore_write_register_note): Handle .reg-xstate section.
757
9848eadf
TG
7582010-02-01 Tristan Gingold <gingold@adacore.com>
759
760 * som.c (som_write_ar_hdr): Define this macro.
761
f6fd0237
DA
7622010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
763
764 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
765 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
766 linkage table pointer to use the global table pointer if not doing
767 a shared link.
768
a1504221
JB
7692010-01-29 Joel Brobecker <brobecker@adacore.com>
770
771 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
772 if it has already been set.
773
771deb08
TG
7742010-01-27 Tristan Gingold <gingold@adacore.com>
775
776 * vms.h: Remove trailing spaces.
777 (struct hdr_struct): Remove unused hdr_c_cpr field.
778 (enum file_format_enum): Add comments.
779 * vms.c (vms_bfd_print_private_bfd_data): New function that
780 replaces the macro.
781 Remove trailing spaces.
782 * vms-misc.c: Improve comments.
783 (_bfd_vms_get_object_record): Also handle files without pads.
784 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
785 * vms-gsd.c (struct flagdescstruct): Make name field const.
786 (gsyflagdesc): Fix typo.
787
bf102f86
AM
7882010-01-27 Alan Modra <amodra@gmail.com>
789
790 PR ld/11217
791 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
792 (ppc64_elf_setup_section_lists): Init them.
793 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
794 and .toc on the same input file.
795 (ppc64_elf_relocate_section): Correct GOT entry offset.
796
8f95b6e4
TG
7972010-01-26 Tristan Gingold <gingold@adacore.com>
798
799 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
800 (bfd_target): Add _bfd_write_ar_hdr_fn field.
801 * archive.c (is_bsd44_extended_name): New macro.
802 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
803 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
804 name.
805 (_bfd_archive_bsd44_construct_extended_name_table): New function.
806 (_bfd_generic_write_ar_hdr): Ditto.
807 (_bfd_bsd44_write_ar_hdr): Ditto.
808 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
809 (bsd_write_armap): Adjust firstreal computation.
810 * libbfd-in.h (struct areltdata): Add extra_size field.
811 (_bfd_generic_write_ar_hdr): Add prototype.
812 (_bfd_bsd44_write_ar_hdr): Ditto.
813 (_bfd_write_ar_hdr): Define.
814 (_bfd_noarchive_write_ar_hdr): Ditto.
815 (_bfd_archive_bsd_write_ar_hdr): Ditto.
816 (_bfd_archive_coff_write_ar_hdr): Ditto.
817 (_bfd_archive_bsd44_slurp_armap): Ditto.
818 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
819 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
820 (_bfd_archive_bsd44_truncate_arname): Ditto.
821 (_bfd_archive_bsd44_write_armap): Ditto.
822 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
823 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
824 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
825 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
826 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
827 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
828 * libbfd.h: Regenerate.
829 * oasys.c (oasys_write_ar_hdr): Define.
830 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
831 * ieee.c (ieee_write_ar_hdr): Define.
832 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
833 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
834 (bfd_pmac_xcoff_backend_data): Ditto.
835 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
836 (bfd_xcoff_aix5_backend_data): Ditto.
837 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
838 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
839 * aout-tic30.c (MY_write_ar_hdr): Ditto.
840 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
841 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
842 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
843 (bfd_mach_o_construct_extended_name_table)
844 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
845 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
846 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
847 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
848 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
849 (bfd_mach_o_construct_extended_name_table)
850 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
851 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
852 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
853 * bfd-in2.h: Regenerate.
854
98da7939
L
8552010-01-26 Alan Modra <amodra@gmail.com>
856 H.J. Lu <hongjiu.lu@intel.com>
857
858 PR ld/11218
859 * elflink.c (elf_link_output_extsym): Do not ignore undefined
860 symbols with ref_regular set when gc_sections is active.
861
766bc656
AM
8622010-01-25 Alan Modra <amodra@gmail.com>
863
864 PR ld/11217
865 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
866 with relocations against undefined weak symbols.
867 (ppc64_elf_relocate_section): Don't optimize calls to undefined
868 weak functions if the symbol is dynamic.
869 (ppc64_elf_relocate_section): Edit tprel tls sequences.
870 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
871 (_bfd_elf_ppc_at_tprel_transform): New function.
872 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
873 * bfd-in2.h: Regenerate.
874
c865e45b
RS
8752010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
876
877 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
878 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
879 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
880 bitsize to 1.
881 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
882
b918acf9
NC
8832010-01-21 Nick Clifton <nickc@redhat.com>
884
885 * elflink.c (elf_link_add_object_symbols): Look up name of
886 undefined symbol both before and after versioning has been
887 applied. Do not bother with symbols that are weakly undefined.
888
55786da2 8892010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
b918acf9 890
55786da2
AK
891 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
892 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
893
a37a68dd
CC
8942010-01-19 Cary Coutant <ccoutant@google.com>
895
896 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
897
ecd12bc1
AM
8982010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
899 Alan Modra <amodra@gmail.com>
900
1352b58a 901 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
ecd12bc1
AM
902 (elf_object_p): Read e_phnum extension.
903 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
1352b58a 904 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
ecd12bc1
AM
905 that we can read last program header.
906
f6ebfac0
AM
9072010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
908
909 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
910 R_ARM_THM_CALL entry.
911 (elf32_arm_final_link_relocate): Correct calculation of
912 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
913 or R_ARM_THM_JUMP24 relocation.
914
22eb4b1d
AM
9152010-01-18 Alan Modra <amodra@gmail.com>
916
917 PR 11168
918 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
919 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
920 than 32k sections.
921
6ec12636
JK
9222010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
923
924 Fix compilation warning on gcc-3.4.
925 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
926 parameter index to sec_index according to the function definition.
927
38a7df63
CF
9282010-01-13 Chao-ying Fu <fu@mips.com>
929
930 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
931 It is true for all CPUs.
932 (jal_reloc_p): New function.
933 (mips_elf_calculate_relocation): Rename require_jalxp to
934 cross_mode_jump_p.
935 Update comment for CROSS_MODE_JUMP_P.
936 Set up cross_mode_jump_p based on the mode change.
937 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
938 Update comment for CROSS_MODE_JUMP_P.
939 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
940 Use !cross_mode_jump_p to guard conversion.
941 Convert "jr t9" to "b", if possible.
942 (_bfd_mips_elf_relocate_section): Rename require_jalx to
943 cross_mode_jump_p.
944 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
945 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
946
91b9a4a4
NC
9472010-01-13 Nick Clifton <nickc@redhat.com>
948
949 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
950 "m32c" returns the m32c arch_info_struct and not the m16c
951 arch_info_struct.
952 (arch_info_struct): Use the new scan function.
953 (bfd_m32c_arch): Likewise.
954
618b7301
TG
9552010-01-13 Tristan Gingold <gingold@adacore.com>
956
957 * config.bfd: Remove duplicated target vector for i386-*-darwin.
958 Appends new arch instead of overriding.
959 Use mach_o_x86_64_vec for x86_64-*-darwin.
960 * configure.in: Add mach_o_x86_64_vec.
961 * configure: Regenerate.
962 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
963 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
964 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
965 * Makefile.in: Regenerate.
966 * mach-o-x86-64.c: New file.
967
f88af2f1
TG
9682010-01-13 Tristan Gingold <gingold@adacore.com>
969
970 * reloc.c: Add MACH_O_X86_64 relocations.
971 * bfd-in2.h: Regenerate.
972 * libbfd.h: Regenerate.
973
19172f39
TG
9742010-01-13 Tristan Gingold <gingold@adacore.com>
975
976 * archive.c (normalize): Use lbasename.
977 (bfd_bsd_truncate_arname): Ditto.
978 (bfd_gnu_truncate_arname): Ditto.
979
6cdb8d82
TG
9802010-01-12 Tristan Gingold <gingold@adacore.com>
981
982 * makefile.vms (CFLAGS): Turns warnings into informational messages.
983
9a753de0
TG
9842010-01-11 Tristan Gingold <gingold@adacore.com>
985
986 * mach-o.h: Add x86-64 relocation types.
987
42fa0891
TG
9882010-01-11 Tristan Gingold <gingold@adacore.com>
989
990 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
991 (bfd_mach_o_set_arch_mach): New prototype.
992 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
993 (bfd_mach_o_set_arch_mach): New function.
994 (bfd_mach_o_gen_mkobject): New function.
995 Set TARGET_ARCHITECTURE for the generic back-ends.
996 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
997 Check that TARGET_ARCHITECTURE is defined.
998 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
999 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
1000
cba0723b
TG
10012010-01-11 Tristan Gingold <gingold@adacore.com>
1002
19172f39 1003 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
cba0723b 1004
4d421096
NC
10052010-01-11 Nick Clifton <nickc@redhat.com>
1006
1007 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
1008 handling of R_V850_HI16_S relocation.
1009
20b1d3e3
AM
10102010-01-11 Alan Modra <amodra@gmail.com>
1011
1012 PR 11103
1013 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
1014
a358ecb8
AM
10152010-01-11 Alan Modra <amodra@gmail.com>
1016
1017 PR 6832
1018 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
1019 (find_abstract_instance_name): Use it.
1020 (parse_comp_unit): Set it.
1021
3725885a
RW
10222010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
1023
1024 * Makefile.in: Regenerate.
1025 * configure: Regenerate.
1026
3ee87829
TG
10272010-01-08 Tristan Gingold <gingold@adacore.com>
1028
1029 * archive.c: Remove bfd_special_undocumented_glue.
1030
fb34365b
AM
10312010-01-08 Alan Modra <amodra@gmail.com>
1032
1033 PR ld/11133
1034 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
1035 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
1036 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
1037
d023c380
L
10382010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1039
1040 PR ld/11138
1041 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
1042 a symbol referenced by DSO is is defined in a non-shared object
1043 and forced local.
1044
bde6f3eb
L
10452010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1046
1047 PR ld/11133
1048 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
1049 undefined __start_XXX/__stop_XXX in all input files and set
1050 SEC_KEEP.
1051
16583161
L
10522010-01-07 H.J. Lu <hongjiu.lu@intel.com>
1053
1054 PR ld/11143
1055 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
1056
16231b7b
DG
10572010-01-04 Daniel Gutson <dgutson@codesourcery.com>
1058
1059 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
1060 before including procfs.h.
1061 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
1062 * configure.in: Added autoconf probe for the pr_fpreg member.
1063 * configure: Regenerated.
1064 * config.in: Regenerated.
1065 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
1066
608fa8d3
JB
10672010-01-04 Joel Brobecker <brobecker@adacore.com>
1068
1069 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
1070 * dwarf2.c (concat_filename): Rename dirname with dir_name
1071 to void shadowing the dirname function.
1072 Rename subdirname with subdir_name to stay consistent with
1073 the new dir_name variable name.
1074
0dc93057
AM
10752010-01-04 Edmar Wienskoski <edmar@freescale.com>
1076
1077 * archures.c: Add bfd_mach_ppc_e500mc64.
1078 * bfd-in2.h: Regenerate.
1079 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
1080 bfd_mach_ppc_e500mc64.
1081
baf9bed3
JB
10822010-01-01 Joel Brobecker <brobecker@adacore.com>
1083
1084 Fix -Wshadow warnings (seen on ppc-aix)
1085 * xcofflink.c: Replace finfo by flinfo throughout.
1086
43ecc30f 1087For older changes see ChangeLog-2009
56882138
AM
1088\f
1089Local Variables:
1090mode: change-log
1091left-margin: 8
1092fill-column: 74
1093version-control: never
1094End:
This page took 0.570176 seconds and 4 git commands to generate.