* linux-low.c (fetch_register): Avoid passing a non string literal
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
70cc837d
AM
12010-03-14 Alan Modra <amodra@gmail.com>
2
3 PR ld/11378
4 * elf64-ppc.h (ppc64_elf_check_init_fini): Declare.
5 * elf64-ppc.c (call_check_done): Define.
6 (ppc64_elf_add_symbol_hook): Substitute bfd_get_section_name macro.
7 (ppc64_elf_check_relocs, ppc64_elf_size_dynamic_sections): Likewise.
8 (ppc64_elf_finish_multitoc_partition): Remove unnecessary check.
9 (toc_adjusting_stub_needed): Use call_check_done rather than toc_off.
10 Simplify return logic. Iterate over all .init and .fini fragments
11 by recursion. Set makes_toc_func_call here..
12 (ppc64_elf_next_input_section): ..rather than here.
13 (check_pasted_section, ppc64_elf_check_init_fini): New functions.
14
7b8f6675
AM
152010-03-13 Alan Modra <amodra@gmail.com>
16
17 PR ld/11375
18 * elf64-ppc.c (ppc_type_of_stub): Always set *hash to the
19 function descriptor symbol if there is one, not just for plt stubs.
20 (ppc64_elf_relocate_section): Use fdh on all ppc_get_stub_entry calls.
21
a6cc6b3b
RO
222010-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
23
24 * elflink.c (bfd_elf_size_dynamic_sections): Don't emit base
25 version twice.
26 Skip it when constructing def.vd_next.
27
28 * elf32-i386.c (TARGET_LITTLE_SYM): Redefine to
29 bfd_elf32_i386_sol2_vec.
30 (TARGET_LITTLE_NAME): Redefine to elf32-i386-sol2.
31 (elf32_bed): Redefine to elf32_i386_sol2_bed.
32 (elf_backend_want_plt_sym): Redefine to 1.
33
34 * elf64-x86-64.c (TARGET_LITTLE_SYM): Redefine to
35 bfd_elf64_x86_64_sol2_vec.
36 (TARGET_LITTLE_NAME): Redefine to elf64-x86-64-sol2.
37 (elf64_bed): Redefine to elf64_x86_64_sol2_bed.
38 (elf_backend_want_plt_sym): Redefine to 1.
39
40 * config.bfd (i[3-7]86-*-solaris2*): Set targ_defvec to
41 bfd_elf32_i386_sol2_vec.
42 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
43 targ64_selvecs.
44 (x86_64-*-solaris2*): Set targ_defvec to bfd_elf32_i386_sol2_vec.
45 Replace bfd_elf64_x86_64_vec by bfd_elf64_x86_64_sol2_vec in
46 targ_selvecs.
47
48 * configure.in: Handle bfd_elf32_i386_sol2_vec,
49 bfd_elf64_x86_64_sol2_vec.
50 * configure: Regenerate.
51
52 * targets.c (bfd_elf32_i386_sol2_vec): Declare.
53 (bfd_elf64_x86_64_sol2_vec): Declare.
54 (_bfd_target_vector): Add bfd_elf32_i386_sol2_vec,
55 bfd_elf64_x86_64_sol2_vec.
56
f7dd8c79
DJ
572010-03-04 Daniel Jacobowitz <dan@codesourcery.com>
58
59 * elf32-arm.c (elf32_arm_output_arch_local_syms): Skip non-program
60 sections.
61
8af6b354
AM
622010-03-04 Alan Modra <amodra@gmail.com>
63
64 PR 11302
65 * dwarf2.c (read_abbrevs): Return NULL on alloc failures.
66 (read_attribute_value, decode_line_info): Likewise.
67 (add_line_info, read_rangelist): Return FALSE on alloc failures.
68 (arange_add, sort_line_sequences): Likewise.
69 (find_abstract_instance_name): Handle failures from called funcs.
70 (scan_unit_for_symbols, parse_comp_unit, decode_line_info): Likewise.
71 (find_line): Realloc to a temp, and handle alloc fail.
72
501abfe0
DJ
732010-03-03 Daniel Jacobowitz <dan@codesourcery.com>
74
75 * elf32-arm.c (elf32_arm_output_arch_local_syms): Do not add
76 a mapping symbol to an empty section.
77
5488d830
MGD
782010-03-02 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
79
80 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add a check of the
81 return value from the call to _bfd_elf_merge_object_attributes.
82
fe33d2fa
CL
832010-03-02 Christophe Lyon <christophe.lyon@st.com>
84 Alan Modra <amodra@gmail.com>
85
86 * elf32-arm.c (a8_erratum_fix): Add st_type field to record the
87 destination mode of the a8 stub.
88 (elf32_arm_link_hash_table): Add top_id field.
89 (elf32_arm_link_hash_table_create): Initialize top_id.
90 (arm_type_of_stub): Update prototype, st_type can now be updated
91 by this function. Actual destination address in case of PLT is
92 computed here, to help factorizing code.
93 (elf32_arm_stub_name): Update prototype, use stub_type additional
94 parameter to build stub name.
95 (elf32_arm_get_stub_entry): Update prototype, use stub_type
96 additional parameter to build stub entry.
97 (arm_build_one_stub): Use bfd_put_16/bfd_put_32 instead of
98 put_thumb_insn/put_arm_insn as BE8 encoding is now handled later.
99 Call elf32_arm_final_link_relocate to process all in-stub
100 relocations.
101 (elf32_arm_setup_section_lists): Update top_id.
102 (cortex_a8_erratum_scan): Record stub destination mode.
103 (elf32_arm_size_stubs): Update call to arm_type_of_stub according
104 to new prototype.
105 (elf32_arm_final_link_relocate): Enable processing of in-stub
106 REL32 relocations. Rely on arm_type_of_stub to detect if a stub is
107 needed, enabling code factorization.
108 (elf32_arm_final_link): Process stub sections.
109 (elf32_arm_output_map_sym): Add entry to code/data map.
110
b48ca1d4
DM
1112010-03-01 David S. Miller <davem@davemloft.net>
112
113 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): When STT_GNU_IFUNC and
114 h->def_regular, set h->ref_regular.
115 (allocate_dynrelocs): Only force output of STT_GNU_IFUNC plt entries
116 and dynamic relocations if h->ref_regular.
117
679b7c76
DM
118 * elfxx-sparc.c (struct elf_reloc_map): Delete.
119 (sparc_reloc_map): Delete.
120 (_bfd_sparc_elf_reloc_type_lookup): Explicitly handle each
121 relocation type in switch statements.
122
dfa7b0b8
AM
1232010-02-25 Alan Modra <amodra@gmail.com>
124
125 PR ld/11304
126 * elf.c (_bfd_elf_init_private_section_data): Rename need_group
127 to final_link and invert. For final link allow some flags to
128 differ. Don't specially allow flags to be all zero.
129
d4a77f3f
NC
1302010-02-24 Alan Modra <amodra@gmail.com>
131
132 PR binutils/10858
133 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Ise
134 SYMBOL_REFERENCES_LOCAL to exclude entries from the dynamic symbol
135 table.
136
17e57237
NC
1372010-02-23 Andrew Zabolotny <anpaza@mail.ru>
138
139 PR binutils/11297
140 * elf32-avr.c (elf_avr_howto_table): Add R_AVR_8.
141 (avr_reloc_map): Map BFD_RELOC_8 to R_AVR_8.
142
263badd7
AM
1432010-02-22 Alan Modra <amodra@gmail.com>
144
145 * reloc.c (bfd_check_overflow): When forming addrmask, shift
146 fieldmask left by rightshift.
147 (_bfd_relocate_contents): Likewise. Use rightshift addrmask in all
148 overflow checks.
149
c35bdf6e
L
1502010-02-20 H.J. Lu <hongjiu.lu@intel.com>
151
152 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Don't check
153 STT_GNU_IFUNC on large common symbol.
154
c16153ae
L
1552010-02-18 H.J. Lu <hongjiu.lu@intel.com>
156
157 * elf32-i386.c (elf_i386_add_symbol_hook): Don't set
158 has_ifunc_symbols if the symbol comes from a shared library.
159 * elf32-ppc.c (ppc_elf_add_symbol_hook): Likewise.
160 * elf32-sparc.c (elf32_sparc_add_symbol_hook): Likewise.
161 * elf64-ppc.c (ppc64_elf_add_symbol_hook): Likewise.
162 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Likewise.
163 * elf64-x86-64.c (elf64_x86_64_add_symbol_hook): Likewise.
164
d0bf826b
AM
1652010-02-19 Alan Modra <amodra@gmail.com>
166
167 * elf.c (_bfd_elf_fixup_group_sections): New function, split out from..
168 (_bfd_elf_copy_private_header_data): ..here.
169 * elflink.c (_bfd_elf_size_group_sections): New function.
170 (bfd_elf_size_dynamic_sections): Call it.
171 * elf-bfd.h (_bfd_elf_size_group_sections): Declare.
172 (_bfd_elf_fixup_group_sections): Declare.
173
cd21e546
MGD
1742010-02-18 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
175
176 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Add support for
177 merging Tag_DIV_use, Tag_MPextension_use, and
178 Tag_MPextension_use_legacy tags.
179
415f38a6
AM
1802010-02-18 Alan Modra <amodra@gmail.com>
181
182 * elf.c (bfd_elf_set_group_contents): Revert accidental 2009-01-15
183 commit. Don't write zeros for removed group members.
184 (_bfd_elf_copy_private_header_data): Adjust size of group section
185 when group members are removed by objcopy.
186
b946d5d8
DK
1872010-02-15 Dave Korn <dave.korn.cygwin@gmail.com>
188
189 PR binutils/11280
190 * configure.host (*-*-solaris2.11): Add host define to select
191 valid default code page for windres/windmc on solaris.
192
ab7875de
NC
1932010-02-15 Nick Clifton <nickc@redhat.com>
194
195 * po/vi.po: Updated Vietnamese translation.
196
33811162
DG
1972010-02-12 Daniel Gutson <dgutson@codesourcery.com>
198
199 * elf32-arm.c (elf32_arm_output_arch_local_syms): add
200 missing mapping symbol to data only sections.
201
00c50991
DM
2022010-02-11 David S. Miller <davem@davemloft.net>
203
204 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): For R_SPARC_GOTDATA_OP_HIX22
205 and R_SPARC_GOTDATA_OP_LOX10, only bump the GOT refcount for global
206 symbols.
207 (_bfd_sparc_elf_gc_sweep_hook): Likewise only decrement the GOT count for
208 these relocs on global symbols.
209 (gdopoff): New.
210 (_bfd_sparc_elf_relocate_section): Perform GOTDATA optimizations on
211 local symbol references which are not STT_GNU_IFUNC. Handle
212 relocation of them like R_SPARC_HIX22 and R_SPARC_LOX10 respectively,
213 and deal with negative vs. non-negative values properly.
214
1523fa24
TG
2152010-02-09 Tristan Gingold <gingold@adacore.com>
216
217 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Adjust addend for
218 non-external relocation.
219
7865406b
AM
2202010-02-09 Alan Modra <amodra@gmail.com>
221
222 * elf64-ppc.c (merge_got_entries): Move earlier in file.
223 (allocate_dynrelocs): Merge got entries here if not doing multi-toc.
224 (ppc64_elf_size_dynamic_sections): Similarly merge tlsld_got.
225 (ppc64_elf_layout_multitoc): Don't resize if we have already
226 merged got entries.
227
d7eeb400
MS
2282010-02-09 Michael Holzheu <holzheu@de.ibm.com>
229
230 * elf-bfd.h (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
231 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
232 elfcore_write_s390_prefix): New.
233 * elf.c (elfcore_write_s390_timer, elfcore_write_s390_todcmp,
234 elfcore_write_s390_todpreg, elfcore_write_s390_ctrs,
235 elfcore_write_s390_prefix): New.
236 (elfcore_grok_note): Handle NT_S390_TIMER, NT_S390_TODCMP,
237 NT_S390_TODPREG, NT_S390_CTRS and NT_S390_PREFIX.
238 (elfcore_write_register_note): Handle .reg-s390-timer,
239 .reg-s390-todcmp, .reg-s390-todpreg, .reg-s390-ctrs,
240 .reg-s390-prefix section.
241
f961d9dd
AM
2422010-02-09 Alan Modra <amodra@gmail.com>
243
244 * elf64-ppc.c (struct got_entry): Make tls_type and is_indirect
245 unsigned char. Update variables and code using them throughout file.
246 (struct ppc_link_hash_entry): Likewise for tls_mask.
247
d0fae19d
AM
248 * elf64-ppc.c (ppc64_elf_layout_multitoc): Don't merge local got ents.
249
d77c8a4b
AM
250 * elf64-ppc.c (has_small_toc_reloc): Don't define.
251 (makes_toc_func_call, call_check_in_progress): Shuffle flags.
252 (struct ppc64_elf_obj_tdata): Add has_small_toc_reloc. Update
253 code setting the flag.
254 (ppc64_elf_next_toc_section): Group big-toc sections in
255 0x80008000 chunks.
256
72fbc6e5
DM
2572010-02-08 David S. Miller <davem@davemloft.net>
258
259 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove sgot,
260 srelgot, splt, srelplt, and sgotplt members in favor of generic copies.
261
262 * elfxx-sparc.c (create_got_section): Delete.
263 (_bfd_sparc_elf_create_dynamic_sections): Don't call, the dynamic
264 section creator does that work for us. Use ->elf.foo instead of
265 ->foo where applicable.
266 (_bfd_sparc_elf_check_relocs): Use ->elf.foo instead of ->foo
267 where applicable.
268 (allocate_dynrelocs): Likewise.
269 (_bfd_sparc_elf_size_dynamic_sections): Likewise.
270 (_bfd_sparc_elf_relocate_section): Likewise.
271 (sparc_vxworks_build_plt_entry): Likewise.
272 (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
273 (sparc_finish_dyn): Likewise.
274 (sparc_vxworks_finish_exec_plt): Likewise.
275 (sparc_vxworks_finish_shared_plt): Likewise.
276 (_bfd_sparc_elf_finish_dynamic_sections): Likewise.
277
278 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Use the SYMBOL_*
279 macros for visibilty and locality checks.
280 (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
281 (allocate_dynrelocs): Likewise.
282 (_bfd_sparc_elf_relocate_section): Likewise.
283 (_bfd_sparc_elf_finish_dynamic_symbol):Likewise.
284
285 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Remove set
286 but never used local var 'dynobj'.
287
288 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Handle
289 nocopyreloc.
290
d0c9aeb3
DM
291 * reloc.c (BFD_RELOC_SPARC_JMP_IREL): New.
292 (BFD_RELOC_SPARC_IRELATIVE): Likewise.
293 * bfd-in2.h: Regenerate.
294 * libbfd.h: Regenerate.
295
296 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add loc_hash_table
297 and loc_hash_memory.
298 (_bfd_sparc_elf_link_hash_table_free): Declare.
299 * elf32-sparc.c (elf32_sparc_add_symbol_hook): New.
300 (elf_backend_add_symbol_hook, elf_backend_post_process_headers,
301 bfd_elf32_bfd_link_hash_table_free): Define.
302 * elf64-sparc.c (elf64_sparc_add_symbol_hook): Set
303 has_ifunc_symbols if STT_GNU_IFUNC.
304 (bfd_elf64_bfd_link_hash_table_free): Define.
305 (elf_backend_post_process_headers): Define always.
306 * elfxx-sparc.c (sparc_jmp_irel_howto, sparc_irelative_howto): New.
307 (sparc_reloc_map): Add entries for new IFUNC relocs.
308 (_bfd_sparc_elf_reloc_type_lookup): Handle new IFUNC relocs.
309 (_bfd_sparc_elf_info_to_howto_ptr): Likewise.
310 (elf_sparc_local_htab_hash, elf_sparc_local_htab_eq,
311 elf_sparc_get_local_sym_hash): New.
312 (_bfd_sparc_elf_create_dynamic_sections): Move PLT ops initialization
313 from here...
314 (_bfd_sparc_elf_link_hash_table_create): ... to here. Allocate
315 local hash table.
316 (_bfd_sparc_elf_link_hash_table_free): New.
317 (create_ifunc_sections): New.
318 (_bfd_sparc_elf_check_relocs): Unconditionally assign htab->elf.dynobj
319 and call create_ifunc_sections(). For local STT_GNU_IFUNC symbols
320 cons up a fake local hash table entry for it. Unconditionally add
321 a PLT refcount for STT_GNU_IFUNC symbols when h->def_regular. Count
322 dyn relocs for ifunc.
323 (_bfd_sparc_elf_adjust_dynamic_symbol): Handle ifunc.
324 (allocate_dynrelocs): Unconditionally emit a PLT entry when
325 STT_GNU_IFUNC and h->def_regular. Count GOT dyn relocs for ifunc.
326 (allocate_local_dynrelocs): New function.
327 (_bfd_sparc_elf_size_dynamic_sections): Invoke it over the local hash
328 table. Emit dynamic relocs to irelplt when not shared. Treat iplt
329 like splt.
330 (_bfd_sparc_elf_relocate_section): Handle ifunc relocations by hand.
331 (_bfd_sparc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc
332 plt in iplt/irelplt.
333
9ea2b942
RS
3342010-02-08 Richard Sandiford <r.sandiford@uk.ibm.com>
335
336 * xcofflink.c (_bfd_xcoff_bfd_final_link): When calculating
337 max_contents_size, only consider sections whose contents must
338 be swapped in.
339
0b8bcf0d
AM
3402010-02-09 Alan Modra <amodra@gmail.com>
341
342 * elf64-ppc.c (allocate_dynrelocs): Remove unused got structs here..
343 (ppc64_elf_size_dynamic_sections): ..and here..
344 (merge_got_entries): ..rather than here.
345
33c0ec9d
AM
3462010-02-09 Alan Modra <amodra@gmail.com>
347
348 * elf64-ppc.c (struct ppc_link_hash_table): Add do_multi_toc.
349 (has_small_toc_reloc): Define.
350 (ppc64_elf_check_relocs): Set the above flags.
351 (ppc64_elf_edit_opd): Delete obfd param.
352 (ppc64_elf_tls_optimize): Likewise.
353 (ppc64_elf_edit_toc): Likewise.
354 (ppc64_elf_tls_setup): Likewise. Add no_multi_toc param.
355 * elf64-ppc.h: Update prototypes.
356
b0dddeec
AM
3572010-02-08 Alan Modra <amodra@gmail.com>
358
359 * section.c (struct bfd_section): Delete has_tls_reloc,
360 has_tls_get_addr_call, has_gp_reloc, need_finalize_relax, reloc_done.
361 Add sec_flg0 thru sec_flg5.
362 (BFD_FAKE_SECTION): Update for changed flags.
363 * ecoff.c (bfd_debug_section): Likewise.
364 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
365 * elf64-ppc.c (has_tls_reloc, has_tls_get_addr_call): Define.
366 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Update.
367 * elf32-xtensa.c (reloc_done): Define.
368 * elfxx-ia64.c (skip_relax_pass_0, skip_relax_pass_1): Update.
369 * bfd-in2.h: Regenerate.
370
06988dfc
TG
3712010-02-08 Tristan Gingold <gingold@adacore.com>
372
373 * mach-o.c (bfd_mach_o_canonicalize_one_reloc): Set reloc.r_extern
374 for non-scattered relocations.
375
deddc40b
NS
3762010-02-08 Nathan Sidwell <nathan@codesourcery.com>
377
378 * elf32-ppc.c (ppc_elf_begin_write_processing): Allow empty
379 apuinfo sections, only scan input sections once and reuse the
380 buffer.
381
ce3d2015
AM
3822010-02-08 Philipp Tomsich <philipp.tomsich@theobroma-systems.com>
383
384 * archures.c (bfd_mach_ppc_titan): Define.
385 * bfd-in2.h: Regenerate.
386 * cpu-powerpc.c (bfd_powerpc_archs): Add titan entry.
387
06a162cf
AM
3882010-02-08 Alan Modra <amodra@gmail.com>
389
390 * elf32-ppc.c (ppc_elf_check_relocs): Remove dead ifunc code.
391
4c348442
SA
3922010-02-05 Sterling Augustine <sterling@tensilica.com>
393
394 * elf.c (assign_file_positions_for_load_sections) Update lma of
395 section if necessary. Fixes Bugzilla 11219.
396
6bbec505
L
3972010-02-05 H.J. Lu <hongjiu.lu@intel.com>
398
399 * elf32-i386.c: Remove trailing white spaces.
400 * elf64-x86-64.c: Likewise.
401
4dfe6ac6
NC
4022010-02-03 Nick Clifton <nickc@redhat.com>
403
404 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
405 entries for other architectures.
406 (struct elf_link_hash_table): Add hash_table_id field.
407 (elf_hash_table_id): New accessor macro.
408 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
409 parameter.
410 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
411 returning cast pointer.
412 (elf32_mn10300_link_hash_table_create): Identify new table as
413 containing MN10300 extensions.
414 (mn10300_elf_relax_section): Check pointer returned by
415 elf32_mn10300_hash_table.
416 * elf32-arm.c: Likewise, except using ARM extensions.
417 * elf32-avr.c: Likewise, except using AVR extensions.
418 * elf32-bfin.c: Likewise, except using BFIN extensions.
419 * elf32-cris.c: Likewise, except using CRIS extensions.
420 * elf32-frv.c: Likewise, except using FRV extensions.
421 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
422 * elf32-i386.c: Likewise, except using I386 extensions.
423 * elf32-lm32.c: Likewise, except using LM32 extensions.
424 * elf32-m32r.c: Likewise, except using M32RM extensions.
425 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
426 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
427 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
428 * elf32-m68k.c: Likewise, except using M68K extensions.
429 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
430 * elf32-ppc.c: Likewise, except using PPC32 extensions.
431 * elf32-s390.c: Likewise, except using S390 extensions.
432 * elf32-sh.c: Likewise, except using SH extensions.
433 * elf32-spu.c: Likewise, except using SPU extensions.
434 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
435 * elf64-alpha.c: Likewise, except using ALPHA extensions.
436 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
437 * elf64-ppc.c: Likewise, except using PPC64 extensions.
438 * elf64-s390.c: Likewise, except using S390 extensions.
439 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
440 * elfxx-ia64.c: Likewise, except using IA64 extensions.
441 * elfxx-mips.c: Likewise, except using MIPS extensions.
442 * elfxx-sparc.c: Likewise, except using SPARC extensions.
443 * elfxx-sparc.h: Likewise, except using SPARC extensions.
444 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
445 redundant structure.
446 (elf32_cr16_hash_table): Delete unused macro.
447 (elf32_cr16_link_hash_traverse): Delete unused macro.
448 * elf32-score.c: Likewise.
449 * elf32-score7.c: Likewise.
450 * elf32-vax.c: Likewise.
451 * elf64-sh64.c: Likewise.
452
927be08e
AM
4532010-02-03 Alan Modra <amodra@gmail.com>
454
455 * elf64-ppc.c (struct plt_entry): Move earlier in file.
456 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
457 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
458 Update all uses.
459 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
460 Remove no_multi_toc.
461 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
462 when allocating a new struct got_entry.
463 (allocate_got): New function, extracted from..
464 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
465 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
466 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
467 (ppc64_elf_setup_section_lists): Remove output_bfd param and
468 no_multi_toc, add add_stub_section and layout_sections_again. Stash
469 new params in htab. Extract some code to..
470 (ppc64_elf_start_multitoc_partition): ..here. New function.
471 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
472 second pass toc scan.
473 (merge_got_entries, merge_global_got, reallocate_got): New functions.
474 (ppc64_elf_reinit_toc): Rename to..
475 (ppc64_elf_finish_multitoc_partition): ..this.
476 (ppc64_elf_layout_multitoc): New function.
477 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
478 layout_sections_again params.
479 (ppc64_elf_relocate_section): Handle indirect got entries.
480 * elf64-ppc.h: Update prototypes. Declare new functions.
481
4339cae0
L
4822010-02-02 H.J. Lu <hongjiu.lu@intel.com>
483
484 * elf-bfd.h (elfcore_write_xstatereg): New.
485
486 * elf.c (elfcore_grok_xstatereg): New.
487 (elfcore_write_xstatereg): Likewise.
488 (elfcore_grok_note): Handle NT_X86_XSTATE.
489 (elfcore_write_register_note): Handle .reg-xstate section.
490
9848eadf
TG
4912010-02-01 Tristan Gingold <gingold@adacore.com>
492
493 * som.c (som_write_ar_hdr): Define this macro.
494
f6fd0237
DA
4952010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
496
497 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
498 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
499 linkage table pointer to use the global table pointer if not doing
500 a shared link.
501
a1504221
JB
5022010-01-29 Joel Brobecker <brobecker@adacore.com>
503
504 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
505 if it has already been set.
506
771deb08
TG
5072010-01-27 Tristan Gingold <gingold@adacore.com>
508
509 * vms.h: Remove trailing spaces.
510 (struct hdr_struct): Remove unused hdr_c_cpr field.
511 (enum file_format_enum): Add comments.
512 * vms.c (vms_bfd_print_private_bfd_data): New function that
513 replaces the macro.
514 Remove trailing spaces.
515 * vms-misc.c: Improve comments.
516 (_bfd_vms_get_object_record): Also handle files without pads.
517 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
518 * vms-gsd.c (struct flagdescstruct): Make name field const.
519 (gsyflagdesc): Fix typo.
520
bf102f86
AM
5212010-01-27 Alan Modra <amodra@gmail.com>
522
523 PR ld/11217
524 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
525 (ppc64_elf_setup_section_lists): Init them.
526 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
527 and .toc on the same input file.
528 (ppc64_elf_relocate_section): Correct GOT entry offset.
529
8f95b6e4
TG
5302010-01-26 Tristan Gingold <gingold@adacore.com>
531
532 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
533 (bfd_target): Add _bfd_write_ar_hdr_fn field.
534 * archive.c (is_bsd44_extended_name): New macro.
535 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
536 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
537 name.
538 (_bfd_archive_bsd44_construct_extended_name_table): New function.
539 (_bfd_generic_write_ar_hdr): Ditto.
540 (_bfd_bsd44_write_ar_hdr): Ditto.
541 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
542 (bsd_write_armap): Adjust firstreal computation.
543 * libbfd-in.h (struct areltdata): Add extra_size field.
544 (_bfd_generic_write_ar_hdr): Add prototype.
545 (_bfd_bsd44_write_ar_hdr): Ditto.
546 (_bfd_write_ar_hdr): Define.
547 (_bfd_noarchive_write_ar_hdr): Ditto.
548 (_bfd_archive_bsd_write_ar_hdr): Ditto.
549 (_bfd_archive_coff_write_ar_hdr): Ditto.
550 (_bfd_archive_bsd44_slurp_armap): Ditto.
551 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
552 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
553 (_bfd_archive_bsd44_truncate_arname): Ditto.
554 (_bfd_archive_bsd44_write_armap): Ditto.
555 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
556 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
557 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
558 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
559 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
560 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
561 * libbfd.h: Regenerate.
562 * oasys.c (oasys_write_ar_hdr): Define.
563 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
564 * ieee.c (ieee_write_ar_hdr): Define.
565 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
566 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
567 (bfd_pmac_xcoff_backend_data): Ditto.
568 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
569 (bfd_xcoff_aix5_backend_data): Ditto.
570 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
571 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
572 * aout-tic30.c (MY_write_ar_hdr): Ditto.
573 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
574 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
575 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
576 (bfd_mach_o_construct_extended_name_table)
577 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
578 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
579 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
580 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
581 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
582 (bfd_mach_o_construct_extended_name_table)
583 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
584 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
585 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
586 * bfd-in2.h: Regenerate.
587
98da7939
L
5882010-01-26 Alan Modra <amodra@gmail.com>
589 H.J. Lu <hongjiu.lu@intel.com>
590
591 PR ld/11218
592 * elflink.c (elf_link_output_extsym): Do not ignore undefined
593 symbols with ref_regular set when gc_sections is active.
594
766bc656
AM
5952010-01-25 Alan Modra <amodra@gmail.com>
596
597 PR ld/11217
598 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
599 with relocations against undefined weak symbols.
600 (ppc64_elf_relocate_section): Don't optimize calls to undefined
601 weak functions if the symbol is dynamic.
602 (ppc64_elf_relocate_section): Edit tprel tls sequences.
603 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
604 (_bfd_elf_ppc_at_tprel_transform): New function.
605 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
606 * bfd-in2.h: Regenerate.
607
c865e45b
RS
6082010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
609
610 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
611 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
612 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
613 bitsize to 1.
614 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
615
b918acf9
NC
6162010-01-21 Nick Clifton <nickc@redhat.com>
617
618 * elflink.c (elf_link_add_object_symbols): Look up name of
619 undefined symbol both before and after versioning has been
620 applied. Do not bother with symbols that are weakly undefined.
621
55786da2 6222010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
b918acf9 623
55786da2
AK
624 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
625 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
626
a37a68dd
CC
6272010-01-19 Cary Coutant <ccoutant@google.com>
628
629 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
630
ecd12bc1
AM
6312010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
632 Alan Modra <amodra@gmail.com>
633
634 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
635 (elf_object_p): Read e_phnum extension.
636 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
637 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
638 that we can read last program header.
639
f6ebfac0
AM
6402010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
641
642 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
643 R_ARM_THM_CALL entry.
644 (elf32_arm_final_link_relocate): Correct calculation of
645 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
646 or R_ARM_THM_JUMP24 relocation.
647
22eb4b1d
AM
6482010-01-18 Alan Modra <amodra@gmail.com>
649
650 PR 11168
651 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
652 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
653 than 32k sections.
654
6ec12636
JK
6552010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
656
657 Fix compilation warning on gcc-3.4.
658 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
659 parameter index to sec_index according to the function definition.
660
38a7df63
CF
6612010-01-13 Chao-ying Fu <fu@mips.com>
662
663 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
664 It is true for all CPUs.
665 (jal_reloc_p): New function.
666 (mips_elf_calculate_relocation): Rename require_jalxp to
667 cross_mode_jump_p.
668 Update comment for CROSS_MODE_JUMP_P.
669 Set up cross_mode_jump_p based on the mode change.
670 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
671 Update comment for CROSS_MODE_JUMP_P.
672 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
673 Use !cross_mode_jump_p to guard conversion.
674 Convert "jr t9" to "b", if possible.
675 (_bfd_mips_elf_relocate_section): Rename require_jalx to
676 cross_mode_jump_p.
677 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
678 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
679
91b9a4a4
NC
6802010-01-13 Nick Clifton <nickc@redhat.com>
681
682 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
683 "m32c" returns the m32c arch_info_struct and not the m16c
684 arch_info_struct.
685 (arch_info_struct): Use the new scan function.
686 (bfd_m32c_arch): Likewise.
687
618b7301
TG
6882010-01-13 Tristan Gingold <gingold@adacore.com>
689
690 * config.bfd: Remove duplicated target vector for i386-*-darwin.
691 Appends new arch instead of overriding.
692 Use mach_o_x86_64_vec for x86_64-*-darwin.
693 * configure.in: Add mach_o_x86_64_vec.
694 * configure: Regenerate.
695 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
696 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
697 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
698 * Makefile.in: Regenerate.
699 * mach-o-x86-64.c: New file.
700
f88af2f1
TG
7012010-01-13 Tristan Gingold <gingold@adacore.com>
702
703 * reloc.c: Add MACH_O_X86_64 relocations.
704 * bfd-in2.h: Regenerate.
705 * libbfd.h: Regenerate.
706
19172f39
TG
7072010-01-13 Tristan Gingold <gingold@adacore.com>
708
709 * archive.c (normalize): Use lbasename.
710 (bfd_bsd_truncate_arname): Ditto.
711 (bfd_gnu_truncate_arname): Ditto.
712
6cdb8d82
TG
7132010-01-12 Tristan Gingold <gingold@adacore.com>
714
715 * makefile.vms (CFLAGS): Turns warnings into informational messages.
716
9a753de0
TG
7172010-01-11 Tristan Gingold <gingold@adacore.com>
718
719 * mach-o.h: Add x86-64 relocation types.
720
42fa0891
TG
7212010-01-11 Tristan Gingold <gingold@adacore.com>
722
723 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
724 (bfd_mach_o_set_arch_mach): New prototype.
725 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
726 (bfd_mach_o_set_arch_mach): New function.
727 (bfd_mach_o_gen_mkobject): New function.
728 Set TARGET_ARCHITECTURE for the generic back-ends.
729 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
730 Check that TARGET_ARCHITECTURE is defined.
731 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
732 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
733
cba0723b
TG
7342010-01-11 Tristan Gingold <gingold@adacore.com>
735
19172f39 736 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
cba0723b 737
4d421096
NC
7382010-01-11 Nick Clifton <nickc@redhat.com>
739
740 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
741 handling of R_V850_HI16_S relocation.
742
20b1d3e3
AM
7432010-01-11 Alan Modra <amodra@gmail.com>
744
745 PR 11103
746 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
747
a358ecb8
AM
7482010-01-11 Alan Modra <amodra@gmail.com>
749
750 PR 6832
751 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
752 (find_abstract_instance_name): Use it.
753 (parse_comp_unit): Set it.
754
3725885a
RW
7552010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
756
757 * Makefile.in: Regenerate.
758 * configure: Regenerate.
759
3ee87829
TG
7602010-01-08 Tristan Gingold <gingold@adacore.com>
761
762 * archive.c: Remove bfd_special_undocumented_glue.
763
fb34365b
AM
7642010-01-08 Alan Modra <amodra@gmail.com>
765
766 PR ld/11133
767 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
768 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
769 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
770
d023c380
L
7712010-01-07 H.J. Lu <hongjiu.lu@intel.com>
772
773 PR ld/11138
774 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
775 a symbol referenced by DSO is is defined in a non-shared object
776 and forced local.
777
bde6f3eb
L
7782010-01-07 H.J. Lu <hongjiu.lu@intel.com>
779
780 PR ld/11133
781 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
782 undefined __start_XXX/__stop_XXX in all input files and set
783 SEC_KEEP.
784
16583161
L
7852010-01-07 H.J. Lu <hongjiu.lu@intel.com>
786
787 PR ld/11143
788 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
789
16231b7b
DG
7902010-01-04 Daniel Gutson <dgutson@codesourcery.com>
791
792 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
793 before including procfs.h.
794 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
795 * configure.in: Added autoconf probe for the pr_fpreg member.
796 * configure: Regenerated.
797 * config.in: Regenerated.
798 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
799
608fa8d3
JB
8002010-01-04 Joel Brobecker <brobecker@adacore.com>
801
802 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
803 * dwarf2.c (concat_filename): Rename dirname with dir_name
804 to void shadowing the dirname function.
805 Rename subdirname with subdir_name to stay consistent with
806 the new dir_name variable name.
807
0dc93057
AM
8082010-01-04 Edmar Wienskoski <edmar@freescale.com>
809
810 * archures.c: Add bfd_mach_ppc_e500mc64.
811 * bfd-in2.h: Regenerate.
812 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
813 bfd_mach_ppc_e500mc64.
814
baf9bed3
JB
8152010-01-01 Joel Brobecker <brobecker@adacore.com>
816
817 Fix -Wshadow warnings (seen on ppc-aix)
818 * xcofflink.c: Replace finfo by flinfo throughout.
819
43ecc30f 820For older changes see ChangeLog-2009
56882138
AM
821\f
822Local Variables:
823mode: change-log
824left-margin: 8
825fill-column: 74
826version-control: never
827End:
This page took 0.738928 seconds and 4 git commands to generate.