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