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

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [gnu-src/] [binutils-2.18.50/] [bfd/] [ChangeLog] - Blame information for rev 156

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 38 julius
2008-05-03  Daniel Jacobowitz  
2
 
3
        * elf32-arm.c (elf32_arm_symbian_link_hash_table_create): Use
4
        ARRAY_SIZE.
5
        (elf32_arm_symbian_plt_sym_val): New.
6
        (elf_backend_plt_sym_val): Define.
7
 
8
2008-05-03  Alan Modra  
9
 
10
        PR 2995, PR 6473
11
        * elf.c (rewrite_elf_program_header): Rather than clearing
12
        p_paddr_valid at end, don't set it in the first place.  Delete
13
        comment no longer relevant.  When not p_paddr_valid, don't set
14
        paddr from vaddr, and don't set p_vaddr_offset.
15
 
16
2008-05-01  Cary Coutant  
17
 
18
        * elf.c (bfd_elf_get_str_section): Fix memory leak caused by
19
        corrupt string table.
20
 
21
2008-05-01  Joel Brobecker  
22
 
23
        * cache.c (cache_bread_1): Renames cache_bread.
24
        (cache_bread): New function.
25
 
26
2008-05-01  Alan Modra  
27
 
28
        PR 2995, PR 6473
29
        * elf.c (_bfd_elf_make_section_from_shdr): Always set lma from p_paddr.
30
        (assign_file_positions_for_load_sections): Combine nested "if".
31
        (copy_elf_program_header): Don't set p_paddr_valid or p_vaddr_offset
32
        when all header p_paddr fields are zero.
33
 
34
2008-04-30  Edmar Wienskoski  
35
 
36
        * cpu-powerpc.c (bfd_powerpc_archs): Add e500mc entry.
37
 
38
2008-04-29  Daniel Jacobowitz  
39
 
40
        * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound)
41
        (_bfd_elf_canonicalize_dynamic_reloc): Find dynamic relocations
42
        even if they are not loaded.
43
        * elflink.c (_bfd_elf_init_2_index_sections): Set data_index_section
44
        first.
45
 
46
2008-04-25  Jay Foad  
47
 
48
        * reloc16.c (bfd_coff_reloc16_get_value): Add support for
49
        undefined weak symbols.
50
 
51
2008-04-25  Nick Clifton  
52
 
53
        * po/vi.po: Updated Vietnamese translation.
54
 
55
2008-04-23  Paolo Bonzini  
56
 
57
        * aclocal.m4: Regenerate.
58
        * configure: Regenerate.
59
 
60
2008-04-21  Cary Coutant  
61
 
62
        * archive.c (_bfd_write_archive_contents): Fix incorrect use of
63
        ARFMAG.
64
 
65
2008-04-21  Nathan Sidwell  
66
 
67
        * elfxx-mips.c (_bfd_mips_vxworks_adjust_dynamic_symbol): Don't
68
        set the value of undefined symbols in shared objects.
69
        (_bfd_mips_vxworks_finish_dynamic_symbol): Clear value for
70
        undefined symbols unless pointer equality is needed.
71
 
72
2008-04-18  Dennis Roberts  
73
 
74
        * aix5ppc-core.c: Define macros for the default architecture and
75
        machine for matching core files.
76
        (xcoff64_core_p): Set the architecture and machine to the default
77
        values defined in the macros mentioned above.
78
        * rs6000-core.c: Define macros to determine whether or not the
79
        core file header uses the core_dumpxx header format.
80
        (rs6000coff_core_p): Don't match core files that use the
81
        core_dumpxx header format.
82
 
83
2008-04-16  Pedro Alves  
84
 
85
        * config.bfd (i[3-7]86-*-dicos*, x86_64-*-dicos*): Add.
86
 
87
2008-04-16  David S. Miller  
88
 
89
        * reloc.c (BFD_RELOC_SPARC_GOTDATA_HIX22,
90
        BFD_RELOC_SPARC_GOTDATA_LOX10, BFD_RELOC_SPARC_GOTDATA_OP_HIX22,
91
        BFD_RELOC_SPARC_GOTDATA_OP_LOX10, BFD_RELOC_SPARC_GOTDATA_OP): New.
92
        * libbfd.h: Regnerate.
93
        * bfd-in2.h: Regenerate.
94
        * elfxx-sparc.c (_bfd_sparc_elf_howto_table): Add entries for
95
        GOTDATA relocations.
96
        (sparc_reloc_map): Likewise.
97
        (_bfd_sparc_elf_check_relocs): Handle R_SPARC_GOTDATA_* like
98
        R_SPARC_GOT*.
99
        (_bfd_sparc_elf_gc_sweep_hook): Likewise.
100
        (_bfd_sparc_elf_relocate_section): Transform R_SPARC_GOTDATA_HIX22,
101
        R_SPARC_GOTDATA_LOX10, R_SPARC_GOTDATA_OP_HIX22, and
102
        R_SPARC_GOTDATA_OP_LOX10 into the equivalent R_SPARC_GOT* reloc.
103
        Simply ignore R_SPARC_GOTDATA_OP relocations.
104
 
105
2008-04-14  Aurelien Jarno  
106
 
107
        * configure.in: Link with the PIC version of libiberty on
108
        Linux/MIPS hosts.
109
        * configure: Regenerate.
110
 
111
2008-04-14  Edmar Wienskoski  
112
 
113
        * archures.c: Add bfd_mach_ppc_e500mc.
114
        * bfd-in2.h: Regenerate.
115
 
116
2008-04-08  Alan Modra  
117
 
118
        * elf32-spu.c (spu_elf_build_stubs): Correct error message.
119
        (mark_functions_via_relocs): Remove premature init of symtab_hdr.
120
        (collect_overlays): Commment typo fix.
121
 
122
2008-04-08  Kees Cook  
123
 
124
        * elflink.c (bfd_elf_size_dynamic_sections): Ignore GNU-stack note
125
        in EXEC_P bfds.
126
 
127
2008-04-08  Alan Modra  
128
 
129
        * elf32-spu.c: Include libiberty.h.
130
        (struct spu_link_hash_table): Add local_stire, overlay_fixed, reserved,
131
        non_ovly_stub, spu_elf_load_ovl_mgr, spu_elf_open_overlay_script,
132
        spu_elf_relink, auto_overlay fields.
133
        (AUTO_OVERLAY, AUTO_RELINK, OVERLAY_RODATA): Define.
134
        (needs_ovl_stub): Flip test so that call to non-function warning
135
        is emitted during relocate_section rather than earlier.
136
        (spu_elf_check_vma): Stash --auto-overlay parameters, and clear
137
        auto_overlay if no section exceeds local store.
138
        (struct call_info): Add count, max_depth, is_pasted fields.
139
        (struct function_info): Add rodata, last_caller, call_count,
140
        depth, new visit flags.
141
        (insert_callee): Increment call count.
142
        (copy_callee): New function.
143
        (mark_functions_via_relocs): Investigate all reloc types to count
144
        possible function pointer stubs for --auto-overlay.  Track
145
        last_caller and increment function call_count.
146
        (pasted_function): Insert a "call" into call info for pasted section.
147
        (remove_cycles): Track max depth of calls.  Don't emit call graph
148
        pruning warning for --auto-overlay.
