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