PR ld/14052
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2012-05-05 Alan Modra <amodra@gmail.com>
2
3 PR ld/14052
4 PR ld/13621
5 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
6
7 2012-05-05 Alan Modra <amodra@gmail.com>
8
9 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
10 bfd_und_section and bfd_ind_section with their _ptr variants, or
11 use corresponding bfd_is_* macros.
12 * aout-ns32k.c: Likewise.
13 * aout-tic30.c: Likewise.
14 * coff-arm.c: Likewise.
15 * coff-tic54x.c: Likewise.
16 * cpu-ns32k.c: Likewise.
17 * elf-attrs.c: Likewise.
18 * elfcode.h: Likewise.
19 * peicode.h: Likewise.
20 * reloc.c: Likewise.
21 * riscix.c: Likewise.
22 * versados.c: Likewise.
23 * section.c: Likewise.
24 (bfd_abs_section, bfd_ind_section, bfd_com_section,
25 bfd_ind_section): Delete.
26 (std_section): New array replacing above.
27 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
28 bfd_ind_section_ptr, STD_SECTION): Update.
29 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
30 * bfd-in2.h: Regenerate.
31
32 2012-05-03 Sean Keys <skeys@ipdatasys.com>
33
34 * cpu-xgate.c: New file. Added XGATE support.
35 * archures.c (bfd_architecture): Add XGATE architecture.
36 (bfd_archures_list): Add reference to XGATE architecture info.
37 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
38 * reloc.c: Add various XGATE relocation enums.
39 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
40 list.
41 * Makefile.am: Add support for XGATE elf.
42 * configure.in: Ditto.
43 * config.bfd: Ditto.
44 * Makefile.in: Regenerate.
45 * configure: Ditto.
46 * bfd-in2.h: Ditto.
47 * libbfd.h: Ditto.
48 Added files for XGATE relocations.
49 * elf32-xgate.c: Created minimal relocation file.
50 * elf32-xgate.h: Created minimal header file for elf32-xgate.
51
52 2012-05-03 Tristan Gingold <gingold@adacore.com>
53
54 * dwarf2.c (decode_line_info): Ignore
55 DW_LNE_HP_source_file_correlation.
56
57 2012-05-01 Nick Clifton <nickc@redhat.com>
58
59 PR binutils/13121
60 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
61 AIX system headers.
62 * coff-ppc.c: Likewise.
63 * cofflink.c: Likewise.
64 * elf32-arm.c: Likewise.
65 * elf64-sparc.c: Likewise.
66 * elflink.c: Likewise.
67 * pdp11.c: Likewise.
68 * rescoff.c: Likewise.
69
70 2012-04-26 Mark Wielaard <mjw@redhat.com>
71
72 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
73 possibly being relative to DW_AT_low_pc.
74 (parse_comp_unit): Likewise.
75
76 2012-04-26 Andreas Schwab <schwab@linux-m68k.org>
77
78 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
79 also when generating PIE.
80 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
81 by relocations as dynamic.
82
83 2012-04-26 Hans-Peter Nilsson <hp@axis.com>
84
85 Provide a way for programs to recognize BFD_ASSERT calls.
86 * bfd.c (bfd_assert_handler_type): New API type.
87 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
88 (_bfd_assert_handler): New variable.
89 (_bfd_default_assert_handler): New function.
90 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
91 * libbfd-in.h (_bfd_assert_handler): Declare.
92 * libbfd.h, bfd-in2.h: Regenerate.
93
94 2012-04-24 Hans-Peter Nilsson <hp@axis.com>
95
96 PR ld/13990
97 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
98 symbol, where PLT refcount is set to -1.
99
100 2012-04-24 Alan Modra <amodra@gmail.com>
101
102 PR ld/13991
103 * bfd/elf-bfd.h (_bfd_elf_link_just_syms): Define as
104 _bfd_generic_link_just_syms.
105 * bfd/elflink.c (_bfd_elf_link_just_syms): Delete.
106 * bfd/linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
107
108 * bfd/bfd-in.h (discarded_section): Renamed from elf_discarded_section.
109 * bfd/section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
110 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
111 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
112 * bfd/elf-eh-frame.c, * bfd/elf-m10200.c, * bfd/elf-m10300.c,
113 * bfd/elf.c, * bfd/elf32-arm.c, * bfd/elf32-avr.c, * bfd/elf32-bfin.c,
114 * bfd/elf32-cr16.c, * bfd/elf32-cr16c.c, * bfd/elf32-cris.c,
115 * bfd/elf32-crx.c, * bfd/elf32-d10v.c, * bfd/elf32-epiphany.c,
116 * bfd/elf32-fr30.c, * bfd/elf32-frv.c, * bfd/elf32-h8300.c,
117 * bfd/elf32-hppa.c, * bfd/elf32-i370.c, * bfd/elf32-i386.c,
118 * bfd/elf32-i860.c, * bfd/elf32-ip2k.c, * bfd/elf32-iq2000.c,
119 * bfd/elf32-lm32.c, * bfd/elf32-m32c.c, * bfd/elf32-m32r.c,
120 * bfd/elf32-m68hc1x.c, * bfd/elf32-m68k.c, * bfd/elf32-mcore.c,
121 * bfd/elf32-mep.c, * bfd/elf32-moxie.c, * bfd/elf32-msp430.c,
122 * bfd/elf32-mt.c, * bfd/elf32-openrisc.c, * bfd/elf32-ppc.c,
123 * bfd/elf32-rl78.c, * bfd/elf32-rx.c, * bfd/elf32-s390.c,
124 * bfd/elf32-score.c, * bfd/elf32-score7.c, * bfd/elf32-sh.c,
125 * bfd/elf32-spu.c, * bfd/elf32-tic6x.c, * bfd/elf32-tilepro.c,
126 * bfd/elf32-v850.c, * bfd/elf32-vax.c, * bfd/elf32-xc16x.c,
127 * bfd/elf32-xstormy16.c, * bfd/elf32-xtensa.c, * bfd/elf64-alpha.c,
128 * bfd/elf64-hppa.c, * bfd/elf64-ia64-vms.c, * bfd/elf64-mmix.c,
129 * bfd/elf64-ppc.c, * bfd/elf64-s390.c, * bfd/elf64-sh64.c,
130 * bfd/elf64-x86-64.c, * bfd/elflink.c, * bfd/elfnn-ia64.c,
131 * bfd/elfxx-mips.c, * bfd/elfxx-sparc.c, * bfd/elfxx-tilegx.c,
132 * bfd/reloc.c: Update all references.
133 * bfd/bfd-in2.h: Regenerate.
134
135 2012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
136
137 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
138 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
139
140 2012-04-19 Thomas Schwinge <thomas@codesourcery.com>
141
142 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
143 got_type.
144 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
145 it.
146
147 2012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
148
149 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
150 relocations when LE conversion happens on the IE tls symbol.
151
152 2012-04-17 Roland McGrath <mcgrathr@google.com>
153
154 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
155 so that 32-byte boundary is a proper instruction boundary.
156
157 2012-04-17 Tristan Gingold <gingold@adacore.com>
158
159 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
160 member of an object archive.<
161
162 2012-04-17 Tristan Gingold <gingold@adacore.com>
163
164 * vms-lib.c (MAX_EKEYLEN): Define.
165 (MAX_KEYLEN): Fix value.
166 (vms_write_index): Add comments and fix indentation.
167 Adjust comparaison. Add assertions. Free kbn_blk.
168 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
169 Compense MAX_KEYLEN adjustment.
170
171 2012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
172
173 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
174 (_bfd_mips_elf_check_relocs): Update accordingly.
175
176 2012-04-13 Alan Modra <amodra@gmail.com>
177
178 PR ld/13947
179 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
180 reloc sections.
181
182 2012-04-12 David S. Miller <davem@davemloft.net>
183
184 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
185 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
186 * libbfd.h: Regenerate.
187 * bfd-in2.h: Likewise.
188 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
189 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
190 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
191 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
192 (_bfd_sparc_elf_check_relocs): Likewise.
193 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
194 (_bfd_sparc_elf_relocate_section): Likewise.
195
196 2012-04-12 Roland McGrath <mcgrathr@google.com>
197
198 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
199 New variables.
200 (struct elf32_arm_link_hash_table): New member `nacl_p'.
201 (elf32_arm_link_hash_table_create): Initialize it.
202 (elf32_arm_nacl_link_hash_table_create): New function.
203 (arm_movw_immediate, arm_movt_immediate): New functions.
204 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
205 (elf32_arm_finish_dynamic_sections): Likewise.
206 (elf32_arm_output_plt_map_1): Likewise.
207 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
208 New backend vector stanza.
209 (elf32_arm_nacl_modify_segment_map): New function.
210 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
211 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
212 * configure.in: Likewise.
213 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
214 (bfd_elf32_littlearm_nacl_vec): Likewise.
215 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
216 (bfd_elf32_bigarm_symbian_vec): Likewise.
217 (bfd_elf32_littlearm_symbian_vec): Likewise.
218 (bfd_elf32_bigarm_vxworks_vec): Likewise.
219 (bfd_elf32_littlearm_vxworks_vec): Likewise.
220 * configure: Regenerated.
221
222 2012-04-12 Tristan Gingold <gingold@adacore.com>
223
224 * elflink.c (elf_link_output_extsym): Add a guard.
225 (bfd_elf_final_link): Remove assertion.
226 (bfd_elf_final_link): Add a guard.
227 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
228 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
229 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
230 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
231 Remove.
232 (elfNN-ia64-vms target): Move to ...
233 * elf64-ia64-vms.c: New file.
234 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
235 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
236 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
237 * configure: Regenerate.
238 * Makefile.in: Regenerate.
239
240 2012-04-11 Nick Clifton <nickc@redhat.com>
241
242 PR binutils/13897
243 * elf64-ppc.c (opd_entry_value): When dealing with sections
244 without relocs, keep the last section loaded in order to avoid
245 unnecessary reloads.
246
247 2012-04-09 Roland McGrath <mcgrathr@google.com>
248
249 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
250 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
251 (nacl_modify_program_headers): Likewise.
252
253 2012-04-03 Roland McGrath <mcgrathr@google.com>
254
255 * elf-nacl.c: New file.
256 * elf-nacl.h: New file.
257 * elf32-i386.c (elf_backend_modify_segment_map): Define for
258 bfd_elf32_i386_nacl_vec.
259 (elf_backend_modify_program_headers): Likewise.
260 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
261 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
262 (elf_backend_modify_program_headers): Likewise.
263 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
264 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
265 * Makefile.in: Regenerated.
266 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
267 (bfd_elf32_x86_64_nacl_vec): Likewise.
268 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
269 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
270 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
271 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
272 (bfd_elf32_i386_nacl_vec): Likewise.
273 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
274 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
275 * configure: Regenerated.
276
277 2012-03-31 Andreas Schwab <schwab@linux-m68k.org>
278
279 * elf32-m68k.c (elf_m68k_relocate_section): Allow
280 R_68K_TLS_LE{8,16,32} for PIE.
281
282 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
283
284 * elf64-s390.c: Fix several comments regarding PLT entry
285 description.
286 * elf32-s390.c: Likewise.
287
288 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
289
290 * elf64-s390.c: Use the section pointer shortcuts in
291 elf_link_hash_table and remove them from the target specific
292 variant.
293 * elf32-s390.c: Likewise.
294
295 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
296
297 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
298 New definitions.
299 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
300 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
301 (elf_s390_finish_dynamic_sections): Likewise.
302 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
303 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
304 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
305 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
306 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
307
308 2012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
309
310 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
311 Rename all occurrences in the file to elf_dyn_relocs.
312 * elf64-s390.c: Likewise.
313
314 2012-03-30 Alan Modra <amodra@gmail.com>
315
316 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
317 libraries.
318
319 2012-03-29 Alan Modra <amodra@gmail.com>
320
321 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
322 * bfd-in2.h: Regenerate.
323
324 2012-03-23 Alan Modra <amodra@gmail.com>
325
326 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
327 on empty alloc sections.
328
329 2012-03-23 Alan Modra <amodra@gmail.com>
330
331 * linker.c (_bfd_nearby_section): New function, split out from..
332 (fix_syms): ..here.
333 * bfd-in.h (_bfd_nearby_section): Declare.
334 * bfd-in2.h: Regenerate.
335 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
336 data_index_section with ld -q or ld -r output relocs against
337 stripped output sections. Instead use _bfd_nearby_section.
338
339 2012-03-23 Alan Modra <amodra@gmail.com>
340
341 PR binutils/13894
342 * elf64-ppc.c (opd_entry_value): Read full symbol table when
343 sym hashes unavailable.
344
345 2012-03-21 Eliot Dresselhaus <eliot@sonic.net>
346
347 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
348 for non-C6X objects.
349
350 2012-03-20 Kai Tietz <ktietz@redhat.com>
351
352 PR ld/12742
353 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
354 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
355 Add windows.h header include if HAVE_WINDOWS_H is defined.
356 (dlerror): New static function if windows variant is used instead
357 of dlfcn.h.
358 (dlclose): Likewise.
359 (dlopen): Likewise.
360 (dlsym): Likewise.
361 * configure: Regenerated.
362 * config.in: Regenerated.
363
364 2012-03-20 H.J. Lu <hongjiu.lu@intel.com>
365
366 PR ld/13880
367 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
368 for R_386_GOTOFF relocation against protected function if
369 SYMBOLIC_BIND is true.
370
371 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
372 error for R_X86_64_GOTOFF64 relocation against protected function
373 when building executable or SYMBOLIC_BIND is true.
374
375 2012-03-16 Roland McGrath <mcgrathr@google.com>
376
377 * config.bfd: Handle x86_64-*-nacl*.
378 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
379 (bfd_elf32_x86_64_nacl_vec): Likewise.
380 * targets.c: Support them.
381 * configure.in: Likewise.
382 * configure: Regenerated.
383
384 2012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
385
386 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
387 (elf32_arm_attributes_forbid_div): Likewise.
388 (elf32_arm_merge_eabi_attributes): Correct handling of
389 Tag_DIV_use.
390
391 2012-03-15 Roland McGrath <mcgrathr@google.com>
392
393 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
394 elf_x86_64_backend_data parameters for plt_eh_frame.
395
396 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
397 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
398 (elf_x86_64_arch_bed): New variable.
399 (elf_backend_arch_data): New macro.
400 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
401 (elf_x86_64_allocate_dynrelocs): Likewise.
402 (elf_x86_64_relocate_section): Likewise.
403 (elf_x86_64_plt_sym_val): Likewise.
404 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
405 parameters for PLT details.
406 (elf_x86_64_finish_dynamic_sections): Likewise.
407
408 2012-03-14 Roland McGrath <mcgrathr@google.com>
409
410 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
411 to the full size, padding out with nop instructions.
412
413 2012-03-12 Alan Modra <amodra@gmail.com>
414
415 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
416 on zero size dynbss symbol.
417 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
418 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
419 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
420 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
421 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
422 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
423 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
424 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
425 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
426 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
427 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
428 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
429 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
430 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
431 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
432 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
433 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
434 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
435 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
436 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
437 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
438
439 2012-03-10 Edmar Wienskoski <edmar@freescale.com>
440
441 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
442 * bfd-in2.h: Regenerate.
443 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
444 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
445
446 2012-03-09 H.J. Lu <hongjiu.lu@intel.com>
447
448 PR ld/13817
449 * bfd/elf32-i386.c (elf_i386_relocate_section): Restore
450 R_386_IRELATIVE.
451
452 * * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
453 R_X86_64_IRELATIVE.
454
455 2012-03-08 Tristan Gingold <gingold@adacore.com>
456
457 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
458 keylen according to archive kind. Set nextvbn and nextrfa lhd
459 fields. Add comments.
460
461 2012-03-07 Nick Clifton <nickc@redhat.com>
462
463 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
464 field.
465 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
466 (elf_mn10300_tdata): Define.
467 (elf_mn10300_local_got_tls_type): Define.
468 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
469 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
470 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
471 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
472 (mn10300_reloc_map): Likewise.
473 (elf_mn10300_tls_transition): New function.
474 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
475 (mn10300_elf_check_relocs): Add TLS support.
476 (mn10300_elf_final_link_relocate): Likewise.
477 (mn10300_elf_relocate_section): Likewise.
478 (mn10300_elf_relax_section): Likewise.
479 (elf32_mn10300_link_hash_newfunc): Initialise new field.
480 (_bfd_mn10300_copy_indirect_symbol): New function.
481 (elf32_mn10300_link_hash_table_create): Initialise new fields.
482 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
483 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
484 (_bfd_mn10300_elf_reloc_type_class): Allocate an
485 elf_mn10300_obj_tdata structure.
486 (elf_backend_copy_indirect_symbol): Define.
487 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
488 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
489 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
490 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
491 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
492 alongside other MN10300 relocations.
493 * bfd-in2.h: Regenerate.
494 * libbfd.h: Regenerate.
495
496 2012-03-06 Jakub Jelinek <jakub@redhat.com>
497
498 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
499 set relocate to TRUE.
500
501 2012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
502
503 PR ld/12152
504 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
505 overflows for R_SPARC_UA32 in .stab sections.
506
507 2012-03-01 Alan Modra <amodra@gmail.com>
508
509 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
510
511 2012-02-27 Alan Modra <amodra@gmail.com>
512
513 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
514 before calling elf specific function.
515 (sh_elf_osec_readonly_p): Test for error return from above.
516
517 2012-02-27 Alan Modra <amodra@gmail.com>
518
519 * elf32-spu.c (build_stub): Fix malloc under-allocation.
520
521 2012-02-25 Walter Lee <walt@tilera.com>
522 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
523 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
524 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
525 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
526 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
527 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
528 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
529 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
530 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
531 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
532 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
533 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
534 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
535 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
536 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
537 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
538 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
539 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
540 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
541 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
542 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
543 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
544 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
545 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
546 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
547 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
548 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
549 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
550 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
551 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
552 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
553 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
554 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
555 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
556 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
557 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
558 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
559 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
560 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
561 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
562 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
563 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
564 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
565 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
566 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
567 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
568 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
569 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
570 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
571 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
572 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
573 relocations.
574 (tilepro_reloc_map): Ditto.
575 (tilepro_info_to_howto_rela): Ditto.
576 (reloc_to_create_func): Ditto.
577 (tilepro_tls_translate_to_le): New.
578 (tilepro_tls_translate_to_ie): New.
579 (tilepro_elf_tls_transition): New.
580 (tilepro_elf_check_relocs): Handle new tls relocations.
581 (tilepro_elf_gc_sweep_hook): Ditto.
582 (allocate_dynrelocs): Ditto.
583 (tilepro_elf_relocate_section): Ditto.
584 (tilepro_replace_insn): New.
585 (insn_mask_X1): New.
586 (insn_mask_X0_no_dest_no_srca): New
587 (insn_mask_X1_no_dest_no_srca): New
588 (insn_mask_Y0_no_dest_no_srca): New
589 (insn_mask_Y1_no_dest_no_srca): New
590 (srca_mask_X0): New
591 (srca_mask_X1): New
592 (insn_tls_le_move_X1): New
593 (insn_tls_le_move_zero_X0X1): New
594 (insn_tls_ie_lw_X1): New
595 (insn_tls_ie_add_X0X1): New
596 (insn_tls_ie_add_Y0Y1): New
597 (insn_tls_gd_add_X0X1): New
598 (insn_tls_gd_add_Y0Y1): New
599 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
600 relocations.
601 (tilegx_reloc_map): Ditto.
602 (tilegx_info_to_howto_rela): Ditto.
603 (reloc_to_create_func): Ditto.
604 (tilegx_elf_link_hash_table): New field disable_le_transition.
605 (tilegx_tls_translate_to_le): New.
606 (tilegx_tls_translate_to_ie): New.
607 (tilegx_elf_tls_transition): New.
608 (tilegx_elf_check_relocs): Handle new tls relocations.
609 (tilegx_elf_gc_sweep_hook): Ditto.
610 (allocate_dynrelocs): Ditto.
611 (tilegx_elf_relocate_section): Ditto.
612 (tilegx_copy_bits): New.
613 (tilegx_replace_insn): New.
614 (insn_mask_X1): New.
615 (insn_mask_X0_no_dest_no_srca): New.
616 (insn_mask_X1_no_dest_no_srca): New.
617 (insn_mask_Y0_no_dest_no_srca): New.
618 (insn_mask_Y1_no_dest_no_srca): New.
619 (insn_mask_X0_no_operand): New.
620 (insn_mask_X1_no_operand): New.
621 (insn_mask_Y0_no_operand): New.
622 (insn_mask_Y1_no_operand): New.
623 (insn_tls_ie_ld_X1): New.
624 (insn_tls_ie_ld4s_X1): New.
625 (insn_tls_ie_add_X0X1): New.
626 (insn_tls_ie_add_Y0Y1): New.
627 (insn_tls_ie_addx_X0X1): New.
628 (insn_tls_ie_addx_Y0Y1): New.
629 (insn_tls_gd_add_X0X1): New.
630 (insn_tls_gd_add_Y0Y1): New.
631 (insn_move_X0X1): New.
632 (insn_move_Y0Y1): New.
633 (insn_add_X0X1): New.
634 (insn_add_Y0Y1): New.
635 (insn_addx_X0X1): New.
636 (insn_addx_Y0Y1): New.
637 * libbfd.h: Regenerate.
638 * bfd-in2.h: Regenerate.
639
640 2012-02-25 Walter Lee <walt@tilera.com>
641
642 * config.bfd (tilegx-*-*): rename little endian vector; add big
643 endian vector.
644 (tilegxbe-*-*): New case.
645 * configure.in (bfd_elf32_tilegx_vec): Rename...
646 (bfd_elf32_tilegx_le_vec): ... to this.
647 (bfd_elf32_tilegx_be_vec): New vector.
648 (bfd_elf64_tilegx_vec): Rename...
649 (bfd_elf64_tilegx_le_vec): ... to this.
650 (bfd_elf64_tilegx_be_vec): New vector.
651 * configure: Regenerate.
652 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
653 (TARGET_LITTLE_NAME): Ditto.
654 (TARGET_BIG_SYM): Define.
655 (TARGET_BIG_NAME): Define.
656 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
657 (TARGET_LITTLE_NAME): Ditto.
658 (TARGET_BIG_SYM): Define.
659 (TARGET_BIG_NAME): Define.
660 * targets.c (bfd_elf32_tilegx_vec): Rename...
661 (bfd_elf32_tilegx_le_vec): ... to this.
662 (bfd_elf32_tilegx_be_vec): Declare.
663 (bfd_elf64_tilegx_vec): Rename...
664 (bfd_elf64_tilegx_le_vec): ... to this.
665 (bfd_elf64_tilegx_be_vec): Declare.
666 (_bfd_target_vector): Add / rename above vectors.
667 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
668 * bfd-in2.h: Regenerate.
669 * cpu-tilegx.c (bfd_tilegx32_arch): define.
670 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
671
672 2012-02-24 Nick Clifton <nickc@redhat.com>
673
674 PR ld/13730
675 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
676 error message instead of aborting, when an outofrange reloc is
677 encountered.
678
679 2012-02-23 Iain Sandoe <idsandoe@googlemail.com>
680
681 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
682 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
683 bit-fields when target and host differ in endian-ness. When
684 PAIRs are non-scattered find the 'symbol' from the preceding
685 reloc. Add FIXME re. reloc symbols on section boundaries.
686 (bfd_mach_o_swap_out_non_scattered_reloc): New.
687 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
688
689 2012-02-17 Iain Sandoe <idsandoe@googlemail.com>
690
691 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
692 sect-diffs.
693 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
694 (bfd_mach_o_i386_swap_reloc_out): Likewise.
695
696 2012-02-17 Tristan Gingold <gingold@adacore.com>
697
698 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
699 * libbfd.h: Regenerated.
700 * bfd-in2.h: Likewise.
701 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
702 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
703 (bfd_mach_o_i386_swap_reloc_out): Likewise.
704
705 2012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
706
707 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
708 GD->LE and LD->LE optimizations.
709
710 2012-02-16 Alan Modra <amodra@gmail.com>
711
712 PR binutils/13355
713 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
714
715 2012-02-13 Richard Henderson <rth@redhat.com>
716
717 PR ld/13621
718 * linker.c (fix_syms): Force symbols outside any section into
719 bfd_abs_section_ptr.
720
721 2012-02-13 Alan Modra <amodra@gmail.com>
722
723 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
724 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
725 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
726 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
727
728 2012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
729 Nick Clifton <nickc@redhat.com>
730
731 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
732 memset.
733
734 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
735
736 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
737 vma additions in their logical, rather than physical order.
738
739 2012-02-10 Iain Sandoe <idsandoe@googlemail.com>
740
741 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
742 parameters.
743 * mach-o-x86-64.c (text_section_names_xlat): New.
744 (mach_o_x86_64_segsec_names_xlat): New.
745 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
746 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
747
748 2012-02-10 Tristan Gingold <gingold@adacore.com>
749
750 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
751 to avoid infinite loop. Add comments.
752
753 2012-02-09 H.J. Lu <hongjiu.lu@intel.com>
754
755 PR ld/13675
756 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
757 nop instructions.
758 (bfd_arch_i386_short_nop_fill): New.
759 (bfd_arch_i386_long_nop_fill): Likewise.
760 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
761 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
762 bfd_arch_info initializers.
763
764 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
765 (bfd_arch_i386_short_nop_fill): This.
766 Update bfd_arch_info initializers.
767 * cpu-l1om.c: Likewise.
768
769 2012-02-08 Alan Modra <amodra@gmail.com>
770
771 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
772 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
773 the correct h->u.weakdef.
774
775 2012-02-07 Alan Modra <amodra@gmail.com>
776
777 * elf.c (elf_find_function): Don't use internal_elf_sym.
778 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
779 parameter with asymbol.
780 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
781 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
782 (struct elf_backend_data <maybe_function_sym>): Likewise.
783
784 2012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
785
786 PR bfd/13410
787 * bfd/elf32-avr.c (elf32_avr_relax_section): Correct the
788 condition that qualifies the candidates for relaxation.
789
790 2012-02-02 Tristan Gingold <gingold@adacore.com>
791
792 * bfdio.c (real_fopen): Remove unused vms_modes variable.
793
794 2012-02-02 Tristan Gingold <gingold@adacore.com>
795
796 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
797 variable warning.
798
799 2012-02-02 Tristan Gingold <gingold@adacore.com>
800
801 * archive.c (bfd_slurp_armap): Fix thinko in cast.
802
803 2012-01-31 H.J. Lu <hongjiu.lu@intel.com>
804
805 PR ld/13616
806 * archures.c (bfd_arch_info): Add fill.
807 (bfd_default_arch_struct): Add bfd_arch_default_fill.
808 (bfd_arch_default_fill): New.
809
810 * configure.in: Set bfd version to 2.22.52.
811 * configure: Regenerated.
812
813 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
814 initializer.
815 * cpu-arc.c: Likewise.
816 * cpu-arm.c: Likewise.
817 * cpu-avr.c: Likewise.
818 * cpu-bfin.c: Likewise.
819 * cpu-cr16.c: Likewise.
820 * cpu-cr16c.c: Likewise.
821 * cpu-cris.c: Likewise.
822 * cpu-crx.c: Likewise.
823 * cpu-d10v.c: Likewise.
824 * cpu-d30v.c: Likewise.
825 * cpu-dlx.c: Likewise.
826 * cpu-epiphany.c: Likewise.
827 * cpu-fr30.c: Likewise.
828 * cpu-frv.c: Likewise.
829 * cpu-h8300.c: Likewise.
830 * cpu-h8500.c: Likewise.
831 * cpu-hppa.c: Likewise.
832 * cpu-i370.c: Likewise.
833 * cpu-i860.c: Likewise.
834 * cpu-i960.c: Likewise.
835 * cpu-ia64.c: Likewise.
836 * cpu-ip2k.c: Likewise.
837 * cpu-iq2000.c: Likewise.
838 * cpu-lm32.c: Likewise.
839 * cpu-m10200.c: Likewise.
840 * cpu-m10300.c: Likewise.
841 * cpu-m32c.c: Likewise.
842 * cpu-m32r.c: Likewise.
843 * cpu-m68hc11.c: Likewise.
844 * cpu-m68hc12.c: Likewise.
845 * cpu-m68k.c: Likewise.
846 * cpu-m88k.c: Likewise.
847 * cpu-mcore.c: Likewise.
848 * cpu-mep.c: Likewise.
849 * cpu-microblaze.c: Likewise.
850 * cpu-mips.c: Likewise.
851 * cpu-mmix.c: Likewise.
852 * cpu-moxie.c: Likewise.
853 * cpu-msp430.c: Likewise.
854 * cpu-mt.c: Likewise.
855 * cpu-ns32k.c: Likewise.
856 * cpu-openrisc.c: Likewise.
857 * cpu-or32.c: Likewise.
858 * cpu-pdp11.c: Likewise.
859 * cpu-pj.c: Likewise.
860 * cpu-plugin.c: Likewise.
861 * cpu-powerpc.c: Likewise.
862 * cpu-rl78.c: Likewise.
863 * cpu-rs6000.c: Likewise.
864 * cpu-rx.c: Likewise.
865 * cpu-s390.c: Likewise.
866 * cpu-score.c: Likewise.
867 * cpu-sh.c: Likewise.
868 * cpu-sparc.c: Likewise.
869 * cpu-spu.c: Likewise.
870 * cpu-tic30.c: Likewise.
871 * cpu-tic4x.c: Likewise.
872 * cpu-tic54x.c: Likewise.
873 * cpu-tic6x.c: Likewise.
874 * cpu-tic80.c: Likewise.
875 * cpu-tilegx.c: Likewise.
876 * cpu-tilepro.c: Likewise.
877 * cpu-v850.c: Likewise.
878 * cpu-vax.c: Likewise.
879 * cpu-w65.c: Likewise.
880 * cpu-we32k.c: Likewise.
881 * cpu-xc16x.c: Likewise.
882 * cpu-xstormy16.c: Likewise.
883 * cpu-xtensa.c: Likewise.
884 * cpu-z80.c: Likewise.
885 * cpu-z8k.c: Likewise.
886
887 * cpu-i386.c: Include "libiberty.h".
888 (bfd_arch_i386_fill): New.
889 Add bfd_arch_i386_fill to bfd_arch_info initializer.
890
891 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
892 * cpu-l1om.c: Likewise.
893
894 * linker.c (default_data_link_order): Call abfd->arch_info->fill
895 if fill size is 0.
896
897 * bfd-in2.h: Regenerated.
898
899 2012-01-27 Michael Eager <eager@eagercon.com>
900
901 * bfd/elf32-microblaze.c (create_got_section):
902 Reuse existing .rela.got section.
903
904 2012-01-23 Alan Modra <amodra@gmail.com>
905
906 * elf-bfd.h: Formatting.
907 (struct elf_backend_data): Add "maybe_function_sym".
908 (_bfd_elf_maybe_function_sym): Declare.
909 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
910 (elfNN_bed): Init new field.
911 * elf.c (elf_find_function): Use maybe_function_sym.
912 (_bfd_elf_maybe_function_sym): New function.
913 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
914 (ppc64_elf_maybe_function_sym): New function.
915
916 2012-01-20 Francois Gouget <fgouget@codeweavers.com>
917
918 PR binutils/13534
919 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
920 pad the size field in an archive header.
921 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
922 function for the archive size field.
923 (bfd_generic_openr_next_archived_file): Likewise.
924 (do_slurp_coff_armap): Likewise.
925 (_bfd_write_archive_contents): Likewise.
926 (_bfd_bsd44_write_ar_hdr): Use the new function.
927 (bfd_ar_hdr_from_filesystem): Likewise.
928 (_bfd_write_archive_contents): Likewise.
929 (bsd_write_armap): Likewise.
930 (coff_write_armap): Likewise.
931 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
932 * bfdio.c (bfd_bread): Use correct type for archive element
933 sizes.
934 * ar.c (open_inarch): Likewise.
935 (extract_file): Likewise.
936 * libbfd-in.h (struct areltdata): Use correct types for
937 parsed_size and extra_size fields.
938 Prototype _bfd_ar_sizepad function.
939 * libbfd.h: Regenerate.
940
941 2012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
942
943 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
944 Return NULL if core file generation is unsupported.
945 (elfcore_write_prstatus): Likewise.
946 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
947 (elf_backend_write_core_note): Define.
948
949 2012-01-19 Tristan Gingold <gingold@adacore.com>
950
951 * pef.c: Add a comment.
952 * xsym.c: Likewise.
953
954 2012-01-17 Alan Modra <amodra@gmail.com>
955
956 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
957 trailing garbage in the note.
958 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
959
960 2012-01-16 Daniel Green <venix1@gmail.com>
961
962 PR ld/13491
963 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
964 h->root.type not h->type.
965 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
966
967 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
968
969 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
970 indirect symbols.
971
972 2012-01-13 Iain Sandoe <idsandoe@googlemail.com>
973
974 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
975 position from here... to (bfd_mach_o_build_seg_command): Here.
976
977 2012-01-12 Iain Sandoe <idsandoe@googlemail.com>
978
979 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
980 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
981 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
982 file. (bfd_mach_o_section): Add indirect_syms field.
983
984 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
985
986 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
987 vmsize from filesize. Don't compute offsets or file sizes for
988 zerofill sections.
989
990 2012-01-11 Iain Sandoe <idsandoe@googlemail.com>
991
992 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
993 command type independent.
994
995 2012-01-11 Alan Modra <amodra@gmail.com>
996
997 * elf64-ppc.c: Define more insns used in plt call stubs.
998 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
999 (ppc64_elf_relocate_section): Likewise.
1000 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
1001 (struct ppc_link_hash_table): Increase size of stub_count array.
1002 Add plt_stub_align and plt_thread_safe.
1003 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
1004 (plt_stub_size, plt_stub_pad): New functions.
1005 (build_plt_stub): Emit barriers for power7 thread safety. Don't
1006 emit needless save of r2.
1007 (build_tls_get_addr_stub): Adjust params.
1008 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
1009 plt stubs. Adjust build_*plt_stub calls.
1010 (ppc_size_one_stub): Similarly.
1011 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
1012 params. Choose default for plt_thread_safe based on existence of
1013 calls to thread creation functions. Modify plt_call to
1014 plt_call_r2save when no tocsave reloc found. Align tail of stub
1015 sections.
1016 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
1017 output of stub statistics.
1018 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
1019 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
1020
1021 2012-01-10 H.J. Lu <hongjiu.lu@intel.com>
1022
1023 PR ld/13581
1024 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
1025 check on R_X86_64_PCXX.
1026
1027 2012-01-10 Tristan Gingold <gingold@adacore.com>
1028
1029 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
1030 warning.
1031
1032 2012-01-10 Tristan Gingold <gingold@adacore.com>
1033
1034 * bfdio.c (bfd_tell): Handle nested archives.
1035 (bfd_seek): Ditto.
1036 * cache.c (bfd_cache_lookup_worker): Ditto.
1037 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
1038 nested archives.
1039 (bfd_generic_openr_next_archived_file): Likewise.
1040
1041 2012-01-09 Iain Sandoe <idsandoe@googlemail.com>
1042
1043 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
1044 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
1045 (bfd_mach_o_primary_symbol_sort_key): Likewise.
1046 (bfd_mach_o_cf_symbols): Likewise.
1047 (bfd_mach_o_sort_symbol_table): Remove.
1048 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
1049 for indirect and dysymtab counts. Do the symbol sorting here.
1050 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
1051 Make the indirect symbols a TODO.
1052 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
1053 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
1054 a non-zero value.
1055 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
1056 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
1057 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
1058 (IS_MACHO_INDIRECT): Remove.
1059 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
1060
1061 2012-01-06 Nick Clifton <nickc@redhat.com>
1062
1063 PR binutils/13121
1064 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
1065 'flaginfo' to avoid conflicts with AIX system headers.
1066
1067 2012-01-06 Tristan Gingold <gingold@adacore.com>
1068
1069 * bfdio.c (bfd_bread): Use arelt_size macro.
1070
1071 2012-01-06 Tristan Gingold <gingold@adacore.com>
1072
1073 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
1074
1075 2012-01-05 Nick Clifton <nickc@redhat.com>
1076
1077 PR ld/12161
1078 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
1079 necessary.
1080
1081 2012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
1082
1083 Fix zero registers core files when built by gcc-4.7.
1084 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
1085 size. Call elfcore_write_note for the local variables. Remove the
1086 final elfcore_write_note call. Add NOTREACHED comments.
1087
1088 2012-01-04 Tristan Gingold <gingold@adacore.com>
1089
1090 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
1091 (bfd_mach_o_generic_stat_arch_elt): Adjust.
1092
1093 2012-01-04 Tristan Gingold <gingold@adacore.com>
1094
1095 * mach-o.c (bfd_mach_o_fat_member_init): New function.
1096 (bfd_mach_o_openr_next_archived_file): Reindent.
1097 Adjust to call bfd_mach_o_fat_member_init.
1098 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
1099
1100 2012-01-04 Tristan Gingold <gingold@adacore.com>
1101
1102 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
1103 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
1104 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
1105 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
1106 BFD_RELOC_MACH_O_X86_64_BRANCH32,
1107 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
1108 BFD_RELOC_MACH_O_X86_64_GOT.
1109
1110 2012-01-04 Tristan Gingold <gingold@adacore.com>
1111
1112 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
1113 (bfd_mach_o_load_command): Add fvmlib field.
1114
1115 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
1116 (bfd_mach_o_read_command): Handle fvmlib.
1117
1118 2012-01-04 Tristan Gingold <gingold@adacore.com>
1119
1120 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
1121 Decode msubtype for ARM.
1122
1123 2012-01-04 Tristan Gingold <gingold@adacore.com>
1124
1125 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
1126
1127 2012-01-04 Tristan Gingold <gingold@adacore.com>
1128
1129 * mach-o.h: Reindent header.
1130 (bfd_mach_o_encryption_info_command): New structure.
1131 (bfd_mach_o_load_command): Add encryption_info field.
1132
1133 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
1134 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
1135 (bfd_mach_o_read_command): Adjust error message.
1136
1137 2012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
1138
1139 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
1140 which reads DWARF2 and stores in stash from find_line.
1141 (find_line) Call _bfd_dwarf2_slurp_debug_info.
1142 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
1143 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
1144 * mach-o.c (dsym_subdir): The name of subdir where debug
1145 information may be stored.
1146 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
1147 type is UUID.
1148 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
1149 corresponding to the executable.
1150 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
1151 specified binary file.
1152 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
1153 the original BFD.
1154 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
1155 executables, dylibs, and bundles.
1156 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
1157 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
1158
1159 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1160
1161 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
1162 for stabd symbols.
1163 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
1164 (bfd_mach_o_cf_symbols): Likewise.
1165
1166 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1167
1168 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
1169
1170 2012-01-03 Iain Sandoe <idsandoe@googlemail.com>
1171
1172 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
1173 as the value of an indirect symbol. Keep the string table index in
1174 non-indirect syms for reference.
1175 (bfd_mach_o_write_dysymtab): New.
1176 (bfd_mach_o_primary_symbol_sort_key): New.
1177 (bfd_mach_o_cf_symbols): New.
1178 (bfd_mach_o_sort_symbol_table): New.
1179 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
1180 If we are emitting a dysymtab, process indirect symbols and count the
1181 number of each other kind.
1182 (bfd_mach_o_mangle_sections): New.
1183 (bfd_mach_o_write_contents): Split out some pre-requisite code into
1184 the command builder. Write dysymtab if the command is present.
1185 (bfd_mach_o_count_sections_for_seg): New.
1186 (bfd_mach_o_build_seg_command): New.
1187 (bfd_mach_o_build_dysymtab_command): New.
1188 (bfd_mach_o_build_commands): Reorganize to support the fact that some
1189 commands are optional and should not be emitted if there are no
1190 sections or symbols.
1191 (bfd_mach_o_set_section_contents): Amend comment.
1192 * mach-o.h: Amend and add to comments.
1193 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
1194 pointer to the indirects, when present.
1195 (bfd_mach_o_should_emit_dysymtab): New macro.
1196 (IS_MACHO_INDIRECT): Likewise.
1197
1198 For older changes see ChangeLog-2011
1199 \f
1200 Local Variables:
1201 mode: change-log
1202 left-margin: 8
1203 fill-column: 74
1204 version-control: never
1205 End:
This page took 0.067053 seconds and 5 git commands to generate.