OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [gdb-7.2/] [bfd/] [ChangeLog-2009] - Blame information for rev 474

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 330 jeremybenn
2009-12-31  Cary Coutant  
2
 
3
        * dwarf2.c (struct line_sequence): New struct.
4
        (struct line_info_table): Add num_sequences, remove last_line,
5
        add sequences.
6
        (add_line_info): Add new sequences as necessary.
7
        (compare_sequences): New function.
8
        (sort_line_sequences): New function.
9
        (decode_line_info): Initialize new fields in line table.
10
        Call sort_line_sequences.
11
        (lookup_address_in_line_info_table): Binary search for proper
12
        sequence.
13
 
14
2009-12-28  Daniel Gutson  
15
 
16
        * elf32-arm.c (elf32_arm_final_link_relocate): limits
17
        fixed.
18
 
19
2009-12-28  Daniel Gutson  
20
 
21
        * elf-attrs.c (_bfd_elf_merge_object_attributes): Error
22
        message rephrased.
23
 
24
2009-12-21  Alan Modra  
25
 
26
        * elf64-ppc.c: Delete my email address.
27
 
28
2009-12-18  Ulrich Weigand  
29
 
30
        * elf.c (elfcore_grok_s390_high_gprs): New function.
31
        (elfcore_grok_note): Handle NT_S390_HIGH_GPRS notes.
32
        (elfcore_write_s390_high_gprs): New function.
33
        (elfcore_write_register_note): Call it.
34
 
35
2009-12-17  Alan Modra  
36
 
37
        PR ld/11088
38
        * elf32-ppc.c (update_plt_info): Clear sec here when addend is
39
        less than 32768..
40
        (ppc_elf_check_relocs): ..rather than doing so here.  Ignore new
41
        relax relocs.
42
        (ppc_elf_gc_sweep_hook): Don't segfault when symbol hiding has
43
        removed plt_entry records.
44
        (ppc_elf_tls_setup): Handle PIE calls to __tls_get_addr correctly.
45
        (ppc_elf_tls_optimize): Likewise.  Also dec __tls_get_addr refcount
46
        when optimizing code using new tlsgd and tlsld marker relocs.
47
        (ppc_elf_relax_section): Differentiate relaxed PLTREL24 relocs
48
        from ADDR24 relocs using plt or glink.  Don't clear the addend
49
        for R_PPC_RELAX_PLTREL24.
50
        (ppc_elf_relocate_section): Correctly handle addends on relaxed
51
        PLTREL24 relocs.
52
 
53
2009-12-17  Alan Modra  
54
 
55
        PR ld/11088
56
        * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Don't abort if symbol
57
        hiding has nulled out plt.plist.
58
 
59
2009-12-15  H.J. Lu  
60
 
61
        * opncls.c (bfd_opnr_iovec): Replace _XXX with XXX_P in
62
        parameters.
63
 
64
        * tekhex.c (pass_over): Replace eof with is_eof.
65
 
66
2009-12-15  Tristan Gingold  
67
 
68
        * mach-o.h (bfd_mach_o_uuid_command): Remove section field.
69
        * mach-o.c (bfd_mach_o_scan_read_uuid): Do not create a section
70
        from this command.
71
 
72
2009-12-15  Tristan Gingold  
73
 
74
        * mach-o.c (struct mach_o_section_name_xlat): Add flags field.
75
        (dwarf_section_names_xlat): Add section flags.
76
        (text_section_names_xlat): Ditto.
77
        (data_section_names_xlat): Ditto.
78
        (bfd_mach_o_convert_section_name_to_bfd): Now return name and section
79
        flags by reference.
80
        (bfd_mach_o_make_bfd_section): Use section flags when know, otherwise
81
        try to guess.
82
 
83
2009-12-14  Doug Kwan  
84
 
85
        * opncls.c (bfd_opnr_iovec): Rename parameters to avoid shawdowed
86
        variable warnings.
87
        * bfd-in2.h: Regnenerate.
88
 
89
2009-12-12  Nick Clifton  
90
 
91
        * coff-arm.c (coff_arm_rtype_to_howto): Fix shadowed variable
92
        warning.
93
 
94
2009-12-11  Tristan Gingold  
95
 
96
        * som.c (bfd_som_set_subsection_attributes)
97
        (bfd_section_from_som_symbol, som_reloc_queue_fix): Fix shadowed
98
        variable warnings.
99
        * cache.c (close_one): Likewise.
100
 
101
2009-12-11  Nick Clifton  
102
 
103
        * warning.m4 (GCC_WARN_CFLAGS): Add -Wshadow.
104
        * configure: Regenerate.
105
        * Makefile.in: Regenerate.
106
        * doc/Makefile.in: Regenerate.
107
        * aout-arm.c: Fix shadowed variable warnings.
108
        * aout-tic30.c: Likewise.
109
        * aoutx.h: Likewise.
110
        * archive.c: Likewise.
111
        * coff-alpha.c: Likewise.
112
        * coff-i386.c: Likewise.
113
        * coff-x86_64.c: Likewise.
114
        * coffgen.c: Likewise.
115
        * dwarf2.c: Likewise.
116
        * ecoff.c: Likewise.
117
        * elf-eh-frame.c: Likewise.
118
        * elf-m10300.c: Likewise.
119
        * elf.c: Likewise.
120
        * elf32-arm.c: Likewise.
121
        * elf32-avr.c: Likewise.
122
        * elf32-bfin.c: Likewise.
123
        * elf32-cr16.c: Likewise.
124
        * elf32-i386.c: Likewise.
125
        * elf32-ip2k.c: Likewise.
126
        * elf32-lm32.c: Likewise.
127
        * elf32-m68hc1x.c: Likewise.
128
        * elf32-microblaze.c: Likewise.
129
        * elf32-ppc.c: Likewise.
130
        * elf32-rx.c: Likewise.
131
        * elf32-score.c: Likewise.
132
        * elf32-score7.c: Likewise.
133
        * elf32-sh.c: Likewise.
134
        * elf32-spu.c: Likewise.
135
        * elf32-v850.c: Likewise.
136
        * elf32-xtensa.c: Likewise.
137
        * elf64-hppa.c: Likewise.
138
        * elf64-ppc.c: Likewise.
139
        * elf64-x86-64.c: Likewise.
140
        * elflink.c: Likewise.
141
        * elfxx-ia64.c: Likewise.
142
        * elfxx-mips.c: Likewise.
143
        * elfxx-sparc.c: Likewise.
144
        * hash.c: Likewise.
145
        * ieee.c: Likewise.
146
        * libbfd.c: Likewise.
147
        * mach-o.c: Likewise.
148
        * merge.c: Likewise.
149
        * nlm32-sparc.c: Likewise.
150
        * oasys.c: Likewise.
151
        * opncls.c: Likewise.
152
        * pdp11.c: Likewise.
153
        * peXXigen.c: Likewise.
154
        * pef.c: Likewise.
155
        * versados.c: Likewise.
156
        * vms-gsd.c: Likewise.
157
        * vms-hdr.c: Likewise.
158
        * vms-tir.c: Likewise.
159
        * vms.c: Likewise.
160
        * xcofflink.c: Likewise.
161
        * xsym.c: Likewise.
162
        * xtensa-isa.c: Likewise.
163
 
164
2009-12-10  Maciej W. Rozycki  
165
 
166
        * elfxx-mips.c (mips_elf_calculate_relocation): Correct handling
167
        of undefined symbols.
168
 
169
2009-12-09  Daniel Jacobowitz  
170
 
171
        * elf32-arm.c (elf32_arm_next_input_section): Skip sections without
172
        SEC_CODE.
173
 
174
2009-12-08  Alan Modra  
175
 
176
        * elf.c (write_zeros): New function.
177
        (assign_file_positions_for_load_sections): Allocate file space for
178
        NOBITS sections that are followed by PROGBITS sections in a segment.
179
 
180
2009-12-03  Tristan Gingold  
181
 
182
        * mach-o.c (bfd_mach_o_make_bfd_section): Force debug flags for
183
        all sections of the __DWARF segment.
184
 
185
2009-12-03  Alan Modra  
186
 
187
        PR ld/11047
188
        * elf32-ppc.c (ppc_elf_relocate_section): Delete __tls_get_addr
189
        symbol reference from relocs belonging to calls that are
190
        optimized away.
191
        * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
192
 
193
2009-12-02  Jerker Bäck  
194
 
195
        PR binutils/11017
196
        * coff-i386.h (COFF_PAGE_SIZE): Definition moved to coff/i386.h
197
 
198
2009-11-30  Joseph Myers  
199
 
200
        * configure: Regenerate.
201
 
202
2009-11-26  Per Øyvind Karlsen 
203
 
204
        * plugin.c (bfd_plugin_bfd_copy_link_hash_symbol_type): Define.
205
 
206
2009-11-24  Joel Brobecker  
207
 
208
        * acinclude.m4: Add include of ../config/zlib.m4.
209
        * configure.in: AM_ZLIB to check for zlib support.
210
        * configure: Regenerate.
211
 
212
2009-11-23  Paul Brook  
213
 
214
        * libbfd-in.h (_bfd_generic_copy_link_hash_symbol_type): Add
215
        prototype.
216
        * elf-bfd.h (_bfd_elf_copy_link_hash_symbol_type): Add prototype.
217
        * linker.c (_bfd_generic_copy_link_hash_symbol_type): New function.
218
        * elflink.c (_bfd_elf_copy_link_hash_symbol_type): New function.
219
        * targets.c (BFD_JUMP_TABLE_LINK, struct bfd_target): Add
220
        _copy_link_hash_symbol_type.
221
        * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Add
222
        _bfd_generic_copy_link_hash_symbol_type.
223
        * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add
224
        _bfd_generic_copy_link_hash_symbol_type.
225
        * aout-adobe.c (aout_32_bfd_copy_link_hash_symbol_type): Define.
226
        * aout-target.h (MY_bfd_copy_link_hash_symbol_type): Define.
227
        * aout-tic30.c (MY_bfd_copy_link_hash_symbol_type): Define.
228
        * binary.c (binary_bfd_copy_link_hash_symbol_type): Define.
229
        * bout.c (b_out_bfd_copy_link_hash_symbol_type): Define.
230
        * coffcode.h (coff_bfd_copy_link_hash_symbol_type): Define.
231
        * elfxx-target.h (bfd_elfNN_bfd_copy_link_hash_symbol_type): Define.
232
        * i386msdos.c (msdos_bfd_copy_link_hash_symbol_type): Define.
233
        * i386os9k.c (os9k_bfd_copy_link_hash_symbol_type): Define.
234
        * ieee.c (ieee_bfd_copy_link_hash_symbol_type): Define.
235
        * ihex.c (ihex_bfd_copy_link_hash_symbol_type): Define.
236
        * libecoff.h (_bfd_ecoff_bfd_copy_link_hash_symbol_type): Define.
237
        * mach-o.c (bfd_mach_o_bfd_copy_link_hash_symbol_type): Define.
238
        * mmo.c (mmo_bfd_copy_link_hash_symbol_type): Define.
239
        * nlm-target.h (nlm_bfd_copy_link_hash_symbol_type): Define.
240
        * oasys.c (oasys_bfd_copy_link_hash_symbol_type): Define.
241
        * pef.c (bfd_pef_bfd_copy_link_hash_symbol_type): Define.
242
        * ppcboot.c (ppcboot_bfd_copy_link_hash_symbol_type): Define.
243
        * som.c (som_bfd_copy_link_hash_symbol_type): Define.
244
        * srec.c (srec_bfd_copy_link_hash_symbol_type): Define.
245
        * tekhex.c (tekhex_bfd_copy_link_hash_symbol_type): Define.
246
        * versados.c (versados_bfd_copy_link_hash_symbol_type): Define.
247
        * vms.c (vms_bfd_copy_link_hash_symbol_type): Define.
248
        * xsym.c (bfd_sym_bfd_copy_link_hash_symbol_type): Define.
249
        * bfd-in2.h: Regenerate.
250
        * libbfd.h: Regenerate.
251
 
252
2009-11-19  Tristan Gingold  
253
 
254
        * coff-rs6000.c (rs6000coff_vec): Use generic routines instead of
255
        hard-coded casts.
256
        (pmac_xcoff_vec): Ditto.
257
        * coff64-rs6000.c (rs6000coff64_vec): Ditto.
258
        (aix5coff64_vec): Ditto.
259
 
260
2009-11-18  Alan Modra  
261
 
262
        * bfd-in.h (_bfd_elf_ppc_at_tls_transform): Declare.
263
        * bfd-in2.h: Regenerate.
264
        * elf64-ppc.c (ppc64_elf_relocate_section): Move code for R_PPC64_TLS
265
        insn optimisation to..
266
        * elf32-ppc.c (_bfd_elf_ppc_at_tls_transform): ..here.  New function.
267
        (ppc_elf_relocate_section): Use it.
268
 
269
2009-11-18  Alan Modra  
270
 
271
        * targets.c: Don't include alloca-conf.h.
272
        (bfd_get_target_info): Don't use alloca.
273
 
274
2009-11-17  H.J. Lu  
275
 
276
        PR ld/10955
277
        * elfxx-ia64.c (elfNN_ia64_update_short_info): Also skip ABS
278
        sections.
279
 
280
2009-11-17  H.J. Lu  
281
 
282
        PR ld/10955
283
        * elfxx-ia64.c (elfNN_ia64_link_hash_table): Update comments.
284
        (elfNN_ia64_update_short_info): Remove "->output_section" from
285
        ia64_info->max_short_sec and ia64_info->min_short_sec.
286
        (elfNN_ia64_choose_gp): Likewise.
287
        (elfNN_ia64_relax_section): Pass tsec->output_section to
288
        elfNN_ia64_update_short_info.
289
 
290
2009-11-17  H.J. Lu  
291
 
292
        PR ld/10955
293
        * elfxx-ia64.c (elfNN_ia64_link_hash_table): Add max_short_sec,
294
        max_short_offset, min_short_sec and min_short_offset.
295
        (elfNN_ia64_update_short_info): New.
296
        (elfNN_ia64_relax_section): Update max_short_sec,
297
        max_short_offset, min_short_sec and min_short_offset.
298
        (elfNN_ia64_choose_gp): Use min_short_sec/max_short_sec if
299
        they are set.
300
 
301
2009-11-17  Paul Brook  
302
            Daniel Jacobowitz  
303
 
304
        * elf32-arm.c (using_thumb_only, arch_has_arm_nop,
305
        arch_has_thumb2_nop): Handle TAG_CPU_ARCH_V7E_M.
306
        (tag_cpu_arch_combine): Ditto. Correct MAX_TAG_CPU_ARCH test.
307
 
308
2009-11-17  Ulrich Weigand  
309
 
310
        * elf32-spu.c (struct spu_link_hash_table): Remove overlay_fixed,
311
        reserved, and extra_stack_space members.
312
        (spu_elf_auto_overlay): Use auto_overlay_fixed, auto_overlay_reserved,
313
        and extra_stack_space members of htab->params instead.
314
 
315
2009-11-17  Tristan Gingold  
316
 
317
        * targets.c: Include alloca-conf.h
318
 
319
2009-11-16  Kai Tietz  
320
 
321
        * targets.c (bfd_get_target_info): New function.
322
        (_bfd_find_arch_match): New function.
323
        * bfd-in2.h: Regenerated.
324
 
325
2009-11-12  Nick Clifton  
326
 
327
        * po/ru.po: Updates Russian translation.
328
 
329
2009-11-11  Nick Clifton  
330
 
331
        * po/id.po: Updated Indonesian translation.
332
 
333
2009-11-11  Jan Kratochvil  
334
 
335
        * configure.in: Call ACX_LARGEFILE.  Stop calling AC_PLUGINS,
336
        AC_SYS_LARGEFILE and checking the Solaris largefile exception.
337
        * aclocal.m4: Regenerate.
338
        * configure: Regenerate.
339
 
340
2009-11-09  H.J. Lu  
341
 
342
        PR ld/10911
343
        * elflink.c (elf_link_output_extsym): Don't return on
344
        STT_GNU_IFUNC symbol when stripping.
345
 
346
2009-11-08  John David Anglin  
347
 
348
        * elf32-hppa.c (elf32_hppa_final_link): Don't sort unwind information
349
        in a relocatable link.
350
        * elf64-hppa.c (elf_hppa_final_link): Likewise.
351
 
352
2009-11-05  Nick Clifton  
353
 
354
        * elflink.c (elf_link_add_object_symbols): Improve error
355
        message generated when a symbol is left unresolved because a
356
        --no-add-needed command line option has prevented the
357
        inclusion of the DSO defining it.
358
 
359
2009-11-03  Alan Modra  
360
            Ulrich Weigand  
361
 
362
        * elf32-spu.c (mark_functions_via_relocs): Handle non-branch relocs
363
        (jump tables or other references to code labels) as well.
364
 
365
2009-11-02  Paul Brook  
366
 
367
        * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle VFPv4
368
        attributes.
369
 
370
2009-11-02  Alan Modra  
371
 
372
        * elflink.c (elf_link_add_object_symbols): Don't force debug
373
        symbols local.
374
 
375
2009-10-29  Johan Kristell  
376
 
377
        * elf32-cris.c (cris_elf_plt_sym_val): New function.
378
        (elf_backend_plt_sym_val): Define.
379
 
380
2009-10-27  Kai Tietz  
381
 
382
        * peXXigen.c (bfdver.h): Add include.
383
        (LINKER_VERSION): Do calculation based on BFD_VERSION.
384
 
385
2009-10-25  Maciej W. Rozycki  
386
 
387
        * elf32-vax.c (elf_vax_relocate_section): Correct assertion.
388
 
389
2009-10-25  Maciej W. Rozycki  
390
 
391
        * elf32-vax.c (elf_vax_plt_entry): Fix formatting.
392
 
393
2009-10-25  Maciej W. Rozycki  
394
 
395
        * elf32-vax.c (elf_vax_relocate_section): Fix a typo.
396
 
397
2009-10-23  Kai Tietz  
398
 
399
        * coff-x86_64.c (coff_amd64_rtype_to_howto): Subtract offset
400
        of R_AMD64_PCRLONG_ relocations from addend.
401
 
402
2009-10-23  Alan Modra  
403
 
404
        * plugin.c: Produce empty object if not BFD_SUPPORTS_PLUGINS.
405
 
406
2009-10-20  Alan Modra  
407
 
408
        PR binutils/10802
409
        * opncls.c (_maybe_make_executable): Make DYNAMIC files executable.
410
 
411
2009-10-19  Hans-Peter Nilsson  
412
 
413
        * elf32-cris.c (cris_elf_relocate_section) :
414
        Don't subtract the size of the TLS block for non-shared objects
415
        from the relocation.
416
 
417
2009-10-17  Arnold Metselaar  
418
 
419
        * coff-z80.c (z80coff_vec): Allow sections to be of type
420
        SEC_CODE or SEC_DATA
421
 
422
2009-10-16  Alan Modra  
423
 
424
        PR binutils/10785
425
        * coff-alpha.c (alpha_ecoff_get_elt_at_filepos): Don't bfd_alloc
426
        bim and bim->buffer.  bfd_malloc instead.
427
        * peicode.h (pe_ILF_build_a_bfd): Similarly.
428
        (ILF_DATA_SIZE): Don't include bim.
429
        * opncls.c (bfd_close): Test bim->buffer non-NULL before freeing.
430
 
431
2009-10-14  Alan Modra  
432
 
433
        * aoutx.h (aout_link_check_ar_symbols): Typo fix.
434
 
435
2009-10-13  H.J. Lu  
436
 
437
        PR binutils/10763
438
        * elf32-i386.c (elf_i386_finish_dynamic_symbol): Declare plt
439
        earlier.
440
 
441
2009-10-13  Alan Modra  
442
 
443
        * elflink.c (_bfd_elf_merge_symbol): Revert previous patch.
444
 
445
2009-10-12  Roland McGrath  
446
 
447
        * elflink.c (elf_link_add_object_symbols, _bfd_elf_merge_symbol):
448
        Fix %s that should be %B in several message formats.
449
 
450
2009-10-10  Alan Modra  
451
 
452
        * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols for
453
        excluded output sections.
454
 
455
2009-10-09  Tristan Gingold  
456
 
457
        * mach-o.c (bfd_mach_o_read_command): Handle BFD_MACH_O_LC_RPATH.