149
        (build_call_tree): Don't transfer_calls for --auto-overlay.
150
        Adjust remove_cycles call.
151
        (sort_calls, sort_lib, sort_bfds): New functions.
152
        (struct _mos_param, struct _uos_param, struct _cl_param): New.
153
        (mark_overlay_section, unmark_overlay_section): New functions.
154
        (collect_lib_sectios, auto_ovl_lib_functions): New functions.
155
        (collect_overlays, find_pasted_call): New functions.
156
        (sum_stack): Deal with is_pasted "calls".  Exit before printing
157
        when --auto-overlay.
158
        (spu_elf_auto_overlay): New function.
159
        (spu_elf_final_link): Call spu_elf_auto_overlay.
160
        * elf32-spu.h (spu_elf_check_vma): Update prototype.
161
 
162
2008-04-07  Alan Modra  
163
 
164
        * elf32-spu.c (allocate_spuear_stubs): Ensure _SPUEAR_ symbol
165
        is defined in overlay section before creating a stub.
166
        (build_spuear_stubs): Likewise.
167
        (spu_elf_size_stubs, spu_elf_build_stubs): Adjust calls.
168
 
169
2008-04-02  Alan Modra  
170
 
171
        * elf32-spu.c (insert_callee): Reorder call list so most recent
172
        call is always first.
173
        (interesting_section): Move.
174
        (mark_functions_via_relocs): Fold interesting_section and
175
        reloc_count tests in callers to here.  Simplify output section
176
        owner test.
177
        (discover_functions): Set "gaps" when no symbols and some
178
        "interesting_section".  Run pasted_function loop for no symbol
179
        bfds.
180
        (for_each_node, transfer_calls): New functions.
181
        (mark_non_root): Adjust to suit for_each_node.
182
        (call_graph_traverse): Likewise.  Fix memory leak.  Rename to..
183
        (remove_cycles): ..this.
184
        (build_call_tree): Use for_each_node and transfer_calls.
185
        (struct _sum_stack_param): New.
186
        (sum_stack): Adjust to suit for_each_node.  Return error on
187
        malloc failure.  Move code to print root node cumulative stack from..
188
        (spu_elf_stack_analysis): ..here.  Use for_each_node.
189
 
190
2008-03-31  Cary Coutant  
191
 
192
        PR 6006
193
        * archive.c (_bfd_slurp_extended_name_table): Change
194
        ARFMAG[0] to ARFMAG[1].
195
        (_bfd_construct_extended_name_table): Likewise.
196
 
197
2008-03-31  Daniel Jacobowitz  
198
 
199
        * elfxx-mips.c (mips_elf_record_got_page_entry): Update comment.
200
        (_bfd_mips_elf_check_relocs): Update comments.  Always call
201
        mips_elf_record_got_page_entry for R_MIPS_GOT_PAGE.
202
 
203
2008-03-27  Cary Coutant  
204
 
205
        Add support for thin archives.
206
        * archive.c (_bfd_find_nested_archive): New function.
207
        (get_extended_arelt_filename): Add origin parameter.
208
        (_bfd_generic_read_ar_hdr_mag): Deal with extended name
209
        combined with a file offset.
210
        (append_relative_path): New function.
211
        (_bfd_get_elt_at_filepos): Deal with external members and
212
        nested archives.
213
        (bfd_generic_openr_next_archived_file): Thin archives.
214
        (bfd_generic_archive_p): Recognize new magic string.
215
        (adjust_relative_path): New function.
216
        (_bfd_construct_extended_name_table): Construct extended
217
        names for thin archive members.
218
        (_bfd_write_archive_contents): Emit new magic string, skip
219
        copying files for thin archives.
220
        * bfd-in.h (bfd_is_thin_archive): New macro.
221
        * bfd.c (struct bfd): New fields for thin archives.
222
        * libbfd-in.h (struct areltdata): New field for thin archives.
223
        * opncls.c (bfd_close): Delete BFDs for nested archives.
224
 
225
2008-03-25  Bernd Schmidt  
226
 
227
        * elf32-bfin.c (bfin_final_link_relocate): New function, wrapper around
228
        _bfd_final_link_relocate that also handles R_pcrel24 relocs.
229
        (bfinfdpic_relocate_section, bfin_relocate_section): Use it.
230
 
231
2008-03-25  Nathan Sidwell  
232
 
233
        * elf32-arm.c (elf32_arm_final_link_relocate): Skip dynamic relocs
234
        in vxworks tls_vars sections.
235
        (allocate_dynrelocs, elf32_arm_size_dynamic_sections): Likewise.
236
        * elf32-i386.c (allocate_dynrelocs,
237
        elf_i386_size_dynamic_sections, elf_i386_relocate_section): Likewise.
238
        * elf32-ppc.c (allocate_dynrelocs, ppc_elf_size_dynamic_sections,
239
        ppc_elf_relocate_section): Likewise.
240
        * elf32-sh.c (allocate_dynrelocs, sh_elf_size_dynamic_sections,
241
        sh_elf_relocate_section): Likewise.
242
        * elfxx-sparc.c (allocate_dynrelocs,
243
        _bfd_sparc_elf_size_dynamic_sections,
244
        _bfd_sparc_elf_relocate_section): Likewise.
245
 
246
2008-03-21  Adam Nemet  
247
 
248
        * elf.c (_bfd_elf_print_private_bfd_data): Use bfd_fprintf_vma to
249
        print the values from the dynamic section.
250
 
251
2008-03-20  Richard Sandiford  
252
 
253
        * elfxx-mips.c (MIPS_ELF_GNU_GOT1_MASK): New macro.
254
        (_bfd_mips_elf_finish_dynamic_sections): Use it instead of 0x80000000.
255
 
256
2008-03-20  Alan Modra  
257
 
258
        * elf32-spu.c (spu_elf_create_sections): Remove output_bfd parameter.
259
        (spu_elf_find_overlays, spu_elf_size_stubs): Likewise
260
        (process_stubs, discover_functions, build_call_tree): Likewise.
261
        (spu_elf_stack_analysis): Likewise.
262
        (spu_elf_check_vma): Likewise.  Move.
263
        (struct call_info): Make "is_tail" a bitfield.
264
        (insert_callee): Clear fun->start and set fun->is_func if we find
265
        a non-tail call.
266
        * elf32-spu.h (spu_elf_create_sections): Update prototype.
267
        (spu_elf_find_overlays, spu_elf_size_stubs, spu_elf_check_vma): Ditto.
268
 
269
2008-03-17  Ralf Wildenhues  
270
 
271
        * aclocal.m4: Regenerate.
272
        * configure: Likewise.
273
        * Makefile.in: Likewise.
274
 
275
2008-03-16  H.J. Lu  
276
 
277
        PR ld/5789
278
        PR ld/5943
279
        * elf32-i386.c  (elf_i386_relocate_section): Issue an error
280
        for R_386_GOTOFF relocaton against undefined hidden/internal
281
        symbols when building a shared object.
282
 
283
        * elf64-x86-64.c (elf64_x86_64_relocate_section): Issue an
284
        error for R_X86_64_PC8/R_X86_64_PC16/R_X86_64_PC32
285
        relocaton against undefined hidden/internal symbols when
286
        building a shared object.
