Cleanup of pseudo-ops for constants and new def24,def32 pseudo-ops on z80
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
2
3 * coff-z80.c (r_imm24): New howto.
4 (rtype2howto): New case R_IMM24.
5 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
6 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
7
8 2006-02-04 Richard Sandiford <richard@codesourcery.com>
9
10 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
11 has already been assigned a GOT index, copy that index to the
12 current hash table entry.
13
14 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
15
16 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
17 for call-to-undefweak reloc overflow.
18
19 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
20
21 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
22 for 32-bit relocs overflow.
23
24 2006-01-27 Paul Brook <paul@codesourcery.com>
25
26 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
27 objects.
28
29 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
30
31 Introduce TLS descriptors for i386 and x86_64.
32 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
33 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
34 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
35 * libbfd.h, bfd-in2.h: Rebuilt.
36 * elf32-i386.c (elf_howto_table): New relocations.
37 (R_386_tls): Adjust.
38 (elf_i386_reloc_type_lookup): Map new relocations.
39 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
40 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
41 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
42 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
43 (elf_i386_local_tlsdesc_gotent): New macro.
44 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
45 (elf_i386_compute_jump_table_size): New macro.
46 (link_hash_newfunc): Initialize tlsdesc_got.
47 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
48 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
49 R_386_TLS_DESC_CALL.
50 (elf_i386_check_relocs): Likewise. Allocate space for
51 local_tlsdesc_gotent.
52 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
53 R_386_TLS_DESC_CALL.
54 (allocate_dynrelocs): Count function PLT relocations. Reserve
55 space for TLS descriptors and relocations.
56 (elf_i386_size_dynamic_sections): Reserve space for TLS
57 descriptors and relocations. Set up sgotplt_jump_table_size.
58 Don't zero reloc_count in srelplt.
59 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
60 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
61 R_386_TLS_DESC_CALL.
62 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
63 (elf_backend_always_size_sections): Define.
64 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
65 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
66 (R_X86_64_standard): Adjust.
67 (x86_64_reloc_map): Map new relocs.
68 (elf64_x86_64_rtype_to_howto): New, split out of...
69 (elf64_x86_64_info_to_howto): ... this function, and...
70 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
71 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
72 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
73 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
74 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
75 (elf64_x86_64_local_tlsdesc_gotent): New macro.
76 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
77 tlsdesc_got and sgotplt_jump_table_size fields.
78 (elf64_x86_64_compute_jump_table_size): New macro.
79 (link_hash_newfunc): Initialize tlsdesc_got.
80 (elf64_x86_64_link_hash_table_create): Initialize new fields.
81 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
82 R_X86_64_TLSDESC_CALL.
83 (elf64_x86_64_check_relocs): Likewise. Allocate space for
84 local_tlsdesc_gotent.
85 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
86 R_X86_64_TLSDESC_CALL.
87 (allocate_dynrelocs): Count function PLT relocations. Reserve
88 space for TLS descriptors and relocations.
89 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
90 descriptors and relocations. Set up sgotplt_jump_table_size,
91 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
92 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
93 and DT_TLSDESC_GOT.
94 (elf64_x86_64_always_size_sections): New. Set up
95 _TLS_MODULE_BASE_.
96 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
97 R_386_TLS_DESC_CALL.
98 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
99 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
100 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
101 (elf_backend_always_size_sections): Define.
102
103 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
104
105 PR binutils/2096
106 * dwarf2.c (comp_unit_contains_address): Update comment.
107 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
108 lma. Return TRUE only if both comp_unit_contains_address and
109 comp_unit_find_nearest_line return TRUE.
110 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
111
112 2006-01-18 Alan Modra <amodra@bigpond.net.au>
113
114 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
115 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
116 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
117 elf_gc_mark_dynamic_ref_symbol. Make global.
118 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
119 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
120 (elfNN_bed): Init new field.
121 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
122 (ppc64_elf_gc_mark_dynamic_ref): New function.
123
124 2006-01-17 Alan Modra <amodra@bigpond.net.au>
125
126 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
127
128 2006-01-17 Nick Clifton <nickc@redhat.com>
129
130 PR binutils/2159
131 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
132 parameters.
133
134 2006-01-11 Nick Clifton <nickc@redhat.com>
135
136 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
137 into the newly (re)allocated map array.
138
139 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
140
141 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
142
143 2006-01-01 Jakub Jelinek <jakub@redhat.com>
144
145 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
146 for .toc1 section.
147
148 For older changes see ChangeLog-2005
149 \f
150 Local Variables:
151 mode: change-log
152 left-margin: 8
153 fill-column: 74
154 version-control: never
155 End:
This page took 0.033261 seconds and 5 git commands to generate.