458
        (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
459
 
460
2009-10-09  Tristan Gingold  
461
 
462
        * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Rename to
463
        bfd_mach_o_read_symtab_symbols.
464
        (bfd_mach_o_scan_write_thread): Rename to bfd_mach_o_write_thread.
465
        (bfd_mach_o_scan_write_relocs): Rename to bfd_mach_o_write_relocs.
466
        (bfd_mach_o_scan_write_section_32): Rename to
467
        bfd_mach_o_write_section_32.
468
        (bfd_mach_o_scan_write_section_64): Rename to
469
        bfd_mach_o_write_section_64.
470
        (bfd_mach_o_scan_write_segment_32): Rename to
471
        bfd_mach_o_write_segment_32.
472
        (bfd_mach_o_scan_write_segment_64): Rename to
473
        bfd_mach_o_write_segment_64.
474
        (bfd_mach_o_scan_write_symtab): Rename to bfd_mach_o_write_symtab.
475
        (bfd_mach_o_scan_read_section_32): Rename to
476
        bfd_mach_o_read_section_32.
477
        (bfd_mach_o_scan_read_section_64): Rename to
478
        bfd_mach_o_read_section_64.
479
        (bfd_mach_o_scan_read_section): Rename to bfd_mach_o_read_section.
480
        (bfd_mach_o_scan_read_symtab_strtab): Rename to
481
        bfd_mach_o_read_symtab_strtab.
482
        (bfd_mach_o_scan_read_symtab_symbol): Rename to
483
        bfd_mach_o_read_symtab_symbol.
484
        (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
485
        bfd_mach_o_read_dysymtab_symbol.
486
        (bfd_mach_o_scan_read_dylinker): Rename to bfd_mach_o_read_dylinker.
487
        (bfd_mach_o_scan_read_dylib): Rename to bfd_mach_o_read_dylib.
488
        (bfd_mach_o_scan_read_prebound_dylib): Rename to
489
        bfd_mach_o_read_prebound_dylib.
490
        (bfd_mach_o_scan_read_thread): Rename to bfd_mach_o_read_thread.
491
        (bfd_mach_o_scan_read_dysymtab): Rename to bfd_mach_o_read_dysymtab.
492
        (bfd_mach_o_scan_read_symtab): Rename to bfd_mach_o_read_symtab.
493
        (bfd_mach_o_scan_read_uuid): Rename to bfd_mach_o_read_uuid.
494
        (bfd_mach_o_scan_read_linkedit): Rename to bfd_mach_o_read_linkedit.
495
        (bfd_mach_o_scan_read_str): Rename to bfd_mach_o_read_str.
496
        (bfd_mach_o_scan_read_dyld_info): Rename to bfd_mach_o_read_dyld_info.
497
        (bfd_mach_o_scan_read_segment): Rename to bfd_mach_o_read_segment.
498
        (bfd_mach_o_scan_read_segment_32): Rename to
499
        bfd_mach_o_read_segment_32.
500
        (bfd_mach_o_scan_read_segment_64): Rename to
501
        bfd_mach_o_read_segment_64.
502
        (bfd_mach_o_scan_read_command): Rename to bfd_mach_o_read_command.
503
        * mach-o.h (bfd_mach_o_scan_read_dysymtab_symbol): Rename to
504
        bfd_mach_o_read_dysymtab_symbol.
505
 
506
2009-10-09  Tristan Gingold  
507
 
508
        * mach-o.c (bfd_mach_o_section_get_entry_size): Moved.
509
        (bfd_mach_o_section_get_nbr_indirect): Ditto.
510
        (bfd_mach_o_get_synthetic_symtab): New function.
511
        (bfd_mach_o_print_private_header): Print the number of commands
512
        in decimal.
513
        * mach-o.h (bfd_mach_o_get_synthetic_symtab): Add prototype.
514
        * mach-o-target.c: Do not defined bfd_mach_o_get_synthetic_symtab.
515
 
516
2009-10-08  Tristan Gingold  
517
 
518
        * config.bfd: Add bfd_mach_o_i386_vec in x86_64-darwin targ_selvecs.
519
 
520
2009-10-06  H.J. Lu  
521
 
522
        * bfd-in2.h: Regenerated.
523
 
524
2009-10-02  Alan Modra  
525
 
526
        * aout-cris.c (N_SHARED_LIB): Don't define.
527
        * hp300bsd.c (N_SHARED_LIB): Don't define.
528
        * i386bsd.c (N_SHARED_LIB): Don't define.
529
        * i386linux.c (N_SHARED_LIB): Don't define.
530
        * i386lynx.c (N_SHARED_LIB): Don't define.
531
        * m68klinux.c (N_SHARED_LIB): Don't define.
532
        * m88kmach3.c (N_SHARED_LIB): Don't define.
533
        * mipsbsd.c (N_SHARED_LIB): Don't define.
534
        * newsos3.c (N_SHARED_LIB): Don't define.
535
        * pc532-mach.c (N_SHARED_LIB): Don't define.
536
        * pdp11.c (N_SHARED_LIB): Don't define.
537
        * sparclinux.c (N_SHARED_LIB): Don't define.
538
        * vaxbsd.c (N_SHARED_LIB): Don't define.
539
 
540
2009-10-01  Dave Korn  
541
 
542
        * cofflink.c (_bfd_coff_generic_relocate_section): Look for the aux
543
        symbol for a weak undef in the auxbfd, not the input bfd.
544
 
545
2009-10-01  Ulrich Weigand  
546
 
547
        * elf32-spu.c (spu_elf_auto_overlay): Insert icache linker script
548
        after .toe instead of before .text section.  Set the LMA of all
549
        overlay sections to their icache IA address.
550
        (spu_elf_find_overlays): Determine icache set id without reference
551
        to the LMA.
552
 
553
2009-09-30  Tristan Gingold  
554
 
555
        * configure.com: Use hosts/alphavms.h on both alpha and ia64 VMS.
556
 
557
2009-09-29  H.J. Lu  
558
 
559
        * elf64-x86-64.c (elf64_x86_64_append_rela): New.
560
        (elf64_x86_64_relocate_section): Use it.
561
        (elf64_x86_64_finish_dynamic_symbol): Likewise.
562
 
563
2009-09-29  DJ Delorie  
564
 
565
        * Makefile.am (ALL_MACHINES): Add cpu-rx.lo.
566
        (ALL_MACHINES_CFILES): Add cpu-rx.c.
567
        (BFD32_BACKENDS): Add elf32-rx.lo.
568
        (BFD32_BACKENDS_CFILES): Add elf32-rx.c.
569
        * archures.c (bfd_architecture): Add bfd_arch_rx and bfd_mach_rx.
570
        Export bfd_rx_arch.
571
        (bfd_archures_list): Add bfd_rx_arch.
572
        * config.bfd: Add entry for rx-*-elf.
573
        * configure.in: Add entries for bfd_elf32_rx_le_vec and
574
        bfd_elf32_rx_be_vec.
575
        * reloc.c: Add RX relocations.
576
        * targets.c: Add RX target vectors.
577
        * Makefile.in: Regenerate.
578
        * bfd-in2.h: Regenerate.
579
        * configure: Regenerate.
580
        * libbfd.h: Regenerate.
581
        * cpu-rx.c: New file.
582
        * elf32-rx.c: New file.
583
 
584
2009-09-29 M R Swami Reddy 
585
 
586
        * elf32-cr16.c (elf32_cr16_relocate_section): Removed
587
        info->relocatable to fix the ld/testsuites/ld-elf/linkonce1 test case.
588
 
589
2009-09-28  Nick Clifton  
590
 
591
        PR 10478: Accepting Solaris binaries.
592
        * elf.c (bfd_section_from_shdr): Allow SHN_BEFORE and SHN_AFTER
593
        section link values in x86 binaries.
594
        * elfcode.h (elf_object_p): Likewise.
595
 
596
2009-09-28  Philippe De Muyter  
597
 
598
        * elf32-m68k.c (elf_m68k_final_write_processing): New function.
599
        (elf_backend_final_write_processing): Macro defined as above function.
600
 
601
2009-09-25  Martin Thuresson  
602
 
603
        Update sources to make alpha and arm targets compile cleanly with
604
        -Wc++-compat:
605
        * ecoff.c: Add casts.
606
        * ecofflink.c: Add casts.
607
        * elf64-alpha.c: Add casts.
608
        (struct alpha_elf_got_entry, struct alpha_elf_reloc_entry): Move
609
        to top level.
610
        (SKIP_HOWTO): Use enum name.
611
        * elf32-arm.c: Add casts.
612
        (elf32_arm_vxworks_bed): Update code to avoid multiple
613
        declarations.
614
        (struct map_stub): Move to top level.
615
 
616
2009-09-24  H.J. Lu  
617
 
618
        PR ld/10630
619
        * elflink.c (elf_link_output_extsym): Turn off visibility on
620
        local symbol.
621
        (bfd_elf_final_link): Turn off visibility on dynamic local
622
        symbol.
623
 
624
2009-09-24  Alan Modra  
625
 
626
        PR binutils/10654
627
        * dwarf2.c (lookup_address_in_line_info_table): Remove workaround
628
        for invalid location lists generated by gcc-2.95 and Intel 6.0 C++.
629
        Remove "function" parm, adjust caller.
630
 
631
2009-09-23  Matt Rice  
632
 
633
        * bfd-in.h (bfd_elf_size_dynamic_sections): Add audit and depaudit
634
        arguments.
635
        * elflink.c (bfd_elf_size_dynamic_sections): Generate DT_AUDIT,
636
        DT_DEPAUDIT from audit/depaudit arguments.
637
        (elf_finalize_dynstr): Finalize DT_AUDIT and DT_DEPAUDIT strtab entries.
638
        (elf_link_add_object_symbols): Set dt_audit target data when finding a
639
        DT_AUDIT.
640
        * bfd-in2.h: Regenerate.
641
        * bfd-elf.h: Add dt_audit to elf_obj_tdata, and elf_dt_audit macro.
642
 
643
2009-09-23  Jie Zhang  
644
 
645
        * elf32-bfin.c (_bfinfdpic_size_got_plt): Make sure empty
646
        .rel.plt and .plt sections are removed.
647
        (elf32_bfinfdpic_size_dynamic_sections): Remove empty .dynbss
648
        section.  Remove the duplicated removing of empty .rel.plt
649
        section.
650
 
651
2009-09-21  Richard Sandiford  
652
 
653
        * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Extend previous
654
        patch to handle the new personality relaxation.
655
 
656
2009-09-21  Richard Sandiford  
657
 
658
        * elf-eh-frame.c (make_pc_relative): New function.
659
        (_bfd_elf_write_section_eh_frame): Use it.
660
 
661
2009-09-21  Alan Modra  
662
 
663
        * elf32-ppc.c (TLS_GET_ADDR_GLINK_SIZE): Define.
664
        (ADD_3_12_2, BEQLR, CMPWI_11_0, LWZ_11_3, LWZ_12_3): Define.
665
        (MR_0_3, MR_3_0): Define.
666
        (struct ppc_elf_link_hash_table): Add no_tls_get_addr_opt.
667
        (ppc_elf_select_plt_layout): Save emit_stub_syms param earlier.
668
        (ppc_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
669
        table.  Check for presense of __tls_get_addr_opt
670
        (allocate_dynrelocs): Increase glink entry size for __tls_get_addr.
671
        (ppc_elf_size_dynamic_sections): Add DT_PPC_TLS_OPT tag.
672
        (write_glink_stub): Add param p.
673
        (ppc_elf_relocate_section): Adjust write_glink_stub call.
674
        (ppc_elf_finish_dynamic_symbol): Emit special glink call stub for
675
        __tls_get_addr.
676
        * elf32-ppc.h (ppc_elf_tls_setup): Update prototype.
677
        * elf64-ppc.c (struct ppc_link_hash_table): Add no_tls_get_addr_opt.
678
        (ppc64_elf_tls_setup): Add no_tls_get_addr_opt param and save to hash
679
        table.  Check for presense of __tls_get_addr_opt.
680
        (ppc64_elf_size_dynamic_sections): Add DT_PPC64_TLS_OPT tag.
681
        (LD_R11_0R3, LD_R12_0R3, MR_R0_R3, CMPDI_R11_0, ADD_R3_R12_R13,
682
        BEQLR, MR_R3_R0, MFLR_R11, STD_R11_0R1, BCTRL, LD_R11_0R1,
683
        LD_R2_0R1, MTLR_R11): Define.
684
        (build_tls_get_addr_stub): New function.
685
        (ppc_build_one_stub): Call it.
686
        (ppc_size_one_stub): Add extra size for __tls_get_addr stub.
687
        (ppc64_elf_relocate_section): Don't change nop to ld 2,40(1) for
688
        __tls_get_addr plt call.
689
        * elf64-ppc.h (ppc64_elf_tls_setup): Update prototype.
690
 
691
2009-09-19  Richard Sandiford  
692
 
693
        * elf-bfd.h (eh_cie_fde): Add personality_offset and
694
        make_per_encoding_relative to the CIE structure.  Add a padding field.
695
        * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Use 0x70
696
        rather than 0xf0 when masking out the base address encoding
697
        Record the offset of personality data from the start of the CIE.
698
        Remove a repeated elf_backend_can_make_relative_eh_frame check.
699
        (find_merged_cie): Take an info argument.  If the personality
700
        binds locally, try converting an absolute personality into
701
        a local one.
702
        (_bfd_elf_discard_section_eh_frame): Use 0x70 rather than 0xf0
703
        when masking out the base address encoding.  Update the call to
704
        find_merged_cie.
705
        (_bfd_elf_eh_frame_section_offset): Discard relocations against
706
        the personality data if we are converting into PC-relative form.
707
        (_bfd_elf_write_section_eh_frame): Use 0x70 rather than 0xf0
708
        when masking out the base address encoding.  Handle
709
        make_per_encoding_relative.
710
 
711
2009-09-18  Alan Modra  
712
 
713
        PR ld/10406
714
        * elf32-ppc.c (ppc_elf_howto_raw): Make R_PPC_EMB_SDAI16 and
715
        R_PPC_EMB_SDA2I16 complain_overflow_signed.
716
        (create_sdata_sym): Pass info rather than htab.
717
        Update all callers.  Ensure symbols are hidden.
718
        (ppc_elf_check_relocs): Allow SDAREL16 when shared.
719
        (ppc_elf_size_dynamic_sections): When shared, equate _SDA_BASE_ to
720
        _GLOBAL_OFFSET_TABLE_.
721
        (elf_finish_pointer_linker_section): Don't assume that sdata base
722
        symbol is always at 0x8000 offset.  Don't subtract the addend here.
723
        (is_static_defined): New function.
724
        (ppc_elf_relocate_section): Verify symbol base used in SDA relocs
725
        is statically defined.  Clear addend for EMB_SDAI16 and EMB_SDA2I16
726
        relocs.  Downgrade error on unexpected section for EMB_SDA2REL
727
        reloc symbols to a warning.
728
 
729
2009-09-18  Nick Clifton  
730
 
731
        * po/es.po: Updated Spanish translation.
732
        * po/vi.po: Updated Vietnamese translation.
733
 
734
2009-09-18  Alan Modra  
735
 
736
        * elf64-ppc.c (follow_link, elf_follow_link, ppc_follow_link): New
737
        functions.  Use throughout.
738
        (ppc64_elf_copy_indirect_symbol): Set direct symbol "oh" field
739
        from indirect symbol.
740
        (lookup_fdh): Rename from get_fdh.  Follow indirect sym links.
741
        (add_symbol_adjust): Simplify.
742
        (defined_code_entry, defined_func_desc): New functions.
743
        (ppc64_elf_gc_keep): Follow indirect sym links.  Use defined_code_entry.
744
        (ppc64_elf_gc_mark_dynamic_ref): Use defined_func_desc and
745
        defined_code_entry to follow indirect sym links.
746
        (ppc64_elf_gc_mark_hook, func_desc_adjust): Likewise.
747
        (ppc_type_of_stub): Follow indirect sym links.
748
        (toc_adjusting_stub_needed): Likewise.
749
        (ppc_build_one_stub): Likewise.  Make undefined dot-symbols weak
750
        rather than defining them at stub.
751
        (ppc64_elf_relocate_section): Rewrite call test to avoid multiple
752
        assignments in test.
753
 
754
2009-09-16  Tristan Gingold  
755
 
756
        * mach-o.h (bfd_mach_o_filetype): Add new constants from darwin10.
757
        Reindent.
758
        * mach-o.c (bfd_mach_o_cpu_name): Reindent.
759
        (bfd_mach_o_filetype_name): Complete with new constants.  Reindent.
760
        (bfd_mach_o_print_private_header): Use fputs instead of fprintf
761
        when possible to avoid warnings.
762
        (bfd_mach_o_print_section_map): Ditto.
763
        (bfd_mach_o_section_get_entry_size): New function.
764
        (bfd_mach_o_section_get_nbr_indirect): Simplify using the newly
765
        added function.
766
        (bfd_mach_o_print_dysymtab): Print address of indirect symbols.
767
 
768
2009-09-14  Nick Clifton  
769
 
770
        * po/fi.po: Updated Finnish translation.
771
 
772
2009-09-11  Nick Clifton  
773
 
774
        * po/bfd.pot: Updated by the Translation project.
775
 
776
2009-09-11  Philippe De Muyter  
777
 
778
        * binary.c (binary_object_p): Remove bfd_external_binary_architecture
779
        hack.  objcopy `-B' (`--binary-architecture') option is now handled
780
        in a generic way.
781
 
782
2009-09-11  Nick Clifton  
783
 
784
        * rs6000-core.c (read_hdr): Fix typo in recent C++ compatibility
785
        changes.
786
 
787
2009-09-11  Jie Zhang  
788
 
789
        * elf32-bfin.c (bfinfdpic_relocs_info_find): Just return
790
        NULL if `ht' is NULL.
791
 
792
2009-09-09  Martin Thuresson  
793
 
794
        Update sources to compile cleanly with -Wc++-compat:
795
        * aoutx.h: Add casts.
796
        * archive.c: Add casts.
797
        * archive64.c: Add casts.
798
        * archures.c: Add casts.
799
        * bfd-in2.h: Regenerated.
800
        * bfd.c: Add casts. (enum bfd_direction): Move out to top level.
801
        * bfdio.c: Add casts.
802
        * binary.c: Add casts.
803
        * cache.c (cache_bseek,cache_bread_1,cache_bwrite): Updated
804
        parameter to use enum value instead of int.
805
        * coffcode.h: Add casts.
806
        * coffgen.c: Add casts.
807
        * cofflink.c: Add casts.
808
        * compress.c: Add casts.
809
        * dwarf1.c: Add casts.
810
        * dwarf2.c: Add casts. (struct dwarf2_debug): Rename member bfd to
811
        bfd_ptr. Update code to use new name.
812
        * elf-attrs.c: Add casts.
813
        * elf-bfd.h (elf_link_virtual_table_entry): Gives name to
814
        anonymous struct. (union gotplt_union, struct
815
        elf_link_virtual_table_entry): Move to top level.
816
        * elf-eh-frame.c: Add casts.
817
        * elf-strtab.c: Add casts.
818
        * elf.c: Add casts. (_bfd_elm_make_Section_from_phdr): Change
819
        argument name from typename to type_name.
820
        * elf32-i386.c: Add casts.
821
        * elf64-x86-64.c: Add casts.
822
        * elfcode.h: Add casts.
823
        * elfcore.h: Add casts.
824
        * elflink.c: Add casts.
825
        * format.c: Add casts.
826
        * hash.c: Add casts.
827
        * ihex.c: Add casts.
828
        * libaout.h (enum aout_subformat, enum aout_magic): Move to top
829
        level.
830
        * libbfd.c: Add casts.
831
        * linker.c: Add casts.
832
        * merge.c: Add casts.
833
        * opncls.c: Add casts.
834
        * peXXigen.c: Add casts.
835
        * peicode.h: Add casts.
836
        * reloc.c: Add casts.
837
        * section.c: Add casts.
838
        * simple.c: Add casts.
839
        * srec.c: Add casts.
840
        * stabs.c: Add casts.
841
        * syms.c: Add casts.
842
        * targets.c: Add casts.
843
        * tekhex.c: Add casts.
844
        * verilog.c: Add casts.
845
 
846
2009-09-09  Paolo Bonzini  
847
 
848
        * configure: Regenerate.
849
 
850
2009-09-09  Daniel Jacobowitz  
851
 
852
        * elf32-arm.c (elf32_arm_final_link_relocate): Set sym_flags
853
        for the mode of target PLT entries.
854
        (allocate_dynrelocs): Only adjust symbol type if setting its
855
        value.
856
 
857
2009-09-09  Paolo Bonzini  
858
 
859
        * configure: Regenerate.
860
 
861
2009-09-09  Nick Clifton  
862
 
863
        PR 10478:
864
        * elf.c (bfd_section_from_shdr): Do not reject sparc binaries with
865
        section headers containing sh_link values of SHN_BEFORE or
866
        SHN_AFTER.
867
        * elfcode.h (elf_object_p): Likewise.
868
 
869
2009-09-09  Tristan Gingold  
870
 
871
        Handle DYLD_INFO introduced by Darwin10.
872
        * mach-o.h (bfd_mach_o_load_command_type): Add
873
        BFD_MACH_O_LC_DYLD_INFO.
874
        (bfd_mach_o_dyld_info_command): New type.
875
        (bfd_mach_o_load_command): Add dyld_info field.
876
        * mach-o.c (bfd_mach_o_scan_read_str): Reduce size of buf.
877
        (bfd_mach_o_scan_read_dyld_info): New function.
878
        (bfd_mach_o_scan_read_command): Handle BFD_MACH_O_LC_DYLD_INFO.
879
        (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
880
        (bfd_mach_o_load_command_name): AddB FD_MACH_O_LC_DYLD_INFO.
881
        (bfd_mach_o_print_dyld_info): New function.
882
 
883
2009-09-09  M R Swami Reddy 
884
 
885
        * elf32-cr16.c (elf32_cr16_relocate_section): Add code to discard the
886
        linkonce or linker script discarded section.
887
 
888
2009-09-09  Alan Modra  
889
 
890
        * elf32-xtensa.c (elf_xtensa_relax_section): Delete -r check.
891
 
892
2009-09-07  Andreas Schwab  
893
 
894
        * elf32-m68k.c (rtype_to_howto): If the reloc index is out of
895
        range call the bfd error hander and use R_68K_NONE instead.
896
 
897
2009-09-07  Tristan Gingold  
898
 
899
        * po/SRC-POTFILES.in: Regenerate.
900
        * po/bfd.pot: Regenerate.
901
 
902
        * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
903
        BFD_HAVE_SYS_STAT_TYPE_MEMBER): Moved to gas/acinclude.m4
904
        * configure.in: Move tests for tm_gmtoff, st_mtim.tv_sec and
905
        st_mtim.tv_nsec to gas/configure.in
906
        (bfd_elf64_ia64_vms_vec): Remove vmsutil.lo
907
        * configure: Regenerate.
908
        * config.in: Regenerate.
909
        * vmsutil.c: Moved to gas/config/te-vms.c
910
        * vmsutil.h: Removed.
911
        * Makefile.am (BFD32_BACKENDS_CFILES): Remove vmsutil.c
912
        (BFD32_BACKENDS): Remove vmsutil.lo
913
        * Makefile.in: Regenerate.
914
 
915
2009-09-05  Eli Zaretskii  
916
 
917
        * coffcode.h: Include libiberty.h.
918
 
919
2009-09-05  Martin Thuresson  
920
 
921
        * coff-arm.c (coff_arm_relocate_section)
922
        (record_thumb_to_arm_glue, bfd_arm_process_before_allocation):
923
        Change member name class to symbol_class.
924
        * coff-i960.c (coff_i960_relocate_section) Rename variable
925
        class to class_val. Change member name class to symbol_class.
926
        * coff-rs6000.c (_bfd_xcoff_swap_aux_in)
927
        (_bfd_xcoff_swap_aux_out): Rename arguments class to in_class.
928
        * coff-stgo32.c (adjust_aux_in_post)
929
        (adjust_aux_out_pre, adjust_aux_out_post): Rename arguments class
930
        to in_class.
931
        * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in)
932
        (_bfd_xcoff64_swap_aux_out): Rename arguments class to in_class.
933
        * coffcode.h (coff_pointerize_aux_hook): Rename variable class
934
        to n_sclass.
935
        * coffgen.c (coff_write_symbol, coff_pointerize_aux): Rename
936
        variables named class to n_sclass. (coff_write_symbols): Rename
937
        variable class to sym_class. (bfd_coff_set_symbol_class): Rename
938
        argument class to symbol_class.
939
        * cofflink.c (_bfd_coff_link_hash_newfunc)
940
        (coff_link_add_symbols, _bfd_coff_link_input_bfd)
941
        (_bfd_coff_write_global_sym, _bfd_coff_generic_relocate_section):
942
        Update code to use renamed members.
943
        * coffswap.h (coff_swap_aux_in, coff_swap_aux_out): Rename
944
        argument class to in_class.
945
        * libcoff-in.h (struct coff_link_hash_entry, struct
946
        coff_debug_merge_type) Renamed members class to symbol_class and
947
        type_class.
948
        * libcoff.h Regenerated.
949
        * peXXigen.c: (_bfd_XXi_swap_aux_in, _bfd_XXi_swap_aux_out):
950
        Rename argument class to in_class.
951
        * pef.c (bfd_pef_parse_imported_symbol): Update code to use
952
        renamed members.
953
        * pef.h (struct bfd_pef_imported_symbol): Changed name of
954
        member class to symbol_class.
955
 
956
2009-09-04  H.J. Lu  
957
 
958
        * configure: Regenerated.
959
 
960
2009-09-04  Tristan Gingold  
961
 
962
        * configure.in: Bump version to 2.20.51
963
 
964
2009-09-04  Alan Modra  
965
 
966
        * elf32-spu.c (spu_elf_relocate_section): Correct 2009-07-24 logic.
967
 
968
2009-09-04  Jie Zhang  
969
 
970
        * elf32-bfin.c (elf32_bfinfdpic_create_dynamic_sections): Always
971
        create .rela.bss.
972
        (elf32_bfinfdpic_size_dynamic_sections): Set SEC_EXCLUDE flag
973
        for empty .rela.bss and .rel.plt sections.
974
 
975
2009-09-03  Adam Nemet  
976
 
977
        * elfxx-mips.c (mips_elf_calculate_relocation): Don't relocate
978
        R_MIPS_JALR unless symbol resolves locally.
979
 
980
2009-09-03  Adam Nemet  
981
 
982
        * elfxx-mips.c (_bfd_mips_elf_check_relocs): Don't set
983
        has_static_relocs for R_MIPS_JALR.
984
 
985
2009-09-03  Maciej W. Rozycki  
986
 
987
        * elf64-mips.c (mips_elf64_howto_table_rela): Add support for
988
        R_MIPS_TLS_DTPMOD64 and R_MIPS_TLS_TPREL64, replacing the
989
        respective stubs.
990
 
991
2009-09-01  H.J. Lu  
992
 
993
        * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Declare
994
        plt earlier.
995
 
996
2009-09-01  Tristan Gingold  
997
 
998
        * makefile.vms: Ported to Itanium VMS.  Remove useless variable and
999
        dependencies.  Reindent.
1000
        * configure.com: Ported to Itanium VMS.  Now generates a build.com
1001
        to build without make.  Add messages but make edit silent.
1002
        * hosts/alphavms.h: Add a prototype for stpcpy.
1003
        * vms.c: Add a missing include for Alpha VMS.
1004
        * elfxx-ia64.c (ELF_OSABI): Define for OpenVMS.
1005
 
1006
2009-08-31  Jan Beulich  
1007
 
1008
        * elf-bfd.h (bfd_elf_get_default_section_type): Declare.
1009
        * elf.c (bfd_elf_get_default_section_type): New.
1010
        (elf_fake_sections): Use bfd_elf_get_default_section_type.
1011
 
1012
2009-08-30  H.J. Lu  
1013
 
1014
        * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert the
1015
        accidental checkin.
1016
        * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likwise.
1017
 
1018
2009-08-30  Alan Modra  
1019
 
1020
        PR ld/10569
1021
        * bfd.c (bfd_emul_get_maxpagesize): Don't abort.
1022
        (bfd_emul_get_commonpagesize): Likewise.
1023
 
1024
2009-08-29  Martin Thuresson  
1025
 
1026
        * elf32-arm.c (struct stub_def): Rename member template to
1027
        template_sequence. (arm_build_one_stub,
1028
        find_stub_size_and_template, arm_size_one_stub, arm_map_one_stub):
1029
        Rename variable template to template_sequence.
1030
        * elfxx-ia64.c (elfNN_ia64_relax_br, elfNN_ia64_relax_brl):
1031
        Rename variable template to template_val.
1032
        * aoutx.h (NAME (aout, make_empty_symbol)): Rename variable
1033
        new to new_symbol.
1034
        * coffgen.c (coff_make_empty_symbol)
1035
        (coff_bfd_make_debug_symbol): Rename variable new to new_symbol.
1036
        * cpu-ia64-opc.c (ext_reg, ins_imms_scaled): Rename variable
1037
        new to new_insn.
1038
        * ecoff.c (_bfd_ecoff_make_empty_symbol): Rename variable new
1039
        to new_symbol.
1040
        * elf32-m68k.c (elf_m68k_get_got_entry_type): Rename argument
1041
        new to new_reloc.
1042
        * hash.c (bfd_hash_lookup): Rename variable new to new_string.
1043
        * ieee.c (ieee_make_empty_symbol): Rename variable new to
1044
        new_symbol.
1045
        * linker.c (bfd_new_link_order): Rename variable new to
1046
        new_lo.
1047
        * mach-o.c (bfd_mach_o_sizeof_headers): Rename variable new to
1048
        symbol.
1049
        * oasys.c (oasys_make_empty_symbol): Rename variable new to
1050
        new_symbol_type.
1051
        * pdp11.c (NAME (aout, make_empty_symbol)): Rename variable
1052
        new to new_symbol_type.
1053
        * plugin.c (bfd_plugin_make_empty_symbol): Rename variable new
1054
        to new_symbol.
1055
        * rs6000-core.c (CoreHdr, VmInfo): Rename union member new to
1056
        new_dump.
1057
        (read_hdr, rs6000coff_core_p)
1058
        (rs6000coff_core_file_matches_executable_p)
1059
        (rs6000coff_core_file_failing_command)
1060
        (rs6000coff_core_file_failing_signal): Updated function to use new
1061
        union member name.
1062
        * som.c (som_make_empty_symbol): Rename variable new to
1063
        new_symbol_type.
1064
        * syms.c (_bfd_generic_make_empty_symbol): Rename variable new
1065
        to new_symbol.
1066
        * tekhex.c (first_phase, tekhex_make_empty_symbol): Rename
1067
        variable new to new_symbol.
1068
 
1069
2009-08-27  Ralf Wildenhues  
1070
 
1071
        * acinclude.m4 (AM_INSTALL_LIBBFD): Call AM_SUBST_NOTMAKE for
1072
        bfdlibdir and bfdincludedir.
1073
        * Makefile.am (bfdlibdir, bfdincludedir): Move definition ...
1074
        [INSTALL_LIBBFD]: ... here, ...
1075
        [INSTALL_LIBBFD]: ... and empty overrides here.
1076
        [!INSTALL_LIBBFD]: (rpath_bfdlibdir): New variable.
1077
        [!INSTALL_LIBBFD] (libbfd_la_LDFLAGS): Use it.
1078
        * Makefile.in: Regenerate.
1079
        * configure: Regenerate.
1080
 
1081
2009-08-26  Maxim Kuvyrkov  
1082
 
1083
        * elf32-m68k.c: Rewrite initialization of GOT entries for TLS
1084
        relocations.  Rewrite output of dynamic TLS relocations.
1085
        (DTP_OFFSET, TP_OFFSET): New constants.
1086
        (dtpoff_base): Update.
1087
        (tpoff): Rename to tpoff_base, update.
1088
        (elf_m68k_init_got_entry_static, elf_m68k_init_got_entry_local_shared):
1089
        New functions.  Move code from elf_m68k_relocate_section here.
1090
        (elf_m68k_relocate_section): Update.
1091
        (elf_m68k_finish_dynamic_symbol): Fix handling of local TLS symbols.
1092
 
1093
2009-08-26  Maxim Kuvyrkov  
1094
 
1095
        * elf32-m68k.c (elf_m68k_copy_indirect_symbol): Propagate
1096
        non_got_ref value.
1097
        (elf_m68k_check_relocs): Handle dynamic TLS relocations.
1098
        Handle non_got_ref field.
1099
        (elf_m68k_adjust_dynamic_symbol): Handle non_got_ref field.
1100
 
1101
2009-08-26  Alan Modra  
1102
 
1103
        PR ld/10518
1104
        * linker.c (bfd_find_version_for_sym): Revert warning.
1105
 
1106
2009-08-26  Alan Modra  
1107
 
1108
        PR ld/10518
1109
        * linker.c (bfd_find_version_for_sym): Override a "*" match by any
1110
        other wildcard match.  Warn on multiple wildcard matches.
1111
 
1112
2009-08-22  Ralf Wildenhues  
1113
 
1114
        * Makefile.am (libbfd_la_LDFLAGS): Initialize early, to allow
1115
        appending.
1116
        [INSTALL_LIBBFD] (bfdlib_LTLIBRARIES, bfdinclude_HEADERS): Set
1117
        only in this condition.
1118
        [!INSTALL_LIBBFD] (noinst_LTLIBRARIES, libbfd_la_LDFLAGS): New,
1119
        to build but not install libbfd.la in this condition.
1120
        (install-bfdlibLTLIBRARIES, uninstall-bfdlibLTLIBRARIES)
1121
        (install_libbfd, install_libbfd): Remove.
1122
        * Makefile.in: Regenerate.
1123
        * doc/Makefile.am (AM_CPPFLAGS): Renamed from ...
1124
        (INCLUDES): ... this.
1125
        ($(MKDOC)): Adjust.
1126
        * doc/Makefile.in: Regenerate.
1127
 
1128
        * Makefile.am (AUTOMAKE_OPTIONS): Remove cygnus, instead use
1129
        no-dist and foreign.
1130
        (EXTRA_libbfd_la_SOURCES): New, list $(CFILES) to allow
1131
        dependency tracking to work for them.
1132
        (targets.lo, archures.lo, dwarf.lo): Rewrite to
1133
        use automake dependency tracking mechanism.
1134
        (MKDEP, DEP, DEP1, dep.sed, dep, dep-in, dep-am): Remove.
1135
        (mkdep section): Remove.
1136
        (BUILT_SOURCES): New, list $(BUILD_HFILES).
1137
        * Makefile.in: Regenerate.
1138
        * po/SRC-POTFILES.in, po/bfd.pot: Regenerate.
1139
 
1140
        * Makefile.am (datarootdir, docdir, htmldor, pdfdir)
1141
        (install-pdf, install-pdf-recursive, install-html)
1142
        (install-html-recursive): Remove.
1143
        * Makefile.in: Regenerate.
1144
 
1145
        * Makefile.in: Regenerate.
1146
        * aclocal.m4: Likewise.
1147
        * config.in: Likewise.
1148
        * configure: Likewise.
1149
 
1150
2009-08-21  Daniel Gutson  
1151
 
1152
        * elf32-arm.c (arch_has_thumb2_nop): New function.
1153
        (arch_has_arm_nop): New function.
1154
        (elf32_arm_final_link_relocate): NOP opcodes changed.
1155
 
1156
2009-08-16  Doug Evans  
1157
 
1158
        * opncls.c (bfd_close): Until BFD_IN_MEMORY has an iovec,
1159
        at least don't leak memory.
1160
 
1161
2009-08-13  DJ Delorie  
1162
 
1163
        * elf32-m32c.c (m32c_elf_relax_delete_bytes): Adjust symbol sizes
1164
        if needed.
1165
 
1166
2009-08-12  Nick Clifton  
1167
 
1168
        * po/fi.po: Updated Finnish translation.
1169
 
1170
2009-08-11  Bernd Schmidt  
1171
 
1172
        Merge some FRV FDPIC changes into the Blackfin code.
1173
        * elf32-bfin.c (struct bfinfdpic_elf_link_hash_table): Add pointer to
1174
        summary reloc information.
1175
        (bfinfdpic_dynamic_got_plt_info): New.
1176
        (_bfin_create_got_section): Create the PLT section here.
1177
        (elf32_bfinfdpic_create_dynamic_sections): Not here.
1178
        (_bfinfdpic_count_nontls_entries): Move out of...
1179
        (_bfinfdpic_count_got_plt_entries): ... here.
1180
        (_bfinfdpic_count_relocs_fixups): Likewise.
1181
        (_bfinfdpic_reset_got_plt_entries): New.
1182
        (_bfinfdpic_size_got_plt): Move out of...
1183
        (elf32_bfinfdpic_size_dynamic_sections): ... here.
1184
        (bfinfdpic_relocate_section): Be careful not to call
1185
        _bfinfdpic_add_rofixup or _bfinfdpic_add_dyn_reloc for deleted relocs.
1186
        (bfinfdpic_check_discarded_relocs, bfinfdpic_elf_discard_info):
1187
        New functions.
1188
        (elf_backend_discard_info): Define for FD-PIC.
1189
 
1190
2009-08-11  Alan Modra  
1191
 
1192
        * elflink.c: Add FIXMEs for some places that require octets_per_byte
1193
        adjustments.
1194
        * elf-eh-frame.c: Likewise.
1195
        * merge.c: Likewise.
1196
 
1197
2009-08-11  Alan Modra  
1198
 
1199
        * configure.in:  Remove elf-ifunc.lo from common ELF files.  Add
1200
        to x86 and x86_64 configurations.
1201
        * configure: Regenerate.
1202
 
1203
2009-08-10  Jan Kratochvil  
1204
 
1205
        Stop using bfd_usrdata in libbfd.
1206
        * coff-stgo32.c (bfd_coff_go32stub): Remove.
1207
        (stub_bytes, comment): Replace STUBSIZE by GO32_STUBSIZE.
1208
        (adjust_filehdr_in_post): Declare the abfd parameter as unused.
1209
        Replace STUBSIZE by GO32_STUBSIZE.  Save now the stub in
1210
        filehdr_dst->u.go32.stub.  New comment with the reason.
1211
        (adjust_filehdr_out_pre): Replace STUBSIZE by GO32_STUBSIZE.
1212
        Substitute the removed macro bfd_coff_go32stub.
1213
        (adjust_filehdr_out_post, adjust_scnhdr_in_post, adjust_scnhdr_out_pre)
1214
        (adjust_scnhdr_out_post, adjust_aux_in_post, adjust_aux_out_pre)
1215
        (adjust_aux_out_post): Replace STUBSIZE by GO32_STUBSIZE.
1216
        (create_go32_stub, go32_stubbed_coff_bfd_copy_private_bfd_data):
1217
        Replace STUBSIZE by GO32_STUBSIZE.  Substitute the removed macro
1218
        bfd_coff_go32stub.
1219
        * coffcode.h (coff_mkobject_hook): Initialize coff->go32stub.
1220
        * libcoff-in.h (coff_data_type): New field go32stub.
1221
        * libcoff.h: Regenerated.
1222
 
1223
2009-08-10  Jan Kratochvil  
1224
 
1225
        Fix go32 stub preservation by objcopy.
1226
        * coff-stgo32.c (adjust_filehdr_in_post): Use bfd_malloc.
1227
        (go32_stubbed_coff_bfd_copy_private_bfd_data): Optionally allocate OBFD
1228
        go32stub.
1229
 
1230
2009-08-10  Nathan Sidwell  
1231
 
1232
        * elf32-arm.c (elf32_arm_size_stubs): Don't die on undefined local
1233
        symbols.
1234
        (elf32_arm_final_link_relocate): Treat local undefined symbols the
1235
        same as global undefined symbols.
1236
        (elf32_arm_relocate_section): Give an error for local undefined
1237
        non-weak symbols, unless the reloc will not use the symbol.
1238
 
1239
2009-08-10  Nathan Sidwell  
1240
 
1241
        * elf32-ppc.c (shared_stub_entry, stub_entry): Use r12, not r11.
1242
        (ppc_elf_relax_section): Use symbol index to distinguish
1243
        relocatable stubs.
1244
 
1245
2009-08-10  Alan Modra  
1246
 
1247
        * elf32-ppc.c (ppc_elf_relax_section): Ignore non-code sections.
1248
 
1249
2009-08-10  Alan Modra  
1250
 
1251
        * elflink.c (_bfd_elf_adjust_dynamic_symbol): Don't clear plt
1252
        info for STT_GNU_IFUNC.
1253
        * elf32-ppc.c (ppc_elf_check_relocs): Count a needed plt entry
1254
        on got refs in case the symbol turns out to be ifunc.
1255
        (ppc_elf_gc_sweep_hook): Similarly.
1256
        (ppc_elf_adjust_dynamic_symbol): Adjust assertion.
1257
        (allocate_dynrelocs): Don't specially allocate got relocs for ifunc.
1258
        (ppc_elf_size_dynamic_sections): Likewise.
1259
        (ppc_elf_relocate_section): Likewise.
1260
 
1261
2009-08-09  Bernd Schmidt  
1262
 
1263
        From Mike Frysinger 
1264
        * elf32-bfin.c (bfin_howto_table, bfin_reloc_map, bfin_check_relocs,
1265
        bfin_final_link_relocate, bfin_relocate_section, bfin_gc_sweep_hook,
1266
        _bfinfdpic_emit_got_relocs_plt_entries, bfinfdpic_relocate_section,
1267
        bfinfdpic_gc_sweep_hook, bfinfdpic_check_relocs,
1268
        bfin_finish_dynamic_symbol, bfd_bfin_elf32_create_embedded_relocs):
1269
        Adjust to match the renamed reloc definitions.
1270
 
1271
2009-08-08  Alan Modra  
1272
 
1273
        PR 10494
1274
        * elf.c (_bfd_elf_make_section_from_shdr): When setting up section
1275
        LMAs, use ELF_IS_SECTION_IN_SEGMENT to match sections with headers.
1276
 
1277
2009-08-07  Tom Tromey  
1278
 
1279
        * elf32-microblaze.c (microblaze_elf_check_relocs): Avoid strict
1280
        aliasing error.
1281
 
1282
2009-08-06  Michael Eager 
1283
 
1284
        * Makefile.am: Add cpu-microblaze.{lo,c}, elf32-microblaze.{lo,c}.
1285
        * Makefile.in: Regenerate.
1286
        * archures.c: Add bfd_arch_microblaze.
1287
        * bfd-in2.h: Regenerate.
1288
        * config.bfd: Add microblaze target.
1289
        * configure.in: Add bfd_elf32_microblaze_vec target.
1290
        * configure: Regenerate.
1291
        * cpu-microblaze.c: New.
1292
        * elf32-microblaze.c: New.
1293
        * libbfd-in.h: Add prototype _bfd_dwarf2_fixup_section_debug_loc().
1294
        * libbfd.h: Regenerate.
1295
        * reloc.c: Add MICROBLAZE relocations.
1296
        * section.c: Add struct relax_table and relax_count to section.
1297
        * targets.c: Add bfd_elf32_microblaze_vec.
1298
 
1299
2009-08-06  Jakub Jelinek  
1300
            Alan Modra  
1301
 
1302
        PR binutils/10492
1303
        * elf.c (sym_is_global): Return true even for BSF_GNU_UNIQUE
1304
        symbols.
1305
        * elf32-mips.c (mips_elf_sym_is_global): Likewise.
1306
        * elfn32-mips.c (mips_elf_sym_is_global): Likewise.
1307
 
1308
2009-08-06  Nathan Sidwell  
1309
 
1310
        * elf32-arm.c (elf32_arm_size_stubs): Call layout_sections_again
1311
        at least once when fixing cortex-a8.
1312
 
1313
2009-08-05  Chao-ying Fu  
1314
 
1315
        * elf32-mips.c (mips_reloc_map): Add BFD_RELOC_MIPS_JALR.
1316
        * elfxx-mips.c (JAL_TO_BAL_P): New define to transform JAL to BAL
1317
        for CPUs.  It is true for RM9000.
1318
        (JALR_TO_BAL_P): New define to transform JALR to BAL.  It is true
1319
        for all CPUs.
1320
        (mips_elf_perform_relocation): Use JAL_TO_BAL_P and JALR_TO_BAL_P
1321
        to guard the transformation.
1322
 
1323
2009-08-05  Trevor Smigiel  
1324
 
1325
        * elf32-spu.h (spu_elf_params): Add member emit_fixups.
1326
        (spu_elf_size_sections): Declare prototype.
1327
        * elf32-spu.c (spu_link_hash_table): Add member sfixup.
1328
        (FIXUP_RECORD_SIZE, FIXUP_GET, FIXUP_PUT): New macros.
1329
        (spu_elf_emit_fixup): New function.
1330
        (spu_elf_relocate_section): Emit fixup for each SPU_ADDR32.
1331
        (spu_elf_size_sections): New function.
1332
 
1333
2009-08-05  Nathan Sidwell  
1334
 
1335
        * elf32-arm.c (elf32_arm_stub_type): Add arm_stub_a8_veneer_lwm.
1336
        (arm_build_one_stub): Build a8 veneers as a separate pass.
1337
        (cortex_a8_erratum_scan): Add prev_num_a8_fixes and stub_changed_p
1338
        parameters.  Use them to check if we create a different a8 fixup
1339
        than the previous pass.
1340
        (elf32_arm_size_stubs): Move scope of stub_changed and
1341
        prev_num_a8_fixes into main loop.
1342
        (elf32_arm_build_stubs): Build a8 veneers in a second pass.
1343
 
1344
2009-08-04  Alan Modra  
1345
 
1346
        * elf32-ppc.c (ppc_elf_relax_section): Correct conditions under
1347
        which find_plt_ent is called.  Delete redundant code.
1348
 
1349
2009-08-03  H.J. Lu  
1350
 
1351
        PR binutils/10363
1352
        * elf.c (bfd_elf_string_from_elf_section): Return NULL on
1353
        invalid string offset.
1354
 
1355
2009-08-03  H.J. Lu  
1356
 
1357
        PR ld/10433
1358
        * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Set got
1359
        to htab->init_got_offset and plt to htab->init_plt_offset
1360
        when discarding space for dynamic relocations.
1361
 
1362
2009-08-03  Alan Modra  
1363
 
1364
        * elf32-ppc.c (struct plt_entry): Revise comments.
1365
        (ppc_elf_check_relocs): Don't create needless plt_entry info
1366
        for non-pie executables.  Don't test info->pie when info->shared
1367
        already covers that case.
1368
        (ppc_elf_gc_sweep_hook): Adjust for above change.
1369
        (add_stub_sym): Don't test info->pie when info->shared tested.
1370
        (allocate_dynrelocs, ppc_elf_size_dynamic_sections): Likewise.
1371
        (write_glink_stub, ppc_elf_finish_dynamic_symbol): Likewise.
1372
        (ppc_elf_relax_section): Adjust find_plt_ent arguments.
1373
        (ppc_elf_relocate_section): Likewise.
1374
 
1375
2009-08-03  Alan Modra  
1376
 
1377
        * elf32-ppc.c (ppc_elf_check_relocs): Always add a plt ref count
1378
        for local ifunc symbols in non-pie executables, regardless of
1379
        reloc type.  Don't specially create ifunc dyn relocs.  Tidy ifunc
1380
        code so that it's obvious that we only do anything special for
1381
        local ifunc syms.
1382
        (ppc_elf_gc_sweep_hook): Adjust to suit check_relocs changes.
1383
        (allocate_dynrelocs): Correct comment for syms defined in plt.
1384
        Don't specially allocate ifunc dyn relocs.
1385
        (ppc_elf_relax_section): Relax branches to ifunc plt entries too.
1386
        (ppc_elf_relocate_section): Set "relocation" value for ifunc
1387
        syms in non-pie executables.  No specially allocated dyn relocs
1388
        for ifunc to write.  Allow for local sym on R_PPC_RELAX32_PLT.
1389
        (ppc_elf_finish_dynamic_symbol): Set value of ifunc symbols in
1390
        a non-pie executable.
1391
 
1392
2009-08-02  H.J. Lu  
1393
            Jakub Jelinek  
1394
 
1395
        PR ld/6443
1396
        * elf32-i386.c (elf_i386_tls_transition): Check executable
1397
        instead of shared for TLS when building PIE.
1398
        (elf_i386_check_relocs): Likewise.
1399
        (elf_i386_allocate_dynrelocs): Likewise.
1400
        (elf_i386_relocate_section): Likewise.
1401
 
1402
        * elf64-x86-64.c (elf64_x86_64_tls_transition): Check executable
1403
        instead of shared for TLS when building PIE.
1404
        (elf64_x86_64_check_relocs): Likewise.
1405
        (elf64_x86_64_allocate_dynrelocs): Likewise.
1406
        (elf64_x86_64_relocate_section): Likewise.
1407
 
1408
2009-07-31  Anthony Green  
1409
 
1410
        * config.bfd (targ_cpu): Add moxie-uclinux support.
1411
 
1412
2009-07-31  Hans-Peter Nilsson  
1413
 
1414
        * linker.c (fix_syms): Consider SEC_LOAD when choosing section.
1415
 
1416
2009-07-30  Alan Modra  
1417
 
1418
        * elf32-ppc.c (ppc_elf_check_relocs): Always set up sections
1419
        used by indirect function support.  Count dynamic relocs for
1420
        ifunc syms.
1421
        (ppc_elf_adjust_dynamic_symbol): Tweak for ifunc.
1422
        (allocate_dynrelocs): Allocate all non-dynamic ifunc plt entries
1423
        in iplt and their relocs in reliplt.  Don't make ifunc syms
1424
        dynamic.  Allocate got entry relocs for non-dynamic ifunc in
1425
        reliplt.  Handle other dynamic relocs for ifunc.
1426
        (ppc_elf_size_dynamic_sections): Alloc dyn relocs for static
1427
        ifunc in reliplt, likewise relocs for got against local ifunc.
1428
        Typo fix on reliplt size adjust.
1429
        (ppc_elf_relocate_section): Don't use plt scheme of allocating
1430
        relocs 1-1 with entries for iplt, instead just add using
1431
        reloc_count.  Write got relocs and dyn relocs for ifunc to reliplt.
1432
        Error on invalid ifunc dyn relocs.
1433
        (ppc_elf_finish_dynamic_symbol): Adjust for non-dynamic ifunc plt
1434
        in iplt/reliplt.
1435
        * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_JMP_IREL,
1436
        R_PPC64_REL16, R_PPC64_REL16_LO, R_PPC64_REL16_HI, R_PPC64_REL16_HA.
1437
        (ppc64_elf_reloc_type_lookup): Handle new relocs.
1438
        (ppc64_elf_check_relocs): Likewise.  Count dyn relocs for ifunc.
1439
        (allocate_dynrelocs): As for elf32-ppc.c above.
1440
        (ppc64_elf_size_dynamic_sections): Likewise.
1441
        (ppc_build_one_stub): Put non-dynamic ifunc plt call stubs in iplt,
1442
        and their relocs in reliplt.  Use R_PPC64_JMP_IREL.
1443
        (ppc_size_one_stub): Similarly.
1444
        (ppc64_elf_relocate_section): As for elf32-ppc.c above.  Handle new
1445
        relocs too.
1446
        (ppc64_elf_finish_dynamic_symbol): As for elf32-ppc.c above.
1447
 
1448
2009-07-29  Hans-Peter Nilsson  
1449
 
1450
        * elf64-mmix.c (mmix_elf_relax_section): Revert 2009-05-27
1451
        change.  Add note to head comment.
1452
 
1453
2009-07-28  Jan Beulich  
1454
 
1455
        * archive.c (get_extended_arelt_filename): Remove redundant
1456
        range check on index.
1457
 
1458
2009-07-27  Doug Kwan  
1459
 
1460
        * elf32-arm.c (stub_hash_newfunc): Initialize field output_name.
1461
 
1462
2009-07-27  H.J. Lu  
1463
 
1464
        * archures.c bfd_*_arch): Sorted.
1465
        (bfd_archures_list): Likewise.
1466
 
1467
2009-07-27  M R Swami Reddy 
1468
 
1469
        * elf32-cr16.c (elf_cr16_final_link_relocate): Add code to handle
1470
        to R_cr16_NUM32 relocation.
1471
 
1472
2009-07-26  Michael Eager  
1473
 
1474
        * archures.c: Add bfd_mach_ppc_405
1475
        * bfd-in2.h: Same.
1476
 
1477
2009-07-25  H.J. Lu  
1478
 
1479
        * cpu-i386.c (bfd_x86_64_arch): Fix comment typos.
1480
        * cpu-l1om.c (bfd_l1om_arch): Likewise.
1481
 
1482
2009-07-25  H.J. Lu  
1483
 
1484
        * archures.c (bfd_architecture): Add bfd_arch_l1om.
1485
        (bfd_l1om_arch): New.
1486
        (bfd_archures_list): Add &bfd_l1om_arch.
1487
        * bfd-in2.h: Regenerated.
1488
 
1489
        * config.bfd (targ64_selvecs): Add bfd_elf64_l1om_vec if
1490
        bfd_elf64_x86_64_vec is supported.  Add bfd_elf64_l1om_freebsd_vec
1491
        if bfd_elf64_x86_64_freebsd_vec is supported.
1492
        (targ_selvecs): Likewise.
1493
 
1494
        * configure.in: Support bfd_elf64_l1om_vec and
1495
        bfd_elf64_l1om_freebsd_vec.
1496
        * configure: Regenerated.
1497
 
1498
        * cpu-l1om.c: New.
1499
 
1500
        * elf64-x86-64.c (elf64_l1om_elf_object_p): New.
1501
        (bfd_elf64_l1om_vec): Likewise.
1502
        (bfd_elf64_l1om_freebsd_vec): Likewise.
1503
 
1504
        * Makefile.am (ALL_MACHINES): Add cpu-l1om.lo.
1505
        (ALL_MACHINES_CFILES): Add cpu-l1om.c.
1506
        * Makefile.in: Regenerated.
1507
 
1508
        * targets.c (bfd_elf64_l1om_vec): New.
1509
        (bfd_elf64_l1om_freebsd_vec): Likewise.
1510
        (_bfd_target_vector): Add bfd_elf64_l1om_vec and
1511
        bfd_elf64_l1om_freebsd_vec.
1512
 
1513
2009-07-24  Trevor Smigiel  
1514
            Alan Modra  
1515
 
1516
        * reloc.c (BFD_RELOC_SPU_ADD_PIC): Define.
1517
        * bfd-in2.h: Regenerate.
1518
        * libbfd.h: Regenerate.
1519
        * elf32-spu.c (elf_howto_table): Add entries SPU_ADD_PIC.
1520
        (spu_elf_bfd_to_reloc_type): Handle SPU_ADD_PIC.
1521
        (spu_elf_relocate_section): Patch instructions marked by SPU_ADD_PIC.
1522
 
1523
2009-07-23  H.J. Lu  
1524
 
1525
        PR ld/10434
1526
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Check executable
1527
        instead of shared for R_X86_64_TPOFF32.
1528
        (elf64_x86_64_relocate_section): Likewise.
1529
 
1530
2009-07-23  Ulrich Drepper  
1531
 
1532
        * elf-bfd.h (struct elf_link_hash_entry): Add unique_global field.
1533
        * elf.c (swap_out_syms): Set binding to STB_GNU_UNIQUE for symbols
1534
        with the BSF_GNU_UNIQUE flag bit set.
1535
        * elfcode.h (elf_slurp_symbol_table): Set the BSF_GNU_UNIQUE flag
1536
        for symbols with STB_GNU_UNIQUE binding.
1537
        * elflink.c (_bfd_elf_merge_symbol): Set unique_global for symbols
1538
        with the STB_GNU_UNIQUE binding.
1539
        (elf_link_add_object_symbols): Set the BSF_GNU_UNIQUE flag for
1540
        symbols with STB_GNU_UNIQUE binding.  Set STB_GNU_UNIQUE for
1541
        symbols with the unique_global field set.
1542
        (elf_link_output_extsym): Set unique_global field for symbols with
1543
        the STB_GNU_UNIQUE binding.
1544
        * syms.c (struct bfd_symbol): Define BSF_GNU_UNIQUE flag bit.
1545
        (bfd_print_symbol_vandf): Print a 'u' character for BSF_GNU_UNIQUE
1546
        symbols.
1547
        (bfd_decode_symclass): Return a 'u' character for BSF_GNU_UNIQUE
1548
        symbols.
1549
        * bfd-in2.h: Regenerate.
1550
 
1551
2009-07-22  H.J. Lu  
1552
 
1553
        * elflink.c (elf_link_output_extsym): Revert the last change.
1554
 
1555
2009-07-22  H.J. Lu  
1556
 
1557
        PR ld/10433
1558
        * elflink.c (elf_link_output_extsym): Special case ifunc syms
1559
        when ref_regular, not def_regular.
1560
 
1561
2009-07-21  H.J. Lu  
1562
 
1563
        PR ld/10426
1564
        * elflink.c (elf_link_add_object_symbols): Turn an IFUNC symbol
1565
        from a DSO into a normal FUNC symbol.
1566
        (elf_link_output_extsym): Turn an undefined IFUNC symbol into
1567
        a normal FUNC symbol.
1568
 
1569
2009-07-17  Chao-ying Fu  
1570
 
1571
        * elfxx-mips.c (LOAD_INTERLOCKS_P): New define.
1572
        (_bfd_mips_elf_size_dynamic_sections): For CPUs without load
1573
        interlocking, the last PLT entry needs a nop in the branch delay slot.
1574
        (_bfd_mips_elf_finish_dynamic_symbol): For CPUs with load itnerlocking,
1575
        output the last two PLT entries in reverse order.
1576
 
1577
2009-07-16  H.J. Lu  
1578
 
1579
        * elf32-i386.c (elf_i386_relocate_section): Don't get local
1580
        STT_GNU_IFUNC symbol for relocatable link.
1581
        * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
1582
 
1583
2009-07-10  H.J. Lu  
1584
 
1585
        * bfdio.c (bfd_iovec): Add comments for bmmap.
1586
        * bfd-in2.h: Regenerated.
1587
 
1588
2009-07-10  H.J. Lu  
1589
 
1590
        * Makefile.am: Run "make dep-am".
1591
        * Makefile.in: Regenerated.
1592
 
1593
2009-07-10  Doug Kwan  
1594
 
1595
        * elf32-arm.c (stub_hash_newfunc): Initialize fields
1596
        target_addend and orig_insn.
1597
 
1598
2009-07-10  Tom Tromey  
1599
 
1600
        * Makefile.am (dwarf2.lo): Use dwarf2.h, not elf/dwarf2.h.
1601
        (elf-eh-frame.lo): Likewise.
1602
        (elf32-bfin.lo): Likewise.
1603
        (elf32-frv.lo): Likewise.
1604
        (elf32-xc16x.lo): Likewise.
1605
        * Makefile.in: Rebuild.
1606
        * dwarf2.c: Included dwarf.h, not elf/dwarf2.h.
1607
        * elf-eh-frame.c: Likewise.
1608
        * elf32-bfin.c: Likewise.
1609
        * elf32-frv.c: Likewise.
1610
        * elf32-xc16x.c: Likewise.
1611
 
1612
2009-07-10  Julian Brown  
1613
 
1614
        * elf32-arm.c (arm_build_one_stub): Use the hash entry of the
1615
        symbol a stub entry is derived from, not the entry for the stub
1616
        itself, in call to elf32_arm_final_link_relocate.
1617
 
1618
2009-07-10  H.J. Lu  
1619
 
1620
        * elf.c (_bfd_elf_get_synthetic_symtab): Remove leading zeros
1621
        when reporting  addends.
1622
 
1623
2009-07-10  Alan Modra  
1624
 
1625
        * elf32-spu.c (spu_elf_size_stubs): Do set up soft-icache manager
1626
        data even when no stubs.
1627
        (spu_elf_place_overlay_data, spu_elf_build_stubs): Adjust.
1628
 
1629
2009-07-10  Alan Modra  
1630
 
1631
        * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_IRELATIVE.
1632
        (ppc_elf_get_synthetic_symtab): Report addend.
1633
        (PLT_IFUNC): Define.
1634
        (struct ppc_elf_link_hash_table): Add iplt and reliplt.
1635
        (ppc_elf_create_glink): New function.
1636
        (ppc_elf_create_dynamic_sections): Use it.
1637
        (ppc_elf_add_symbol_hook): Set has_ifunc_symbols.
1638
        (update_local_sym_info): Allocate space for local_plt array.
1639
        Don't bump local_got_refcounts for PLT_IFUNC.  Return local_plt
1640
        entry pointer.
1641
        (is_branch_reloc): New function.
1642
        (ppc_elf_check_relocs): Handle STT_GNU_IFUNC symbols.
1643
        (ppc_elf_gc_sweep_hook): Likewise.
1644
        (ppc_elf_adjust_dynamic_symbol): Likewise.
1645
        (allocate_dynrelocs): Likewise.
1646
        (ppc_elf_size_dynamic_sections): Likewise.
1647
        (ppc_elf_relocate_section): Likewise.
1648
        (branch_reloc_hash_match): Use is_branch_reloc.
1649
        (ppc_elf_tls_optimize): Adjust for local_plt.
1650
        (write_glink_stub): New function, extracted from..
1651
        (ppc_elf_finish_dynamic_symbol): ..here.  Handle STT_GNU_IFUNC.
1652
        (ppc_elf_finish_dynamic_sections): Only write plt resolver and
1653
        branch table when dynamic.
1654
        (elf_backend_post_process_headers): Define.
1655
        * elf64-ppc.c (elf_backend_post_process_headers): Define.
1656
        (ppc64_elf_howto_raw): Add R_PPC64_IRELATIVE.
1657
        (ppc64_elf_get_synthetic_symtab): Report addend.
1658
        (struct ppc_stub_hash_entry): Add plt_ent.
1659
        (PLT_IFUNC): Define.
1660
        (struct ppc_link_hash_table): Add iplt and reliplt.
1661
        (create_linkage_sections): Make .iplt and .rela.iplt sections.
1662
        (ppc64_elf_add_symbol_hook): Set has_ifunc_symbols.
1663
        (update_local_sym_info): Allocate space for local_plt array.
1664
        Don't bump local_got_ents for PLT_IFUNC.  Return local_plt
1665
        entry pointer.
1666
        (update_plt_info): Pass pointer to plt_entry rather than sym hash,
1667
        and don't change hash flags here.
1668
        (is_branch_reloc): New function.
1669
        (ppc64_elf_check_relocs): Handle STT_GNU_IFUNC.
1670
        (ppc64_elf_gc_sweep_hook): Likewise.
1671
        (ppc64_elf_adjust_dynamic_symbol): Likewise.
1672
        (allocate_dynrelocs): Likewise.
1673
        (ppc64_elf_size_dynamic_sections): Likewise.
1674
        (ppc_build_one_stub, ppc_size_one_stub): Likewise.
1675
        (ppc64_elf_size_stubs): Likewise.
1676
        (ppc64_elf_relocate_section): Likewise.
1677
        (get_sym_h): Adjust for local_plt.
1678
        (branch_reloc_hash_match): Use is_branch_reloc.
1679
        (ppc_type_of_stub): Pass plt_entry pointer and handle ifunc.
1680
        (ppc64_elf_toc): Ignore SEC_EXCLUDE sections.
1681
 
1682
2009-07-10  Alan Modra  
1683
 
1684
        * elf.c (_bfd_elf_get_synthetic_symtab): Report addends.
1685
 
1686
2009-07-10  Alan Modra  
1687
 
1688
        * elf-bfd.h (struct elf_link_hash_entry): Clarify ref_regular
1689
        and ref_regular_nonweak comment.
1690
        * elflink.c (elf_link_output_extsym): Special case ifunc syms
1691
        when def_regular, not ref_regular.
1692
        (elf_link_add_object_symbols): Don't set needs_plt on ifunc syms,..
1693
        * elf32-i386.c (elf_i386_check_relocs): ..set it here instead..
1694
        * elf64-x86-64.c (elf64_x86_64_check_relocs): ..and here.
1695
 
1696
2009-07-09  Alan Modra  
1697
 
1698
        * elf32-spu.c (mark_functions_via_relocs): Init broken_cycle field
1699
        of malloc'd struct call_info.
1700
        (pasted_function): Likewise, priority too.
1701
 
1702
2009-07-07  Alan Modra  
1703
 
1704
        * elf32-spu.c (spu_elf_auto_overlay): Take into account section
1705
        alignment when packing sections into overlays.
1706
 
1707
2009-07-03  Cary Coutant  
1708
 
1709
        * dwarf2.c (decode_line_info): Ignore DW_LNE_set_discriminator.
1710
 
1711
2009-07-03  Dave Korn  
1712
 
1713
        * coffcode.h (sec_to_styp_flags):  Partially revert (functional
1714
        changes only) earlier patch:-
1715
 
1716
2009-06-25  Kai Tietz  
1717
 
1718
        * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
1719
        give .debug and .reloc data characteristics.
1720
        (DOT_RELOC): New define for .reloc section string.
1721
        (coff_write_object_contents): Use DOT_RELOC instead of string.
1722
 
1723
2009-07-02  Tom Tromey  
1724
 
1725
        * aoutx.h (aout_get_external_symbols): Declare 'amt' locally.
1726
        * bfdwin.c (bfd_free_window): Cast to unsigned long.
1727
 
1728
2009-07-01  Nick Clifton  
1729
 
1730
        * elf-m10300.c: Remove trailing white space.
1731
        * reloc.c: Likewise.
1732
 
1733
2009-07-01  Douglas B Rupp  
1734
 
1735
        * bfd.m4 (BFD_HAVE_TIME_TYPE_MEMBER,
1736
        BFD_HAVE_SYS_STAT_TYPE_MEMBER): New config functions.
1737
        * configure.in: Use them.
1738
        * configure: Regenerate.
1739
        * config.in: Regenerate.
1740
        * vmsutil.c: Include sysdep.h, remove ansidecl.h.
1741
        #define _BSD_SOURCE. Add comments.
1742
        (vms_file_stats_name): Calculate creation date based on available
1743
        runtime data. Return 1 for version instead of 0.
1744
 
1745
2009-07-01  Nick Clifton  
1746
 
1747
        PR 10072
1748
        * elf32-arm.c (elf32_arm_final_link_relocate): Add code to handle
1749
        to R_ARM_THM_PC8 relocation.
1750
 
1751
2009-06-29  Nick Clifton  
1752
 
1753
        * elf-m10300.c (mn10300_elf_relax_section): Allow for the
1754
        different uses of the relocations addend when a symbol is in a
1755
        merged section.
1756
 
1757
2009-06-27  H.J. Lu  
1758
 
1759
        PR ld/10337
1760
        * elf.c (bfd_section_from_shdr): Don't change sh_link for
1761
        SHT_REL/SHT_RELA sections on executable nor shared library.
1762
        Treat SHT_REL/SHT_RELA sections with sh_link set to SHN_UNDEF
1763
        as a normal section.
1764
 
1765
2009-06-25  Nick Clifton  
1766
 
1767
        * elf-m10300.c (mn10300_elf_relax_section): Handle non-section
1768
        symbols with SEC_MERGE flag.
1769
 
1770
2009-06-25  Kai Tietz  
1771
 
1772
        * coffcode.h (sec_to_styp_flags): Set discardable for .reloc and
1773
        give .debug and .reloc data characteristics.
1774
        (DOT_RELOC): New define for .reloc section string.
1775
        (coff_write_object_contents): Use DOT_RELOC instead of string.
1776
 
1777
2009-06-25  Tristan Gingold  
1778
 
1779
        * mach-o-target.c (bfd_mach_o_get_dynamic_symtab_upper_bound)
1780
        (bfd_mach_o_canonicalize_dynamic_symtab)
1781
        (bfd_mach_o_get_synthetic_symtab): Defines.
1782
        (TARGET_NAME_BACKEND): Add bfd_mach_o_print_thread entry.
1783
        (TARGET_NAME): Use Mach-O specific functions for dynamic.
1784
 
1785
        * mach-o-i386.c (bfd_mach_o_i386_swap_reloc_in): Fix howto indexes
1786
        for scattered relocations.
1787
        (bfd_mach_o_i386_print_thread): New function.
1788
        (bfd_mach_o_print_thread): Define.
1789
 
1790
        * mach-o.c (text_section_names_xlat): Add an entry for __const.
1791
        (bfd_mach_o_canonicalize_one_reloc, bfd_mach_o_canonicalize_relocs):
1792
        New functions extracted from ...
1793
        (bfd_mach_o_canonicalize_reloc): ... This.  Simplified.
1794
        (bfd_mach_o_get_dynamic_reloc_upper_bound): New function.
1795
        (bfd_mach_o_canonicalize_dynamic_reloc): New function.
1796
        (bfd_mach_o_i386_flavour_string): Adjusted after enum renaming.
1797
        (bfd_mach_o_ppc_flavour_string): Reindentation.  Add 64 bits cases.
1798
        (bfd_mach_o_scan_read_dylinker): Do not create a section anymore.
1799
        Set name_str field.
1800
        (bfd_mach_o_scan_read_dylib): Ditto.
1801
        (bfd_mach_o_scan_read_thread): Set mdata at declaration.  Add comments,
1802
        reindent.
1803
        (bfd_mach_o_scan_read_dysymtab): Set mdata at declaration.  Correctly
1804
        decode isym and flags on little endian targets.  Set dysymtab field.
1805
        (bfd_mach_o_scan_start_address): Adjust for enum names.
1806
        (bfd_mach_o_lookup_section): Do not look for segments anymore.
1807
        (bfd_mach_o_print_section): Display bfd section name.
1808
        (bfd_mach_o_print_segment): Display none if no name.
1809
        (bfd_mach_o_print_dysymtab): Display next index for local, external
1810
        and undefined symbols.
1811
        (bfd_mach_o_bfd_print_private_bfd_data): Adjust code by using name_str.
1812
        Display dylinker name. Display thread and unixthread commands content.
1813
        (bfd_mach_o_print_thread): New macro.
1814
 
1815
        * mach-o.h (bfd_mach_o_mach_header_magic): Align numbers.
1816
        (bfd_mach_o_ppc_thread_flavour): Ditto.
1817
        (bfd_mach_o_i386_thread_flavour): Ditto.
1818
        (BFD_MACH_O_PPC_THREAD_STATE_NONE): New enum.
1819
        (BFD_MACH_O_x86_THREAD_STATE_NONE): Replaces
1820
        BFD_MACH_O_THREAD_STATE_NONE.
1821
        (bfd_mach_o_segment_command): Remove segment field.
1822
        (bfd_mach_o_thread_flavour): Field offset is now unsigned long.
1823
        (bfd_mach_o_dylinker_command): Remove section field, add name_str.
1824
        (bfd_mach_o_prebound_dylib_command): Ditto.
1825
        (bfd_mach_o_dylib_command): Ditto.
1826
        (bfd_mach_o_prebound_dylib_command): Remove section field.
1827
        (mach_o_data_struct): Add dysymtab field.
1828
        (bfd_mach_o_backend_data): Add _bfd_mach_o_print_thread field.
1829
        (bfd_mach_o_get_reloc_upper_bound, bfd_mach_o_canonicalize_reloc)
1830
        (bfd_mach_o_build_commands): Remove parameter names and attributes.
1831
        (bfd_mach_o_get_dynamic_reloc_upper_bound)
1832
        (bfd_mach_o_canonicalize_dynamic_reloc): New prototypes.
1833
 
1834
2009-06-25  Rafael Avila de Espindola  
1835
 
1836
        * plugin.c (load_plugin): Use stat and S_ISREG instead of the d_type
1837
        field of struct dirent.
1838
 
1839
2009-06-23  Tristan Gingold  
1840
 
1841
        * vms.c (vms_get_synthetic_symtab): Remove duplicate definition
1842
        of this macro.  Fix indentation.
1843
 
1844
2009-06-22  Christophe Lyon  
1845
 
1846
        * elf32-arm.c (elf32_arm_size_stubs): Use PLT address as
1847
        destination for defined dynamic symbols when deciding whether to
1848
        insert a stub or not.
1849
        (allocate_dynrelocs): Make sure functions are not marked as Thumb
1850
        when actually accessed through a PLT, even when generating a
1851
        shared lib.
1852
 
1853
2009-06-22  Tristan Gingold  
1854
 
1855
        * mach-o.c (bfd_mach_o_canonicalize_reloc): Append a sentinel to
1856
        the relocs array.
1857
 
1858
2009-06-22  Alan Modra  
1859
 
1860
        * elf32-ppc.c (ppc_elf_check_relocs): Handle R_PPC_RELAX* in switch.
1861
        * elf32-v850.c (v850_elf_relocate_section): Warning fix.
1862
 
1863
2009-06-22  Alan Modra  
1864
 
1865
        * elf64-ppc.c (ppc64_elf_edit_opd): Avoid gcc warning.
1866
 
1867
2009-06-19  H.J. Lu  
1868
 
1869
        * elflink.c (elf_link_add_object_symbols): Avoid warning
1870
        from -Wjump-misses-init in gcc 4.5.0.
1871
 
1872
2009-06-19  H.J. Lu  
1873
 
1874
        * elf32-i386.c (elf_i386_check_relocs): Properly check local
1875
        symbol on error.
1876
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
1877
 
1878
2009-06-19  H.J. Lu  
1879
 
1880
        * elf32-i386.c (elf_i386_tls_transition): Add a parameter,
1881
        r_symndx.  Report local symbol name on error.
1882
        (elf_i386_check_relocs): Updated.  Report local symbol name on
1883
        error.
1884
        (elf_i386_gc_sweep_hook): Updated.
1885
        (elf_i386_relocate_section): Likewise.
1886
 
1887
        * elf64-x86-64.c (elf64_x86_64_tls_transition): Add a parameter,
1888
        r_symndx.  Report local symbol name on error.
1889
        (elf64_x86_64_check_relocs): Updated.  Report local symbol name
1890
        on error.
1891
        (elf64_x86_64_gc_sweep_hook): Updated.
1892
        (elf64_x86_64_relocate_section): Likewise.
1893
 
1894
2009-06-19  Tristan Gingold  
1895
 
1896
        * mach-o.c (bfd_mach_o_print_private_header): Fix format character.
1897
 
1898
2009-06-19  Tristan Gingold  
1899
 
1900
        * mach-o.c (bfd_mach_o_scan_read_symtab_symbols): Add prototype.
1901
        (bfd_mach_o_version): Use bfd_mach_o_get_data instead of direct access.
1902
        (bfd_mach_o_valid): Ditto.
1903
        (bfd_mach_o_wide_p): Ditto.
1904
        (bfd_mach_o_canonicalize_reloc): Ditto.
1905
        (bfd_mach_o_build_commands): Ditto.
1906
        (bfd_mach_o_scan_read_thread): Ditto.
1907
        (bfd_mach_o_flatten_sections): Ditto.
1908
        (bfd_mach_o_scan_start_address): Ditto.
1909
        (bfd_mach_o_lookup_section): Ditto.
1910
        (bfd_mach_o_core_fetch_environment): Ditto.
1911
        (bfd_mach_o_write_contents): Ditto.  Handle reexport_dylib.
1912
        (bfd_mach_o_scan_write_relocs): Adjust for bfd_mach_o_get_data.
1913
        (bfd_mach_o_scan_write_symtab): Ditto.
1914
        Use macros instead of hard-coded values.
1915
        (bfd_mach_o_scan_read_symtab_symbol): Make the function static.
1916
        Use bfd_mach_o_get_data instead of direct access.  Use macros
1917
        instead of hard-coded values.
1918
        (bfd_mach_o_scan_read_symtab_strtab): Make the function static.
1919
        Remove sym argument and get section from mdata.
1920
        Move code into the else branch.
1921
        (bfd_mach_o_scan_read_symtab_symbols): Make the function static.
1922
        Remove sym argument and get section from mdata.  Adjust code.
1923
        (bfd_mach_o_scan_read_dylib): Move assertion into the created
1924
        switch (which replaces consecutive if statements).
1925
        (bfd_mach_o_scan_read_dysymtab): Rename seg to cmd.  Load
1926
        module table, table of content, indirect symbols and external
1927
        referenced symbols.
1928
        (bfd_mach_o_scan_read_symtab): Renames seg to symtab.  Set symtab
1929
        field.
1930
        (bfd_mach_o_scan_read_linkedit): New function.
1931
        (bfd_mach_o_scan_read_str): Ditto.
1932
        (bfd_mach_o_count_symbols): Simplify the code by using the symtab
1933
        field of mdata.
1934
        (bfd_mach_o_get_symtab_upper_bound): Remove check as
1935
        bfd_mach_o_count_symbols never returns an error.
1936
        (bfd_mach_o_canonicalize_symtab): Simplify the code by using the
1937
        symtab field (there might be only one symtab).
1938
        (bfd_mach_o_scan_read_command): Handle reexported dylib.
1939
        Handle sub frameworks, sub umbrella, sub library and sub client.
1940
        Read code signature and segment split info commands.
1941
        (bfd_mach_o_scan): Reindent.
1942
        (bfd_mach_o_xlat_name): New type.
1943
        (bfd_mach_o_print_flags): New function.
1944
        (bfd_mach_o_get_name): Ditto.
1945
        (bfd_mach_o_cpu_name): New variable.
1946
        (bfd_mach_o_filetype_name, bfd_mach_o_header_flags_name)
1947
        (bfd_mach_o_section_type_name)
1948
        (bfd_mach_o_section_attribute_name)
1949
        (bfd_mach_o_load_command_name): New variables.
1950
        (bfd_mach_o_print_private_header): New function.
1951
        (bfd_mach_o_print_section_map): New function extracted from
1952
        bfd_mach_o_print_private_bfd_data.
1953
        (bfd_mach_o_print_section): Ditto.  Print more infos.
1954
        (bfd_mach_o_print_segment): Ditto.
1955
        (bfd_mach_o_print_dysymtab): Ditto.
1956
        (bfd_mach_o_bfd_print_private_bfd_data): Reworked.  Handle
1957
        load weak dylib, reexport dylib and id dylib.
1958
        Handle code signature and segment_split info.
1959
        Handle sub frameworks, sub umbrella, sub library and sub client.
1960
        (bfd_mach_o_section_get_nbr_indirect): New function.
1961
 
1962
        * mach-o.h (BFD_MACH_O_REFERENCE_MASK): New macro.  Add comment.
1963
        (bfd_mach_o_header_flags): New enum to define header flags.
1964
        (bfd_mach_o_section_attribute): New enum to replace ...
1965
        (BFD_MACH_O_S_ATTR_LOC_RELOC, BFD_MACH_O_S_ATTR_EXT_RELOC,
1966
        BFD_MACH_O_S_ATTR_SOME_INSTRUCTIONS, BFD_MACH_O_S_ATTR_DEBUG,
1967
        BFD_MACH_O_S_SELF_MODIFYING_CODE, BFD_MACH_O_S_ATTR_LIVE_SUPPORT,
1968
        BFD_MACH_O_S_ATTR_NO_DEAD_STRIP, BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS,
1969
        BFD_MACH_O_S_ATTR_NO_TOC, BFD_MACH_O_S_ATTR_PURE_INSTRUCTIONS): ...
1970
        these removed macros.
1971
        (BFD_MACH_O_NLIST_SIZE, BFD_MACH_O_NLIST_64_SIZE): New macros.
1972
        (bfd_mach_o_dylib_module): New type.
1973
        (BFD_MACH_O_DYLIB_MODULE_SIZE, BFD_MACH_O_DYLIB_MODULE_64_SIZE): New
1974
        macros.
1975
        (bfd_mach_o_dylib_table_of_content): New type.
1976
        (BFD_MACH_O_TABLE_OF_CONTENT_SIZE): New macro.
1977
        (bfd_mach_o_dylib_reference): New type.
1978
        (BFD_MACH_O_REFERENCE_SIZE): New macro.
1979
        (bfd_mach_o_dysymtab_command): Add fields for loaded and decoded
1980
        modules, toc, references and indirect syms.
1981
        (BFD_MACH_O_INDIRECT_SYMBOL_SIZE): New macro.
1982
        (bfd_mach_o_dylinker_command): Remove cmd and cmdsize fields (were
1983
        unused).  Add comment.
1984
        (bfd_mach_o_dylib_command): Ditto.
1985
        (bfd_mach_o_prebound_dylib_command): Ditto.
1986
        (bfd_mach_o_linkedit_command): New type.
1987
        (bfd_mach_o_str_command): New type.
1988
        (bfd_mach_o_load_command): Add linkedit and str fields.
1989
        (mach_o_data_struct): Add symtab field.
1990
        (bfd_get_mach_o_data): Renamed to ...
1991
        (bfd_mach_o_get_data): ... this new macro.
1992
        (bfd_mach_o_scan_read_symtab_symbol,
1993
        bfd_mach_o_scan_read_symtab_strtab,
1994
        bfd_mach_o_scan_read_symtab_symbols): Prototypes removed.
1995
 
1996
        * mach-o-i386.c (bfd_mach_o_i386_mkobject): Use bfd_mach_o_get_data
1997
        instead of direct access.
1998
 
1999
2009-06-19  Alan Modra  
2000
 
2001
        * elf32-ppc.c (ppc_elf_check_relocs): Allow local symbols for
2002
        R_PPC_PLTREL24 relocs.
2003
        (ppc_elf_relocate_section): Likewise.
2004
 
2005
2009-06-19  Alan Modra  
2006
 
2007
        * elf32-ppc.c (find_plt_ent): Pass pointer to plist rather than
2008
        pointer to sym hash.  Update all uses.
2009
        (update_plt_info): Likewise.  Don't check addend here.
2010
 
2011
2009-06-18  H.J. Lu  
2012
 
2013
        * elf32-i386.c (elf_i386_check_relocs): Remove isymbuf and use
2014
        bfd_sym_from_r_symndx.
2015
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2016
 
2017
2009-06-18  Alan Modra  
2018
 
2019
        * elf-bfd.h (struct sym_sec_cache): Delete.
2020
        (struct sym_cache): New.
2021
        (bfd_section_from_r_symndx): Delete prototype.
2022
        (bfd_sym_from_r_symndx): Define prototype.
2023
        * elf.c (bfd_section_from_r_symndx): Delete, replace with..
2024
        (bfd_sym_from_r_symndx): ..new function.
2025
        * elf32-arm.c: Update all uses of struct sym_sec_cache and
2026
        bfd_section_from_r_symndx to new struct and function.
2027
        * elf32-bfin.c: Likewise.
2028
        * elf32-hppa.c: Likewise.
2029
        * elf32-i386.c: Likewise.
2030
        * elf32-m32r.c: Likewise.
2031
        * elf32-m68hc1x.c: Likewise.
2032
        * elf32-m68hc1x.h: Likewise.
2033
        * elf32-m68k.c: Likewise.
2034
        * elf32-ppc.c: Likewise.
2035
        * elf32-s390.c: Likewise.
2036
        * elf32-sh.c: Likewise.
2037
        * elf64-ppc.c: Likewise.
2038
        * elf64-s390.c: Likewise.
2039
        * elf64-x86-64.c: Likewise.
2040
        * elfxx-sparc.c: Likewise.
2041
        * elfxx-sparc.h: Likewise.
2042
 
2043
2009-06-18  H.J. Lu  
2044
 
2045
        * elf32-i386.c (elf_i386_check_relocs): Cache or free isymbuf.
2046
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2047
 
2048
2009-06-18  Nick Clifton  
2049
 
2050
        * elflink.c (elf_link_sort_relocs): Return early if there are no
2051
        relocs to sort.
2052
 
2053
2009-06-18  Dave Korn  
2054
 
2055
        Merge cegcc and mingw32ce target name changes from
2056
        CeGCC project:
2057
 
2058
        2007-12-25  Pedro Alves  
2059
 
2060
        * config.bfd: Add arm*-*-cegcc* target.
2061
 
2062
        2007-12-17  Pedro Alves  
2063
 
2064
        * config.bfd: Add arm-*-mingw32ce* target.
2065
 
2066
2009-06-17  H.J. Lu  
2067
 
2068
        * elf-bfd.h (_bfd_elf_allocate_ifunc_dyn_relocs): New.
2069
        * elf-ifunc.c (_bfd_elf_allocate_ifunc_dyn_relocs): Likewise.
2070
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Use it.
2071
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2072
 
2073
2009-06-17  H.J. Lu  
2074
 
2075
        * elf-bfd.h (_bfd_elf_create_ifunc_dyn_reloc): New.
2076
        * elf-ifunc.c (_bfd_elf_create_ifunc_dyn_reloc): Likewise.
2077
        * elf32-i386.c (elf_i386_check_relocs): Use it.
2078
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2079
 
2080
2009-06-17  H.J. Lu  
2081
 
2082
        * elf-bfd.h (elf_dyn_relocs): New.
2083
 
2084
        * elf32-i386.c (elf_i386_dyn_relocs): Removed.
2085
        (elf_i386_link_hash_entry): Replace elf_i386_dyn_relocs with
2086
        elf_dyn_relocs.
2087
        (elf_i386_copy_indirect_symbol): Likewise.
2088
        (elf_i386_check_relocs): Likewise.
2089
        (elf_i386_gc_sweep_hook): Likewise.
2090
        (elf_i386_allocate_dynrelocs): Likewise.
2091
        (elf_i386_readonly_dynrelocs): Likewise.
2092
        (elf_i386_size_dynamic_sections): Likewise.
2093
 
2094
        * elf64-x86-64.c (elf64_x86_64_dyn_relocs): Removed.
2095
        (elf64_x86_64_link_hash_entry): Replace elf64_x86_64_dyn_relocs
2096
        with elf_dyn_relocs.
2097
        (elf64_x86_64_copy_indirect_symbol): Updated.
2098
        (elf64_x86_64_check_relocs): Likewise.
2099
        (elf64_x86_64_gc_sweep_hook): Likewise.
2100
        (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2101
        (elf64_x86_64_allocate_dynrelocs): Likewise.
2102
        (elf64_x86_64_readonly_dynrelocs): Likewise.
2103
        (elf64_x86_64_size_dynamic_sections): Likewise.
2104
 
2105
2009-06-17  H.J. Lu  
2106
 
2107
        * elf32-arm.c (create_got_section): Get existing .rela.got
2108
        section.
2109
        * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
2110
        * elf32-lm32.c (create_got_section): Likewise.
2111
        * elf32-m32r.c (create_got_section): Likewise.
2112
        * elf32-ppc.c (ppc_elf_create_got): Likewise.
2113
        * elf32-s390.c (create_got_section): Likewise.
2114
        * elf32-sh.c (create_got_section): Likewise.
2115
        * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
2116
        * elf64-s390.c (create_got_section): Likewise.
2117
        * elfxx-sparc.c (create_got_section): Likewise.
2118
 
2119
        * elflink.c (_bfd_elf_create_got_section): Properly initialize
2120
        the GOT size.
2121
 
2122
2009-06-16  H.J. Lu  
2123
 
2124
        * elf-bfd.h (ELF_LOCAL_SYMBOL_HASH): New.
2125
 
2126
        * elf32-i386.c (elf_i386_local_hash): Removed.
2127
        (elf_i386_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
2128
        (elf_i386_get_local_sym_hash): Likewise.
2129
 
2130
        * elf64-x86-64.c (elf64_x86_64_local_hash): Removed.
2131
        (elf64_x86_64_local_htab_hash): Use ELF_LOCAL_SYMBOL_HASH.
2132
        (elf64_x86_64_get_local_sym_hash): Likewise.
2133
        * elfxx-ia64.c (elfNN_ia64_local_htab_hash): Likewise.
2134
        (get_local_sym_hash): Likewise.
2135
 
2136
2009-06-16  H.J. Lu  
2137
 
2138
        * elfxx-ia64.c (elfNN_ia64_link_hash_table): Remove got_sec,
2139
        rel_got_sec and plt_sec.
2140
        (elfNN_ia64_relax_section): Updated.
2141
        (elfNN_ia64_create_dynamic_sections): Likewise.
2142
        (get_got): Likewise.
2143
        (allocate_dynrel_entries): Likewise.
2144
        (elfNN_ia64_size_dynamic_sections): Likewise.
2145
        (set_got_entry): Likewise.
2146
        (elfNN_ia64_choose_gp): Likewise.
2147
        (elfNN_ia64_relocate_section): Likewise.
2148
        (elfNN_ia64_finish_dynamic_symbol): Likewise.
2149
        (elfNN_ia64_finish_dynamic_sections): Likewise.
2150
 
2151
2009-06-16  Ulrich Weigand  
2152
 
2153
        * elf32-spu.c (needs_ovl_stub): Respect .brinfo lrlive bits
2154
        also for calls.
2155
 
2156
2009-06-16  H.J. Lu  
2157
 
2158
        * configure.in (elf): Add elf-ifunc.lo.
2159
 
2160
        * configure: Regenerated.
2161
        * Makefile.in: Likewise.
2162
 
2163
        * elf-bfd.h (elf_link_hash_table): Add sgot, sgotplt,
2164
        srelgot, splt, srelplt, igotplt, iplt, irelplt and irelifunc.
2165
 
2166
        * elf32-i386.c (elf_i386_link_hash_table): Remove sgot,
2167
        sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
2168
        irelifunc.
2169
        (elf_i386_link_hash_table_create): Likewise.
2170
        (elf_i386_create_dynamic_sections): Likewise.
2171
        (elf_i386_check_relocs): Likewise.
2172
        (elf_i386_allocate_dynrelocs): Likewise.
2173
        (elf_i386_size_dynamic_sections): Likewise.
2174
        (elf_i386_relocate_section): Likewise.
2175
        (elf_i386_finish_dynamic_symbol): Likewise.
2176
        (elf_i386_finish_dynamic_sections): Likewise.
2177
        (elf_i386_create_got_section): Removed.
2178
 
2179
        * elf64-x86-64.c (elf64_x86_64_link_hash_table): Remove sgot,
2180
        sgotplt, srelgot, splt, srelplt, igotplt, iplt, irelplt and
2181
        irelifunc.
2182
        (elf64_x86_64_compute_jump_table_size): Updated.
2183
        (elf64_x86_64_link_hash_table_create): Likewise.
2184
        (elf64_x86_64_create_dynamic_sections): Likewise.
2185
        (elf64_x86_64_check_relocs): Likewise.
2186
        (elf64_x86_64_allocate_dynrelocs): Likewise.
2187
        (elf64_x86_64_size_dynamic_sections): Likewise.
2188
        (elf64_x86_64_relocate_section): Likewise.
2189
        (elf64_x86_64_finish_dynamic_symbol): Likewise.
2190
        (elf64_x86_64_finish_dynamic_sections): Likewise.
2191
        (elf64_x86_64_create_got_section): Removed.
2192
 
2193
        * elflink.c (_bfd_elf_create_got_section): Use log_file_align
2194
        for pointer alignment.  Set up section pointers.
2195
        (_bfd_elf_create_dynamic_sections): Likewise.
2196
        (_bfd_elf_create_ifunc_sections): Moved to ...
2197
        * elf-ifunc.c: Here.  New.
2198
 
2199
        * Makefile.am (BFD32_BACKENDS): Add elf-ifunc.lo.
2200
        (BFD32_BACKENDS_CFILES): Add elf-ifunc.c.
2201
        Run "make dep-am".
2202
 
2203
2009-06-16  Doug Kwan  
2204
 
2205
        * elf32-arm.c (cortex_a8_erratum_scan): Change type of offset
2206
        to bfd_signed_vma.  Cast constant operands which are used in
2207
        offset related expressions to bfd_signed_vma type as appropriate.
2208
 
2209
2009-06-16  Maciej W. Rozycki  
2210
 
2211
        * elf32-vax.c (elf_vax_plt_sym_val): New function.
2212
        (elf_backend_plt_sym_val): Define.
2213
 
2214
2009-06-16  Maciej W. Rozycki  
2215
 
2216
        * elf32-vax.c (elf_vax_reloc_type_class): New function.
2217
        (elf_backend_reloc_type_class): Define.
2218
 
2219
2009-06-16  Maciej W. Rozycki  
2220
 
2221
        * elf32-vax.c (elf_vax_relocate_section): For symbol references
2222
        from an executable to a shared library treat R_VAX_PC32
2223
        relocations as R_VAX_PLT32 ones.
2224
 
2225
2009-06-16  Maciej W. Rozycki  
2226
 
2227
        * elf32-vax.c (elf_vax_instantiate_got_entries): Skip local
2228
        symbols in GOT space calculation.
2229
        (elf_vax_relocate_section): Adjust accordingly.
2230
 
2231
2009-06-16  Maciej W. Rozycki  
2232
 
2233
        * elf32-vax.c (elf_vax_plt_entry): Set the entry mask to
2234
        include .
2235
 
2236
2009-06-16  Maciej W. Rozycki  
2237
 
2238
        * elf32-vax.c (elf_vax_check_relocs): Handle the visibility
2239
        attribute.
2240
        (elf_vax_relocate_section): Likewise.
2241
 
2242
2009-06-15  H.J. Lu  
2243
 
2244
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Update comments.
2245
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2246
 
2247
2009-06-15  H.J. Lu  
2248
 
2249
        * elf32-i386.c (elf_i386_check_relocs): Reformat.
2250
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
2251
 
2252
2009-06-15  H.J. Lu  
2253
 
2254
        * Makefile.am: Run "make dep-am".
2255
        * Makefile.in: Regenerated.
2256
 
2257
2009-06-15  H.J. Lu  
2258
 
2259
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Fix a typo.
2260
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2261
 
2262
2009-06-15  Nick Clifton  
2263
 
2264
        * po/ru.po: New Russian translation.
2265
        * configure.in (ALL_LINGUAS): Add ru.
2266
        * configure: Regenerate.
2267
 
2268
2009-06-14  H.J. Lu  
2269
 
2270
        * elf32-i386.c: Remove duplicated comments.
2271
 
2272
2009-06-14  H.J. Lu  
2273
 
2274
        PR ld/10270
2275
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Disallow
2276
        dynamic IFUNC pointer in non-shared object.  Use .got.plt
2277
        for IFUNC definition in PIE.
2278
        (elf_i386_allocate_dynrelocs): Resolve IFUNC definition in
2279
        PIE locally.
2280
 
2281
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Disallow
2282
        dynamic IFUNC pointer in non-shared object.  Use .got.plt
2283
        for IFUNC definition in PIE.
2284
        (elf64_x86_64_relocate_section): Resolve IFUNC definition in
2285
        PIE locally.
2286
 
2287
2009-06-13  H.J. Lu  
2288
 
2289
        * elf32-i386.c (elf_i386_check_relocs): Properly report
2290
        local symbol for unhandled relocation against STT_GNU_IFUNC
2291
        symbol.
2292
        (elf_i386_relocate_section): Likewise.
2293
        * elf64-x86-64.c (elf64_x86_64_check_relocs):  Likewise.
2294
        (elf64_x86_64_relocate_section): Likewise.
2295
 
2296
2009-06-13  H.J. Lu  
2297
 
2298
        PR ld/10269
2299
        * elf32-i386.c: Include "objalloc.h" and "hashtab.h".
2300
        (elf_i386_link_hash_table): Add loc_hash_table and
2301
        loc_hash_memory.
2302
        (elf_i386_local_hash): New.
2303
        (elf_i386_local_htab_hash): Likewise.
2304
        (elf_i386_local_htab_eq): Likewise.
2305
        (elf_i386_get_local_sym_hash): Likewise.
2306
        (elf_i386_link_hash_table_free): Likewise.
2307
        (elf_i386_allocate_local_dynrelocs): Likewise.
2308
        (elf_i386_finish_local_dynamic_symbol): Likewise.
2309
        (bfd_elf64_bfd_link_hash_table_free): Likewise.
2310
        (elf_i386_link_hash_table_create): Create loc_hash_table and
2311
        loc_hash_memory.
2312
        (elf_i386_check_relocs): Handle local STT_GNU_IFUNC symbols.
2313
        (elf_i386_size_dynamic_sections): Likewise.
2314
        (elf_i386_relocate_section): Likewise.
2315
        (elf_i386_finish_dynamic_sections): Likewise.
2316
        (elf_i386_finish_dynamic_symbol): Check _DYNAMIC only if sym
2317
        isn't NULL.
2318
 
2319
        * elf64-x86-64.c: Include "objalloc.h" and "hashtab.h".
2320
        (elf64_x86_64_link_hash_table): Add loc_hash_table and
2321
        loc_hash_memory.
2322
        (elf64_x86_64_local_hash): New.
2323
        (elf64_x86_64_local_htab_hash): Likewise.
2324
        (elf64_x86_64_local_htab_eq): Likewise.
2325
        (elf64_x86_64_get_local_sym_hash): Likewise.
2326
        (elf64_x86_64_link_hash_table_free): Likewise.
2327
        (elf64_x86_64_allocate_local_dynrelocs): Likewise.
2328
        (elf64_x86_64_finish_local_dynamic_symbol): Likewise.
2329
        (bfd_elf64_bfd_link_hash_table_free): Likewise.
2330
        (elf64_x86_64_link_hash_table_create): Create loc_hash_table
2331
        and loc_hash_memory.
2332
        (elf64_x86_64_check_relocs): Handle local STT_GNU_IFUNC
2333
        symbols.
2334
        (elf64_x86_64_size_dynamic_sections): Likewise.
2335
        (elf64_x86_64_relocate_section): Likewise.
2336
        (elf64_x86_64_finish_dynamic_sections): Likewise.
2337
        (elf64_x86_64_finish_dynamic_symbol): Check _DYNAMIC only if
2338
        sym isn't NULL.
2339
 
2340
2009-06-10  Philip Blundell  
2341
 
2342
        * elf32-arm.c (elf32_arm_fix_exidx_coverage): Avoid crash if
2343
        elf_sec->this_hdr == NULL.
2344
 
2345
2009-06-12  Tristan Gingold  
2346
 
2347
        * reloc.c: Add BFD_RELOC_MACH_O_SECTDIFF and BFD_RELOC_MACH_O_PAIR.
2348
        * bfd-in2.h: Regenerated.
2349
        * libbfd.h: Regenerated.
2350
 
2351
        * mach-o.c (FILE_ALIGN): New macro.
2352
        (bfd_mach_o_canonicalize_symtab): Adjust for bfd_mach_o_asymbol.
2353
        (bfd_mach_o_print_symbol): Ditto.
2354
        (bfd_mach_o_scan_write_thread): Adjust type of variable offset.
2355
        (bfd_mach_o_get_reloc_upper_bound): New function.
2356
        (bfd_mach_o_canonicalize_reloc): Ditto.
2357
        (bfd_mach_o_scan_write_relocs): Ditto.
2358
        (bfd_mach_o_scan_write_section_32): Remove offset argument.
2359
        (bfd_mach_o_scan_write_section_64): Ditto.
2360
        (bfd_mach_o_scan_write_segment_32): Write relocs.  Fix size of data
2361
        written for load command.  Do not compute section file offset.
2362
        (bfd_mach_o_scan_write_segment_64): Ditto.
2363
        (bfd_mach_o_scan_write_symtab): Compute file offset first.
2364
        Adjust for bfd_mach_o_asymbol.  Move code to convert from BFD to
2365
        Mach-O to ...
2366
        (bfd_mach_o_mangle_symbols): ... this new function.
2367
        (bfd_mach_o_write_contents): Be sure to have load commands built.
2368
        Call bfd_mach_o_mangle_symbols.
2369
        (bfd_mach_o_build_commands): Adjust for filelen field.
2370
        Use FILE_ALIGN macro.  Clear section file offset if section is empty.
2371
        Do not set symtab file offset anymore here.
2372
        (bfd_mach_o_make_empty_symbol): Allocate a bfd_mach_o_asymbol.
2373
        (bfd_mach_o_make_bfd_section): Set SEC_RELOC if has reloc.
2374
        Set reloc_count and rel_filepos section fields.
2375
        (bfd_mach_o_scan_read_section_32): Type of argument offset is now
2376
        unsigned int.
2377
        (bfd_mach_o_scan_read_section_64): Ditto.
2378
        (bfd_mach_o_scan_read_section): Ditto.
2379
        (bfd_mach_o_scan_read_symtab_symbol): Typr of argument s is now
2380
        bfd_mach_o_asymbol.  Use unsigned int for file offset type.
2381
        (bfd_mach_o_scan_read_symtab_symbol): Adjust for bfd_mach_o_asymbol.
2382
        Handle weak-ref symbols.
2383
        (bfd_mach_o_scan_read_symtab_symbols): Adjust for bfd_mach_o_asymbol.
2384
        (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
2385
        (bfd_mach_o_scan): Remove assignment to removed field.
2386
        (bfd_mach_o_mkobject_init): Ditto.
2387
        (bfd_mach_o_bfd_print_private_bfd_data): Adjust printf formatter.
2388
        (bfd_mach_o_bfd_reloc_type_lookup): New macro.
2389
        (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
2390
        (bfd_mach_o_swap_reloc_in): Ditto.
2391
        (bfd_mach_o_swap_reloc_out): Ditto.
2392
 
2393
        * mach-o.h (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_NON_LAZY)
2394
        (BFD_MACH_O_REFERENCE_FLAG_UNDEFINED_LAZY)
2395
        (BFD_MACH_O_REFERENCE_FLAG_DEFINED)
2396
        (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_DEFINED)
2397
        (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_NON_LAZY)
2398
        (BFD_MACH_O_REFERENCE_FLAG_PRIVATE_UNDEFINED_LAZY)
2399
        (BFD_MACH_O_REFERENCED_DYNAMICALLY, BFD_MACH_O_N_DESC_DISCARDED)
2400
        (BFD_MACH_O_N_NO_DEAD_STRIP, BFD_MACH_O_N_WEAK_REF)
2401
        (BFD_MACH_O_N_WEAK_DEF): New macros.
2402
        Add comments.
2403
        (bfd_mach_o_section_type): Add new enumeration values.
2404
        (BFD_MACH_O_S_SELF_MODIFYING_CODE)
2405
        (BFD_MACH_O_S_ATTR_LIVE_SUPPORT)
2406
        (BFD_MACH_O_S_ATTR_NO_DEAD_STRIP)
2407
        (BFD_MACH_O_S_ATTR_STRIP_STATIC_SYMS, BFD_MACH_O_S_ATTR_NO_TOC): New
2408
        macros.
2409
        (BFD_MACH_O_GENERIC_RELOC_VANILLA)
2410
        (BFD_MACH_O_GENERIC_RELOC_PAIR)
2411
        (BFD_MACH_O_GENERIC_RELOC_SECTDIFF)
2412
        (BFD_MACH_O_GENERIC_RELOC_PB_LA_PTR)
2413
        (BFD_MACH_O_GENERIC_RELOC_LOCAL_SECTDIFF): Ditto.
2414
        (BFD_MACH_O_RELENT_SIZE): Ditto.
2415
        (BFD_MACH_O_R_PCREL, BFD_MACH_O_GET_R_LENGTH)
2416
        (BFD_MACH_O_R_EXTERN, BFD_MACH_O_GET_R_TYPE)
2417
        (BFD_MACH_O_GET_R_SYMBOLNUM, BFD_MACH_O_SET_R_LENGTH)
2418
        (BFD_MACH_O_SET_R_TYPE, BFD_MACH_O_SET_R_SYMBOLNUM): Ditto.
2419
        (BFD_MACH_O_SR_SCATTERED, BFD_MACH_O_SR_PCREL)
2420
        (BFD_MACH_O_GET_SR_LENGTH, BFD_MACH_O_GET_SR_TYPE)
2421
        (BFD_MACH_O_GET_SR_ADDRESS, BFD_MACH_O_SET_SR_LENGTH)
2422
        (BFD_MACH_O_SET_SR_TYPE, BFD_MACH_O_SET_SR_ADDRESS): Ditto.
2423
        (bfd_mach_o_reloc_info): New struct.
2424
        (bfd_mach_o_asymbol): New struct.
2425
        (bfd_mach_o_symtab_command): The symbols field is now of type
2426
        bfd_mach_o_asymbol.
2427
        (bfd_mach_o_load_command): The offset and len fields are now of type
2428
        unsigned int.
2429
        (mach_o_data_struct): Remove symbols, nsymbols and ibfd fields.
2430
        Add a filelen field.  Add comments.
2431
        (bfd_mach_o_backend_data): New struct.
2432
        (bfd_mach_o_get_backend_data): New macro.
2433
        (bfd_mach_o_scan_read_symtab_symbol): Parameter symbol now of type
2434
        bfd_mach_o_asymbol.
2435
        (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
2436
        (bfd_mach_o_get_reloc_upper_bound): New prototype.
2437
        (bfd_mach_o_canonicalize_reloc): Ditto.
2438
 
2439
        * mach-o-target.c (bfd_mach_o_bfd_is_local_label_name): Remove
2440
        duplicated macro.  Now defined to _bfd_generic_is_local_label.
2441
        (TARGET_NAME_BACKEND): New macro...
2442
        (TARGET_NAME_BACKEND): ... used to name a new variable.
2443
        (TARGET_NAME): Define relocs table using bfd_mach_o, reference
2444
        Mach-O backend data.
2445
 
2446
        * mach-o-i386.c (i386_howto_table): New variable.
2447
        (bfd_mach_o_i386_swap_reloc_in): New function.
2448
        (bfd_mach_o_i386_swap_reloc_out): Ditto.
2449
        (bfd_mach_o_i386_bfd_reloc_type_lookup): Ditto.
2450
        (bfd_mach_o_i386_bfd_reloc_name_lookup): Ditto.
2451
        (bfd_mach_o_swap_reloc_in, bfd_mach_o_swap_reloc_out): New macros.
2452
        (bfd_mach_o_bfd_reloc_type_lookup)
2453
        (bfd_mach_o_bfd_reloc_name_lookup): Ditto.
2454
 
2455
2009-06-11  Eric Paris  
2456
            Nick Clifton  
2457
 
2458
        * opncls.c (_maybe_make_executable): New function.  Gives execute
2459
        permission to an executable bfd that was opened for writing
2460
        provided that it is a regular file.  Replaces common code found in...
2461
        (bfd_close): here and ...
2462
        (bfd_close_all_done): here.
2463
 
2464
2009-06-11  Anthony Green  
2465
 
2466
        * reloc.c: Add BFD_RELOC_MOXIE_10_PCREL.
2467
        * bfd-in2.h: Rebuilt.
2468
        * libbfd.h: Rebuilt.
2469
        * elf32-moxie.c (moxie_elf_howto_table): Add R_MOXIE_PCREL10
2470
        relocation support.
2471
        (moxie_reloc_map): Ditto.
2472
        Clean up copyright notice.
2473
 
2474
2009-06-10  Paul Pluzhnikov  
2475
 
2476
        * bfd-in2.h: bfd_mmap prototype.
2477
        * bfdio.c (bfd_mmap): New function.
2478
        * libbfd.h (bfd_iovec): Add bmmap.
2479
        * cache.c (cache_bmmap): New function.
2480
        (cache_iovec): Initialize bmmap member.
2481
        * opencls.c (opncls_bmmap): New function.
2482
        (opncls_iovec): Initialize bmmap member.
2483
 
2484
2009-06-09  Tristan Gingold  
2485
 
2486
        * mach-o.h (bfd_mach_o_symtab_command): Remove stabs_segment
2487
        and stabstr_segment fields.
2488
        (mach_o_be_vec, mach_o_le_vec): Removed
2489
        (bfd_mach_o_version): New prototype.
2490
 
2491
        * mach-o.c (bfd_mach_o_version): Make this function public.
2492
        (mach_o_wide_p): New function.
2493
        (bfd_mach_o_wide_p): Ditto.
2494
        (bfd_mach_o_convert_section_name_to_bfd): Add prefix only for
2495
        weird names.
2496
        (bfd_mach_o_convert_section_name_to_mach_o): Fix typo in comment.
2497
        Search in the list only if the name starts with a dot.
2498
        (bfd_mach_o_write_header): Use mach_o_wide_p instead of hard-coded
2499
        test.  Check bfd_seek status.
2500
        (bfd_mach_o_scan_write_thread): Check bfd_seek status.
2501
        (bfd_mach_o_scan_write_section_32): Ditto.
2502
        (bfd_mach_o_scan_write_section_64): Ditto.
2503
        (bfd_mach_o_scan_write_section): Removed.
2504
        (bfd_mach_o_scan_write_segment): Split into ...
2505
        (bfd_mach_o_scan_write_segment_32): ... this and ...
2506
        (bfd_mach_o_scan_write_segment_64): ... this.  Check bfd_seek status.
2507
        (bfd_mach_o_scan_write_symtab_symbols): Moved into ...
2508
        (bfd_mach_o_scan_write_symtab): ... this.  Write symtab from BFD
2509
        symbol table.  Now returns a boolean.
2510
        (bfd_mach_o_write_contents): Set filetype.  Check bfd_seek status.
2511
        Adjust for status type.
2512
        (bfd_mach_o_build_commands): Use mach_o_wide_p instead of hard-coded
2513
        test.  Write symbol table.  Numbers the sections.
2514
        (bfd_mach_o_read_header): Check bfd_seek status.
2515
        Use mach_o_wide_p instead of hard-coded test.
2516
        (bfd_mach_o_scan_read_section_32): Check bfd_seek status.
2517
        (bfd_mach_o_scan_read_section_64): Ditto.
2518
        (bfd_mach_o_scan_read_symtab_symbol): Ditto.  Check bfd_seek status.
2519
        Use BFD_MACH_O_N_TYPE instead of hard-coded value.  Correctly
2520
        handled common symbols.
2521
        (bfd_mach_o_scan_read_symtab_strtab): Check bfd_seek status.
2522
        (bfd_mach_o_scan_read_dysymtab_symbol): Ditto.
2523
        (bfd_mach_o_scan_read_dylinker): Ditto.
2524
        (bfd_mach_o_scan_read_dylib): Ditto.
2525
        (bfd_mach_o_scan_read_thread): Ditto.
2526
        (bfd_mach_o_scan_read_symtab): Ditto.
2527
        Do not create a section for the stabs.
2528
        (bfd_mach_o_scan_read_uuid): Check bfd_seek status.
2529
        (bfd_mach_o_scan_read_segment): Ditto.
2530
        (bfd_mach_o_scan_read_command): Ditto.
2531
        (bfd_mach_o_scan_start_address): Ditto.
2532
        (bfd_mach_o_scan): Use mach_o_wide_p instead of hard-coded test.
2533
        (bfd_mach_o_archive_p): Check bfd_seek status.
2534
        (bfd_mach_o_core_fetch_environment): Ditto.
2535
 
2536
        * mach-o-i386.c (bfd_mach_o_i386_mkobject): Don't set filetype.
2537
 
2538
2009-06-06  H.J. Lu  
2539
 
2540
        * elf32-i386.c (elf_i386_link_hash_table): Add irelifunc.
2541
        (elf_i386_link_hash_table_create): Initialize irelifunc.
2542
        (elf_i386_check_relocs): Updated.  Set up irelifunc for
2543
        shared objects.
2544
        (elf_i386_allocate_dynrelocs): Use irelifunc for dynamic
2545
        relocation for non-GOT reference of STT_GNU_IFUNC symbol in
2546
        shared objects.
2547
        (elf_i386_relocate_section): Likewise.
2548
 
2549
        * elf64-x86-64.c (elf64_x86_64_link_hash_table): Add irelifunc.
2550
        (elf64_x86_64_link_hash_table_create): Initialize irelifunc.
2551
        (elf64_x86_64_check_relocs): Updated.  Set up irelifunc for
2552
        shared objects.
2553
        (elf64_x86_64_allocate_dynrelocs): Use irelifunc for dynamic
2554
        relocation for non-GOT reference of STT_GNU_IFUNC symbol in
2555
        shared objects.
2556
        (elf64_x86_64_relocate_section): Likewise.
2557
 
2558
        * elf-bfd.h (_bfd_elf_create_static_ifunc_sections): Renamed to
2559
        ...
2560
        (_bfd_elf_create_ifunc_sections): This.
2561
 
2562
        * elflink.c (_bfd_elf_create_static_ifunc_sections): Renamed to
2563
        ...
2564
        (_bfd_elf_create_ifunc_sections): This.  Create .rel[a].ifunc
2565
        for shared objects.
2566
 
2567
2009-06-06  H.J. Lu  
2568
 
2569
        * elf32-i386.c (elf_i386_check_relocs): Make room for dynamic
2570
        relocation for R_386_32 against STT_GNU_IFUNC symbol when
2571
        building shared object.  Check info->executable instead of
2572
        !info->shared when setting non_got_ref.
2573
        (elf_i386_allocate_dynrelocs): Allocate dynamic relocation
2574
        for non-GOT reference of STT_GNU_IFUNC symbol in shared
2575
        object. Allocate GOT relocation agsinst STT_GNU_IFUNC
2576
        symbol if needed.
2577
        (elf_i386_relocate_section): Output dynamic relocation for
2578
        R_386_32 against STT_GNU_IFUNC symbol to get the real
2579
        function address when building shared object.
2580
        (elf_i386_finish_dynamic_symbol): Output R_386_GLOB_DAT
2581
        relocation for STT_GNU_IFUNC symbol in shared object.
2582
 
2583
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Make room for
2584
        dynamic relocation for R_X86_64_64 against STT_GNU_IFUNC
2585
        symbol when building shared object.  Check info->executable
2586
        instead of !info->shared when setting non_got_ref.
2587
        (elf64_x86_64_allocate_dynrelocs): Allocate dynamic relocation
2588
        for non-GOT reference of STT_GNU_IFUNC symbol in shared
2589
        library. Allocate GOT relocation agsinst STT_GNU_IFUNC symbol
2590
        if needed.
2591
        (elf64_x86_64_relocate_section): Output dynamic relocation
2592
        for R_X86_64_64 against STT_GNU_IFUNC symbol to get the real
2593
        function address when building shared object.
2594
        (elf64_x86_64_finish_dynamic_symbol): Output R_X86_64_GLOB_DAT
2595
        relocation for STT_GNU_IFUNC symbol in shared object.
2596
 
2597
2009-06-06  Jan Kratochvil  
2598
 
2599
        * Makefile.am: Run "make dep-am".
2600
        (BFD32_BACKENDS): Add mach-o-i386.lo.
2601
        (BFD32_BACKENDS_CFILES): Add mach-o-i386.c.
2602
        * Makefile.in: Regenerate.
2603
 
2604
2009-06-06  Alan Modra  
2605
 
2606
        * elf32-spu.c (spu_elf_relocate_section): Match overlay number
2607
        when looking for soft-icache stubs.
2608
 
2609
2009-06-05  Tristan Gingold  
2610
 
2611
        * mach-o.h: Update copyright year.
2612
        (bfd_mach_o_mach_header_magic): New enum.
2613
        (bfd_mach_o_cpu_subtype): Now an enum.
2614
        (BFD_MACH_O_HEADER_SIZE, BFD_MACH_O_HEADER_64_SIZE): New macros.
2615
        (BFD_MACH_O_SECTION_SIZE, BFD_MACH_O_SECTION_64_SIZE): Ditto.
2616
        (BFD_MACH_O_LC_SEGMENT_SIZE, BFD_MACH_O_LC_SEGMENT_64_SIZE): Ditto.
2617
        (bfd_mach_o_load_command): Field type_required is now a boolean.
2618
        Reindent prototypes.
2619
        (bfd_mach_o_object_p, bfd_mach_o_core_p): Remove.
2620
        (bfd_mach_o_bfd_copy_private_symbol_data): Add a prototype.
2621
        (bfd_mach_o_bfd_copy_private_section_data): Ditto.
2622
        (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
2623
        (bfd_mach_o_get_symtab_upper_bound): Ditto.
2624
        (bfd_mach_o_canonicalize_symtab): Ditto.
2625
        (bfd_mach_o_get_symbol_info): Ditto.
2626
        (bfd_mach_o_print_symbol): Ditto.
2627
        (bfd_mach_o_bfd_print_private_bfd_data): Ditto.
2628
        (bfd_mach_o_make_empty_symbol): Ditto.
2629
        (bfd_mach_o_write_contents): Ditto.
2630
 
2631
        * mach-o.c (bfd_mach_o_object_p, bfd_mach_o_core_p,
2632
        bfd_mach_o_mkobject): Defines.
2633
        (bfd_mach_o_valid): Returns FALSE/TRUE instead of 0/1.
2634
        Do not check with target vector but with flavour.
2635
        (struct mach_o_section_name_xlat): New declaration.
2636
        (dwarf_section_names_xlat): Ditto.
2637
        (text_section_names_xlat): Ditto.
2638
        (data_section_names_xlat): Ditto.
2639
        (struct mach_o_segment_name_xlat): Ditto.
2640
        (segsec_names_xlat): Ditto.
2641
        (bfd_mach_o_convert_section_name_to_bfd): New function.
2642
        (bfd_mach_o_convert_section_name_to_mach_o): Ditto.
2643
        (bfd_mach_o_bfd_copy_private_symbol_data): Make it public.
2644
        (bfd_mach_o_bfd_copy_private_section_data): Ditto.
2645
        (bfd_mach_o_bfd_copy_private_bfd_data): Ditto.
2646
        Accept any input and output flavour.  Do not share private data
2647
        anymore.
2648
        (bfd_mach_o_count_symbols): Add a comment.
2649
        (bfd_mach_o_get_symtab_upper_bound): Make it public.
2650
        (bfd_mach_o_canonicalize_symtab): Ditto.
2651
        (bfd_mach_o_get_symbol_info): Ditto.
2652
        (bfd_mach_o_print_symbol): Ditto.
2653
        (bfd_mach_o_write_header): Now returns a boolean instead of an int.
2654
        Use constants instead of hard-coded values.
2655
        (bfd_mach_o_scan_write_section_32): Use constants instead of hard-coded
2656
        values.
2657
        (bfd_mach_o_scan_write_section_64): Ditto.
2658
        (bfd_mach_o_scan_write_segment): Ditto.
2659
        Do not copy sections anymore.
2660
        (bfd_mach_o_write_contents): Make it public.
2661
        Remove dead code.  Rewrite typeflag assignment.
2662
        (bfd_mach_o_build_commands): New function.
2663
        (bfd_mach_o_set_section_contents): Ditto.
2664
        (bfd_mach_o_make_empty_symbol): Make it public.
2665
        (bfd_mach_o_read_header): Make it static.
2666
        Convert to bfd_boolean.
2667
        Use constants instead of hard-coded values.
2668
        (bfd_mach_o_make_bfd_section): Call
2669
        bfd_mach_o_convert_section_name_to_bfd to create name.
2670
        (bfd_mach_o_scan_read_section_32): Use constants instead of hard-coded
2671
        values.
2672
        (bfd_mach_o_scan_read_section_64): Ditto.
2673
        (bfd_mach_o_scan_read_segment): Do not create a bfd section for
2674
        a segment anymore.  Use constants instead of hard-coded values.
2675
        (bfd_mach_o_scan_read_command): Fix style.
2676
        (bfd_mach_o_scan): Use constants instead of hard-coded values.
2677
        Get rid of BFD_IO_FUNCS.
2678
        (bfd_mach_o_mkobject_init): Renamed from bfd_mach_o_mkobject.
2679
        (bfd_mach_o_header_p): Created from bfd_mach_o_object_p.
2680
        (bfd_mach_o_gen_object_p): New function, replaces bfd_mach_o_object_p.
2681
        (bfd_mach_o_object_p): Removed.
2682
        (bfd_mach_o_gen_core_p): New function, replaces ...
2683
        (bfd_mach_o_core_p): ... deleted.
2684
        (bfd_mach_o_bfd_print_private_bfd_data): Make it public.
2685
 
2686
        * mach-o-i386.c: New file.
2687
        * config.bfd: Use mach_o_i386_vec as targ_defvec for ix86-darwin.
2688
        * configure.in (TDEFINES): Add mach_o_i386_vec.
2689
        * configure: Regenerated.
2690
        * targets.c: Add mach_o_i386_vec.
2691
 
2692
        * mach-o.c: Update copyright years.
2693
        (BFD_IO_FUNCS): Remove (was not used).
2694
        (bfd_mach_o_mkarchive, bfd_mach_o_read_ar_hdr, bfd_mach_o_slurp_armap
2695
        bfd_mach_o_slurp_extended_name_table,
2696
        bfd_mach_o_construct_extended_name_table,
2697
        bfd_mach_o_truncate_arname, bfd_mach_o_write_armap,
2698
        bfd_mach_o_get_elt_at_index, bfd_mach_o_generic_stat_arch_elt,
2699
        bfd_mach_o_update_armap_timestamp, bfd_mach_o_close_and_cleanup,
2700
        bfd_mach_o_bfd_free_cached_info, bfd_mach_o_new_section_hook,
2701
        bfd_mach_o_get_section_contents_in_window,
2702
        bfd_mach_o_bfd_is_local_label_name,
2703
        bfd_mach_o_bfd_is_target_special_symbol,
2704
        bfd_mach_o_bfd_is_local_label_name, bfd_mach_o_get_lineno,
2705
        bfd_mach_o_find_nearest_line, bfd_mach_o_find_inliner_info,
2706
        bfd_mach_o_bfd_make_debug_symbol, bfd_mach_o_read_minisymbols,
2707
        bfd_mach_o_minisymbol_to_symbol,
2708
        bfd_mach_o_bfd_get_relocated_section_contents,
2709
        bfd_mach_o_bfd_relax_section, bfd_mach_o_bfd_link_hash_table_create,
2710
        bfd_mach_o_bfd_link_hash_table_free, bfd_mach_o_bfd_link_add_symbols,
2711
        bfd_mach_o_bfd_link_just_syms, bfd_mach_o_bfd_final_link,
2712
        bfd_mach_o_bfd_link_split_section, bfd_mach_o_set_arch_mach,
2713
        bfd_mach_o_bfd_merge_private_bfd_data,
2714
        bfd_mach_o_bfd_set_private_flags, bfd_mach_o_get_section_contents,
2715
        bfd_mach_o_bfd_gc_sections, bfd_mach_o_bfd_merge_sections,
2716
        bfd_mach_o_bfd_is_group_section, bfd_mach_o_bfd_discard_group,
2717
        bfd_mach_o_section_already_linked, bfd_mach_o_bfd_define_common_symbol,
2718
        bfd_mach_o_bfd_copy_private_header_data,
2719
        bfd_mach_o_core_file_matches_executable_p): Move these defines ...
2720
        * mach-o-target.c: ... here.
2721
        Update copyright years.
2722
 
2723
2009-06-04  Alan Modra  
2724
 
2725
        * dep-in.sed: Don't use \n in replacement part of s command.
2726
        * Makefile.am (DEP1): LC_ALL for uniq.
2727
        Run "make dep-am".
2728
        * Makefile.in: Regenerate.
2729
 
2730
2009-06-03  H.J. Lu  
2731
 
2732
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Remove check of
2733
        h->plt.refcount > 0 on STT_GNU_IFUNC symbol.
2734
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Likewise.
2735
 
2736
2009-06-03  H.J. Lu  
2737
 
2738
        * elf32-i386.c (elf_i386_allocate_dynrelocs): Allocate
2739
        GOT entry for STT_GNU_IFUNC symbol with pointer equality.
2740
        (elf_i386_relocate_section): Adjust R_386_GOT32 relocation
2741
        against STT_GNU_IFUNC symbols for static executables.
2742
        (elf_i386_finish_dynamic_symbol): Load GOT entry with
2743
        PLT entry for STT_GNU_IFUNC symbol with pointer equality.
2744
 
2745
        * elf64-x86-64.c (elf64_x86_64_allocate_dynrelocs): Allocate
2746
        GOT entry for STT_GNU_IFUNC symbol with pointer equality.
2747
        (elf64_x86_64_finish_dynamic_symbol): Load GOT entry with
2748
        PLT entry for STT_GNU_IFUNC symbol with pointer equality.
2749
 
2750
2009-06-02  Richard Sandiford  
2751
 
2752
        * coff-rs6000.c (xcoff_ppc_relocate_section): Allow undefined
2753
        symbols to be left unimported when linking statically.
2754
        * xcofflink.c (xcoff_link_add_symbols): Ignore global linkage
2755
        code when linking statically.
2756
 
2757
2009-06-02  H.J. Lu  
2758
 
2759
        * elf32-i386.c (elf_i386_check_relocs): Increment
2760
        got.refcount for R_386_GOT32/R_386_GOTOFF relocations
2761
        against STT_GNU_IFUNC symbol.
2762
        (elf_i386_allocate_dynrelocs): Set got.refcount to 0 if
2763
        local STT_GNU_IFUNC definition is used.
2764
        (elf_i386_relocate_section): Handle got.offset != -1 for
2765
        R_386_GOT32/R_386_GOTOFF relocations against STT_GNU_IFUNC
2766
        symbol.
2767
 
2768
        * elf64-x86-64.c (elf64_x86_64_check_relocs): Increment
2769
        got.refcount for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64
2770
        relocations against STT_GNU_IFUNC symbol.
2771
        (elf64_x86_64_allocate_dynrelocs): Set got.refcount to 0 if
2772
        local STT_GNU_IFUNC definition is used.
2773
        (elf64_x86_64_relocate_section): Handle got.offset != -1
2774
        for R_X86_64_GOTPCREL/R_X86_64_GOTPCREL64 relocations against
2775
        STT_GNU_IFUNC symbol.
2776
 
2777
2009-06-01  H.J. Lu  
2778
 
2779
        PR ld/10205
2780
        * elf32-i386.c (elf_howto_table): Add R_386_IRELATIVE.
2781
        (elf_i386_reloc_type_lookup): Likewise.
2782
        (R_386_tls): Removed.
2783
        (R_386_irelative): New.
2784
        (R_386_vt_offset): Updated.
2785
        (elf_i386_rtype_to_howto): Likewise.
2786
        (elf_i386_link_hash_table): Add igotplt, iplt and irelplt.
2787
        (elf_i386_link_hash_table_create): Initialize igotplt,
2788
        iplt and irelplt.
2789
        (elf_i386_check_relocs): Handle STT_GNU_IFUNC symbol first.
2790
        (elf_i386_adjust_dynamic_symbol): Likewise.
2791
        (elf_i386_allocate_dynrelocs): Likewise.
2792
        (elf_i386_relocate_section): Likewise.
2793
        (elf_i386_size_dynamic_sections): Set up .iplt and .igot.plt
2794
        sections.
2795
        (elf_i386_finish_dynamic_symbol): When building a static
2796
        executable, use .iplt, .igot.plt and .rel.iplt sections for
2797
        STT_GNU_IFUNC symbols.  Generate R_386_IRELATIVE relocation for
2798
        locally defined STT_GNU_IFUNC symbol.
2799
 
2800
        * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_IRELATIVE.
2801
        (x86_64_reloc_map): Likewise.
2802
        (R_X86_64_standard): Updated.
2803
        (elf64_x86_64_link_hash_table): Add igotplt, iplt and irelplt.
2804
        (elf64_x86_64_link_hash_table_create): Initialize igotplt,
2805
        iplt and irelplt.
2806
        (elf64_x86_64_check_relocs): Handle STT_GNU_IFUNC symbol first.
2807
        (elf64_x86_64_adjust_dynamic_symbol): Likewise.
2808
        (elf64_x86_64_allocate_dynrelocs): Likewise.
2809
        (elf64_x86_64_relocate_section): Likewise.
2810
        (elf64_x86_64_size_dynamic_sections): Set up .iplt and .igot.plt
2811
        sections.
2812
        (elf64_x86_64_finish_dynamic_symbol): When building a static
2813
        executable, use .iplt, .igot.plt and .rela.iplt sections for
2814
        STT_GNU_IFUNC symbols.  Generate R_X86_64_IRELATIVE relocation
2815
        for locally defined STT_GNU_IFUNC symbol.
2816
 
2817
        * reloc.c (BFD_RELOC_386_IRELATIVE): New.
2818
        (BFD_RELOC_X86_64_IRELATIVE): Likewise.
2819
 
2820
        * bfd-in2.h: Regenerated.
2821
        * libbfd.h: Likewise.
2822
 
2823
2009-06-01  H.J. Lu  
2824
 
2825
        * elf-bfd.h (struct bfd_elf_section_data): Remove indirect_relocs.
2826
        (_bfd_elf_make_ifunc_reloc_section): Removed.
2827
        (_bfd_elf_is_ifunc_symbol): Likewise.
2828
        (_bfd_elf_create_static_ifunc_sections): New.
2829
 
2830
        * elflink.c (_bfd_elf_adjust_dynamic_symbol): Move STT_GNU_IFUNC
2831
        symbol check to ...
2832
        (elf_link_add_object_symbols): Here.
2833
        (_bfd_elf_link_hash_hide_symbol): Don't clean plt on
2834
        STT_GNU_IFUNC symbol.
2835
        (elf_link_output_extsym): Call elf_backend_finish_dynamic_symbol
2836
        if a STT_GNU_IFUNC symbol is referenced in a non-shared object.
2837
        (IFUNC_INFIX): Removed.
2838
        (get_ifunc_reloc_section_name): Likewise.
2839
        (_bfd_elf_make_ifunc_reloc_section): Likewise.
2840
        (_bfd_elf_is_ifunc_symbol): Likewise.
2841
        (_bfd_elf_create_static_ifunc_sections): New.
2842
 
2843
2009-05-29  H.J. Lu  
2844
 
2845
        * elf32-i386.c (link_hash_newfunc): Add elf_i386_ prefix.
2846
        (create_got_section): Likewise.
2847
        (allocate_dynrelocs): Likewise.
2848
        (readonly_dynrelocs): Likewise.
2849
        (set_tls_module_base): Likewise.
2850
        (dtpoff_base): Likewise.
2851
        (tpoff): Likewise.
2852
        (elf_i386_link_hash_table_create): Updated.
2853
        (elf_i386_create_dynamic_sections): Likewise.
2854
        (elf_i386_check_relocs): Likewise.
2855
        (elf_i386_size_dynamic_sections): Likewise.
2856
        (elf_i386_relocate_section): Likewise.
2857
 
2858
        * elf64-x86-64.c (link_hash_newfunc): Add elf64_x86_64_ prefix.
2859
        (create_got_section): Likewise.
2860
        (allocate_dynrelocs): Likewise.
2861
        (readonly_dynrelocs): Likewise.
2862
        (set_tls_module_base): Likewise.
2863
        (dtpoff_base): Likewise.
2864
        (tpoff): Likewise.
2865
        (elf64_x86_64_link_hash_table_create): Updated.
2866
        (elf64_x86_64_create_dynamic_sections): Likewise.
2867
        (elf64_x86_64_check_relocs): Likewise.
2868
        (elf64_x86_64_size_dynamic_sections): Likewise.
2869
        (elf64_x86_64_relocate_section): Likewise.
2870
 
2871
2009-05-28  Nick Clifton  
2872
 
2873
        * targets.c (_bfd_target_vector): Only include plugin target in
2874
        all-targets build if BFD_SUPPORTS_PLUGINS is non-zero.
2875
 
2876
2009-05-28  Ulrich Weigand  
2877
 
2878
        * elf32-spu.c (struct call_info): New member broken_cycle.
2879
        (remove_cycle): Instead of physically removing call_info structures
2880
        to break call graph cycles, mark them using the broken_cycle flag.
2881
        (mark_overlay_section): Respect broken_cycle flag.
2882
        (unmark_overlay_section): Likewise.
2883
        (collect_lib_sections): Likewise.
2884
        (collect_overlays): Likewise.
2885
        (sum_stack): Likewise.
2886
 
2887
2009-05-28  Ulrich Weigand  
2888
 
2889
        * elf32-spu.c (insert_callee): Accumulate incoming callee->count.
2890
        (mark_functions_via_relocs): Initialize callee->count to 1.
2891
        (pasted_function): Likewise.
2892
        (spu_elf_auto_overlay): Honor call counts when determining number
2893
        of stubs required in software i-cache mode.
2894
 
2895
2009-05-27  Rafael Avila de Espindola  
2896
 
2897
        * plugin.c (program_name): Remove.
2898
        (plugin_program_name): New.
2899
        (bfd_plugin_set_program_name): New.
2900
        (try_load_plugin): Use plugin_program_name.
2901
        * plugin.h (bfd_plugin_set_program_name): New.
2902
 
2903
2009-05-27  Rafael Avila de Espindola  
2904
 
2905
        * aclocal.m4: Include ../config/plugins.m4.
2906
        * configure.in: Use AC_PLUGINS.
2907
        * configure: Regenerate.
2908
        * Makefile.in: Regenerate.
2909
        * doc/Makefile.in: Regenerate.
2910
 
2911
2009-05-27  Nathan Sidwell  
2912
 
2913
        * elf32-ppc.c (ppc_elf_relax_section): Work with a partial
2914
        link.
2915
        * bout.c (b_out_bfd_relax_section): Reject relocatable links.
2916
        * elf32-m10300.c (mn10300_elf_relax_section): Likewise.
2917
        * elf32-avr.c (elf32_avr_relax_section): Likewise.
2918
        * elf32-frv.c (elf32_avr_relax_section): Likewise.
2919
        * elf32-xtensa.c (elf_xtensa_relax_section): Likewise.
2920
        * elf64-mmix.c (mmix_elf_relax_section): Likewise.
2921
        * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
2922
        * elfxx-sparc.c (_bfd_sparc_elf_relax_section): Likewise.
2923
        * reloc.c (bfd_generic_relax_section): Likewise.
2924
        * reloc16.c (bfd_coff_reloc16_relax_section): Likewise.
2925
        * vms.c (vms_bfd_relax_section): Likewise.
2926
 
2927
2009-05-26  H.J. Lu  
2928
 
2929
        * elf-bfd.h (_bfd_elf_is_ifunc_symbol): New.
2930
 
2931
        * elf32-i386.c (is_indirect_symbol): Renamed to ...
2932
        * elflink.c (_bfd_elf_is_ifunc_symbol): This.
2933
 
2934
        * elf32-i386.c (allocate_dynrelocs): Updated.
2935
        (elf_i386_relocate_section): Likewise.
2936
        * elf64-x86-64.c (allocate_dynrelocs): Likewise.
2937
        (elf64_x86_64_relocate_section): Likewise.
2938
 
2939
        * elf64-x86-64.c (is_indirect_symbol): Removed.
2940
 
2941
2009-05-26  Nick Clifton  
2942
 
2943
        * po/id.po: Updated Indonesian translation.
2944
 
2945
2009-05-26  Rafael Avila de Espindola  
2946
 
2947
        * Makefile.am: Run "make dep-am".
2948
        (AM_CPPFLAGS): New.
2949
        (LIBDL): New.
2950
        (ALL_MACHINES): Add cpu-plugin.lo.
2951
        (ALL_MACHINES_CFILES): Add cpu-plugin.c.
2952
        (BFD32_BACKENDS): Add plugin.lo.
2953
        (BFD32_BACKENDS_CFILES): Add plugin.c.
2954
        (libbfd_la_LIBADD): Add LIBDL
2955
        * archures.c (bfd_architecture): Add bfd_arch_plugin.
2956
        (bfd_plugin_arch): Declare.
2957
        * bfd-in.h (BFD_SUPPORTS_PLUGINS): New.
2958
        * bfd.c (bfd): Add plugin_data.
2959
        * config.bfd: Handle the plugin target.
2960
        * configure.in: Check for --enable-plugins.
2961
        (LT_INIT): Use the dlopen option.
2962
        * cpu-plugin.c: New.
2963
        * plugin.c: New.
2964
        * plugin.h: New.
2965
        * targets.c (plugin_vec): Declare.
2966
        (_bfd_target_vector): Add plugin_vec.
2967
        * Makefile.in: Regenerate.
2968
        * bfd-in2.h: Regenerate.
2969
        * configure: Regenerate.
2970
 
2971
2009-05-26  Alan Modra  
2972
 
2973
        * dep-in.sed: Don't modify .o to .lo here.  Output one filename
2974
        per line with all lines having continuation backslash.  Prefix
2975
        first line with "A", following lines with "B".
2976
        * Makefile.am (DEP): Don't use dep.sed here.
2977
        (DEP1): Run $MKDEP on single files, modify .o to .lo here.  Use
2978
        dep.sed here on dependencies, sort and uniq.
2979
        * Makefile.in: Regenerate.
2980
 
2981
2009-05-25  Tristan Gingold  
2982
 
2983
        * makefile.vms: Add verilog.obj to object list OBJS.
2984
 
2985
2009-05-24  Alan Modra  
2986
 
2987
        * bfdio.c (bfd_seek): Formatting.  Ensure newly allocated memory
2988
        for BFD_IN_MEMORY is cleared.
2989
        (bfd_bwrite): Zero excess memory allocated.
2990
 
2991
2009-05-22  Julian Brown  
2992
 
2993
        * elf32-arm.c (THUMB16_BCOND_INSN, THUMB32_INSN, THUMB32_B_INSN): New
2994
        macros.
2995
        (elf32_arm_stub_a8_veneer_b_cond, elf32_arm_stub_a8_veneer_b)
2996
        (elf32_arm_stub_a8_veneer_blx): New stub sequences.
2997
        (elf32_arm_stub_type): Add arm_stub_a8_veneer_b_cond,
2998
        arm_stub_a8_veneer_b and arm_stub_a8_veneer_blx.
2999
        (elf32_arm_stub_hash_entry): Add target_addend, orig_insn fields.
3000
        (a8_erratum_fix, a8_erratum_reloc): New structs.
3001
        (elf32_arm_link_hash_table): Add a8_erratum_fixes,
3002
        num_a8_erratum_fixes, fix_cortex_a8 fields.
3003
        (elf32_arm_link_hash_table_create): Zero fix_cortex_a8.
3004
        (elf32_arm_add_stub): Split into two parts, creating...
3005
        (elf32_arm_create_or_find_stub_sec): New function.
3006
        (elf32_arm_final_link_relocate): Add forward declaration.
3007
        (arm_build_one_stub): Add support for THUMB32_TYPE, Thumb-2
3008
        relocations, multiple relocations per stub.
3009
        (find_stub_size_and_template): New (using parts of arm_size_one_stub).
3010
        (arm_size_one_stub): Use find_stub_size_and_template.
3011
        (a8_reloc_compare): New.
3012
        (find_thumb_glue): Add forward declaration.
3013
        (cortex_a8_erratum_scan): New.
3014
        (elf32_arm_size_stubs): Add Cortex-A8 erratum workaround support.
3015
        (bfd_elf32_arm_set_cortex_a8_fix): New.
3016
        (bfd_elf32_arm_set_target_relocs): Add fix_cortex_a8 argument.
3017
        (arm_map_one_stub): Add THUMB32_TYPE support.
3018
        (a8_branch_to_stub_data): New.
3019
        (make_branch_to_a8_stub): New.
3020
        (elf32_arm_write_section): Add Cortex-A8 erratum workaround support.
3021
        * bfd-in.h (bfd_elf32_arm_set_cortex_a8_fix): New.
3022
        (bfd_elf32_arm_set_target_relocs): Add argument for controlling
3023
        Cortex-A8 erratum workaround.
3024
        * bfd-in2.h: Regenerate.
3025
 
3026
2009-05-22  Alan Modra  
3027
 
3028
        * Makefile.am: Run "make dep-am".
3029
        * Makefile.in: Regenerate.
3030
        * po/SRC-POTFILES.in: Regenerate.
3031
 
3032
2009-05-21  Alan Modra  
3033
 
3034
        * elflink.c (elf_link_input_bfd): Correct *pindex change in last
3035
        commit.
3036
 
3037
2009-05-21  Alan Modra  
3038
 
3039
        * elf-bfd.h (struct elf_backend_data
3040
        ): Return an int.
3041
        * elf64-ppc.c (ppc64_elf_output_symbol_hook): Return 2 to drop
3042
        symbols on deleted .opd entries.
3043
        * elflink.c (elf_link_output_sym): Return without outputting sym
3044
        if output_symbol_hook returns 2.
3045
        (elf_link_output_extsym): Don't assign h->indx when symbol discarded.
3046
        Abort if we must not discard sym.
3047
        (elf_link_input_bfd): Similarly, don't set finfo->indices for
3048
        local syms.
3049
        (bfd_elf_final_link): Adjust elf_link_output_sym calls.
3050
        * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Adjust for
3051
        elf_backend_link_output_symbol_hook return type change.
3052
        * elf32-arm.c (output_arch_syminfo): Likewise.
3053
        (elf32_arm_output_map_sym, elf32_arm_output_stub_sym): Likewise.
3054
        (elf32_arm_output_arch_local_syms): Likewise.
3055
        * elf32-cr16c.c (elf32_cr16c_link_output_symbol_hook): Likewise.
3056
        * elf32-score.c (s3_bfd_score_elf_link_output_symbol_hook): Likewise.
3057
        (bfd_score_elf_link_output_symbol_hook): Likewise.
3058
        * elf32-score.h (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
3059
        * elf32-score7.c (s7_bfd_score_elf_link_output_symbol_hook): Likewise.
3060
        * elf32-sh64.c (sh64_elf_link_output_symbol_hook): Likewise.
3061
        * elf32-spu.c (spu_elf_output_symbol_hook): Likewise.
3062
        * elf32-v850.c (v850_elf_link_output_symbol_hook): Likewise.
3063
        * elf64-hppa.c (elf64_hppa_link_output_symbol_hook): Likewise.
3064
        * elf64-mmix.c (mmix_elf_link_output_symbol_hook): Likewise.
3065
        * elf64-sh64.c (sh64_elf64_link_output_symbol_hook): Likewise.
3066
        * elf64-sparc.c (elf64_sparc_output_arch_syms): Likewise.
3067
        * elfxx-mips.c (_bfd_mips_elf_link_output_symbol_hook): Likewise.
3068
        * elfxx-mips.h (_bfd_mips_elf_link_output_symbol_hook): Likewise.
3069
 
3070
2009-05-21  Alan Modra  
3071
 
3072
        * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't segfault on
3073
        out of range .opd symbols.
3074
 
3075
2009-05-21  Dave Korn  
3076
 
3077
        * coffgen.c (coff_print_symbol):  Use bfd_fprintf_vma, not
3078
        fprintf_vma directly.
3079
        * peXXigen.c (pe_print_edata):  Likewise.
3080
        (pe_print_pdata):  Likewise.
3081
        (_bfd_XX_print_ce_compressed_pdata):  Likewise.
3082
        (_bfd_XX_print_private_bfd_data_common):  Likewise.
3083
 
3084
2009-05-19  Dave Korn  
3085
 
3086
        * cofflink.c (process_embedded_commands):  Ignore "-aligncomm".
3087
 
3088
2009-05-15  Andrew Stubbs  
3089
            Paul Brook  
3090
 
3091
        * elf32-arm.c (elf32_arm_fix_exidx_coverage): Don't attempt to
3092
        fix discarded sections.
3093
 
3094
2009-05-14  Ulrich Weigand  
3095
 
3096
        * elf32-spu.c (mark_overlay_section): Move .init and .fini
3097
        sections into the software icache.
3098
 
3099
2009-05-14  Ulrich Weigand  
3100
 
3101
        * elf32-spu.c (build_stub): Always build "compact" sofware
3102
        i-cache stubs.
3103
 
3104
2009-05-14  Ulrich Weigand  
3105
 
3106
        * elf32-spu.c (struct spu_link_hash_table): Add fromelem_size_log2.
3107
        (spu_elf_setup): Initialize it.
3108
        (spu_elf_size_stubs): Move .ovtab into .bss for software i-cache.
3109
        Update to new-sytle cache manager data structures.
3110
        (spu_elf_build_stubs): Generate new-style cache manager data
3111
        structures and symbols.
3112
        (spu_elf_auto_overlay): Update size computation.
3113
 
3114
2009-05-14  Ulrich Weigand  
3115
 
3116
        * elf32-spu.c (spu_elf_modify_segment_map): Move all PF_OVERLAY
3117
        segments first amongst the program headers.
3118
 
3119
2009-05-14  Ulrich Weigand  
3120
 
3121
        * elf32-spu.c (spu_elf_relocate_section): Only encode overlay index
3122
        into addresses for relocation types that look at high bits.  Remove
3123
        special handling of relocation overflow warnings.
3124
 
3125
2009-05-14  Ulrich Weigand  
3126
 
3127
        * elf32-spu.c (mark_functions_via_relocs): Handle cycles in the
3128
        control flow graph between fragments of a function.
3129
 
3130
2009-05-14  Ulrich Weigand  
3131
 
3132
        * elf32-spu.c (spu_elf_size_stubs): Even in software i-cache mode,
3133
        generate only a 16-byte .toe section.
3134
        (spu_elf_build_stubs, spu_elf_auto_overlay): Likewise.
3135
 
3136
2009-05-14  Alan Modra  
3137
 
3138
        * elf32-spu.c (spu_elf_size_stubs): Split out section placement to..
3139
        (spu_elf_place_overlay_data): ..here.  New function.
3140
        * elf32-spu.h (spu_elf_place_overlay_data): Declare.
3141
 
3142
2009-05-13  Andrew Jenner  
3143
 
3144
        * elf32-arm.c: Move sysdep.h to start of file.
3145
 
3146
2009-05-11  Ulrich Weigand  
3147
 
3148
        * elf32-spu.c (spu_elf_find_overlays): Don't use .ovl.init lma as
3149
        start of overlays.
3150
        (spu_elf_build_stubs): Don't define __icache_tagbase.  Define
3151
        __icache_tag_array and __icache_tag_array_size.
3152
 
3153
2009-05-11  Masaki Muranaka  
3154
 
3155
        * elf32-bfin.c (bfin_bfd_reloc_type_lookup): Remove unnecessary
3156
        ATTRIBUTE_UNUSED.
3157
        (bfinfdpic_link_omit_section_dynsym): Likewise.
3158
        (elf32_bfinfdpic_finish_dynamic_sections): Likewise.
3159
 
3160
2009-05-05  Paul Brook  
3161
 
3162
        * bfd-in.h (elf32_arm_fix_exidx_coverage): Add prototype.
3163
        * bfd-in2.h: Regenerate.
3164
        * elf32-arm.c (arm_unwind_edit_type, arm_unwind_table_edit): Define.
3165
        (_arm_elf_section_data): Add text and exidx fields.
3166
        (add_unwind_table_edit, get_arm_elf_section_data, adjust_exidx_size,
3167
        insert_cantunwind_after, elf32_arm_fix_exidx_coverage, offset_prel31,
3168
        copy_exidx_entry): New functions.
3169
        (elf32_arm_write_section): Fixup .ARM.exidx contents.
3170
 
3171
2009-05-05  Christophe lyon  
3172
 
3173
        * elf32-arm.c (DEF_STUBS): New helper define.
3174
        (DEF_STUB): Likewise.
3175
        (stub_def): New type.
3176
        (stub_definitions): New array, containing stub template pointers
3177
        and sizes.
3178
        (arm_size_one_stub): Make use of stub_definitions.
3179
 
3180
2009-05-04  Dave Korn  
3181
 
3182
        * elflink.c (find_version_for_sym):  Remove from here, ...
3183
        * linker.c (bfd_find_version_for_sym):  ... rename, replace
3184
        here, make public and update all callers.
3185
        * bfd-in2.h:  Regenerate.
3186
 
3187
2009-04-30  Nick Clifton  
3188
 
3189
        * elf-bfd.h (struct bfd_elf_section_data): Add indirect_relocs
3190
        section pointer.
3191
        (struct elf_obj_data): Add has_ifunc_symbols boolean.
3192
        * elf.c (swap_out_syms): Convert BSF_GNU_INDIRECT_FUNCTION flags
3193
        into a STT_GNU_IFUNC symbol type.
3194
        (_bfd_elf_is_function_type): Accept STT_GNU_IFUNC as a function
3195
        type.
3196
        (_bfd_elf_set_osabi): Set the osasbi field to ELFOSABI_LINUX if
3197
        the binary contains ifunc symbols.
3198
        * elfcode.h (elf_slurp_symbol_table): Translate the STT_GNU_IFUNC
3199
        symbol type into a BSF_GNU_INDIRECT_FUNCTION flag.
3200
        * elf32-i386.c (is_indirect_function): New function.
3201
        (elf_i386_check_relocs): Create an ifunc output section.
3202
        (allocate_dynrelocs): Create dynamic relocs in the ifunc output
3203
        section if necessary.
3204
        (elf_i386_relocate_section): Emit a reloc against an ifunc symbol
3205
        if necessary.
3206
        (elf_i386_add_symbol_hook): New function. Set the
3207
        has_ifunc_symbols field of the elf_obj_data structure if an ifunc
3208
        symbol is encountered.
3209
        (elf_backend_post_process_headers): Define.
3210
        (elf_backend_add_symbol_hook): Define.
3211
        (elf_i386_post_process_headers): Rename to
3212
        elf_i388_fbsd_post_process_headers.
3213
        * elf64-x86_64.c (IS_X86_64_PCREL_TYPE): New macro.
3214
        (is_indirect_function): New function.
3215
        (elf64_x86_64_check_relocs): Create an ifunc output section.
3216
        (allocate_dynrelocs): Create dynamic relocs in the ifunc output
3217
        section if necessary.
3218
        (elf64_x86_64_relocate_section): Emit a reloc against an ifunc
3219
        symbol if necessary.
3220
        (elf_i386_add_symbol_hook): Set the has_ifunc_symbols field of the
3221
        elf_obj_data structure if an ifunc symbol is encountered.
3222
        (elf_backend_post_process_headers): Define.
3223
        * elflink.c (_bfd_elf_adjust_dynamic_symbol): Always create a PLT
3224
        if we have ifunc symbols to handle.
3225
        (get_ifunc_reloc_section_name): New function.  Computes the name
3226
        for an ifunc section.
3227
        (_bfd_elf_make_ifunc_reloc_section): New function.  Creates a
3228
        section to hold ifunc relocs.
3229
        * syms.c (BSF_GNU_INDIRECT_FUNCTION): Define.
3230
        (bfd_print_symbol_vandf): Handle ifunc symbols.
3231
        (bfd_decode_symclass): Likewise.
3232
        * bfd-in2.h: Regenerate.
3233
 
3234
2009-04-30  Joseph Myers  
3235
 
3236
        * elf32-arm.c (elf32_arm_check_relocs): Give errors for absolute
3237
        MOVW and MOVT relocations in a shared library link.
3238
 
3239
2009-04-27  Anthony Green  
3240
 
3241
        * verilog.c: New file.
3242
        * Makefile.am (BFD32_LIBS): Add verilog.c.
3243
        (BFD32_LIBS_CFILES): Add verilog.c.
3244
        (verilog.lo): New build rule.
3245
        * Makefile.in: Rebuilt.
3246
        * targets.c: Add verilog support.
3247
        * bfd.c (tdata union): Add Verilog private data field.
3248
        * bfd-in2.h: Regenerate.
3249
 
3250
2009-04-27  H.J. Lu  
3251
 
3252
        * peXXigen.c (_bfd_XX_bfd_copy_private_bfd_data_common): Don't
3253
        copy pe_opthdr.
3254
 
3255
2009-04-23  Matthias Klose  
3256
 
3257
        * peXXigen.c (_bfd_XXi_swap_sym_in): Initialize `name'.
3258
 
3259
2009-04-22  Christophe Lyon  
3260
 
3261
        PR9743
3262
        * elf32-arm.c (arm_type_of_stub): Handle R_ARM_THM_JUMP24,
3263
        R_ARM_JUMP24 and R_ARM_PLT32 relocations.
3264
        (elf32_arm_size_stubs): Likewise.
3265
        (record_thumb_to_arm_glue): Deleted unused function.
3266
        (bfd_elf32_arm_process_before_allocation): No longer handle
3267
        R_ARM_THM_JUMP24, R_ARM_JUMP24 and R_ARM_PLT32 relocations here.
3268
        (elf32_arm_final_link_relocate): Handle R_ARM_THM_JUMP24,
3269
        R_ARM_JUMP24 and R_ARM_PLT32 relocations.
3270
 
3271
2009-04-21  Daniel Jacobowitz  
3272
 
3273
        * elf32-arm.c (INTERWORK_FLAG): Check BFD_LINKER_CREATED.
3274
        (elf32_arm_write_section): Declare early.
3275
        (elf32_arm_size_stubs): Skip non-stub sections in the stub BFD.
3276
        (arm_allocate_glue_section_space): Exclude empty sections.
3277
        (ARM_GLUE_SECTION_FLAGS): Add SEC_LINKER_CREATED.
3278
        (bfd_elf32_arm_add_glue_sections_to_bfd): Do not skip the stub
3279
        BFD.
3280
        (elf32_arm_output_glue_section, elf32_arm_final_link): New.
3281
        (elf32_arm_merge_eabi_attributes): Skip the stub BFD.
3282
        (elf32_arm_size_dynamic_sections): Allocate interworking
3283
        sections here.
3284
        (bfd_elf32_bfd_final_link): Define.
3285
 
3286
2009-04-21  H.J. Lu  
3287
 
3288
        * coff-ia64.c (COFF_PAGE_SIZE): Changed to 8K.
3289
 
3290
        * coffcode.h (coff_compute_section_file_positions): Clear
3291
        D_PAGED if PE section alignment is smaller than COFF_PAGE_SIZE.
3292
 
3293
        * libcoff-in.h (pe_tdata): Remove force_minimum_alignment and
3294
        force_minimum_alignment.
3295
 
3296
        * libcoff.h: Regenerated.
3297
 
3298
        * pei-ia64.c (PEI_TARGET_SUBSYSTEM): Removed.
3299
        (PEI_FORCE_MINIMUM_ALIGNMENT): Likewise.
3300
 
3301
        * peicode.h (pe_mkobject): Don't set force_minimum_alignment
3302
        nor target_subsystem.
3303
 
3304
        * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Don't check
3305
        force_minimum_alignment nor target_subsystem.
3306
 
3307
2009-04-21  Kai Tietz  
3308
 
3309
        * coff-x86_64.c (PEI_HEADERS): Protect includes.
3310
        (bfd_pe_print_pdata): Remove #ifdef PE variation.
3311
        * pei-x86_64.c (PEI_HEADERS): Define to prevent double
3312
        include in coff-x86_64.c of headers.
3313
        (PDATA_ROW_SIZE): New define.
3314
        (pex_regs[]): New static array.
3315
        (pex64_get_runtime_function): New static function.
3316
        (pex64_get_unwind_info): Likewise.
3317
        (pex64_get_scope_entry): Likewise.
3318
        (pex64_xdata_print_uwd_codes): Likewise.
3319
        (pex64_get_section_by_rva): Likewise.
3320
        (pex64_dump_xdata): Likewise.
3321
        (pex64_bfd_print_pdata): Likewise.
3322
        (bfd_pe_print_pdata): Define as pex64_bfd_print_pdata.
3323
        * peXXigen.c (_bfd_pex64_print_pdata): Removed implementation.
3324
        * libpei.h (_bfd_pex64_print_pdata): Removed declaration.
3325
 
3326
2009-04-19  Peter O'Gorman  
3327
            Alan Modra  
3328
            Dave Korn  
3329
 
3330
        * peXXigen.c (_bfd_XXi_swap_sym_in): Fix name handling w.r.t
3331
        long names and non-NUL-terminated strings.
3332
 
3333
2009-04-17  H.J. Lu  
3334
 
3335
        * bfd-in2.h: Regenerated.
3336
 
3337
2009-04-17  H.J. Lu  
3338
 
3339
        * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Replace
3340
        IMAGE_SUBSYSTEM_EFI_ROM with IMAGE_SUBSYSTEM_SAL_RUNTIME_DRIVER.
3341
 
3342
2009-04-17  H.J. Lu  
3343
 
3344
        PR binutils/10074
3345
        * coffcode.h (bfd_pei_p): New.
3346
 
3347
        * config.bfd: Remove bfd_efi_bsdrv_ia32_vec,
3348
        bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
3349
        bfd_efi_rtdrv_x86_64_vec, bfd_efi_bsdrv_ia64_vec and
3350
        bfd_efi_rtdrv_ia64_vec.  Replace bfd_efi_app_ia32_vec,
3351
        bfd_efi_app_x86_64_vec and bfd_efi_app_ia64_vec with
3352
        i386pei_vec, x86_64pei_vec and bfd_pei_ia64_vec, respectively.
3353
 
3354
        * configure.in: Remove bfd_efi_bsdrv_ia32_vec,
3355
        bfd_efi_rtdrv_ia32_vec, bfd_efi_bsdrv_x86_64_vec,
3356
        bfd_efi_rtdrv_x86_64_vec,
3357
        bfd_efi_bsdrv_ia64_vec and bfd_efi_rtdrv_ia64_vec.  Replace
3358
        bfd_efi_ia64_vec with bfd_pei_ia64_vec.
3359
        * targets.c: Likewise.
3360
 
3361
        * configure: Regenerated.
3362
        * libcoff.h: Likewise.
3363
        * Makefile.in: Likewise.
3364
 
3365
        * efi-app-ia32.c: Removed.
3366
        * efi-app-x86_64.c: Likewise.
3367
        * efi-bsdrv-ia32.c: Likewise.
3368
        * efi-bsdrv-ia64.c: Likewise.
3369
        * efi-bsdrv-x86_64.c: Likewise.
3370
        * efi-rtdrv-ia32.c: Likewise.
3371
        * efi-rtdrv-ia64.c: Likewise.
3372
        * efi-rtdrv-x86_64.c: Likewise.
3373
        * efi-rtdrv-ia32.c: Likewise.
3374
 
3375
        * efi-app-ia64.c: Moved to ...
3376
        * pei-ia64.c: This.
3377
        (TARGET_SYM): Set to bfd_pei_ia64_vec.
3378
        (TARGET_NAME): Set to pei-ia64.
3379
 
3380
        * libpei.h (bfd_target_pei_p): Removed.
3381
        (bfd_target_pei_arch): Likewise.
3382
        (bfd_target_efi_app_p): Likewise.
3383
        (bfd_target_efi_app_arch): Likewise.
3384
        (bfd_target_efi_bsdrv_p): Likewise.
3385
        (bfd_target_efi_bsdrv_arch): Likewise.
3386
        (bfd_target_efi_rtdrv_p): Likewise.
3387
        (bfd_target_efi_rtdrv_arch): Likewise.
3388
        (bfd_pe_executable_p): Likewise.
3389
 
3390
        * Makefile.am (BFD32_BACKENDS): Remove efi-app-ia32.lo,
3391
        efi-bsdrv-ia32.lo and efi-rtdrv-ia32.lo.
3392
        (BFD32_BACKENDS_CFILES): Remove efi-app-ia32.c, efi-bsdrv-ia32.c
3393
        and efi-rtdrv-ia32.c.
3394
        (BFD64_BACKENDS): Remove efi-app-ia64.lo, efi-bsdrv-ia64.lo,
3395
        efi-rtdrv-ia64.lo, efi-app-x86_64.lo, efi-bsdrv-x86_64.lo and
3396
        efi-rtdrv-x86_64.lo. Add pei-ia64.lo.
3397
        (BFD64_BACKENDS_CFILES): Remove efi-app-ia64.c, efi-bsdrv-ia64.c,
3398
        efi-rtdrv-ia64.c, efi-app-x86_64.c, efi-bsdrv-x86_64.c and
3399
        efi-rtdrv-x86_64.c. Add pei-ia64.c.
3400
        (efi-app-ia64.lo): Removed.
3401
        (efi-bsdrv-ia32.lo): Likewise.
3402
        (efi-rtdrv-ia32.lo): Likewise.
3403
        (efi-app-ia64.lo): Likewise.
3404
        (efi-bsdrv-ia64.lo): Likewise.
3405
        (efi-rtdrv-ia64.lo): Likewise.
3406
        (efi-app-x86_64.lo): Likewise.
3407
        (efi-bsdrv-x86_64.lo): Likewise.
3408
        (efi-rtdrv-x86_64.lo): Likewise.
3409
        (pei-ia64.lo): New.
3410
 
3411
        * peicode.h (coff_swap_scnhdr_in): Replace bfd_pe_executable_p
3412
        with bfd_pei_p.
3413
        (arch_type): Removed.
3414
        (pe_arch): Likewise.
3415
        (pe_bfd_object_p): Just return coff_object_p.
3416
 
3417
        * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Replace
3418
        bfd_pe_executable_p with bfd_pei_p.
3419
 
3420
2009-04-17  Christophe Lyon  
3421
 
3422
        * elf32-arm.c (elf32_arm_size_stubs): Handle long branches through
3423
        PLT entries to an undefined symbol when generating a shared
3424
        library.
3425
 
3426
2009-04-17  Nick Clifton  
3427
 
3428
        PR 9909
3429
        * coffcode.h (handle_COMDAT): Allow for external COMDAT symbols.
3430
 
3431
2009-04-16  Richard Sandiford  
3432
 
3433
        * aout-adobe.c (aout_32_bfd_define_common_symbol): Define.
3434
        * aout-target.h (MY_bfd_define_common_symbol): Likewise.
3435
        * aout-tic30.c (MY_bfd_define_common_symbol): Likewise.
3436
        * binary.c (binary_bfd_define_common_symbol): Likewise.
3437
        * bout.c (b_out_bfd_define_common_symbol): Likewise.
3438
        * coff-alpha.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
3439
        * coff-mips.c (_bfd_ecoff_bfd_define_common_symbol): Likewise.
3440
        * coffcode.h (coff_bfd_define_common_symbol): Likewise.
3441
        * elfxx-target.h (bfd_elfNN_bfd_define_common_symbol): Likewise.
3442
        * i386msdos.c (msdos_bfd_define_common_symbol): Likewise.
3443
        * i386os9k.c (os9k_bfd_define_common_symbol): Likewise.
3444
        * ieee.c (ieee_bfd_define_common_symbol): Likewise.
3445
        * ihex.c (ihex_bfd_define_common_symbol): Likewise.
3446
        * libbfd-in.h (_bfd_nolink_bfd_define_common_symbol): Likewise.
3447
        * mach-o.c (bfd_mach_o_bfd_define_common_symbol): Likewise.
3448
        * mmo.c (mmo_bfd_define_common_symbol): Likewise.
3449
        * nlm-target.h (nlm_bfd_define_common_symbol): Likewise.
3450
        * oasys.c (oasys_bfd_define_common_symbol): Likewise.
3451
        * pef.c (bfd_pef_bfd_define_common_symbol): Likewise.
3452
        * ppcboot.c (ppcboot_bfd_define_common_symbol): Likewise.
3453
        * som.c (som_bfd_define_common_symbol): Likewise.
3454
        * srec.c (srec_bfd_define_common_symbol): Likewise.
3455
        * tekhex.c (tekhex_bfd_define_common_symbol): Likewise.
3456
        * versados.c (versados_bfd_define_common_symbol): Likewise.
3457
        * vms.c (vms_bfd_define_common_symbol): Likewise.
3458
        * xcoff-target.h (_bfd_xcoff_bfd_define_common_symbol): Likewise.
3459
        * xsym.c (bfd_sym_bfd_define_common_symbol): Likewise.
3460
        * coff-rs6000.c (rs6000coff_vec): Add _bfd_xcoff_define_common_symbol.
3461
        (pmac_xcoff_vec): Likewise.
3462
        * coff64-rs6000.c (rs6000coff64_vec): Likewise.
3463
        (aix5coff64_vec): Likewise.
3464
        * linker.c (bfd_generic_define_common_symbol): New function.
3465
        * targets.c (BFD_JUMP_TABLE_LINK): Add NAME##_bfd_define_common_symbol.
3466
        (_bfd_define_common_symbol): New field.
3467
        * libcoff-in.h (_bfd_xcoff_define_common_symbol): Declare.
3468
        * xcofflink.c (_bfd_xcoff_define_common_symbol): New function.
3469
        (xcoff_build_ldsyms): Don't set XCOFF_DEF_REGULAR for common
3470
        symbols here.
3471
        * bfd-in2.h: Regenerate.
3472
        * libbfd.h: Likewise.
3473
        * libcoff.h: Likewise.
3474
 
3475
2009-04-15  Anthony Green  
3476
 
3477
        * targets.c: Add moxie support.
3478
        * Makefile.am: Ditto.
3479
        * Makefile.in: Rebuilt.
3480
        * cpu-moxie.c, elf32-moxie.c: New files.
3481
        * archures.c: Add moxie support.
3482
        * configure.in: Add moxie support.
3483
        * configure: Rebuilt.
3484
        * config.bfd, archures.c: Add moxie support.
3485
        * bfd-in2.h: Rebuilt.
3486
 
3487
2009-04-15  Christophe Lyon  
3488
 
3489
        * elf32-arm.c (elf32_arm_final_link_relocate): Don't convert ARM
3490
        branch to an undef weak symbol into a jump to next instruction if
3491
        a PLT entry will be created.
3492
 
3493
2009-04-14  Dave Korn  
3494
 
3495
        * coffgen.c (make_a_section_from_file):  Set the backend long
3496
        section names enable if long section names found on input.
3497
        * coffcode.h:  Extend long section names documentation to match.
3498
 
3499
2009-04-08  H.J. Lu  
3500
 
3501
        * elflink.c (elf_link_add_object_symbols): Warn alternate ELF
3502
        machine code.
3503
 
3504
2009-04-07  DJ Delorie  
3505
 
3506
        * archures.c: Add bfd_mach_mep_c5.
3507
        * bfd-in2.h: Likewise.
3508
        * cpu-mep.c: Add bfd_c5_arch.
3509
        * elf32-mep.c: Support it.
3510
 
3511
2009-04-07  H.J. Lu  
3512
 
3513
        * elflink.c (_bfd_elf_section_already_linked): Add `\n' for
3514
        info->callbacks->einfo.
3515
        * linker.c (_bfd_generic_section_already_linked): Likewise.
3516
 
3517
2009-04-06  DJ Delorie  
3518
 
3519
        * elf32-h8300.c (elf32_h8_relax_section): Relax MOVA opcodes.
3520
 
3521
2009-04-06  H.J. Lu  
3522
 
3523
        * coff-x86_64.c (bfd_pe_print_pdata): Defined to
3524
        _bfd_pex64_print_pdata only if PE is defined.
3525
 
3526
        * libpei.h (_bfd_pep_print_x64_pdata): Renamed to ...
3527
        (_bfd_pex64_print_pdata): This.
3528
 
3529
        * peXXigen.c (_bfd_pep_print_x64_pdata): Renamed to ...
3530
        (_bfd_pex64_print_pdata): This.  Defined only if COFF_WITH_pex64
3531
        is defined.
3532
 
3533
2009-04-05  Kai Tietz  
3534
 
3535
        * coff-x86_64.c (bfd_pe_print_pdata): Define as
3536
        _bfd_pep_print_x64_pdata.
3537
        * libpei.h (_bfd_pep_print_x64_pdata): Add prototype.
3538
        * peXXigen.c (_bfd_pep_print_x64_pdata): New.
3539
 
3540
2009-04-02  Sterling Augustine  
3541
 
3542
        * elf32-xtensa.c (relax_property_section): Always set r_offset
3543
        to zero.
3544
 
3545
2009-04-02  Christophe Lyon  
3546
 
3547
        * elf32-arm.c (elf32_arm_stub_long_branch_v4t_thumb_thumb,
3548
        elf32_arm_stub_long_branch_v4t_thumb_thumb_pic): Two new long
3549
        branch stubs.
3550
        (elf32_arm_stub_type): New enum values for the two new stubs.
3551
        (arm_type_of_stub): Make use of the two new stubs.
3552
        (arm_size_one_stub): Handle the two new stubs.
3553
 
3554
2009-04-01  Matt Thomas  
3555
 
3556
        * elf32-vax.c (elf_vax_check_relocs): Do not put relocations against
3557
        hidden symbols into the GOT or PLT.GOT.
3558
        (elf_vax_relocate_section): Do not emit a PCREL reloc
3559
        into a shared object if it is against a hidden symbol.
3560
 
3561
2009-04-01  Richard Sandiford  
3562
 
3563
        * xcofflink.c (xcoff_archive_info): Add contains_shared_object_p
3564
        and know_contains_shared_object_p.
3565
        (xcoff_archive_contains_shared_object_p): Add an "info" parameter.
3566
        Cache the result in the archive_info table.
3567
        (xcoff_auto_export_p): Add an "info" parameter and update the
3568
        call to xcoff_archive_contains_shared_object_p.
3569
        (xcoff_mark_auto_exports): Update accordingly.
3570
        (xcoff_post_gc_symbol): Likewise.
3571
 
3572
2009-04-01  Richard Sandiford  
3573
 
3574
        * xcofflink.c (bfd_link_input_bfd): Treat __rtinit as C_HIDEXT
3575
        rather than C_EXT.
3576
 
3577
2009-04-01  Richard Sandiford  
3578
 
3579
        * coff-rs6000.c (member_layout): New structure.
3580
        (archive_iterator): Likewise.
3581
        (member_layout_init): New function.
3582
        (archive_iterator_begin): Likewise.
3583
        (archive_iterator_next): Likewise.
3584
        (xcoff_write_armap_old): Use the new iterator functions.
3585
        (do_shared_object_padding): Delete.
3586
        (xcoff_write_armap_big): Use the new iterator functions.  Simplify
3587
        handling of arch_info.
3588
        (xcoff_write_archive_contents_old): Allocate arelt_data in the
3589
        first loop rather than the second.  Allocate a member header if
3590
        there isn't one, then work out the stat information and length
3591
        in the first loop too.  Use the new iterators for the second loop.
3592
        (xcoff_write_archive_contents_big): Likewise.
3593
 
3594
2009-04-01  Richard Sandiford  
3595
 
3596
        * bfd-in.h (bfd_xcoff_split_import_path): Declare.
3597
        (bfd_xcoff_set_archive_import_path): Likewise.
3598
        * bfd-in2.h: Regenerate.
3599
        * xcofflink.c: Include libiberty.h.
3600
        (xcoff_archive_info): New structure.
3601
        (xcoff_archive_info_hash): New function.
3602
        (xcoff_archive_info_eq): Likewise.
3603
        (xcoff_get_archive_info): Likewise.
3604
        (_bfd_xcoff_bfd_link_hash_table_create): Initialize archive_info.
3605
        (bfd_xcoff_split_import_path): New function.
3606
        (bfd_xcoff_set_archive_import_path): Likewise.
3607
        (xcoff_set_import_path): Move earlier in file.
3608
        (xcoff_link_add_dynamic_symbols): Set the import path of a non-archive
3609
        object to the the directory part of the bfd's filename.  Get the
3610
        import path and filename of an archive object from the archive's
3611
        xcoff_tdata, initializing it if necessary.  Update use of
3612
        import_file_id.
3613
        (bfd_link_input_bfd): Update use of import_file_id.
3614
        (xcoff_write_global_symbol): Likewise.
3615
 
3616
2009-04-01  Richard Sandiford  
3617
 
3618
        * xcofflink.c (xcoff_link_hash_table): Moved from include/coff/xcoff.h.
3619
 
3620
2009-04-01  Richard Sandiford  
3621
 
3622
        * xcofflink.c (xcoff_link_create_extra_sections): Don't create
3623
        a .loader section for relocatable links.
3624
        (xcoff_need_ldrel_p): New function.
3625
        (xcoff_mark): Use it.
3626
        (bfd_xcoff_link_count_reloc): Only count loader relocs if there's
3627
        a loader section.
3628
        (xcoff_build_ldsym): New function, split out from...
3629
        (xcoff_build_ldsyms): ...here.  Rename to...
3630
        (xcoff_post_gc_symbol): ...this.  Only export symbols, and only
3631
        call xcoff_build_ldsym, if there's a loader section.
3632
        (xcoff_build_loader_section): New function, extracted verbatim from...
3633
        (bfd_xcoff_size_dynamic_sections): ...here.  Only call it if
3634
        there's a loader section.  Only add an __rtinit loader symbol
3635
        if there's a loader section.  Update after above name change.
3636
        (xcoff_symbol_section, xcoff_create_ldrel): New functions.
3637
        (bfd_link_input_bfd): Use xcoff_need_ldrel_p, xcoff_symbol_section
3638
        and xcoff_create_ldrel.
3639
        (xcoff_write_global_symbol): Use xcoff_create_ldrel.
3640
        (xcoff_reloc_link_order): Likewise, but only call it if there's
3641
        a loader section.  Use xcoff_symbol_section.
3642
        (_bfd_xcoff_bfd_final_link): Only use fdinfo.ldrel and fdinfo.ldsym
3643
        if there's a loader section.
3644
 
3645
2009-04-01  Richard Sandiford  
3646
 
3647
        * xcofflink.c (bfd_link_input_bfd): Fix buffer overrun.
3648
 
3649
2009-04-01  Christophe Lyon  
3650
 
3651
        * elf32-arm.c (group_sections): Rewrite loops for better
3652
        readability.
3653
 
3654
2009-03-30  DJ Delorie  
3655
 
3656
        * elflink.c (elf_link_input_bfd): Don't try to resolve complex
3657
        relocs when doing a relocatable link.
3658
 
3659
2009-03-28  Mark Mitchell  
3660
 
3661
        * coff-arm.c (coff_arm_merge_private_bfd_data): Use "error:", not
3662
        "ERROR:", in error messages.
3663
        * cpu-arm.c (bfd_arm_merge_machines): Likewise.
3664
        * elf-attrs.c (_bfd_elf_merge_object_attributes): Likewise.
3665
        * elf32-arm.c (tag_cpu_arch_combine): Likewise.
3666
        (elf32_arm_merge_eabi_attributes): Likewise.
3667
        (elf32_arm_merge_private_bfd_data): Likewise.
3668
 
3669
2009-03-27  Nick Clifton  
3670
 
3671
        * section.c (bfd_get_section_contents): Detect and handle the case
3672
        where a section has the SEC_IN_MEMORY flag set but no actual
3673
        contents allocated.
3674
 
3675
2009-03-26  Alan Modra  
3676
 
3677
        PR 6494
3678
        * elf.c (copy_elf_program_header): Do not check that PT_GNU_RELRO
3679
        p_filesz and p_memsz are equal.  Use p_memsz as the segment size.
3680
        (assign_file_positions_for_non_load_sections): Zap PT_GNU_RELRO
3681
        if we don't find matching PT_LOAD when copying.
3682
 
3683
2009-03-25  M R Swami Reddy 
3684
 
3685
        * elf32-crx.c (crx_elf_howto_table): Zero the src_mask field of
3686
        the reloc descriptions.
3687
 
3688
2009-03-25  Hans-Peter Nilsson  
3689
 
3690
        * elf32-cris.c (cris_elf_relocate_section) 
3691
        : Handle COMMON symbols.
3692
        : Ditto.
3693
 
3694
2009-03-24  H.J. Lu  
3695
 
3696
        * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Make it static.
3697
        (bfd_i386_arch_intel_syntax): Likewise.
3698
        (i8086_arch): Likewise.
3699
        (bfd_x86_64_arch): Likewise.
3700
 
3701
2009-03-24  Hans-Peter Nilsson  
3702
 
3703
        * elf32-cris.c (cris_elf_relocate_section): 
3704
        R_CRIS_16_DTPREL, R_CRIS_32_DTPREL>: Allow use of non-local
3705
        symbols for non-allocated sections.  Don't check whether to
3706
        generate R_CRIS_DTPMOD for non-allocated sections.
3707
        (cris_elf_gc_sweep_hook) : Don't
3708
        handle relocation GC:ing if applied to non-allocated section.
3709
        (cris_elf_check_relocs): Similar.
3710
 
3711
        * elf32-cris.c (cris_elf_relocate_section) 
3712
        : Don't include the TLS size
3713
        when emitting a known TP offset in the GOT.
3714
 
3715
2009-03-23  Alan Modra  
3716
 
3717
        * elf64-ppc.c (synthetic_opd): Delete.
3718
        (compare_symbols): Look for .opd name rather than section match.
3719
        (ppc64_elf_get_synthetic_symtab): Likewise.
3720
 
3721
2009-03-21  Alan Modra  
3722
 
3723
        * elf32-ppc.c (is_pic_glink_stub): Delete.
3724
        (is_nonpic_glink_stub): New function.
3725
        (ppc_elf_get_synthetic_symtab): Check for last non-pic stub rather
3726
        than first pic one.
3727
        (struct ppc_elf_link_hash_table ): Comment fix.
3728
 
3729
2009-03-20  Martin Schwidefsky  
3730
            Andreas Krebbel  
3731
 
3732
        * elf32-s390.c (elf_s390_check_relocs): Use the SYMBOL_*
3733
        macros for visibilty and locality checks.
3734
        (elf_s390_adjust_dynamic_symbol): Likewise.
3735
        (allocate_dynrelocs): Likewise.
3736
        (elf_s390_relocate_section): Likewise.
3737
        (elf_s390_finish_dynamic_symbol): Likewise.
3738
        * elf64-s390.c (elf_s390_check_relocs): Likewise.
3739
        (elf_s390_adjust_dynamic_symbol): Likewise.
3740
        (allocate_dynrelocs): Likewise.
3741
        (elf_s390_relocate_section): Likewise.
3742
        (elf_s390_finish_dynamic_symbol): Likewise.
3743
 
3744
2009-03-19  Kai Tietz  
3745
 
3746
        * bfd-in2.h: Regenerated.
3747
        * coffcode.h (sec_to_styp_flags): For pe-coff add SEC_READONLY
3748
        for debugging sections and map memory read/write dependent on
3749
        SEC_COFF_NOREAD.
3750
        (styp_to_sec_flags): Set SEC_COFF_NOREAD for sections
3751
        without memory read flags set.
3752
        * section.c: Add SEC_COFF_NOREAD to section flags.
3753
 
3754
2009-03-19  Andreas Schwab  
3755
 
3756
        * elf32-hppa.c (final_link_relocate): Cast bfd_vma values to long
3757
        for format string.
3758
 
3759
2009-03-19  Alan Modra  
3760
 
3761
        * elf32-spu.c (spu_elf_find_overlays): Separate error return from
3762
        "no overlays" return.  If there are overlays, create overlay
3763
        manager entry symbols here, so that..
3764
        (spu_elf_build_stubs): ..we don't need to set them up here.
3765
        Simplify entry symbol tests.
3766
        * elf32-spu.h (spu_elf_find_overlays): Update prototype.
3767
 
3768
2009-03-18  Mark Kettenis  
3769
 
3770
        * elf.c (elfcore_grok_openbsd_procinfo)
3771
        (elfcore_grok_openbsd_note): New functions.
3772
        (elf_parse_notes): Handle notes from OpenBSD ELF core files.
3773
 
3774
2009-03-18  Alan Modra  
3775
 
3776
        * vms-hdr.c: Don't include alloca.h.
3777
        * elf32-m68hc1x.c: Include alloca-conf.h.
3778
        * xsym.c: Likewise.
3779
        * elf64-hppa.c: Likewise.  Remove existing #if's handling alloca.
3780
        * som.c: Likewise.
3781
        * Makefile.am: Run "make dep-am".
3782
        * Makefile.in: Regenerate.
3783
 
3784
2009-03-17  Daniel Jacobowitz  
3785
 
3786
        * elf32-arm.c (elf32_arm_check_relocs): Correct symbian_p test.
3787
 
3788
2009-03-17  Alan Modra  
3789
 
3790
        * elf32-spu.h (struct spu_elf_params): ovly_flavour now only 1 bit.
3791
        Add compact_stub.
3792
        (emum _ovly_flavour): Delete ovly_compact, ovly_none.
3793
        * elf32-spu.c (struct spu_link_hash_table): Replace ovly_load and
3794
        ovly_return fields with ovly_entry[2].  Adjust all users.
3795
        (spu_elf_find_overlays): Set ovly_entry[1] from __icache_call_handler
3796
        when soft-icache.
3797
        (spu_elf_build_stubs): Likewise.
3798
        (ovl_stub_size): Change arg to spu_elf_params pointer.  Adjust for
3799
        ovly_flavour changes.  Update all callers.
3800
        (ovl_stub_size_log2): New function.
3801
        (build_stub): Handle compact icache stubs.  Use different manager
3802
        entry point for stubs in non-icache area.
3803
        (spu_elf_size_stubs): Don't allocate space for indirect branch
3804
        descriptors.
3805
        (spu_elf_build_stubs): And don't built them.
3806
 
3807
2009-03-16  Andrew Stubbs  
3808
 
3809
        * dwarf2.c (read_section): Always use rawsize, if available.
3810
 
3811
2009-03-16  Alan Modra  
3812
 
3813
        * simple.c (bfd_simple_get_relocated_section_contents): Use larger
3814
        of rawsize and size for buffer.
3815
 
3816
2009-03-15  Ulrich Weigand  
3817
 
3818
        * elf32-spu.c (spu_elf_check_vma): Do not reset auto_overlay
3819
        parameter just because fixed sections fit into local store.
3820
        (spu_elf_auto_overlay): Do not declare as "noreturn".  Skip
3821
        generating overlays if fixed sections plus reserved stack
3822
        and heap space fit into local store.
3823
 
3824
2009-03-15  Alan Modra  
3825
 
3826
        * elf32-spu.c (build_stub): Correct icache set_id.
3827
        (spu_elf_relocate_section): Likewise.
3828
 
3829
2009-03-14  Richard Sandiford  
3830
 
3831
        * xcofflink.c (xcoff_link_check_archive_element): Only free the
3832
        symbol table if it was created by the current call.
3833
 
3834
2009-03-14  Richard Sandiford  
3835
 
3836
        * xcofflink.c (xcoff_build_ldsyms): Give imported descriptors
3837
        class XMC_DS rather than XMC_UA.
3838
 
3839
2009-03-14  Richard Sandiford  
3840
 
3841
        * bfd-in.h (bfd_xcoff_size_dynamic_sections): Replace the
3842
        bfd_boolean export_defineds parameter with an unsigned int
3843
        auto_export_flags parameter.
3844
        * bfd-in2.h: Regenerate.
3845
        * xcofflink.c (xcoff_archive_contains_shared_object_p): New function,
3846
        split out from xcoff_build_ldsyms.
3847
        (xcoff_covered_by_expall_p): New function.
3848
        (xcoff_auto_export_p): New function, split out from xcoff_build_ldsyms
3849
        but with extra code to handle -bexpfull and -bexpall.
3850
        (xcoff_mark_auto_exports): New function.
3851
        (xcoff_build_ldsyms): Use xcoff_auto_export_p to decide whether
3852
        a function should be automatically exported.
3853
        (bfd_xcoff_size_dynamic_sections): Replace the export_defineds
3854
        parameter with an auto_export_flags parameter.  Update ldinfo
3855
        accordingly.  Use xcoff_mark_auto_exports to mark all automatically-
3856
        exported symbols.
3857
 
3858
2009-03-14  Richard Sandiford  
3859
 
3860
        * xcofflink.c (xcoff_mark_symbol_by_name): New function.
3861
        (bfd_xcoff_size_dynamic_sections): Use it to mark the entry,
3862
        init and fini functions.  Do garbage collection for objects
3863
        without an entry point too.
3864
 
3865
2009-03-14  Richard Sandiford  
3866
 
3867
        * coffcode.h (coff_pointerize_aux_hook): Update CSECT_SYM_P to
3868
        check whether a symbol has csect information.
3869
        (coff_print_aux): Likewise.
3870
        * coff-rs6000.c (_bfd_xcoff_swap_aux_in): Handle auxillary csect
3871
        information for C_AIX_WEAKEXT too.
3872
        (_bfd_xcoff_swap_aux_out): Likewise.
3873
        (xcoff_reloc_type_br): Handle defweak symbols too.
3874
        * coff64-rs6000.c (_bfd_xcoff64_swap_aux_in): Handle auxillary csect
3875
        information for C_AIX_WEAKEXT too.
3876
        (_bfd_xcoff64_swap_aux_out): Likewise.
3877
        (xcoff64_reloc_type_br): Handle defweak symbols too.
3878
        * coffgen.c (coff_print_symbol): Handle auxillary function
3879
        information for C_AIX_WEAKEXT too.
3880
        * xcofflink.c (_bfd_xcoff_canonicalize_dynamic_symtab): Set BSF_WEAK
3881
        instead of BSF_GLOBAL if the L_WEAK flag is set.
3882
        (xcoff_dynamic_definition_p): New function.
3883
        (xcoff_link_add_dynamic_symbols): Use it to decide whether ldsym
3884
        defines h.  Don't change h if ldsym isn't the definition.  Otherwise,
3885
        always take the symbol class from the ldsym.  Use weak bfd symbol
3886
        types for weak ldsyms.
3887
        (xcoff_link_add_symbols): Use CSECT_SYM_P and EXTERN_SYM_P.
3888
        Fix the check for whether a definition is from a shared object.
3889
        Allow redefinitions of weak symbols.
3890
        (xcoff_link_check_ar_symbols): Use EXTERN_SYM_P.
3891
        (xcoff_keep_symbol_p): Likewise.
3892
        (bfd_xcoff_size_dynamic_sections): Use CSECT_SYM_P.
3893
        (xcoff_link_input_bfd): Use CSECT_SYM_P and EXTERN_SYM_P.
3894
        Add .loader entries for C_AIX_WEAKEXT as well as C_EXT symbols,
3895
        but mark them as L_WEAK.
3896
        (xcoff_write_global_symbol): Treat weak symbols as C_AIX_WEAKEXT
3897
        instead of C_EXT if C_AIX_WEAKEXT == C_WEAKEXT.
3898
 
3899
2009-03-14  Richard Sandiford  
3900
 
3901
        * xcofflink.c (xcoff_mark): When walking the relocations,
3902
        only mark the target symbol or the target section, not both.
3903
        (xcoff_final_definition_p): New function.
3904
        (xcoff_keep_symbol_p): Use it to check whether an external XCOFF
3905
        symbol is a valid definition of the associated output symbol.
3906
        Use XCOFF_ALLOCATED to stop the same hash table entry having
3907
        two output symbols.
3908
        (bfd_xcoff_size_dynamic_sections): Set XCOFF_ALLOCATED when
3909
        keeping a symbol.
3910
        (xcoff_link_input_bfd): Use xcoff_final_definition_p.
3911
 
3912
2009-03-14  Richard Sandiford  
3913
 
3914
        * xcofflink.c (bfd_xcoff_import_symbol): Treat imported absolute
3915
        symbols as XMC_XO.
3916
 
3917
2009-03-14  Richard Sandiford  
3918
 
3919
        * libcoff-in.h (xcoff_tdata): Add a lineno_counts field.
3920
        * libcoff.h: Regenerate.
3921
        * xcofflink.c (xcoff_link_add_symbols): Record per-symbol
3922
        line-number counts in the bfd's lineno_counts field.
3923
        Don't keep per-csect line-number counts.
3924
        (xcoff_sweep): Don't update per-csect line-number counts.
3925
        (bfd_xcoff_size_dynamic_sections): Count the number of line-number
3926
        entries in each output section.
3927
        (xcoff_link_input_bfd): Get the number of line numbers from
3928
        the bfd's lineno_counts field, rather than recalculating it
3929
        from scratch.  Fix the range check when updating C_BINCL and
3930
        C_EINCL symbols.
3931
        (_bfd_xcoff_bfd_final_link): Don't count the output line numbers
3932
        here.  Don't expect csects to have line-number counts.
3933
 
3934
2009-03-14  Richard Sandiford  
3935
 
3936
        * libcoff-in.h (xcoff_tdata): Change debug_indices to a signed long.
3937
        * libcoff.h: Regenerate.
3938
        * xcofflink.c (xcoff_keep_symbol_p): New function, using the
3939
        "skip" logic from xcoff_link_input_bfd.
3940
        (bfd_xcoff_size_dynamic_sections): Explicitly skip dynamic
3941
        objects in a dynamic link, rather than checking whether csectpp
3942
        is null.  Always allocate debug_index for other objects,
3943
        and always go through the loop.  Update the type of debug_index
3944
        after the change above.  Read the auxillary csect information
3945
        and use xcoff_keep_symbol_p to decide whether a symbol should
3946
        be kept.  Set its debug_index to -2 if not.
3947
        (xcoff_link_input_bfd): Update the type of debug_index after
3948
        the change above and always expect it to be nonnull.  Use it to
3949
        test whether a symbol should be stripped, rather than making the
3950
        decision here.  Postpone all symbol creation to the second pass.
3951
 
3952
2009-03-14  Richard Sandiford  
3953
 
3954
        * xcofflink.c: (xcoff_mark_symbol): Mark the TOC section when
3955
        creating a descriptor.
3956
        (xcoff_sweep): Don't mark toc_section unless it's needed.
3957
        (bfd_xcoff_size_dynamic_sections): Skip the toc_section
3958
        when marking every bfd.
3959
        (xcoff_link_input_bfd): Skip all TOC anchors.
3960
        (xcoff_toc_section_p, xcoff_find_tc0): New functions.
3961
        (_bfd_xcoff_bfd_final_link): Don't set the output bfd's TOC anchor
3962
        to -1; call xcoff_find_tc0 instead.
3963
 
3964
2009-03-14  Richard Sandiford  
3965
 
3966
        * libcoff-in.h (xcoff_section_tdata): Update commentary.
3967
        * libcoff.h: Regenerate.
3968
        * xcofflink.c (xcoff_link_add_symbols): Set the csect of XTY_ER
3969
        symbols to bfd_und_section_ptr or bfd_abs_section_ptr, rather than
3970
        the previous symbol's csect.  Treat last_symndx as an inclusive value
3971
        and simplify its handling.
3972
        (xcoff_mark): Treat last_symndx as an inclusive value.  Only mark
3973
        symbols with the right csect.  Don't mark rsec when processing
3974
        relocations against undefined or absolute sections.
3975
        (bfd_xcoff_size_dynamic_sections): Don't check the SEC_MARK flag
3976
        of bfd_und_section_ptr.
3977
        (xcoff_link_input_bfd): Likewise.
3978
 
3979
2009-03-14  Richard Sandiford  
3980
 
3981
        * coff-rs6000.c (xcoff_ppc_relocate_section): Report relocations
3982
        against undefined symbols if the symbol's XCOFF_WAS_UNDEFINED
3983
        flag is set.  Assert that all undefined symbols are either
3984
        imported or defined by a dynamic object.
3985
        * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
3986
        * xcofflink.c (xcoff_link_add_symbols): Extend function-symbol
3987
        handling to all relocations.  Only set XCOFF_CALLED for function
3988
        symbols.
3989
        (xcoff_find_function): New function, split out from...
3990
        (bfd_xcoff_export_symbol) ...here.
3991
        (xcoff_set_import_path): New function, split out from...
3992
        (bfd_xcoff_import_symbol): ...here.  Remove assertion for old
3993
        meaning of XCOFF_CALLED.
3994
        (xcoff_mark_symbol): If we mark an undefined and unimported
3995
        symbol, find some way of defining it.  If the symbol is a function
3996
        descriptor, fill in its definition automatically.  If the symbol
3997
        is a function, mark its descriptor and allocate room for global
3998
        linkage code.  Otherwise mark the symbol as implicitly imported.
3999
        Move the code for creating function descriptors from...
4000
        (xcoff_build_ldsyms): ...here.  Use XCOFF_WAS_UNDEFINED to
4001
        check for symbols that were implicitly defined.
4002
        (xcoff_mark): Don't count any dynamic relocations against
4003
        function symbols.
4004
        (bfd_xcoff_size_dynamic_sections): Save the rtld parameter
4005
        in the xcoff link info.
4006
        (xcoff_link_input_bfd): Remove handling of undefined and
4007
        unexported symbols.
4008
 
4009
2009-03-14  Richard Sandiford  
4010
 
4011
        * coff-rs6000.c (xcoff_reloc_type_br): Make the branch absolute
4012
        if the target is absolute.  Fix comment typo.
4013
        (xcoff_ppc_relocate_section): Remove FIXME.
4014
        * coff64-rs6000.c (xcoff64_reloc_type_br): Make the branch absolute
4015
        if the target is absolute.
4016
 
4017
2009-03-14  Richard Sandiford  
4018
 
4019
        * xcofflink.c (xcoff_mark, xcoff_link_input_bfd): Don't copy
4020
        R_POS and R_NEG relocations against absolute symbols to the
4021
        .loader section.
4022
 
4023
2009-03-14  Richard Sandiford  
4024
 
4025
        * coff64-rs6000.c (xcoff64_write_object_contents): Set the cputype
4026
        to 2 for bfd_mach_ppc_620.
4027
 
4028
2009-03-14  Richard Sandiford  
4029
 
4030
        * config.bfd: Treat AIX 6+ in the same way as AIX 5.
4031
        * configure.in: Likewise.
4032
        * configure: Regenerate.
4033
 
4034
2009-03-13  H.J. Lu  
4035
 
4036
        PR binutils/9945
4037
        * elf.c (assign_section_numbers): Generate symbol table if there
4038
        is any relocation in output.
4039
        (_bfd_elf_compute_section_file_positions): Likewise.
4040
 
4041
2009-03-13  Nick Clifton  
4042
 
4043
        PR 9934
4044
        * elf-bfd.h (NUM_SHDR_ENTRIES): Cope with an empty section.
4045
        * elflink.c (elf_link_read_relocs_from_section): Use
4046
        NUM_SHDR_ENTRIES.  Gracefully handle the case where there are
4047
        relocs but no symbol table.
4048
        * elf32-arm.c (elf32_arm_check_relocs): Likewise.
4049
 
4050
2009-03-12  H.J. Lu  
4051
 
4052
        PR ld/9938
4053
        * elf32-i386.c (elf_i386_check_tls_transition): Use strncmp
4054
        to check ___tls_get_addr.
4055
 
4056
        * elf64-x86-64.c (elf64_x86_64_check_tls_transition): Use
4057
        strncmp to check __tls_get_addr.
4058
 
4059
2009-03-12  Andrew Stubbs  
4060
 
4061
        * dwarf2.c (read_section): Always check the offset, even when the
4062
        section has been read before.
4063
 
4064
2009-03-11  H.J. Lu  
4065
 
4066
        * elf32-i386.c (elf_i386_check_tls_transition): Fix a typo in
4067
        comments.
4068
 
4069
2009-03-11  Chris Demetriou  
4070
 
4071
        * bfd.c (BFD_DETERMINISTIC_OUTPUT): New flag.
4072
        * bfd-in2.h: Regenerate.
4073
        * archive.c (bfd_ar_hdr_from_filesystem): If BFD_DETERMINISTIC_OUTPUT
4074
        flag is set, use 0 for uid, gid, and timestamp, and use 0644 for file
4075
        mode.
4076
        (bsd_write_armap): Likewise.
4077
        (_bfd_archive_bsd_update_armap_timestamp): If BFD_DETERMINISTIC_OUTPUT
4078
        flag is set, do nothing.
4079
        (coff_write_armap): If BFD_DETERMINISTIC_OUTPUT flag is set, use 0
4080
        for timestamp.
4081
 
4082
2009-03-11  Ulrich Weigand  
4083
 
4084
        * elf32-spu.c (find_function_stack_adjust): Handle sf instruction
4085
        used to update stack pointer.
4086
 
4087
2009-03-07  John David Anglin  
4088
 
4089
        PR binutils/9921
4090
        * som.c (som_bfd_derive_misc_symbol_info): Set symbol type ST_ABSOLUTE
4091
        for unknown symbols in absolute section.
4092
 
4093
2009-03-06  Nick Clifton  
4094
 
4095
        * po/es.po: Updated Spanish translation.
4096
 
4097
2009-03-05  Christophe Lyon  
4098
 
4099
        * elf32-arm.c (group_sections): Take next section size into
4100
        account before accepting to group it.
4101
 
4102
2009-03-05  Christophe Lyon  
4103
 
4104
        * elf32-arm.c (arm_type_of_stub): Handle long branches targetting
4105
        PLT entries.
4106
        (elf32_arm_final_link_relocate): Likewise.
4107
 
4108
2009-03-05  Moritz Kroll  
4109
 
4110
        PR 9923
4111
        * peXXigen.c (_bfd_XXi_final_link_postscript): Check h->root.type.
4112
 
4113
2009-03-04  Alan Modra  
4114
 
4115
        * reloc.c (BFD_RELOC_PPC_TLSGD, BFD_RELOC_PPC_TLSLD): New.
4116
        * section.c (struct bfd_section): Add has_tls_get_addr_call.
4117
        (BFD_FAKE_SECTION): Init new flag.
4118
        * ecoff.c (bfd_debug_section): Likewise.
4119
        * bfd-in2.h: Regenerate.
4120
        * libbfd.h: Regenerate.
4121
        * elf32-ppc.c (ppc_elf_howto_raw): Add R_PPC_TLSGD and R_PPC_TLSLD.
4122
        (ppc_elf_reloc_type_lookup): Handle new relocs.
4123
        (ppc_elf_check_relocs): Set has_tls_get_addr_call on finding such
4124
        without marker relocs.
4125
        (ppc_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
4126
        if section has no old-style calls.
4127
        (ppc_elf_relocate_section): Set tls_mask for non-tls relocs too.
4128
        Don't try to optimize new-style __tls_get_addr call when handling
4129
        arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
4130
        relocs.
4131
        * elf64-ppc.c (ppc64_elf_howto_raw): Add R_PPC64_TLSGD, R_PPC64_TLSLD.
4132
        (ppc64_elf_reloc_type_lookup): Handle new relocs.
4133
        (ppc64_elf_check_relocs): Set has_tls_get_addr_call on finding such
4134
        without marker relocs.
4135
        (ppc64_elf_tls_optimize): Allow out-of-order __tls_get_addr relocs
4136
        if section has no old-style calls.  Set toc_ref for new relocs as
4137
        appropriate.
4138
        (ppc64_elf_relocate_section): Set tls_mask for non-tls relocs too.
4139
        Don't try to optimize new-style __tls_get_addr call when handling
4140
        arg setup relocs.  Instead do so for R_PPC_TLSGD and R_PPC_TLSLD
4141
        relocs.
4142
 
4143
2009-03-04  Alan Modra  
4144
 
4145
        PR 6768
4146
        * configure.in: Test for ld --as-needed support.  Link shared
4147
        libbfd against libm.
4148
        * configure: Regenerate.
4149
 
4150
2009-03-03  Alan Modra  
4151
 
4152
        * Makefile.am: Run "make dep-am".
4153
        * Makefile.in: Regenerate.
4154
 
4155
2009-03-02  Qinwei  
4156
 
4157
        * elf32-score7.c: New file.
4158
        * elf32-score.h: New file.
4159
        * elf32-score.c: Add code to support score 7.  Set score7 as the
4160
        default.
4161
        * cpu-score.c: Add score7 architecure.
4162
        (compatibile): New function.
4163
        * Makefile.am: Add rules for building elf32-score7 object.
4164
        * Makefile.in: Regenerate.
4165
        * configure.in: Add elf32-score7 object to score vectors.
4166
        * configure: Regenerate.
4167
        * reloc.c: Add score7 relocs.
4168
        * archures.c: Add score3 and score7 machine numbers.
4169
        * bfd-in2.h: Regenerate.
4170
        * libbfd.h: Regenerate.
4171
 
4172
2009-03-01  Ralf Wildenhues  
4173
 
4174
        * configure: Regenerate.
4175
 
4176
2009-03-01  John David Anglin  
4177
 
4178
        * elf32-hppa.c (hppa32_elf_local_refcounts): New function.
4179
        (elf32_hppa_check_relocs): Use it.
4180
 
4181
        * elf_hppa_add_symbol_hook (elf_hppa_add_symbol_hook): Move to
4182
        elf64-hppa.c.
4183
        (elf_hppa_unmark_useless_dynamic_symbols): Likewise.
4184
        (elf_hppa_remark_useless_dynamic_symbols): Likewise.
4185
        (elf_hppa_is_dynamic_loader_symbol): Likewise.
4186
        (elf_hppa_record_segment_addrs): Likewise.
4187
        (elf_hppa_final_link): Likewise.
4188
        (elf_hppa_relocate_insn): Likewise.
4189
        (elf_hppa_final_link_relocate): Likewise.
4190
        (elf64_hppa_relocate_section): Likewise.
4191
        * elf64-hppa.c: Insert above.
4192
 
4193
2009-02-28  John David Anglin  
4194
 
4195
        * elf-hppa.h (elf_hppa_final_link): Use elf_hppa_final_link.
4196
        (elf_hppa_final_link_relocate ): Rewrite eliminating dynamic hash table.
4197
        (elf_hppa_relocate_section): Likewise.
4198
        * elf64-hppa.c (struct elf64_hppa_link_hash_entry): Change to derive
4199
        from struct elf_link_hash_entry.  Add count field.
4200
        (struct elf64_hppa_dyn_hash_table): Delete.
4201
        (struct elf64_hppa_link_hash_table): Delete dyn_hash_table field.
4202
        (elf64_hppa_hash_table): Rename to hppa_link_hash_table.
4203
        (hppa_elf_hash_entry, eh_name): Define.
4204
        (elf64_hppa_new_dyn_hash_entry): Delete.
4205
        (elf64_hppa_dyn_hash_lookup): Delete.
4206
        (elf64_hppa_dyn_hash_traverse): Delete.
4207
        (get_dyn_name): Delete.
4208
        (elf64_hppa_finalize_opd): Use struct elf_link_hash_entry * instead
4209
        of struct elf64_hppa_dyn_hash_entry *.
4210
        (elf64_hppa_finalize_dlt, llocate_global_data_dlt,
4211
        allocate_global_data_plt, allocate_global_data_stub,
4212
        allocate_global_data_opd, count_dyn_reloc, allocate_dynrel_entries):
4213
        Likewise.
4214
        (hppa64_link_hash_newfunc): New.
4215
        (elf64_hppa_hash_table_create): Rework.
4216
        (count_dyn_reloc): Likewise.
4217
        (hppa64_elf_local_refcounts): New.
4218
        (elf64_hppa_check_relocs): Rework using standard technique for recording
4219
        local DLT, PLT and OPD reference counts.
4220
        (elf64_hppa_dynamic_symbol_p): Revise using "eh" for struct
4221
        elf_link_hash_entry *.
4222
        (elf64_hppa_mark_exported_functions, allocate_global_data_dlt,
4223
        allocate_global_data_plt, allocate_global_data_stub,
4224
        allocate_global_data_opd, allocate_dynrel_entries,
4225
        elf64_hppa_adjust_dynamic_symbol,
4226
        elf64_hppa_mark_milli_and_exported_functions): Likewise.
4227
        (elf64_hppa_create_dynamic_sections, elf64_hppa_size_dynamic_sections):
4228
        Use hppa_link_hash_table.  Rework.
4229
        (elf64_hppa_link_output_symbol_hook): Rework.
4230
        (elf64_hppa_finish_dynamic_symbol, elf64_hppa_finalize_opd,
4231
        elf64_hppa_finalize_dlt, elf64_hppa_finalize_dynreloc,
4232
        elf64_hppa_finish_dynamic_sections): Likewise.
4233
 
4234
2009-02-26  Christophe Lyon  
4235
 
4236
        * elf32-arm.c (stub_reloc_type): Removed.
4237
        (insn_sequence): Renamed reloc_type field to r_type.
4238
        (elf32_arm_stub_long_branch_v4t_arm_thumb_pic): New stub.
4239
        (elf32_arm_stub_long_branch_v4t_thumb_arm_pic): Likewise.
4240
        (elf32_arm_stub_long_branch_thumb_only_pic): Likewise.
4241
        (elf32_arm_stub_type): Add new enum entries for the new stubs.
4242
        (arm_stub_is_thumb): Catch new stubs.
4243
        (arm_type_of_stub): Handle new stubs.
4244
        (arm_size_one_stub): Use ARRAY_SIZE. Handle new stubs.
4245
        (bfd_elf32_arm_process_before_allocation): Remove useless
4246
        condition.
4247
 
4248
2009-02-25  H.J. Lu  
4249
 
4250
        * elf.c (elf_find_function): Use is_function_type to check
4251
        function symbol.
4252
 
4253
2009-02-24  Sterling Augustine  
4254
 
4255
        * xtensa-modules.c: Revert to previous version 1.11 due
4256
        to inadvertant commit.
4257
 
4258
2009-02-24  Sterling Augustine  
4259
 
4260
        * elf32-xtensa.c (text_action_add): Separate test for action
4261
        type.  Break if saved action is ta_widen_insn at same offset.
4262
 
4263
2009-02-24  Daniel Jacobowitz  
4264
 
4265
        * elf32-arm.c (elf32_arm_stub_long_branch_any_any_pic): Rename
4266
        to elf32_arm_stub_long_branch_any_arm_pic.
4267
        (elf32_arm_stub_long_branch_any_thumb_pic): New.
4268
        (enum elf32_arm_stub_type, arm_type_of_stub)
4269
        (arm_size_one_stub): Handle any to ARM PIC and any to Thumb PIC
4270
        separately.
4271
 
4272
2009-02-24  Joseph Myers  
4273
 
4274
        * elf32-arm.c (PREV_SEC): Update comment.
4275
        (group_sections): Rename argument to stubs_always_after_branch.
4276
        Reverse the list and place stubs at the end of input sections.
4277
        Undefine NEXT_SEC.
4278
        (elf32_arm_size_stubs): Update to use stubs_always_after_branch.
4279
 
4280
2009-02-23  Daniel Jacobowitz  
4281
 
4282
        * elf32-arm.c (arm_build_one_stub): Initialize stub_reloc_offset.
4283
        Fix formatting.
4284
        (arm_size_one_stub): Remove unnecessary break.
4285
        (arm_map_one_stub): Fix formatting.  Return after BFD_FAIL.
4286
 
4287
2009-02-23  Christophe Lyon  
4288
 
4289
        * elf32-arm.c (stub_insn_type): New type.
4290
        (stub_reloc_type): Likewise.
4291
        (insn_sequence): Likewise.
4292
        (elf32_arm_stub_long_branch_any_any): Encode using insn_sequence.
4293
        (elf32_arm_stub_long_branch_v4t_arm_thumb): Likewise.
4294
        (elf32_arm_stub_long_branch_thumb_only): Likewise.
4295
        (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
4296
        (elf32_arm_stub_short_branch_v4t_thumb_arm): Likewise.
4297
        (elf32_arm_stub_long_branch_any_any_pic): Likewise.
4298
        (elf32_arm_stub_hash_entry): Add new helper fields.
4299
        (stub_hash_newfunc): Initialize these new fields.
4300
        (arm_build_one_stub): Encode Arm and Thumb instructions separately
4301
        to take endianness into account.
4302
        (arm_size_one_stub): Compute size of stubs using insn_sequence.
4303
        (arm_map_one_stub): Code is now more generic, thanks to
4304
        insn_sequence.
4305
 
4306
2009-02-23  Christophe Lyon  
4307
 
4308
        * elf32-arm.c (elf32_arm_stub_long_branch_thumb_only): Fix stub
4309
        code.
4310
        (elf32_arm_stub_long_branch_v4t_thumb_arm): Likewise.
4311
        (arm_type_of_stub): Use Thumb-only long branch stub (non-PIC) when
4312
        BLX is not available. Fix typo in warning message. Add comments
4313
        and improve formatting.
4314
        (arm_build_one_stub): Adjust to new
4315
        elf32_arm_stub_long_branch_v4t_thumb_arm stub.
4316
        (arm_map_one_stub): Likewise.
4317
 
4318
2009-02-23  Tristan Gingold  
4319
            Eric Botcazou  
4320
            Douglas B Rupp  
4321
 
4322
        * vms.h: Update copyright year, fix comments, reorder declarations.
4323
        (_bfd_save_vms_section): Remove the prototype.
4324
        (EGPS_S_V_NO_SHIFT): New constant.
4325
        (bfd_vms_set_section_flags): New prototype.
4326
        (EGPS_S_B_ALIGN, EGPS_S_W_FLAGS, EGPS_S_L_ALLOC, EGPS_S_B_NAMLNG): New
4327
        constants.
4328
        (EGSY_S_W_FLAGS): Ditto.
4329
        (EGSY_S_V_QUAD_VAL): Ditto.
4330
        (ESDF_S_L_VALUE, ESDF_S_L_PSINDX, ESDF_S_B_NAMLNG): Ditto.
4331
        (EGST_S_W_FLAGS, EGST_S_Q_LP_1, EGST_S_Q_LP_2, EGST_S_L_PSINDX,
4332
        EGST_S_B_NAMLNG): Ditto.
4333
        (ESRF_S_B_NAMLNG): Ditto.
4334
        (ETIR_S_C_HEADER_SIZE): Ditto.
4335
        (EGPS_S_V_ALLOC_64BIT): Ditto.
4336
        (DST_S_C_EPILOG): Ditto.
4337
        (DST_S_C_SRC_SETLNUM_L, DST_S_C_SRC_SETLNUM_W) : Ditto.
4338
        (DST_S_C_SRC_INCRLNUM_B): Ditto.
4339
        (DST_S_B_PCLINE_UNSBYTE, DST_S_W_PCLINE_UNSWORD): Ditto.
4340
        (DST_S_L_PCLINE_UNSLONG): Ditto.
4341
        (DST_S_B_MODBEG_NAME, DST_S_L_RTNBEG_ADDRESS) : Ditto
4342
        (DST_S_B_RTNBEG_NAME, DST_S_L_RTNEND_SIZE): Ditto
4343
        (DST_S_C_SOURCE_HEADER_SIZE): Ditto.
4344
        (DST_S_B_SRC_DF_LENGTH, DST_S_W_SRC_DF_FILEID): Ditto.
4345
        (DST_S_B_SRC_DF_FILENAME, DST_S_B_SRC_UNSBYTE): Ditto.
4346
        (DST_S_B_SRC_UNSBYTE): Ditto.
4347
        (DST_S_W_SRC_UNSWORD, DST_S_L_SRC_UNSLONG): Ditto.
4348
        Add prototypes.
4349
        (vms_section, vms_reloc): Remove types.
4350
        (hdr_struc): Replaced by ...
4351
        (hdr_struct): ... new type.
4352
        (EMH_S_W_HDRTYP, EMH_S_B_STRLVL, EMH_S_L_ARCH1): New constants.
4353
        (EMH_S_L_ARCH2, EMH_S_L_RECSIZ, EMH_S_B_NAMLNG): Ditto.
4354
        (EMH_DATE_LENGTH): Ditto.
4355
        (eom_struc): Replaced by ...
4356
        (eom_struct): ... new type.
4357
        (EEOM_S_L_TOTAL_LPS, EEOM_S_W_COMCOD, EEOM_S_B_TFRFLG): New constants.
4358
        (EEOM_S_L_PSINDX, EEOM_S_L_TFRADR): Ditto.
4359
        (EIHD_S_K_MAJORID, EIHD_S_K_MINORID, EIHD_S_K_EXE): Ditto.
4360
        (EIHD_S_L_SIZE, EIHD_S_L_ISDOFF, EIHD_S_L_SYMDBGOFF): Ditto.
4361
        (EIHD_S_Q_SYMVVA, EIHD_S_L_IMGTYPE): Ditto.
4362
        (EISD_S_L_EISDSIZE, EISD_S_L_SECSIZE, EISD_S_Q_VIR_ADDR): Ditto.
4363
        (EISD_S_L_FLAGS, EISD_S_L_VBN, EISD_S_R_CONTROL): Ditto.
4364
        (EISD_S_L_IDENT, EISD_S_T_GBLNAM): Ditto.
4365
        (EISD_S_M_GBL, EISD_S_M_CRF, EISD_S_M_DZRO, EISD_S_M_WRT): Ditto.
4366
        (EISD_S_M_INITALCODE, EISD_S_M_BASED, EISD_S_M_FIXUPVEC): Ditto.
4367
        (EISD_S_M_RESIDENT, EISD_S_M_VECTOR, EISD_S_M_PROTECT): Ditto.
4368
        (EISD_S_M_LASTCLU, EISD_S_M_EXE, EISD_S_M_NONSHRADR): Ditto.
4369
        (EISD_S_M_QUAD_LENGTH, EISD_S_M_ALLOC_64BIT): Ditto.
4370
        (EIHS_S_L_DSTVBN, EIHS_S_L_DSTSIZE, EIHS_S_L_GSTVBN): Ditto.
4371
        (EIHS_S_L_GSTSIZE, EIHS_S_L_DMTVBN, EIHS_S_L_DMTBYTES): Ditto.
4372
        (DBG_S_L_DMT_MODBEG, DBG_S_L_DST_SIZE): Ditto.
4373
        (DBG_S_W_DMT_PSECT_COUNT, DBG_S_C_DMT_HEADER_SIZE): Ditto.
4374
        (DBG_S_L_DMT_PSECT_START, DBG_S_L_DMT_PSECT_LENGTH)
4375
        (DBG_S_C_DMT_PSECT_SIZE): Ditto.
4376
        (enum file_type_enum): New type.
4377
        (struct location_struct): Removed.
4378
        (struct fileinfo, struct srecinfo, struct lineinfo): New types.
4379
        (struct funcinfo, struct module): Ditto.
4380
        (struct vms_private_data_struct): Update fields.
4381
        (struct vms_section_data_struct): New type.
4382
 
4383
        * vms.c: Update copyright year, fix comments,
4384
        Fix includes for DECC, add prototypes.
4385
        (vms_initialize): Use bfd_alloc instead of bfd_zalloc and remove
4386
        some initializers.
4387
        Use flavour to set is_vax, location_stack is removed.
4388
        (struct pair): Declare.
4389
        (fill_section_ptr): Initialize variables at declaration.
4390
        Add guard to set SECTION_SYM flag, handlde und section.
4391
        (vms_fixup_sections): Use struct pair for fill_section_ptr argument.
4392
        (_bfd_vms_slurp_object_records): New function, replaces previous
4393
        vms_object_p.
4394
        (vms_slurp_module): New function.
4395
        (vms_slurp_image): Ditto.
4396
        (vms_object_p): Complete rewrite.
4397
        (vms_mkobject): Use is_vax field to slect architecture.
4398
        (free_reloc_stream): New function.
4399
        (vms_convert_to_var): Ditto.
4400
        (vms_convert_to_var_1): Ditto.
4401
        (vms_convert_to_var_unix_filename): Ditto.
4402
        (vms_close_and_cleanup): Call free_reloc_stream, convert file to
4403
        VAR format on VMS.
4404
        (vms_new_section_hook): Set alignment to 0, allocate private data.
4405
        (vms_get_section_contents): Load content.
4406
        (vms_get_symbol_info): Handle undefined section.
4407
        (vms_find_nearest_line): Handle.
4408
        (alloc_reloc_stream): New function.
4409
        (vms_slurp_reloc_table): Ditto.
4410
        (vms_get_reloc_upper_bound): Make it real.
4411
        (vms_canonicalize_reloc): Do the real work.
4412
        (alpha_howto_table): Add ALPHA_R_NOP, ALPHA_R_BSR, ALPHA_R_LDA,
4413
        ALPHA_R_BOH.
4414
        (vms_bfd_reloc_type_lookup): Handle NOP, BSR, LDA and BOH.
4415
        (vms_set_arch_mach): Check arch.
4416
        (vms_set_section_contents): Copy the content after allocation.
4417
        (vms_alpha_vec): Update object flags.
4418
 
4419
        * vms-tir.c: Update copyright year, fix comments,
4420
        add prototypes for new functions.
4421
        (dst_define_location): New function.
4422
        (dst_restore_location): New function.
4423
        (dst_retrieve_location): New function.
4424
        (dst_check_allocation): New function.
4425
        (image_dump): Call dst_check_allocation.
4426
        (image_write_b): Ditto.
4427
        (image_write_w): Ditto.
4428
        (image_write_l): Ditto.
4429
        (image_write_q): Ditto.
4430
        (cmd_name): Handle STA_LW, STA_QW, STO_OFF, STO_IMM, STO_IMMR, STO_LW,
4431
        STO_QW, OPR_ADD, CTL_SETRB, STC_LP_PSB, CTL_DFLOC, CTL_STLOC,
4432
        CTL_STKDL.
4433
        Call error handler instead of abort if name is not known.
4434
        (etir_sta): Add quarter_relocs argument and set it.
4435
        Fix cast.
4436
        (etir_sto): Ditto.
4437
        (etir_opr): Ditto, return FALSE in case of error.
4438
        (etir_ctl): Add quarter_relocs argument and set it, fix cast.
4439
        Fix CTL_DFLOC, CTL_STLOC, CTL_STKDL.
4440
        (etir_stc): Add quarter_relocs argument and set it, fix cast.
4441
        Fix STC_LP, STC_LP_PSB, STC_GBL and STC_CGA.
4442
        Handle STC_LP_PSB, STC_BSR_GBL, STC_LDA_GBL, STC_BOH_GBL.
4443
        Move STC_NOP_PS, STC_BSR_PS, STC_LDA_PS, STC_BOH_PS, STC_NBH_PS.
4444
        Return FALSE in case of error.
4445
        (tir_sta): Change sign of psect.
4446
        (tir_ctl): Ditto.
4447
        (tir_cmd): Fix cast. Makes tir_table static const.
4448
        (etir_cmd): Add quarter_relocs argument, makes etir_table const,
4449
        add argument to explain.
4450
        (analyze_etir): Initialize maxptr, add quarter_relocs
4451
        declaration, move some declarations into inner scopes.
4452
        Handle quarter_relocs and STO_IMM.
4453
        (_bfd_vms_slurp_tir): Use constant instead of hard-coded values.
4454
        (_bfd_vms_slurp_relocs): New function.
4455
        (_bfd_vms_decode_relocs): New function.
4456
        (sto_imm): Rewritten.
4457
        (start_first_etbt_record): New function.
4458
        (start_another_etbt_record): Ditto.
4459
        (etir_output_check): Ditto.
4460
        (defer_reloc_p): Ditto.
4461
        (_bfd_vms_write_tir): Remove nextoffset, convert a while-loop to
4462
        a for-loop.  Correctly deals with contents, deals with .vmsdebug,
4463
        rewritte relocations handling.
4464
        (_bfd_vms_write_tbt): Removed.
4465
        (_bfd_vms_write_dbg): Ditto.
4466
 
4467
        * vms-misc.c: Update copyright year, Fix comments.
4468
        (_bfd_vms_get_header_values): Use 'size' instead of 'length'.
4469
        (maybe_adjust_record_pointer_for_object): New function.
4470
        (_bfd_vms_get_first_record): New function, replaces ...
4471
        (_bfd_vms_get_record): ..  removed.
4472
        (_bfd_vms_get_object_record): New function.
4473
        (_bfd_vms_get_object_record): New function.
4474
        (vms_get_remaining_object_record): New function, replaces ...
4475
        (_bfd_vms_get_next_record): ... removed.
4476
        (add_new_contents): Removed.
4477
        (_bfd_save_vms_section): Removed.
4478
        (_bfd_get_vms_section): Removed.
4479
        (_bfd_vms_output_flush): Write in VAR format.
4480
        (new_symbol): Don't make UND section.
4481
 
4482
        * vms-hdr.c: Update copyright year, update list of record handled.
4483
        (_bfd_vms_slurp_hdr): rec_length renamed to rec_size.
4484
        (_bfd_vms_write_hdr): Strip vms and unix patches,
4485
        add comments, truncate module name at 31 characters,
4486
        use constants instead of hard-coded value,
4487
        write BFD version instead of a fixed string.
4488
        (_bfd_vms_slurp_ihd): New function.
4489
        (_bfd_vms_slurp_isd): Ditto.
4490
        (_bfd_vms_slurp_ihs): Ditto.
4491
        (new_module): Ditto.
4492
        (parse_module): Ditto
4493
        (build_module_list): Ditto.
4494
        (module_find_nearest_line): Ditto.
4495
        (_bfd_vms_find_nearest_dst_line): Ditto.
4496
        (vms_slurp_debug): Ditto.
4497
        (_bfd_vms_slurp_dbg): Ditto.
4498
        (_bfd_vms_slurp_tbt): Ditto.
4499
        (_bfd_vms_write_dbg): Ditto.
4500
        (_bfd_vms_write_tbt): Ditto.
4501
 
4502
        * vms-gsd.c: Update copyright year, update list of records handled.
4503
        (EVAX_LITERALS_NAME): New macro.
4504
        (evax_section_flags): Add an entry for EVAX_LITERALS_NAME.
4505
        (gpsflagdesc, gsyflagdesc): Moved out of _bfd_vms_slurp_gsd.
4506
        (register_universal_symbol): New function and prototype.
4507
        (_bfd_vms_slurp_gsd): Fix indentations and casts,
4508
        improve debug messages,
4509
        use constants instead of hard-coded value,
4510
        fix missing endianness conversion,
4511
        handle global symbol (SYMG).
4512
        (bfd_vms_set_section_flags): New function.
4513
        (_bfd_vms_write_gsd): Don't write .vmsdebug section,
4514
        handle section literals,
4515
        fix indentation,
4516
        handle section bfd and vms flags,
4517
        don't output LIB$INITIALIZE symbol,
4518
        fix handling of weak symbols,
4519
        fix evax vs vax procedure descriptor,
4520
        handle absolute symbols.
4521
 
4522
        * reloc.c (BFD_RELOC_ALPHA_NOP, BFD_RELOC_ALPHA_BSR,
4523
        BFD_RELOC_ALPHA_LDA, BFD_RELOC_ALPHA_BOH): New relocations.
4524
 
4525
        * makefile.vms (DEFS): Fix flags for VMS.
4526
 
4527
        * bfdio.c (real_fopen): Handle multiple VMS fopen attributes.
4528
 
4529
        * bfd-in2.h: Regenerated.
4530
        * libbfd.h: Regenerated.
4531
 
4532
2009-02-20  Cary Coutant  
4533
 
4534
        * vmsutil.c (vms_file_stats_name): Fix incorrect use of st_mtime
4535
        in struct stat.
4536
 
4537
2009-18-02  Dave Korn  
4538
 
4539
        PR gas/7059
4540
        * coffcode.h (coff_write_object_contents):  Don't let the string
4541
        table offset overflow the s_name field when using long section names.
4542
 
4543
2009-18-02  Dave Korn  
4544
 
4545
        * coff-alpha.c (alpha_ecoff_backend_data):  Initialise fields which
4546
        control long section name handling with ECOFF_NO_LONG_SECTION_NAMES.
4547
        * coff-mips.c (mips_ecoff_backend_data):  Likewise.
4548
        * coff-rs6000.c (bfd_xcoff_backend_data):  Initialise fields which
4549
        control long section name handling with XCOFF_NO_LONG_SECTION_NAMES.
4550
        (bfd_pmac_xcoff_backend_data):  Likewise.
4551
        * coff64-rs6000.c (bfd_xcoff_backend_data):  Likewise.
4552
        (bfd_xcoff_aix5_backend_data):  Likewise.
4553
        (xcoff64_write_object_contents):  Delete unused long_section_names
4554
        local variable.
4555
        * coff-sh.c (bfd_coff_small_swap_table):  Initialise long section
4556
        name members using COFF_DEFAULT_LONG_SECTION_NAMES and make entire
4557
        struct non-const.
4558
        * coffcode.h (documentation):  Update to describe long section names.
4559
        (COFFLONGSECTIONCATHELPER):  New helper macro.
4560
        (BLANKOR1TOODD):  Likewise.
4561
        (COFF_ENABLE_LONG_SECTION_NAMES):  Likewise.
4562
        (COFF_LONG_SECTION_NAMES_SETTER):  Likewise.
4563
        (COFF_DEFAULT_LONG_SECTION_NAMES):  Likewise.
4564
        (bfd_coff_set_long_section_names_allowed):  New function.
4565
        (bfd_coff_set_long_section_names_disallowed):  Likewise.
4566
        (struct bfd_coff_backend_data):  Add new backend hook function
4567
        pointer _bfd_coff_set_long_section_names.
4568
        (bfd_coff_set_long_section_names):  New backend hook.
4569
        (coff_write_object_contents):  Only generate long section names if
4570
        bfd_coff_long_section_names() indicates they are currently enabled.
4571
        (bfd_coff_std_swap_table):  Make non-const, and initialise long
4572
        section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
4573
        (ticoff0_swap_table):  Likewise to both.
4574
        (ticoff1_swap_table):  Again, likewise to both.
4575
        * coffgen.c (make_a_section_from_file):  Allow long section names
4576
        as inputs even if not currently allowed for outputs.
4577
        * ecoff.c (_bfd_ecoff_no_long_sections):  New function.
4578
        * efi-app-ia32.c (COFF_LONG_SECTION_NAMES):  Define to 0, not blank.
4579
        * efi-app-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4580
        * efi-app-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4581
        * efi-bsdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
4582
        * efi-bsdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4583
        * efi-bsdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4584
        * efi-rtdrv-ia32.c (COFF_LONG_SECTION_NAMES):  Likewise.
4585
        * efi-rtdrv-ia64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4586
        * efi-rtdrv-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4587
        * pei-arm.c (COFF_LONG_SECTION_NAMES):  Likewise.
4588
        * pei-i386.c (COFF_LONG_SECTION_NAMES):  Likewise.
4589
        * pei-mcore.c (COFF_LONG_SECTION_NAMES):  Likewise.
4590
        * pei-mips.c (COFF_LONG_SECTION_NAMES):  Likewise.
4591
        * pei-ppc.c (COFF_LONG_SECTION_NAMES):  Likewise.
4592
        * pei-sh.c (COFF_LONG_SECTION_NAMES):  Likewise.
4593
        * pei-x86_64.c (COFF_LONG_SECTION_NAMES):  Likewise.
4594
        * libcoff-in.h:  Update copyright year to cause updated copyright
4595
        year in generated libcoff.h, and fix typo.
4596
        * libcoff.h:  Regenerated.
4597
        * libecoff.h (ECOFF_NO_LONG_SECTION_NAMES):  New macro.
4598
        (_bfd_ecoff_no_long_sections):  Add prototype.
4599
        * libxcoff.h (XCOFF_NO_LONG_SECTION_NAMES):  New macro.
4600
        * pe-mips.c (COFF_LONG_SECTION_NAMES):  Define empty if not already
4601
        defined by an including .c file.
4602
        * ticoff.h (ticoff0_swap_table):  Make non-const, and initialise
4603
        long section name fields using COFF_DEFAULT_LONG_SECTION_NAMES.
4604
        (ticoff1_swap_table):  Likewise to both.
4605
 
4606
2009-02-18  Christophe Lyon  
4607
 
4608
        * elf32-arm.c (arm_build_one_stub): Fix relocation target for pic
4609
        stub. Catch default case error.
4610
        (arm_map_one_stub): Add missing Thumb mapping symbol.
4611
 
4612
2009-02-18  Bjoern Haase  
4613
 
4614
        PR 9841
4615
        * elf32-avr.c: Handle case where no local symbos exist correctly.
4616
 
4617
2009-02-16  Christophe Lyon  
4618
 
4619
        bfd/
4620
        * elf32-arm.c (arm_long_branch_stub,
4621
        arm_thumb_v4t_long_branch_stub,
4622
        arm_thumb_thumb_long_branch_stub,
4623
        arm_thumb_arm_v4t_long_branch_stub,
4624
        arm_thumb_arm_v4t_short_branch_stub,
4625
        arm_pic_long_branch_stub):
4626
        Renamed to elf32_arm_stub_long_branch_any_any,
4627
        elf32_arm_stub_long_branch_v4t_arm_thumb,
4628
        elf32_arm_stub_long_branch_thumb_only,
4629
        elf32_arm_stub_long_branch_v4t_thumb_arm,
4630
        elf32_arm_stub_short_branch_v4t_thumb_arm,
4631
        elf32_arm_stub_long_branch_any_any_pic.
4632
        (arm_stub_long_branch, arm_thumb_v4t_stub_long_branch,
4633
        arm_thumb_thumb_stub_long_branch,
4634
        arm_thumb_arm_v4t_stub_long_branch,
4635
        arm_thumb_arm_v4t_stub_short_branch, arm_stub_pic_long_branch):
4636
        Renamed to arm_stub_long_branch_any_any,
4637
        arm_stub_long_branch_v4t_arm_thumb,
4638
        arm_stub_long_branch_thumb_only,
4639
        arm_stub_long_branch_v4t_thumb_arm,
4640
        arm_stub_short_branch_v4t_thumb_arm,
4641
        arm_stub_long_branch_any_any_pic.
4642
 
4643
2009-02-15  John David Anglin  
4644
 
4645
        * elf-hppa.h (elf_hppa_final_link_relocate): Correct addend value used
4646
        in branch offset check.
4647
 
4648
2009-02-15  Alan Modra  
4649
 
4650
        * elf64-ppc.c (struct _ppc64_elf_section_data): Delete t_symndx,
4651
        add toc.symndx and toc.add.
4652
        (ppc64_elf_check_relocs): Don't set htab->tls_get_addr here.
4653
        Set up toc.add.
4654
        (get_tls_mask): Add toc_addend param, set from toc.add.  Adjust all
4655
        callers.
4656
        (ppc64_elf_tls_setup): Set htab->tls_get_addr and tls_get_addr_fd.
4657
        (branch_reloc_hash_match): New function, extracted from..
4658
        (ppc64_elf_tls_optimize): ..here.
4659
        (ppc64_elf_relocate_section): Properly set addends when optimizing
4660
        tls sequences.  Avoid unnecessary reading and writing of insns.
4661
        Only redo reloc when symbol changed.  Bypass symbol checks when
4662
        using tlsld_got.
4663
        * elf32-ppc.c (ppc_elf_tls_setup): Correct comment.
4664
        (branch_reloc_hash_match): New function, extracted from..
4665
        (ppc_elf_tls_optimize): ..here.
4666
        (ppc_elf_relocate_section): Avoid unnecessary reading of insns.
4667
        Don't clear addend on zapped __tls_get_addr reloc.
4668
 
4669
2009-02-12  Nick Clifton  
4670
 
4671
        PR 9827
4672
        * elflink.c (bfd_elf_final_link): When counting the relocations,
4673
        if the header size has not been set yet then assume that it will
4674
        match the output section's reloc type.
4675
 
4676
2009-02-12  Nathan Sidwell  
4677
 
4678
        * elf32-mips.c (mips_elf_final_gp): Don't add 0x4000 offset for
4679
        relocatable link.
4680
 
4681
2009-02-09  Alan Modra  
4682
 
4683
        * elf32-spu.c (spu_elf_find_overlays): Call bfd_set_error on errors.
4684
        (find_function): Likewise.
4685
        (pasted_function): Don't error if no prior function found.
4686
        (discover_functions): Revert 2008-12-10 change.  Extend first
4687
        function range to start of section.
4688
 
4689
2009-02-08  John David Anglin  
4690
 
4691
        * elf64-hppa.c: Remove PARAMS macro.  Replace PTR with void *.  Convert
4692
        functions to C90.
4693
        * elf64-hppa.h: Likewise.
4694
 
4695
2009-02-06  Joseph Myers  
4696
 
4697
        * elfxx-mips.c (_bfd_mips_elf_section_processing): Remove special
4698
        .sbss handling.
4699
 
4700
2009-02-04  Alan Modra  
4701
 
4702
        * elf32-spu.c (spu_elf_build_stubs): Define __icache_neg_log2_linesize.
4703
        Define __icache_ptr_handler*, not __icache_ptr___icache_bi_handler*.
4704
 
4705
2009-02-03  Sandip Matte  
4706
 
4707
        * aoutx.h (NAME (aout, machine_type)): Handle bfd_mach_mips_xlr.
4708
        * archures.c (bfd_mach_mips_xlr): Define.
4709
        * bfd-in2.h: Regenerate.
4710
        * cpu-mips.c (I_xlr): Define.
4711
        (arch_info_struct): Add XLR entry.
4712
        * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_XLR.
4713
        (mips_set_isa_flags): Handle bfd_mach_mips_xlr
4714
        (mips_mach_extensions): Add XLR entry.
4715
 
4716
2009-02-03  Eric B. Weddington  
4717
 
4718
        * elf32-avr.c (avr_final_link_relocate): Allow avr25 to wraparound.
4719
 
4720
2009-02-03  Carlos O'Donell  
4721
 
4722
        * configure.in: AC_SUBST pdfdir.
4723
        * Makefile.am: Add install-pdf, install-pdf-am
4724
        and install-pdf-recursive targets. Define pdfdir.
4725
        * doc/Makefile.am: Define pdf__strip_dir. Add
4726
        install-pdf and install-pdf-am targets.
4727
        * po/Make-in: Add install-pdf target.
4728
        * configure: Regenerate.
4729
        * Makefile.in: Regenerate
4730
        * doc/Makefile.in: Regenerate.
4731
 
4732
2009-02-03  Maxim Kuvyrkov  
4733
 
4734
        * bfd-in2.h: Regenerate.
4735
        * elf32-m68k.c: Handle 2-slot GOT entries.  Rename variables and
4736
        fields from n_entries to n_slots where appropriate, update comments.
4737
        (HOWTO): Add TLS relocations.
4738
        (reloc_map): Map BFD_RELOC_68K_TLS_* to R_68K_TLS_*.
4739
        (enum elf_m68k_got_offset_size): New enum.
4740
        (struct elf_m68k_got_entry.type): Move field to ...
4741
        (struct elf_m68k_got_entry_key): ... here.  Update all uses.
4742
        (elf_m68k_reloc_got_type, elf_m68k_reloc_got_offset_size): New static
4743
        functions.
4744
        (elf_m68k_reloc_got_n_entries, elf_m68k_reloc_tls_p): New static
4745
        functions.
4746
        (struct elf_m68k_got): merge rel_8o_n_entries and rel_8o_16o_n_entries
4747
        fields into n_entries array.  Update comments.
4748
        (elf_m68k_init_got): Simplify, update all uses.
4749
        (elf_m68k_init_got_entry_key): Handle R_68K_TLS_LDM32 reloc, update.
4750
        (ELF_M68K_REL_8O_MAX_N_ENTRIES_IN_GOT): Adjust to handle 2-slot
4751
        GOT entries; update name, update all uses.
4752
        (ELF_M68K_REL_8O_16O_MAX_N_ENTRIES_IN_GOT): Ditto.
4753
        (elf_m68k_get_got_entry): Update.
4754
        (elf_m68k_update_got_entry_type): Rewrite to handle TLS GOT entries,
4755
        simplify.
4756
        (elf_m68k_remove_got_entry_type): Simplify.
4757
        (elf_m68k_add_entry_to_got, elf_m68k_can_merge_gots_1): Update.
4758
        (elf_m68k_can_merge_gots): Update.
4759
        (elf_m68k_merge_gots_1, elf_m68k_merge_gots): Update.
4760
        (struct elf_m68k_finalize_got_offsets_arg): Rewrite to handle 2-slot
4761
        GOT entries, simplify.
4762
        (elf_m68k_finalize_got_offsets_1, elf_m68k_finalize_got_offsets): Same.
4763
        (struct elf_m68k_partition_multi_got_arg): Add slots_relas_diff
4764
        field, remove obsoleted local_n_entries field.
4765
        (elf_m68k_partition_multi_got_2): New static function.
4766
        (elf_m68k_partition_multi_got_1, elf_m68k_partition_multi_got): Use it;
4767
        update.
4768
        (elf_m68k_remove_got_entry_type): Update.
4769
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
4770
        (elf_m68k_check_relocs): Handle TLS relocations.  Remove unnecessary
4771
        update of sgot->size and srelgot->size.
4772
        (elf_m68k_gc_sweep_hook): Update.
4773
        (elf_m68k_install_rela, dtpoff_base, tpoff): New static functions.
4774
        (elf_m68k_relocate_section, elf_m68k_finish_dynamic_symbol): Handle
4775
        TLS relocations.
4776
        * reloc.c (BFD_RELOC_68K_TLS_*): Declare TLS relocations.
4777
        * libbfd.h (bfd_reloc_code_real_names): Add BFD_RELOC_68K_TLS_*.
4778
 
4779
2009-02-02  DJ Delorie  
4780
 
4781
        * elf32-mep.c (config_names): Regenerate configuration.
4782
 
4783
2009-02-02  Alan Modra  
4784
 
4785
        * elf-bfd.h (bfd_elf_get_str_section): Don't declare.
4786
        (bfd_elf_find_section, _sh_elf_set_mach_from_flags): Likewise.
4787
        * elf.c (bfd_elf_get_str_section): Make static.
4788
        (bfd_elf_find_section): Delete.
4789
        * libbfd.h: Regenerate.
4790
 
4791
2009-02-01  Jan Kratochvil  
4792
 
4793
        * elf-eh-frame.c (REQUIRE_CLEARED_RELOCS) Remove.
4794
        (_bfd_elf_parse_eh_frame): Do not check relocations for removed FDEs.
4795
 
4796
2009-01-31  Alan Modra  
4797
 
4798
        * elflink.c (on_needed_list): New function.
4799
        (elf_link_add_object_symbols): Link in --as-needed libs if they
4800
        satisfy undefined symbols in other libs.
4801
 
4802
2009-01-30  Julian Brown  
4803
 
4804
        * elf32-arm.c (bfd_elf32_arm_vfp11_erratum_scan): Skip BFDs with
4805
        EXEC_P or DYNAMIC flags, and skip sections which are being linked
4806
        with --just-symbols (-R).
4807
 
4808
2009-01-29  Adam Nemet  
4809
 
4810
        * dwarf2.c (read_rangelist): Use read_address to read low_pc and
4811
        high_pc in order to properly sign-extend VMAs.
4812
 
4813
2009-01-29  Daniel Jacobowitz  
4814
            Mark Shinwell  
4815
            Catherine Moore  
4816
 
4817
        * elf-attrs.c, elflink.c, elfxx-mips.c: Correct typos in comments.
4818
 
4819
2009-01-28  Catherine Moore 
4820
 
4821
        * elf32-arm.c (elf32_arm_check_relocs): Set SEC_ALLOC and
4822
        SEC_LOAD for dynamic relocation sections.
4823
 
4824
2009-01-27  Hans-Peter Nilsson  
4825
 
4826
        * elf32-cris.c (cris_elf_relocate_section): Use elf_hash_table
4827
        (info)->tls_size, not elf_hash_table (info)->tls_sec->size for
4828
        the size of local TLS data.
4829
 
4830
2009-01-27  Andreas Schwab  
4831
 
4832
        * mach-o.c (bfd_mach_o_archive_p): Restrict the number of
4833
        architectures in the archive.
4834
 
4835
2009-01-27  Hans-Peter Nilsson  
4836
 
4837
        * elf32-cris.c (cris_elf_relocate_section) 
4838
        : Correct relocation value.
4839
 
4840
        * elf32-cris.c (cris_elf_relocate_section) 
4841
        : Don't call BFD_ASSERT for weak undefined
4842
        symbols with non-default visibility.
4843
 
4844
2009-01-26  Nathan Sidwell  
4845
 
4846
        * elf32-ppc.c (ppc_elf_relax_section): Add space for relocs
4847
        describing the trampolines.
4848
        (ppc_elf_relocate_section): Update relocs to describe the
4849
        trampolines.
4850
 
4851
2009-01-25  John David Anglin  
4852
 
4853
        * elf-hppa.h (elf_hppa_final_link_relocate): Add check to ensure that
4854
        branch targets can be reached for R_PARISC_PCREL22F, R_PARISC_PCREL17F
4855
        and R_PARISC_PCREL12F relocations.
4856
 
4857
2009-01-24  Alan Modra  
4858
 
4859
        PR 6022
4860
        * elflink.c (find_version_for_sym): New function split out from,
4861
        but without export_dynamic test, ..
4862
        (_bfd_elf_link_assign_sym_version): ..here.
4863
        (_bfd_elf_export_symbol): Use it.
4864
 
4865
2009-01-23  Alan Modra  
4866
 
4867
        * elf-bfd.h (struct elf_assign_sym_version_info): Delete.
4868
        (struct elf_info_failed, struct elf_find_verdep_info): Move to..
4869
        * elflink.c: ..here, somewhat modified.
4870
        * elf-bfd.h (_bfd_elf_add_default_symbol, _bfd_elf_export_symbol,
4871
        _bfd_elf_link_find_version_dependencies,
4872
        _bfd_elf_link_assign_sym_version, _bfd_elf_link_size_reloc_section,
4873
        _bfd_elf_fix_symbol_flags, _bfd_elf_adjust_dynamic_symbol,
4874
        _bfd_elf_link_sec_merge_syms, bfd_elf_link_mark_dynamic_symbol): Don't
4875
        declare..
4876
        * elflink.c: ..and make static here.
4877
        (_bfd_elf_link_find_version_dependencies): Adjust for removal
4878
        of output_bfd from struct elf_find_verdep_info.
4879
        (_bfd_elf_link_assign_sym_version): Similarly adjust to use
4880
        struct elf_info_failed.
4881
        (bfd_elf_size_dynamic_sections): Adjust.
4882
 
4883
2009-01-22  Alan Modra  
4884
 
4885
        PR 6832
4886
        * dwarf2.c (find_line): Don't update stash->sec_info_ptr until
4887
        after comp_unit_find_line call.
4888
 
4889
2009-01-21  Nick Clifton  
4890
 
4891
        PR 9769
4892
        * vmsutil.c (vms_file_stats_name): Remove use of unsupported
4893
        tm_gmtoff field in struct tm.
4894
 
4895
2009-01-21  Alan Modra  
4896
 
4897
        * elf32-spu.h (struct spu_elf_params): Add non_ia_text.
4898
        * elf32-spu.c (mark_overlay_section): Only include .text.ia.*
4899
        sections in soft-icache lines unless non_ia_text.  Don't add
4900
        rodata if doing so would exceed line size.
4901
 
4902
2009-01-19  Hans-Peter Nilsson  
4903
 
4904
        * elf32-cris.c (elf_cris_copy_indirect_symbol): For other symbol
4905
        types than bfd_link_hash_indirect, before early return, call
4906
        _bfd_elf_link_hash_copy_indirect.
4907
 
4908
2009-01-19  Andrew Stubbs  
4909
 
4910
        * elf-attrs.c (vendor_set_obj_attr_contents): Support tag ordering.
4911
        * elf-bfd.h (elf_backend_data): Add obj_attrs_order.
4912
        * elf32-arm.c (elf32_arm_obj_attrs_order): New function.
4913
        (elf_backend_obj_attrs_order): New define.
4914
        * elfxx-target.h (elf_backend_obj_attrs_order): New define.
4915
        (elfNN_bed): Add elf_backend_obj_attrs_order.
4916
 
4917
2009-01-19  Andrew Stubbs  
4918
 
4919
        * elf-attrs.c (is_default_attr): Substitute magic numbers with macros.
4920
        (obj_attr_size): Likewise.
4921
        (write_obj_attribute): Likewise.
4922
        (_bfd_elf_copy_obj_attributes): Likewise.
4923
        (_bfd_elf_parse_attributes): Likewise.
4924
        * elf-bfd.h (ATTR_TYPE_FLAG_INT_VAL): New define.
4925
        (ATTR_TYPE_FLAG_STR_VAL, ATTR_TYPE_FLAG_NO_DEFAULT): New defines.
4926
        (ATTR_TYPE_HAS_INT_VAL, ATTR_TYPE_HAS_STR_VAL): New defines.
4927
        (ATTR_TYPE_HAS_NO_DEFAULT): New define.
4928
        * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Replace magic numbers
4929
        with macros.
4930
 
4931
2009-01-19  Andrew Stubbs  
4932
 
4933
        * elf-attrs.c (is_default_attr): Support defaultless attributes.
4934
        (bfd_elf_add_obj_attr_int): Get type from _bfd_elf_obj_attrs_arg_type.
4935
        (bfd_elf_add_obj_attr_string): Likewise.
4936
        (bfd_elf_add_obj_attr_int_string): Likewise.
4937
        (_bfd_elf_parse_attributes): Allow for unknown flag bits in type.
4938
        * elf-bfd.h (struct obj_attribute): Document new flag bit.
4939
        * elf32-arm.c (elf32_arm_obj_attrs_arg_type): Specify that
4940
        Tag_nodefaults has no default value.
4941
        (elf32_arm_merge_eabi_attributes): Modify the Tag_nodefaults
4942
        comment to reflect the new state.
4943
 
4944
2009-01-19  Alan Modra  
4945
 
4946
        PR 9695
4947
        * pdp11.c (N_BADMAG): True for anything but OMAGIC, NMAGIC, ZMAGIC.
4948
        (some_aout_object_p): Delete dead code handling QMAGIC and BMAGIC.
4949
        (adjust_z_magix): Delete dead code handling QMAGIC.
4950
 
4951
2009-01-16  Kai Tietz  
4952
 
4953
        * coffcode.h (styp_to_sec_flags): Correct interpretation of
4954
        IMAGE_SCN_MEM_DISCARDABLE.
4955
 
4956
2009-01-16  Alan Modra  
4957
 
4958
        * Makefile.am (libbfd_la_LIBADD, libbfd_la_LDFLAGS): Substitute
4959
        SHARED_LIBADD and SHARED_LDFLAGS rather than WIN32LIBADD, WIN32LDFLAGS.
4960
        * configure.in (commonbfdlib): Delete.
4961
        (SHARED_LDFLAGS): Rename from WIN32LDFLAGS/
4962
        (SHARED_LIBADD): Rename from WIN32LIBADD.  Add pic libiberty if such
4963
        is available, not just for linux.
4964
        * po/SRC-POTFILES.in: Regenerate.
4965
        * Makefile.in: Regenerate.
4966
        * configure: Regenerate.
4967
 
4968
2009-01-15  Andrew Stubbs  
4969
            Julian Brown   
4970
 
4971
        * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 71 to include all known
4972
        ARM attributes in ABI 2.07.
4973
        * elf32-arm.c (get_secondary_compatible_arch): New function.
4974
        (set_secondary_compatible_arch): New function.
4975
        (tag_cpu_arch_combine): New function.
4976
        (elf32_arm_copy_one_eabi_other_attribute): Delete function.
4977
        (elf32_arm_copy_eabi_other_attribute_list): Delete function.
4978
        (elf32_arm_merge_eabi_attributes): Rename order_312 to order_021 to
4979
        make it fit with order_01243.
4980
        Add support for Tag_also_compatible_with,
4981
        Tag_CPU_unaligned_access, Tag_T2EE_use, Tag_Virtualization_use,
4982
        Tag_MPextension_use, Tag_nodefaults and Tag_conformance.
4983
        Improve/tidy up support for Tag_CPU_raw_name, Tag_CPU_name,
4984
        Tag_CPU_arch, Tag_ABI_HardFP_use, Tag_VFP_HP_extension,
4985
        Tag_ABI_FP_denormal, Tag_ABI_PCS_GOT_use, Tag_ABI_align8_needed,
4986
        Tag_VFP_arch and Tag_ABI_FP_16bit_format.
4987
        Rework the way unknown attributes are handled.
4988
        Defer errors until all attributes have been processed.
4989
 
4990
2009-01-15  Andrew Stubbs  
4991
 
4992
        * elf-attrs.c (bfd_elf_add_obj_attr_compat): Rename to
4993
        bfd_elf_add_obj_attr_int_string.
4994
        Read Tag_compatibility from its new location in the attribute array,
4995
        rather than the attribute list.
4996
        (_bfd_elf_copy_obj_attributes): bfd_elf_add_obj_attr_compat ->
4997
        bfd_elf_add_obj_attr_int_string.
4998
        (_bfd_elf_parse_attributes): Likewise.
4999
        (_bfd_elf_merge_object_attributes): There's now only one
5000
        Tag_compatibility, and it's in the array, not the list.
5001
        * elf-bfd.h (NUM_KNOWN_OBJ_ATTRIBUTES): Set to 33 to include
5002
        Tag_compatibility.
5003
        (bfd_elf_add_obj_attr_compat): Rename to
5004
        bfd_elf_add_obj_attr_int_string.
5005
        (bfd_elf_add_proc_attr_compat): Rename to
5006
        bfd_elf_add_proc_attr_int_string.
5007
        * elf32-arm.c (elf32_arm_merge_eabi_attributes): Explicitly don't handle
5008
        Tag_compatibility.
5009
 
5010
2009-01-15  Douglas B Rupp  
5011
 
5012
        * Makefile.am (BFD32_BACKENDS): Add new object vmsutil.lo
5013
        (BFD32_BACKENDS_CFILES): Add new file vmsutil.c
5014
        (vmsutil.lo): Add dependency rule.
5015
        * Makefile.in: Regenerate.
5016
        * config.bfd (ia64*-*-*vms*): Add case.
5017
        * configure.in (bfd_elf64_ia64_vms_vec): Add case.
5018
        * configure: Regenerate.
5019
        * vmsutil.c: New file.
5020
        * vmsutil.h: New file.
5021
        * elf-bfd.h (struct bfd_elf_special_section): Change type of
5022
        attr to bfd_vma.
5023
        * elfxx-ia64.c (elfNN_vms_post_process_headers,
5024
        elfNN_vms_section_processing, elfNN_vms_final_write_processing,
5025
        elfNN_vms_close_and_cleanup, elfNN_vms_section_from_shdr,
5026
        elfNN_vms_object_p): New functions
5027
        * targets.c (bfd_elf64_ia64_vms_vec): New target.
5028
 
5029
2009-01-14  H.J. Lu  
5030
 
5031
        PR ld/9727
5032
        * elflink.c (elf_gc_sweep): Exclude the group section if the
5033
        first member of the section group is excluded.
5034
 
5035
2009-01-14  Alan Modra  
5036
 
5037
        PR 9735
5038
        * syms.c (_bfd_stab_section_find_nearest_line): Don't free
5039
        saved filename, use bfd_alloc rather than bfd_malloc for it.
5040
 
5041
2009-01-13  Alan Modra  
5042
 
5043
        * elf32-spu.c (spu_elf_build_stubs): Make __icache_base absolute.
5044
 
5045
2009-01-13  Alan Modra  
5046
 
5047
        * elf32-spu.c (remove_cycles): Always set call->max_depth.
5048
 
5049
2009-01-12  Alan Modra  
5050
 
5051
        * elf32-spu.c (spu_elf_auto_overlay): Correct vma mask.
5052
 
5053
2009-01-12  Alan Modra  
5054
 
5055
        * elf32-spu.c (struct spu_link_hash_table): Add init, line_size_log2,
5056
        num_lines_log2.
5057
        (struct got_entry): Add br_addr.
5058
        (struct call_info): Add priority.
5059
        (struct function_info): Add lr_store and sp_adjust.
5060
        (spu_elf_setup): Init line_size_log2 and num_lines_log2.
5061
        (spu_elf_find_overlays): For soft-icache, mark any section within cache
5062
        area as an overlay, and check that no other overlays exist.  Look up
5063
        icache overlay manager entry sym.
5064
        (BRA_STUBS, BRA, BRASL): Define.
5065
        (enum _stub_type): Replace ovl_stub with call_ovl_stub and br*_ovl_stub.
5066
        (needs_ovl_stub): Adjust for soft-icache.  Return priority encoded
5067
        in branch insn.
5068
        (count_stub, build_stub): Support soft-icache.
5069
        (build_spuear_stubs, process_stubs): Adjust build_stub call.
5070
        (spu_elf_size_stubs): Size soft-icache stubs.
5071
        (overlay_index): New function.
5072
        (spu_elf_build_stubs): Make static.  Support soft-icache.
5073
        (spu_elf_check_vma): Don't turn off auto_overlay if soft-icache.
5074
        (find_function_stack_adjust): Save lr store and stack adjust insn
5075
        offsets.
5076
        (maybe_insert_function): Adjust find_function_stack_adjust call.
5077
        (mark_functions_via_relocs): Retrieve priority.
5078
        (remove_cycles): Only warn about pruned arcs when stack_analysis.
5079
        (sort_calls): Sort by priority first.
5080
        (mark_overlay_section): Ignore .ovl.init.
5081
        (sum_stack): Only print when stack_analysis.
5082
        (print_one_overlay_section): New function, extracted from..
5083
        (spu_elf_auto_overlay): ..here.  Support soft-icache overlays.
5084
        (spu_elf_stack_analysis): Only print when htab->stack_analysis.
5085
        (spu_elf_final_link): Call spu_elf_stack_analysis for lrlive
5086
        analysis.  Call spu_elf_build_stubs.
5087
        (spu_elf_relocate_section): For soft-icache encode overlay index
5088
        into addresses.
5089
        (spu_elf_output_symbol_hook): Support soft-icache.
5090
        (spu_elf_modify_program_headers: Likewise.
5091
 
5092
        * elf32-spu.h (struct spu_elf_params): Add lrlive_analysis.  Rename
5093
        num_regions to num_lines.  Add line_size and max_branch.
5094
        (enum _ovly_flavour): Add ovly_soft_icache.
5095
        (spu_elf_build_stubs): Delete.
5096
 
5097
2009-01-11  Jan Kratochvil  
5098
 
5099
        * elflink.c (_bfd_elf_section_already_linked): Handle g++-3.4
5100
        relocations in `.gnu.linkonce.r.*' referencing its `.gnu.linkonce.t.*'.
5101
 
5102
2009-01-07  Hans-Peter Nilsson  
5103
 
5104
        * elf32-cris.c (cris_elf_relocate_section) 
5105
        : For a symbol defined in
5106
        the program, the known offset starts at the negative size of the
5107
        TLS section.
5108
        :
5109
        Similar.
5110
 
5111
2009-01-05  Joel Sherrill 
5112
 
5113
        * config.bfd: Add lm32-*-rtems*.
5114
 
5115
2009-01-03  H.J. Lu  
5116
 
5117
        * coff-ppc.c: Add 2009 to Copyright.
5118
        * elf32-cris.c: Likewise.
5119
        * elflink.c: Likewise.
5120
 
5121
2009-01-03  Hans-Peter Nilsson  
5122
 
5123
        * elf32-cris.c (elf_cris_finish_dynamic_symbol): Rename
5124
        gotplt_index to rela_plt_index.  Adjust for R_CRIS_DTPMOD entry.
5125
 
5126
2009-01-02  H.J. Lu  
5127
 
5128
        PR ld/9679
5129
        * elflink.c (elf_merge_st_other): New.
5130
        (_bfd_elf_merge_symbol): Use it on skipped weak definitions and
5131
        hide them if needed.
5132
        (elf_link_add_object_symbols): Updated.
5133
 
5134
2009-01-02  H.J. Lu  
5135
 
5136
        PR ld/9676
5137
        * elflink.c (elf_link_add_object_symbols): Update def_dynamic,
5138
        ref_dynamic and dynamic_def fields when setting def_regular
5139
        to 1.
5140
 
5141
2009-01-02  Curtis Mackie  
5142
 
5143
        PR 9682
5144
        * coff-ppc.c (dump_toc): Fix up calls to fprintf without a string
5145
        literal.
5146
 
5147
For older changes see ChangeLog-2008
5148
 
5149
Local Variables:
5150
mode: change-log
5151
left-margin: 8
5152
fill-column: 74
5153
version-control: never
5154
End:

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.