287
        (elf64_x86_64_finish_dynamic_symbol): Return FALSE when symbol
288
        is referenced locally, but isn't defined in a regular file.
289
 
290
2008-03-15  H.J. Lu  
291
 
292
        * bfd-in.h (BFD_NO_FLAGS, HAS_RELOC, EXEC_P, HAS_LINENO,
293
        HAS_DEBUG, HAS_SYMS, HAS_LOCALS, DYNAMIC, WP_TEXT, D_PAGED,
294
        BFD_IS_RELAXABLE, BFD_TRADITIONAL_FORMAT, BFD_IN_MEMORY,
295
        HAS_LOAD_PAGE, BFD_LINKER_CREATED): Moved to ...
296
        * bfd.c: Here.
297
 
298
        * bfd.c (bfd): Change cacheable, target_defaulted, opened_once,
299
        mtime_set, no_export, output_has_begun and has_armap to bit
300
        field.
301
 
302
        * bfd-in2.h: Regenerated.
303
 
304
2008-03-14  Daniel Jacobowitz  
305
 
306
        * cache.c (close_one): Remove mtime hack.
307
 
308
2008-03-14  H.J. Lu  
309
 
310
        PR ld/5913
311
        * elfxx-ia64.c (elfNN_ia64_tprel_base): Remove BFD_ASSERT.
312
        (elfNN_ia64_dtprel_base): Likewise.
313
        (elfNN_ia64_relocate_section): Go to missing_tls_sec if
314
        tls_sec is NULL before calling elfNN_ia64_tprel_base or
315
        elfNN_ia64_dtprel_base.  Report unsupported TLS relocations.
316
 
317
2008-03-14  Alan Modra  
318
 
319
        * elf32-spu.c (process_stubs, spu_elf_relocate_section): Move
320
        common code to..
321
        (maybe_needs_stub): ..here, a new function that also omits stubs
322
        for .eh_frame, and..
323
        (needs_ovl_stub): ..here.  Create stubs for labels in code section
324
        referenced by switch jump table.
325
        (spu_elf_find_overlays): Set htab->ovly_load and htab->ovly_return.
326
        (enum _insn_type): Delete.
327
        (enum _stub_type): New.
328
        (count_stub, build_stub): Adjust.
329
        (allocate_spuear_stubs, build_spuear_stubs): Adjust.
330
 
331
2008-03-13  Alan Modra  
332
 
333
        * elf.c (_bfd_elf_make_section_from_shdr): Remove unnecessary cast.
334
        (_bfd_elf_assign_file_position_for_section): Simplify align.
335
        (_bfd_elf_init_reloc_shdr): Ensure shift expression wide enough
336
        for sh_addralign.
337
        (elf_fake_sections, swap_out_syms): Likewise.
338
        * elflink.c (bfd_elf_final_link): Likewise.
339
 
340
2008-03-13  Alan Modra  
341
 
342
        * Makefile.am: Run "make dep-am".
343
        * Makefile.in: Regenerate.
344
        * po/SRC-POTFILES.in: Regenerate.
345
 
346
2008-03-12  Bernd Schmidt  
347
 
348
        From Jie Zhang 
349
        * elf32-bfin.c (struct bfinfdpic_relocs_info): Make got17m4,
350
        gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4, fdgoffhilo,
351
        gotoff, call and sym not bitfields.
352
        (bfinfdpic_gc_sweep_hook): New function; update the relocation
353
        information for the relocations of the section being removed.
354
        (bfinfdpic_check_relocs): Accumulate the number of relocations
355
        which set got17m4, gothilo, fd, fdgot17m4, fdgothilo, fdgoff17m4,
356
        fdgoffhilo, gotoff, call and sym fields.
357
        (elf_backend_gc_sweep_hook): Redefine for FD-PIC.
358
 
359
2008-03-12  Alan Modra  
360
 
361
        PR 5900
362
        * elf-bfd.h: Include elf/internal.h after elf/external.h.
363
        * elfcode.h (elf_swap_symbol_in): Map reserved shndx range.
364
        (elf_swap_symbol_out): Adjust SHN_XINDEX test.
365
        (elf_swap_ehdr_out): Mask SHN_LORESERVE and SHN_XINDEX to values
366
        seen in external structs.
367
        (valid_section_index_p): Delete.
368
        (elf_object_p): Don't increment section numbers over reserved range.
369
        Simplify test for valid sh_link, sh_info and e_shstrndx fields.
370
        (elf_write_shdrs_and_ehdr): Mask SHN_LORESERVE and SHN_XINDEX to values
371
        seen in external structs.  Don't increment section numbers over
372
        reserved range.
373
        * elf.c (bfd_elf_sym_name): Remove redundant tests on st_shndx.
374
        (bfd_section_from_shdr): Likewise.
375
        (group_signature): Range check before accessing elf_elfsections.
376
        (_bfd_elf_setup_sections): Likewise.
377
        (bfd_section_from_shdr): Likewise.
378
        (bfd_section_from_shdr): Don't increment section number over
379
        reserved sections.
380
        (assign_file_positions_for_non_load_sections): Likewise.
381
        (assign_file_positions_except_relocs): Likewise.
382
        (_bfd_elf_write_object_contents): Likewise.
383
        (assign_section_numbers): Likewise.  Adjust for changed SHN_*.
384
        (prep_headers): Delete unused variable.
385
        * elflink.c (bfd_elf_link_record_local_dynamic_symbol): Adjust
386
        for changed SHN_* values.
387
        (check_dynsym, elf_link_input_bfd): Likewise.
388
        (bfd_elf_final_link): Likewise.  Don't skip over reserved section
389
        range.
390
        (elf_fixup_link_order): Check that sh_link field is valid.
391
        * elf-hppa.h (elf_hppa_add_symbol_hook): Make "index" unsigned.
392
        * elf32-arm.c (elf32_arm_gc_mark_extra_sections): Range check before
393
        accesssing elf_elfsections.
394
        * elf32-avr.c (elf32_avr_size_stubs): Likewise.
395
        * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
396
        * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Likewise.
397
        * elf64-hppa.c (elf64_hppa_check_relocs): Adjust for changed
398
        SHN_* defines.  Test for SHN_BAD return from
399
        _bfd_elf_section_from_bfd_section
400
 
401
2008-03-12  Alan Modra  
402
 
403
        * elf-bfd.h (_bfd_elf_section_from_bfd_section): Update prototype.
404
        * elf.c (_bfd_elf_section_from_bfd_section): Return unsigned int,
405
        SHN_BAD on error.
406
        (_bfd_elf_print_private_bfd_data): Test for SHN_BAD result from
407
        _bfd_elf_section_from_bfd_section, not -1.
408
        (swap_out_syms): Likewise.
409
        * elflink.c (elf_link_add_object_symbols): Likewise.
410
        (bfd_elf_get_bfd_needed_list): Likewise.
411
        (bfd_elf_match_symbols_in_sections): Likewise.
412
        (elf_link_add_object_symbols): Don't bother testing for symbols
413
        using normal sections before calling bfd_section_from_elf_index.
414
        (elf_link_input_bfd, bfd_elf_final_link): Likewise.
415
        (bfd_elf_reloc_symbol_deleted_p): Likewise.
416
        * elfcode.h (elf_slurp_symbol_table): Likewise.
