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