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