417
        * elf32-spu.c (get_sym_h): Likewise.
418
        * elf32-xtensa.c (get_elf_r_symndx_section): Likewise.
419
        * elf64-ppc.c (opd_entry_value, get_sym_h, ppc64_elf_edit_toc): Ditto.
420
        * elf64-sh64.c (sh_elf64_get_relocated_section_contents): Likewise.
421
 
422
2008-03-11  Alan Modra  
423
 
424
        * elf32-spu.c (spu_elf_relocate_section): Test identical conditions
425
        to those in process_stubs for overlay symbols.
426
 
427
2008-03-09  Paul Brook  
428
 
429
        * elf32-arm.c (elf32_arm_merge_eabi_attributes): Handle new
430
        Tag_VFP_arch values.
431
 
432
2008-03-08  Paul Brook  
433
 
434
        * elf32-arm.c (insert_thumb_branch): Rewrite.
435
        (elf32_thumb_to_arm_stub): Use new insert_thumb_branch.
436
 
437
2008-03-07  Paul Brook  
438
 
439
        * elf32-arm.c (elf32_arm_howto_table_1): Fix bitmasks for MOVW and
440
        MOVT relocations.
441
        (elf32_arm_final_link_relocate): Fix off by one MOVW/MOVT sign
442
        extension.
443
        (elf32_arm_relocate_section): Handle MOVW and MOVT
444
        relocations.  Improve safety check for other weird relocations.
445
        (elf32_arm_check_relocs): Only set h->needs_plt for branch/call
446
        relocations.
447
 
448
2008-03-03  Bob Wilson  
449
 
450
        * xtensa-isa.c (xtensa_isa_num_pipe_stages): Make max_stage static and
451
        only compute its value once.
452
 
453
2008-03-03  Alan Modra  
454
 
455
        * elf32-spu.c (struct got_entry): Add "addend" field.
456
        (count_stub, build_stub): Use a new stub if relocation addend
457
        differs from existing stubs for this symbol.
458
        (process_stubs): Deal with addends.
459
        (spu_elf_relocate_section, spu_elf_output_symbol_hook): Likewise.
460
 
461
2008-03-02  H.J. Lu  
462
 
463
        PR ld/5789
464
        * elflink.c (_bfd_elf_symbol_refs_local_p): Always return true
465
        for hidden and local symbols.
466
 
467
2008-03-03  Alan Modra  
468
 
469
        * elf32-ppc.c (allocate_dynrelocs): Discard relocs on
470
        undefined symbols with internal or hidden visibility.
471
        (ppc_elf_relocate_section): Likewise.  Use SYMBOL_CALLS_LOCAL
472
        rather than SYMBOL_REFERENCES_LOCAL on branches.  Don't
473
        return immediately on dynamic reloc error.
474
 
475
2008-03-01  Alan Modra  
476
 
477
        * elf64-ppc.c (build_plt_stub): Add relocs on plt call stubs
478
        if emitrelocations.
479
        (get_relocs): New function, split out from..
480
        (ppc_build_one_stub): ..here.  Add relocs on plt_branch stubs if
481
        emitrelocations.  Remove indx temp.
482
        (ppc_size_one_stub): Count new stub relocs.
483
        (ppc64_elf_size_stubs): Count new glink reloc.
484
        (ppc64_elf_build_stubs): Emit glink reloc if emitrelocations.
485
        (ppc64_elf_finish_dynamic_sections): Output glink relocs.
486
        * elf32-ppc.c (ppc_elf_finish_dynamic_sections): Describe non-pic
487
        glink code.
488
 
489
2008-02-28  Alan Modra  
490
 
491
        * elf32-spu.c (mark_functions_via_relocs): Don't assume that
492
        the "->start" pointer reaches to function origin, so that we
493
        can handle functions split over more than two sections.
494
        (build_call_tree): Likewise.
495
        (pasted_function): Don't attempt to set fun->start back to the
496
        function origin, just go back one section.
497
 
498
2008-02-27  Catherine Moore  
499
 
500
        * elf.c ( _bfd_elf_print_private_bfd_data): Call
501
        elf_backend_get_target_dtag if defined.
502
        * elf32-mips.c (elf_backend_get_target_dtag): Define.
503
        * elf64-mips.c: Likewise.
504
        * elfn32-mips.c: Likewise.
505
        * elfxx-mips.c (_bfd_mips_elf_get_target_dtag): New.
506
        * elfxx-mips.h (_bfd_mips_elf_get_target_dtag): Declare.
507
        * elf-bfd.h (elf_backend_get_target_dtag): Add prototype.
508
        * elfxx-target.h (elf_backend_get_target_dtag): Add default.
509
        (elf_backend_data): Add elf_backend_get_target_dtag.
510
 
511
2008-02-26  Alan Modra  
512
 
513
        * elf32-ppc.c (ppc_elf_check_relocs): Set pointer_equality_needed
514
        for R_PPC_REL32 syms.  Don't set non_got_ref on branch reloc syms,
515
        and assume branch relocs are not dynamic when non-shared.
516
        (readonly_dynrelocs): New function, split out from..
517
        (maybe_set_textrel): ..here, renamed from old readonly_dynrelocs.
518
        (ppc_elf_adjust_dynamic_symbol): For symbols generating plt entries,
519
        clear non_got_ref..
520
        (allocate_dynrelocs): ..and don't set u.def for undefined weak.
521
        Do allow dynamic relocs on undefined symbols.
522
        (ppc_elf_adjust_dynamic_symbol): Use readonly_dynrelocs.
523
        (ppc_elf_relocate_section): Mirror dynamic reloc changes in
524
        check_relocs.
525
        (ppc_elf_finish_dynamic_symbol): Don't give a warning on weak
526
        plt symbols needing pointer_equality_needed.
527
 
528
2008-02-23  Alan Modra  
529
 
530
        * elf32-ppc.c (ppc_elf_check_relocs): Revert non_got_ref change.
531
 
532
2008-02-23  Alan Modra  
533
 
534
        * elf32-ppc.c (ppc_elf_copy_indirect_symbol): Copy
535
        pointer_equality_needed.
536
        (ppc_elf_check_relocs): Split out non-branch relocs from others
537
        that might emit dynamic relocs.  Set pointer_equality_needed
538
        for their symbols.  Don't set non_got_ref on branch reloc symbols.
539
        (ppc_elf_hash_symbol): New function.
540
        (elf_backend_hash_symbol): Define.
541
        (ppc_elf_finish_dynamic_symbol): Handle pointer_equality_needed.
542
        Error if pointer_equality_needed on weak plt symbol.
543
 
544
2008-02-22  H.J. Lu  
545
 
546
        PR ld/5788
547
        * elflink.c (elf_create_symbuf): Correct buffer size and
548
        position.
549
 
550
2008-02-22  Nick Clifton  
551
 
552
        PR 868
553
        * dwarf2.c: Revert previous patch.  All of the allocate memory is
554
        on an obstack which will be freed at some other time.
555
 
556
2008-02-20  Nick Clifton  
557
 
558
        PR 868
559
        * libbfd.c (bfd_realloc_or_free): New function.  Performs like
560
        bfd_realloc, but if the (re)allocation fails, the pointer is
561
        freed.
