Add Linux/x86_64 core support to i[3-7]86-*-linux
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
b1bd052d
L
12012-10-30 Yao Qi <yao@codesourcery.com>
2 H.J. Lu <hongjiu.lu@intel.com>
3
4 * configure.in: Set CORE_HEADER to hosts/x86-64linux.h for
5 'i[3-7]86-*-linux-*' if x86_64-*linux is enabled.
6 * configure: Regenerated.
7
8 * elf64-x86-64.c (elf_x86_64_write_core_note): Replace type
9 'prpsinfo_t' and 'prstatus_t' with 'prpsinfo64_t' and
10 'prstatus64_t' respectively.
11
12 * hosts/x86-64linux.h (a8_uint64_t): New.
13 (user_regsx32_struct): Renamed to ...
14 (user_regs64_struct): This. Replace uint64_t with a8_uint64_t.
15 (elf_gregx32_t): Renamed to ...
16 (elf_greg64_t): This. Replace uint64_t with a8_uint64_t.
17 (ELF_NGREGX32): Removed.
18 (ELF_NGREG64): New.
19 (elf_gregx32_t): Removed.
20 (elf_greg64_t): New.
21 (struct prstatus64_timeval): New.
22 (elf_prstatusx32): Replace elf_gregsetx32_t with elf_gregset64_t.
23 (elf_prstatus64): New.
24 (elf_prpsinfo64): New.
25 (prstatus64_t, prpsinfo64_t): New typedef.
26
d6273433
SK
272012-10-29 Sean Keys <skeys@ipdatasys.com>
28
29 * elf32-xgate.c(elf_xgate_howto_table): Fix src and dest mask for
30 R_XGATE_16
31
bdaacd3a
AM
322012-10-29 Alan Modra <amodra@gmail.com>
33
34 * elf32-ppc.c (ppc_elf_howto_raw): Correct dst_mask in
35 R_PPC_VLE_LO16A, R_PPC_VLE_HI16A, R_PPC_VLE_HA16A,
36 R_PPC_VLE_SDAREL_LO16A, R_PPC_VLE_SDAREL_HI16A,
37 R_PPC_VLE_SDAREL_HA16A reloc howtos.
38
31f7d8fd
NC
392012-10-26 Nick Clifton <nickc@redhat.com>
40
41 * po/uk.po: Updated Ukranian translation.
42
1fe532cf
AM
432012-10-26 Alan Modra <amodra@gmail.com>
44
45 PR target/14758
46 * elf32-ppc.c (ppc_elf_reloc_type_lookup): Decode ppc64 _DS
47 bfd_reloc values. Map to corresponding D-form relocs.
48 (is_insn_ds_form, is_insn_qs_form): New functions.
49 (ppc_elf_relocate_section): Validate insn with DS-form or DQ-form
50 fields using D-form reloc.
51
9d4b2dba
L
522012-10-25 H.J. Lu <hongjiu.lu@intel.com>
53
54 * elf32-i386.c (elf_i386_size_dynamic_sections): Replace
55 _GLOBAL_OFFSET_TABLE_ lookup with htab->elf.hgot.
56 * elf64-x86-64.c (elf_x86_64_size_dynamic_sections): Likewise.
57
64f40162
L
582012-10-24 H.J. Lu <hongjiu.lu@intel.com>
59
60 * compress.c (bfd_is_section_compressed): Don't decompress the
61 section.
62
04c3a755
NS
632012-10-23 Nathan Sidwell <nathan@codesourcery.com>
64
65 * bfd-in.h (bfd_elf_stack_segment_size): Declare.
66 * bfd-in2.h: Rebuilt.
67 * elfxx-target.h (elf_backend_stack_align): New.
68 (elfNN_bed): Add it.
69 * elf-bfd.h (struct elf_backend_data): Add stack_align field.
70 * elf.c (bfd_elf_map_sections_to_segments): Pay attention to
71 stack_align and stacksize for PT_GNU_STACK segment.
72 (assign_file_positions_for_non_load_sections): Set p_memsz for
73 PT_GNU_STACK segment.
74 (copy_elf_program_header): Copy PT_GNU_STACK size.
75 * elflink.c (bfd_elf_stack_segment_size): New function, taken from
76 uclinux backends.
77 (bfd_elf_size_dynamic_sections): Determine
78 PT_GNU_STACK requirements after calling backend. Pay attention to
79 stacksize.
80 * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Call
81 bfd_elf_stack_segment_size.
82 (elf32_bfinfdpic_modify_program_headers): Delete.
83 (elf32_bfingfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
84 here.
85 (elf_backend_stack_align): Override.
86 (elf_backend_modify_program_headers): Don't override.
87 * elf32-frv.c (frvfdpic_always_size_sections): Call
88 bfd_elf_stack_segment_size.
89 (elf32_frvfdpic_modify_program_headers): Delete.
90 (elf32_frvfdpic_copy_private_bfd_data): Don't copy PT_GNU_STACK
91 here.
92 (elf_backend_stack_align): Override.
93 (elf_backend_modify_program_headers): Don't override.
94 * elf32-lm32.c (lm32_elf_always_size_sections): Leave
95 PT_GNU_STACK creation to underlying elf support. Check
96 __stacksize here for backwards compatibility, and set it if
97 needed.
98 (lm32_elf_modify_segment_map): Delete.
99 (lm32_elf_modify_program_headers): Delete.
100 (elf_backend_stack_align): Override.
101 (elf_backend_modify_segment_map): Don't override.
102 (elf_backend_modify_program_headers): Don't override.
103 * elf32-sh.c (sh_elf_always_size_sections): Call
104 bfd_elf_stack_segment_size.
105 (sh_elf_modify_program_headers): Delete.
106 (sh_elf_copy_private_data): Don't copy PT_GNU_STACK
107 here.
108 (elf_backend_stack_align): Override.
109 (elf_backend_modify_program_headers): Don't override.
110 * elf32-tic6x.c (elf32_tic6x_always_size_sections): Call
111 bfd_elf_stack_segment_size.
112 (elf32_tic6x_modify_program_headers): Delete.
113 (elf32_tic6x_copy_private_data): Delete.
114 (elf_backend_stack_align): Override.
115 (bfd_elf32_bfd_copy_private_bfd_data): Don't override.
116 (elf_backend_modify_program_headers): Don't override.
117
eac3aa9e
AM
1182012-10-22 Alan Modra <amodra@gmail.com>
119
120 * cache.c (cache_bmmap): Don't use void* arithmetic.
121
8a72cc6e
AM
1222012-10-21 Alan Modra <amodra@gmail.com>
123
124 * compress.c (bfd_cache_section_contents): New function.
125 * bfd-in2.h: Regenerate.
126
d3a65d4d
HPN
1272012-10-21 Hans-Peter Nilsson <hp@bitrange.com>
128
129 * linker.c (_bfd_generic_link_output_symbols): Handle a
1e9d6fc2 130 no-longer-global symbol entered through a plugin.
d3a65d4d 131
38b774d2
AM
1322012-10-20 Alan Modra <amodra@gmail.com>
133
134 * compress.c: Reinstate 2012-10-19 change.
135 (bfd_get_full_section_contents): Don't free unless we alloc.
136 Use proper decompress size. Delete some vars, rename others.
137
67d004eb
TT
1382012-10-19 Tom Tromey <tromey@redhat.com>
139
140 * compress.c: Revert previous patch.
141
06c2e2c1
TT
1422012-10-19 Tom Tromey <tromey@redhat.com>
143
144 * compress.c (bfd_get_full_section_contents): Don't cache
145 decompressed contents.
146
a29a8af8
KT
1472012-10-18 Kai Tietz <ktietz@redhat.com>
148
149 PR binutils/14067
150 * coff-i386.c (bfd_target): Add section flag SEC_EXCLUDE.
151 Allow BFD_COMPRESS and BFD_DECOMPRESS flags.
152 * coff-x86_64.c: Likewise.
153 * coffcode.h (DOT_ZDEBUG): New define.
154 (sec_to_styp_flags): Check for .zdebug.
155 (styp_to_sec_flags): Likewise.
156 * coffgen.c (make_a_section): Handle .debug_* section
157 compression/decompression flags.
158 * cofflink.c (mark_relocs): Ignore relocations
159 for a section, which isn't marked as used.
160 (_bfd_coff_link_input_bfd): Add support of compressed
161 debug sections.
162 * compress.c (decompress_contents): Loop as long
163 as there is input available and there is room for
164 output.
165 * bfd/pe-arm.c: Add .zdebug_ partial match entry.
166 * pe-i386.c: Likewise.
167 * pe-x86_64.c: Likewise.
168 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't clear all
169 data-directories as this might destroy content.
170
171 * coff-i386.c (_bfd_generic_find_nearest_line_discriminator):
172 define as coff_find_nearest_line_discriminator.
173 * libcoff-in.h (coff_find_nearest_line_discriminator): New
174 * libcoff.h: Regenerated.
175 * coff-x86_64.c: Likewise.
176 * coffgen.c (coff_find_nearest_line_discriminator): New function.
177 prototype.
178
1239a68a
JB
1792012-10-16 Joel Brobecker <brobecker@adacore.com>
180
181 * coff64-rs6000.c (rs6000coff64_vec): Set _close_and_cleanup
182 field to _bfd_archive_close_and_cleanup.
183 (aix5coff64_vec): Likewise.
184
e3f9f6d8
JB
1852012-10-16 Joel Brobecker <brobecker@adacore.com>
186
187 * coff-rs6000.c (rs6000coff_vec): Set _close_and_cleanup
188 field to _bfd_archive_close_and_cleanup.
189 (pmac_xcoff_vec): Likewise.
190
bb3f9ed8
YZ
1912012-10-16 Sofiane Naci <sofiane.naci@arm.com>
192
193 * elf64-aarch64.c (elf64_aarch64_tls_howto_table): Fix shift value for
194 R_AARCH64_TLSIE_LD_GOTTPREL_PREL19, R_AARCH64_TLSLE_MOVW_TPREL_G2,
195 R_AARCH64_TLSLE_MOVW_TPREL_G1, R_AARCH64_TLSLE_MOVW_TPREL_G1_NC,
196 R_AARCH64_TLSLE_ADD_TPREL_HI12.
197 (elf64_aarch64_tlsdesc_howto_table): Fix shift value for
198 R_AARCH64_TLSDESC_LD64_PREL19 and R_AARCH64_TLSDESC_OFF_G1.
199 (elf64_aarch64_final_link_relocate): Add signed_addend when resolving
200 AARCH64_TLSLE_*_TPREL_* relocations.
201
65e911f9
AM
2022012-10-16 Alan Modra <amodra@gmail.com>
203
204 * elf32-xtensa.c (free_section_cache): Renamed from
205 clear_section_cache. Don't zero cache.
206 (section_cache_section): Remove ineffectual zero of cache.
207 Call init_section_cache instead.
208
a9a72a65
DE
2092012-10-15 Doug Evans <dje@google.com>
210
211 * elf.c (special_sections_d): Add comment.
212
3cf9e6c4
L
2132012-10-13 H.J. Lu <hongjiu.lu@intel.com>
214
215 * Makefile.am (LIBDL): Replace -ldl with @lt_cv_dlopen_libs@.
216 * configure.in (lt_cv_dlopen_libs): AC_SUBST.
217 * Makefile.in: Regenerated.
218 * configure: Likewise.
219
f073ced3
AM
2202012-10-08 Alan Modra <amodra@gmail.com>
221
222 PR binutils/14662
223 * elf.c (_bfd_elf_make_section_from_shdr): Treat .gdb_index as
224 SEC_DEBUGGING.
225
535127d2
WL
2262012-09-20 Walter Lee <walt@tilera.com>
227
228 * elf32-tilepro.c (tilepro_elf_relocate_section): Adjust got
229 relocations with value of hgot.
230 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
231
795e8513
SE
2322012-09-19 Steve Ellcey <sellcey@mips.com>
233
234 * config.bfd: Add mips*-mti-elf* target.
235
37a9e49a
L
2362012-09-18 H.J. Lu <hongjiu.lu@intel.com>
237
238 PR ld/14591
f073ced3 239 * elf-bfd.h (_bfd_elf_merge_symbol): Add an argument to return
37a9e49a
L
240 if the old symbol is weak.
241
242 * elf32-sh-symbian.c (sh_symbian_relocate_section): Update
243 _bfd_elf_merge_symbol call.
244
245 * elflink.c (_bfd_elf_merge_symbol): Add an argument to return
246 if the old symbol is weak.
247 (_bfd_elf_add_default_symbol): Update _bfd_elf_merge_symbol
248 call.
249 (elf_link_add_object_symbols): Don't update symbol type from a
250 weak definition. Update symbol type from a common symbol when
251 overriding a weak symbol.
252
fbdc86d9
L
2532012-09-17 H.J. Lu <hongjiu.lu@intel.com>
254
255 * elf32-i386.c (elf_i386_convert_mov_to_lea): Ignore discarded
256 section.
257 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
258
cec7f46a
L
2592012-09-17 H.J. Lu <hongjiu.lu@intel.com>
260
261 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Replace return
262 FALSE with abort.
263 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
264
5ec61378
WL
2652012-09-17 Walter Lee <walt@tilera.com>
266
267 * elf32-tilepro.c (tilepro_elf_relocate_section): Remove unused
268 got_base variable.
269 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
270
901e60ca
WL
2712012-09-17 Walter Lee <walt@tilera.com>
272
273 * elf32-tilepro.c (tilepro_elf_relocate_section): Fix computation
274 of got relocations for when .got.plt section is merged with .got.
275 * elfxx-tilegx.c (tilegx_elf_relocate_section): Ditto.
276
6c9c0a50
DE
2772012-09-14 David Edelsohn <dje.gcc@gmail.com>
278
279 * configure: Regenerate.
280
e202fa84
AG
2812012-09-13 Anthony Green <green@moxielogic.com>
282
283 * targets.c (bfd_elf32_bigmoxie_vec, bfd_elf32_littlemoxie_vec):
284 Define.
285 (bfd_elf32_moxie_vec): Remove.
286 * config.bfd, configure.in: Add bi-endian support for moxie.
287 * configure: Rebuilt.
288 * elf32-moxie.c (TARGET_LITTLE_NAME, TARGET_LITTLE_SYM): Define.
289 (TARGET_BIG_NAME, TARGET_BIG_SYM): Update for bi-endian support.
290
31c76678
DK
2912012-09-12 Doug Kwan <dougkwan@google.com>
292
293 * elf64-ppc.c (ppc64_elf_relocate_section): Use pre-adjusted
294 relocation for stub lookup.
295
f41aef5f
RE
2962012-09-12 Chris Schlumberger-Socha <chris.schlumberger-socha@arm.com>
297
298 * bfd-in2.h: Regenerated.
299 * elf64-aarch64.c
300 (elf64_aarch64_howto_table): Add R_AARCH64_GOT_LD_PREL19 reloc to HOWTO.
301 (elf64_aarch64_reloc_map): Add reloc entry.
302 (aarch64_resolve_relocation): Likewise.
303 (bfd_elf_aarch64_put_addend): Likewise.
304 (aarch64_reloc_got_type): Likewise.
305 (elf64_aarch64_final_link_relocate): Likewise.
306 (lf64_aarch64_check_relocs): Likewise.
307 (elf64_aarch64_check_relocs): New case for R_AARCH64_ADR_PREL_LO21
308 reloc.
309 * libbfd.h: Regenerated.
310 * reloc.c (R_AARCH64_GOT_LD_PREL19): New reloc.
311
00716ab1
AM
3122012-09-10 Matthias Klose <doko@ubuntu.com>
313
314 * config.in: Disable sanity check for kfreebsd.
315
6d2920c8
L
3162012-09-10 H.J. Lu <hongjiu.lu@intel.com>
317
318 * configure: Regenerated.
319
b3e14eda
L
3202012-09-04 Sergey A. Guriev <sergey.a.guriev@intel.com>
321
322 * cpu-ia64-opc.c (ins_cnt6a): New function.
323 (ext_cnt6a): Ditto.
324 (ins_strd5b): Ditto.
325 (ext_strd5b): Ditto.
326 (elf64_ia64_operands): Add new operand types.
327
c6d8cab4
L
3282012-09-04 H.J. Lu <hongjiu.lu@intel.com>
329
330 PR binutils/14493
331 * elf.c (ignore_section_sym): Also ignore section symbols without
332 a BFD section.
333
31db78f6
AK
3342012-09-03 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
335
336 * elf32-s390.c (elf_s390_relocate_section): Handle PLTOFF for
337 local and global ifunc symbols.
338 * elf64-s390.c (elf_s390_relocate_section): Likewise.
339
9637f6ef
L
3402012-09-02 H.J. Lu <hongjiu.lu@intel.com>
341
342 * elf-bfd.h (elf_link_hash_table): Add hdynamic for the
343 _DYNAMIC symbol.
344
345 * elflink.c (_bfd_elf_link_create_dynamic_sections): Set
346 hdynamic.
347
348 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Check
349 hdynamic instead of "_DYNAMIC".
350 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
351 * elf32-cr16.c (elf32_arm_finish_dynamic_symbol): Likewise.
352 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
353 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
354 * elf32-i386.c (elf_i386_convert_mov_to_lea): Likewise.
355 * elf32-lm32.c (lm32_elf_finish_dynamic_symbol): Likewise.
356 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
357 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
358 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
359 * elf32-tic6x.c (elf32_tic6x_finish_dynamic_symbol): Likewise.
360 * elf32-tilepro.c (tilepro_elf_finish_dynamic_symbol): Likewise.
361 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
362 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
363 * elf64-aarch64.c elf64_aarch64_finish_dynamic_symbol(): Likewise.
364 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
365 * elf64-ia64-vms.c (elf64_ia64_finish_dynamic_symbol): Likewise.
366 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
367 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
368 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
369 * elfnn-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
370 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
371 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
372 * elfxx-tilegx.c (tilegx_elf_finish_dynamic_symbol): Likewise.
373
374 * elf32-microblaze.c (microblaze_elf_finish_dynamic_symbol): Check
375 hdynamic, hgot, hplt instead of _DYNAMIC, _GLOBAL_OFFSET_TABLE_,
376 _PROCEDURE_LINKAGE_TABLE_.
377 * elf32-score.c (s3_bfd_score_elf_finish_dynamic_symbol): Likewise.
378 * elf32-score7.c (s7_bfd_score_elf_finish_dynamic_symbol): Likewise.
379
3f65f599
L
3802012-08-31 H.J. Lu <hongjiu.lu@intel.com>
381
382 * elf32-i386.c (elf_i386_convert_mov_to_lea): Don't optimize
383 _DYNAMIC.
384 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): Likewise.
385
daa67607
L
3862012-08-31 H.J. Lu <hongjiu.lu@intel.com>
387
388 * elf32-i386.c (elf_i386_convert_mov_to_lea): New.
389 (elf_i386_size_dynamic_sections): Use it on input sections.
390 (elf_i386_relocate_section): Don't convert
391 "mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
392 for local symbols here.
393
394 * elf64-x86-64.c (elf_x86_64_convert_mov_to_lea): New.
395 (elf_x86_64_size_dynamic_sections): Use it on input sections.
396 (elf_x86_64_relocate_section): Don't convert
397 "mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg"
398 for local symbols here.
399
80d87326
L
4002012-08-30 H.J. Lu <hongjiu.lu@intel.com>
401
402 * elf32-i386.c (elf_i386_relocate_section): Convert
403 "mov foo@GOT(%reg), %reg" to "lea foo@GOTOFF(%reg), %reg"
404 for local symbols.
405
406 * elf64-x86-64.c (elf_x86_64_relocate_section): Convert
407 "mov foo@GOTPCREL(%rip), %reg" to "lea foo(%rip), %reg"
408 for local symbols.
409
b69fdb4e
AM
4102012-08-31 Alan Modra <amodra@gmail.com>
411
412 PR ld/14464
413 * elf64-ppc.c (ppc64_elf_relocate_section): Map symbols defined
414 by a linker script in .opd to corresponding input .opd section.
415
14acf4dc
MR
4162012-08-28 Maciej W. Rozycki <macro@codesourcery.com>
417
418 * elf32-ppc.c (ppc_elf_relocate_section): Assert that dynindx is
419 not minus one.
420 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
421
aed81c4e
MR
4222012-08-28 Maciej W. Rozycki <macro@codesourcery.com>
423
424 * elflink.c (_bfd_elf_merge_symbol): Also override the version
425 a dynamic symbol defaulted to if preempted with a hidden or
426 internal definition.
427
663b5850
WL
4282012-08-28 Walter Lee <walt@tilera.com>
429
430 * elf32-tilepro.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
431 of header.
432 (tilepro_plt_entry_build): Account for new header size.
433 (tilepro_elf_finish_dynamic_sections): Ditto.
434 (tilepro_elf_plt_sym_val): Ditto.
435 * elfxx-tilegx.c (allocate_dynrelocs): Use PLT_ENTRY_SIZE as size
436 of header + tail.
437 (tilegx_elf_finish_dynamic_sections): Account for new padding.
438
e5b95258
WL
4392012-08-27 Walter Lee <walt@tilera.com>
440
441 * reloc.c (Add BFD_RELOC_TILEGX_IMM16_X0_HW0_PLT_PCREL,
442 BFD_RELOC_TILEGX_IMM16_X1_HW0_PLT_PCREL,
443 BFD_RELOC_TILEGX_IMM16_X0_HW1_PLT_PCREL,
444 BFD_RELOC_TILEGX_IMM16_X1_HW1_PLT_PCREL,
445 BFD_RELOC_TILEGX_IMM16_X0_HW2_PLT_PCREL,
446 BFD_RELOC_TILEGX_IMM16_X1_HW2_PLT_PCREL,
447 BFD_RELOC_TILEGX_IMM16_X0_HW3_PLT_PCREL,
448 BFD_RELOC_TILEGX_IMM16_X1_HW3_PLT_PCREL,
449 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_PLT_PCREL,
450 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_PLT_PCREL,
451 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_PLT_PCREL,
452 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_PLT_PCREL,
453 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_PLT_PCREL,
454 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_PLT_PCREL): new relocations.
455 * elfxx-tilegx.c (tilegx_elf_howto_table): Handle new relocations.
456 (tilegx_reloc_map): Ditto.
457 (reloc_to_create_func): Ditto.
458 (tilegx_elf_check_relocs): Ditto.
459 (tilegx_elf_gc_sweep_hook): Ditto.
460 (tilegx_elf_relocate_section): Ditto.
461 * libbfd.h: Regenerate.
462 * bfd-in2.h: Regenerate.
463
bca38921
MGD
4642012-08-24 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
465
466 * elf32-arm.c (v8): New array.
467 (tag_cpu_arch_combine): Add support for ARMv8 attributes.
468 (elf32_arm_merge_eabi_attributes): Likewise.
469 (VFP_VERSION_COUNT): New define.
470
06e7acd7
TT
4712012-08-20 Tom Tromey <tromey@redhat.com>
472
473 * vms-lib.c (_bfd_vms_lib_get_module): Use bfd_zmalloc for
474 areltdata.
475 * opncls.c (_bfd_delete_bfd): Free arelt_data.
476 * mach-o.c (bfd_mach_o_fat_member_init): Use bfd_zmalloc for
477 areltdata.
478 * ecoff.c (_bfd_ecoff_slurp_armap): Use free for mapdata.
479 * coff-rs6000.c (_bfd_xcoff_read_ar_hdr): Use bfd_zmalloc for
480 areltdata.
481 (xcoff_write_archive_contents_old): Likewise.
482 (xcoff_write_archive_contents_big): Likewise.
483 * archive64.c (bfd_elf64_archive_slurp_armap): Use free for
484 areltdata.
485 * archive.c (_bfd_generic_read_ar_hdr_mag): Use bfd_zmalloc and
486 free for areltdata.
487 (_bfd_get_elt_at_filepos): Likewise. Clear n_nfd->arelt_data on
488 failure.
489 (do_slurp_bsd_armap): Use bfd_zmalloc and free for areltdata.
490 (do_slurp_coff_armap): Likewise.
491 (_bfd_slurp_extended_name_table): Likewise.
492 (bfd_slurp_bsd_armap_f2): Likewise. Don't leak 'mapdata'.
493
eb80cb87
NC
4942012-08-17 Nick Clifton <nickc@redhat.com>
495
496 * po/vi.po: Updated Vietnamese translation.
497
a8685210
AM
4982012-08-17 Yuri Chornoivan <yurchor@ukr.net>
499
500 * elf-bfd.h, * elf32-ppc.c, * elf64-ia64-vms.c, * elfnn-ia64.c,
501 * elfxx-mips.c, * vms-alpha.c: Typo fixes.
502
ed668b34
AM
5032012-08-17 Alan Modra <amodra@gmail.com>
504
505 PR binutils/14475:
506 * archive.c (bfd_ar_hdr_from_filesystem): Revert last change.
507 Instead malloc areltdata.
508
a3074307
TT
5092012-08-16 Tom Tromey <tromey@redhat.com>
510
511 PR binutils/14475:
512 * archive.c (bfd_ar_hdr_from_filesystem): Allocate areltdata on
513 'member' BFD. Don't try to free 'ared'.
514
63a79b61
NC
5152012-08-14 Nick Clifton <nickc@redhat.com>
516
517 * po/uk.po: Updated Ukranian translation.
518
af0edeb8
MR
5192012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
520
521 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Look up
522 the options section in the output rather than input BFD to
523 decide if to add a DT_MIPS_OPTIONS tag.
524
9edaacb3
MR
5252012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
526
527 * config.bfd: Wrap mips*el-*-linux* and mips*-*-linux* into
528 #ifdef BFD64.
529
a06ea964
NC
5302012-08-13 Ian Bolton <ian.bolton@arm.com>
531 Laurent Desnogues <laurent.desnogues@arm.com>
532 Jim MacArthur <jim.macarthur@arm.com>
533 Marcus Shawcroft <marcus.shawcroft@arm.com>
534 Nigel Stephens <nigel.stephens@arm.com>
535 Ramana Radhakrishnan <ramana.radhakrishnan@arm.com>
536 Richard Earnshaw <rearnsha@arm.com>
537 Sofiane Naci <sofiane.naci@arm.com>
538 Tejas Belagod <tejas.belagod@arm.com>
539 Yufeng Zhang <yufeng.zhang@arm.com>
540
541 * Makefile.am: Add AArch64 files.
542 * Makefile.in: Regenerate.
543 * archures.c (bfd_aarch64_arch): New declaration.
544 (bfd_archures_list): Use bfd_archures_list.
545 * bfd-in.h (bfd_elf64_aarch64_init_maps): New declaration.
546 (bfd_aarch64_process_before_allocation): New declaration.
547 (bfd_elf64_aarch64_process_before_allocation): New declaration.
548 (bfd_elf64_aarch64_set_options): New declaration.
549 (bfd_elf64_aarch64_add_glue_sections_to_bfd): New declaration.
550 (BFD_AARCH64_SPECIAL_SYM_TYPE_MAP): New definition.
551 (BFD_AARCH64_SPECIAL_SYM_TYPE_TAG): New definition.
552 (BFD_AARCH64_SPECIAL_SYM_TYPE_OTHER): New definition.
553 (BFD_AARCH64_SPECIAL_SYM_TYPE_ANY): New definition.
554 (bfd_is_aarch64_special_symbol_name): New declaration.
555 (bfd_aarch64_merge_machines): New declaration.
556 (bfd_aarch64_update_notes): New declaration.
557 (int bfd_aarch64_get_mach_from_notes): New declaration.
558 (elf64_aarch64_setup_section_lists): New declaration.
559 (elf64_aarch64_next_input_section): New declaration.
560 (elf64_aarch64_size_stubs): New declaration.
561 (elf64_aarch64_build_stubs): New declaration.
562 * config.bfd: Add AArch64.
563 * configure.in: Add AArch64.
564 * configure: Regenerate.
565 * cpu-aarch64.c: New file.
566 * elf-bfd.h: Add AArch64.
567 * bfd-in2.h: Regenerate.
568 * libbfd.h: Regenerate.
569 * elf64-aarch64.c: New file.
570 * reloc.c: Add AArch64 relocations.
571 * targets.c: Add AArch64.
572 * po/SRC-POTFILES.in: Regenerate.
573
9f1a453e
MR
5742012-08-13 Maciej W. Rozycki <macro@codesourcery.com>
575
576 * elfxx-mips.c (mips_elf_calculate_relocation): Fix the handling
577 of protected symbols.
578
44534af3
AM
5792012-08-10 Alan Modra <amodra@gmail.com>
580
581 PR binutils/14444
582 * elf.c (IS_VALID_GROUP_SECTION_HEADER) Add minsize param.
583 (setup_group): Adjust uses.
584 (bfd_section_from_shdr): Allow SHT_GROUP sections with just a flag
585 word.
586
3c892704
NC
5872012-08-09 Nick Clifton <nickc@redhat.com>
588
589 * po/vi.po: Updated Vietnamese translation.
590
d21911ea
MR
5912012-08-09 Maciej W. Rozycki <macro@codesourcery.com>
592
593 * elfxx-mips.c (LA25_LUI_MICROMIPS_1, LA25_LUI_MICROMIPS_2):
594 Remove macros, folding them into...
595 (LA25_LUI_MICROMIPS): ... this new macro.
596 (LA25_J_MICROMIPS_1, LA25_J_MICROMIPS_2): Likewise into...
597 (LA25_J_MICROMIPS): ... this new macro.
598 (LA25_ADDIU_MICROMIPS_1, LA25_ADDIU_MICROMIPS_2): Likewise
599 into...
600 (LA25_ADDIU_MICROMIPS): ... this new macro.
601 (bfd_put_micromips_32, bfd_get_micromips_32): New functions.
602 (mips_elf_create_la25_stub): Use them.
603 (check_br32_dslot, check_br32, check_relocated_bzc): Likewise.
604 (_bfd_mips_elf_relax_section): Likewise.
605
eeb1f9ae
AM
6062012-08-09 Alan Modra <amodra@gmail.com>
607 Tom Tromey <tromey@redhat.com>
608
609 * archive.c (SECTION Archives): Update documentation.
610 (_bfd_delete_archive_data): Remove.
611 (_bfd_add_bfd_to_archive_cache): Set 'parent_cache' and 'key'.
612 (archive_close_worker, _bfd_archive_close_and_cleanup): New
613 functions.
614 * libbfd-in.h (struct areltdata <parent_cache, key>): New fields.
615 (_bfd_delete_archive_data): Don't declare.
616 (_bfd_archive_close_and_cleanup): Declare.
617 (_bfd_generic_close_and_cleanup): Redefine.
618 * libbfd.h: Rebuild.
619 * opncls.c (_bfd_delete_bfd): Don't call _bfd_delete_archive_data.
620 (bfd_close): Don't close nested thin archives here.
621
a988325c
NC
6222012-08-07 Tom Tromey <tromey@redhat.com>
623
624 * archive.c (_bfd_delete_archive_data): New function.
625 * libbfd-in.h (_bfd_delete_archive_data): Declare.
626 * libbfd.h: Rebuild.
627 * opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
628
5125d2b0
NC
6292012-08-07 Nick Clifton <nickc@redhat.com>
630
631 * po/uk.po: Updated Ukranian translation.
632
eb8476a6
MR
6332012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
634
635 * elflink.c (bfd_elf_record_link_assignment): Remove --defsym
636 symbols special case.
637
a22a8039
MR
6382012-08-05 Maciej W. Rozycki <macro@linux-mips.org>
639
640 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate
641 PLT slots for local symbols.
642
1a6c3ca2
MR
6432012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
644
645 * elf64-mips.c (mips16_elf64_howto_table_rela): Correct src_mask
646 field initializers throughout.
647 * elfn32-mips.c (elf_mips16_howto_table_rela): Likewise.
648
3bdf9505
MR
6492012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
650
651 * elfxx-mips.c (mips_elf_perform_relocation): Update the
652 cross-mode jump message.
653
6e6be592
MR
6542012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
655
656 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Update the
657 comment on DT_MIPS_RLD_MAP.
658
7b84f8da
TT
6592012-08-03 Tom Tromey <tromey@redhat.com>
660
661 * opncls.c (_bfd_delete_bfd): Now static.
662 * libbfd-in.h (_bfd_delete_bfd): Don't declare.
663 * libbfd.h: Rebuild.
664
9a92d0ce
SK
6652012-08-02 Sean Keys <skeys@ipdatasys.com>
666
667 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
668 conditional statment to allow suppression of mismatched bank
669 warning.
670
1c37913d
AM
6712012-08-01 Alan Modra <amodra@gmail.com>
672
673 * dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
674 (_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open
675 gnu_debuglink bfd.
676 (_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.
677
a6dc81d2
NC
6782012-07-30 Nick Clifton <nickc@redhat.com>
679
680 * po/bfd.pot: Updated template.
681 * po/es.po: Updated Spanish translation.
682 * po/fi.po: Updated Finnish translation.
683 * po/fr.po: Updated French translation.
684 * po/ru.po: Updated Russian translation.
685 * po/uk.po: Updated Ukranian translation.
686
c4dd807e
MF
6872012-07-27 Mike Frysinger <vapier@gentoo.org>
688
689 * configure.in (AC_INIT): Call with the args bfd and 2.22.52.
690 (AM_INIT_AUTOMAKE): Remove args.
691 * configure: Regenerate.
692
c92b291c
AK
6932012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
694
695 * cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default
696 arch depending on the target size.
697
ecdf0cbb
TG
6982012-07-27 Tristan Gingold <gingold@adacore.com>
699
700 * configure.in: Bump version to 2.23.51
701 * configure: Regenerate.
702
f725daa8
CC
7032012-07-26 Teresa Johnson <tejohnson@google.com>
704
705 * bfd/dwarf2.c (find_line): Initialize discriminator_ptr
706 if it is non-NULL.
707
05456594
NC
7082012-07-26 Meador Inge <meadori@codesourcery.com>
709 Nick Clifton <nickc@redhat.com>
710
711 PR ld/14397
712 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Report an error
713 if a required section is missing from the linker script.
714
6aa82b64
EW
7152012-07-24 Jan Waclawek <konfera@efton.sk>
716 PR 13899
717 * elf32-avr.c (elf32_avr_relax_delete_bytes): Call
718 _bfd_elf_link_read_relocs with keep_memory as TRUE.
719
9b8d1a36
CC
7202012-07-24 Teresa Johnson <tejohnson@google.com>
721
722 * bfd.c (bfd_find_nearest_line_discriminator): New macro.
723 * coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
724 * coff64-rs6000.c: Likewise.
725 * dwarf2.c (struct line_info): Add discriminator field.
726 (add_line_info): Fill in new discriminator field.
727 (decode_line_info): Record discriminator information instead
44534af3 728 of ignoring it.
9b8d1a36 729 (lookup_address_in_line_info_table): Return discriminator field if
44534af3 730 requested.
9b8d1a36
CC
731 (comp_unit_find_nearest_line): Add discriminator argument.
732 (find_line): Likewise.
733 (_bfd_dwarf2_find_nearest_line): Likewise.
734 (_bfd_dwarf2_find_line): Likewise.
735 * elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
44534af3
AM
736 (_bfd_elf_find_line_discriminator): Likewise.
737 (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
9b8d1a36 738 * elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
44534af3
AM
739 that invokes _bfd_elf_find_nearest_line_discriminator with correct
740 arguments.
9b8d1a36
CC
741 (_bfd_elf_find_nearest_line_discriminator): New.
742 (_bfd_elf_find_line): Change to a wrapper
44534af3
AM
743 that invokes _bfd_elf_find_line_discriminator with correct
744 arguments.
9b8d1a36
CC
745 (_bfd_elf_find_line_discriminator): New.
746 * coffgen.c (coff_find_nearest_line_with_names): Handle
44534af3 747 new discriminator argument.
9b8d1a36
CC
748 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
749 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
750 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
751 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
752 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
44534af3
AM
753 argument.
754 (_bfd_dwarf2_find_line): Likewise.
755 (_bfd_generic_find_nearest_line_discriminator): New.
9b8d1a36
CC
756 * libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
757 * bfd-in2.h: Regenerated.
758 * libbfd.h: Likewise.
759 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
44534af3
AM
760 _bfd_find_nearest_line_discriminator with
761 _bfd_generic_find_nearest_line_discriminator.
762 (bfd_target): Add _bfd_find_nearest_line_discriminator.
9b8d1a36 763
082d1122
NC
7642012-07-24 Sean Keys <skeys@ipdatasys.com>
765
44534af3 766 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added code
082d1122 767 that enables the linker to offset addresses, when linking against
44534af3 768 symbols from the XGATE processor and vice versa.
082d1122 769
d86492f2
NC
7702012-07-23 Nick Clifton <nickc@redhat.com>
771
772 * cisco-core.c (cisco_core_file_failing_command): Make static.
773 (cisco_core_file_failing_signal): Make static.
774
7c960184
L
7752012-07-18 H.J. Lu <hongjiu.lu@intel.com>
776
777 * bfd-in2.h: Regenerated.
778
c06fc9eb
L
7792012-07-18 Nicolàs Alejandro Di Risio <sheeva@tiscali.it>
780
781 PR binutils/14335
782 * section.c: Fix a typo in comments.
783
470b557a
AK
7842012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
785
786 * elf64-s390.c: Include elf-s390-common.c.
787 (R_390_IRELATIVE): New reloc.
788 (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
789 (RELA_ENTRY_SIZE): New macro.
790 (elf_s390_link_hash_entry): New fields ifunc_resolver_address and
791 *ifunc_resolver_section.
792 (struct plt_entry): New struct.
793 (struct elf_s390_obj_tdata): New field local_plt.
794 (elf_s390_local_plt): New macro.
795 (struct elf_s390_link_hash_table): New field irelifunc.
796 (ELF64): New macro.
797 (link_hash_newfunc): Initialize new fields.
798 (elf_s390_check_relocs): Handle IFUNC symbols.
799 (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
800 symbols.
801 (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
802 IFUNC symbols.
803 (elf_s390_size_dynamic_sections): Handle IFUNC symbols.
804 (elf_s390_relocate_section): Likewise.
805 (elf_s390_finish_dynamic_symbol): Likewise.
806 (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
807 (elf_s390_finish_ifunc_symbol): New function.
808 (elf_s390_gc_sweep_hook): Handle local plt entries.
809 (elf_backend_add_symbol_hook): Define.
810 * elf32-s390.c: See elf64-s390.c changes.
811 * elf-s390-common.c: New file.
812 * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
813 * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
814 BFD_RELOC_390_IRELATIVE.
815 * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.
816
2c3fc389
NC
8172012-07-13 Nick Clifton <nickc@redhat.com>
818
819 * aix386-core.c: Remove use of PTR and PARAMS macros.
820 * archive.c: Likewise.
821 * cache.c: Likewise.
822 * cisco-core.c: Likewise.
823 * coff-alpha.c: Likewise.
824 * coff-apollo.c: Likewise.
825 * coff-aux.c: Likewise.
826 * coff-h8300.c: Likewise.
827 * coff-h8500.c: Likewise.
828 * coff-i386.c: Likewise.
829 * coff-i960.c: Likewise.
830 * coff-ia64.c: Likewise.
831 * coff-m68k.c: Likewise.
832 * coff-m88k.c: Likewise.
833 * coff-mcore.c: Likewise.
834 * coff-mips.c: Likewise.
835 * coff-or32.c: Likewise.
836 * coff-ppc.c: Likewise.
837 * coff-rs6000.c: Likewise.
838 * coff-sh.c: Likewise.
839 * coff-sparc.c: Likewise.
840 * coff-stgo32.c: Likewise.
841 * coff-tic30.c: Likewise.
842 * coff-tic4x.c: Likewise.
843 * coff-tic54x.c: Likewise.
844 * coff-tic80.c: Likewise.
845 * coff-w65.c: Likewise.
846 * cofflink.c: Likewise.
847 * cpu-arc.c: Likewise.
848 * cpu-cris.c: Likewise.
849 * cpu-h8500.c: Likewise.
850 * cpu-i960.c: Likewise.
851 * cpu-msp430.c: Likewise.
852 * cpu-ns32k.c: Likewise.
853 * cpu-powerpc.c: Likewise.
854 * cpu-rs6000.c: Likewise.
855 * cpu-tic4x.c: Likewise.
856 * cpu-w65.c: Likewise.
857 * ecoff.c: Likewise.
858 * ecofflink.c: Likewise.
859 * elf-m10200.c: Likewise.
860 * elf32-bfin.c: Likewise.
861 * elf32-cris.c: Likewise.
862 * elf32-crx.c: Likewise.
863 * elf32-fr30.c: Likewise.
864 * elf32-frv.c: Likewise.
865 * elf32-h8300.c: Likewise.
866 * elf32-i960.c: Likewise.
867 * elf32-m32c.c: Likewise.
868 * elf32-m68hc11.c: Likewise.
869 * elf32-m68hc12.c: Likewise.
870 * elf32-m68hc1x.c: Likewise.
871 * elf32-m68k.c: Likewise.
872 * elf32-mcore.c: Likewise.
873 * elf32-rl78.c: Likewise.
874 * elf32-rx.c: Likewise.
875 * elf32-s390.c: Likewise.
876 * elf32-vax.c: Likewise.
877 * elf64-alpha.c: Likewise.
878 * elf64-mmix.c: Likewise.
879 * elf64-s390.c: Likewise.
880 * elf64-sparc.c: Likewise.
881 * elfnn-ia64.c: Likewise.
882 * elfxx-mips.c: Likewise.
883 * elfxx-sparc.c: Likewise.
884 * hash.c: Likewise.
885 * hp300hpux.c: Likewise.
886 * hppabsd-core.c: Likewise.
887 * hpux-core.c: Likewise.
888 * i386dynix.c: Likewise.
889 * i386linux.c: Likewise.
890 * i386lynx.c: Likewise.
891 * i386mach3.c: Likewise.
892 * i386msdos.c: Likewise.
893 * i386os9k.c: Likewise.
894 * irix-core.c: Likewise.
895 * lynx-core.c: Likewise.
896 * m68klinux.c: Likewise.
897 * mach-o.h: Likewise.
898 * mipsbsd.c: Likewise.
899 * netbsd-core.c: Likewise.
900 * nlm32-i386.c: Likewise.
901 * osf-core.c: Likewise.
902 * pc532-mach.c: Likewise.
903 * pef.c: Likewise.
904 * ppcboot.c: Likewise.
905 * ptrace-core.c: Likewise.
906 * reloc16.c: Likewise.
907 * sco5-core.c: Likewise.
908 * som.h: Likewise.
909 * sparclinux.c: Likewise.
910 * sparclynx.c: Likewise.
911 * ticoff.h: Likewise.
912 * trad-core.c: Likewise.
913 * vms-lib.c: Likewise.
914 * xsym.h: Likewise.
915
14160578
AM
9162012-07-09 Alan Modra <amodra@gmail.com>
917
918 PR ld/14323
919 * elflink.c (elf_sort_symbol): Sort by size too.
920 (elf_link_add_object_symbols <weakdefs>): Simplify binary search.
921 Do not depend on ordering of symbol aliases. Match largest size.
922
1c52a645
L
9232012-07-03 H.J. Lu <hongjiu.lu@intel.com>
924
925 * elf.c (assign_section_numbers): Check if number of sections
926 >= SHN_LORESERVE.
927 * elfcode.h (elf_object_p): Likewise.
928
5f8ebec5
NC
9292012-07-03 Nick Clifton <nickc@redhat.com>
930
931 * archive.c (bsd_write_armap): Catch attempts to create an archive
932 with indicies bigger than 4Gb.
933 (coff_write_armap): Likewise.
934
5a5ed5b0
L
9352012-07-03 H.J. Lu <hongjiu.lu@intel.com>
936
937 PR binutils/14319
938 * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
939 debug section.
940
90c984fc
L
9412012-07-03 H.J. Lu <hongjiu.lu@intel.com>
942
943 PR ld/3351
944 * elflink.c (_bfd_elf_update_dynamic_flags): New.
945 (_bfd_elf_merge_symbol): Update both real and indirect symbol
946 dynamic flags.
947 (_bfd_elf_add_default_symbol): Make the real symbol dynamic if
948 the indirect symbol is defined in a shared library.
949 (elf_link_add_object_symbols): Likewise. If the indirect
950 symbol has been forced local, don't make the real symbol
951 dynamic.
952 (elf_link_check_versioned_symbol): Check indirect symbol.
953 (elf_link_output_extsym): Use real symbol definition when
954 reporting indirect symbol error. Check version info for
955 dynamic versioned symbol.
956
3146fac4
AM
9572012-07-03 Alan Modra <amodra@gmail.com>
958
959 PR ld/14207
960 * elf.c (assign_file_positions_for_load_sections): Remove assertions
961 that only PT_LOAD headers include file header and section headers.
962 (assign_file_positions_for_non_load_sections): Similarly don't
963 assert PT_GNU_RELRO header does not include file and section headers.
964 Compare first section vma rather than PT_LOAD p_vaddr against
965 relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace
966 abort with assertion.
967
87e0a731
AM
9682012-07-02 Alan Modra <amodra@gmail.com>
969
970 * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
971 "anyway" variant when creating .plt.
972 (m32c_elf_relax_plt_section): Remove redundant test and unused param.
973 (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
974 m32c_elf_relax_plt_section.
975 * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
976 when creating .got and .got.plt.
977 (_bfd_mips_elf_final_link): Likewise for .rtproc, and use
978 bfd_get_linker_section.
979 * sunos.c: Similarly throughout.
980
bc823199
AS
9812012-07-01 Andreas Schwab <schwab@linux-m68k.org>
982
983 * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
984 message.
985
a040981f
L
9862012-06-29 H.J. Lu <hongjiu.lu@intel.com>
987
988 * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
989 on unresolvable relocation.
990
d5abbdf3
L
9912012-06-29 H.J. Lu <hongjiu.lu@intel.com>
992
993 * archive.c (_bfd_compute_and_write_armap): Simplify global
994 symbol handling.
995
a8c887dd
NC
9962012-06-29 Nick Clifton <nickc@redhat.com>
997
998 PR ld/14189
999 * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
1000 for locally bound symbols.
1001
3d4d4302
AM
10022012-06-29 Alan Modra <amodra@gmail.com>
1003
1004 * section.c (bfd_get_linker_section): New function.
1005 * elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
1006 the above throughout rather than bfd_get_section_by_name. Use
1007 bfd_make_section_anyway rather than bfd_make_section when creating
1008 them.
1009 * elf32-bfin.c: Likewise.
1010 * elf32-cr16.c: Likewise.
1011 * elf32-cris.c: Likewise.
1012 * elf32-frv.c: Likewise.
1013 * elf32-hppa.c: Likewise.
1014 * elf32-i370.c: Likewise.
1015 * elf32-i386.c: Likewise.
1016 * elf32-lm32.c: Likewise.
1017 * elf32-m32c.c: Likewise.
1018 * elf32-m32r.c: Likewise.
1019 * elf32-m68k.c: Likewise.
1020 * elf32-microblaze.c: Likewise.
1021 * elf32-ppc.c: Likewise.
1022 * elf32-rl78.c: Likewise.
1023 * elf32-s390.c: Likewise.
1024 * elf32-score.c: Likewise.
1025 * elf32-score7.c: Likewise.
1026 * elf32-sh.c: Likewise.
1027 * elf32-tic6x.c: Likewise.
1028 * elf32-tilepro.c: Likewise.
1029 * elf32-vax.c: Likewise.
1030 * elf32-xstormy16.c: Likewise.
1031 * elf32-xtensa.c: Likewise.
1032 * elf64-alpha.c: Likewise.
1033 * elf64-hppa.c: Likewise.
1034 * elf64-ia64-vms.c: Likewise.
1035 * elf64-ppc.c: Likewise.
1036 * elf64-s390.c: Likewise.
1037 * elf64-sh64.c: Likewise.
1038 * elf64-sparc.c: Likewise.
1039 * elf64-x86-64.c: Likewise.
1040 * elfnn-ia64.c: Likewise.
1041 * elfxx-mips.c: Likewise.
1042 * elfxx-sparc.c: Likewise.
1043 * elfxx-tilegx.c: Likewise.
1044 * elflink.c: Likewise.
1045 * elf-vxworks.c: Likewise.
1046 * elf-m10300.c: Likewise. Also make use of htab plt, got and
1047 gotplt shortcuts.
1048 * bfd-in2.h: Regenerate.
1049 * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
1050 calling create_rofixup_section.
1051 * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
1052
66e17d7f
AM
10532012-06-29 Alan Modra <amodra@gmail.com>
1054
1055 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
1056 section for bss type sections, except for .rela.bss.
1057 * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
1058 * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
1059 * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
1060 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
1061 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
1062
6034aab8
RM
10632012-06-28 Roland McGrath <mcgrathr@google.com>
1064
1065 * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
1066 displacement calculation in nacl_p case.
1067
4c6a93d3
NC
10682012-06-28 Nick Clifton <nickc@redhat.com>
1069
1070 * po/uk.po: New Ukranian translation.
1071 * configure.in (ALL_LINGUAS): Add uk.
1072 * configure: Regenerate.
1073
a4fd3de5
AM
10742012-06-26 Alan Modra <amodra@gmail.com>
1075
1076 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
1077 file has multiple .got/.toc sections and all don't fit in
1078 current toc group.
1079
62655c7b
RM
10802012-06-22 Roland McGrath <mcgrathr@google.com>
1081
1082 * elf.c (assign_file_positions_for_non_load_sections): Define
1083 __ehdr_start symbol if it's referenced and there's a PT_LOAD
1084 segment that covers both the file and program headers.
1085
b70e7a2f
AS
10862012-06-22 Andreas Schwab <schwab@linux-m68k.org>
1087
1088 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
1089 _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
1090
27fc25a1
AM
10912012-06-22 Alan Modra <amodra@gmail.com>
1092
1093 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
1094 save/restore functions when relocatable. Make "funcs" static.
1095
51806b97
HPN
10962012-06-18 Hans-Peter Nilsson <hp@axis.com>
1097
1098 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
1099 of merged .got and .got.plt entries.
1100
46691134
AM
11012012-06-18 John Szakmeister <john@szakmeister.net>
1102
1103 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
1104
26a48bb3
HPN
11052012-06-17 Hans-Peter Nilsson <hp@axis.com>
1106
1107 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
1108 <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
1109 thread common symbols.
1110
5968a7b8
NC
11112012-06-13 Nick Clifton <nickc@redhat.com>
1112
1113 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
1114 (elf32_arm_object_p): If the machine number could not be deduced
1115 from the notes, call bfd_arm_get_mach_from_attributes to get the
1116 number from the attributes.
1117
8981c88a
L
11182012-06-12 H.J. Lu <hongjiu.lu@intel.com>
1119
1120 PR bfd/14207
1121 * elf.c (assign_file_positions_for_non_load_sections): Abort if
1122 PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
1123
3832a4d8
AM
11242012-06-12 Alan Modra <amodra@gmail.com>
1125
1126 PR ld/14207
1127 * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
1128 sections at end of PT_LOAD segment when searching for segment
1129 that contains end of relro extent.
1130
f3944f72
L
11312012-06-11 H.J. Lu <hongjiu.lu@intel.com>
1132
1133 * elf.c (assign_file_positions_for_non_load_sections): Reindent.
1134
be01b344
L
11352012-06-11 H.J. Lu <hongjiu.lu@intel.com>
1136
1137 * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
1138
ffbc01cc
AM
11392012-06-06 Alan Modra <amodra@gmail.com>
1140
1141 * elflink.c (elf_link_input_bfd): Provide a file symbol for
1142 each input file with local syms, if the input lacks such.
1143 (bfd_elf_final_link): Add a file symbol to mark end of locals
1144 for which we can associate with input files.
1145 (struct elf_final_link_info): Add filesym_count field.
1146 (struct elf_outext_info): Add need_second_pass and second_pass.
1147 (elf_link_output_extsym): Detect symbols defined in the output
1148 file, emit them on second pass over locals.
1149
fe78531d
JK
11502012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
1151
1152 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
1153 of target_read_memory as bfd_size_type.
1154 * bfd-in2.h: Regenerate.
1155 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
1156 argument of target_read_memory as bfd_size_type.
1157 (_bfd_elf32_bfd_from_remote_memory): Likewise.
1158 (_bfd_elf64_bfd_from_remote_memory): Likewise.
1159 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
1160 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
1161
aef36ac1
AM
11622012-06-03 Alan Modra <amodra@gmail.com>
1163
1164 PR binutils/13897
1165 * elf.c (elf_find_function): Cache last function sym info.
1166 (_bfd_elf_maybe_function_sym): Return function size, pass in
1167 section of interest.
1168 * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
1169 (_bfd_elf_maybe_function_sym): Likewise.
1170 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
1171 (opd_entry_value): Add in_code_sec param. Revert caching code.
1172 Return -1 if in_code_sec and function found in wrong section.
1173 Update all calls.
1174
5299c1c4
JK
11752012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
1176
1177 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
1178 of target_read_memory as size_t.
1179 * bfd-in2.h: Regenerate.
1180 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
1181 argument of target_read_memory as size_t.
1182 (_bfd_elf32_bfd_from_remote_memory): Likewise.
1183 (_bfd_elf64_bfd_from_remote_memory): Likewise.
1184 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
1185 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
1186
ee1e4ede
AM
11872012-06-01 Alan Modra <amodra@gmail.com>
1188
1189 PR binutils/13897
1190 * elf64-ppc.c (opd_entry_value): Rewrite cache code.
1191
6f0c7050
TT
11922012-05-29 Tom Tromey <tromey@redhat.com>
1193
1194 * opncls.c (bfd_fopen): Always close fd on failure.
1195 (bfd_fdopenr): Likewise.
1196
f5eda473
AM
11972012-05-27 Alan Modra <amodra@gmail.com>
1198
1199 PR ld/14170
1200 * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
1201 a dynamic library finds a new instance with non-default
1202 visibility in a regular object, correctly handle symbols
1203 already on the undefs list and undo dynamic symbol state when
1204 the new symbol is hidden or internal.
1205
bbf96e4e
L
12062012-05-25 H.J. Lu <hongjiu.lu@intel.com>
1207
1208 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
1209 dynamic_sec_flags to create PLT .eh_frame section.
1210 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1211
9a2a56cc
AM
12122012-05-25 Alan Modra <amodra@gmail.com>
1213
1214 PR ld/13909
1215 * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
1216 (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
1217 * elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
1218 * elflink.c (bfd_elf_size_dynamic_sections): Let the backend
1219 size dynamic sections before stripping eh_frame_hdr.
1220 (bfd_elf_gc_sections): Handle multiple .eh_frame sections.
1221 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
1222 if no other .eh_frame sections exist.
1223 * elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
1224 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
1225 or alloc plt_eh_frame here..
1226 (elf_i386_size_dynamic_sections): ..do it here instead. Don't
1227 specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
1228 (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
1229 before writing plt offset.
1230 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
1231 or alloc plt_eh_frame here..
1232 (elf_x86_64_size_dynamic_sections): ..do it here instead.
1233 (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
1234 before writing plt offset.
1235
4bbe044a
AM
12362012-05-24 Alan Modra <amodra@gmail.com>
1237
1238 PR ld/14158
1239 * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
1240 size to output section alignment.
1241 (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
1242
89b2bec8
AM
12432012-05-23 Alan Modra <amodra@gmail.com>
1244
1245 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
44534af3 1246 BFDs with multiple .eh_frame sections.
89b2bec8 1247
259b427a
AM
12482012-05-23 Alan Modra <amodra@gmail.com>
1249
1250 PR ld/13909
1251 * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
1252
e4de50d4
L
12532012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1254
1255 PR ld/13909
1256 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
1257 last change.
1258 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1259
7e01508c
AM
12602012-05-22 Alan Modra <amodra@gmail.com>
1261
1262 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
1263 first one is zero size or discarded.
1264 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
1265 glink_eh_frame contents here..
1266 (ppc_elf_finish_dynamic_sections): ..rather than here. Just set
1267 offset to .glink.
1268
5d4f7eb2
L
12692012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1270
1271 PR ld/13909
1272 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
1273 eh_frame section if there is an input .eh_frame section.
1274 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1275
2fe0fd06
L
12762012-05-22 H.J. Lu <hongjiu.lu@intel.com>
1277
1278 PR ld/14105
1279 * elf32-i386.c (elf_i386_create_dynamic_sections): Always
1280 create PLT eh_frame section with SEC_LINKER_CREATED.
1281 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
1282
90061c33
AM
12832012-05-22 Alan Modra <amodra@gmail.com>
1284
1285 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
1286 sections attached to a BFD.
1287 * section.c (bfd_get_section_by_name): Rewrite description.
1288 (bfd_get_next_section_by_name): New function.
1289 * bfd-in2.h: Regenerate.
1290
8bbeae90
AS
12912012-05-21 Andreas Schwab <schwab@linux-m68k.org>
1292
1293 * elf32-m68k.c (elf_m68k_grok_prstatus): New function.
1294 (elf_m68k_grok_psinfo): New function.
1295 (elf_backend_grok_prstatus): Define.
1296 (elf_backend_grok_psinfo): Define.
1297
a44acb1e
MR
12982012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1299
1300 * elf64-mips.c (elf_backend_got_header_size): Correct definition.
1301 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
1302 backend's GOT header size instead of hardcoding it.
1303
751c1fe7
MR
13042012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1305
1306 * elf32-vax.c (elf_vax_relocate_section)
1307 <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
1308
ddd74d3c
MR
13092012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1310
1311 * elf32-vax.c (elf_vax_relocate_section)
1312 <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
1313 its name as the check for text sections.
1314
b0189df0
MR
13152012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
1316
1317 * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
1318 the third reloc offset is the same as the first.
1319
94caa966
AM
13202012-05-19 Alan Modra <amodra@gmail.com>
1321
1322 * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
1323 (has_tls_reloc, has_tls_get_addr_call): Move back to..
1324 * elf32-ppc.c: ..here.
1325 (ppc_elf_section_flags, elf_backend_section_flags): Delete.
1326 (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
1327
220cf809
L
13282012-05-18 H.J. Lu <hongjiu.lu@intel.com>
1329
1330 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
1331 _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
1332 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
1333
3a11e31e
RM
13342012-05-18 Roland McGrath <mcgrathr@google.com>
1335
1336 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
1337 not to clobber the ar_fmag field stored in ARED->arch_header.
1338
2a0bfc8d
PA
13392012-05-18 Pedro Alves <palves@redhat.com>
1340
1341 * mach-o.h: Don't include sysdep.h.
1342
0bee45d9
NC
13432012-05-18 Nick Clifton <nickc@redhat.com>
1344
1345 PR 14072
1346 * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
1347 complaining about config.h not having been included.
1348 * bfd-in2.h: Regenerate.
1349
f2c621e4
AS
13502012-05-18 Andreas Schwab <schwab@linux-m68k.org>
1351
1352 * aclocal.m4: Regenerate.
1353 * Makefile.in: Regenerate.
1354
df7b86aa
NC
13552012-05-17 Daniel Richard G. <skunk@iskunk.org>
1356 Nick Clifton <nickc@redhat.com>
1357
1358 PR 14072
1359 * configure.in: Add check that sysdep.h has been included before
1360 any system header files.
1361 * configure: Regenerate.
1362 * config.in: Regenerate.
1363 * aclocal.m4: Regenerate.
1364 * bfd-in.h: Generate an error if included before config.h.
1365 * sysdep.h: Likewise.
1366 * bfd-in2.h: Regenerate.
1367 * compress.c: Remove #include "config.h".
1368 * plugin.c: Likewise.
1369 * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
1370 * elf64-hppa.c: Likewise.
1371 * som.c: Likewise.
1372 * xsymc.c: Likewise.
1373
2633a79c
AM
13742012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
1375 Alan Modra <amodra@gmail.com>
1376
1377 * elf.c (ignore_section_sym): Correct comment. Don't return
1378 true for absolute section.
1379 (elf_map_symbols): Move stray comment. Adjust for above change.
1380 Don't discard global section symbols.
1381
ab6dce23
AM
13822012-05-17 Alan Modra <amodra@gmail.com>
1383
1384 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
1385 _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
1386 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
1387 absolute.
1388
e1dad58d
AM
13892012-05-17 Alan Modra <amodra@gmail.com>
1390
1391 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
1392 is_ppc_vle): Move to..
1393 * elf32-ppc.h: ..here, making is_ppc_vle a macro.
1394
a0f49396
NC
13952012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
1396
1397 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
1398 bfd_get_section_lma, bfd_get_section_alignment,
1399 bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
1400 in order to use the `bfd' argument.
1401 * bfd-in2.h: Regenerate.
1402 * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
1403 as the first argument for `bfd_get_section_alignment'.
1404 * elf32-arm.c (create_ifunc_sections): Likewise, for
1405 `bfd_set_section_alignment'.
1406 * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
1407 `bfd_get_section_name'.
1408 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
1409 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
1410 (ppc_elf_relocate_section): Likewise.
1411 * elf64-mmix.c (mmix_final_link_relocate): Likewise, for
1412 `bfd_get_section_vma'.
1413 * elf64-ppc.c (create_linkage_sections): Likewise, for
1414 `bfd_set_section_alignment'.
1415
40551fb8
NC
14162012-05-16 Georg-Johann Lay <avr@gjlay.de>
1417
1418 PR target/13503
1419 * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
1420 * bfd-in2.h: Regenerate.
1421 * libbfd.h: Regenrate.
1422 * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
1423 R_AVR_8_HLO8.
1424 (avr_reloc_map): Likewise.
1425
691bf19c
NC
14262012-05-16 Daniel Richard G. <skunk@iskunk.org>
1427
1428 PR binutils/13558
1429 * bfd/aout-cris.c: Include sysdep.h before bfd.h.
1430 * bfd/aout-ns32k.c: Likewise.
1431 * bfd/aout-sparcle.c: Likewise.
1432 * bfd/aout0.c: Likewise.
1433 * bfd/bfd-in2.h: Likewise.
1434 * bfd/coff-stgo32.c: Likewise.
1435 * bfd/cpu-lm32.c: Likewise.
1436 * bfd/cpu-microblaze.c: Likewise.
1437 * bfd/cpu-score.c: Likewise.
1438 * bfd/cpu-tilegx.c: Likewise.
1439 * bfd/cpu-tilepro.c: Likewise.
1440 * bfd/elf32-lm32.c: Likewise.
1441 * bfd/elf32-microblaze.c: Likewise.
1442 * bfd/elf32-score7.c: Likewise.
1443 * bfd/elf32-tilepro.c: Likewise.
1444 * bfd/elfxx-tilegx.c: Likewise.
1445 * bfd/mach-o.h: Likewise.
1446 * bfd/nlm32-ppc.c: Likewise.
1447 * bfd/ns32knetbsd.c: Likewise.
1448 * bfd/pef.h: Likewise.
1449 * bfd/plugin.c: Likewise.
1450 * bfd/stab-syms.c: Likewise.
1451 * bfd/sunos.c: Likewise.
1452 * bfd/syms.c: Likewise.
1453 * bfd/xsym.h: Likewise.
1454
8b127cbc
AM
14552012-05-16 Alan Modra <amodra@gmail.com>
1456
1457 * elflink.c: Rename flaginfo to flinfo throughout, except..
1458 (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo.
1459 Formatting, style. Simplify flag match.
1460
a2a50954
AM
14612012-05-16 Alan Modra <amodra@gmail.com>
1462
1463 * dwarf2.c: Formatting.
1464 (arange_add): Pass in unit rather than bfd. Update callers.
1465 Ignore empty ranges. Don't ask for cleared memory.
1466 (parse_comp_unit): Only set unit->base_address if processing
1467 DW_TAG_compile_unit.
1468 (find_debug_info): Optimise section lookup.
1469 (place_sections): Use bfd_alloc for stash->adjusted_sections.
1470 (find_line): Match previously parsed comp unit addresses as we
1471 do for newly parsed comp units.
1472
df35687a
AM
14732012-05-16 Alan Modra <amodra@gmail.com>
1474
1475 * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf
1476 stops at end of ar_size field.
1477
eee3b786
AM
14782012-05-16 Alan Modra <amodra@gmail.com>
1479
44534af3
AM
1480 PR ld/13962
1481 PR ld/7023
eee3b786
AM
1482 * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is
1483 out of range. As a special case, fix sh_info for zero sh_size.
1484 Do the same for .symtab.
1485
6927f982
NC
14862012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
1487 Stephane Carrez <stcarrez@nerim.fr>
1488
1489 * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
1490 * config.bfd: Likewise.
1491 * cpu-m9s12x.c: New.
1492 * cpu-m9s12xg.c: New.
1493 * elf32-m68hc12.c: Add S12X and XGATE co-processor support.
1494 Add option to offset S12 addresses into XGATE memory space.
1495 Fix carry bug in IMM16 (IMM8 low/high) relocate.
1496 * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
1497 (ALL_MACHINES_CFILES): Likewise.
1498 * reloc.c: Add S12X relocs.
1499 * Makefile.in: Regenerate.
1500 * bfd-in2.h: Regenerate.
1501 * libbfd.h: Regenerate.
1502
b9c361e0
JL
15032012-05-14 James Lemke <jwlemke@codesourcery.com>
1504 Catherine Moore <clm@codesourcery.com>
1505
1506 * bfd.c (bfd_lookup_section_flags): Add section parm.
1507 * ecoff.c (bfd_debug_section): Remove flag_info initializer.
1508 * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
1509 (bfd_elf_lookup_section_flags): Add section parm.
1510 * elf32-ppc.c (is_ppc_vle): New function.
1511 (ppc_elf_modify_segment_map): New function.
1512 (elf_backend_modify_segment_map): Define.
1513 (has_vle_insns): New define.
1514 * elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
1515 * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
1516 Move in logic to omit / include a section.
1517 * libbfd-in.h (bfd_link_info): Add section parm.
1518 (bfd_generic_lookup_section_flags): Likewise.
1519 * reloc.c (bfd_generic_lookup_section_flags): Likewise.
1520 * section.c (bfd_section): Move out section_flag_info.
1521 (BFD_FAKE_SECTION): Remove flag_info initializer.
1522 * targets.c (_bfd_lookup_section_flags): Add section parm.
1523
15242012-05-14 Catherine Moore <clm@codesourcery.com>
1525
1526 * archures.c (bfd_mach_ppc_vle): New.
1527 * bfd-in2.h: Regenerated.
1528 * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
1529 * elf32-ppc.c (split16_format_type): New enumeration.
1530 (ppc_elf_vle_split16): New function.
1531 (HOWTO): Add entries for R_PPC_VLE relocations.
1532 (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
1533 (ppc_elf_section_flags): New function.
1534 (ppc_elf_lookup_section_flags): New function.
1535 (ppc_elf_section_processing): New function.
1536 (ppc_elf_check_relocs): Handle PPC_VLE relocations.
1537 (ppc_elf_relocation_section): Likewise.
1538 (elf_backend_lookup_section_flags_hook): Define.
1539 (elf_backend_section_flags): Define.
1540 (elf_backend_section_processing): Define.
6927f982 1541 * elf32-ppc.h (ppc_elf_section_processing): Declare.
b9c361e0
JL
1542 * libbfd.h: Regenerated.
1543 * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
1544 BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
1545 BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
1546 BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
1547 BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
1548 BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
1549 BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
1550 BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
1551 BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.
1552
8b127cbc 15532012-05-11 Georg-Johann Lay <avr@gjlay.de>
99700d6f
NC
1554
1555 PR target/13503
1556 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
1557 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
1558 * bfd-in2.h: Regenerate.
1559 * libbfd.h: Regenrate.
1560 * elf32-avr.c (elf_avr_howto_table): Add entries for
1561 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
1562 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
1563 R_AVR_8_HHI8.
1564
268a8d3a
L
15652012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1566
1567 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
1568 addend overflow check.
1569
74b1e045
DD
15702012-05-10 DJ Delorie <dj@redhat.com>
1571
1572 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
1573
6f2c9068
L
15742012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1575
1576 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
1577 hex number in x32 addend overflow check.
1578
1da80baa
L
15792012-05-10 H.J. Lu <hongjiu.lu@intel.com>
1580
1581 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
1582 R_X86_64_RELATIVE64.
1583
8cf0d2dd
L
15842012-05-09 H.J. Lu <hongjiu.lu@intel.com>
1585
1586 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
1587 overflow for R_X86_64_RELATIVE64.
1588
2d16d28e
DK
15892012-05-08 Ben Cheng <bccheng@google.com>
1590
8b127cbc 1591 * elf.c: Preserve the original p_align and p_flags if they are
2d16d28e
DK
1592 valid.
1593
2de5d135
AM
15942012-05-07 Alan Modra <amodra@gmail.com>
1595
1596 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
1597 RELOC_AGAINST_DISCARDED_SECTION invocation.
1598
a134cc9b
HPN
15992012-05-07 Hans-Peter Nilsson <hp@axis.com>
1600
1601 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
1602 local variable i_ instead of assuming and using a variable i.
1603
545fd46b
MR
16042012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
1605
1606 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
1607 relocations.
1608 * elfxx-mips.c (mips_reloc_against_discarded_section): New
1609 function.
1610 (_bfd_mips_elf_relocate_section): Call it, in place of
1611 RELOC_AGAINST_DISCARDED_SECTION.
1612 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
1613 to RELOC_AGAINST_DISCARDED_SECTION.
1614 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
1615 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
1616 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
1617 * elf32-bfin.c (bfin_relocate_section): Likewise.
1618 (bfinfdpic_relocate_section): Likewise.
1619 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
1620 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1621 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1622 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1623 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1624 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1625 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1626 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1627 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1628 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1629 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1630 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1631 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1632 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1633 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1634 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1635 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1636 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1637 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1638 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1639 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1640 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1641 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1642 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1643 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1644 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1645 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1646 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1647 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1648 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1649 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1650 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1651 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1652 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1653 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1654 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1655 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1656 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1657 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1658 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1659 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1660 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1661 (elf64_alpha_relocate_section): Likewise.
1662 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1663 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1664 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1665 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1666 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1667 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1668 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1669 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1670 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1671
62ab84ec
AM
16722012-05-05 Alan Modra <amodra@gmail.com>
1673
1674 PR ld/14052
1675 PR ld/13621
1676 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
1677
45dfa85a
AM
16782012-05-05 Alan Modra <amodra@gmail.com>
1679
1680 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
1681 bfd_und_section and bfd_ind_section with their _ptr variants, or
1682 use corresponding bfd_is_* macros.
1683 * aout-ns32k.c: Likewise.
1684 * aout-tic30.c: Likewise.
1685 * coff-arm.c: Likewise.
1686 * coff-tic54x.c: Likewise.
1687 * cpu-ns32k.c: Likewise.
1688 * elf-attrs.c: Likewise.
1689 * elfcode.h: Likewise.
1690 * peicode.h: Likewise.
1691 * reloc.c: Likewise.
1692 * riscix.c: Likewise.
1693 * versados.c: Likewise.
1694 * section.c: Likewise.
1695 (bfd_abs_section, bfd_ind_section, bfd_com_section,
1696 bfd_ind_section): Delete.
1697 (std_section): New array replacing above.
1698 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
1699 bfd_ind_section_ptr, STD_SECTION): Update.
1700 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
36ab465d 1701 * bfd-in2.h: Regenerate.
45dfa85a 1702
f6c1a2d5
NC
17032012-05-03 Sean Keys <skeys@ipdatasys.com>
1704
1705 * cpu-xgate.c: New file. Added XGATE support.
1706 * archures.c (bfd_architecture): Add XGATE architecture.
1707 (bfd_archures_list): Add reference to XGATE architecture info.
1708 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
1709 * reloc.c: Add various XGATE relocation enums.
1710 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
1711 list.
1712 * Makefile.am: Add support for XGATE elf.
1713 * configure.in: Ditto.
1714 * config.bfd: Ditto.
1715 * Makefile.in: Regenerate.
1716 * configure: Ditto.
1717 * bfd-in2.h: Ditto.
1718 * libbfd.h: Ditto.
1719 Added files for XGATE relocations.
1720 * elf32-xgate.c: Created minimal relocation file.
1721 * elf32-xgate.h: Created minimal header file for elf32-xgate.
1722
fec16237
TG
17232012-05-03 Tristan Gingold <gingold@adacore.com>
1724
1725 * dwarf2.c (decode_line_info): Ignore
1726 DW_LNE_HP_source_file_correlation.
1727
57402f1e
NC
17282012-05-01 Nick Clifton <nickc@redhat.com>
1729
1730 PR binutils/13121
1731 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
1732 AIX system headers.
1733 * coff-ppc.c: Likewise.
1734 * cofflink.c: Likewise.
1735 * elf32-arm.c: Likewise.
1736 * elf64-sparc.c: Likewise.
1737 * elflink.c: Likewise.
1738 * pdp11.c: Likewise.
1739 * rescoff.c: Likewise.
1740
c49ead2f
MW
17412012-04-26 Mark Wielaard <mjw@redhat.com>
1742
1743 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
1744 possibly being relative to DW_AT_low_pc.
1745 (parse_comp_unit): Likewise.
1746
cab0ad83
AS
17472012-04-26 Andreas Schwab <schwab@linux-m68k.org>
1748
1749 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
1750 also when generating PIE.
1751 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
1752 by relocations as dynamic.
1753
2b56b3f3
HPN
17542012-04-26 Hans-Peter Nilsson <hp@axis.com>
1755
1756 Provide a way for programs to recognize BFD_ASSERT calls.
1757 * bfd.c (bfd_assert_handler_type): New API type.
1758 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
1759 (_bfd_assert_handler): New variable.
1760 (_bfd_default_assert_handler): New function.
1761 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
1762 * libbfd-in.h (_bfd_assert_handler): Declare.
1763 * libbfd.h, bfd-in2.h: Regenerate.
1764
27586251
HPN
17652012-04-24 Hans-Peter Nilsson <hp@axis.com>
1766
1767 PR ld/13990
1768 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
1769 symbol, where PLT refcount is set to -1.
1770
dbaa2011
AM
17712012-04-24 Alan Modra <amodra@gmail.com>
1772
1773 PR ld/13991
8b127cbc 1774 * elf-bfd.h (_bfd_elf_link_just_syms): Define as
dbaa2011 1775 _bfd_generic_link_just_syms.
8b127cbc
AM
1776 * elflink.c (_bfd_elf_link_just_syms): Delete.
1777 * linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
dbaa2011 1778
8b127cbc
AM
1779 * bfd-in.h (discarded_section): Renamed from elf_discarded_section.
1780 * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
dbaa2011
AM
1781 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
1782 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
8b127cbc
AM
1783 * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
1784 * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
1785 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
1786 * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c,
1787 * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c,
1788 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c,
1789 * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c,
1790 * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c,
1791 * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
1792 * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c,
1793 * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c,
1794 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c,
1795 * elf32-score.c, * elf32-score7.c, * elf32-sh.c,
1796 * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c,
1797 * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c,
1798 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
1799 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1800 * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c,
1801 * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c,
1802 * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c,
1803 * reloc.c: Update all references.
1804 * bfd-in2.h: Regenerate.
dbaa2011 1805
87049b0d
AK
18062012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1807
1808 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1809 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1810
85e02784
TS
18112012-04-19 Thomas Schwinge <thomas@codesourcery.com>
1812
1813 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
1814 got_type.
1815 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
1816 it.
1817
87458ed2
KK
18182012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1819
1820 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
1821 relocations when LE conversion happens on the IE tls symbol.
1822
ea2d813e
RM
18232012-04-17 Roland McGrath <mcgrathr@google.com>
1824
1825 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
1826 so that 32-byte boundary is a proper instruction boundary.
1827
da03bf4d
TG
18282012-04-17 Tristan Gingold <gingold@adacore.com>
1829
1830 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
1831 member of an object archive.<
1832
d2226024
TG
18332012-04-17 Tristan Gingold <gingold@adacore.com>
1834
1835 * vms-lib.c (MAX_EKEYLEN): Define.
1836 (MAX_KEYLEN): Fix value.
1837 (vms_write_index): Add comments and fix indentation.
1838 Adjust comparaison. Add assertions. Free kbn_blk.
1839 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
1840 Compense MAX_KEYLEN adjustment.
1841
cb4437b8
MR
18422012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
1843
1844 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
1845 (_bfd_mips_elf_check_relocs): Update accordingly.
1846
aed64b35
L
18472012-04-13 Alan Modra <amodra@gmail.com>
1848
1849 PR ld/13947
1850 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
1851 reloc sections.
1852
2615994e
DM
18532012-04-12 David S. Miller <davem@davemloft.net>
1854
1855 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
1856 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
1857 * libbfd.h: Regenerate.
1858 * bfd-in2.h: Likewise.
1859 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
1860 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
1861 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
1862 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
1863 (_bfd_sparc_elf_check_relocs): Likewise.
1864 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1865 (_bfd_sparc_elf_relocate_section): Likewise.
1866
b38cadfb
NC
18672012-04-12 Roland McGrath <mcgrathr@google.com>
1868
1869 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
1870 New variables.
1871 (struct elf32_arm_link_hash_table): New member `nacl_p'.
1872 (elf32_arm_link_hash_table_create): Initialize it.
1873 (elf32_arm_nacl_link_hash_table_create): New function.
1874 (arm_movw_immediate, arm_movt_immediate): New functions.
1875 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
1876 (elf32_arm_finish_dynamic_sections): Likewise.
1877 (elf32_arm_output_plt_map_1): Likewise.
1878 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
1879 New backend vector stanza.
1880 (elf32_arm_nacl_modify_segment_map): New function.
1881 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
1882 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
1883 * configure.in: Likewise.
1884 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
1885 (bfd_elf32_littlearm_nacl_vec): Likewise.
1886 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
1887 (bfd_elf32_bigarm_symbian_vec): Likewise.
1888 (bfd_elf32_littlearm_symbian_vec): Likewise.
1889 (bfd_elf32_bigarm_vxworks_vec): Likewise.
1890 (bfd_elf32_littlearm_vxworks_vec): Likewise.
1891 * configure: Regenerated.
1892
202e2356
NC
18932012-04-12 Tristan Gingold <gingold@adacore.com>
1894
1895 * elflink.c (elf_link_output_extsym): Add a guard.
1896 (bfd_elf_final_link): Remove assertion.
1897 (bfd_elf_final_link): Add a guard.
1898 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
1899 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
1900 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
1901 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
1902 Remove.
1903 (elfNN-ia64-vms target): Move to ...
1904 * elf64-ia64-vms.c: New file.
1905 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
1906 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
1907 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
1908 * configure: Regenerate.
1909 * Makefile.in: Regenerate.
1910
4841cf0c
NC
19112012-04-11 Nick Clifton <nickc@redhat.com>
1912
1913 PR binutils/13897
1914 * elf64-ppc.c (opd_entry_value): When dealing with sections
1915 without relocs, keep the last section loaded in order to avoid
1916 unnecessary reloads.
1917
d324f6d6
RM
19182012-04-09 Roland McGrath <mcgrathr@google.com>
1919
1920 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
1921 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
1922 (nacl_modify_program_headers): Likewise.
1923
5a68afcf
RM
19242012-04-03 Roland McGrath <mcgrathr@google.com>
1925
1926 * elf-nacl.c: New file.
1927 * elf-nacl.h: New file.
1928 * elf32-i386.c (elf_backend_modify_segment_map): Define for
1929 bfd_elf32_i386_nacl_vec.
1930 (elf_backend_modify_program_headers): Likewise.
1931 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
1932 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
1933 (elf_backend_modify_program_headers): Likewise.
1934 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
1935 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
1936 * Makefile.in: Regenerated.
1937 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
1938 (bfd_elf32_x86_64_nacl_vec): Likewise.
1939 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
1940 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
1941 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
1942 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
1943 (bfd_elf32_i386_nacl_vec): Likewise.
1944 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
1945 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
1946 * configure: Regenerated.
1947
3a4ae681
AS
19482012-03-31 Andreas Schwab <schwab@linux-m68k.org>
1949
1950 * elf32-m68k.c (elf_m68k_relocate_section): Allow
1951 R_68K_TLS_LE{8,16,32} for PIE.
1952
a7e28bbe
AK
19532012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1954
1955 * elf64-s390.c: Fix several comments regarding PLT entry
1956 description.
1957 * elf32-s390.c: Likewise.
1958
f41345a7
AK
19592012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1960
1961 * elf64-s390.c: Use the section pointer shortcuts in
1962 elf_link_hash_table and remove them from the target specific
1963 variant.
1964 * elf32-s390.c: Likewise.
1965
9aa17453
AK
19662012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1967
1968 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
1969 New definitions.
1970 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
1971 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
1972 (elf_s390_finish_dynamic_sections): Likewise.
1973 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
1974 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
1975 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
1976 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
1977 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
1978
00d8c7a9
AK
19792012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1980
1981 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
1982 Rename all occurrences in the file to elf_dyn_relocs.
1983 * elf64-s390.c: Likewise.
1984
a66eed7a
AM
19852012-03-30 Alan Modra <amodra@gmail.com>
1986
1987 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
1988 libraries.
1989
f67f98b5
AM
19902012-03-29 Alan Modra <amodra@gmail.com>
1991
1992 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
1993 * bfd-in2.h: Regenerate.
1994
e8d2ba53
AM
19952012-03-23 Alan Modra <amodra@gmail.com>
1996
1997 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
1998 on empty alloc sections.
1999
051d833a
AM
20002012-03-23 Alan Modra <amodra@gmail.com>
2001
2002 * linker.c (_bfd_nearby_section): New function, split out from..
2003 (fix_syms): ..here.
2004 * bfd-in.h (_bfd_nearby_section): Declare.
2005 * bfd-in2.h: Regenerate.
2006 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
2007 data_index_section with ld -q or ld -r output relocs against
2008 stripped output sections. Instead use _bfd_nearby_section.
2009
62599110
AM
20102012-03-23 Alan Modra <amodra@gmail.com>
2011
2012 PR binutils/13894
2013 * elf64-ppc.c (opd_entry_value): Read full symbol table when
2014 sym hashes unavailable.
2015
b781d74f
JM
20162012-03-21 Eliot Dresselhaus <eliot@sonic.net>
2017
2018 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
2019 for non-C6X objects.
2020
17d5dae2
KT
20212012-03-20 Kai Tietz <ktietz@redhat.com>
2022
2023 PR ld/12742
2024 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
2025 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
2026 Add windows.h header include if HAVE_WINDOWS_H is defined.
2027 (dlerror): New static function if windows variant is used instead
2028 of dlfcn.h.
2029 (dlclose): Likewise.
2030 (dlopen): Likewise.
2031 (dlsym): Likewise.
2032 * configure: Regenerated.
2033 * config.in: Regenerated.
2034
bdb892b9
L
20352012-03-20 H.J. Lu <hongjiu.lu@intel.com>
2036
2037 PR ld/13880
2038 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
2039 for R_386_GOTOFF relocation against protected function if
2040 SYMBOLIC_BIND is true.
2041
2042 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
2043 error for R_X86_64_GOTOFF64 relocation against protected function
2044 when building executable or SYMBOLIC_BIND is true.
2045
8059fb19
RM
20462012-03-16 Roland McGrath <mcgrathr@google.com>
2047
2048 * config.bfd: Handle x86_64-*-nacl*.
2049 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
2050 (bfd_elf32_x86_64_nacl_vec): Likewise.
2051 * targets.c: Support them.
2052 * configure.in: Likewise.
2053 * configure: Regenerated.
2054
ac56ee8f
MGD
20552012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
2056
2057 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
2058 (elf32_arm_attributes_forbid_div): Likewise.
2059 (elf32_arm_merge_eabi_attributes): Correct handling of
2060 Tag_DIV_use.
2061
eed180f8
RM
20622012-03-15 Roland McGrath <mcgrathr@google.com>
2063
a4456d24
RM
2064 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
2065 elf_x86_64_backend_data parameters for plt_eh_frame.
2066
eed180f8
RM
2067 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
2068 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
2069 (elf_x86_64_arch_bed): New variable.
2070 (elf_backend_arch_data): New macro.
2071 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
2072 (elf_x86_64_allocate_dynrelocs): Likewise.
2073 (elf_x86_64_relocate_section): Likewise.
2074 (elf_x86_64_plt_sym_val): Likewise.
2075 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
2076 parameters for PLT details.
2077 (elf_x86_64_finish_dynamic_sections): Likewise.
2078
caa0075c
RM
20792012-03-14 Roland McGrath <mcgrathr@google.com>
2080
2081 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
2082 to the full size, padding out with nop instructions.
2083
1d7e9d18
AM
20842012-03-12 Alan Modra <amodra@gmail.com>
2085
2086 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
2087 on zero size dynbss symbol.
2088 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
2089 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
2090 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
2091 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
2092 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
2093 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
2094 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
2095 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
2096 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
2097 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
2098 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
2099 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
2100 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
2101 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
2102 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
2103 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
2104 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
2105 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
2106 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
2107 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
2108 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
2109
aea77599
AM
21102012-03-10 Edmar Wienskoski <edmar@freescale.com>
2111
2112 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
2113 * bfd-in2.h: Regenerate.
2114 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
2115 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
2116
56b8aada
L
21172012-03-09 H.J. Lu <hongjiu.lu@intel.com>
2118
2119 PR ld/13817
8b127cbc 2120 * elf32-i386.c (elf_i386_relocate_section): Restore
56b8aada
L
2121 R_386_IRELATIVE.
2122
8b127cbc 2123 * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
56b8aada
L
2124 R_X86_64_IRELATIVE.
2125
460f1cdc
TG
21262012-03-08 Tristan Gingold <gingold@adacore.com>
2127
2128 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
2129 keylen according to archive kind. Set nextvbn and nextrfa lhd
2130 fields. Add comments.
2131
0a22ae8e
NC
21322012-03-07 Nick Clifton <nickc@redhat.com>
2133
2134 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
2135 field.
2136 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
2137 (elf_mn10300_tdata): Define.
2138 (elf_mn10300_local_got_tls_type): Define.
2139 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
2140 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
2141 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
2142 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
2143 (mn10300_reloc_map): Likewise.
2144 (elf_mn10300_tls_transition): New function.
2145 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
2146 (mn10300_elf_check_relocs): Add TLS support.
2147 (mn10300_elf_final_link_relocate): Likewise.
2148 (mn10300_elf_relocate_section): Likewise.
2149 (mn10300_elf_relax_section): Likewise.
2150 (elf32_mn10300_link_hash_newfunc): Initialise new field.
2151 (_bfd_mn10300_copy_indirect_symbol): New function.
2152 (elf32_mn10300_link_hash_table_create): Initialise new fields.
2153 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
2154 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
2155 (_bfd_mn10300_elf_reloc_type_class): Allocate an
2156 elf_mn10300_obj_tdata structure.
2157 (elf_backend_copy_indirect_symbol): Define.
2158 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
2159 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
2160 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
2161 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
2162 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
2163 alongside other MN10300 relocations.
2164 * bfd-in2.h: Regenerate.
2165 * libbfd.h: Regenerate.
2166
3ce231f8
JJ
21672012-03-06 Jakub Jelinek <jakub@redhat.com>
2168
2169 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
2170 set relocate to TRUE.
2171
0bef263a
RO
21722012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
2173
2174 PR ld/12152
2175 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
2176 overflows for R_SPARC_UA32 in .stab sections.
2177
84abc003
AM
21782012-03-01 Alan Modra <amodra@gmail.com>
2179
2180 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
2181
3d301fdc
AM
21822012-02-27 Alan Modra <amodra@gmail.com>
2183
2184 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
2185 before calling elf specific function.
2186 (sh_elf_osec_readonly_p): Test for error return from above.
2187
cb83c803
AM
21882012-02-27 Alan Modra <amodra@gmail.com>
2189
2190 * elf32-spu.c (build_stub): Fix malloc under-allocation.
2191
6f7be959
WL
21922012-02-25 Walter Lee <walt@tilera.com>
2193 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
2194 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
2195 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
2196 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
2197 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
2198 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
2199 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
2200 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
2201 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
2202 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
2203 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
2204 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
2205 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
2206 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
2207 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
2208 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
2209 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
2210 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
2211 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
2212 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
2213 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
2214 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
2215 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
2216 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
2217 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
2218 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
2219 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
2220 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
2221 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
2222 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
2223 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
2224 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
2225 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
2226 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
2227 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
2228 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
2229 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
2230 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
2231 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
2232 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
2233 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
2234 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
2235 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
2236 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
2237 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
2238 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
2239 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
2240 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
2241 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
2242 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
2243 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
2244 relocations.
2245 (tilepro_reloc_map): Ditto.
2246 (tilepro_info_to_howto_rela): Ditto.
2247 (reloc_to_create_func): Ditto.
2248 (tilepro_tls_translate_to_le): New.
2249 (tilepro_tls_translate_to_ie): New.
2250 (tilepro_elf_tls_transition): New.
2251 (tilepro_elf_check_relocs): Handle new tls relocations.
2252 (tilepro_elf_gc_sweep_hook): Ditto.
2253 (allocate_dynrelocs): Ditto.
2254 (tilepro_elf_relocate_section): Ditto.
2255 (tilepro_replace_insn): New.
2256 (insn_mask_X1): New.
2257 (insn_mask_X0_no_dest_no_srca): New
2258 (insn_mask_X1_no_dest_no_srca): New
2259 (insn_mask_Y0_no_dest_no_srca): New
2260 (insn_mask_Y1_no_dest_no_srca): New
2261 (srca_mask_X0): New
2262 (srca_mask_X1): New
2263 (insn_tls_le_move_X1): New
2264 (insn_tls_le_move_zero_X0X1): New
2265 (insn_tls_ie_lw_X1): New
2266 (insn_tls_ie_add_X0X1): New
2267 (insn_tls_ie_add_Y0Y1): New
2268 (insn_tls_gd_add_X0X1): New
2269 (insn_tls_gd_add_Y0Y1): New
2270 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
2271 relocations.
2272 (tilegx_reloc_map): Ditto.
2273 (tilegx_info_to_howto_rela): Ditto.
2274 (reloc_to_create_func): Ditto.
2275 (tilegx_elf_link_hash_table): New field disable_le_transition.
2276 (tilegx_tls_translate_to_le): New.
2277 (tilegx_tls_translate_to_ie): New.
2278 (tilegx_elf_tls_transition): New.
2279 (tilegx_elf_check_relocs): Handle new tls relocations.
2280 (tilegx_elf_gc_sweep_hook): Ditto.
2281 (allocate_dynrelocs): Ditto.
2282 (tilegx_elf_relocate_section): Ditto.
2283 (tilegx_copy_bits): New.
2284 (tilegx_replace_insn): New.
2285 (insn_mask_X1): New.
2286 (insn_mask_X0_no_dest_no_srca): New.
2287 (insn_mask_X1_no_dest_no_srca): New.
2288 (insn_mask_Y0_no_dest_no_srca): New.
2289 (insn_mask_Y1_no_dest_no_srca): New.
2290 (insn_mask_X0_no_operand): New.
2291 (insn_mask_X1_no_operand): New.
2292 (insn_mask_Y0_no_operand): New.
2293 (insn_mask_Y1_no_operand): New.
2294 (insn_tls_ie_ld_X1): New.
2295 (insn_tls_ie_ld4s_X1): New.
2296 (insn_tls_ie_add_X0X1): New.
2297 (insn_tls_ie_add_Y0Y1): New.
2298 (insn_tls_ie_addx_X0X1): New.
2299 (insn_tls_ie_addx_Y0Y1): New.
2300 (insn_tls_gd_add_X0X1): New.
2301 (insn_tls_gd_add_Y0Y1): New.
2302 (insn_move_X0X1): New.
2303 (insn_move_Y0Y1): New.
2304 (insn_add_X0X1): New.
2305 (insn_add_Y0Y1): New.
2306 (insn_addx_X0X1): New.
2307 (insn_addx_Y0Y1): New.
2308 * libbfd.h: Regenerate.
2309 * bfd-in2.h: Regenerate.
2310
82590249
WL
23112012-02-25 Walter Lee <walt@tilera.com>
2312
fb6cedde
WL
2313 * config.bfd (tilegx-*-*): rename little endian vector; add big
2314 endian vector.
2315 (tilegxbe-*-*): New case.
2316 * configure.in (bfd_elf32_tilegx_vec): Rename...
2317 (bfd_elf32_tilegx_le_vec): ... to this.
2318 (bfd_elf32_tilegx_be_vec): New vector.
2319 (bfd_elf64_tilegx_vec): Rename...
2320 (bfd_elf64_tilegx_le_vec): ... to this.
2321 (bfd_elf64_tilegx_be_vec): New vector.
2322 * configure: Regenerate.
2323 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
2324 (TARGET_LITTLE_NAME): Ditto.
2325 (TARGET_BIG_SYM): Define.
2326 (TARGET_BIG_NAME): Define.
2327 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
2328 (TARGET_LITTLE_NAME): Ditto.
2329 (TARGET_BIG_SYM): Define.
2330 (TARGET_BIG_NAME): Define.
2331 * targets.c (bfd_elf32_tilegx_vec): Rename...
2332 (bfd_elf32_tilegx_le_vec): ... to this.
2333 (bfd_elf32_tilegx_be_vec): Declare.
2334 (bfd_elf64_tilegx_vec): Rename...
2335 (bfd_elf64_tilegx_le_vec): ... to this.
2336 (bfd_elf64_tilegx_be_vec): Declare.
2337 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
2338 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
2339 * bfd-in2.h: Regenerate.
2340 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 2341 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 2342
4115917d
NC
23432012-02-24 Nick Clifton <nickc@redhat.com>
2344
2345 PR ld/13730
2346 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
2347 error message instead of aborting, when an outofrange reloc is
2348 encountered.
2349
19765f52
IS
23502012-02-23 Iain Sandoe <idsandoe@googlemail.com>
2351
2352 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
2353 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
2354 bit-fields when target and host differ in endian-ness. When
2355 PAIRs are non-scattered find the 'symbol' from the preceding
2356 reloc. Add FIXME re. reloc symbols on section boundaries.
2357 (bfd_mach_o_swap_out_non_scattered_reloc): New.
2358 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
2359
6639d37a
IS
23602012-02-17 Iain Sandoe <idsandoe@googlemail.com>
2361
2362 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
2363 sect-diffs.
2364 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
2365 (bfd_mach_o_i386_swap_reloc_out): Likewise.
2366
e1e81ed3
IS
23672012-02-17 Tristan Gingold <gingold@adacore.com>
2368
2369 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
2370 * libbfd.h: Regenerated.
2371 * bfd-in2.h: Likewise.
2372 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
2373 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
2374 (bfd_mach_o_i386_swap_reloc_out): Likewise.
2375
d0ddfe27
AK
23762012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
2377
2378 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
2379 GD->LE and LD->LE optimizations.
2380
eb8c5f3f
AM
23812012-02-16 Alan Modra <amodra@gmail.com>
2382
2383 PR binutils/13355
2384 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
2385
e1741a1e
RH
23862012-02-13 Richard Henderson <rth@redhat.com>
2387
2388 PR ld/13621
2389 * linker.c (fix_syms): Force symbols outside any section into
2390 bfd_abs_section_ptr.
2391
5efbbc43
AM
23922012-02-13 Alan Modra <amodra@gmail.com>
2393
2394 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
2395 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
2396 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
2397 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
2398
3e3c397d
JK
23992012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
2400 Nick Clifton <nickc@redhat.com>
2401
2402 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
2403 memset.
2404
09903f4b
IS
24052012-02-10 Iain Sandoe <idsandoe@googlemail.com>
2406
2407 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
2408 vma additions in their logical, rather than physical order.
2409
632039e0
IS
24102012-02-10 Iain Sandoe <idsandoe@googlemail.com>
2411
2412 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
2413 parameters.
2414 * mach-o-x86-64.c (text_section_names_xlat): New.
2415 (mach_o_x86_64_segsec_names_xlat): New.
2416 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
2417 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
2418
565a6476
TG
24192012-02-10 Tristan Gingold <gingold@adacore.com>
2420
2421 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
2422 to avoid infinite loop. Add comments.
2423
923f257f
L
24242012-02-09 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 PR ld/13675
2427 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
2428 nop instructions.
2429 (bfd_arch_i386_short_nop_fill): New.
2430 (bfd_arch_i386_long_nop_fill): Likewise.
2431 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
2432 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
2433 bfd_arch_info initializers.
2434
2435 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
2436 (bfd_arch_i386_short_nop_fill): This.
2437 Update bfd_arch_info initializers.
2438 * cpu-l1om.c: Likewise.
2439
4e6b54a6
AM
24402012-02-08 Alan Modra <amodra@gmail.com>
2441
2442 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
2443 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
2444 the correct h->u.weakdef.
2445
ff9e0f5b
AM
24462012-02-07 Alan Modra <amodra@gmail.com>
2447
2448 * elf.c (elf_find_function): Don't use internal_elf_sym.
2449 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
2450 parameter with asymbol.
2451 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
2452 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
2453 (struct elf_backend_data <maybe_function_sym>): Likewise.
2454
526f25b2
EW
24552012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
2456
2457 PR bfd/13410
8b127cbc 2458 * elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
2459 condition that qualifies the candidates for relaxation.
2460
7c4f9963
TG
24612012-02-02 Tristan Gingold <gingold@adacore.com>
2462
2463 * bfdio.c (real_fopen): Remove unused vms_modes variable.
2464
facf03f2
TG
24652012-02-02 Tristan Gingold <gingold@adacore.com>
2466
2467 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
2468 variable warning.
2469
cd99171c
TG
24702012-02-02 Tristan Gingold <gingold@adacore.com>
2471
2472 * archive.c (bfd_slurp_armap): Fix thinko in cast.
2473
b7761f11
L
24742012-01-31 H.J. Lu <hongjiu.lu@intel.com>
2475
2476 PR ld/13616
2477 * archures.c (bfd_arch_info): Add fill.
2478 (bfd_default_arch_struct): Add bfd_arch_default_fill.
2479 (bfd_arch_default_fill): New.
2480
2481 * configure.in: Set bfd version to 2.22.52.
2482 * configure: Regenerated.
2483
2484 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
2485 initializer.
2486 * cpu-arc.c: Likewise.
2487 * cpu-arm.c: Likewise.
2488 * cpu-avr.c: Likewise.
2489 * cpu-bfin.c: Likewise.
2490 * cpu-cr16.c: Likewise.
2491 * cpu-cr16c.c: Likewise.
2492 * cpu-cris.c: Likewise.
2493 * cpu-crx.c: Likewise.
2494 * cpu-d10v.c: Likewise.
2495 * cpu-d30v.c: Likewise.
2496 * cpu-dlx.c: Likewise.
2497 * cpu-epiphany.c: Likewise.
2498 * cpu-fr30.c: Likewise.
2499 * cpu-frv.c: Likewise.
2500 * cpu-h8300.c: Likewise.
2501 * cpu-h8500.c: Likewise.
2502 * cpu-hppa.c: Likewise.
2503 * cpu-i370.c: Likewise.
2504 * cpu-i860.c: Likewise.
2505 * cpu-i960.c: Likewise.
2506 * cpu-ia64.c: Likewise.
2507 * cpu-ip2k.c: Likewise.
2508 * cpu-iq2000.c: Likewise.
2509 * cpu-lm32.c: Likewise.
2510 * cpu-m10200.c: Likewise.
2511 * cpu-m10300.c: Likewise.
2512 * cpu-m32c.c: Likewise.
2513 * cpu-m32r.c: Likewise.
2514 * cpu-m68hc11.c: Likewise.
2515 * cpu-m68hc12.c: Likewise.
2516 * cpu-m68k.c: Likewise.
2517 * cpu-m88k.c: Likewise.
2518 * cpu-mcore.c: Likewise.
2519 * cpu-mep.c: Likewise.
2520 * cpu-microblaze.c: Likewise.
2521 * cpu-mips.c: Likewise.
2522 * cpu-mmix.c: Likewise.
2523 * cpu-moxie.c: Likewise.
2524 * cpu-msp430.c: Likewise.
2525 * cpu-mt.c: Likewise.
2526 * cpu-ns32k.c: Likewise.
2527 * cpu-openrisc.c: Likewise.
2528 * cpu-or32.c: Likewise.
2529 * cpu-pdp11.c: Likewise.
2530 * cpu-pj.c: Likewise.
2531 * cpu-plugin.c: Likewise.
2532 * cpu-powerpc.c: Likewise.
2533 * cpu-rl78.c: Likewise.
2534 * cpu-rs6000.c: Likewise.
2535 * cpu-rx.c: Likewise.
2536 * cpu-s390.c: Likewise.
2537 * cpu-score.c: Likewise.
2538 * cpu-sh.c: Likewise.
2539 * cpu-sparc.c: Likewise.
2540 * cpu-spu.c: Likewise.
2541 * cpu-tic30.c: Likewise.
2542 * cpu-tic4x.c: Likewise.
2543 * cpu-tic54x.c: Likewise.
2544 * cpu-tic6x.c: Likewise.
2545 * cpu-tic80.c: Likewise.
2546 * cpu-tilegx.c: Likewise.
2547 * cpu-tilepro.c: Likewise.
2548 * cpu-v850.c: Likewise.
2549 * cpu-vax.c: Likewise.
2550 * cpu-w65.c: Likewise.
2551 * cpu-we32k.c: Likewise.
2552 * cpu-xc16x.c: Likewise.
2553 * cpu-xstormy16.c: Likewise.
2554 * cpu-xtensa.c: Likewise.
2555 * cpu-z80.c: Likewise.
2556 * cpu-z8k.c: Likewise.
2557
2558 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 2559 (bfd_arch_i386_fill): New.
b7761f11
L
2560 Add bfd_arch_i386_fill to bfd_arch_info initializer.
2561
2562 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
2563 * cpu-l1om.c: Likewise.
2564
ff9e0f5b 2565 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
2566 if fill size is 0.
2567
2568 * bfd-in2.h: Regenerated.
2569
0d048da3
ME
25702012-01-27 Michael Eager <eager@eagercon.com>
2571
8b127cbc 2572 * elf32-microblaze.c (create_got_section):
0d048da3
ME
2573 Reuse existing .rela.got section.
2574
9f296da3
AM
25752012-01-23 Alan Modra <amodra@gmail.com>
2576
2577 * elf-bfd.h: Formatting.
2578 (struct elf_backend_data): Add "maybe_function_sym".
2579 (_bfd_elf_maybe_function_sym): Declare.
2580 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
2581 (elfNN_bed): Init new field.
2582 * elf.c (elf_find_function): Use maybe_function_sym.
2583 (_bfd_elf_maybe_function_sym): New function.
2584 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
2585 (ppc64_elf_maybe_function_sym): New function.
2586
f1bb16f8
NC
25872012-01-20 Francois Gouget <fgouget@codeweavers.com>
2588
2589 PR binutils/13534
2590 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
2591 pad the size field in an archive header.
2592 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
2593 function for the archive size field.
2594 (bfd_generic_openr_next_archived_file): Likewise.
2595 (do_slurp_coff_armap): Likewise.
2596 (_bfd_write_archive_contents): Likewise.
2597 (_bfd_bsd44_write_ar_hdr): Use the new function.
2598 (bfd_ar_hdr_from_filesystem): Likewise.
2599 (_bfd_write_archive_contents): Likewise.
2600 (bsd_write_armap): Likewise.
2601 (coff_write_armap): Likewise.
2602 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
2603 * bfdio.c (bfd_bread): Use correct type for archive element
2604 sizes.
2605 * ar.c (open_inarch): Likewise.
2606 (extract_file): Likewise.
2607 * libbfd-in.h (struct areltdata): Use correct types for
2608 parsed_size and extra_size fields.
2609 Prototype _bfd_ar_sizepad function.
2610 * libbfd.h: Regenerate.
2611
1f20dca5
UW
26122012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
2613
2614 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
2615 Return NULL if core file generation is unsupported.
2616 (elfcore_write_prstatus): Likewise.
2617 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
2618 (elf_backend_write_core_note): Define.
2619
100fc767
TG
26202012-01-19 Tristan Gingold <gingold@adacore.com>
2621
2622 * pef.c: Add a comment.
2623 * xsym.c: Likewise.
2624
75cd47ed
AM
26252012-01-17 Alan Modra <amodra@gmail.com>
2626
2627 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
2628 trailing garbage in the note.
2629 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
2630
8a5dcf53
AM
26312012-01-16 Daniel Green <venix1@gmail.com>
2632
2633 PR ld/13491
2634 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
2635 h->root.type not h->type.
2636 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
2637
bb76d940
IS
26382012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2639
8a5dcf53
AM
2640 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
2641 indirect symbols.
687be931
IS
2642
26432012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2644
2645 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
2646 position from here... to (bfd_mach_o_build_seg_command): Here.
2647
50d10658
IS
26482012-01-12 Iain Sandoe <idsandoe@googlemail.com>
2649
2650 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
2651 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
2652 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
2653 file. (bfd_mach_o_section): Add indirect_syms field.
2654
e5081f2f
IS
26552012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2656
2657 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
2658 vmsize from filesize. Don't compute offsets or file sizes for
2659 zerofill sections.
2660
bbd56171
IS
26612012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2662
2663 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
2664 command type independent.
2665
794e51c0
AM
26662012-01-11 Alan Modra <amodra@gmail.com>
2667
2668 * elf64-ppc.c: Define more insns used in plt call stubs.
2669 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
2670 (ppc64_elf_relocate_section): Likewise.
2671 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
2672 (struct ppc_link_hash_table): Increase size of stub_count array.
2673 Add plt_stub_align and plt_thread_safe.
2674 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
2675 (plt_stub_size, plt_stub_pad): New functions.
2676 (build_plt_stub): Emit barriers for power7 thread safety. Don't
2677 emit needless save of r2.
2678 (build_tls_get_addr_stub): Adjust params.
2679 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
2680 plt stubs. Adjust build_*plt_stub calls.
2681 (ppc_size_one_stub): Similarly.
2682 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
2683 params. Choose default for plt_thread_safe based on existence of
2684 calls to thread creation functions. Modify plt_call to
2685 plt_call_r2save when no tocsave reloc found. Align tail of stub
2686 sections.
2687 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
2688 output of stub statistics.
2689 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
2690 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
2691
df4f9443
L
26922012-01-10 H.J. Lu <hongjiu.lu@intel.com>
2693
2694 PR ld/13581
2695 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
2696 check on R_X86_64_PCXX.
2697
2a65a88e
TG
26982012-01-10 Tristan Gingold <gingold@adacore.com>
2699
2700 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
2701 warning.
2702
660722b0
TG
27032012-01-10 Tristan Gingold <gingold@adacore.com>
2704
2705 * bfdio.c (bfd_tell): Handle nested archives.
2706 (bfd_seek): Ditto.
2707 * cache.c (bfd_cache_lookup_worker): Ditto.
2708 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
2709 nested archives.
2710 (bfd_generic_openr_next_archived_file): Likewise.
2711
b22161d6
IS
27122012-01-09 Iain Sandoe <idsandoe@googlemail.com>
2713
2714 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
2715 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
2716 (bfd_mach_o_primary_symbol_sort_key): Likewise.
2717 (bfd_mach_o_cf_symbols): Likewise.
2718 (bfd_mach_o_sort_symbol_table): Remove.
2719 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
2720 for indirect and dysymtab counts. Do the symbol sorting here.
2721 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
2722 Make the indirect symbols a TODO.
2723 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
2724 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
2725 a non-zero value.
2726 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
2727 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
2728 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
2729 (IS_MACHO_INDIRECT): Remove.
2730 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
2731
28a1b4f8
NC
27322012-01-06 Nick Clifton <nickc@redhat.com>
2733
2734 PR binutils/13121
2735 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
2736 'flaginfo' to avoid conflicts with AIX system headers.
2737
36f0a48f
TG
27382012-01-06 Tristan Gingold <gingold@adacore.com>
2739
2740 * bfdio.c (bfd_bread): Use arelt_size macro.
2741
76d4c1cb
TG
27422012-01-06 Tristan Gingold <gingold@adacore.com>
2743
2744 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
2745
a1c7aafb
NC
27462012-01-05 Nick Clifton <nickc@redhat.com>
2747
2748 PR ld/12161
2749 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
2750 necessary.
2751
e85c6a70
JK
27522012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2753
2754 Fix zero registers core files when built by gcc-4.7.
2755 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
2756 size. Call elfcore_write_note for the local variables. Remove the
2757 final elfcore_write_note call. Add NOTREACHED comments.
2758
15bbba8d
TG
27592012-01-04 Tristan Gingold <gingold@adacore.com>
2760
2761 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
2762 (bfd_mach_o_generic_stat_arch_elt): Adjust.
2763
a4e241ca
TG
27642012-01-04 Tristan Gingold <gingold@adacore.com>
2765
2766 * mach-o.c (bfd_mach_o_fat_member_init): New function.
2767 (bfd_mach_o_openr_next_archived_file): Reindent.
2768 Adjust to call bfd_mach_o_fat_member_init.
2769 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
2770
71141310
TG
27712012-01-04 Tristan Gingold <gingold@adacore.com>
2772
2773 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
2774 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
2775 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
2776 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
2777 BFD_RELOC_MACH_O_X86_64_BRANCH32,
2778 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
2779 BFD_RELOC_MACH_O_X86_64_GOT.
2780
9f4a5bd1
TG
27812012-01-04 Tristan Gingold <gingold@adacore.com>
2782
2783 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
2784 (bfd_mach_o_load_command): Add fvmlib field.
2785
2786 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
2787 (bfd_mach_o_read_command): Handle fvmlib.
2788
0b2de107
TG
27892012-01-04 Tristan Gingold <gingold@adacore.com>
2790
2791 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
2792 Decode msubtype for ARM.
2793
aeefa1c9
TG
27942012-01-04 Tristan Gingold <gingold@adacore.com>
2795
2796 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
2797
fc55a902
TG
27982012-01-04 Tristan Gingold <gingold@adacore.com>
2799
2800 * mach-o.h: Reindent header.
2801 (bfd_mach_o_encryption_info_command): New structure.
2802 (bfd_mach_o_load_command): Add encryption_info field.
2803
2804 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
2805 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
2806 (bfd_mach_o_read_command): Adjust error message.
2807
2ca7691a
TG
28082012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
2809
2810 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
2811 which reads DWARF2 and stores in stash from find_line.
2812 (find_line) Call _bfd_dwarf2_slurp_debug_info.
2813 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
2814 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
2815 * mach-o.c (dsym_subdir): The name of subdir where debug
2816 information may be stored.
2817 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
2818 type is UUID.
2819 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
2820 corresponding to the executable.
2821 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
2822 specified binary file.
2823 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
2824 the original BFD.
2825 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
2826 executables, dylibs, and bundles.
2827 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
2828 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
2829
68588f95
IS
28302012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2831
2832 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
2833 for stabd symbols.
2834 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
2835 (bfd_mach_o_cf_symbols): Likewise.
2836
f2b324f1
IS
28372012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2838
2839 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
2840
7f307238
IS
28412012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2842
2843 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
2844 as the value of an indirect symbol. Keep the string table index in
2845 non-indirect syms for reference.
2846 (bfd_mach_o_write_dysymtab): New.
2847 (bfd_mach_o_primary_symbol_sort_key): New.
2848 (bfd_mach_o_cf_symbols): New.
2849 (bfd_mach_o_sort_symbol_table): New.
2850 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
2851 If we are emitting a dysymtab, process indirect symbols and count the
2852 number of each other kind.
2853 (bfd_mach_o_mangle_sections): New.
2854 (bfd_mach_o_write_contents): Split out some pre-requisite code into
2855 the command builder. Write dysymtab if the command is present.
2856 (bfd_mach_o_count_sections_for_seg): New.
2857 (bfd_mach_o_build_seg_command): New.
2858 (bfd_mach_o_build_dysymtab_command): New.
2859 (bfd_mach_o_build_commands): Reorganize to support the fact that some
2860 commands are optional and should not be emitted if there are no
2861 sections or symbols.
2862 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 2863 * mach-o.h: Amend and add to comments.
7f307238
IS
2864 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
2865 pointer to the indirects, when present.
2866 (bfd_mach_o_should_emit_dysymtab): New macro.
2867 (IS_MACHO_INDIRECT): Likewise.
2868
23e1d329 2869For older changes see ChangeLog-2011
56882138
AM
2870\f
2871Local Variables:
2872mode: change-log
2873left-margin: 8
2874fill-column: 74
2875version-control: never
2876End:
This page took 0.781605 seconds and 4 git commands to generate.