daily update
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
a988325c
NC
12012-08-07 Tom Tromey <tromey@redhat.com>
2
3 * archive.c (_bfd_delete_archive_data): New function.
4 * libbfd-in.h (_bfd_delete_archive_data): Declare.
5 * libbfd.h: Rebuild.
6 * opncls.c (_bfd_delete_bfd): Call _bfd_delete_archive_data.
7
5125d2b0
NC
82012-08-07 Nick Clifton <nickc@redhat.com>
9
10 * po/uk.po: Updated Ukranian translation.
11
eb8476a6
MR
122012-08-06 Maciej W. Rozycki <macro@codesourcery.com>
13
14 * elflink.c (bfd_elf_record_link_assignment): Remove --defsym
15 symbols special case.
16
a22a8039
MR
172012-08-05 Maciej W. Rozycki <macro@linux-mips.org>
18
19 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Don't allocate
20 PLT slots for local symbols.
21
1a6c3ca2
MR
222012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
23
24 * elf64-mips.c (mips16_elf64_howto_table_rela): Correct src_mask
25 field initializers throughout.
26 * elfn32-mips.c (elf_mips16_howto_table_rela): Likewise.
27
3bdf9505
MR
282012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
29
30 * elfxx-mips.c (mips_elf_perform_relocation): Update the
31 cross-mode jump message.
32
6e6be592
MR
332012-08-03 Maciej W. Rozycki <macro@codesourcery.com>
34
35 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Update the
36 comment on DT_MIPS_RLD_MAP.
37
7b84f8da
TT
382012-08-03 Tom Tromey <tromey@redhat.com>
39
40 * opncls.c (_bfd_delete_bfd): Now static.
41 * libbfd-in.h (_bfd_delete_bfd): Don't declare.
42 * libbfd.h: Rebuild.
43
9a92d0ce
SK
442012-08-02 Sean Keys <skeys@ipdatasys.com>
45
46 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Modified
47 conditional statment to allow suppression of mismatched bank
48 warning.
49
1c37913d
AM
502012-08-01 Alan Modra <amodra@gmail.com>
51
52 * dwarf2.c (struct dwarf2_debug): Add close_on_cleanup.
53 (_bfd_dwarf2_slurp_debug_info): Set close_on_cleanup if we open
54 gnu_debuglink bfd.
55 (_bfd_dwarf2_cleanup_debug_info): Act on close_on_cleanup.
56
a6dc81d2
NC
572012-07-30 Nick Clifton <nickc@redhat.com>
58
59 * po/bfd.pot: Updated template.
60 * po/es.po: Updated Spanish translation.
61 * po/fi.po: Updated Finnish translation.
62 * po/fr.po: Updated French translation.
63 * po/ru.po: Updated Russian translation.
64 * po/uk.po: Updated Ukranian translation.
65
c4dd807e
MF
662012-07-27 Mike Frysinger <vapier@gentoo.org>
67
68 * configure.in (AC_INIT): Call with the args bfd and 2.22.52.
69 (AM_INIT_AUTOMAKE): Remove args.
70 * configure: Regenerate.
71
c92b291c
AK
722012-07-27 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
73
74 * cpu-s390.c (bfd_s390_64_arch, bfd_s390_arch): Pick the default
75 arch depending on the target size.
76
ecdf0cbb
TG
772012-07-27 Tristan Gingold <gingold@adacore.com>
78
79 * configure.in: Bump version to 2.23.51
80 * configure: Regenerate.
81
f725daa8
CC
822012-07-26 Teresa Johnson <tejohnson@google.com>
83
84 * bfd/dwarf2.c (find_line): Initialize discriminator_ptr
85 if it is non-NULL.
86
05456594
NC
872012-07-26 Meador Inge <meadori@codesourcery.com>
88 Nick Clifton <nickc@redhat.com>
89
90 PR ld/14397
91 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Report an error
92 if a required section is missing from the linker script.
93
6aa82b64
EW
942012-07-24 Jan Waclawek <konfera@efton.sk>
95 PR 13899
96 * elf32-avr.c (elf32_avr_relax_delete_bytes): Call
97 _bfd_elf_link_read_relocs with keep_memory as TRUE.
98
9b8d1a36
CC
992012-07-24 Teresa Johnson <tejohnson@google.com>
100
101 * bfd.c (bfd_find_nearest_line_discriminator): New macro.
102 * coff-rs6000.c: Init _bfd_find_nearest_line_discriminator.
103 * coff64-rs6000.c: Likewise.
104 * dwarf2.c (struct line_info): Add discriminator field.
105 (add_line_info): Fill in new discriminator field.
106 (decode_line_info): Record discriminator information instead
107 of ignoring it.
108 (lookup_address_in_line_info_table): Return discriminator field if
109 requested.
110 (comp_unit_find_nearest_line): Add discriminator argument.
111 (find_line): Likewise.
112 (_bfd_dwarf2_find_nearest_line): Likewise.
113 (_bfd_dwarf2_find_line): Likewise.
114 * elf-bfd.h (_bfd_elf_find_nearest_line_discriminator): New.
115 (_bfd_elf_find_line_discriminator): Likewise.
116 (_bfd_generic_find_nearest_line_discriminator): Likewise. Defined.
117 * elf.c (_bfd_elf_find_nearest_line): Change to a wrapper
118 that invokes _bfd_elf_find_nearest_line_discriminator with correct
119 arguments.
120 (_bfd_elf_find_nearest_line_discriminator): New.
121 (_bfd_elf_find_line): Change to a wrapper
122 that invokes _bfd_elf_find_line_discriminator with correct
123 arguments.
124 (_bfd_elf_find_line_discriminator): New.
125 * coffgen.c (coff_find_nearest_line_with_names): Handle
126 new discriminator argument.
127 * elf32-arm.c (elf32_arm_find_nearest_line): Likewise.
128 * elf64-alpha.c (elf64_alpha_find_nearest_line): Likewise.
129 * elfxx-mips.c (_bfd_mips_elf_find_nearest_line): Likewise.
130 * mach-o.c (bfd_mach_o_find_nearest_line): Likewise.
131 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Add discriminator
132 argument.
133 (_bfd_dwarf2_find_line): Likewise.
134 (_bfd_generic_find_nearest_line_discriminator): New.
135 * libbfd.c (_bfd_generic_find_nearest_line_discriminator): New.
136 * bfd-in2.h: Regenerated.
137 * libbfd.h: Likewise.
138 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize
139 _bfd_find_nearest_line_discriminator with
140 _bfd_generic_find_nearest_line_discriminator.
141 (bfd_target): Add _bfd_find_nearest_line_discriminator.
142
082d1122
NC
1432012-07-24 Sean Keys <skeys@ipdatasys.com>
144
145 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Added code
146 that enables the linker to offset addresses, when linking against
147 symbols from the XGATE processor and vice versa.
148
d86492f2
NC
1492012-07-23 Nick Clifton <nickc@redhat.com>
150
151 * cisco-core.c (cisco_core_file_failing_command): Make static.
152 (cisco_core_file_failing_signal): Make static.
153
7c960184
L
1542012-07-18 H.J. Lu <hongjiu.lu@intel.com>
155
156 * bfd-in2.h: Regenerated.
157
c06fc9eb
L
1582012-07-18 Nicolàs Alejandro Di Risio <sheeva@tiscali.it>
159
160 PR binutils/14335
161 * section.c: Fix a typo in comments.
162
470b557a
AK
1632012-07-13 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
164
165 * elf64-s390.c: Include elf-s390-common.c.
166 (R_390_IRELATIVE): New reloc.
167 (elf_s390_reloc_type_lookup): Support R_390_IRELATIVE.
168 (RELA_ENTRY_SIZE): New macro.
169 (elf_s390_link_hash_entry): New fields ifunc_resolver_address and
170 *ifunc_resolver_section.
171 (struct plt_entry): New struct.
172 (struct elf_s390_obj_tdata): New field local_plt.
173 (elf_s390_local_plt): New macro.
174 (struct elf_s390_link_hash_table): New field irelifunc.
175 (ELF64): New macro.
176 (link_hash_newfunc): Initialize new fields.
177 (elf_s390_check_relocs): Handle IFUNC symbols.
178 (elf_s390_adjust_dynamic_symbol): Don't do anything for IFUNC
179 symbols.
180 (allocate_dynrelocs): Call s390_elf_allocate_ifunc_dyn_relocs for
181 IFUNC symbols.
182 (elf_s390_size_dynamic_sections): Handle IFUNC symbols.
183 (elf_s390_relocate_section): Likewise.
184 (elf_s390_finish_dynamic_symbol): Likewise.
185 (elf_s390_finish_dynamic_sections): Handle local IFUNC symbols.
186 (elf_s390_finish_ifunc_symbol): New function.
187 (elf_s390_gc_sweep_hook): Handle local plt entries.
188 (elf_backend_add_symbol_hook): Define.
189 * elf32-s390.c: See elf64-s390.c changes.
190 * elf-s390-common.c: New file.
191 * bfd-in2.h (BFD_RELOC_390_IRELATIVE): New enum field.
192 * libbfd.h (BFD_RELOC_390_IRELATIVE): New entry for
193 BFD_RELOC_390_IRELATIVE.
194 * reloc.c (BFD_RELOC_390_IRELATIVE): Document new relocation.
195
2c3fc389
NC
1962012-07-13 Nick Clifton <nickc@redhat.com>
197
198 * aix386-core.c: Remove use of PTR and PARAMS macros.
199 * archive.c: Likewise.
200 * cache.c: Likewise.
201 * cisco-core.c: Likewise.
202 * coff-alpha.c: Likewise.
203 * coff-apollo.c: Likewise.
204 * coff-aux.c: Likewise.
205 * coff-h8300.c: Likewise.
206 * coff-h8500.c: Likewise.
207 * coff-i386.c: Likewise.
208 * coff-i960.c: Likewise.
209 * coff-ia64.c: Likewise.
210 * coff-m68k.c: Likewise.
211 * coff-m88k.c: Likewise.
212 * coff-mcore.c: Likewise.
213 * coff-mips.c: Likewise.
214 * coff-or32.c: Likewise.
215 * coff-ppc.c: Likewise.
216 * coff-rs6000.c: Likewise.
217 * coff-sh.c: Likewise.
218 * coff-sparc.c: Likewise.
219 * coff-stgo32.c: Likewise.
220 * coff-tic30.c: Likewise.
221 * coff-tic4x.c: Likewise.
222 * coff-tic54x.c: Likewise.
223 * coff-tic80.c: Likewise.
224 * coff-w65.c: Likewise.
225 * cofflink.c: Likewise.
226 * cpu-arc.c: Likewise.
227 * cpu-cris.c: Likewise.
228 * cpu-h8500.c: Likewise.
229 * cpu-i960.c: Likewise.
230 * cpu-msp430.c: Likewise.
231 * cpu-ns32k.c: Likewise.
232 * cpu-powerpc.c: Likewise.
233 * cpu-rs6000.c: Likewise.
234 * cpu-tic4x.c: Likewise.
235 * cpu-w65.c: Likewise.
236 * ecoff.c: Likewise.
237 * ecofflink.c: Likewise.
238 * elf-m10200.c: Likewise.
239 * elf32-bfin.c: Likewise.
240 * elf32-cris.c: Likewise.
241 * elf32-crx.c: Likewise.
242 * elf32-fr30.c: Likewise.
243 * elf32-frv.c: Likewise.
244 * elf32-h8300.c: Likewise.
245 * elf32-i960.c: Likewise.
246 * elf32-m32c.c: Likewise.
247 * elf32-m68hc11.c: Likewise.
248 * elf32-m68hc12.c: Likewise.
249 * elf32-m68hc1x.c: Likewise.
250 * elf32-m68k.c: Likewise.
251 * elf32-mcore.c: Likewise.
252 * elf32-rl78.c: Likewise.
253 * elf32-rx.c: Likewise.
254 * elf32-s390.c: Likewise.
255 * elf32-vax.c: Likewise.
256 * elf64-alpha.c: Likewise.
257 * elf64-mmix.c: Likewise.
258 * elf64-s390.c: Likewise.
259 * elf64-sparc.c: Likewise.
260 * elfnn-ia64.c: Likewise.
261 * elfxx-mips.c: Likewise.
262 * elfxx-sparc.c: Likewise.
263 * hash.c: Likewise.
264 * hp300hpux.c: Likewise.
265 * hppabsd-core.c: Likewise.
266 * hpux-core.c: Likewise.
267 * i386dynix.c: Likewise.
268 * i386linux.c: Likewise.
269 * i386lynx.c: Likewise.
270 * i386mach3.c: Likewise.
271 * i386msdos.c: Likewise.
272 * i386os9k.c: Likewise.
273 * irix-core.c: Likewise.
274 * lynx-core.c: Likewise.
275 * m68klinux.c: Likewise.
276 * mach-o.h: Likewise.
277 * mipsbsd.c: Likewise.
278 * netbsd-core.c: Likewise.
279 * nlm32-i386.c: Likewise.
280 * osf-core.c: Likewise.
281 * pc532-mach.c: Likewise.
282 * pef.c: Likewise.
283 * ppcboot.c: Likewise.
284 * ptrace-core.c: Likewise.
285 * reloc16.c: Likewise.
286 * sco5-core.c: Likewise.
287 * som.h: Likewise.
288 * sparclinux.c: Likewise.
289 * sparclynx.c: Likewise.
290 * ticoff.h: Likewise.
291 * trad-core.c: Likewise.
292 * vms-lib.c: Likewise.
293 * xsym.h: Likewise.
294
14160578
AM
2952012-07-09 Alan Modra <amodra@gmail.com>
296
297 PR ld/14323
298 * elflink.c (elf_sort_symbol): Sort by size too.
299 (elf_link_add_object_symbols <weakdefs>): Simplify binary search.
300 Do not depend on ordering of symbol aliases. Match largest size.
301
1c52a645
L
3022012-07-03 H.J. Lu <hongjiu.lu@intel.com>
303
304 * elf.c (assign_section_numbers): Check if number of sections
305 >= SHN_LORESERVE.
306 * elfcode.h (elf_object_p): Likewise.
307
5f8ebec5
NC
3082012-07-03 Nick Clifton <nickc@redhat.com>
309
310 * archive.c (bsd_write_armap): Catch attempts to create an archive
311 with indicies bigger than 4Gb.
312 (coff_write_armap): Likewise.
313
5a5ed5b0
L
3142012-07-03 H.J. Lu <hongjiu.lu@intel.com>
315
316 PR binutils/14319
317 * elf.c (_bfd_elf_make_section_from_shdr): Don't compress empty
318 debug section.
319
90c984fc
L
3202012-07-03 H.J. Lu <hongjiu.lu@intel.com>
321
322 PR ld/3351
323 * elflink.c (_bfd_elf_update_dynamic_flags): New.
324 (_bfd_elf_merge_symbol): Update both real and indirect symbol
325 dynamic flags.
326 (_bfd_elf_add_default_symbol): Make the real symbol dynamic if
327 the indirect symbol is defined in a shared library.
328 (elf_link_add_object_symbols): Likewise. If the indirect
329 symbol has been forced local, don't make the real symbol
330 dynamic.
331 (elf_link_check_versioned_symbol): Check indirect symbol.
332 (elf_link_output_extsym): Use real symbol definition when
333 reporting indirect symbol error. Check version info for
334 dynamic versioned symbol.
335
3146fac4
AM
3362012-07-03 Alan Modra <amodra@gmail.com>
337
338 PR ld/14207
339 * elf.c (assign_file_positions_for_load_sections): Remove assertions
340 that only PT_LOAD headers include file header and section headers.
341 (assign_file_positions_for_non_load_sections): Similarly don't
342 assert PT_GNU_RELRO header does not include file and section headers.
343 Compare first section vma rather than PT_LOAD p_vaddr against
344 relro_start when looking for PT_LOAD covering PT_GNU_RELRO. Replace
345 abort with assertion.
346
87e0a731
AM
3472012-07-02 Alan Modra <amodra@gmail.com>
348
349 * elf32-m32c.c (m32c_elf_check_relocs): Use bfd_make_section
350 "anyway" variant when creating .plt.
351 (m32c_elf_relax_plt_section): Remove redundant test and unused param.
352 (m32c_elf_relax_section): Test SEC_LINKER_CREATED before calling
353 m32c_elf_relax_plt_section.
354 * elfxx-mips.c (mips_elf_create_got_section): Use make anyway variant
355 when creating .got and .got.plt.
356 (_bfd_mips_elf_final_link): Likewise for .rtproc, and use
357 bfd_get_linker_section.
358 * sunos.c: Similarly throughout.
359
bc823199
AS
3602012-07-01 Andreas Schwab <schwab@linux-m68k.org>
361
362 * elf.c (_bfd_elf_make_section_from_shdr): Fix typo in error
363 message.
364
a040981f
L
3652012-06-29 H.J. Lu <hongjiu.lu@intel.com>
366
367 * elf64-x86-64.c (elf_x86_64_relocate_section): Return FALSE
368 on unresolvable relocation.
369
d5abbdf3
L
3702012-06-29 H.J. Lu <hongjiu.lu@intel.com>
371
372 * archive.c (_bfd_compute_and_write_armap): Simplify global
373 symbol handling.
374
a8c887dd
NC
3752012-06-29 Nick Clifton <nickc@redhat.com>
376
377 PR ld/14189
378 * elf32-arm.c (elf32_arm_check_relocs): Do not increment refcount
379 for locally bound symbols.
380
3d4d4302
AM
3812012-06-29 Alan Modra <amodra@gmail.com>
382
383 * section.c (bfd_get_linker_section): New function.
384 * elf32-arm.c: When retrieving SEC_LINKER_CREATED sections, use
385 the above throughout rather than bfd_get_section_by_name. Use
386 bfd_make_section_anyway rather than bfd_make_section when creating
387 them.
388 * elf32-bfin.c: Likewise.
389 * elf32-cr16.c: Likewise.
390 * elf32-cris.c: Likewise.
391 * elf32-frv.c: Likewise.
392 * elf32-hppa.c: Likewise.
393 * elf32-i370.c: Likewise.
394 * elf32-i386.c: Likewise.
395 * elf32-lm32.c: Likewise.
396 * elf32-m32c.c: Likewise.
397 * elf32-m32r.c: Likewise.
398 * elf32-m68k.c: Likewise.
399 * elf32-microblaze.c: Likewise.
400 * elf32-ppc.c: Likewise.
401 * elf32-rl78.c: Likewise.
402 * elf32-s390.c: Likewise.
403 * elf32-score.c: Likewise.
404 * elf32-score7.c: Likewise.
405 * elf32-sh.c: Likewise.
406 * elf32-tic6x.c: Likewise.
407 * elf32-tilepro.c: Likewise.
408 * elf32-vax.c: Likewise.
409 * elf32-xstormy16.c: Likewise.
410 * elf32-xtensa.c: Likewise.
411 * elf64-alpha.c: Likewise.
412 * elf64-hppa.c: Likewise.
413 * elf64-ia64-vms.c: Likewise.
414 * elf64-ppc.c: Likewise.
415 * elf64-s390.c: Likewise.
416 * elf64-sh64.c: Likewise.
417 * elf64-sparc.c: Likewise.
418 * elf64-x86-64.c: Likewise.
419 * elfnn-ia64.c: Likewise.
420 * elfxx-mips.c: Likewise.
421 * elfxx-sparc.c: Likewise.
422 * elfxx-tilegx.c: Likewise.
423 * elflink.c: Likewise.
424 * elf-vxworks.c: Likewise.
425 * elf-m10300.c: Likewise. Also make use of htab plt, got and
426 gotplt shortcuts.
427 * bfd-in2.h: Regenerate.
428 * elf32-lm32.c (lm32_elf_check_relocs): Use the correct bfd when
429 calling create_rofixup_section.
430 * elflink.c (bfd_elf_final_link): Simplify test for .dynstr.
431
66e17d7f
AM
4322012-06-29 Alan Modra <amodra@gmail.com>
433
434 * elf32-sh.c (sh_elf_create_dynamic_sections): Don't create .rela
435 section for bss type sections, except for .rela.bss.
436 * elf-m10300.c (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
437 * elf32-cr16.c (_bfd_cr16_elf_create_dynamic_sections): Likewise.
438 * elf32-lm32.c (lm32_elf_create_dynamic_sections): Likewise.
439 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
440 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
441
6034aab8
RM
4422012-06-28 Roland McGrath <mcgrathr@google.com>
443
444 * elf32-arm.c (elf32_arm_populate_plt_entry): Use int32_t for
445 displacement calculation in nacl_p case.
446
4c6a93d3
NC
4472012-06-28 Nick Clifton <nickc@redhat.com>
448
449 * po/uk.po: New Ukranian translation.
450 * configure.in (ALL_LINGUAS): Add uk.
451 * configure: Regenerate.
452
a4fd3de5
AM
4532012-06-26 Alan Modra <amodra@gmail.com>
454
455 * elf64-ppc.c (ppc64_elf_next_toc_section): Don't error if input
456 file has multiple .got/.toc sections and all don't fit in
457 current toc group.
458
62655c7b
RM
4592012-06-22 Roland McGrath <mcgrathr@google.com>
460
461 * elf.c (assign_file_positions_for_non_load_sections): Define
462 __ehdr_start symbol if it's referenced and there's a PT_LOAD
463 segment that covers both the file and program headers.
464
b70e7a2f
AS
4652012-06-22 Andreas Schwab <schwab@linux-m68k.org>
466
467 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Don't make
468 _GLOBAL_OFFSET_TABLE_ and _DYNAMIC absolute.
469
27fc25a1
AM
4702012-06-22 Alan Modra <amodra@gmail.com>
471
472 * elf64-ppc.c (ppc64_elf_func_desc_adjust): Don't emit out-of-line
473 save/restore functions when relocatable. Make "funcs" static.
474
51806b97
HPN
4752012-06-18 Hans-Peter Nilsson <hp@axis.com>
476
477 * elf32-cris.c (cris_elf_plt_sym_val): Rewrite to work in presence
478 of merged .got and .got.plt entries.
479
46691134
AM
4802012-06-18 John Szakmeister <john@szakmeister.net>
481
482 * elf32-arm.c (elf32_arm_final_link_relocate): Correct return value.
483
26a48bb3
HPN
4842012-06-17 Hans-Peter Nilsson <hp@axis.com>
485
486 * elf32-cris.c (cris_elf_relocate_section): <R_CRIS_32_IE>
487 <R_CRIS_32_GOT_TPREL, R_CRIS_16_GOT_TPREL>: Handle references to
488 thread common symbols.
489
5968a7b8
NC
4902012-06-13 Nick Clifton <nickc@redhat.com>
491
492 * elf32-arm.c (bfd_arm_get_mach_from_attributes): New function.
493 (elf32_arm_object_p): If the machine number could not be deduced
494 from the notes, call bfd_arm_get_mach_from_attributes to get the
495 number from the attributes.
496
8981c88a
L
4972012-06-12 H.J. Lu <hongjiu.lu@intel.com>
498
499 PR bfd/14207
500 * elf.c (assign_file_positions_for_non_load_sections): Abort if
501 PT_GNU_RELRO segment doesn't fit in PT_LOAD segment.
502
3832a4d8
AM
5032012-06-12 Alan Modra <amodra@gmail.com>
504
505 PR ld/14207
506 * elf.c (_bfd_elf_map_sections_to_segments): Disregard bss type
507 sections at end of PT_LOAD segment when searching for segment
508 that contains end of relro extent.
509
f3944f72
L
5102012-06-11 H.J. Lu <hongjiu.lu@intel.com>
511
512 * elf.c (assign_file_positions_for_non_load_sections): Reindent.
513
be01b344
L
5142012-06-11 H.J. Lu <hongjiu.lu@intel.com>
515
516 * elf.c (_bfd_elf_map_sections_to_segments): Reindent.
517
ffbc01cc
AM
5182012-06-06 Alan Modra <amodra@gmail.com>
519
520 * elflink.c (elf_link_input_bfd): Provide a file symbol for
521 each input file with local syms, if the input lacks such.
522 (bfd_elf_final_link): Add a file symbol to mark end of locals
523 for which we can associate with input files.
524 (struct elf_final_link_info): Add filesym_count field.
525 (struct elf_outext_info): Add need_second_pass and second_pass.
526 (elf_link_output_extsym): Detect symbols defined in the output
527 file, emit them on second pass over locals.
528
fe78531d
JK
5292012-06-04 Jan Kratochvil <jan.kratochvil@redhat.com>
530
531 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
532 of target_read_memory as bfd_size_type.
533 * bfd-in2.h: Regenerate.
534 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
535 argument of target_read_memory as bfd_size_type.
536 (_bfd_elf32_bfd_from_remote_memory): Likewise.
537 (_bfd_elf64_bfd_from_remote_memory): Likewise.
538 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
539 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
540
aef36ac1
AM
5412012-06-03 Alan Modra <amodra@gmail.com>
542
543 PR binutils/13897
544 * elf.c (elf_find_function): Cache last function sym info.
545 (_bfd_elf_maybe_function_sym): Return function size, pass in
546 section of interest.
547 * elf-bfd.h (struct elf_backend_data <maybe_function_sym>): Likewise.
548 (_bfd_elf_maybe_function_sym): Likewise.
549 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
550 (opd_entry_value): Add in_code_sec param. Revert caching code.
551 Return -1 if in_code_sec and function found in wrong section.
552 Update all calls.
553
5299c1c4
JK
5542012-06-01 Siddhesh Poyarekar <siddhesh@redhat.com>
555
556 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Make LEN argument
557 of target_read_memory as size_t.
558 * bfd-in2.h: Regenerate.
559 * elf-bfd.h (elf_backend_bfd_from_remote_memory): Make LEN
560 argument of target_read_memory as size_t.
561 (_bfd_elf32_bfd_from_remote_memory): Likewise.
562 (_bfd_elf64_bfd_from_remote_memory): Likewise.
563 * elf.c (bfd_elf_bfd_from_remote_memory): Likewise.
564 * elfcode.h (NAME(_bfd_elf,bfd_from_remote_memory)): Likewise.
565
ee1e4ede
AM
5662012-06-01 Alan Modra <amodra@gmail.com>
567
568 PR binutils/13897
569 * elf64-ppc.c (opd_entry_value): Rewrite cache code.
570
6f0c7050
TT
5712012-05-29 Tom Tromey <tromey@redhat.com>
572
573 * opncls.c (bfd_fopen): Always close fd on failure.
574 (bfd_fdopenr): Likewise.
575
f5eda473
AM
5762012-05-27 Alan Modra <amodra@gmail.com>
577
578 PR ld/14170
579 * elflink.c (_bfd_elf_merge_symbol): When a symbol defined in
580 a dynamic library finds a new instance with non-default
581 visibility in a regular object, correctly handle symbols
582 already on the undefs list and undo dynamic symbol state when
583 the new symbol is hidden or internal.
584
bbf96e4e
L
5852012-05-25 H.J. Lu <hongjiu.lu@intel.com>
586
587 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't use
588 dynamic_sec_flags to create PLT .eh_frame section.
589 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
590
9a2a56cc
AM
5912012-05-25 Alan Modra <amodra@gmail.com>
592
593 PR ld/13909
594 * elf-eh-frame.c (_bfd_elf_eh_frame_present): New function.
595 (_bfd_elf_maybe_strip_eh_frame_hdr): Use it here.
596 * elf-bfd.h (_bfd_elf_eh_frame_present): Declare.
597 * elflink.c (bfd_elf_size_dynamic_sections): Let the backend
598 size dynamic sections before stripping eh_frame_hdr.
599 (bfd_elf_gc_sections): Handle multiple .eh_frame sections.
600 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Drop glink_eh_frame
601 if no other .eh_frame sections exist.
602 * elf64-ppc.c (ppc64_elf_size_stubs): Likewise.
603 * elf32-i386.c (elf_i386_create_dynamic_sections): Don't size
604 or alloc plt_eh_frame here..
605 (elf_i386_size_dynamic_sections): ..do it here instead. Don't
606 specially keep sgotplt, iplt, tgotplt, sdynbss for symbols.
607 (elf_i386_finish_dynamic_sections): Check plt_eh_frame->contents
608 before writing plt offset.
609 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Don't size
610 or alloc plt_eh_frame here..
611 (elf_x86_64_size_dynamic_sections): ..do it here instead.
612 (elf_x86_64_finish_dynamic_sections): Check plt_eh_frame->contents
613 before writing plt offset.
614
4bbe044a
AM
6152012-05-24 Alan Modra <amodra@gmail.com>
616
617 PR ld/14158
618 * elf64-ppc.c (ppc64_elf_size_stubs): Round up glink_eh_frame
619 size to output section alignment.
620 (ppc64_elf_build_stubs): Likewise, and extend last FDE to cover.
621
89b2bec8
AM
6222012-05-23 Alan Modra <amodra@gmail.com>
623
624 * elf-eh-frame.c (_bfd_elf_maybe_strip_eh_frame_hdr): Handle
625 BFDs with multiple .eh_frame sections.
626
259b427a
AM
6272012-05-23 Alan Modra <amodra@gmail.com>
628
629 PR ld/13909
630 * elflink.c (bfd_elf_discard_info): Don't ignore dynamic BFDs.
631
e4de50d4
L
6322012-05-22 H.J. Lu <hongjiu.lu@intel.com>
633
634 PR ld/13909
635 * elf32-i386.c (elf_i386_create_dynamic_sections): Revert the
636 last change.
637 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
638
7e01508c
AM
6392012-05-22 Alan Modra <amodra@gmail.com>
640
641 * elflink.c (bfd_elf_discard_info): Look for next .eh_frame if
642 first one is zero size or discarded.
643 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set most of
644 glink_eh_frame contents here..
645 (ppc_elf_finish_dynamic_sections): ..rather than here. Just set
646 offset to .glink.
647
5d4f7eb2
L
6482012-05-22 H.J. Lu <hongjiu.lu@intel.com>
649
650 PR ld/13909
651 * elf32-i386.c (elf_i386_create_dynamic_sections): Create PLT
652 eh_frame section if there is an input .eh_frame section.
653 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
654
2fe0fd06
L
6552012-05-22 H.J. Lu <hongjiu.lu@intel.com>
656
657 PR ld/14105
658 * elf32-i386.c (elf_i386_create_dynamic_sections): Always
659 create PLT eh_frame section with SEC_LINKER_CREATED.
660 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Likewise.
661
90061c33
AM
6622012-05-22 Alan Modra <amodra@gmail.com>
663
664 * elflink.c (bfd_elf_discard_info): Handle multiple .eh_frame
665 sections attached to a BFD.
666 * section.c (bfd_get_section_by_name): Rewrite description.
667 (bfd_get_next_section_by_name): New function.
668 * bfd-in2.h: Regenerate.
669
8bbeae90
AS
6702012-05-21 Andreas Schwab <schwab@linux-m68k.org>
671
672 * elf32-m68k.c (elf_m68k_grok_prstatus): New function.
673 (elf_m68k_grok_psinfo): New function.
674 (elf_backend_grok_prstatus): Define.
675 (elf_backend_grok_psinfo): Define.
676
a44acb1e
MR
6772012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
678
679 * elf64-mips.c (elf_backend_got_header_size): Correct definition.
680 * elfxx-mips.c (_bfd_mips_elf_adjust_dynamic_symbol): Use the ELF
681 backend's GOT header size instead of hardcoding it.
682
751c1fe7
MR
6832012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
684
685 * elf32-vax.c (elf_vax_relocate_section)
686 <R_VAX_8, R_VAX_16, R_VAX_32>: Don't check if info->shared again.
687
ddd74d3c
MR
6882012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
689
690 * elf32-vax.c (elf_vax_relocate_section)
691 <R_VAX_8, R_VAX_16, R_VAX_32>: Use section flags rather than
692 its name as the check for text sections.
693
b0189df0
MR
6942012-05-19 Maciej W. Rozycki <macro@linux-mips.org>
695
696 * elf64-mips.c (mips_elf64_be_swap_reloc_out): Also make sure
697 the third reloc offset is the same as the first.
698
94caa966
AM
6992012-05-19 Alan Modra <amodra@gmail.com>
700
701 * elf32-ppc.h (has_vle_insns, is_ppc_vle): Delete.
702 (has_tls_reloc, has_tls_get_addr_call): Move back to..
703 * elf32-ppc.c: ..here.
704 (ppc_elf_section_flags, elf_backend_section_flags): Delete.
705 (ppc_elf_modify_segment_map): Use ELF sh_flags to detect VLE sections.
706
220cf809
L
7072012-05-18 H.J. Lu <hongjiu.lu@intel.com>
708
709 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Don't make
710 _DYNAMIC nor _GLOBAL_OFFSET_TABLE_ absolute.
711 * elf64-x86-64.c (elf_x86_64_finish_dynamic_symbol): Likewise.
712
3a11e31e
RM
7132012-05-18 Roland McGrath <mcgrathr@google.com>
714
715 * archive.c (_bfd_generic_read_ar_hdr_mag): Fix last change so as
716 not to clobber the ar_fmag field stored in ARED->arch_header.
717
2a0bfc8d
PA
7182012-05-18 Pedro Alves <palves@redhat.com>
719
720 * mach-o.h: Don't include sysdep.h.
721
0bee45d9
NC
7222012-05-18 Nick Clifton <nickc@redhat.com>
723
724 PR 14072
725 * bfd-in.h: Check for PACKAGE or PACKAGE_VERSION before
726 complaining about config.h not having been included.
727 * bfd-in2.h: Regenerate.
728
f2c621e4
AS
7292012-05-18 Andreas Schwab <schwab@linux-m68k.org>
730
731 * aclocal.m4: Regenerate.
732 * Makefile.in: Regenerate.
733
df7b86aa
NC
7342012-05-17 Daniel Richard G. <skunk@iskunk.org>
735 Nick Clifton <nickc@redhat.com>
736
737 PR 14072
738 * configure.in: Add check that sysdep.h has been included before
739 any system header files.
740 * configure: Regenerate.
741 * config.in: Regenerate.
742 * aclocal.m4: Regenerate.
743 * bfd-in.h: Generate an error if included before config.h.
744 * sysdep.h: Likewise.
745 * bfd-in2.h: Regenerate.
746 * compress.c: Remove #include "config.h".
747 * plugin.c: Likewise.
748 * elf32-m68hc1x.c: Include sysdep.h before alloca-conf.h.
749 * elf64-hppa.c: Likewise.
750 * som.c: Likewise.
751 * xsymc.c: Likewise.
752
2633a79c
AM
7532012-05-17 Maciej W. Rozycki <macro@linux-mips.org>
754 Alan Modra <amodra@gmail.com>
755
756 * elf.c (ignore_section_sym): Correct comment. Don't return
757 true for absolute section.
758 (elf_map_symbols): Move stray comment. Adjust for above change.
759 Don't discard global section symbols.
760
ab6dce23
AM
7612012-05-17 Alan Modra <amodra@gmail.com>
762
763 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make _DYNAMIC,
764 _GLOBAL_OFFSET_TABLE_ or _PROCEDURE_LINKAGE_TABLE_ absolute.
765 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Don't make _DYNAMIC
766 absolute.
767
e1dad58d
AM
7682012-05-17 Alan Modra <amodra@gmail.com>
769
770 * elf32-ppc.c (has_tls_reloc, has_tls_get_addr_call, has_vle_insns,
771 is_ppc_vle): Move to..
772 * elf32-ppc.h: ..here, making is_ppc_vle a macro.
773
a0f49396
NC
7742012-05-16 Sergio Durigan Junior <sergiodj@redhat.com>
775
776 * bfd-in.h (bfd_get_section_name, bfd_get_section_vma,
777 bfd_get_section_lma, bfd_get_section_alignment,
778 bfd_get_section_flags, bfd_get_section_userdata): Rewrite macros
779 in order to use the `bfd' argument.
780 * bfd-in2.h: Regenerate.
781 * elf-vxworks.c (elf_vxworks_finish_dynamic_entry): Pass proper `bfd'
782 as the first argument for `bfd_get_section_alignment'.
783 * elf32-arm.c (create_ifunc_sections): Likewise, for
784 `bfd_set_section_alignment'.
785 * elf32-m32r.c (m32r_elf_relocate_section): Likewise, for
786 `bfd_get_section_name'.
787 * elf32-microblaze.c (microblaze_elf_relocate_section): Likewise.
788 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
789 (ppc_elf_relocate_section): Likewise.
790 * elf64-mmix.c (mmix_final_link_relocate): Likewise, for
791 `bfd_get_section_vma'.
792 * elf64-ppc.c (create_linkage_sections): Likewise, for
793 `bfd_set_section_alignment'.
794
40551fb8
NC
7952012-05-16 Georg-Johann Lay <avr@gjlay.de>
796
797 PR target/13503
798 * reloc.c: Rename BFD_RELOC_AVR_8_HHI to BFD_RELOC_AVR_8_HLO.
799 * bfd-in2.h: Regenerate.
800 * libbfd.h: Regenrate.
801 * elf32-avr.c (elf_avr_howto_table): Rename R_AVR_8_HHI8 to
802 R_AVR_8_HLO8.
803 (avr_reloc_map): Likewise.
804
691bf19c
NC
8052012-05-16 Daniel Richard G. <skunk@iskunk.org>
806
807 PR binutils/13558
808 * bfd/aout-cris.c: Include sysdep.h before bfd.h.
809 * bfd/aout-ns32k.c: Likewise.
810 * bfd/aout-sparcle.c: Likewise.
811 * bfd/aout0.c: Likewise.
812 * bfd/bfd-in2.h: Likewise.
813 * bfd/coff-stgo32.c: Likewise.
814 * bfd/cpu-lm32.c: Likewise.
815 * bfd/cpu-microblaze.c: Likewise.
816 * bfd/cpu-score.c: Likewise.
817 * bfd/cpu-tilegx.c: Likewise.
818 * bfd/cpu-tilepro.c: Likewise.
819 * bfd/elf32-lm32.c: Likewise.
820 * bfd/elf32-microblaze.c: Likewise.
821 * bfd/elf32-score7.c: Likewise.
822 * bfd/elf32-tilepro.c: Likewise.
823 * bfd/elfxx-tilegx.c: Likewise.
824 * bfd/mach-o.h: Likewise.
825 * bfd/nlm32-ppc.c: Likewise.
826 * bfd/ns32knetbsd.c: Likewise.
827 * bfd/pef.h: Likewise.
828 * bfd/plugin.c: Likewise.
829 * bfd/stab-syms.c: Likewise.
830 * bfd/sunos.c: Likewise.
831 * bfd/syms.c: Likewise.
832 * bfd/xsym.h: Likewise.
833
8b127cbc
AM
8342012-05-16 Alan Modra <amodra@gmail.com>
835
836 * elflink.c: Rename flaginfo to flinfo throughout, except..
837 (bfd_elf_lookup_section_flags): ..here, rename finfo to flaginfo.
838 Formatting, style. Simplify flag match.
839
a2a50954
AM
8402012-05-16 Alan Modra <amodra@gmail.com>
841
842 * dwarf2.c: Formatting.
843 (arange_add): Pass in unit rather than bfd. Update callers.
844 Ignore empty ranges. Don't ask for cleared memory.
845 (parse_comp_unit): Only set unit->base_address if processing
846 DW_TAG_compile_unit.
847 (find_debug_info): Optimise section lookup.
848 (place_sections): Use bfd_alloc for stash->adjusted_sections.
849 (find_line): Match previously parsed comp unit addresses as we
850 do for newly parsed comp units.
851
df35687a
AM
8522012-05-16 Alan Modra <amodra@gmail.com>
853
854 * archive.c (_bfd_generic_read_ar_hdr_mag): Ensure sscanf
855 stops at end of ar_size field.
856
eee3b786
AM
8572012-05-16 Alan Modra <amodra@gmail.com>
858
859 PR ld/13962
860 PR ld/7023
861 * elf.c (bfd_section_from_shdr): Fail when .dynsym sh_info is
862 out of range. As a special case, fix sh_info for zero sh_size.
863 Do the same for .symtab.
864
6927f982
NC
8652012-05-15 James Murray <jsm@jsm-net.demon.co.uk>
866 Stephane Carrez <stcarrez@nerim.fr>
867
868 * archures.c: Add bfd_arch_m9s12x and bfd_arch_m9s12xg.
869 * config.bfd: Likewise.
870 * cpu-m9s12x.c: New.
871 * cpu-m9s12xg.c: New.
872 * elf32-m68hc12.c: Add S12X and XGATE co-processor support.
873 Add option to offset S12 addresses into XGATE memory space.
874 Fix carry bug in IMM16 (IMM8 low/high) relocate.
875 * Makefile.am (ALL_MACHINES): Add cpu-m9s12x and cpu-m9s12xg.
876 (ALL_MACHINES_CFILES): Likewise.
877 * reloc.c: Add S12X relocs.
878 * Makefile.in: Regenerate.
879 * bfd-in2.h: Regenerate.
880 * libbfd.h: Regenerate.
881
b9c361e0
JL
8822012-05-14 James Lemke <jwlemke@codesourcery.com>
883 Catherine Moore <clm@codesourcery.com>
884
885 * bfd.c (bfd_lookup_section_flags): Add section parm.
886 * ecoff.c (bfd_debug_section): Remove flag_info initializer.
887 * elf-bfd.h (bfd_elf_section_data): Move in section_flag_info.
888 (bfd_elf_lookup_section_flags): Add section parm.
889 * elf32-ppc.c (is_ppc_vle): New function.
890 (ppc_elf_modify_segment_map): New function.
891 (elf_backend_modify_segment_map): Define.
892 (has_vle_insns): New define.
893 * elf32-ppc.h (ppc_elf_modify_segment_map): Declare.
894 * elflink.c (bfd_elf_lookup_section_flags): Add return value & parm.
895 Move in logic to omit / include a section.
896 * libbfd-in.h (bfd_link_info): Add section parm.
897 (bfd_generic_lookup_section_flags): Likewise.
898 * reloc.c (bfd_generic_lookup_section_flags): Likewise.
899 * section.c (bfd_section): Move out section_flag_info.
900 (BFD_FAKE_SECTION): Remove flag_info initializer.
901 * targets.c (_bfd_lookup_section_flags): Add section parm.
902
9032012-05-14 Catherine Moore <clm@codesourcery.com>
904
905 * archures.c (bfd_mach_ppc_vle): New.
906 * bfd-in2.h: Regenerated.
907 * cpu-powerpc.c (bfd_powerpc_archs): New entry for vle.
908 * elf32-ppc.c (split16_format_type): New enumeration.
909 (ppc_elf_vle_split16): New function.
910 (HOWTO): Add entries for R_PPC_VLE relocations.
911 (ppc_elf_reloc_type_lookup): Handle PPC_VLE relocations.
912 (ppc_elf_section_flags): New function.
913 (ppc_elf_lookup_section_flags): New function.
914 (ppc_elf_section_processing): New function.
915 (ppc_elf_check_relocs): Handle PPC_VLE relocations.
916 (ppc_elf_relocation_section): Likewise.
917 (elf_backend_lookup_section_flags_hook): Define.
918 (elf_backend_section_flags): Define.
919 (elf_backend_section_processing): Define.
6927f982 920 * elf32-ppc.h (ppc_elf_section_processing): Declare.
b9c361e0
JL
921 * libbfd.h: Regenerated.
922 * reloc.c (BFD_RELOC_PPC_VLE_REL8, BFD_RELOC_PPC_VLE_REL15,
923 BFD_RELOC_PPC_VLE_REL24, BFD_RELOC_PPC_VLE_LO16A,
924 BFD_RELOC_PPC_VLE_LO16D, BFD_RELOC_PPC_VLE_HI16A,
925 BFD_RELOC_PPC_VLE_HI16D, BFD_RELOC_PPC_VLE_HA16A,
926 BFD_RELOC_PPC_VLE_HA16D, BFD_RELOC_PPC_VLE_SDA21,
927 BFD_RELOC_PPC_VLE_SDA21_LO, BFD_RELOC_PPC_VLE_SDAREL_LO16A,
928 BFD_RELOC_PPC_VLE_SDAREL_LO16D, BFD_RELOC_PPC_VLE_SDAREL_HI16A,
929 BFD_RELOC_PPC_VLE_SDAREL_HI16D, BFD_RELOC_PPC_VLE_SDAREL_HA16A,
930 BFD_RELOC_PPC_VLE_SDAREL_HA16D): New bfd relocations.
931
8b127cbc 9322012-05-11 Georg-Johann Lay <avr@gjlay.de>
99700d6f
NC
933
934 PR target/13503
935 * reloc.c: Add new ENUM for BFD_RELOC_AVR_8_LO,
936 BFD_RELOC_AVR_8_HI, BFD_RELOC_AVR_8_HHI.
937 * bfd-in2.h: Regenerate.
938 * libbfd.h: Regenrate.
939 * elf32-avr.c (elf_avr_howto_table): Add entries for
940 R_AVR_8_LO8, R_AVR_8_HI8, R_AVR_8_HHI8.
941 (avr_reloc_map): Add RELOC mappings for R_AVR_8_LO8, R_AVR_8_HI8,
942 R_AVR_8_HHI8.
943
268a8d3a
L
9442012-05-10 H.J. Lu <hongjiu.lu@intel.com>
945
946 * elf64-x86-64.c (elf_x86_64_relocate_section): Use int in x32
947 addend overflow check.
948
74b1e045
DD
9492012-05-10 DJ Delorie <dj@redhat.com>
950
951 * elf32-rx.c (rx_elf_object_p): Ignore empty segments.
952
6f2c9068
L
9532012-05-10 H.J. Lu <hongjiu.lu@intel.com>
954
955 * elf64-x86-64.c (elf_x86_64_relocate_section): Display signed
956 hex number in x32 addend overflow check.
957
1da80baa
L
9582012-05-10 H.J. Lu <hongjiu.lu@intel.com>
959
960 * elf64-x86-64.c (elf_x86_64_reloc_type_class): Handle
961 R_X86_64_RELATIVE64.
962
8cf0d2dd
L
9632012-05-09 H.J. Lu <hongjiu.lu@intel.com>
964
965 * elf64-x86-64.c (elf_x86_64_relocate_section): Check addend
966 overflow for R_X86_64_RELATIVE64.
967
2d16d28e
DK
9682012-05-08 Ben Cheng <bccheng@google.com>
969
8b127cbc 970 * elf.c: Preserve the original p_align and p_flags if they are
2d16d28e
DK
971 valid.
972
2de5d135
AM
9732012-05-07 Alan Modra <amodra@gmail.com>
974
975 * elf64-ia64-vms.c (elf64_ia64_relocate_section): Update
976 RELOC_AGAINST_DISCARDED_SECTION invocation.
977
a134cc9b
HPN
9782012-05-07 Hans-Peter Nilsson <hp@axis.com>
979
980 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Declare and use
981 local variable i_ instead of assuming and using a variable i.
982
545fd46b
MR
9832012-05-07 Maciej W. Rozycki <macro@linux-mips.org>
984
985 * elf-bfd.h (RELOC_AGAINST_DISCARDED_SECTION): Handle compound
986 relocations.
987 * elfxx-mips.c (mips_reloc_against_discarded_section): New
988 function.
989 (_bfd_mips_elf_relocate_section): Call it, in place of
990 RELOC_AGAINST_DISCARDED_SECTION.
991 * elf-m10200.c (mn10200_elf_relocate_section): Update arguments
992 to RELOC_AGAINST_DISCARDED_SECTION.
993 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
994 * elf32-arm.c (elf32_arm_relocate_section): Likewise.
995 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
996 * elf32-bfin.c (bfin_relocate_section): Likewise.
997 (bfinfdpic_relocate_section): Likewise.
998 * elf32-cr16.c (elf32_cr16_relocate_section): Likewise.
999 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
1000 * elf32-cris.c (cris_elf_relocate_section): Likewise.
1001 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
1002 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
1003 * elf32-epiphany.c (epiphany_elf_relocate_section): Likewise.
1004 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
1005 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
1006 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
1007 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
1008 * elf32-i370.c (i370_elf_relocate_section): Likewise.
1009 * elf32-i386.c (elf_i386_relocate_section): Likewise.
1010 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
1011 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
1012 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
1013 * elf32-lm32.c (lm32_elf_relocate_section): Likewise.
1014 * elf32-m32c.c (m32c_elf_relocate_section): Likewise.
1015 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
1016 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
1017 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
1018 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
1019 * elf32-mep.c (mep_elf_relocate_section): Likewise.
1020 * elf32-moxie.c (moxie_elf_relocate_section): Likewise.
1021 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
1022 * elf32-mt.c (mt_elf_relocate_section): Likewise.
1023 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
1024 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1025 * elf32-rl78.c (rl78_elf_relocate_section): Likewise.
1026 * elf32-rx.c (rx_elf_relocate_section): Likewise.
1027 * elf32-s390.c (elf_s390_relocate_section): Likewise.
1028 * elf32-score.c (s3_bfd_score_elf_relocate_section): Likewise.
1029 * elf32-score7.c (s7_bfd_score_elf_relocate_section): Likewise.
1030 * elf32-sh.c (sh_elf_relocate_section): Likewise.
1031 * elf32-spu.c (spu_elf_relocate_section): Likewise.
1032 * elf32-tic6x.c (elf32_tic6x_relocate_section): Likewise.
1033 * elf32-tilepro.c (tilepro_elf_relocate_section): Likewise.
1034 * elf32-v850.c (v850_elf_relocate_section): Likewise.
1035 * elf32-vax.c (elf_vax_relocate_section): Likewise.
1036 * elf32-xc16x.c (elf32_xc16x_relocate_section): Likewise.
1037 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
1038 * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise.
1039 * elf64-alpha.c (elf64_alpha_relocate_section_r): Likewise.
1040 (elf64_alpha_relocate_section): Likewise.
1041 * elf64-hppa.c (elf64_hppa_relocate_section): Likewise.
1042 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
1043 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
1044 * elf64-s390.c (elf_s390_relocate_section): Likewise.
1045 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
1046 * elf64-x86-64.c (elf_x86_64_relocate_section): Likewise.
1047 * elfnn-ia64.c (elfNN_ia64_relocate_section): Likewise.
1048 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise.
1049 * elfxx-tilegx.c (tilegx_elf_relocate_section): Likewise.
1050
62ab84ec
AM
10512012-05-05 Alan Modra <amodra@gmail.com>
1052
1053 PR ld/14052
1054 PR ld/13621
1055 * linker.c (_bfd_nearby_section): Revert 2012-02-13 change.
1056
45dfa85a
AM
10572012-05-05 Alan Modra <amodra@gmail.com>
1058
1059 * aout-arm.c: Replace all uses of bfd_abs_section, bfd_com_section,
1060 bfd_und_section and bfd_ind_section with their _ptr variants, or
1061 use corresponding bfd_is_* macros.
1062 * aout-ns32k.c: Likewise.
1063 * aout-tic30.c: Likewise.
1064 * coff-arm.c: Likewise.
1065 * coff-tic54x.c: Likewise.
1066 * cpu-ns32k.c: Likewise.
1067 * elf-attrs.c: Likewise.
1068 * elfcode.h: Likewise.
1069 * peicode.h: Likewise.
1070 * reloc.c: Likewise.
1071 * riscix.c: Likewise.
1072 * versados.c: Likewise.
1073 * section.c: Likewise.
1074 (bfd_abs_section, bfd_ind_section, bfd_com_section,
1075 bfd_ind_section): Delete.
1076 (std_section): New array replacing above.
1077 (bfd_abs_section_ptr, bfd_ind_section_ptr, bfd_com_section_ptr,
1078 bfd_ind_section_ptr, STD_SECTION): Update.
1079 (BFD_FAKE_SECTION, GLOBAL_SYM_INIT): Remove unnecessary casts.
36ab465d 1080 * bfd-in2.h: Regenerate.
45dfa85a 1081
f6c1a2d5
NC
10822012-05-03 Sean Keys <skeys@ipdatasys.com>
1083
1084 * cpu-xgate.c: New file. Added XGATE support.
1085 * archures.c (bfd_architecture): Add XGATE architecture.
1086 (bfd_archures_list): Add reference to XGATE architecture info.
1087 * elf-bfd.h (prep_headers): Handle bfd_arch_xgate.
1088 * reloc.c: Add various XGATE relocation enums.
1089 * targets.c (bfd_elf32_xgate_vec): Declare and add to target vector
1090 list.
1091 * Makefile.am: Add support for XGATE elf.
1092 * configure.in: Ditto.
1093 * config.bfd: Ditto.
1094 * Makefile.in: Regenerate.
1095 * configure: Ditto.
1096 * bfd-in2.h: Ditto.
1097 * libbfd.h: Ditto.
1098 Added files for XGATE relocations.
1099 * elf32-xgate.c: Created minimal relocation file.
1100 * elf32-xgate.h: Created minimal header file for elf32-xgate.
1101
fec16237
TG
11022012-05-03 Tristan Gingold <gingold@adacore.com>
1103
1104 * dwarf2.c (decode_line_info): Ignore
1105 DW_LNE_HP_source_file_correlation.
1106
57402f1e
NC
11072012-05-01 Nick Clifton <nickc@redhat.com>
1108
1109 PR binutils/13121
1110 * aoutx.h: Rename 'finfo' to 'flaginfo' to avoid conflicts with
1111 AIX system headers.
1112 * coff-ppc.c: Likewise.
1113 * cofflink.c: Likewise.
1114 * elf32-arm.c: Likewise.
1115 * elf64-sparc.c: Likewise.
1116 * elflink.c: Likewise.
1117 * pdp11.c: Likewise.
1118 * rescoff.c: Likewise.
1119
c49ead2f
MW
11202012-04-26 Mark Wielaard <mjw@redhat.com>
1121
1122 * dwarf2.c (scan_unit_for_symbols): Account for DW_AT_high_pc
1123 possibly being relative to DW_AT_low_pc.
1124 (parse_comp_unit): Likewise.
1125
cab0ad83
AS
11262012-04-26 Andreas Schwab <schwab@linux-m68k.org>
1127
1128 * elf32-m68k.c (elf_m68k_check_relocs): Mark non-GOT references
1129 also when generating PIE.
1130 (elf_m68k_discard_copies): Mark undefined weak symbols referenced
1131 by relocations as dynamic.
1132
2b56b3f3
HPN
11332012-04-26 Hans-Peter Nilsson <hp@axis.com>
1134
1135 Provide a way for programs to recognize BFD_ASSERT calls.
1136 * bfd.c (bfd_assert_handler_type): New API type.
1137 (bfd_set_assert_handler, bfd_get_assert_handler): New API functions.
1138 (_bfd_assert_handler): New variable.
1139 (_bfd_default_assert_handler): New function.
1140 (bfd_assert): Call _bfd_assert_handler, not _bfd_error_handler.
1141 * libbfd-in.h (_bfd_assert_handler): Declare.
1142 * libbfd.h, bfd-in2.h: Regenerate.
1143
27586251
HPN
11442012-04-24 Hans-Peter Nilsson <hp@axis.com>
1145
1146 PR ld/13990
1147 * elf32-arm.c (elf32_arm_gc_sweep_hook): Handle a forced-local
1148 symbol, where PLT refcount is set to -1.
1149
dbaa2011
AM
11502012-04-24 Alan Modra <amodra@gmail.com>
1151
1152 PR ld/13991
8b127cbc 1153 * elf-bfd.h (_bfd_elf_link_just_syms): Define as
dbaa2011 1154 _bfd_generic_link_just_syms.
8b127cbc
AM
1155 * elflink.c (_bfd_elf_link_just_syms): Delete.
1156 * linker.c (_bfd_generic_link_just_syms): Set sec_info_type.
dbaa2011 1157
8b127cbc
AM
1158 * bfd-in.h (discarded_section): Renamed from elf_discarded_section.
1159 * section.c (SEC_INFO_TYPE_NONE, SEC_INFO_TYPE_STABS,
dbaa2011
AM
1160 SEC_INFO_TYPE_MERGE, SEC_INFO_TYPE_EH_FRAME,
1161 SEC_INFO_TYPE_JUST_SYMS): Renamed from corresponding ELF_INFO_TYPE.
8b127cbc
AM
1162 * elf-eh-frame.c, * elf-m10200.c, * elf-m10300.c,
1163 * elf.c, * elf32-arm.c, * elf32-avr.c, * elf32-bfin.c,
1164 * elf32-cr16.c, * elf32-cr16c.c, * elf32-cris.c,
1165 * elf32-crx.c, * elf32-d10v.c, * elf32-epiphany.c,
1166 * elf32-fr30.c, * elf32-frv.c, * elf32-h8300.c,
1167 * elf32-hppa.c, * elf32-i370.c, * elf32-i386.c,
1168 * elf32-i860.c, * elf32-ip2k.c, * elf32-iq2000.c,
1169 * elf32-lm32.c, * elf32-m32c.c, * elf32-m32r.c,
1170 * elf32-m68hc1x.c, * elf32-m68k.c, * elf32-mcore.c,
1171 * elf32-mep.c, * elf32-moxie.c, * elf32-msp430.c,
1172 * elf32-mt.c, * elf32-openrisc.c, * elf32-ppc.c,
1173 * elf32-rl78.c, * elf32-rx.c, * elf32-s390.c,
1174 * elf32-score.c, * elf32-score7.c, * elf32-sh.c,
1175 * elf32-spu.c, * elf32-tic6x.c, * elf32-tilepro.c,
1176 * elf32-v850.c, * elf32-vax.c, * elf32-xc16x.c,
1177 * elf32-xstormy16.c, * elf32-xtensa.c, * elf64-alpha.c,
1178 * elf64-hppa.c, * elf64-ia64-vms.c, * elf64-mmix.c,
1179 * elf64-ppc.c, * elf64-s390.c, * elf64-sh64.c,
1180 * elf64-x86-64.c, * elflink.c, * elfnn-ia64.c,
1181 * elfxx-mips.c, * elfxx-sparc.c, * elfxx-tilegx.c,
1182 * reloc.c: Update all references.
1183 * bfd-in2.h: Regenerate.
dbaa2011 1184
87049b0d
AK
11852012-04-20 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1186
1187 * elf32-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1188 * elf64-s390.c (ELF_DYNAMIC_INTERPRETER): Set to the GCC default.
1189
85e02784
TS
11902012-04-19 Thomas Schwinge <thomas@codesourcery.com>
1191
1192 * elf32-sh.c (elf_sh_link_hash_entry): Specify an enum identifier for
1193 got_type.
1194 (allocate_dynrelocs, sh_elf_relocate_section, sh_elf_check_relocs): Use
1195 it.
1196
87458ed2
KK
11972012-04-17 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1198
1199 * elf32-sh.c (allocate_dynrelocs): Don't allocate dynamic
1200 relocations when LE conversion happens on the IE tls symbol.
1201
ea2d813e
RM
12022012-04-17 Roland McGrath <mcgrathr@google.com>
1203
1204 * elf64-x86-64.c (elf_x86_64_nacl_plt0_entry): Fix nop padding
1205 so that 32-byte boundary is a proper instruction boundary.
1206
da03bf4d
TG
12072012-04-17 Tristan Gingold <gingold@adacore.com>
1208
1209 * vms-lib.c (_bfd_vms_lib_get_module): Append .obj extension to
1210 member of an object archive.<
1211
d2226024
TG
12122012-04-17 Tristan Gingold <gingold@adacore.com>
1213
1214 * vms-lib.c (MAX_EKEYLEN): Define.
1215 (MAX_KEYLEN): Fix value.
1216 (vms_write_index): Add comments and fix indentation.
1217 Adjust comparaison. Add assertions. Free kbn_blk.
1218 (_bfd_vms_lib_write_archive_contents): Use MAX_EKEYLEN.
1219 Compense MAX_KEYLEN adjustment.
1220
cb4437b8
MR
12212012-04-16 Maciej W. Rozycki <macro@linux-mips.org>
1222
1223 * elfxx-mips.c (mips16_stub_symndx): Handle n64 compound relocs.
1224 (_bfd_mips_elf_check_relocs): Update accordingly.
1225
aed64b35
L
12262012-04-13 Alan Modra <amodra@gmail.com>
1227
1228 PR ld/13947
1229 * elflink.c (bfd_elf_final_link): Set reloc_count to 0 for
1230 reloc sections.
1231
2615994e
DM
12322012-04-12 David S. Miller <davem@davemloft.net>
1233
1234 * reloc.c (BFD_RELOC_SPARC_H34, BFD_RELOC_SPARC_SIZE32,
1235 BFD_RELOC_SPARC_SIZE64, BFD_RELOC_SPARC_WDISP10): New relocs.
1236 * libbfd.h: Regenerate.
1237 * bfd-in2.h: Likewise.
1238 * elfxx-sparc.c (sparc_elf_wdisp10_reloc): New function.
1239 (_bfd_sparc_elf_howto_table): Add entries for R_SPARC_H34,
1240 R_SPARC_SIZE32, R_SPARC_64, and R_SPARC_WDISP10.
1241 (_bfd_sparc_elf_reloc_type_lookup): Handle new relocs.
1242 (_bfd_sparc_elf_check_relocs): Likewise.
1243 (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1244 (_bfd_sparc_elf_relocate_section): Likewise.
1245
b38cadfb
NC
12462012-04-12 Roland McGrath <mcgrathr@google.com>
1247
1248 * elf32-arm.c (elf32_arm_nacl_plt0_entry, elf32_arm_nacl_plt_entry):
1249 New variables.
1250 (struct elf32_arm_link_hash_table): New member `nacl_p'.
1251 (elf32_arm_link_hash_table_create): Initialize it.
1252 (elf32_arm_nacl_link_hash_table_create): New function.
1253 (arm_movw_immediate, arm_movt_immediate): New functions.
1254 (elf32_arm_populate_plt_entry): Test HTAB->nacl_p.
1255 (elf32_arm_finish_dynamic_sections): Likewise.
1256 (elf32_arm_output_plt_map_1): Likewise.
1257 (bfd_elf32_littlearm_nacl_vec, bfd_elf32_bigarm_nacl_vec):
1258 New backend vector stanza.
1259 (elf32_arm_nacl_modify_segment_map): New function.
1260 * config.bfd: Handle arm-*-nacl*, armeb-*-nacl*.
1261 * targets.c: Support bfd_elf32_{big,little}_nacl_vec.
1262 * configure.in: Likewise.
1263 (bfd_elf32_bigarm_nacl_vec): Add elf-nacl.lo here.
1264 (bfd_elf32_littlearm_nacl_vec): Likewise.
1265 (bfd_elf32_bigarm_vec, bfd_elf32_littlearm_vec): Likewise.
1266 (bfd_elf32_bigarm_symbian_vec): Likewise.
1267 (bfd_elf32_littlearm_symbian_vec): Likewise.
1268 (bfd_elf32_bigarm_vxworks_vec): Likewise.
1269 (bfd_elf32_littlearm_vxworks_vec): Likewise.
1270 * configure: Regenerated.
1271
202e2356
NC
12722012-04-12 Tristan Gingold <gingold@adacore.com>
1273
1274 * elflink.c (elf_link_output_extsym): Add a guard.
1275 (bfd_elf_final_link): Remove assertion.
1276 (bfd_elf_final_link): Add a guard.
1277 * elfnn-ia64.c (INCLUDE_IA64_VMS): Removed.
1278 (elfNN_vms_section_from_shdr, elfNN_vms_object_p)
1279 (elfNN_vms_post_process_headers, elfNN_vms_section_processing)
1280 (elfNN_vms_final_write_processing, elfNN_vms_close_and_cleanup):
1281 Remove.
1282 (elfNN-ia64-vms target): Move to ...
1283 * elf64-ia64-vms.c: New file.
1284 * configure.in (bfd_elf64_ia64_vms_vec): Add elf64-ia64-vms.lo
1285 * Makefile.am (BFD64_BACKENDS): Add elf64-ia64-vms.lo.
1286 (BFD64_BACKENDS_CFILES): Ad elf64-ia64-vms.c.
1287 * configure: Regenerate.
1288 * Makefile.in: Regenerate.
1289
4841cf0c
NC
12902012-04-11 Nick Clifton <nickc@redhat.com>
1291
1292 PR binutils/13897
1293 * elf64-ppc.c (opd_entry_value): When dealing with sections
1294 without relocs, keep the last section loaded in order to avoid
1295 unnecessary reloads.
1296
d324f6d6
RM
12972012-04-09 Roland McGrath <mcgrathr@google.com>
1298
1299 * elf.c (_bfd_elf_map_sections_to_segments): Set INFO->user_phdrs.
1300 * elf-nacl.c (nacl_modify_segment_map): Do nothing if INFO->user_phdrs.
1301 (nacl_modify_program_headers): Likewise.
1302
5a68afcf
RM
13032012-04-03 Roland McGrath <mcgrathr@google.com>
1304
1305 * elf-nacl.c: New file.
1306 * elf-nacl.h: New file.
1307 * elf32-i386.c (elf_backend_modify_segment_map): Define for
1308 bfd_elf32_i386_nacl_vec.
1309 (elf_backend_modify_program_headers): Likewise.
1310 * elf64-x86-64.c (elf_backend_modify_segment_map): Define for
1311 bfd_elf64_x86_64_nacl_vec and bfd_elf32_x86_64_nacl_vec.
1312 (elf_backend_modify_program_headers): Likewise.
1313 * Makefile.am (BFD32_BACKENDS, BFD64_BACKENDS): Add elf-nacl.lo here.
1314 (BFD32_BACKENDS_CFILES, BFD64_BACKENDS_CFILES): Add elf-nacl.c here.
1315 * Makefile.in: Regenerated.
1316 * configure.in (bfd_elf64_x86_64_nacl_vec): Add elf-nacl.o to tb here.
1317 (bfd_elf32_x86_64_nacl_vec): Likewise.
1318 (bfd_elf64_x86_64_vec, bfd_elf32_x86_64_vec): Likewise.
1319 (bfd_elf64_x86_64_freebsd_vec, bfd_elf64_x86_64_sol2_vec): Likewise.
1320 (bfd_elf64_l1om_vec, bfd_elf64_l1om_freebsd_vec): Likewise.
1321 (bfd_elf64_k1om_vec, bfd_elf64_k1om_freebsd_vec): Likewise.
1322 (bfd_elf32_i386_nacl_vec): Likewise.
1323 (bfd_elf32_i386_sol2_vec, bfd_elf32_i386_freebsd_vec): Likewise.
1324 (bfd_elf32_i386_vxworks_vec, bfd_elf32_i386_vec): Likewise.
1325 * configure: Regenerated.
1326
3a4ae681
AS
13272012-03-31 Andreas Schwab <schwab@linux-m68k.org>
1328
1329 * elf32-m68k.c (elf_m68k_relocate_section): Allow
1330 R_68K_TLS_LE{8,16,32} for PIE.
1331
a7e28bbe
AK
13322012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1333
1334 * elf64-s390.c: Fix several comments regarding PLT entry
1335 description.
1336 * elf32-s390.c: Likewise.
1337
f41345a7
AK
13382012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1339
1340 * elf64-s390.c: Use the section pointer shortcuts in
1341 elf_link_hash_table and remove them from the target specific
1342 variant.
1343 * elf32-s390.c: Likewise.
1344
9aa17453
AK
13452012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1346
1347 * elf64-s390.c (elf_s390x_plt_entry, elf_s390x_first_plt_entry):
1348 New definitions.
1349 (PLT_PIC_ENTRY_WORD*, PLT_PIC12_ENTRY_WORD*): Remove.
1350 (elf_s390_finish_dynamic_symbol): Use memcpy instead of bfd_put_32.
1351 (elf_s390_finish_dynamic_sections): Likewise.
1352 * elf32-s390.c (elf_s390_plt_entry, elf_s390_plt_pic_entry)
1353 (elf_s390_plt_pic12_entry, elf_s390_plt_pic16_entry)
1354 (elf_s390_plt_first_entry, elf_s390_plt_pic_first_entry): New definitions.
1355 (PLT_PIC16_ENTRY_WORD*, PLT_ENTRY_WORD*)
1356 (PLT_PIC_FIRST_ENTRY_WORD*, PLT_FIRST_ENTRY_WORD*): Remove.
1357
00d8c7a9
AK
13582012-03-30 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1359
1360 * elf32-s390.c (struct elf_s390_dyn_relocs): Remove.
1361 Rename all occurrences in the file to elf_dyn_relocs.
1362 * elf64-s390.c: Likewise.
1363
a66eed7a
AM
13642012-03-30 Alan Modra <amodra@gmail.com>
1365
1366 * elflink.c (_bfd_elf_gc_mark_reloc): Don't delve into dynamic
1367 libraries.
1368
f67f98b5
AM
13692012-03-29 Alan Modra <amodra@gmail.com>
1370
1371 * bfd-in.h (bfd_get_arch_size, bfd_get_sign_extend_vma): Delete.
1372 * bfd-in2.h: Regenerate.
1373
e8d2ba53
AM
13742012-03-23 Alan Modra <amodra@gmail.com>
1375
1376 * elf.c (assign_file_positions_for_non_load_sections): Don't warn
1377 on empty alloc sections.
1378
051d833a
AM
13792012-03-23 Alan Modra <amodra@gmail.com>
1380
1381 * linker.c (_bfd_nearby_section): New function, split out from..
1382 (fix_syms): ..here.
1383 * bfd-in.h (_bfd_nearby_section): Declare.
1384 * bfd-in2.h: Regenerate.
1385 * elflink.c (elf_link_input_bfd): Don't use text_index_section or
1386 data_index_section with ld -q or ld -r output relocs against
1387 stripped output sections. Instead use _bfd_nearby_section.
1388
62599110
AM
13892012-03-23 Alan Modra <amodra@gmail.com>
1390
1391 PR binutils/13894
1392 * elf64-ppc.c (opd_entry_value): Read full symbol table when
1393 sym hashes unavailable.
1394
b781d74f
JM
13952012-03-21 Eliot Dresselhaus <eliot@sonic.net>
1396
1397 * elf32-tic6x.c (elf32_tic6x_merge_private_bfd_data): Return TRUE
1398 for non-C6X objects.
1399
17d5dae2
KT
14002012-03-20 Kai Tietz <ktietz@redhat.com>
1401
1402 PR ld/12742
1403 * configure.in (AC_CHECK_HEADERS): Test for windows.h and dlfcn.h.
1404 * plugin.c: Guard include of dlfcn.h if HAVE_DLFCN_H is defined.
1405 Add windows.h header include if HAVE_WINDOWS_H is defined.
1406 (dlerror): New static function if windows variant is used instead
1407 of dlfcn.h.
1408 (dlclose): Likewise.
1409 (dlopen): Likewise.
1410 (dlsym): Likewise.
1411 * configure: Regenerated.
1412 * config.in: Regenerated.
1413
bdb892b9
L
14142012-03-20 H.J. Lu <hongjiu.lu@intel.com>
1415
1416 PR ld/13880
1417 * elf32-i386.c (elf_i386_relocate_section): Don't issue an error
1418 for R_386_GOTOFF relocation against protected function if
1419 SYMBOLIC_BIND is true.
1420
1421 * elf64-x86-64.c (elf_x86_64_relocate_section): Don't issue an
1422 error for R_X86_64_GOTOFF64 relocation against protected function
1423 when building executable or SYMBOLIC_BIND is true.
1424
8059fb19
RM
14252012-03-16 Roland McGrath <mcgrathr@google.com>
1426
1427 * config.bfd: Handle x86_64-*-nacl*.
1428 * elf64-x86-64.c (bfd_elf64_x86_64_nacl_vec): New backend vector stanza.
1429 (bfd_elf32_x86_64_nacl_vec): Likewise.
1430 * targets.c: Support them.
1431 * configure.in: Likewise.
1432 * configure: Regenerated.
1433
ac56ee8f
MGD
14342012-03-16 Matthew Gretton-Dann <matthew.gretton-dann@arm.com>
1435
1436 * elf32-arm.c (elf32_arm_attributes_accept_div): New function.
1437 (elf32_arm_attributes_forbid_div): Likewise.
1438 (elf32_arm_merge_eabi_attributes): Correct handling of
1439 Tag_DIV_use.
1440
eed180f8
RM
14412012-03-15 Roland McGrath <mcgrathr@google.com>
1442
a4456d24
RM
1443 * elf64-x86-64.c (elf_x86_64_create_dynamic_sections): Use
1444 elf_x86_64_backend_data parameters for plt_eh_frame.
1445
eed180f8
RM
1446 * elf64-x86-64.c (struct elf_x86_64_backend_data): New type.
1447 (get_elf_x86_64_backend_data, GET_PLT_ENTRY_SIZE): New macros.
1448 (elf_x86_64_arch_bed): New variable.
1449 (elf_backend_arch_data): New macro.
1450 (elf_x86_64_adjust_dynamic_symbol): Use GET_PLT_ENTRY_SIZE.
1451 (elf_x86_64_allocate_dynrelocs): Likewise.
1452 (elf_x86_64_relocate_section): Likewise.
1453 (elf_x86_64_plt_sym_val): Likewise.
1454 (elf_x86_64_finish_dynamic_symbol): Use elf_x86_64_backend_data
1455 parameters for PLT details.
1456 (elf_x86_64_finish_dynamic_sections): Likewise.
1457
caa0075c
RM
14582012-03-14 Roland McGrath <mcgrathr@google.com>
1459
1460 * elf32-i386.c (elf_i386_nacl_pic_plt0_entry): Initialize up
1461 to the full size, padding out with nop instructions.
1462
1d7e9d18
AM
14632012-03-12 Alan Modra <amodra@gmail.com>
1464
1465 * elf-m10300.c (_bfd_mn10300_elf_adjust_dynamic_symbol): Don't warn
1466 on zero size dynbss symbol.
1467 * elf32-arm.c (elf32_arm_adjust_dynamic_symbol): Likewise.
1468 * elf32-cr16.c (_bfd_cr16_elf_adjust_dynamic_symbol): Likewise.
1469 * elf32-cris.c (elf_cris_adjust_dynamic_symbol): Likewise.
1470 * elf32-hppa.c (elf32_hppa_adjust_dynamic_symbol): Likewise.
1471 * elf32-i370.c (i370_elf_adjust_dynamic_symbol): Likewise.
1472 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Likewise.
1473 * elf32-lm32.c (lm32_elf_adjust_dynamic_symbol): Likewise.
1474 * elf32-m32r.c (m32r_elf_adjust_dynamic_symbol): Likewise.
1475 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Likewise.
1476 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Likewise.
1477 * elf32-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1478 * elf32-sh.c (sh_elf_adjust_dynamic_symbol): Likewise.
1479 * elf32-tic6x.c (elf32_tic6x_adjust_dynamic_symbol): Likewise.
1480 * elf32-tilepro.c (tilepro_elf_adjust_dynamic_symbol): Likewise.
1481 * elf32-vax.c (elf_vax_adjust_dynamic_symbol): Likewise.
1482 * elf64-ppc.c (ppc64_elf_adjust_dynamic_symbol): Likewise.
1483 * elf64-s390.c (elf_s390_adjust_dynamic_symbol): Likewise.
1484 * elf64-sh64.c (sh64_elf64_adjust_dynamic_symbol): Likewise.
1485 * elf64-x86-64.c (elf_x86_64_adjust_dynamic_symbol): Likewise.
1486 * elfxx-sparc.c (_bfd_sparc_elf_adjust_dynamic_symbol): Likewise.
1487 * elfxx-tilegx.c (tilegx_elf_adjust_dynamic_symbol): Likewise.
1488
aea77599
AM
14892012-03-10 Edmar Wienskoski <edmar@freescale.com>
1490
1491 * archures.c: Add bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1492 * bfd-in2.h: Regenerate.
1493 * cpu-powerpc.c (bfd_powerpc_archs): Add entries for
1494 bfd_mach_ppc_e5500 and bfd_mach_ppc_e6500.
1495
56b8aada
L
14962012-03-09 H.J. Lu <hongjiu.lu@intel.com>
1497
1498 PR ld/13817
8b127cbc 1499 * elf32-i386.c (elf_i386_relocate_section): Restore
56b8aada
L
1500 R_386_IRELATIVE.
1501
8b127cbc 1502 * elf64-x86-64.c (elf_x86_64_relocate_section): Restore
56b8aada
L
1503 R_X86_64_IRELATIVE.
1504
460f1cdc
TG
15052012-03-08 Tristan Gingold <gingold@adacore.com>
1506
1507 * vms-lib.c (_bfd_vms_lib_write_archive_contents): Set maximum
1508 keylen according to archive kind. Set nextvbn and nextrfa lhd
1509 fields. Add comments.
1510
0a22ae8e
NC
15112012-03-07 Nick Clifton <nickc@redhat.com>
1512
1513 * elf-m10300.c (elf32_mn10300_link_hash_entry): Add tls_type
1514 field.
1515 (elf32_mn10300_link_hash_table): Add tls_ldm_got entry;
1516 (elf_mn10300_tdata): Define.
1517 (elf_mn10300_local_got_tls_type): Define.
1518 (elf_mn10300_howto_table): Add entries for R_MN10300_TLS_GD,
1519 R_MN10300_TLS_LD, R_MN10300_TLS_LDO, R_MN10300_TLS_GOTIE,
1520 R_MN10300_TLS_IE, R_MN10300_TLS_LE, R_MN10300_TLS_DPTMOD,
1521 R_MN10300_TLS_DTPOFF, R_MN10300_TLS_TPOFF relocs.
1522 (mn10300_reloc_map): Likewise.
1523 (elf_mn10300_tls_transition): New function.
1524 (dtpoff, tpoff, mn10300_do_tls_transition): New functions.
1525 (mn10300_elf_check_relocs): Add TLS support.
1526 (mn10300_elf_final_link_relocate): Likewise.
1527 (mn10300_elf_relocate_section): Likewise.
1528 (mn10300_elf_relax_section): Likewise.
1529 (elf32_mn10300_link_hash_newfunc): Initialise new field.
1530 (_bfd_mn10300_copy_indirect_symbol): New function.
1531 (elf32_mn10300_link_hash_table_create): Initialise new fields.
1532 (_bfd_mn10300_elf_size_dynamic_sections): Add TLS support.
1533 (_bfd_mn10300_elf_finish_dynamic_symbol): Likewise.
1534 (_bfd_mn10300_elf_reloc_type_class): Allocate an
1535 elf_mn10300_obj_tdata structure.
1536 (elf_backend_copy_indirect_symbol): Define.
1537 * reloc.c (BFD_MN10300_TLS_GD, BFD_MN10300_TLS_LD,
1538 BFD_MN10300_TLS_LDO, BFD_MN10300_TLS_GOTIE, BFD_MN10300_TLS_IE,
1539 BFD_MN10300_TLS_LE, BFD_MN10300_TLS_DPTMOD,
1540 BFD_MN10300_TLS_DTPOFF, BFD_MN10300_TLS_TPOFF): New relocations.
1541 (BFD_RELOC_MN10300_32_PCREL, BFD_RELOC_MN10300_16_PCREL): Move to
1542 alongside other MN10300 relocations.
1543 * bfd-in2.h: Regenerate.
1544 * libbfd.h: Regenerate.
1545
3ce231f8
JJ
15462012-03-06 Jakub Jelinek <jakub@redhat.com>
1547
1548 * elf64-x86-64.c (elf_x86_64_relocate_section): For R_X86_64_RELATIVE
1549 set relocate to TRUE.
1550
0bef263a
RO
15512012-03-05 Rainer Orth <ro@CeBiTec.Uni-Bielefeld.DE>
1552
1553 PR ld/12152
1554 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Also ignore
1555 overflows for R_SPARC_UA32 in .stab sections.
1556
84abc003
AM
15572012-03-01 Alan Modra <amodra@gmail.com>
1558
1559 * elfxx-tilegx.c (tilegx_elf_relocate_section): Silence bogus warning.
1560
3d301fdc
AM
15612012-02-27 Alan Modra <amodra@gmail.com>
1562
1563 * elf32-sh.c (sh_elf_osec_to_segment): Check for elf flavour bfd
1564 before calling elf specific function.
1565 (sh_elf_osec_readonly_p): Test for error return from above.
1566
cb83c803
AM
15672012-02-27 Alan Modra <amodra@gmail.com>
1568
1569 * elf32-spu.c (build_stub): Fix malloc under-allocation.
1570
6f7be959
WL
15712012-02-25 Walter Lee <walt@tilera.com>
1572 * reloc.c: Add BFD_RELOC_TILEPRO_TLS_GD_CALL,
1573 BFD_RELOC_TILEPRO_IMM8_X0_TLS_GD_ADD,
1574 BFD_RELOC_TILEPRO_IMM8_X1_TLS_GD_ADD,
1575 BFD_RELOC_TILEPRO_IMM8_Y0_TLS_GD_ADD,
1576 BFD_RELOC_TILEPRO_IMM8_Y1_TLS_GD_ADD,
1577 BFD_RELOC_TILEPRO_TLS_IE_LOAD, BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE,
1578 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE,
1579 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_LO,
1580 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_LO,
1581 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HI,
1582 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HI,
1583 BFD_RELOC_TILEPRO_IMM16_X0_TLS_LE_HA,
1584 BFD_RELOC_TILEPRO_IMM16_X1_TLS_LE_HA,
1585 BFD_RELOC_TILEGX_IMM16_X0_HW0_TLS_LE,
1586 BFD_RELOC_TILEGX_IMM16_X1_HW0_TLS_LE,
1587 BFD_RELOC_TILEGX_IMM16_X0_HW0_LAST_TLS_LE,
1588 BFD_RELOC_TILEGX_IMM16_X1_HW0_LAST_TLS_LE,
1589 BFD_RELOC_TILEGX_IMM16_X0_HW1_LAST_TLS_LE,
1590 BFD_RELOC_TILEGX_IMM16_X1_HW1_LAST_TLS_LE,
1591 BFD_RELOC_TILEGX_TLS_GD_CALL, BFD_RELOC_TILEGX_IMM8_X0_TLS_GD_ADD,
1592 BFD_RELOC_TILEGX_IMM8_X1_TLS_GD_ADD,
1593 BFD_RELOC_TILEGX_IMM8_Y0_TLS_GD_ADD,
1594 BFD_RELOC_TILEGX_IMM8_Y1_TLS_GD_ADD, BFD_RELOC_TILEGX_TLS_IE_LOAD,
1595 BFD_RELOC_TILEGX_IMM8_X0_TLS_ADD,
1596 BFD_RELOC_TILEGX_IMM8_X1_TLS_ADD,
1597 BFD_RELOC_TILEGX_IMM8_Y0_TLS_ADD, BFD_RELOC_TILEGX_IMM8_Y1_TLS_ADD.
1598 Delete BFD_RELOC_TILEGX_IMM16_X0_HW1_GOT,
1599 BFD_RELOC_TILEGX_IMM16_X1_HW1_GOT,
1600 BFD_RELOC_TILEGX_IMM16_X0_HW2_GOT,
1601 BFD_RELOC_TILEGX_IMM16_X1_HW2_GOT,
1602 BFD_RELOC_TILEGX_IMM16_X0_HW3_GOT,
1603 BFD_RELOC_TILEGX_IMM16_X1_HW3_GOT,
1604 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_GOT,
1605 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_GOT,
1606 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_GD,
1607 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_GD,
1608 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_GD,
1609 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_GD,
1610 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_GD,
1611 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_GD,
1612 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_GD,
1613 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_GD,
1614 BFD_RELOC_TILEGX_IMM16_X0_HW1_TLS_IE,
1615 BFD_RELOC_TILEGX_IMM16_X1_HW1_TLS_IE,
1616 BFD_RELOC_TILEGX_IMM16_X0_HW2_TLS_IE,
1617 BFD_RELOC_TILEGX_IMM16_X1_HW2_TLS_IE,
1618 BFD_RELOC_TILEGX_IMM16_X0_HW3_TLS_IE,
1619 BFD_RELOC_TILEGX_IMM16_X1_HW3_TLS_IE,
1620 BFD_RELOC_TILEGX_IMM16_X0_HW2_LAST_TLS_IE,
1621 BFD_RELOC_TILEGX_IMM16_X1_HW2_LAST_TLS_IE.
1622 * elf32-tilepro.c (tilepro_elf_howto_table): Update tilepro
1623 relocations.
1624 (tilepro_reloc_map): Ditto.
1625 (tilepro_info_to_howto_rela): Ditto.
1626 (reloc_to_create_func): Ditto.
1627 (tilepro_tls_translate_to_le): New.
1628 (tilepro_tls_translate_to_ie): New.
1629 (tilepro_elf_tls_transition): New.
1630 (tilepro_elf_check_relocs): Handle new tls relocations.
1631 (tilepro_elf_gc_sweep_hook): Ditto.
1632 (allocate_dynrelocs): Ditto.
1633 (tilepro_elf_relocate_section): Ditto.
1634 (tilepro_replace_insn): New.
1635 (insn_mask_X1): New.
1636 (insn_mask_X0_no_dest_no_srca): New
1637 (insn_mask_X1_no_dest_no_srca): New
1638 (insn_mask_Y0_no_dest_no_srca): New
1639 (insn_mask_Y1_no_dest_no_srca): New
1640 (srca_mask_X0): New
1641 (srca_mask_X1): New
1642 (insn_tls_le_move_X1): New
1643 (insn_tls_le_move_zero_X0X1): New
1644 (insn_tls_ie_lw_X1): New
1645 (insn_tls_ie_add_X0X1): New
1646 (insn_tls_ie_add_Y0Y1): New
1647 (insn_tls_gd_add_X0X1): New
1648 (insn_tls_gd_add_Y0Y1): New
1649 * elfxx-tilegx.c (tilegx_elf_howto_table): Update tilegx
1650 relocations.
1651 (tilegx_reloc_map): Ditto.
1652 (tilegx_info_to_howto_rela): Ditto.
1653 (reloc_to_create_func): Ditto.
1654 (tilegx_elf_link_hash_table): New field disable_le_transition.
1655 (tilegx_tls_translate_to_le): New.
1656 (tilegx_tls_translate_to_ie): New.
1657 (tilegx_elf_tls_transition): New.
1658 (tilegx_elf_check_relocs): Handle new tls relocations.
1659 (tilegx_elf_gc_sweep_hook): Ditto.
1660 (allocate_dynrelocs): Ditto.
1661 (tilegx_elf_relocate_section): Ditto.
1662 (tilegx_copy_bits): New.
1663 (tilegx_replace_insn): New.
1664 (insn_mask_X1): New.
1665 (insn_mask_X0_no_dest_no_srca): New.
1666 (insn_mask_X1_no_dest_no_srca): New.
1667 (insn_mask_Y0_no_dest_no_srca): New.
1668 (insn_mask_Y1_no_dest_no_srca): New.
1669 (insn_mask_X0_no_operand): New.
1670 (insn_mask_X1_no_operand): New.
1671 (insn_mask_Y0_no_operand): New.
1672 (insn_mask_Y1_no_operand): New.
1673 (insn_tls_ie_ld_X1): New.
1674 (insn_tls_ie_ld4s_X1): New.
1675 (insn_tls_ie_add_X0X1): New.
1676 (insn_tls_ie_add_Y0Y1): New.
1677 (insn_tls_ie_addx_X0X1): New.
1678 (insn_tls_ie_addx_Y0Y1): New.
1679 (insn_tls_gd_add_X0X1): New.
1680 (insn_tls_gd_add_Y0Y1): New.
1681 (insn_move_X0X1): New.
1682 (insn_move_Y0Y1): New.
1683 (insn_add_X0X1): New.
1684 (insn_add_Y0Y1): New.
1685 (insn_addx_X0X1): New.
1686 (insn_addx_Y0Y1): New.
1687 * libbfd.h: Regenerate.
1688 * bfd-in2.h: Regenerate.
1689
82590249
WL
16902012-02-25 Walter Lee <walt@tilera.com>
1691
fb6cedde
WL
1692 * config.bfd (tilegx-*-*): rename little endian vector; add big
1693 endian vector.
1694 (tilegxbe-*-*): New case.
1695 * configure.in (bfd_elf32_tilegx_vec): Rename...
1696 (bfd_elf32_tilegx_le_vec): ... to this.
1697 (bfd_elf32_tilegx_be_vec): New vector.
1698 (bfd_elf64_tilegx_vec): Rename...
1699 (bfd_elf64_tilegx_le_vec): ... to this.
1700 (bfd_elf64_tilegx_be_vec): New vector.
1701 * configure: Regenerate.
1702 * elf32-tilegx.c (TARGET_LITTLE_SYM): Rename.
1703 (TARGET_LITTLE_NAME): Ditto.
1704 (TARGET_BIG_SYM): Define.
1705 (TARGET_BIG_NAME): Define.
1706 * elf64-tilegx.c (TARGET_LITTLE_SYM): Rename.
1707 (TARGET_LITTLE_NAME): Ditto.
1708 (TARGET_BIG_SYM): Define.
1709 (TARGET_BIG_NAME): Define.
1710 * targets.c (bfd_elf32_tilegx_vec): Rename...
1711 (bfd_elf32_tilegx_le_vec): ... to this.
1712 (bfd_elf32_tilegx_be_vec): Declare.
1713 (bfd_elf64_tilegx_vec): Rename...
1714 (bfd_elf64_tilegx_le_vec): ... to this.
1715 (bfd_elf64_tilegx_be_vec): Declare.
1716 (_bfd_target_vector): Add / rename above vectors.
82590249
WL
1717 * arctures.c (bfd_architecture): Define bfd_mach_tilegx32.
1718 * bfd-in2.h: Regenerate.
1719 * cpu-tilegx.c (bfd_tilegx32_arch): define.
fb6cedde 1720 (bfd_tilegx_arch): link to bfd_tilegx32_arch.
82590249 1721
4115917d
NC
17222012-02-24 Nick Clifton <nickc@redhat.com>
1723
1724 PR ld/13730
1725 * reloc.c (bfd_generic_get_relocated_section_contents): Issue an
1726 error message instead of aborting, when an outofrange reloc is
1727 encountered.
1728
19765f52
IS
17292012-02-23 Iain Sandoe <idsandoe@googlemail.com>
1730
1731 * mach-o.c (bfd_mach_o_swap_in_non_scattered_reloc): New.
1732 (bfd_mach_o_canonicalize_one_reloc): Swap non-scattered reloc
1733 bit-fields when target and host differ in endian-ness. When
1734 PAIRs are non-scattered find the 'symbol' from the preceding
1735 reloc. Add FIXME re. reloc symbols on section boundaries.
1736 (bfd_mach_o_swap_out_non_scattered_reloc): New.
1737 (bfd_mach_o_write_relocs): Use bfd_mach_o_encode_non_scattered_reloc.
1738
6639d37a
IS
17392012-02-17 Iain Sandoe <idsandoe@googlemail.com>
1740
1741 * mach-o-i386.c (i386_howto_table): Add support for 16 bit
1742 sect-diffs.
1743 (bfd_mach_o_i386_swap_reloc_in): Handle 16bit sect-diffs.
1744 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1745
e1e81ed3
IS
17462012-02-17 Tristan Gingold <gingold@adacore.com>
1747
1748 * reloc.c (BFD_RELOC_MACH_O_LOCAL_SECTDIFF):
1749 * libbfd.h: Regenerated.
1750 * bfd-in2.h: Likewise.
1751 * mach-o-i386.c (i386_howto_table): Include local sectdiff.
1752 (bfd_mach_o_i386_swap_reloc_in): Update for local sectdiff.
1753 (bfd_mach_o_i386_swap_reloc_out): Likewise.
1754
d0ddfe27
AK
17552012-02-17 Andreas Krebbel <Andreas.Krebbel@de.ibm.com>
1756
1757 * elf32-s390.c (elf_s390_relocate_section): Support basr in the
1758 GD->LE and LD->LE optimizations.
1759
eb8c5f3f
AM
17602012-02-16 Alan Modra <amodra@gmail.com>
1761
1762 PR binutils/13355
1763 * elf32-rx.c (elf32_rx_relax_section): Correct width check.
1764
e1741a1e
RH
17652012-02-13 Richard Henderson <rth@redhat.com>
1766
1767 PR ld/13621
1768 * linker.c (fix_syms): Force symbols outside any section into
1769 bfd_abs_section_ptr.
1770
5efbbc43
AM
17712012-02-13 Alan Modra <amodra@gmail.com>
1772
1773 * elf32-m68hc1x.c (elf32_m68hc11_merge_symbol_attribute): New function.
1774 * elf32-m68hc1x.h (elf32_m68hc11_merge_symbol_attribute): Declare.
1775 * elf32-m68hc11.c (elf_backend_merge_symbol_attribute): Define.
1776 * elf32-m68hc12.c (elf_backend_merge_symbol_attribute): Define.
1777
3e3c397d
JK
17782012-02-11 Jan Kratochvil <jan.kratochvil@redhat.com>
1779 Nick Clifton <nickc@redhat.com>
1780
1781 * oasys.c (oasys_write_header): Fix compilation warning on zero-sized
1782 memset.
1783
09903f4b
IS
17842012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1785
1786 * mach-o.c (bfd_mach_o_build_seg_command): Count zerofill section
1787 vma additions in their logical, rather than physical order.
1788
632039e0
IS
17892012-02-10 Iain Sandoe <idsandoe@googlemail.com>
1790
1791 * mach-o.c (mach_o_section_name_xlat): Correct eh-frame section
1792 parameters.
1793 * mach-o-x86-64.c (text_section_names_xlat): New.
1794 (mach_o_x86_64_segsec_names_xlat): New.
1795 (bfd_mach_o_tgt_seg_table): Define to mach_o_x86_64_segsec_names_xlat.
1796 * mach-o-i386.c (text_section_names_xlat): Correct section parameters.
1797
565a6476
TG
17982012-02-10 Tristan Gingold <gingold@adacore.com>
1799
1800 * elfnn-ia64.c (elfNN_vms_object_p): Change comparison operator
1801 to avoid infinite loop. Add comments.
1802
923f257f
L
18032012-02-09 H.J. Lu <hongjiu.lu@intel.com>
1804
1805 PR ld/13675
1806 * cpu-i386.c (bfd_arch_i386_fill): Updated to support multi byte
1807 nop instructions.
1808 (bfd_arch_i386_short_nop_fill): New.
1809 (bfd_arch_i386_long_nop_fill): Likewise.
1810 Use bfd_arch_i386_short_nop_fill in 32bit bfd_arch_info
1811 initializers. Use bfd_arch_i386_long_nop_fill on 64bit
1812 bfd_arch_info initializers.
1813
1814 * cpu-k1om.c (bfd_arch_i386_fill): Renamed to ...
1815 (bfd_arch_i386_short_nop_fill): This.
1816 Update bfd_arch_info initializers.
1817 * cpu-l1om.c: Likewise.
1818
4e6b54a6
AM
18192012-02-08 Alan Modra <amodra@gmail.com>
1820
1821 * elflink.c (_bfd_elf_gc_mark_rsec): Mark weakdef syms too.
1822 (_bfd_elf_fix_symbol_flags): When a weakdef is def_regular, clear
1823 the correct h->u.weakdef.
1824
ff9e0f5b
AM
18252012-02-07 Alan Modra <amodra@gmail.com>
1826
1827 * elf.c (elf_find_function): Don't use internal_elf_sym.
1828 (_bfd_elf_maybe_function_sym): Likewise. Replace elf_symbol_type
1829 parameter with asymbol.
1830 * elf64-ppc.c (ppc64_elf_maybe_function_sym): Likewise.
1831 * elf-bfd.h (_bfd_elf_maybe_function_sym): Update prototype.
1832 (struct elf_backend_data <maybe_function_sym>): Likewise.
1833
526f25b2
EW
18342012-02-02 Vidya Praveen (vidya.praveen@atmel.com)
1835
1836 PR bfd/13410
8b127cbc 1837 * elf32-avr.c (elf32_avr_relax_section): Correct the
526f25b2
EW
1838 condition that qualifies the candidates for relaxation.
1839
7c4f9963
TG
18402012-02-02 Tristan Gingold <gingold@adacore.com>
1841
1842 * bfdio.c (real_fopen): Remove unused vms_modes variable.
1843
facf03f2
TG
18442012-02-02 Tristan Gingold <gingold@adacore.com>
1845
1846 * mach-o.c (bfd_mach_o_read_header): Silent uninitialized
1847 variable warning.
1848
cd99171c
TG
18492012-02-02 Tristan Gingold <gingold@adacore.com>
1850
1851 * archive.c (bfd_slurp_armap): Fix thinko in cast.
1852
b7761f11
L
18532012-01-31 H.J. Lu <hongjiu.lu@intel.com>
1854
1855 PR ld/13616
1856 * archures.c (bfd_arch_info): Add fill.
1857 (bfd_default_arch_struct): Add bfd_arch_default_fill.
1858 (bfd_arch_default_fill): New.
1859
1860 * configure.in: Set bfd version to 2.22.52.
1861 * configure: Regenerated.
1862
1863 * cpu-alpha.c: Add bfd_arch_default_fill to bfd_arch_info
1864 initializer.
1865 * cpu-arc.c: Likewise.
1866 * cpu-arm.c: Likewise.
1867 * cpu-avr.c: Likewise.
1868 * cpu-bfin.c: Likewise.
1869 * cpu-cr16.c: Likewise.
1870 * cpu-cr16c.c: Likewise.
1871 * cpu-cris.c: Likewise.
1872 * cpu-crx.c: Likewise.
1873 * cpu-d10v.c: Likewise.
1874 * cpu-d30v.c: Likewise.
1875 * cpu-dlx.c: Likewise.
1876 * cpu-epiphany.c: Likewise.
1877 * cpu-fr30.c: Likewise.
1878 * cpu-frv.c: Likewise.
1879 * cpu-h8300.c: Likewise.
1880 * cpu-h8500.c: Likewise.
1881 * cpu-hppa.c: Likewise.
1882 * cpu-i370.c: Likewise.
1883 * cpu-i860.c: Likewise.
1884 * cpu-i960.c: Likewise.
1885 * cpu-ia64.c: Likewise.
1886 * cpu-ip2k.c: Likewise.
1887 * cpu-iq2000.c: Likewise.
1888 * cpu-lm32.c: Likewise.
1889 * cpu-m10200.c: Likewise.
1890 * cpu-m10300.c: Likewise.
1891 * cpu-m32c.c: Likewise.
1892 * cpu-m32r.c: Likewise.
1893 * cpu-m68hc11.c: Likewise.
1894 * cpu-m68hc12.c: Likewise.
1895 * cpu-m68k.c: Likewise.
1896 * cpu-m88k.c: Likewise.
1897 * cpu-mcore.c: Likewise.
1898 * cpu-mep.c: Likewise.
1899 * cpu-microblaze.c: Likewise.
1900 * cpu-mips.c: Likewise.
1901 * cpu-mmix.c: Likewise.
1902 * cpu-moxie.c: Likewise.
1903 * cpu-msp430.c: Likewise.
1904 * cpu-mt.c: Likewise.
1905 * cpu-ns32k.c: Likewise.
1906 * cpu-openrisc.c: Likewise.
1907 * cpu-or32.c: Likewise.
1908 * cpu-pdp11.c: Likewise.
1909 * cpu-pj.c: Likewise.
1910 * cpu-plugin.c: Likewise.
1911 * cpu-powerpc.c: Likewise.
1912 * cpu-rl78.c: Likewise.
1913 * cpu-rs6000.c: Likewise.
1914 * cpu-rx.c: Likewise.
1915 * cpu-s390.c: Likewise.
1916 * cpu-score.c: Likewise.
1917 * cpu-sh.c: Likewise.
1918 * cpu-sparc.c: Likewise.
1919 * cpu-spu.c: Likewise.
1920 * cpu-tic30.c: Likewise.
1921 * cpu-tic4x.c: Likewise.
1922 * cpu-tic54x.c: Likewise.
1923 * cpu-tic6x.c: Likewise.
1924 * cpu-tic80.c: Likewise.
1925 * cpu-tilegx.c: Likewise.
1926 * cpu-tilepro.c: Likewise.
1927 * cpu-v850.c: Likewise.
1928 * cpu-vax.c: Likewise.
1929 * cpu-w65.c: Likewise.
1930 * cpu-we32k.c: Likewise.
1931 * cpu-xc16x.c: Likewise.
1932 * cpu-xstormy16.c: Likewise.
1933 * cpu-xtensa.c: Likewise.
1934 * cpu-z80.c: Likewise.
1935 * cpu-z8k.c: Likewise.
1936
1937 * cpu-i386.c: Include "libiberty.h".
ff9e0f5b 1938 (bfd_arch_i386_fill): New.
b7761f11
L
1939 Add bfd_arch_i386_fill to bfd_arch_info initializer.
1940
1941 * cpu-k1om.c: Add bfd_arch_i386_fill to bfd_arch_info initializer.
1942 * cpu-l1om.c: Likewise.
1943
ff9e0f5b 1944 * linker.c (default_data_link_order): Call abfd->arch_info->fill
b7761f11
L
1945 if fill size is 0.
1946
1947 * bfd-in2.h: Regenerated.
1948
0d048da3
ME
19492012-01-27 Michael Eager <eager@eagercon.com>
1950
8b127cbc 1951 * elf32-microblaze.c (create_got_section):
0d048da3
ME
1952 Reuse existing .rela.got section.
1953
9f296da3
AM
19542012-01-23 Alan Modra <amodra@gmail.com>
1955
1956 * elf-bfd.h: Formatting.
1957 (struct elf_backend_data): Add "maybe_function_sym".
1958 (_bfd_elf_maybe_function_sym): Declare.
1959 * elfxx-target.h (elf_backend_maybe_function_sym): Define.
1960 (elfNN_bed): Init new field.
1961 * elf.c (elf_find_function): Use maybe_function_sym.
1962 (_bfd_elf_maybe_function_sym): New function.
1963 * elf64-ppc.c (elf_backend_maybe_function_sym): Define.
1964 (ppc64_elf_maybe_function_sym): New function.
1965
f1bb16f8
NC
19662012-01-20 Francois Gouget <fgouget@codeweavers.com>
1967
1968 PR binutils/13534
1969 * archive.c (_bfd_ar_sizepad): New function. Correctly install and
1970 pad the size field in an archive header.
1971 (_bfd_generic_read_ar_hdr_mag): Use the correct type and scan
1972 function for the archive size field.
1973 (bfd_generic_openr_next_archived_file): Likewise.
1974 (do_slurp_coff_armap): Likewise.
1975 (_bfd_write_archive_contents): Likewise.
1976 (_bfd_bsd44_write_ar_hdr): Use the new function.
1977 (bfd_ar_hdr_from_filesystem): Likewise.
1978 (_bfd_write_archive_contents): Likewise.
1979 (bsd_write_armap): Likewise.
1980 (coff_write_armap): Likewise.
1981 * archive64.c (bfd_elf64_archive_write_armap): Likewise.
1982 * bfdio.c (bfd_bread): Use correct type for archive element
1983 sizes.
1984 * ar.c (open_inarch): Likewise.
1985 (extract_file): Likewise.
1986 * libbfd-in.h (struct areltdata): Use correct types for
1987 parsed_size and extra_size fields.
1988 Prototype _bfd_ar_sizepad function.
1989 * libbfd.h: Regenerate.
1990
1f20dca5
UW
19912012-01-20 Ulrich Weigand <ulrich.weigand@linaro.org>
1992
1993 * elf.c (elfcore_write_prpsinfo): Provide unconditionally.
1994 Return NULL if core file generation is unsupported.
1995 (elfcore_write_prstatus): Likewise.
1996 * elf32-arm.c (elf32_arm_nabi_write_core_note): New function.
1997 (elf_backend_write_core_note): Define.
1998
100fc767
TG
19992012-01-19 Tristan Gingold <gingold@adacore.com>
2000
2001 * pef.c: Add a comment.
2002 * xsym.c: Likewise.
2003
75cd47ed
AM
20042012-01-17 Alan Modra <amodra@gmail.com>
2005
2006 * elf32-ppc.c (ppc_elf_write_core_note <NT_PRPSINFO>): Don't leave
2007 trailing garbage in the note.
2008 * elf64-ppc.c (ppc64_elf_write_core_note <NT_PRPSINFO>): Likewise.
2009
8a5dcf53
AM
20102012-01-16 Daniel Green <venix1@gmail.com>
2011
2012 PR ld/13491
2013 * coff-i386.c (coff_i386_rtype_to_howto <R_SECREL32>): Test
2014 h->root.type not h->type.
2015 * coff-x86_64.c (coff_amd64_rtype_to_howto <R_AMD64_SECREL>): Likewise.
2016
bb76d940
IS
20172012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2018
8a5dcf53
AM
2019 * mach-o.c (bfd_mach_o_build_dysymtab_command): Handle absolute
2020 indirect symbols.
687be931
IS
2021
20222012-01-13 Iain Sandoe <idsandoe@googlemail.com>
2023
2024 * mach-o.c (bfd_mach_o_write_relocs): Move computation of relocs file
bb76d940
IS
2025 position from here... to (bfd_mach_o_build_seg_command): Here.
2026
50d10658
IS
20272012-01-12 Iain Sandoe <idsandoe@googlemail.com>
2028
2029 * mach-o.c (bfd_mach_o_count_indirect_symbols): New.
2030 (bfd_mach_o_build_dysymtab_command): Populate indirect symbol table.
2031 * mach-o.h (bfd_mach_o_asymbol): Move declaration to start of the
2032 file. (bfd_mach_o_section): Add indirect_syms field.
2033
e5081f2f
IS
20342012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2035
2036 * mach-o.c (bfd_mach_o_build_seg_command): Separate computation of
2037 vmsize from filesize. Don't compute offsets or file sizes for
2038 zerofill sections.
2039
bbd56171
IS
20402012-01-11 Iain Sandoe <idsandoe@googlemail.com>
2041
2042 * mach-o.c (bfd_mach_o_build_commands): Make the building of each
2043 command type independent.
2044
794e51c0
AM
20452012-01-11 Alan Modra <amodra@gmail.com>
2046
2047 * elf64-ppc.c: Define more insns used in plt call stubs.
2048 (ppc64_elf_brtaken_reloc): Assume isa version 2 or above.
2049 (ppc64_elf_relocate_section): Likewise.
2050 (enum ppc_stub_type): Add ppc_stub_plt_call_r2save.
2051 (struct ppc_link_hash_table): Increase size of stub_count array.
2052 Add plt_stub_align and plt_thread_safe.
2053 (ALWAYS_USE_FAKE_DEP, ALWAYS_EMIT_R2SAVE): Define.
2054 (plt_stub_size, plt_stub_pad): New functions.
2055 (build_plt_stub): Emit barriers for power7 thread safety. Don't
2056 emit needless save of r2.
2057 (build_tls_get_addr_stub): Adjust params.
2058 (ppc_build_one_stub): Handle ppc_stub_plt_call_r2save and aligning
2059 plt stubs. Adjust build_*plt_stub calls.
2060 (ppc_size_one_stub): Similarly.
2061 (ppc64_elf_size_stubs): Accept plt_thread_safe and plt_stub_align
2062 params. Choose default for plt_thread_safe based on existence of
2063 calls to thread creation functions. Modify plt_call to
2064 plt_call_r2save when no tocsave reloc found. Align tail of stub
2065 sections.
2066 (ppc64_elf_build_stubs): Align tail of stub sections. Adjust
2067 output of stub statistics.
2068 (ppc64_elf_relocate_section): Handle ppc_stub_plt_call_r2save.
2069 * elf64-ppc.h (ppc64_elf_size_stubs): Update prototype.
2070
df4f9443
L
20712012-01-10 H.J. Lu <hongjiu.lu@intel.com>
2072
2073 PR ld/13581
2074 * elf64-x86-64.c (elf_x86_64_relocate_section): Remove ABI_64_P
2075 check on R_X86_64_PCXX.
2076
2a65a88e
TG
20772012-01-10 Tristan Gingold <gingold@adacore.com>
2078
2079 * mach-o.c (bfd_mach_o_build_commands): Avoid uninitialized false
2080 warning.
2081
660722b0
TG
20822012-01-10 Tristan Gingold <gingold@adacore.com>
2083
2084 * bfdio.c (bfd_tell): Handle nested archives.
2085 (bfd_seek): Ditto.
2086 * cache.c (bfd_cache_lookup_worker): Ditto.
2087 * archive.c (_bfd_get_elt_at_filepos): Remove code dealing with
2088 nested archives.
2089 (bfd_generic_openr_next_archived_file): Likewise.
2090
b22161d6
IS
20912012-01-09 Iain Sandoe <idsandoe@googlemail.com>
2092
2093 * mach-o.c (bfd_mach_o_bfd_copy_private_symbol_data): Implement.
2094 (bfd_mach_o_write_symtab): Remove handling for indirect syms.
2095 (bfd_mach_o_primary_symbol_sort_key): Likewise.
2096 (bfd_mach_o_cf_symbols): Likewise.
2097 (bfd_mach_o_sort_symbol_table): Remove.
2098 (bfd_mach_o_mangle_symbols): Adjust arguments, remove handling
2099 for indirect and dysymtab counts. Do the symbol sorting here.
2100 (bfd_mach_o_build_dysymtab_command): Count the symbol types here.
2101 Make the indirect symbols a TODO.
2102 (bfd_mach_o_build_commands): Adjust call to bfd_mach_o_mangle_symbols.
2103 (bfd_mach_o_make_empty_symbol): Specifically flag unset symbols with
2104 a non-zero value.
2105 (bfd_mach_o_read_symtab_symbol): Record the symbol index.
2106 (bfd_mach_o_read_symtab_symbol): Adjust recording of global status.
2107 * mach-o.h (mach_o_data_struct): Remove indirect and dysymtab entries.
2108 (IS_MACHO_INDIRECT): Remove.
2109 (SYM_MACHO_FIELDS_UNSET, SYM_MACHO_FIELDS_NOT_VALIDATED): New.
2110
28a1b4f8
NC
21112012-01-06 Nick Clifton <nickc@redhat.com>
2112
2113 PR binutils/13121
2114 * reloc.c (bfd_generic_lookup_section_flags): Rename 'finfo' to
2115 'flaginfo' to avoid conflicts with AIX system headers.
2116
36f0a48f
TG
21172012-01-06 Tristan Gingold <gingold@adacore.com>
2118
2119 * bfdio.c (bfd_bread): Use arelt_size macro.
2120
76d4c1cb
TG
21212012-01-06 Tristan Gingold <gingold@adacore.com>
2122
2123 * config.bfd (i[3-7]86-*-darwin*): Define targ64_selvecs.
2124
a1c7aafb
NC
21252012-01-05 Nick Clifton <nickc@redhat.com>
2126
2127 PR ld/12161
2128 * elf32-avr.c (elf32_avr_relax_delete_bytes): Read in relocs if
2129 necessary.
2130
e85c6a70
JK
21312012-01-05 Jan Kratochvil <jan.kratochvil@redhat.com>
2132
2133 Fix zero registers core files when built by gcc-4.7.
2134 * elf64-x86-64.c (elf_x86_64_write_core_note): Remove variables p and
2135 size. Call elfcore_write_note for the local variables. Remove the
2136 final elfcore_write_note call. Add NOTREACHED comments.
2137
15bbba8d
TG
21382012-01-04 Tristan Gingold <gingold@adacore.com>
2139
2140 * mach-o.c (bfd_mach_o_fat_stat_arch_elt): New function.
2141 (bfd_mach_o_generic_stat_arch_elt): Adjust.
2142
a4e241ca
TG
21432012-01-04 Tristan Gingold <gingold@adacore.com>
2144
2145 * mach-o.c (bfd_mach_o_fat_member_init): New function.
2146 (bfd_mach_o_openr_next_archived_file): Reindent.
2147 Adjust to call bfd_mach_o_fat_member_init.
2148 (bfd_mach_o_fat_extract): Adjust to call bfd_mach_o_fat_member_init.
2149
71141310
TG
21502012-01-04 Tristan Gingold <gingold@adacore.com>
2151
2152 * mach-o-x86-64.c (bfd_mach_o_x86_64_swap_reloc_out): Handle
2153 BFD_RELOC_32, BFD_RELOC_MACH_O_X86_64_PCREL32_1,
2154 BFD_RELOC_MACH_O_X86_64_PCREL32_2,
2155 BFD_RELOC_MACH_O_X86_64_PCREL32_4,
2156 BFD_RELOC_MACH_O_X86_64_BRANCH32,
2157 BFD_RELOC_MACH_O_X86_64_SUBTRACTOR32,
2158 BFD_RELOC_MACH_O_X86_64_GOT.
2159
9f4a5bd1
TG
21602012-01-04 Tristan Gingold <gingold@adacore.com>
2161
2162 * mach-o.h (bfd_mach_o_fvmlib_command): New structure.
2163 (bfd_mach_o_load_command): Add fvmlib field.
2164
2165 * mach-o.c (bfd_mach_o_read_fvmlib): New function.
2166 (bfd_mach_o_read_command): Handle fvmlib.
2167
0b2de107
TG
21682012-01-04 Tristan Gingold <gingold@adacore.com>
2169
2170 * mach-o.c (bfd_mach_o_convert_architecture): Reindent.
2171 Decode msubtype for ARM.
2172
aeefa1c9
TG
21732012-01-04 Tristan Gingold <gingold@adacore.com>
2174
2175 * mach-o.c (bfd_mach_o_get_synthetic_symtab): Add comments.
2176
fc55a902
TG
21772012-01-04 Tristan Gingold <gingold@adacore.com>
2178
2179 * mach-o.h: Reindent header.
2180 (bfd_mach_o_encryption_info_command): New structure.
2181 (bfd_mach_o_load_command): Add encryption_info field.
2182
2183 * mach-o.c (bfd_mach_o_read_encryption_info): New function.
2184 (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_ENCRYPTION_INFO.
2185 (bfd_mach_o_read_command): Adjust error message.
2186
2ca7691a
TG
21872012-01-04 Shinichiro Hamaji <shinichiro.hamaji@gmail.com>
2188
2189 * dwarf2.c (_bfd_dwarf2_slurp_debug_info): Factor out the part
2190 which reads DWARF2 and stores in stash from find_line.
2191 (find_line) Call _bfd_dwarf2_slurp_debug_info.
2192 * libbfd-in.h (_bfd_dwarf2_slurp_debug_info): Add declaration.
2193 * libbfd.h (_bfd_dwarf2_slurp_debug_info): Regenerate.
2194 * mach-o.c (dsym_subdir): The name of subdir where debug
2195 information may be stored.
2196 (bfd_mach_o_lookup_uuid_command): New. Lookup a load command whose
2197 type is UUID.
2198 (bfd_mach_o_dsym_for_uuid_p): New. Check if the specified BFD is
2199 corresponding to the executable.
2200 (bfd_mach_o_find_dsym): New. Find a debug information BFD in the
2201 specified binary file.
2202 (bfd_mach_o_follow_dsym): New. Find a debug information BFD for
2203 the original BFD.
2204 (bfd_mach_o_find_nearest_line): Check dSYM files for Mach-O
2205 executables, dylibs, and bundles.
2206 (bfd_mach_o_close_and_cleanup): Clean up BFDs for the dSYM file.
2207 * mach-o.h (dsym_bfd): The BFD of the dSYM file.
2208
68588f95
IS
22092012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2210
2211 * mach-o.c (bfd_mach_o_mangle_symbols): Put in the section index
2212 for stabd symbols.
2213 (bfd_mach_o_primary_symbol_sort_key): Adjust for stabs.
2214 (bfd_mach_o_cf_symbols): Likewise.
2215
f2b324f1
IS
22162012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2217
2218 * mach-o.c (bfd_mach_o_mangle_symbols): Correct typo.
2219
7f307238
IS
22202012-01-03 Iain Sandoe <idsandoe@googlemail.com>
2221
2222 * mach-o.c (bfd_mach_o_write_symtab): Fill in the string table index
2223 as the value of an indirect symbol. Keep the string table index in
2224 non-indirect syms for reference.
2225 (bfd_mach_o_write_dysymtab): New.
2226 (bfd_mach_o_primary_symbol_sort_key): New.
2227 (bfd_mach_o_cf_symbols): New.
2228 (bfd_mach_o_sort_symbol_table): New.
2229 (bfd_mach_o_mangle_symbols): Return early if no symbols. Sort symbols.
2230 If we are emitting a dysymtab, process indirect symbols and count the
2231 number of each other kind.
2232 (bfd_mach_o_mangle_sections): New.
2233 (bfd_mach_o_write_contents): Split out some pre-requisite code into
2234 the command builder. Write dysymtab if the command is present.
2235 (bfd_mach_o_count_sections_for_seg): New.
2236 (bfd_mach_o_build_seg_command): New.
2237 (bfd_mach_o_build_dysymtab_command): New.
2238 (bfd_mach_o_build_commands): Reorganize to support the fact that some
2239 commands are optional and should not be emitted if there are no
2240 sections or symbols.
2241 (bfd_mach_o_set_section_contents): Amend comment.
23e1d329 2242 * mach-o.h: Amend and add to comments.
7f307238
IS
2243 (mach_o_data_struct): Add fields for dysymtab symbols counts and a
2244 pointer to the indirects, when present.
2245 (bfd_mach_o_should_emit_dysymtab): New macro.
2246 (IS_MACHO_INDIRECT): Likewise.
2247
23e1d329 2248For older changes see ChangeLog-2011
56882138
AM
2249\f
2250Local Variables:
2251mode: change-log
2252left-margin: 8
2253fill-column: 74
2254version-control: never
2255End:
This page took 0.739476 seconds and 4 git commands to generate.