562
        * libbfd-in.h: Prototype.
563
        * libbfd.h: Regenerate.
564
        * bfdio.c (bfd_bwrite): Use the new function.
565
        (bfd_seek): Likewise.
566
        * bfdwin.c:(bfd_get_file_window): Likewise.
567
        * elf-strtab.c (_bfd_elf_strtab_add): Likewise.
568
        * elf32-ppc.c (ppc_elf_relax_section): Likewise.
569
        * elf32-xtensa.c (vsprintf_msg): Likewise.
570
        * mach-o.c (bfd_mach_o_core_fetch_environment): Likewise.
571
        * stabs.c (_bfd_link_seciton_stabs): Likewise.
572
        * vms-misc.c (_bfd_vms_get_record): Likewise.
573
        * vms-tir.c (check_section): Likewise.
574
        * vms.c (vms_new_section_hook): Likewise.
575
        * elf32-arm.c (elf32_arm_section_map_add): Check that the
576
        allocation of sec_data->map succeeded before using it.
577
        * elflink.c (elf_link_output_sym): Do not overwrite finfo->
578
        symshndxbuf until it is known that the reallocation succeeded.
579
 
580
2008-02-20  Diogo de Carvalho Kraemer  
581
            Nick Clifton  
582
 
583
        PR 868
584
        * dwarf2.c (read_abbrevs): Free the abbreviation table if we run
585
        out of memory.
586
        (decode_line_info): Free the line_info_table before returning a
587
        failure result.
588
        (_bfd_dwarf2_cleanup_debug_info): Free the abbreviation table.
589
        Free the line table.  Free the function table.  Free the variable
590
        table.
591
 
592
2008-02-17  Mark Kettenis  
593
 
594
        * elf.c (swap_out_syms): Avoid preprocessing directive within
595
        macro arg.
596
 
597
2008-02-17  Jan Kratochvil  
598
 
599
        * elf.c (assign_file_positions_for_load_sections): Set the type of
600
        PT_NOTE sections to SHT_NOTE.
601
 
602
2008-02-17  Ulrich Weigand  
603
 
604
        * simple.c (bfd_simple_get_relocated_section_contents): Set
605
        link_info.output_bfd.
606
 
607
2008-02-16  Nathan Sidwell  
608
 
609
        * dwarf2.c (find_line): Don't trust debug information after an
610
        unparseable compilation unit.
611
 
612
2008-02-15  Alan Modra  
613
 
614
        PR 5765
615
        * section.c (SEC_LINK_DUPLICATES): Correct.  Renumber following flags.
616
        * bfd-in2.h: Regenerate.
617
 
618
2008-02-15  Alan Modra  
619
 
620
        * elf-bfd.h (enum elf_object_id): Add HPPA_ELF_TDATA.
621
        * elf.c (bfd_elf_allocate_object): Don't check for already allocated
622
        tdata.
623
        * elf32-hppa.c (elf32_hppa_mkobject): New function.
624
        (bfd_elf32_mkobject): Define.
625
        * elf32-ppc.c (is_ppc_elf_target): Delete.  Replace all uses with..
626
        (is_ppc_elf): ..this new macro.
627
        * elf64-ppc.c (is_ppc64_elf_target): Delete.  Replace all uses with..
628
        (is_ppc64_elf): ..this new macro.
629
 
630
2008-02-15  Alan Modra  
631
 
632
        * elflink.c: Replace all accesses to hash->creator field with
633
        output_bfd->xvec.
634
        * cofflink.c: Likewise.
635
        * coff-h8300.c: Likewise.
636
        * ecoff.c: Likewise.
637
        * elf32-m68hc1x.c: Likewise.
638
        * elf32-ppc.c: Likewise.
639
        * elf64-alpha.c: Likewise.
640
        * elf64-ppc.c: Likewise.
641
        * elf64-sparc.c: Likewise.
642
        * elfxx-mips.c: Likewise.
643
        * i386linux.c: Likewise.
644
        * m68klinux.c: Likewise.
645
        * sparclinux.c: Likewise.
646
        * sunos.c: Likewise.
647
        * xcofflink.c: Likewise.
648
        * linker.c: Likewise.
649
        (_bfd_link_hash_table_init): Don't store creator.
650
 
651
2008-02-14  Peter Jones  
652
 
653
        * efi-rtdrv-ia32.c: New file.
654
        * efi-bsdrv-ia32.c: New file.
655
        * efi-rtdrv-ia64.c: New file.
656
        * efi-bsdrv-ia64.c: New file.
657
        * efi-rtdrv-x86_64.c: New file.
658
        * efi-bsdrv-x86_64.c: New file.
659
        * peicode.h (pe_bfd_object_p): Add support for boot service and
660
        runtime service drivers.
661
        * libpei.h: Add macros for EFI formats, and rename the efi application
662
        format macros to disambiguate.
663
        * targets.c: Add bfd_target _vec externs.
664
        (_bfd_tar): Add EFI _vec entries.
665
        * config.bfd: Add EFI vectors into the selection routines.
666
        * configure.in: add EFI _vec entries.
667
        * configure: Regenerate.
668
        * Makefile.am: Add EFI files.
669
        * Makefile.in: Regenerate.
670
 
671
2008-02-14  Nathan Sidwell  
672
 
673
        * dwarf1.c (struct dwarf1_debug): Add syms member.
674
        (alloc_dwarf1_unit, alloc_dwarf1_func): Check for out of memory.
675
        (parse_line_table, _bfd_dwarf1_find_nearest_line): Relocate
676
        section contents, check for out of memory.
677
 
678
        * dwarf1.c (struct dwarf1_debug): Change data pointers to bfd_byte.
679
        (parse_die): Change data pointers to bfd_byte.
680
        (parse_line_table, parse_functions_in_unit): Likewise.
681
 
682
2008-02-14  Alan Modra  
683
 
684
        * elflink.c (compute_bucket_count): Warning fixes.
685
 
686
2008-02-12  DJ Delorie  
687
 
688
        * elf32-iq2000.c (iq2000_elf_relocate_section): Adjust addend of
689
        relocation pointing to local symbol in merged section.
690
 
691
        * elf32-iq2000.c (iq2000_elf_relocate_offset16): New.
692
        (iq2000_elf_relocate_section): Call it.
693
 
694
2008-02-12  Nick Clifton  
695
 
696
        PR ld/5692
697
        * elf-bfd.h (enum elf_object_id): New enum, used to identify
698
        target specific extensions to the elf_obj_tdata structure.
699
        (struct elf_obj_tdata): New field 'object_id'.
700
        (elf_object_id, elf_program_header_size, elf_symtab_hdr): New
701
        macros for accessing fields in the elf_obj_tdata structure.
