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