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