702
        (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object.
703
        (bfd_elf_allocate_object): New function.
704
        * elf.c (bfd_elf_mkobject): Rename to bfd_elf_make_generic_object
705
        and implement by calling bfd_elf_allocate_object.
706
        (bfd_elf_allocate_object): New function: Allocates an
707
        elf_obj_tdata structure, possibly with a target specific
708
        extension.
709
        * elfxx-target.h (bfd_elfNN_mkobject): Use
710
        bfd_elf_make_generic_object as the default value.
711
        * elf32-arm.c (elf32_arm_obj_tdata): Rename to elf_arm_obj_tdata
712
        for consistency with other, similar structures.
713
        (is_arm_elf): New macro.  Checks a BFD to make sure that is an ARM
714
        ELF bfd.
715
        (elf32_arm_mkobject): Call bfd_elf_allocate_object.
716
        (bfd_elf32_arm_vfp11_erratum_scan): Use is_arm_elf macro to check
717
        the bfd being processed.
718
        (bfd_elf32_arm_vfp11_fix_veneer_locations): Likewise.
719
        (bfd_elf32_arm_set_target_relocs): Likewise.
720
        (bfd_elf32_arm_final_link_relocate): Likewise.
721
        (bfd_elf32_arm_copy_private_bfd_data): Likewise.
722
        (bfd_elf32_arm_merge_eabi_attributes): Likewise.
723
        (bfd_elf32_arm_merge_private_bfd_data): Likewise.
724
        (bfd_elf32_arm_check_relocs): Likewise.
725
        (bfd_elf32_arm_gc_mark_extra_sections): Likewise.
726
        (bfd_elf32_arm_size_dynamic_sections): Likewise.
727
        (bfd_elf32_arm_process_before_allocation): Use elf_symtab_hdr.
728
        (bfd_elf32_arm_init_maps): Likewise.
729
        (bfd_elf32_arm_final_link_relocate): Likewise.
730
        (bfd_elf32_arm_relocate_section): Likewise.
731
        (bfd_elf32_arm_gc_sweep_hook): Likewise.
732
        (bfd_elf32_arm_check_relocs): Likewise.
733
        (bfd_elf32_arm_size_dynamic_sections): Likewise.
734
        * elf32-i386.c (elf_i386_mkobject): Call bfd_elf_allocate_object.
735
        (is_i386_elf): New macro.  Checks a BFD to make sure that is an x86
736
        ELF bfd.
737
        (elf_i386_check_relocs): Use is_i386_elf macro to check    the bfd
738
        being processed.
739
        (elf_i386_size_dynamic_sections): Likewise.
740
        (elf_i386_relocate_section): Likewise.
741
        (elf_i386_check_relocs): Use elf_symtab_hdr.
742
        (elf_i386_gc_sweep_hook): Likewise.
743
        (elf_i386_size_dynamic_sections): Likewise.
744
        (elf_i386_relocate_section): Likewise.
745
        * elf32-ppc.c (ppc_elf_mkobject): Call bfd_elf_allocate_object.
746
        (elf_create_pointer_linker_section): Use is_ppc_elf_target to
747
        verify that the bfd before accessing target specific fields.
748
        (ppc_elf_check_relocs): Likewise.
749
        (elf_finish_pointer_linker_section): Likewise.
750
        (elf_create_pointer_linker_section): Use elf_symtab_hdr.
751
        (ppc_elf_check_relocs): Likewise.
752
        (ppc_elf_gc_sweep_hook): Likewise.
753
        (ppc_elf_tls_optimize): Likewise.
754
        (ppc_elf_size_dynamic_sections): Likewise.
755
        (ppc_elf_relax_section): Likewise.
756
        (ppc_elf_relocate_section): Likewise.
757
        * elf32-s390.c (struct elf_s390_obj_tdata): Add a comment
758
        reminding programmers to keep this structure in sync with the one
759
        defined in elf64-s390.c.
760
        (elf_s390_mkobject): Call bfd_elf_allocate_object.
761
        (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
762
        ELF bfd.
763
        (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
764
        being processed.
765
        (elf_s390_size_dynamic_sections): Likewise.
766
        (elf_s390_relocate_section): Likewise.
767
        (elf_s390_check_relocs): Use elf_symtab_hdr.
768
        (elf_s390_gc_sweep_hook): Likewise.
769
        (elf_s390_size_dynamic_sections): Likewise.
770
        (elf_s390_relocate_section): Likewise.
771
        * elf32-sh.c (sh_elf_mkobject): Call bfd_elf_allocate_object.
772
        (is_sh_elf): New macro.  Checks a BFD to make sure that is an SH
773
        ELF bfd.
774
        (sh_elf_size_dynamic_sections): Use is_sh_elf macro to check the
775
        bfd being processed.
776
        (sh_elf_relocate_section): Likewise.
777
        (sh_elf_check_relocs): Likewise.
778
        (sh_elf_copy_private_data): Likewise.
779
        (sh_elf_relax_section): Use elf_symtab_hdr.
780
        (sh_elf_size_dynamic_sections): Likewise.
781
        (sh_elf_relocate_section): Likewise.
782
        (sh_elf_get_relocated_section_contents): Likewise.
783
        (sh_elf_gc_sweep_hook): Likewise.
784
        (sh_elf_check_relocs): Likewise.
785
        * elf64-alpha.c (elf64_alpha_mkobject): Call bfd_elf_allocate_object.
786
        (is_alpha_elf): New macro.  Checks a BFD to make sure that is an
787
        Alpha ELF bfd.
788
        (elf64_alpha_create_got_section): Use is_alpha_elf macro to check
789
        the bfd being processed.
790
        (elf64_alpha_create_dynamic_section): Likewise.
791
        (elf64_alpha_check_relocs): Likewise.
792
        (elf64_alpha_size_got_sections): Likewise.
793
        (elf64_alpha_relax_section): Likewise.
794
        (elf64_alpha_relocate_section): Likewise.
795
        (elf64_alpha_final_link): Likewise.
796
        (elf64_alpha_check_relocs): Use elf_symtab_hdr.
797
        (elf64_alpha_relax_section): Likewise.
798
        (elf64_alpha_relocate_section_r): Likewise.
799
        (elf64_alpha_relocate_section): Likewise.
800
        * elf64-ppc.c (ppc64_elf_mkobject): Call bfd_elf_allocate_object.
801
        (ppc64_elf_check_relocs): Use is_ppc64_elf_target to check the bfd
802
        being processed.
803
        (opd_entry_value): Likewise.
804
        (allocate_dynrelocs): Likewise.
805
        (ppc64_elf_relocate_section): Likewise.
806
        (ppc64_elf_check_relocs): Use elf_symtab_hdr.
807
        (opd_entry_value): Likewise.
808
        (ppc64_elf_gc_sweep_hook): Likewise.
809
        (get_sym_h): Likewise.
810
        (ppc64_elf_edit_opd): Likewise.
811
        (ppc64_elf_tls_optimize): Likewise.
812
        (ppc64_elf_edit_toc): Likewise.
813
        (ppc64_elf_size_dynamic_sections): Likewise.
814
        (toc_adjusting_stub_needed): Likewise.
815
        (ppc64_elf_size_stubs): Likewise.
816
        (ppc64_elf_relocate_section): Likewise.
817
        * elf64-s390.c (struct elf_s390_obj_tdata): Add a comment
818
        reminding programmers to keep this structure in sync with the one
819
        defined in elf32-s390.c.
820
        (elf_s390_mkobject): Call bfd_elf_allocate_object.
821
        (is_s390_elf): New macro.  Checks a BFD to make sure that is an s390
822
        ELF bfd.
823
        (elf_s390_check_relocs): Use is_s390_elf macro to check    the bfd
824
        being processed.
825
        (elf_s390_size_dynamic_sections): Likewise.
826
        (elf_s390_relocate_section): Likewise.
827
        (elf_s390_check_relocs): Use elf_symtab_hdr.
828
        (elf_s390_gc_sweep_hook): Likewise.
829
        (elf_s390_size_dynamic_sections): Likewise.
830
        (elf_s390_relocate_section): Likewise.
831
        * elf64-x86_64.c (elf64_x86_64_mkobject): Call bfd_elf_allocate_object.
832
        (is_x86_64_elf): New macro.  Checks a BFD to make sure that is an
833
        x86_64 ELF bfd.
834
        (elf64_x86_64_check_relocs): Use is_x86_64_elf macro to check the bfd
835
        being processed.
836
        (elf64_x86_64_size_dynamic_sections): Likewise.
837
        (elf64_x86_64_relocate_section): Likewise.
838
        (elf64_x86_64_check_relocs): Use elf_symtab_hdr.
839
        (elf64_x86_64_gc_sweep_hook): Likewise.
840
        (elf64_x86_64_size_dynamic_sections): Likewise.
841
        (elf64_x86_64_relocate_section): Likewise.
842
        * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Call bfd_elf_allocate_object.
843
        (is_sparc_elf): New macro.  Checks a BFD to make sure that is a Sparc
844
        ELF bfd.
845
        (_bfd_sparc_elf_check_relocs): Use is_sparc_elf macro to check the
846
        bfd being processed.
847
        (_bfd_sparc_elf_gc_sweep_hook): Likewise.
848
        (_bfd_sparc_elf_size_dynamic_sections): Likewise.
849
        (_bfd_sparc_elf_check_relocs): Use elf_symtab_hdr.
850
        (_bfd_sparc_elf_gc_sweep_hook): Likewise.
851
        (_bfd_sparc_elf_size_dynamic_sections): Likewise.
852
        (_bfd_sparc_elf_relocate_section): Likewise.
853
 
854
2008-02-12  Alan Modra  
855
 
856
        PR 5303, 5755
857
        * arange-set.c: Delete.
858
        * arange-set.h: Delete.
859
        * dwarf2.c: Revert 2007-09-21 changes.
860
        * Makefile.am: Likewise.
861
        * Makefile.in: Regenerate.
862
        * po/SRC-POTFILES.in: Regenerate.
863
 
864
2008-02-11  Bernd Schmidt  
865
 
866
        * elf32-bfin.c (bfin_relocate_section): Set up dynobj before using it
867
        if necessary.
868
        (elf32_bfin_merge_private_bfd_data): Simplify, and ensure object type
869
        mismatches are detected.
870
 
871
        * elf32-bfin.c (bfinfdpic_relocate_section): Take more care not to
872
        emit invalid relocs or rofixup entries for deleted .eh_frame entries.
873
 
874
2008-02-11  Daniel Jacobowitz  
875
 
876
        * cache.c (cache_bread): Set bfd_error_file_truncated if EOF
877
        was reached.
878
        * srec.c (srec_scan): Calculate the checksum.  Complain on mismatch.
879
 
880
2008-02-07  Alan Modra  
881
 
882
        * elf32-spu.c (spu_elf_size_stubs): Revert 2008-01-28 doubling
883
        of _ovly_buf_table size.
884
        (spu_elf_build_stubs): Use low bit of .size as "present" bit.
885
        Adjust initialisations relating to _ovly_buf_table.
886
 
887
2008-02-04  Bob Wilson  
888
 
889
        * elf32-xtensa (elf_xtensa_relocate_section): After finding an invalid
890
        relocation, do not continue processing it.  Ignore R_XTENSA_ASM_EXPAND
891
        relocations against dynamic symbols.
892
        (elf_xtensa_finish_dynamic_sections): Do not fail if there is no
893
        .xt.lit section.
894
 
895
2008-02-04  Kai Tietz  
896
            H.J. Lu  
897
 
898
        PR 5715
899
        * warning.m4: Enable -Wno-format by default when using gcc on
900
        mingw.
901
        * configure: Regenerated.
902
 
903
2008-02-04  Adam Nemet  
904
 
905
        * archures.c: Update copyright.
906
        (bfd_mach_mips_octeon): New macro.
907
        * bfd-in2.h: Regenerate.
908
        * elfxx-mips.c (_bfd_elf_mips_mach): Handle Octeon.
909
        (mips_set_isa_flags): Likewise.
910
        (mips_mach_extensions): Add Octeon.
911
        * cpu-mips.c: Update copyright.
912
        (I_mipsocteon): New enum constant.
913
        (arch_info_struct): Add Octeon.
914
 
915
2008-02-04  Alan Modra  
916
 
917
        * elf32-spu.c (spu_elf_relocate_section): Correct return type.
918
        Return error status on unexpected relocation errors.
919
 
920
2008-02-04  Alan Modra  
921
 
922
        PR ld/5692
923
        * elf.c (bfd_elf_get_elf_syms): Revert 2008-01-31.  Instead abort
924
        on non-ELF input.
925
        * elf32-arm.c (elf32_arm_size_dynamic_sections): Skip glue
926
        processing on non-ELF input.
927
 
928
2008-01-31  Marc Gauthier  
929
 
930
        * config.bfd (xtensa*-*-*): Recognize processor variants.
931
 
932
2008-01-31  Nick Clifton  
933
 
934
        PR ld/5692
935
        * elf.c (bfd_elf_get_elf_syms): Check the return value of
936
        get_elf_backend_data.
937
 
938
2008-01-28  Fabian Groffen  
939
 
940
        * config.bfd (x86_64-*-solaris2): Add support for this target.
941
 
942
2008-01-28  Alan Modra  
943
 
944
        Rewrite SPU overlay handling code.  Put overlay calls stubs in the
945
        overlays where possible.  Use a faster call stub, or optionally at
946
        compile time, a more compact stub.  Double size of _ovly_buf_table
947
        so that low bit of _ovly_table.buf can be used as a "present" bit.
948
        Reserve an extra _ovly_table entry for index zero.
949
        * elf32-spu.c: (struct spu_link_hash_table): Delete a number of fields,
950
        add new ones.
951
        (struct got_entry): New.
952
        (struct spu_stub_hash_entry): Delete.
953
        (stub_hash_newfunc, spu_elf_link_hash_table_free): Delete.
954
        (spu_elf_link_hash_table_create): Adjust for struct changes.
955
        (spu_stub_name): Delete.
956
        (spu_elf_find_overlays): Don't track sections from overlay regions.
957
        Instead set ovl_buf number in spu elf section data.  Error if
958
        overlays in one region don't start at the same address.  Adjust
959
        for struct _spu_elf_section_data changes.
960
        (SIZEOF_STUB1, SIZEOF_STUB2, ILA_79, ILA_78): Delete.
961
        (OVL_STUB_SIZE, BRSL, LNOP, ILA): Define.
962
        (needs_ovl_stub): Adjust for struct _spu_elf_section_data changes.
963
        (enum _insn_type): New.
964
        (count_stub, build_stub): New functions.
965
        (allocate_spuear_stubs): Use count_stub.
966
        (build_spuear_stubs): Use build_stub.
967
        (populate_stubs, sort_stubs): Delete.
968
        (process_stubs): New function.
969
        (write_one_stub): Delete.
970
        (spu_elf_size_stubs, spu_elf_build_stubs): Rewrite.
971
        (alloc_stack_info): Adjust for struct _spu_elf_section_data changes.
972
        (maybe_insert_function, check_function_ranges): Likewise.
973
        (find_function, pasted_function, build_call_tree): Likewise.
974
        (spu_elf_stack_analysis, spu_elf_modify_segment_map): Likewise.
975
        (spu_elf_modify_program_headers): Likewise.
976
        (interesting_section): Detect stub sections differently.  Delete
977
        htab param, adjust all callers.
978
        (spu_elf_relocate_section): Rewrite stub handling.
979
        (spu_elf_output_symbol_hook): Likewise.
980
        (bfd_elf32_bfd_link_hash_table_free): Delete.
981
        * elf32-spu.h (struct _spu_elf_section_data): Move input-only and
982
        output-only fields into a union.  Add ovl_buf.
983
        (spu_elf_size_stubs, spu_elf_build_stubs): Update prototypes.
984
 
985
2008-01-25  DJ Delorie  
986
 
987
        * elf32-m32c.c (_bfd_m32c_elf_eh_frame_address_size): New.
988
 
989
2008-01-25  Kai Tietz  
990
 
991
        * bfd-in.h: Add mingw I64 support.
992
        * bfd-in2.h: Regenerated.
993
        * bfd.c: (bfd_get_sign_extend_vma): Add pe-x86-64 and pei-x86-64.
994
 
995
2008-01-21  Alan Modra  
996
 
997
        PR 4453
998
        * format.c (bfd_check_format_matches): Don't accept archives as
999
        fully matching unless they have a map.
1000
 
1001
2008-01-21  Alan Modra  
1002
 
1003
        * elflink.c (_bfd_elf_link_output_relocs): Correct error return.
1004
 
1005
2008-01-21  Alan Modra  
1006
 
1007
        * ecoff.c (_bfd_ecoff_archive_p): Delete.
1008
        * libecoff.h (_bfd_ecoff_archive_p): Delete.
1009
        * coff-alpha.c (ecoffalpha_little_vec): Use bfd_generic_archive_p.
1010
        * coff-mips.c (ecoff_little_vec, ecoff_big_vec): Likewise.
1011
        (ecoff_biglittle_vec): Likewise.
1012
 
1013
2008-01-19  Alan Modra  
1014
 
1015
        PR 5646
1016
        * elf64-ppc.c (ppc64_elf_tls_optimize): Ensure htab->tls_get_addr
1017
        non-NULL before dereferencing.
1018
 
1019
2008-01-15  Alan Modra  
1020
 
1021
        PR 5604
1022
        * elf-bfd.h (struct elf_backend_data): Add gc_keep.  Remove param
1023
        names from others.
1024
        (_bfd_elf_gc_keep): Declare.
1025
        * elfxx-target.h (elf_backend_gc_keep): Define.
1026
        (elfNN_bed): Init new field.
1027
        * elflink.c (_bfd_elf_gc_keep): New function.
1028
        (bfd_elf_gc_sections): Call gc_keep.
1029
        * elf64-ppc.c (elf_backend_gc_keep): Define.
1030
        (struct _ppc64_elf_section_data): Move .opd related fields to
1031
        a struct so they don't occupy the same storage.  Adjust accesses
1032
        throughout file.
1033
        (ppc64_elf_gc_keep): New function, split out from..
1034
        (ppc64_elf_gc_mark_hook): ..here.  Don't call _bfd_elf_gc_mark
1035
        to mark .opd section, just set gc_mark.
1036
        (ppc64_elf_edit_opd): Remove no_opd_opt parm.  Don't set opd->adjust
1037
        unless we are changing .opd.  Test non-NULL opd->adjust at all
1038
        accesses throughout file.
1039
        * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
1040
 
1041
2008-01-15  Alan Modra  
1042
 
1043
        * bfd-in.h (BFD_HOST_LONG_LONG): Delete.
1044
        * bfd-in2.h: Regenerate.
1045
 
1046
2008-01-11  Tristan Gingold  
1047
            Eric Botcazou  
1048
 
1049
        * elf32-ppc.c (ppc_elf_gc_sweep_hook): Exit early if generating a
1050
        relocatable.
1051
        * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
1052
        * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
1053
        * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
1054
        * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
1055
        * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
1056
        * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
1057
        * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
1058
        * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
1059
        * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
1060
        * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
1061
        * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
1062
        * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
1063
        * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Likewise.
1064
        * elfxx-mips.c (_bfd_mips_elf_gc_sweep_hook): Likewise.
1065
        * elfxx-sparc.c (_bfd_sparc_elf_gc_sweep_hook): Likewise.
1066
        * elflink.c (bfd_elf_gc_sections): Do not punt on relocatable output
1067
        or executable output with relocations.
1068
 
1069
2008-01-09  Nick Clifton  
1070
 
1071
        PR gas/5552
1072
        * elf32-fr30.c (fr30_elf_howto_table): Set partial_inplace field
1073
        to FALSE for all relocs.
1074
 
1075
2008-01-09  Richard Sandiford  
1076
 
1077
        PR ld/5526
1078
        * elf-bfd.h (eh_cie_fde): Add u.cie.u.full_cie and u.cie.merged
1079
        fields.  Rename u.cie.u.merged to u.cie.u.merged_with.
1080
        (eh_frame_sec_info): Add a cies field.
1081
        (eh_frame_hdr_info): Add a merge_cies field.
1082
        * elf-eh-frame.c (cie): Add a reloc_index member to the personality
1083
        union.
1084
        (_bfd_elf_begin_eh_frame_parsing): Set hdr_info->merge_cies instead
1085
        of hdr_info->cies.
1086
        (_bfd_elf_parse_eh_frame): Remove tmp_cie.  Ccreate an array of
1087
        cie structures in all cases and use it instead of extended_cies.
1088
        If merging, store the cie array in sec_info->cies and point each
1089
        CIE's eh_fde_cie at the associated element.  Do not try to
1090
        calculate the value of the personality routine here; record the
1091
        offset of the relocation instead.  Do not merge CIEs here.
1092
        (_bfd_elf_end_eh_frame_parsing): Do not free hdr_info->cies here...
1093
        (_bfd_elf_discard_section_eh_frame_hdr): ...do it here instead.
1094
        (_bfd_elf_gc_mark_fdes): Mark the original (unmerged) CIE.
1095
        (find_merged_cie): New function.
1096
        (_bfd_elf_gc_mark_fdes): Use it.  Free sec_info->cies.
1097
 
1098
2008-01-07  Nick Clifton  
1099
 
1100
        PR binutils/5535
1101
        * vms.c (vms_close_and_cleanup): Check for the presence of a
1102
        vms_private_data_struct before examining any of its fields.
1103
 
1104
2008-01-07  H.J. Lu  
1105
 
1106
        PR ld/5522
1107
        * elflink.c (elf_link_input_bfd): Don't write out a section if
1108
        its output section is marked with SEC_NEVER_LOAD.
1109
 
1110
For older changes see ChangeLog-2007
1111
 
1112
Local Variables:
1113
mode: change-log
1114
left-margin: 8
1115
fill-column: 74
1116
version-control: never
1117
End:

powered by: WebSVN 2.1.0

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