82c99ad9aee0b7724af7d6c2fd8a422cbd6069f7
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2010-02-05 Sterling Augustine <sterling@tensilica.com>
2
3 * elf.c (assign_file_positions_for_load_sections) Update lma of
4 section if necessary. Fixes Bugzilla 11219.
5
6 2010-02-05 H.J. Lu <hongjiu.lu@intel.com>
7
8 * elf32-i386.c: Remove trailing white spaces.
9 * elf64-x86-64.c: Likewise.
10
11 2010-02-03 Nick Clifton <nickc@redhat.com>
12
13 * elf-bfd.h (emum elf_object_id): Rename to elf_target_id. Add
14 entries for other architectures.
15 (struct elf_link_hash_table): Add hash_table_id field.
16 (elf_hash_table_id): New accessor macro.
17 * elflink.c (_bfd_elf_link_hash_table_init): Add target_id
18 parameter.
19 * elf-m10300.c (elf32_mn10300_hash_table): Check table id before
20 returning cast pointer.
21 (elf32_mn10300_link_hash_table_create): Identify new table as
22 containing MN10300 extensions.
23 (mn10300_elf_relax_section): Check pointer returned by
24 elf32_mn10300_hash_table.
25 * elf32-arm.c: Likewise, except using ARM extensions.
26 * elf32-avr.c: Likewise, except using AVR extensions.
27 * elf32-bfin.c: Likewise, except using BFIN extensions.
28 * elf32-cris.c: Likewise, except using CRIS extensions.
29 * elf32-frv.c: Likewise, except using FRV extensions.
30 * elf32-hppa.c: Likewise, except using HPPA32 extensions.
31 * elf32-i386.c: Likewise, except using I386 extensions.
32 * elf32-lm32.c: Likewise, except using LM32 extensions.
33 * elf32-m32r.c: Likewise, except using M32RM extensions.
34 * elf32-m68hc11.c: Likewise, except using M68HC11 extensions.
35 * elf32-m68hc1x.c: Likewise, except using M68HC11 extensions.
36 * elf32-m68hc1x.h: Likewise, except using M68HC11 extensions.
37 * elf32-m68k.c: Likewise, except using M68K extensions.
38 * elf32-microblaze.c: Likewise, except using MICROBLAZE extensions.
39 * elf32-ppc.c: Likewise, except using PPC32 extensions.
40 * elf32-s390.c: Likewise, except using S390 extensions.
41 * elf32-sh.c: Likewise, except using SH extensions.
42 * elf32-spu.c: Likewise, except using SPU extensions.
43 * elf32-xtensa.c: Likewise, except using XTENSA extensions.
44 * elf64-alpha.c: Likewise, except using ALPHA extensions.
45 * elf64-hppa.c: Likewise, except using HPPA64 extensions.
46 * elf64-ppc.c: Likewise, except using PPC64 extensions.
47 * elf64-s390.c: Likewise, except using S390 extensions.
48 * elf64-x86-64.c: Likewise, except using X86_64 extensions.
49 * elfxx-ia64.c: Likewise, except using IA64 extensions.
50 * elfxx-mips.c: Likewise, except using MIPS extensions.
51 * elfxx-sparc.c: Likewise, except using SPARC extensions.
52 * elfxx-sparc.h: Likewise, except using SPARC extensions.
53 * elf32-cr16.c (struct elf32_cr16_link_hash_table): Delete
54 redundant structure.
55 (elf32_cr16_hash_table): Delete unused macro.
56 (elf32_cr16_link_hash_traverse): Delete unused macro.
57 * elf32-score.c: Likewise.
58 * elf32-score7.c: Likewise.
59 * elf32-vax.c: Likewise.
60 * elf64-sh64.c: Likewise.
61
62 2010-02-03 Alan Modra <amodra@gmail.com>
63
64 * elf64-ppc.c (struct plt_entry): Move earlier in file.
65 (struct got_entry): Likewise. Add is_indirect and got.ent fields.
66 (struct ppc64_elf_obj_tdata): Change tlsld_got to be a struct got_entry.
67 Update all uses.
68 (struct ppc_link_hash_table): Add got_reli_size and second_toc_pass.
69 Remove no_multi_toc.
70 (update_local_sym_info, ppc64_elf_check_relocs): Clear is_indirect
71 when allocating a new struct got_entry.
72 (allocate_got): New function, extracted from..
73 (allocate_dynrelocs): ..here. Abort on got entry in non-ppc64 bfd.
74 (ppc64_elf_size_dynamic_sections): Track got relocs allocated in
75 .reliplt by got_reli_size. Set owner on ppc64_tlsld_got entries.
76 (ppc64_elf_setup_section_lists): Remove output_bfd param and
77 no_multi_toc, add add_stub_section and layout_sections_again. Stash
78 new params in htab. Extract some code to..
79 (ppc64_elf_start_multitoc_partition): ..here. New function.
80 (ppc64_elf_next_toc_section): Check for linker script errors. Handle
81 second pass toc scan.
82 (merge_got_entries, merge_global_got, reallocate_got): New functions.
83 (ppc64_elf_reinit_toc): Rename to..
84 (ppc64_elf_finish_multitoc_partition): ..this.
85 (ppc64_elf_layout_multitoc): New function.
86 (ppc64_elf_size_stubs): Delete output_bfd, add_stub_section and
87 layout_sections_again params.
88 (ppc64_elf_relocate_section): Handle indirect got entries.
89 * elf64-ppc.h: Update prototypes. Declare new functions.
90
91 2010-02-02 H.J. Lu <hongjiu.lu@intel.com>
92
93 * elf-bfd.h (elfcore_write_xstatereg): New.
94
95 * elf.c (elfcore_grok_xstatereg): New.
96 (elfcore_write_xstatereg): Likewise.
97 (elfcore_grok_note): Handle NT_X86_XSTATE.
98 (elfcore_write_register_note): Handle .reg-xstate section.
99
100 2010-02-01 Tristan Gingold <gingold@adacore.com>
101
102 * som.c (som_write_ar_hdr): Define this macro.
103
104 2010-01-30 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
105
106 * elf32-hppa.c (final_link_relocate): Convert R_PARISC_TLS_GD21L,
107 R_PARISC_TLS_LDM21L and R_PARISC_TLS_IE21L relocations that use the
108 linkage table pointer to use the global table pointer if not doing
109 a shared link.
110
111 2010-01-29 Joel Brobecker <brobecker@adacore.com>
112
113 * elf.c (elfcore_grok_lwpstatus): Do not overwrite the core signal
114 if it has already been set.
115
116 2010-01-27 Tristan Gingold <gingold@adacore.com>
117
118 * vms.h: Remove trailing spaces.
119 (struct hdr_struct): Remove unused hdr_c_cpr field.
120 (enum file_format_enum): Add comments.
121 * vms.c (vms_bfd_print_private_bfd_data): New function that
122 replaces the macro.
123 Remove trailing spaces.
124 * vms-misc.c: Improve comments.
125 (_bfd_vms_get_object_record): Also handle files without pads.
126 * vms-hdr.c (_bfd_vms_write_dbg): Fix format string.
127 * vms-gsd.c (struct flagdescstruct): Make name field const.
128 (gsyflagdesc): Fix typo.
129
130 2010-01-27 Alan Modra <amodra@gmail.com>
131
132 PR ld/11217
133 * elf64-ppc.c (struct ppc_link_hash_table): Add toc_bfd, toc_first_sec.
134 (ppc64_elf_setup_section_lists): Init them.
135 (ppc64_elf_next_toc_section): Don't partition multi-toc between .got
136 and .toc on the same input file.
137 (ppc64_elf_relocate_section): Correct GOT entry offset.
138
139 2010-01-26 Tristan Gingold <gingold@adacore.com>
140
141 * targets.c (BFD_JUMP_TABLE_ARCHIVE): Add initializer for write_ar_hdr.
142 (bfd_target): Add _bfd_write_ar_hdr_fn field.
143 * archive.c (is_bsd44_extended_name): New macro.
144 (_bfd_generic_read_ar_hdr_mag): Use it. Add extra_size.
145 (bfd_slurp_armap): Also check for "__.SYMDEF" as a BSD4.4 extended
146 name.
147 (_bfd_archive_bsd44_construct_extended_name_table): New function.
148 (_bfd_generic_write_ar_hdr): Ditto.
149 (_bfd_bsd44_write_ar_hdr): Ditto.
150 (_bfd_write_archive_contents): Call _bfd_write_ar_hdr.
151 (bsd_write_armap): Adjust firstreal computation.
152 * libbfd-in.h (struct areltdata): Add extra_size field.
153 (_bfd_generic_write_ar_hdr): Add prototype.
154 (_bfd_bsd44_write_ar_hdr): Ditto.
155 (_bfd_write_ar_hdr): Define.
156 (_bfd_noarchive_write_ar_hdr): Ditto.
157 (_bfd_archive_bsd_write_ar_hdr): Ditto.
158 (_bfd_archive_coff_write_ar_hdr): Ditto.
159 (_bfd_archive_bsd44_slurp_armap): Ditto.
160 (_bfd_archive_bsd44_slurp_extended_name_table): Ditto.
161 (_bfd_archive_bsd44_construct_extended_name_table): New prototype.
162 (_bfd_archive_bsd44_truncate_arname): Ditto.
163 (_bfd_archive_bsd44_write_armap): Ditto.
164 (_bfd_archive_bsd44_read_ar_hdr): Ditto.
165 (_bfd_archive_bsd44_write_ar_hdr): Ditto.
166 (_bfd_archive_bsd44_openr_next_archived_file): Ditto.
167 (_bfd_archive_bsd44_get_elt_at_index): Ditto.
168 (_bfd_archive_bsd44_generic_stat_arch_elt): Ditto.
169 (_bfd_archive_bsd44_update_armap_timestamp): Ditto.
170 * libbfd.h: Regenerate.
171 * oasys.c (oasys_write_ar_hdr): Define.
172 * libecoff.h (_bfd_ecoff_write_ar_hdr): Define.
173 * ieee.c (ieee_write_ar_hdr): Define.
174 * elf64-mips.c (bfd_elf64_archive_write_ar_hdr): Define.
175 * coff-rs6000.c (rs6000coff_vec): Adjust for write_ar_hdr field.
176 (bfd_pmac_xcoff_backend_data): Ditto.
177 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
178 (bfd_xcoff_aix5_backend_data): Ditto.
179 * coff-alpha.c (alpha_ecoff_write_ar_hdr): Define.
180 * aout-target.h (MY_write_ar_hdr): Define it if not defined.
181 * aout-tic30.c (MY_write_ar_hdr): Ditto.
182 * mach-o-target.c (TARGET_NAME): Use _bfd_archive_bsd44 archive.
183 (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
184 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
185 (bfd_mach_o_construct_extended_name_table)
186 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
187 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
188 (bfd_mach_o_update_armap_timestamp): Moved to mach-o.c
189 * mach-o.c (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr)
190 (bfd_mach_o_slurp_armap, bfd_mach_o_slurp_extended_name_table)
191 (bfd_mach_o_construct_extended_name_table)
192 (bfd_mach_o_truncate_arname, bfd_mach_o_write_armap)
193 (bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt)
194 (bfd_mach_o_update_armap_timestamp): Moved from mach-o-target.c
195 * bfd-in2.h: Regenerate.
196
197 2010-01-26 Alan Modra <amodra@gmail.com>
198 H.J. Lu <hongjiu.lu@intel.com>
199
200 PR ld/11218
201 * elflink.c (elf_link_output_extsym): Do not ignore undefined
202 symbols with ref_regular set when gc_sections is active.
203
204 2010-01-25 Alan Modra <amodra@gmail.com>
205
206 PR ld/11217
207 * elf64-ppc.c (ppc64_elf_tls_optimize): Optimize tls sequences
208 with relocations against undefined weak symbols.
209 (ppc64_elf_relocate_section): Don't optimize calls to undefined
210 weak functions if the symbol is dynamic.
211 (ppc64_elf_relocate_section): Edit tprel tls sequences.
212 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
213 (_bfd_elf_ppc_at_tprel_transform): New function.
214 * bfd-in.h (_bfd_elf_ppc_at_tprel_transform): Declare.
215 * bfd-in2.h: Regenerate.
216
217 2010-01-23 Richard Sandiford <r.sandiford@uk.ibm.com>
218
219 * coff-rs6000.c (xcoff_howto_table): Change size to 0 and bitsize to 1.
220 (_bfd_xcoff_reloc_type_lookup): Handle BFD_RELOC_NONE.
221 * coff64-rs6000.c (xcoff64_howto_table): Change size to 0 and
222 bitsize to 1.
223 (xcoff64_reloc_type_lookup): Handle BFD_RELOC_NONE.
224
225 2010-01-21 Nick Clifton <nickc@redhat.com>
226
227 * elflink.c (elf_link_add_object_symbols): Look up name of
228 undefined symbol both before and after versioning has been
229 applied. Do not bother with symbols that are weakly undefined.
230
231 2010-01-21 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
232
233 * elf32-s390.c (elf32_s390_merge_private_bfd_data): New function.
234 (bfd_elf32_bfd_merge_private_bfd_data): New macro definition.
235
236 2010-01-19 Cary Coutant <ccoutant@google.com>
237
238 * dwarf2.c (read_attribute_value): Add DW_FORM_ref_sig8.
239
240 2010-01-19 Daisuke Hatayama <d.hatayama@jp.fujitsu.com>
241 Alan Modra <amodra@gmail.com>
242
243 * elfcode.h (elf_swap_ehdr_out): Handle e_phnum > 0xffff.
244 (elf_object_p): Read e_phnum extension.
245 (elf_write_shdrs_and_ehdr): Write e_phnum extension.
246 * elfcore.h (elf_core_file_p): Read e_phnum extension. Sanity check
247 that we can read last program header.
248
249 2010-01-19 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
250
251 * elf32-arm.c (elf32_arm_howto_table_1): Correct bitsize of
252 R_ARM_THM_CALL entry.
253 (elf32_arm_final_link_relocate): Correct calculation of
254 reloc_signed_max when doing a R_ARM_THM_CALL, R_ARM_THM_XPC22,
255 or R_ARM_THM_JUMP24 relocation.
256
257 2010-01-18 Alan Modra <amodra@gmail.com>
258
259 PR 11168
260 * coffcode.h (coff_compute_section_file_positions): Move Rs6000COFF_C
261 block past vars in COFF_IMAGE_WITH_PE block. Report error on more
262 than 32k sections.
263
264 2010-01-15 Jan Kratochvil <jan.kratochvil@redhat.com>
265
266 Fix compilation warning on gcc-3.4.
267 * vms-tir.c (start_etir_record, sto_imm): Rename the prototype
268 parameter index to sec_index according to the function definition.
269
270 2010-01-13 Chao-ying Fu <fu@mips.com>
271
272 * elfxx-mips.c (JR_TO_B_P): New define to transform JR to B.
273 It is true for all CPUs.
274 (jal_reloc_p): New function.
275 (mips_elf_calculate_relocation): Rename require_jalxp to
276 cross_mode_jump_p.
277 Update comment for CROSS_MODE_JUMP_P.
278 Set up cross_mode_jump_p based on the mode change.
279 (mips_elf_perform_relocation): Rename require_jalx to cross_mode_jump_p.
280 Update comment for CROSS_MODE_JUMP_P.
281 Test cross_mode_jump_p and jal_reloc_p to turn jal to jalx.
282 Use !cross_mode_jump_p to guard conversion.
283 Convert "jr t9" to "b", if possible.
284 (_bfd_mips_elf_relocate_section): Rename require_jalx to
285 cross_mode_jump_p.
286 Pass &cross_mode_jump_p to call mips_elf_calculate_relocation.
287 Pass cross_mode_jump_p to call mips_elf_perform_relocation.
288
289 2010-01-13 Nick Clifton <nickc@redhat.com>
290
291 * cpu-m32c.c (m32c_scan): New function. Ensures that a scan for
292 "m32c" returns the m32c arch_info_struct and not the m16c
293 arch_info_struct.
294 (arch_info_struct): Use the new scan function.
295 (bfd_m32c_arch): Likewise.
296
297 2010-01-13 Tristan Gingold <gingold@adacore.com>
298
299 * config.bfd: Remove duplicated target vector for i386-*-darwin.
300 Appends new arch instead of overriding.
301 Use mach_o_x86_64_vec for x86_64-*-darwin.
302 * configure.in: Add mach_o_x86_64_vec.
303 * configure: Regenerate.
304 * targets.c: Declare mach_o_x86_64_vec, add it to _bfd_target_vector.
305 * Makefile.am (BFD64_BACKENDS): Add mach-o-x86-64.lo
306 (BFD64_BACKENDS_CFILES): Add mach-o-x86-64.c
307 * Makefile.in: Regenerate.
308 * mach-o-x86-64.c: New file.
309
310 2010-01-13 Tristan Gingold <gingold@adacore.com>
311
312 * reloc.c: Add MACH_O_X86_64 relocations.
313 * bfd-in2.h: Regenerate.
314 * libbfd.h: Regenerate.
315
316 2010-01-13 Tristan Gingold <gingold@adacore.com>
317
318 * archive.c (normalize): Use lbasename.
319 (bfd_bsd_truncate_arname): Ditto.
320 (bfd_gnu_truncate_arname): Ditto.
321
322 2010-01-12 Tristan Gingold <gingold@adacore.com>
323
324 * makefile.vms (CFLAGS): Turns warnings into informational messages.
325
326 2010-01-11 Tristan Gingold <gingold@adacore.com>
327
328 * mach-o.h: Add x86-64 relocation types.
329
330 2010-01-11 Tristan Gingold <gingold@adacore.com>
331
332 * mach-o.h (bfd_mach_o_backend_data): Add arch field.
333 (bfd_mach_o_set_arch_mach): New prototype.
334 * mach-o.c (bfd_mach_o_mkobject): Define with bfd_mach_o_gen_mkobject.
335 (bfd_mach_o_set_arch_mach): New function.
336 (bfd_mach_o_gen_mkobject): New function.
337 Set TARGET_ARCHITECTURE for the generic back-ends.
338 * mach-o-target.c (bfd_mach_o_set_arch_mach): Remove define.
339 Check that TARGET_ARCHITECTURE is defined.
340 Add TARGET_ARCHITECTURE in TARGET_NAME_BACKEND structure.
341 * mach-o-i386.c (TARGET_ARCHITECTURE): Define.
342
343 2010-01-11 Tristan Gingold <gingold@adacore.com>
344
345 * archive.c (bfd_slurp_armap): Also check for Mach-O sorted armap.
346
347 2010-01-11 Nick Clifton <nickc@redhat.com>
348
349 * elf32-v850.c (v850_elf_perform_relocation): Fix overflow
350 handling of R_V850_HI16_S relocation.
351
352 2010-01-11 Alan Modra <amodra@gmail.com>
353
354 PR 11103
355 * dwarf1.c (parse_die): Correct FORM_STRING data pointer increment.
356
357 2010-01-11 Alan Modra <amodra@gmail.com>
358
359 PR 6832
360 * dwarf2.c (struct comp_unit): Add sec_info_ptr.
361 (find_abstract_instance_name): Use it.
362 (parse_comp_unit): Set it.
363
364 2010-01-09 Ralf Wildenhues <Ralf.Wildenhues@gmx.de>
365
366 * Makefile.in: Regenerate.
367 * configure: Regenerate.
368
369 2010-01-08 Tristan Gingold <gingold@adacore.com>
370
371 * archive.c: Remove bfd_special_undocumented_glue.
372
373 2010-01-08 Alan Modra <amodra@gmail.com>
374
375 PR ld/11133
376 * elf32-cr16.c (elf32_cr16_gc_mark_hook): Call _bfd_elf_gc_mark_hook.
377 * elf32-microblaze.c (microblaze_elf_gc_mark_hook): Likewise.
378 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Likewise.
379
380 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
381
382 PR ld/11138
383 * elflink.c (elf_link_check_versioned_symbol): Don't abort if
384 a symbol referenced by DSO is is defined in a non-shared object
385 and forced local.
386
387 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
388
389 PR ld/11133
390 * elflink.c (_bfd_elf_gc_mark_hook): Check section XXX for
391 undefined __start_XXX/__stop_XXX in all input files and set
392 SEC_KEEP.
393
394 2010-01-07 H.J. Lu <hongjiu.lu@intel.com>
395
396 PR ld/11143
397 * elflink.c (elf_gc_sweep): Keep SHT_NOTE section.
398
399 2010-01-04 Daniel Gutson <dgutson@codesourcery.com>
400
401 * bfd.m4 (BFD_HAVE_SYS_PROCFS_TYPE): Define _STRUCTURE_PROC
402 before including procfs.h.
403 (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Likewise.
404 * configure.in: Added autoconf probe for the pr_fpreg member.
405 * configure: Regenerated.
406 * config.in: Regenerated.
407 * elf.c: Define _STRUCTURE_PROC before including procfs.h.
408
409 2010-01-04 Joel Brobecker <brobecker@adacore.com>
410
411 Fix -Wshadow warnings in dwarf2.c (seen on alpha-tru64).
412 * dwarf2.c (concat_filename): Rename dirname with dir_name
413 to void shadowing the dirname function.
414 Rename subdirname with subdir_name to stay consistent with
415 the new dir_name variable name.
416
417 2010-01-04 Edmar Wienskoski <edmar@freescale.com>
418
419 * archures.c: Add bfd_mach_ppc_e500mc64.
420 * bfd-in2.h: Regenerate.
421 * cpu-powerpc.c (bfd_powerpc_archs): Add entry for
422 bfd_mach_ppc_e500mc64.
423
424 2010-01-01 Joel Brobecker <brobecker@adacore.com>
425
426 Fix -Wshadow warnings (seen on ppc-aix)
427 * xcofflink.c: Replace finfo by flinfo throughout.
428
429 For older changes see ChangeLog-2009
430 \f
431 Local Variables:
432 mode: change-log
433 left-margin: 8
434 fill-column: 74
435 version-control: never
436 End:
This page took 0.040083 seconds and 4 git commands to generate.