]> Git Repo - binutils.git/blame - bfd/ChangeLog
Enable gprof for cross builds.
[binutils.git] / bfd / ChangeLog
CommitLineData
9b52905e
NC
12006-05-24 Carlos O'Donell <[email protected]>
2 Randolph Chung <[email protected]>
3
4 * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for
5 TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations.
6 Add handling for TLS relocations.
7 (elf_hpp_reloc_final_type): Handle TLS relocs.
8 * elf32-hppa.c: Add authors for cleanup and TLS support.
9 (hppa_elf_local_got_tls_type, hh_name, eh_name): Define.
10 (elf32_hppa_link_hash_entry): Add tls_type.
11 (elf32_hppa_link_hash_table): Add tld_ldm_got.
12 (hppa_link_has_newfunc): Set tls_type.
13 (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount.
14 (hppa_stub_name): Use hh_name macro.
15 (elf32_hppa_copy_indirect_symbol): Copy TLS information.
16 (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc.
17 Handle TLS relocs.
18 (elf32_hppa_gc_sweep_hook): Likewise.
19 (allocate_dynrelocs): Handle TLS relocs.
20 (elf32_hppa_size_dynamic_sections): Count space required by TLS
21 relocs. Use hh_name macro.
22 (dtpoff_base): New function.
23 (tpoff): Likewise.
24 (elf32_hppa_optimized_tls_reloc): Likewise.
25 (final_link_relocate): Handle TLS relocs.
26 (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name
27 and hh_name macros.
28 (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use
29 hh_name and eh_name macros.
30 (elf32_hppa_reloc_type_clas): Handle TLS relocs.
31
28c9d252
NC
322006-05-24 Bjoern Haase <[email protected]>
33
34 * archures.c: Add bfd_mach_avr6.
35 * cpu-avr.c: Likewise.
36 * reloc.c (BFD_RELOC_AVR_LO8_LDI_GS, BFD_RELOC_AVR_HI8_LDI_GS):
37 New relocations.
38 * libbfd.h: Regenerate.
39 * bfd-in2.h:Regenerate.
40 * elf32-avr.h: New file. Protoypes for functions accessed from ld.
41 * elf32-avr.c: Add elf32-avr.h to include list.
42 (elf32_avr_stub_hash_entry): New function.
43 (elf32_avr_link_hash_table): New struct.
44 (avr_link_hash_table): Likewise.
45 (avr_stub_hash_entry): Likewise.
46 (avr_stub_hash_lookup): New function.
47 (stub_hash_newfunc): New function.
48 (elf32_avr_link_hash_table_create): New function.
49 (elf32_avr_link_hash_table_free): New function.
50 (avr_get_stub_addr): New function.
51 (debug_relax, debug_stubs): Add new global variables controlling
52 debugging printout to stdout.
53 (avr_pc_wrap_around): Change the type to bfd_vma.
54 (avr_replace_call_ret_sequences): Add a new variable controling
55 linkrelax optimizations.
56 (avr_stub_is_required_for_16_bit_reloc): New function.
57 (avr_final_link_relocate):
58 Add linker hash table to parameter list. Use stub addr. if necessary.
59 (elf32_avr_relocate_section):
60 Add linker hashtable to parameter list of avr_final_link_relocate.
61 (bfd_elf_avr_final_write_processing): Add support for bfd_mach_avr6.
62 (elf32_avr_object_p): Add support for E_AVR_MACH_AVR6.
63 (elf32_avr_relax_delete_bytes):
64 Iterate over all sections of a bfd when adjusting relocs addends.
65 (elf32_avr_relax_section):
66 Evaluate avr_replace_call_ret_sequences and recalculate the size of
67 stub section.
68 (avr_stub_name): New function.
69 (avr_get_stub_entry): New function.
70 (avr_add_stub): New function.
71 (avr_build_one_stub): New function.
72 (avr_size_one_stub): New function.
73 (elf32_avr_setup_params): New function.
74 (elf32_avr_setup_section_lists): New function.
75 (get_local_syms): New function.
76 (elf32_avr_size_stubs): New function.
77 (bfd_elf32_bfd_link_hash_table_create): New function.
78 (bfd_elf32_bfd_link_hash_table_free): New function.
79
a34a056a
L
802006-05-23 H.J. Lu <[email protected]>
81
82 PR ld/2655
83 PR ld/2657
84 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Properly
85 update CIE/FDE length. Don't pad to the section alignment.
86
8aafe8b4
JZ
872006-05-23 Jie Zhang <[email protected]>
88
89 * elf32-bfin.c (bfinfdpic_relocate_section): Clear reloc for
90 deteted entries in .eh_frame section.
91
5592d7ec
JZ
922006-05-23 Jie Zhang <[email protected]>
93
94 * elf32-bfin.c (bfin_check_relocs): Use __GLOBAL_OFFSET_TABLE_
95 instead of _GLOBAL_OFFSET_TABLE_.
96 (bfin_relocate_section): Ditto.
97 (_bfin_create_got_section): Ditto.
98 (elf32_bfinfdpic_create_dynamic_sections): Use
99 __PROCEDURE_LINKAGE_TABLE_ instead of _PROCEDURE_LINKAGE_TABLE_.
100 (bfin_finish_dynamic_symbol): Use __DYNAMIC instead of _DYNAMIC.
101
4d35a0aa
AM
1022006-05-23 Alan Modra <[email protected]>
103
104 * elf64-ppc.c (compare_symbols): Prefer strong dynamic global
105 function syms over other syms.
106
943284cc
DJ
1072006-05-22 Daniel Jacobowitz <[email protected]>
108
109 * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL
110 check.
111 (bfd_elf_final_link): Add a late DT_TEXTREL check.
112 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define.
113 (mips_elf_create_dynamic_relocation): Set DF_TEXTREL.
114 (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION.
115 Use MIPS_ELF_READONLY_SECTION.
116 (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after
117 creating DT_TEXTREL.
118 (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers
119 if no text relocations were generated.
120
4d345610
L
1212006-05-19 H.J. Lu <[email protected]>
122
123 * elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment.
124
1ea63fd2
AM
1252006-05-19 Alan Modra <[email protected]>
126
127 * elf.c (elf_fake_sections): Formatting.
128 (assign_file_positions_for_load_sections): Only add SEC_ALLOC
129 sections to p_memsz. Remove hack for PT_NOTE sections. Allow
130 section alignment to increase p_align for PT_LOAD.
131 (assign_file_positions_for_non_load_sections): Remove ARM BPABI
132 hack for PT_DYNAMIC. Instead, set p_filesz for all segments
133 other than PT_LOAD, and PT_NOTE in core.
134
f3520d2f
AM
1352006-05-17 Alan Modra <[email protected]>
136
137 * elf.c (assign_file_positions_for_segments): Split into..
138 (assign_file_positions_for_load_sections): ..this, and..
139 (assign_file_positions_for_non_load_sections): ..this new function,..
140 (assign_file_positions_except_relocs): ..writing program headers here.
141
dea5f36a
AM
1422006-05-17 Alan Modra <[email protected]>
143
144 * elflink.c (elf_gc_sweep): Don't specially keep non-alloc,
145 non-load sections if they have relocs.
146
b0796911
PB
1472006-05-15 Paul Brook <[email protected]>
148
149 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ...
150 (bfd_is_arm_special_symbol_name): ... to this. Add type argument.
151 Check symbol name is of specified type.
152 * elf32-arm.c (elf32_arm_is_target_special_symbol,
153 arm_elf_find_function, elf32_arm_output_symbol_hook): Use
154 bfd_is_arm_special_symbol_name.
155 * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP,
156 BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER,
157 BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define.
158 (bfd_is_arm_mapping_symbol_name): Remove prototype.
159 (bfd_is_arm_special_symbol_name): Add prototype.
160 * bfd-in2.h: Regenerate.
161
64b607e6
BW
1622006-05-15 David Heine <[email protected]>
163 Bob Wilson <[email protected]>
164
165 * elf32-xtensa.c (check_loop_aligned): Fix reversed check for
166 undefined opcode. Clean up assertions.
167 (narrow_instruction, widen_instruction): Remove "do_it" parameters.
168 Factor most of the code into separate functions....
169 (can_narrow_instruction, can_widen_instruction): New.
170 (prev_instr_is_a_loop): New.
171 (compute_ebb_proposed_actions): Combine error handling code for
172 decode errors. Replace call to insn_decode_len with inline code.
173 Use can_narrow_instruction and can_widen_instruction. Handle errors
174 from call to xtensa_opcode_is_loop.
175 (relax_section): Adjust calls to narrow_instruction and
176 widen_instruction.
177
7de713b9
AM
1782006-05-15 Alan Modra <[email protected]>
179
180 PR 2658
181 * elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic
182 -shared link.
183
83180ade
L
1842006-05-11 Michael Matz <[email protected]>
185
186 * elflink.c (match_group_member): Correctly iterate group
187 members.
188
b6895b4f
PB
1892006-05-11 Paul Brook <[email protected]>
190
191 * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs.
192 (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs.
193 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
194 * reloc.c: Ditto.
195 * bfd-in2.h: Regenerate.
196 * libbfd.h: Regenerate.
197 * libcoff.h: Regenerate.
198
8b95791f
AM
1992006-05-11 Mike Bland <[email protected]>
200
201 * elf.c (_bfd_elf_init_private_section_data): Don't change
202 section type if already set.
203
5e1b4a6d
NC
2042006-05-10 Nick Clifton <[email protected]>
205
206 PR ld/2607
207 * elfcode.h (valid_section_index_p): New function: Checks for a
208 valid section index. Allows indicies in the range SHN_LOPROC to
209 SHN_HIOS.
210 (elf_object_p): Use valid_section_index_p.
211
53baae48
NC
2122006-05-11 Pedro Alves <[email protected]>
213
214 * coff-arm.c (ARM_26D, ARM_32, ARM_RVA_32, ARM_SECTION,
215 ARM_SECREL): Mark WinCE versions of these relocs as partial
216 inplace.
217 (coff_arm_relocate_section): Adjust addend for WinCE.
218
69d54b1b
AM
2192006-05-10 Alan Modra <[email protected]>
220
221 PR 2342
222 * elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16.
223
337ff0a5
NC
2242006-05-09 Nick Clifton <[email protected]>
225
226 * coffcode.h (coff_write_relocs): Produce an error message if a an
227 out-of-range symbol index is detected in a reloc.
228
e4d4d200
BE
2292006-05-09 Ben Elliston <[email protected]>
230
231 * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unused
232 local variable `dynobj'.
233
73160847
NC
2342006-05-05 Bjoern Haase <[email protected]>
235
336e5de1 236 * elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all
73160847
NC
237 of the bfd's sections for the reloc-addend adjustments.
238
77df2968
MS
2392006-05-05 Martin Schwidefsky <[email protected]>
240
241 * elf32-s390.c (invalid_tls_insn): Call bfd_set_error.
242 (elf_s390_relocate_section): Add code to do the GD->LE and
243 LD->LE TLS linker optimizations if a brasl instruction is used
244 for the __tls_get_offset function call.
245 * elf64-s390.c (invalid_tls_insn): Call bfd_set_error.
246
30038c59
AM
2472006-05-05 Alan Modra <[email protected]>
248
249 * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimize
250 R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in
251 the .toc and referenced by a TLS code sequence.
252 (ppc64_elf_edit_toc): Cater for the unlikely situation that
253 .toc is the first section in a file.
254
ff8b75c7
AS
2552006-05-04 Andreas Schwab <[email protected]>
256
257 * aoutf1.h (struct external_sparc_core): Declare c_regs as struct
258 regs instead of an array of int.
259 (struct external_solaris_bcp_core): Likewise.
260 (swapcore_sun3): Use offsetof instead of computing the offset
261 manually.
262 (swapcore_sparc): Likewise. Simplify reference to c_regs.
263 (swapcore_solaris_bcp): Likewise.
264
003b8e1d
DJ
2652006-05-04 Daniel Jacobowitz <[email protected]>
266
267 * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling
268 for missing GOTs.
269
efacb0fb
DJ
2702006-05-04 Daniel Jacobowitz <[email protected]>
271
27106ff0 272 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more
efacb0fb
DJ
273 mapping symbols.
274
9578239d
BE
2752006-05-04 Ben Elliston <[email protected]>
276
277 * coff-or32.c (bfd_section_from_shdr): Remove unused local
278 variable `ptr'.
279 * cofflink.c (process_embedded_commands): Remove unused local
280 variables `had_read' and `had_shared'.
281 * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local
282 variable `fdr_adr'.
283 * ihex.c (ihex_read_section): Remove unused local variable `addr'.
284
f592407e
AM
2852006-05-03 Alan Modra <[email protected]>
286
287 * libbfd-in.h (_bfd_generic_new_section_hook): Declare.
288 * section.c (bfd_abs_symbol, bfd_com_symbol): Delete.
289 (bfd_und_symbol, bfd_ind_symbol): Delete.
290 (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to
291 &SEC.symbol.
292 (STD_SECTION): Adjust.
293 (_bfd_generic_new_section_hook): New function, extracted from..
294 (bfd_section_init): ..here.
295 (bfd_make_section_old_way): Call new_section_hook for abs, com,
296 und and ind sections.
297 * elf.c (_bfd_elf_large_com_section): Adjust.
298 * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook.
299 * pdp11.c (new_section_hook): Likewise.
300 * coffcode.h (coff_new_section_hook): Likewise.
301 * ecoff.c (_bfd_ecoff_new_section_hook): Likewise.
302 * elf.c (_bfd_elf_new_section_hook): Likewise.
303 * vms.c (vms_new_section_hook): Likwise.
304 * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't
305 already set.
306 * elf32-sh64.c (sh64_elf_new_section_hook): Likewise.
307 * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise.
308 * elf64-mmix.c (mmix_elf_new_section_hook): Likewise.
309 * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise.
310 * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise.
311 * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise.
312 * ieee.c (ieee_new_section_hook): Likewise. Call
313 _bfd_generic_new_section_hook too.
314 * mmo.c (mmo_new_section_hook): Likewise.
315 * oasys.c (oasys_new_section_hook): Likewise.
316 * som.c (som_new_section_hook): Likewise.
317 * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol.
318 * bfd-in2.h: Regenerate.
319 * libbfd.h: Regenerate.
320
bd75c995
AM
3212006-05-03 Alan Modra <[email protected]>
322
323 * hash.c (DEFAULT_SIZE): Revert last change.
324 (higher_prime_number): Correct test for no larger prime. Don't
325 abort on error, instead return 0. Depopulate primes[].
326 (bfd_hash_lookup): If we overflow size, refuse to grow table.
327
a8bc6c78
PB
3282006-05-02 Paul Brook <[email protected]>
329
330 * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit
331 for R_ARM_REL32.
332
b48c61bc
BE
3332006-05-02 Ben Elliston <[email protected]>
334
335 * archive.c (bfd_generic_archive_p): Remove unused local variable
336 `fail'.
337 * dwarf2.c (decode_line_info): Remove unused local variable
338 `basic_block'.
e4d4d200
BE
339 * elfcode.h (elf_slurp_reloc_table_from_section): Remove unused
340 local variable `s'.
b48c61bc
BE
341 * tekhex.c (tekhex_write_object_contents): Remove unused local
342 variable `bytes_written'.
343 * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local
344 variable `r_addend'.
345 * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns.
346 * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns.
347 (_bfd_ns32k_relocate_contents): Remove break after return.
348 * elf.c (bfd_section_from_shdr): Remove breaks after returns.
349
63f2fc30
NC
3502006-05-02 Nick Clifton <[email protected]>
351
352 * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG
353 in order to avoid conflicts with the global DEBUG define.
354
e460dd0d
AM
3552006-05-02 Alan Modra <[email protected]>
356
357 * dwarf2.c: Formatting.
358 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify
359 output section check.
360 * elf32-i370.c: Warning fixes inside #ifdef DEBUG.
361 * elf32-m32c.c: Similarly.
362 * elf32-ppc.c: Similarly.
363 * elf32-v850.c: Similarly.
364 * nlm32-sparc.c: Similarly.
365 * elfcode.h: Similarly.
366 (elf_symbol_flags): Delete.
367 * elflink.c (elf_link_input_bfd): Comment typo.
368
aa149cf7
DD
3692006-05-01 DJ Delorie <[email protected]>
370
371 * bfd-in.h (bfd_hash_table): Add count field.
372 * bfd-in2.h: Regenerate.
373 * hash.c (higher_prime_number): New.
374 (bfd_hash_table_inint_n): Init count field.
375 (bfd_hash_lookup): Grow table as needed.
376
75b8939e
KK
3772006-04-27 Kaz Kojima <[email protected]>
378
379 PR binutils/2584
380 * tekhex.c (getvalue): Change return type to bfd_boolean and
381 add the new parameter. Return false if the unexpected character
382 is found.
383 (getsym): Likewise.
384 (first_phase): Change return type to bfd_boolean and return
385 false if the unexpected character is found. Replace abort
386 with returning false.
387 (pass_over): Change return type to bfd_boolean and the type of
388 the second argument to bfd_boolean (*) (bfd *, int, char *).
389 Return false if FUNC returns false.
390 (tekhex_object_p): Return NULL if pass_over fails.
391
f05742e6
AM
3922006-04-27 Alan Modra <[email protected]>
393
394 * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix.
395
e843e0f8
L
3962006-04-26 H.J. Lu <[email protected]>
397
398 PR binutils/2593
399 * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type
400 and flags if its BFD flags have been set.
401 (_bfd_elf_init_private_section_data): Don't copy the output ELF
402 section type from input if it has been set to something
403 different.
404
b25e3d87
L
4052006-04-25 H.J. Lu <[email protected]>
406
407 PR binutils/2467
408 * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd)
409 is NULL first.
410
411 * elf32-arm.c (elf32_arm_close_and_cleanup): Check if
412 abfd->sections is NULL.
413 (elf32_arm_bfd_free_cached_info): New.
414 (bfd_elf32_bfd_free_cached_info): Defined.
415
416 * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it
417 to _bfd_free_cached_info.
418
419 * libbfd-in.h (_bfd_free_cached_info): New.
420 * libbfd: Regenerated.
421
422 * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL.
423 (_bfd_free_cached_info): New.
424
5c182d5f
AM
4252006-04-21 Alan Modra <[email protected]>
426
427 * elf.c (assign_file_positions_except_relocs): Move code setting
428 file position of non-loaded sections..
429 (assign_file_positions_for_segments): ..to here.
430
3eb70a79
L
4312006-04-20 H.J. Lu <[email protected]>
432
433 PR ld/2537
434 * elf.c (bfd_section_from_shdr): Allow sections reserved for
435 applications. Issue an error on sections we don't know how
436 to handle.
437
ec3fcc56
AM
4382006-04-19 Alan Modra <[email protected]>
439
440 * Makefile.am: Run "make dep-am".
441 * Makefile.in: Regenerate.
442
241a6c40
AM
4432006-04-19 Alan Modra <[email protected]>
444
445 * warning.m4 (--enable-werror): Format help message.
446 (--enable-build-warnings): Likewise.
447 * configure: Regenerate.
448
0b49d371
NC
4492006-04-18 Nick Clifton <[email protected]>
450
451 PR 2257
452 * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx
453 fields to still be handled as ELF files.
454
e7403566
DJ
4552006-04-16 Daniel Jacobowitz <[email protected]>
456
457 * po/SRC-POTFILES.in: Regenerated.
458
ffdc4eed
DJ
4592006-04-16 Daniel Jacobowitz <[email protected]>
460
461 * configure.in: Update version to 2.17.50.
462 * configure: Regenerated.
463
cb337148
BW
4642006-04-14 David Heine <[email protected]>
465
466 * elf32-xtensa.c (build_reloc_opcodes): New.
467 (compute_text_actions): Use it to decode opcodes outside inner loop.
468 (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if
469 it is set, use it to get the opcodes for relocations.
470 (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit.
471
cb878726
L
4722006-04-08 H.J. Lu <[email protected]>
473
474 PR ld/2513
475 * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type.
476 (GOT_TLS_IE_IE): Likewise.
477 (GOT_TLS_IE_GD): Likewise.
478 (GOT_TLS_IE_MASK): Likewise.
479 (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD
480 and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE
481 respectively.
482 (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD
483 are set, treat tls_type as GOT_TLS_IE_BOTH.
484 (elf_i386_relocate_section): Likewise.
485
235ecfbc
NC
4862006-04-07 Randolph Chung <[email protected]>
487
488 * elf64-hppa.c (elf64_hppa_grok_prstatus): New function.
489 (elf64_hppa_grok_psinfo): Likewise.
490 (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define.
491
35520cb7
DD
4922006-04-06 DJ Delorie <[email protected]>
493
494 * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for
495 each plt entry we create.
496
108a6f8e
CD
4972006-04-06 Carlos O'Donell <[email protected]>
498
499 * po/Make-in: Add install-html target.
500 * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
501 htmldir. Add install-html and install-html-recursive targets.
502 * Makefile.in: Regenerate.
503 * configure.in: AC_SUBST for datarootdir, docdir and htmldir.
504 * configure: Regenerate.
505
fbbc3759
L
5062006-04-06 H.J. Lu <[email protected]>
507
508 * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes
509 with the skip_relax_pass_0 and skip_relax_pass_1 bits in the
510 section structure.
511
17e226a8
BS
5122006-04-05 Bernd Schmidt <[email protected]>
513
514 * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
515 eliminate warnings.
516
396a682d
L
5172006-04-05 H.J. Lu <[email protected]>
518 James E Wilson <[email protected]>
519
520 PR ld/2442
521 * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next.
522 (elfNN_ia64_local_hash_entry): Add count, sorted_count and
523 size.
524 (elfNN_ia64_link_hash_entry): Likewise.
525 (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count
526 and size.
527 (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info
528 processing.
529 (elfNN_ia64_hash_hide_symbol): Likewise.
530 (elfNN_ia64_global_dyn_sym_thunk): Likewise.
531 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
532 (elfNN_ia64_global_dyn_info_free): New function.
533 (elfNN_ia64_local_dyn_info_free): Likewise.
534 (elfNN_ia64_hash_table_free): Free local and global
535 elfNN_ia64_dyn_sym_info.
536 (addend_compare): New function.
537 (sort_dyn_sym_info): Likewise.
538 (get_dyn_sym_info): Updated to use binary search for addend.
539 (elfNN_ia64_check_relocs): Scan relocations to create dynamic
540 relocation arrays first.
541
0781db9f
BS
5422006-04-05 Bernd Schmidt <[email protected]>
543
544 * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
545 symbol.
546
c0d5a53d
L
5472006-04-05 H.J. Lu <[email protected]>
548
549 PR ld/2411
550 * elflink.c (check_dynsym): New.
551 (elf_link_output_extsym): Use it.
552 (bfd_elf_final_link): Likewise.
553
580a2b6e
L
5542006-04-05 H.J. Lu <[email protected]>
555
556 PR ld/2404
557 * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect
558 symbol from the dynamic definition with the default version if
559 its type and the type of existing regular definition mismatch.
560
910600e9
RS
5612006-04-05 Richard Sandiford <[email protected]>
562 Daniel Jacobowitz <[email protected]>
563
564 * config.bfd (sparc-*-vxworks*): New stanza.
565 * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
566 (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
567 * configure: Regenerate.
568 * elf32-sparc.c: Include elf-vxworks.h.
569 (elf32_sparc_vxworks_link_hash_table_create: New.
570 (elf32_sparc_vxworks_final_write_processing): New.
571 (TARGET_BIG_SYM): Override for VxWorks.
572 (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
573 (bfd_elf32_bfd_link_hash_table_create): Likewise.
574 (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
575 (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
576 (elf_backend_link_output_symbol_hook): Likewise.
577 (elf_backend_emit_relocs): Likewise.
578 (elf_backend_final_write_processing, elf32_bed): Likewise.
579 * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
580 (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
581 (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
582 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
583 build_plt_entry here.
584 (create_got_section): Initialize sgotplt for VxWorks.
585 (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
586 plt_header_size and plt_entry_size, with new VxWorks-specific settings.
587 Call elf_vxworks_create_dynamic_sections for VxWorks.
588 (allocate_dynrelocs): Use plt_header_size and plt_entry_size.
589 Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
590 (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
591 for VxWorks. Check for the .got.plt section.
592 (sparc_vxworks_build_plt_entry): New function.
593 (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
594 Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
595 absolute on VxWorks.
596 (sparc32_finish_dyn): Add special handling for DT_RELASZ
597 and DT_PLTGOT on VxWorks.
598 (sparc_vxworks_finish_exec_plt): New.
599 (sparc_vxworks_finish_shared_plt): New.
600 (_bfd_sparc_elf_finish_dynamic_sections): Call them.
601 Use plt_header_size and plt_entry_size.
602 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
603 srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
604 * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
605 (elf32-sparc.lo): Likewise.
606 * Makefile.in: Regenerate.
607 * targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
608 (_bfd_target_vector): Add a pointer to it.
609
b761a207
BE
6102006-03-30 Ben Elliston <[email protected]>
611
612 PR ld/2267
613 * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
614 special section number that exceeds the number of ELF sections
615 (eg. SHN_MIPS_SCOMMON).
616
ead49a57
RS
6172006-03-27 Richard Sandiford <[email protected]>
618
619 * elfxx-mips.c (mips_got_entry): Add more commentary.
620 (mips_elf_local_got_index): Use the hash table entry to record
621 the GOT index of forced-local symbols.
622 (mips_elf_initialize_tls_index): Rearrange code. Store the index
623 in either the hash table entry or the mips_got_entry, not both.
624 Add more commentary.
625 (mips_elf_multi_got): Make sure the g->next is nonnull when calling
626 mips_elf_initialize_tls_index.
627
3b55e94a
BS
6282006-03-25 Bernd Schmidt <[email protected]>
629
630 * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
631 RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
632 reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
633 bfin_areloc_howto_table): Delete. All
634 uses deleted as well.
635 (bfin_reloc_map): Delete all stack relocs.
636 (bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
637 bfin_reloc_type_lookup): Don't support them.
638 (bfin_relocate_section): Don't try to handle them.
639
48d502e1
BS
640 * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
641 * configure.in: Likewise.
642 * configure: Regenerate.
643 * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
644 (BFIN_RELOC_MAX): Now 0x21.
645 (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
646 (bfd_elf32_bfinfdpic_vec): Declare.
647 (IS_FDPIC): New macro.
648 (struct bfinfdpic_elf_link_hash_table): New struct.
649 (bfinfdpic_hash_table, bfinfdpic_got_section,
650 bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
651 bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
652 bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
653 bfinfdpic_plt_initial_offset): Accessor macros for it.
654 (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
655 (struct bfinfdpic_relocs_info): New struct.
656 (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
657 BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
658 DEFAULT_STACK_SIZE): New macros.
659 (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
660 bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
661 bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
662 bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
663 _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
664 _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
665 bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
666 _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
667 elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
668 _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
669 _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
670 _bfinfdpic_resolve_final_relocs_info,
671 elf32_bfinfdpic_size_dynamic_sections,
672 elf32_bfinfdpic_always_size_sections,
673 elf32_bfinfdpic_modify_segment_map,
674 _bfinfdpic_count_got_plt_entries,
675 elf32_bfinfdpic_finish_dynamic_sections,
676 elf32_bfinfdpic_adjust_dynamic_symbol,
677 elf32_bfinfdpic_finish_dynamic_symbol,
678 elf32_bfinfdpic_elf_use_relative_eh_frame,
679 elf32_bfinfdpic_elf_encode_eh_address,
680 elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
681 elf32_bfinfdpic_copy_private_bfd_data,
682 (struct _bfinfdpic_dynamic_got_info,
683 struct _bfinfdpic_dynamic_got_plt_info): New structs.
684 (elf32_bfin_print_private_bfd_data): Print PIC flags.
685 (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
686 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
687 elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
688 elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
689 bfd_elf32_bfd_copy_private_bfd_data,
690 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
691 elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
692 elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
693 elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
694 elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
695 elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
696 elf_backend_omit_section_dynsym): Redefine these macros and include
697 "elf32-target.h" again to create the elf32-bfinfdpic target.
698 * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
699 BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
700 BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
701 BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
702 BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
703 BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
704 BFD_RELOC_BFIN_GOTOFFLO): New.
705 * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
706 (_bfd_target_vector): Add it.
707 * bfd-in2.h: Regenerate.
708 * libbfd.h: Regenerate.
709
a9d34880
RS
7102006-03-25 Richard Sandiford <[email protected]>
711
712 * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
713 incompatible. Likewise MAC and EMAC code.
714 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
715 bfd_get_compatible to set the new bfd architecture. Rely on it
716 to detect incompatibilities.
717
9ca26584
AJ
7182006-03-23 Michael Matz <[email protected]>
719
720 * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64,
721 BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64,
722 BFD_RELOC_X86_64_PLTOFF64.
723 * bfd-in2.h: Regenerated.
724 * libbfd.h: Regenerated.
725 * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment.
726 Add howtos for above relocs.
727 (x86_64_reloc_map): Add mappings for new relocs.
728 (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64,
729 R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT
730 entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64
731 needs a PLT entry.
732 (elf64_x86_64_gc_sweep_hook): Reflect changes from
733 elf64_x86_64_check_relocs for the new relocs.
734 (elf64_x86_64_relocate_section): Handle new relocs.
735
2a23c2c5
BW
7362006-03-22 Bob Wilson <[email protected]>
737
738 * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
739 rel->r_addend is zero.
740
6d79d2ed
RS
7412006-03-22 Richard Sandiford <[email protected]>
742
743 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
744 of "loc".
745
0a44bf69
RS
7462006-03-22 Richard Sandiford <[email protected]>
747 Daniel Jacobowitz <[email protected]>
748 Phil Edwards <[email protected]>
749 Zack Weinberg <[email protected]>
750 Mark Mitchell <[email protected]>
751 Nathan Sidwell <[email protected]>
752
753 * bfd-in2.h: Regenerate.
754 * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
755 * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
756 (bfd_elf32_littlemips_vxworks_vec): Likewise.
757 (bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
758 (bfd_elf32_littlemips_vec): Likewise.
759 (bfd_elf32_nbigmips_vec): Likewise.
760 (bfd_elf32_nlittlemips_vec): Likewise.
761 (bfd_elf32_ntradbigmips_vec): Likewise.
762 (bfd_elf32_ntradlittlemips_vec): Likewise.
763 (bfd_elf32_tradbigmips_vec): Likewise.
764 (bfd_elf32_tradlittlemips_vec): Likewise.
765 (bfd_elf64_bigmips_vec): Likewise.
766 (bfd_elf64_littlemips_vec): Likewise.
767 (bfd_elf64_tradbigmips_vec): Likewise.
768 (bfd_elf64_tradlittlemips_vec): Likewise.
769 * elf32-mips.c: Include elf-vxworks.h.
770 (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
771 instead of calling mips_elf32_rtype_to_howto directly.
772 (mips_vxworks_copy_howto_rela): New reloc howto.
773 (mips_vxworks_jump_slot_howto_rela): Likewise.
774 (mips_vxworks_bfd_reloc_type_lookup): New function.
775 (mips_vxworks_rtype_to_howto): Likewise.
776 (mips_vxworks_final_write_processing): Likewise.
777 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
778 (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
779 (elf_backend_want_got_plt): Likewise.
780 (elf_backend_want_plt_sym): Likewise.
781 (elf_backend_got_symbol_offset): Likewise.
782 (elf_backend_want_dynbss): Likewise.
783 (elf_backend_may_use_rel_p): Likewise.
784 (elf_backend_may_use_rela_p): Likewise.
785 (elf_backend_default_use_rela_p): Likewise.
786 (elf_backend_got_header_size: Likewise.
787 (elf_backend_plt_readonly): Likewise.
788 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
789 (elf_backend_mips_rtype_to_howto): Likewise.
790 (elf_backend_adjust_dynamic_symbol): Likewise.
791 (elf_backend_finish_dynamic_symbol): Likewise.
792 (bfd_elf32_bfd_link_hash_table_create): Likewise.
793 (elf_backend_add_symbol_hook): Likewise.
794 (elf_backend_link_output_symbol_hook): Likewise.
795 (elf_backend_emit_relocs): Likewise.
796 (elf_backend_final_write_processing: Likewise.
797 (elf_backend_additional_program_headers): Likewise.
798 (elf_backend_modify_segment_map): Likewise.
799 (elf_backend_symbol_processing): Likewise.
800 * elfxx-mips.c: Include elf-vxworks.h.
801 (mips_elf_link_hash_entry): Add is_relocation_target and
802 is_branch_target fields.
803 (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
804 srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
805 (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
806 (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
807 Return 3 for VxWorks.
808 (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
809 mips_elf_link_hash_table. Return 0 for VxWorks.
810 (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
811 mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET.
812 (mips_vxworks_exec_plt0_entry): New variable.
813 (mips_vxworks_exec_plt_entry): Likewise.
814 (mips_vxworks_shared_plt0_entry): Likewise.
815 (mips_vxworks_shared_plt_entry): Likewise.
816 (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
817 (mips_elf_rel_dyn_section): Change the bfd argument to a
818 mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get
819 the name of the section.
820 (mips_elf_initialize_tls_slots): Update the call to
821 mips_elf_rel_dyn_section.
822 (mips_elf_gotplt_index): New function.
823 (mips_elf_local_got_index): Add an input_section argument.
824 Update the call to mips_elf_create_local_got_entry.
825 (mips_elf_got_page): Likewise.
826 (mips_elf_got16_entry): Likewise.
827 (mips_elf_create_local_got_entry): Add bfd_link_info and input_section
828 arguments. Create dynamic relocations for each entry on VxWorks.
829 (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
830 (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
831 and MIPS_RESERVED_GOTNO.
832 (mips_elf_create_got_section): Update the uses of
833 MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks.
834 (is_gott_symbol): New function.
835 (mips_elf_calculate_relocation): Use a dynobj local variable.
836 Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
837 mips_elf_got_page_entry. Set G to the .got.plt entry when calculating
838 VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT
839 relocations on VxWorks. Add dynamic relocations for references
840 to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't
841 create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
842 in VxWorks executables.
843 (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
844 Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
845 Don't allocate a null entry on VxWorks.
846 (mips_elf_create_dynamic_relocation): Update the call to
847 mips_elf_rel_dyn_section. Use absolute rather than relative
848 relocations for VxWorks, and make them RELA rather than REL.
849 (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
850 read-only on VxWorks. Update the call to mips_elf_rel_dyn_section.
851 Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
852 VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
853 Call elf_vxworks_create_dynamic_sections for VxWorks and
854 initialize the plt_header_size and plt_entry_size fields.
855 (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
856 used in VxWorks executables. Don't allocate dynamic relocations
857 for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
858 Set is_relocation_target for each symbol referenced by a relocation.
859 Allocate .rela.dyn entries for relocations against the special
860 VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT
861 entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate
862 a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
863 R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls
864 to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
865 Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
866 relocations. Don't set no_fn_stub on VxWorks.
867 (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
868 mips_elf_allocate_dynamic_relocations.
869 (_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
870 (_bfd_mips_elf_always_size_sections): Do not allocate GOT page
871 entries for VxWorks, and do not create multiple GOTs.
872 (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
873 Handle .got specially for VxWorks. Update the uses of
874 MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
875 Check for sgotplt and splt. Allocate the .rel(a).dyn contents last,
876 once its final size is known. Set DF_TEXTREL for VxWorks. Add
877 DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
878 tags on VxWorks. Do not add the MIPS-specific tags for VxWorks.
879 (_bfd_mips_vxworks_finish_dynamic_symbol): New function.
880 (mips_vxworks_finish_exec_plt): Likewise.
881 (mips_vxworks_finish_shared_plt): Likewise.
882 (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
883 to mips_elf_rel_dyn_section. Use a VxWorks-specific value of
884 DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
885 DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO
886 and mips_elf_rel_dyn_section. Use a different GOT header for
887 VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks.
888 (_bfd_mips_elf_link_hash_table_create): Initialize the new
889 mips_elf_link_hash_table fields.
890 (_bfd_mips_vxworks_link_hash_table_create): New function.
891 (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
892 on VxWorks. Update the call to ELF_MIPS_GP_OFFSET.
893 * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
894 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
895 (_bfd_mips_vxworks_link_hash_table_create): Likewise.
896 * libbfd.h: Regenerate.
897 * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
898 (elf32-mips.lo): Likewise.
899 * Makefile.in: Regenerate.
900 * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
901 * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
902 (bfd_elf32_littlemips_vxworks_vec): Likewise.
903 (_bfd_target_vector): Add entries for them.
904
a2199086
DA
9052006-03-19 John David Anglin <[email protected]>
906
907 * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
908 section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
909 (elf_backend_special_sections): Remove #undef.
910
af7cfa33
DA
9112006-03-18 John David Anglin <[email protected]>
912
913 * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
914 for undefined weak symbols.
915
a4676736
L
9162006-03-17 Daniel Jacobowitz <[email protected]>
917
918 PR ld/2462
919 * elflink.c (bfd_elf_final_link): Remove
920 bed->elf_backend_emit_relocs from emit_relocs.
921
e1710606
AO
9222006-03-17 Alexandre Oliva <[email protected]>
923
924 * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
925 first relocation to the second when relaxing TLS GD to LE;
926 zero it out when relaxing to IE.
927
2de92251
AM
9282006-03-17 Alan Modra <[email protected]>
929
930 PR 2434
931 * elflink.c (elf_link_add_object_symbols): Save and restore
932 warning sym's linked sym.
933
66eb6687
AM
9342006-03-16 Alan Modra <[email protected]>
935
936 PR 2434
937 * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
938 (elf_link_add_object_symbols): Delete unnecessary locals. Rename
939 hash_table -> htab. Formatting. Save entire symbol table
940 before loading as-needed syms, and restore afterwards if lib not
941 needed. Use bfd_hash_allocate rather than bfd_alloc for sym
942 name. Free some buffers earlier.
943 * bfd-in.h (struct bfd_hash_table): Add entsize.
944 (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
945 * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
946 * hash.c (bfd_hash_table_init_n): Add entsize param, save to
947 hash table.
948 (bfd_hash_table_init): Add param, adjust calls.
949 * aoutx.h: Adjust all hash_table_init functions and calls.
950 * bfd.c: Likewise.
951 * coff-arm.c: Likewise.
952 * coff-h8300.c: Likewise.
953 * coff-ppc.c: Likewise.
954 * cofflink.c: Likewise.
955 * ecoff.c: Likewise.
956 * ecofflink.c: Likewise.
957 * elf-m10300.c: Likewise.
958 * elf-strtab.c: Likewise.
959 * elf.c: Likewise.
960 * elf32-arm.c: Likewise.
961 * elf32-bfin.c: Likewise.
962 * elf32-cris.c: Likewise.
963 * elf32-frv.c: Likewise.
964 * elf32-hppa.c: Likewise.
965 * elf32-i386.c: Likewise.
966 * elf32-m32r.c: Likewise.
967 * elf32-m68hc1x.c: Likewise.
968 * elf32-m68k.c: Likewise.
969 * elf32-ppc.c: Likewise.
970 * elf32-s390.c: Likewise.
971 * elf32-sh.c: Likewise.
972 * elf32-vax.c: Likewise.
973 * elf64-alpha.c: Likewise.
974 * elf64-hppa.c: Likewise.
975 * elf64-ppc.c: Likewise.
976 * elf64-s390.c: Likewise.
977 * elf64-sh64.c: Likewise.
978 * elf64-x86-64.c: Likewise.
979 * elfxx-ia64.c: Likewise.
980 * elfxx-mips.c: Likewise.
981 * elfxx-sparc.c: Likewise.
982 * i386linux.c: Likewise.
983 * libaout.h: Likewise.
984 * libbfd-in.h: Likewise.
985 * libcoff-in.h: Likewise.
986 * linker.c: Likewise.
987 * m68klinux.c: Likewise.
988 * merge.c: Likewise.
989 * opncls.c: Likewise.
990 * pdp11.c: Likewise.
991 * sparclinux.c: Likewise.
992 * stabs.c: Likewise.
993 * sunos.c: Likewise.
994 * vms.c: Likewise.
995 * xcofflink.c: Likewise.
996 * section.c (struct section_hash_entry): Move to..
997 * libbfd-in.h: ..here.
998 * Makefile.am: Run "make dep-am"
999 * Makefile.in: Regenerate.
1000 * bfd-in2.h: Regenerate.
1001 * libbfd.h: Regenerate.
1002 * libcoff.h: Regenerate.
1003
7123df0e
AM
10042006-03-16 Alan Modra <[email protected]>
1005
1006 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
1007 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
1008 last change to REL32 relocs so that they are counted as
1009 possibly dynamic as per REL24 and REL14.
1010
fd38b44c
AM
10112006-03-16 Alan Modra <[email protected]>
1012
1013 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
1014 checks from REL32.
1015
eb111b1f
BE
10162006-03-15 Ben Elliston <[email protected]>
1017
1018 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
1019 in_list elements, not just the first.
1020
81d43bff
RS
10212006-03-14 Richard Sandiford <[email protected]>
1022
1023 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
1024 out from...
1025 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
1026 for final links too.
1027
d329bcd1
RS
10282006-03-13 Richard Sandiford <[email protected]>
1029
1030 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
1031
75a657ba
L
10322006-03-11 H.J. Lu <[email protected]>
1033
1034 PR ld/2443
241a6c40 1035 * dwarf2.c (concat_filename): Don't issue an error if file is 0.
75a657ba 1036
3a4a14e9
PB
10372006-03-10 Paul Brook <[email protected]>
1038
1039 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
1040 (elf32_arm_print_private_bfd_data): Ditto.
1041
38406048
PB
10422006-03-09 Paul Brook <[email protected]>
1043
1044 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
1045 mapping symbols.
1046
eed62c48
NC
10472006-03-09 Khem Raj <[email protected]>
1048
1049 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
1050 char type.
1051
6d2cf7d8
L
10522006-03-08 H.J. Lu <[email protected]>
1053
1054 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
1055
00a97672
RS
10562006-03-07 Richard Sandiford <[email protected]>
1057 Daniel Jacobowitz <[email protected]>
1058 Zack Weinberg <[email protected]>
1059 Nathan Sidwell <[email protected]>
1060 Paul Brook <[email protected]>
1061 Ricardo Anguiano <[email protected]>
1062 Phil Edwards <[email protected]>
1063
1064 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
1065 (bfd_elf32_bigarm_symbian_vec): Likewise.
1066 (bfd_elf32_bigarm_vxworks_vec): Likewise.
1067 (bfd_elf32_littlearm_vec): Likewise.
1068 (bfd_elf32_littlearm_symbian_vec): Likewise.
1069 (bfd_elf32_littlearm_vxworks_vec): Likewise.
1070 * configure: Regenerate.
1071 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
1072 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
1073 (elf32_arm_vxworks_bed): Add forward declaration.
1074 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
1075 (elf32_arm_vxworks_exec_plt0_entry): New table.
1076 (elf32_arm_vxworks_exec_plt_entry): Likewise.
1077 (elf32_arm_vxworks_shared_plt_entry): Likewise.
1078 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
1079 (reloc_section_p): New function.
1080 (create_got_section): Use RELOC_SECTION.
1081 (elf32_arm_create_dynamic_sections): Likewise. Call
1082 elf_vxworks_create_dynamic_sections for VxWorks targets.
1083 Choose between the two possible values of plt_header_size
1084 and plt_entry_size.
1085 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
1086 (elf32_arm_abs12_reloc): New function.
1087 (elf32_arm_final_link_relocate): Call it. Allow the creation of
1088 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
1089 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
1090 r_addend fields of relocs. On rela targets, skip any code that
1091 adjusts in-place addends. When using _bfd_link_final_relocate
1092 to perform a final relocation, pass rel->r_addend as the addend
1093 argument.
1094 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
1095 object, ignore flags that are not standard on VxWorks.
1096 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
1097 relocs on VxWorks. Use reloc_section_p.
1098 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
1099 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
1100 .rela.plt.unloaded relocs on VxWorks targets.
1101 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
1102 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
1103 instead of DT_REL* tags on RELA targets.
1104 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
1105 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
1106 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
1107 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
1108 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
1109 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
1110 Correct the .rela.plt.unreloaded symbol indexes.
1111 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
1112 hook on VxWorks targets.
1113 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
1114 Minor formatting tweak.
1115 (elf32_arm_vxworks_final_write_processing): New function.
1116 (elf_backend_add_symbol_hook): Override for VxWorks and reset
1117 for Symbian.
1118 (elf_backend_final_write_processing): Likewise.
1119 (elf_backend_emit_relocs): Likewise.
1120 (elf_backend_want_plt_sym): Likewise.
1121 (ELF_MAXPAGESIZE): Likewise.
1122 (elf_backend_may_use_rel_p): Minor formatting tweak.
1123 (elf_backend_may_use_rela_p): Likewise.
1124 (elf_backend_default_use_rela_p): Likewise.
1125 (elf_backend_rela_normal): Likewise.
1126 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
1127
0b2e31dc
NS
11282006-03-06 Nathan Sidwell <[email protected]>
1129
1130 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
1131 New. Adjust other variants.
1132 (bfd_default_scan): Update.
1133 * bfd-in2.h: Rebuilt.
1134 * cpu-m68k.c: Adjust.
1135 (bfd_m68k_compatible): New. Use it for architectures.
1136 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
1137 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
1138 mismatch.
1139 (elf32_m68k_print_private_bfd_data): Adjust.
1140 * ieee.c (ieee_write_processor): Adjust.
1141
d8d1c398
AM
11422006-03-06 Alan Modra <[email protected]>
1143
1144 * dwarf2.c: Formatting.
1145 (add_line_info): Remove outer loop.
1146
d4c32a81
L
11472006-03-05 H.J. Lu <[email protected]>
1148 Alan Modra <[email protected]>
1149
1150 PR binutils/2338
1151 * dwarf2.c (loadable_section): New struct.
1152 (dwarf2_debug): Add loadable_section_count and
1153 loadable_sections.
1154 (new_line_sorts_after): New.
1155 (add_line_info): Use new_line_sorts_after to compare line
1156 addresses.
1157 (check_function_name): Removed.
1158 (unset_sections): New.
1159 (place_sections): New.
1160 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
1161 and unset_sections on relocatable files.
1162 (_bfd_dwarf2_find_line): Likewise.
1163
4cdc7696
NC
11642006-03-03 Nick Clifton <[email protected]>
1165
1166 * cpu-avr.c: Update to ISO-C90 formatting.
1167 * elf32-avr.c: Likewise.
1168
df406460
NC
11692006-03-03 Bjoern Haase <[email protected]>
1170
1171 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
1172 and R_AVR_MS8_LDI
1173 (bfd_elf_avr_final_write_processing): Set
1174 EF_AVR_LINKRELAX_PREPARED in e_flags field.
1175 (elf32_avr_relax_section): New function.
1176 (elf32_avr_relax_delete_bytes): New function.
1177 (elf32_avr_get_relocated_section_contents): New function.
1178 (avr_pc_wrap_around): New function.
1179 (avr_relative_distance_considering_wrap_around): New function.
1180 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
1181 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
1182 * libbfd.h: Regenerate.
1183 * bfd-in2.h: Regenerate.
1184
a1013894
DD
11852006-03-02 DJ Delorie <[email protected]>
1186
1187 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
1188 calculations.
1189
7c492719
RS
11902006-03-02 Richard Sandiford <[email protected]>
1191
1192 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
1193 bfd_elf32_powerpc_vxworks_vec.
1194
e970df31
NC
11952006-03-02 Nick Clifton <[email protected]>
1196
1197 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
1198
711de32c
RS
11992006-03-02 Richard Sandiford <[email protected]>
1200
1201 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
1202 elf_vxworks_create_dynamic_sections.
1203 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
1204 symbol handling.
1205 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
1206 elf_vxworks_create_dynamic_sections.
1207 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
1208 symbol handling.
1209 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
1210 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
1211
9c72ff84
RS
12122006-03-02 Richard Sandiford <[email protected]>
1213
1214 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
1215 (elf_backend_link_output_symbol_hook): Use
1216 elf_vxworks_link_output_symbol_hook instead.
1217 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
1218 (elf_backend_link_output_symbol_hook): Use
1219 elf_vxworks_link_output_symbol_hook instead.
1220 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
1221 same interface as elf_backend_link_output_symbol_hook.
1222 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
1223 prototype accordingly.
1224
4a3dc543
RS
12252006-03-02 Richard Sandiford <[email protected]>
1226
1227 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
1228 (ppc_elf_link_hash_table): Replace old_got and new_got with
1229 plt_type and can_use_new_plt.
1230 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
1231 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
1232 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
1233 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
1234 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
1235 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
1236 this function should not be called for VxWorks targets.
1237 (ppc_elf_tls_setup): Use plt_type instead of old_got.
1238 (allocate_got): Likewise. Rearrange so that max_before_header
1239 is only used for PLT_OLD and PLT_NEW.
1240 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
1241 (ppc_elf_size_dynamic_sections): Likewise.
1242 (ppc_elf_relax_section): Likewise.
1243 (ppc_elf_relocate_section): Likewise.
1244 (ppc_elf_finish_dynamic_symbol): Likewise.
1245 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
1246
5ae0bfb6
RS
12472006-02-28 Richard Sandiford <[email protected]>
1248
1249 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
1250 (elf_i386_link_hash_table_create): Initialize it.
1251 (elf_i386_compute_jump_table_size): Use it instead of
1252 srelplt->reloc_count.
1253 (allocate_dynrelocs): Likewise.
1254 (elf_i386_size_dynamic_sections): Likewise.
1255 (elf_i386_relocate_section): Likewise.
1256
63752a75
JJ
12572006-02-27 Jakub Jelinek <[email protected]>
1258
1259 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
1260 (_bfd_elf_write_section_eh_frame): Likewise.
1261
f7d9e5c3
CD
12622006-02-27 Carlos O'Donell <[email protected]>
1263
1264 * po/Make-in: Add html target.
1265
22edb2f1
RS
12662006-02-27 Richard Sandiford <[email protected]>
1267
1268 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
1269 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
1270 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
1271 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
1272 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
1273 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
1274 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
1275 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
1276 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
1277 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
1278 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
1279 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
1280 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
1281 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
1282 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
1283 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
1284 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
1285 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
1286 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
1287 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
1288 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
1289
7325306f
RS
12902006-02-25 Richard Sandiford <[email protected]>
1291
1292 * elf-bfd.h (elf_link_hash_table): Add hplt field.
1293 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
1294 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
1295 * elf32-frv.c (_frv_create_got_section): Likewise.
1296 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
1297 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
1298 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
1299 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
1300 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
1301 (elf_i386_link_hash_table_create): Don't initialize them.
1302 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
1303 hgot fields.
1304 (elf_i386_finish_dynamic_symbol): Likewise.
1305 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
1306 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
1307 (ppc_elf_finish_dynamic_symbol): Likewise.
1308
6772dd07
DD
13092006-02-24 DJ Delorie <[email protected]>
1310
1311 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
1312 (m32c_elf_relocate_section): Don't relocate them.
1313 (compare_reloc): New.
1314 (relax_reloc): Remove.
1315 (m32c_offset_for_reloc): New.
1316 (m16c_addr_encodings): New.
1317 (m16c_jmpaddr_encodings): New.
1318 (m32c_addr_encodings): New.
1319 (m32c_elf_relax_section): Relax jumps and address displacements.
1320 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
1321 short jumps.
1322
1323 * reloc.c: Add m32c relax relocs.
1324 * libbfd.h: Regenerate.
1325 * bfd-in2.h: Regenerate.
1326
508c3946
L
13272006-02-24 H.J. Lu <[email protected]>
1328
1329 PR ld/2218
1330 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
1331 (_bfd_elf_link_hash_fixup_symbol): New.
1332
1333 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
1334 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
1335 it isn't NULL.
1336
1337 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
1338
1339 * elfxx-target.h (elf_backend_fixup_symbol): New.
1340 (elfNN_bed): Initialize elf_backend_fixup_symbol.
1341
59cf82fe
L
13422006-02-23 H.J. Lu <[email protected]>
1343
1344 * cpu-ia64-opc.c (ins_immu5b): New.
1345 (ext_immu5b): Likewise.
1346 (elf64_ia64_operands): Add IMMU5b.
1347
22d606e9
AM
13482006-02-21 Alan Modra <[email protected]>
1349
1350 PR ld/2218
1351 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
1352 is dynamic.
1353 * elf32-hppa.c (allocate_dynrelocs): Likewise.
1354 * elf32-i386.c (allocate_dynrelocs): Likewise.
1355 * elf32-s390.c (allocate_dynrelocs): Likewise.
1356 * elf32-sh.c (allocate_dynrelocs): Likewise.
1357 * elf64-s390.c (allocate_dynrelocs): Likewise.
1358 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
1359 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
1360 on undef weak with non-default visibility too.
1361 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
1362
3168356f
AM
13632006-02-21 Alan Modra <[email protected]>
1364
1365 * bfd.c: (_bfd_default_error_handler): Don't call abort on
1366 error, instead call _exit.
1367 (_bfd_abort): Call _exit not xexit.
1368
888b45b8
KB
13692006-02-17 Kevin Buettner <[email protected]>
1370
1371 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
1372 New functions.
1373 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
1374
d70c5fc7
NC
13752006-02-17 Shrirang Khisti <[email protected]>
1376 Anil Paranjape <[email protected]>
1377 Shilin Shakti <[email protected]>
1378
1379 * Makefile.am: Add xc16x related entry
1380 * Makefile.in: Regenerate
1381 * archures.c: Add bfd_xc16x_arch
1382 * bfd-in2.h: Regenerate
1383 * config.bfd: Add xc16x-*-elf
1384 * configure.in: Add bfd_elf32_xc16x_vec
1385 * configure: Regenerate.
1386 * targets.c: Added xc16x related information
1387 * cpu-xc16x.c: New file
1388 * reloc.c: Add new relocations specific to xc16x:
1389 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
1390 BFD_RELOC_XC16X_SOF
1391 * elf32-xc16x.c: New file.
1392
cab87ef9
AM
13932006-02-17 Alan Modra <[email protected]>
1394
1395 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
1396 * elf64-ppc.c (allocate_dynrelocs): Likewise.
1397
dfbb6ac9
AM
13982006-02-17 Alan Modra <[email protected]>
1399
1400 PR ld/2218
1401 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
1402 dynamic.
1403 (ppc64_elf_relocate_section): Check output reloc section size.
1404 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
1405
cedc298e
L
14062006-02-16 H.J. Lu <[email protected]>
1407
1408 PR ld/2322
1409 * elf.c (get_segment_type): New function.
1410 (_bfd_elf_print_private_bfd_data): Use it.
1411 (print_segment_map): New function.
1412 (assign_file_positions_for_segments): Call print_segment_map
1413 when there are not enough room for program headers.
1414
aaa2ab3d
NH
14152006-02-16 Nick Hudson <[email protected]>
1416
1417 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
1418 traditional MIPS ELF targets.
1419
35ccda9e
L
14202006-02-15 H.J. Lu <[email protected]>
1421
1422 PR binutils/2338
1423 * dwarf2.c (check_function_name): New function.
1424 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
1425 check if function is correct.
1426
e0ae6d6f
AM
14272006-02-16 Alan Modra <[email protected]>
1428
1429 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
1430 debug sections.
1431 (elf_link_input_bfd): Adjust comments.
1432
d55ce4e2
L
14332006-02-10 H.J. Lu <[email protected]>
1434
1435 * elf.c (copy_private_bfd_data): Minor update.
1436
84d1d650
L
14372006-02-10 H.J. Lu <[email protected]>
1438
1439 PR binutils/2258
1440 * elf.c (copy_private_bfd_data): Renamed to ...
1441 (rewrite_elf_program_header): This.
1442 (copy_elf_program_header): New function.
1443 (copy_private_bfd_data): Likewise.
1444
14452006-02-07 Nathan Sidwell <[email protected]>
266abb8f
NS
1446
1447 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
1448 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
1449 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
1450 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
1451 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
1452 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
1453 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
1454 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
1455 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
1456 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
1457 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
1458 bfd_mach_mcf_isa_b_usp_float_emac): New.
1459 (bfd_default_scan): Update coldfire mapping.
1460 * bfd-in.h (bfd_m68k_mach_to_features,
1461 bfd_m68k_features_to_mach): Declare.
1462 * bfd-in2.h: Rebuilt.
1463 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
1464 adjust legacy names.
1465 (m68k_arch_features): New.
1466 (bfd_m68k_mach_to_features,
1467 bfd_m68k_features_to_mach): Define.
1468 * elf32-m68k.c (elf32_m68k_object_p): New.
1469 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
1470 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
1471 (elf_backend_object_p): Define.
1472 * ieee.c (ieee_write_processor): Update coldfire machines.
1473 * libbfd.h: Rebuilt.
1474
75eb734c
SE
14752006-02-06 Steve Ellcey <[email protected]>
1476
1477 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
1478 if SHF_TLS is set.
1479
134dcee5
AM
14802006-02-05 Arnold Metselaar <[email protected]>
1481
1482 * coff-z80.c (r_imm24): New howto.
1483 (rtype2howto): New case R_IMM24.
1484 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
1485 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
1486
4005427f
RS
14872006-02-04 Richard Sandiford <[email protected]>
1488
1489 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
1490 has already been assigned a GOT index, copy that index to the
1491 current hash table entry.
1492
bb29dfea
EB
14932006-02-01 Eric Botcazou <[email protected]>
1494
1495 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
1496 for call-to-undefweak reloc overflow.
1497
dc669dc8
EB
14982006-01-31 Eric Botcazou <[email protected]>
1499
1500 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
1501 for 32-bit relocs overflow.
1502
1a0eb693
PB
15032006-01-27 Paul Brook <[email protected]>
1504
1505 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
1506 objects.
1507
67a4f2b7
AO
15082006-01-18 Alexandre Oliva <[email protected]>
1509
1510 Introduce TLS descriptors for i386 and x86_64.
1511 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
1512 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
1513 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
1514 * libbfd.h, bfd-in2.h: Rebuilt.
1515 * elf32-i386.c (elf_howto_table): New relocations.
1516 (R_386_tls): Adjust.
1517 (elf_i386_reloc_type_lookup): Map new relocations.
1518 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1519 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1520 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
1521 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
1522 (elf_i386_local_tlsdesc_gotent): New macro.
1523 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
1524 (elf_i386_compute_jump_table_size): New macro.
1525 (link_hash_newfunc): Initialize tlsdesc_got.
1526 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
1527 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
1528 R_386_TLS_DESC_CALL.
1529 (elf_i386_check_relocs): Likewise. Allocate space for
1530 local_tlsdesc_gotent.
1531 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
1532 R_386_TLS_DESC_CALL.
1533 (allocate_dynrelocs): Count function PLT relocations. Reserve
1534 space for TLS descriptors and relocations.
1535 (elf_i386_size_dynamic_sections): Reserve space for TLS
1536 descriptors and relocations. Set up sgotplt_jump_table_size.
1537 Don't zero reloc_count in srelplt.
1538 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
1539 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
1540 R_386_TLS_DESC_CALL.
1541 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1542 (elf_backend_always_size_sections): Define.
1543 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
1544 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
1545 (R_X86_64_standard): Adjust.
1546 (x86_64_reloc_map): Map new relocs.
1547 (elf64_x86_64_rtype_to_howto): New, split out of...
1548 (elf64_x86_64_info_to_howto): ... this function, and...
1549 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
1550 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1551 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1552 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
1553 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
1554 (elf64_x86_64_local_tlsdesc_gotent): New macro.
1555 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
1556 tlsdesc_got and sgotplt_jump_table_size fields.
1557 (elf64_x86_64_compute_jump_table_size): New macro.
1558 (link_hash_newfunc): Initialize tlsdesc_got.
1559 (elf64_x86_64_link_hash_table_create): Initialize new fields.
1560 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
1561 R_X86_64_TLSDESC_CALL.
1562 (elf64_x86_64_check_relocs): Likewise. Allocate space for
1563 local_tlsdesc_gotent.
1564 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
1565 R_X86_64_TLSDESC_CALL.
1566 (allocate_dynrelocs): Count function PLT relocations. Reserve
1567 space for TLS descriptors and relocations.
1568 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
1569 descriptors and relocations. Set up sgotplt_jump_table_size,
1570 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
1571 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
1572 and DT_TLSDESC_GOT.
1573 (elf64_x86_64_always_size_sections): New. Set up
1574 _TLS_MODULE_BASE_.
1575 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
1576 R_386_TLS_DESC_CALL.
1577 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1578 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
1579 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
1580 (elf_backend_always_size_sections): Define.
1581
6dd55cb7
L
15822006-01-17 H.J. Lu <[email protected]>
1583
1584 PR binutils/2096
1585 * dwarf2.c (comp_unit_contains_address): Update comment.
1586 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
1587 lma. Return TRUE only if both comp_unit_contains_address and
1588 comp_unit_find_nearest_line return TRUE.
1589 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
1590
64d03ab5
AM
15912006-01-18 Alan Modra <[email protected]>
1592
1593 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
1594 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
1595 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
1596 elf_gc_mark_dynamic_ref_symbol. Make global.
1597 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
1598 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
1599 (elfNN_bed): Init new field.
1600 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
1601 (ppc64_elf_gc_mark_dynamic_ref): New function.
1602
b56cbdb9
AM
16032006-01-17 Alan Modra <[email protected]>
1604
1605 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
1606
6c10990d
NC
16072006-01-17 Nick Clifton <[email protected]>
1608
1609 PR binutils/2159
1610 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
1611 parameters.
1612
d7f735da
NC
16132006-01-11 Nick Clifton <[email protected]>
1614
1615 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
1616 into the newly (re)allocated map array.
1617
2bfd55ca
NC
16182006-01-09 Alexis Wilke <[email protected]>
1619
1620 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
1621
bce50a28
JJ
16222006-01-01 Jakub Jelinek <[email protected]>
1623
1624 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
1625 for .toc1 section.
1626
e88d958a 1627For older changes see ChangeLog-2005
56882138
AM
1628\f
1629Local Variables:
1630mode: change-log
1631left-margin: 8
1632fill-column: 74
1633version-control: never
1634End:
This page took 0.890364 seconds and 4 git commands to generate.