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