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