]>
Commit | Line | Data |
---|---|---|
fbbc3759 L |
1 | 2006-04-06 H.J. Lu <[email protected]> |
2 | ||
3 | * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes | |
4 | with the skip_relax_pass_0 and skip_relax_pass_1 bits in the | |
5 | section structure. | |
6 | ||
17e226a8 BS |
7 | 2006-04-05 Bernd Schmidt <[email protected]> |
8 | ||
9 | * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to | |
10 | eliminate warnings. | |
11 | ||
396a682d L |
12 | 2006-04-05 H.J. Lu <[email protected]> |
13 | James E Wilson <[email protected]> | |
14 | ||
15 | PR ld/2442 | |
16 | * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next. | |
17 | (elfNN_ia64_local_hash_entry): Add count, sorted_count and | |
18 | size. | |
19 | (elfNN_ia64_link_hash_entry): Likewise. | |
20 | (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count | |
21 | and size. | |
22 | (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info | |
23 | processing. | |
24 | (elfNN_ia64_hash_hide_symbol): Likewise. | |
25 | (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
26 | (elfNN_ia64_local_dyn_sym_thunk): Likewise. | |
27 | (elfNN_ia64_global_dyn_info_free): New function. | |
28 | (elfNN_ia64_local_dyn_info_free): Likewise. | |
29 | (elfNN_ia64_hash_table_free): Free local and global | |
30 | elfNN_ia64_dyn_sym_info. | |
31 | (addend_compare): New function. | |
32 | (sort_dyn_sym_info): Likewise. | |
33 | (get_dyn_sym_info): Updated to use binary search for addend. | |
34 | (elfNN_ia64_check_relocs): Scan relocations to create dynamic | |
35 | relocation arrays first. | |
36 | ||
0781db9f BS |
37 | 2006-04-05 Bernd Schmidt <[email protected]> |
38 | ||
39 | * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp | |
40 | symbol. | |
41 | ||
c0d5a53d L |
42 | 2006-04-05 H.J. Lu <[email protected]> |
43 | ||
44 | PR ld/2411 | |
45 | * elflink.c (check_dynsym): New. | |
46 | (elf_link_output_extsym): Use it. | |
47 | (bfd_elf_final_link): Likewise. | |
48 | ||
580a2b6e L |
49 | 2006-04-05 H.J. Lu <[email protected]> |
50 | ||
51 | PR ld/2404 | |
52 | * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect | |
53 | symbol from the dynamic definition with the default version if | |
54 | its type and the type of existing regular definition mismatch. | |
55 | ||
910600e9 RS |
56 | 2006-04-05 Richard Sandiford <[email protected]> |
57 | Daniel Jacobowitz <[email protected]> | |
58 | ||
59 | * config.bfd (sparc-*-vxworks*): New stanza. | |
60 | * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza. | |
61 | (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo. | |
62 | * configure: Regenerate. | |
63 | * elf32-sparc.c: Include elf-vxworks.h. | |
64 | (elf32_sparc_vxworks_link_hash_table_create: New. | |
65 | (elf32_sparc_vxworks_final_write_processing): New. | |
66 | (TARGET_BIG_SYM): Override for VxWorks. | |
67 | (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise. | |
68 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
69 | (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise. | |
70 | (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise. | |
71 | (elf_backend_link_output_symbol_hook): Likewise. | |
72 | (elf_backend_emit_relocs): Likewise. | |
73 | (elf_backend_final_write_processing, elf32_bed): Likewise. | |
74 | * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h. | |
75 | (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New. | |
76 | (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New. | |
77 | (_bfd_sparc_elf_link_hash_table_create): Don't initialize | |
78 | build_plt_entry here. | |
79 | (create_got_section): Initialize sgotplt for VxWorks. | |
80 | (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry, | |
81 | plt_header_size and plt_entry_size, with new VxWorks-specific settings. | |
82 | Call elf_vxworks_create_dynamic_sections for VxWorks. | |
83 | (allocate_dynrelocs): Use plt_header_size and plt_entry_size. | |
84 | Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks. | |
85 | (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt | |
86 | for VxWorks. Check for the .got.plt section. | |
87 | (sparc_vxworks_build_plt_entry): New function. | |
88 | (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs. | |
89 | Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_ | |
90 | absolute on VxWorks. | |
91 | (sparc32_finish_dyn): Add special handling for DT_RELASZ | |
92 | and DT_PLTGOT on VxWorks. | |
93 | (sparc_vxworks_finish_exec_plt): New. | |
94 | (sparc_vxworks_finish_shared_plt): New. | |
95 | (_bfd_sparc_elf_finish_dynamic_sections): Call them. | |
96 | Use plt_header_size and plt_entry_size. | |
97 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks, | |
98 | srelplt2, sgotplt, plt_header_size and plt_entry_size fields. | |
99 | * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h. | |
100 | (elf32-sparc.lo): Likewise. | |
101 | * Makefile.in: Regenerate. | |
102 | * targets.c (bfd_elf32_sparc_vxworks_vec): Declare. | |
103 | (_bfd_target_vector): Add a pointer to it. | |
104 | ||
b761a207 BE |
105 | 2006-03-30 Ben Elliston <[email protected]> |
106 | ||
107 | PR ld/2267 | |
108 | * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a | |
109 | special section number that exceeds the number of ELF sections | |
110 | (eg. SHN_MIPS_SCOMMON). | |
111 | ||
ead49a57 RS |
112 | 2006-03-27 Richard Sandiford <[email protected]> |
113 | ||
114 | * elfxx-mips.c (mips_got_entry): Add more commentary. | |
115 | (mips_elf_local_got_index): Use the hash table entry to record | |
116 | the GOT index of forced-local symbols. | |
117 | (mips_elf_initialize_tls_index): Rearrange code. Store the index | |
118 | in either the hash table entry or the mips_got_entry, not both. | |
119 | Add more commentary. | |
120 | (mips_elf_multi_got): Make sure the g->next is nonnull when calling | |
121 | mips_elf_initialize_tls_index. | |
122 | ||
3b55e94a BS |
123 | 2006-03-25 Bernd Schmidt <[email protected]> |
124 | ||
125 | * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc, | |
126 | RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty, | |
127 | reloc_stack_push, reloc_stack_pop, reloc_stack_operate, | |
128 | bfin_areloc_howto_table): Delete. All | |
129 | uses deleted as well. | |
130 | (bfin_reloc_map): Delete all stack relocs. | |
131 | (bfin_info_to_howto, bfin_bfd_reloc_type_lookup, | |
132 | bfin_reloc_type_lookup): Don't support them. | |
133 | (bfin_relocate_section): Don't try to handle them. | |
134 | ||
48d502e1 BS |
135 | * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec. |
136 | * configure.in: Likewise. | |
137 | * configure: Regenerate. | |
138 | * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h". | |
139 | (BFIN_RELOC_MAX): Now 0x21. | |
140 | (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs. | |
141 | (bfd_elf32_bfinfdpic_vec): Declare. | |
142 | (IS_FDPIC): New macro. | |
143 | (struct bfinfdpic_elf_link_hash_table): New struct. | |
144 | (bfinfdpic_hash_table, bfinfdpic_got_section, | |
145 | bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section, | |
146 | bfinfdpic_plt_setion, bfinfdpic_pltrel_section, | |
147 | bfinfdpic_relocs_info, bfinfdpic_got_initial_offset, | |
148 | bfinfdpic_plt_initial_offset): Accessor macros for it. | |
149 | (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros. | |
150 | (struct bfinfdpic_relocs_info): New struct. | |
151 | (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES, | |
152 | BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC, | |
153 | DEFAULT_STACK_SIZE): New macros. | |
154 | (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash, | |
155 | bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find, | |
156 | bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local, | |
157 | bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc, | |
158 | _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment, | |
159 | _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section, | |
160 | bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook, | |
161 | _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section, | |
162 | elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry, | |
163 | _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry, | |
164 | _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries, | |
165 | _bfinfdpic_resolve_final_relocs_info, | |
166 | elf32_bfinfdpic_size_dynamic_sections, | |
167 | elf32_bfinfdpic_always_size_sections, | |
168 | elf32_bfinfdpic_modify_segment_map, | |
169 | _bfinfdpic_count_got_plt_entries, | |
170 | elf32_bfinfdpic_finish_dynamic_sections, | |
171 | elf32_bfinfdpic_adjust_dynamic_symbol, | |
172 | elf32_bfinfdpic_finish_dynamic_symbol, | |
173 | elf32_bfinfdpic_elf_use_relative_eh_frame, | |
174 | elf32_bfinfdpic_elf_encode_eh_address, | |
175 | elf32_bfin_object_p, bfin_elf_copy_private_bfd_data, | |
176 | elf32_bfinfdpic_copy_private_bfd_data, | |
177 | (struct _bfinfdpic_dynamic_got_info, | |
178 | struct _bfinfdpic_dynamic_got_plt_info): New structs. | |
179 | (elf32_bfin_print_private_bfd_data): Print PIC flags. | |
180 | (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC. | |
181 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed, | |
182 | elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create, | |
183 | elf_backend_always_size_sectinos, elf_backend_modify_segment_map, | |
184 | bfd_elf32_bfd_copy_private_bfd_data, | |
185 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
186 | elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol, | |
187 | elf_backend_finish_dynamic_sections, elf_backend_relocate_section, | |
188 | elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs, | |
189 | elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p, | |
190 | elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, | |
191 | elf_backend_omit_section_dynsym): Redefine these macros and include | |
192 | "elf32-target.h" again to create the elf32-bfinfdpic target. | |
193 | * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI, | |
194 | BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC, | |
195 | BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI, | |
196 | BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE, | |
197 | BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI, | |
198 | BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI, | |
199 | BFD_RELOC_BFIN_GOTOFFLO): New. | |
200 | * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target. | |
201 | (_bfd_target_vector): Add it. | |
202 | * bfd-in2.h: Regenerate. | |
203 | * libbfd.h: Regenerate. | |
204 | ||
a9d34880 RS |
205 | 2006-03-25 Richard Sandiford <[email protected]> |
206 | ||
207 | * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as | |
208 | incompatible. Likewise MAC and EMAC code. | |
209 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use | |
210 | bfd_get_compatible to set the new bfd architecture. Rely on it | |
211 | to detect incompatibilities. | |
212 | ||
2a23c2c5 BW |
213 | 2006-03-22 Bob Wilson <[email protected]> |
214 | ||
215 | * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that | |
216 | rel->r_addend is zero. | |
217 | ||
6d79d2ed RS |
218 | 2006-03-22 Richard Sandiford <[email protected]> |
219 | ||
220 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type | |
221 | of "loc". | |
222 | ||
0a44bf69 RS |
223 | 2006-03-22 Richard Sandiford <[email protected]> |
224 | Daniel Jacobowitz <[email protected]> | |
225 | Phil Edwards <[email protected]> | |
226 | Zack Weinberg <[email protected]> | |
227 | Mark Mitchell <[email protected]> | |
228 | Nathan Sidwell <[email protected]> | |
229 | ||
230 | * bfd-in2.h: Regenerate. | |
231 | * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas. | |
232 | * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza. | |
233 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
234 | (bfd_elf32_bigmips_vec): Add elf-vxworks.lo. | |
235 | (bfd_elf32_littlemips_vec): Likewise. | |
236 | (bfd_elf32_nbigmips_vec): Likewise. | |
237 | (bfd_elf32_nlittlemips_vec): Likewise. | |
238 | (bfd_elf32_ntradbigmips_vec): Likewise. | |
239 | (bfd_elf32_ntradlittlemips_vec): Likewise. | |
240 | (bfd_elf32_tradbigmips_vec): Likewise. | |
241 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
242 | (bfd_elf64_bigmips_vec): Likewise. | |
243 | (bfd_elf64_littlemips_vec): Likewise. | |
244 | (bfd_elf64_tradbigmips_vec): Likewise. | |
245 | (bfd_elf64_tradlittlemips_vec): Likewise. | |
246 | * elf32-mips.c: Include elf-vxworks.h. | |
247 | (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto | |
248 | instead of calling mips_elf32_rtype_to_howto directly. | |
249 | (mips_vxworks_copy_howto_rela): New reloc howto. | |
250 | (mips_vxworks_jump_slot_howto_rela): Likewise. | |
251 | (mips_vxworks_bfd_reloc_type_lookup): New function. | |
252 | (mips_vxworks_rtype_to_howto): Likewise. | |
253 | (mips_vxworks_final_write_processing): Likewise. | |
254 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks. | |
255 | (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise. | |
256 | (elf_backend_want_got_plt): Likewise. | |
257 | (elf_backend_want_plt_sym): Likewise. | |
258 | (elf_backend_got_symbol_offset): Likewise. | |
259 | (elf_backend_want_dynbss): Likewise. | |
260 | (elf_backend_may_use_rel_p): Likewise. | |
261 | (elf_backend_may_use_rela_p): Likewise. | |
262 | (elf_backend_default_use_rela_p): Likewise. | |
263 | (elf_backend_got_header_size: Likewise. | |
264 | (elf_backend_plt_readonly): Likewise. | |
265 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
266 | (elf_backend_mips_rtype_to_howto): Likewise. | |
267 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
268 | (elf_backend_finish_dynamic_symbol): Likewise. | |
269 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
270 | (elf_backend_add_symbol_hook): Likewise. | |
271 | (elf_backend_link_output_symbol_hook): Likewise. | |
272 | (elf_backend_emit_relocs): Likewise. | |
273 | (elf_backend_final_write_processing: Likewise. | |
274 | (elf_backend_additional_program_headers): Likewise. | |
275 | (elf_backend_modify_segment_map): Likewise. | |
276 | (elf_backend_symbol_processing): Likewise. | |
277 | * elfxx-mips.c: Include elf-vxworks.h. | |
278 | (mips_elf_link_hash_entry): Add is_relocation_target and | |
279 | is_branch_target fields. | |
280 | (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt, | |
281 | srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields. | |
282 | (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros. | |
283 | (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument. | |
284 | Return 3 for VxWorks. | |
285 | (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a | |
286 | mips_elf_link_hash_table. Return 0 for VxWorks. | |
287 | (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a | |
288 | mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET. | |
289 | (mips_vxworks_exec_plt0_entry): New variable. | |
290 | (mips_vxworks_exec_plt_entry): Likewise. | |
291 | (mips_vxworks_shared_plt0_entry): Likewise. | |
292 | (mips_vxworks_shared_plt_entry): Likewise. | |
293 | (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields. | |
294 | (mips_elf_rel_dyn_section): Change the bfd argument to a | |
295 | mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get | |
296 | the name of the section. | |
297 | (mips_elf_initialize_tls_slots): Update the call to | |
298 | mips_elf_rel_dyn_section. | |
299 | (mips_elf_gotplt_index): New function. | |
300 | (mips_elf_local_got_index): Add an input_section argument. | |
301 | Update the call to mips_elf_create_local_got_entry. | |
302 | (mips_elf_got_page): Likewise. | |
303 | (mips_elf_got16_entry): Likewise. | |
304 | (mips_elf_create_local_got_entry): Add bfd_link_info and input_section | |
305 | arguments. Create dynamic relocations for each entry on VxWorks. | |
306 | (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE. | |
307 | (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE | |
308 | and MIPS_RESERVED_GOTNO. | |
309 | (mips_elf_create_got_section): Update the uses of | |
310 | MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks. | |
311 | (is_gott_symbol): New function. | |
312 | (mips_elf_calculate_relocation): Use a dynobj local variable. | |
313 | Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and | |
314 | mips_elf_got_page_entry. Set G to the .got.plt entry when calculating | |
315 | VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT | |
316 | relocations on VxWorks. Add dynamic relocations for references | |
317 | to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't | |
318 | create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 | |
319 | in VxWorks executables. | |
320 | (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument. | |
321 | Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry. | |
322 | Don't allocate a null entry on VxWorks. | |
323 | (mips_elf_create_dynamic_relocation): Update the call to | |
324 | mips_elf_rel_dyn_section. Use absolute rather than relative | |
325 | relocations for VxWorks, and make them RELA rather than REL. | |
326 | (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic | |
327 | read-only on VxWorks. Update the call to mips_elf_rel_dyn_section. | |
328 | Create the .plt, .rela.plt, .dynbss and .rela.bss sections on | |
329 | VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol. | |
330 | Call elf_vxworks_create_dynamic_sections for VxWorks and | |
331 | initialize the plt_header_size and plt_entry_size fields. | |
332 | (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be | |
333 | used in VxWorks executables. Don't allocate dynamic relocations | |
334 | for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables. | |
335 | Set is_relocation_target for each symbol referenced by a relocation. | |
336 | Allocate .rela.dyn entries for relocations against the special | |
337 | VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT | |
338 | entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate | |
339 | a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*, | |
340 | R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls | |
341 | to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations. | |
342 | Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26 | |
343 | relocations. Don't set no_fn_stub on VxWorks. | |
344 | (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to | |
345 | mips_elf_allocate_dynamic_relocations. | |
346 | (_bfd_mips_vxworks_adjust_dynamic_symbol): New function. | |
347 | (_bfd_mips_elf_always_size_sections): Do not allocate GOT page | |
348 | entries for VxWorks, and do not create multiple GOTs. | |
349 | (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME. | |
350 | Handle .got specially for VxWorks. Update the uses of | |
351 | MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations. | |
352 | Check for sgotplt and splt. Allocate the .rel(a).dyn contents last, | |
353 | once its final size is known. Set DF_TEXTREL for VxWorks. Add | |
354 | DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL | |
355 | tags on VxWorks. Do not add the MIPS-specific tags for VxWorks. | |
356 | (_bfd_mips_vxworks_finish_dynamic_symbol): New function. | |
357 | (mips_vxworks_finish_exec_plt): Likewise. | |
358 | (mips_vxworks_finish_shared_plt): Likewise. | |
359 | (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call | |
360 | to mips_elf_rel_dyn_section. Use a VxWorks-specific value of | |
361 | DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, | |
362 | DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO | |
363 | and mips_elf_rel_dyn_section. Use a different GOT header for | |
364 | VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks. | |
365 | (_bfd_mips_elf_link_hash_table_create): Initialize the new | |
366 | mips_elf_link_hash_table fields. | |
367 | (_bfd_mips_vxworks_link_hash_table_create): New function. | |
368 | (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_ | |
369 | on VxWorks. Update the call to ELF_MIPS_GP_OFFSET. | |
370 | * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare. | |
371 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
372 | (_bfd_mips_vxworks_link_hash_table_create): Likewise. | |
373 | * libbfd.h: Regenerate. | |
374 | * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h. | |
375 | (elf32-mips.lo): Likewise. | |
376 | * Makefile.in: Regenerate. | |
377 | * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare. | |
378 | * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare. | |
379 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
380 | (_bfd_target_vector): Add entries for them. | |
381 | ||
a2199086 DA |
382 | 2006-03-19 John David Anglin <[email protected]> |
383 | ||
384 | * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss | |
385 | section from SHF_PARISC_WEAKORDER to SHF_HP_TLS. | |
386 | (elf_backend_special_sections): Remove #undef. | |
387 | ||
af7cfa33 DA |
388 | 2006-03-18 John David Anglin <[email protected]> |
389 | ||
390 | * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry | |
391 | for undefined weak symbols. | |
392 | ||
a4676736 L |
393 | 2006-03-17 Daniel Jacobowitz <[email protected]> |
394 | ||
395 | PR ld/2462 | |
396 | * elflink.c (bfd_elf_final_link): Remove | |
397 | bed->elf_backend_emit_relocs from emit_relocs. | |
398 | ||
e1710606 AO |
399 | 2006-03-17 Alexandre Oliva <[email protected]> |
400 | ||
401 | * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from | |
402 | first relocation to the second when relaxing TLS GD to LE; | |
403 | zero it out when relaxing to IE. | |
404 | ||
2de92251 AM |
405 | 2006-03-17 Alan Modra <[email protected]> |
406 | ||
407 | PR 2434 | |
408 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
409 | warning sym's linked sym. | |
410 | ||
66eb6687 AM |
411 | 2006-03-16 Alan Modra <[email protected]> |
412 | ||
413 | PR 2434 | |
414 | * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. | |
415 | (elf_link_add_object_symbols): Delete unnecessary locals. Rename | |
416 | hash_table -> htab. Formatting. Save entire symbol table | |
417 | before loading as-needed syms, and restore afterwards if lib not | |
418 | needed. Use bfd_hash_allocate rather than bfd_alloc for sym | |
419 | name. Free some buffers earlier. | |
420 | * bfd-in.h (struct bfd_hash_table): Add entsize. | |
421 | (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. | |
422 | * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise | |
423 | * hash.c (bfd_hash_table_init_n): Add entsize param, save to | |
424 | hash table. | |
425 | (bfd_hash_table_init): Add param, adjust calls. | |
426 | * aoutx.h: Adjust all hash_table_init functions and calls. | |
427 | * bfd.c: Likewise. | |
428 | * coff-arm.c: Likewise. | |
429 | * coff-h8300.c: Likewise. | |
430 | * coff-ppc.c: Likewise. | |
431 | * cofflink.c: Likewise. | |
432 | * ecoff.c: Likewise. | |
433 | * ecofflink.c: Likewise. | |
434 | * elf-m10300.c: Likewise. | |
435 | * elf-strtab.c: Likewise. | |
436 | * elf.c: Likewise. | |
437 | * elf32-arm.c: Likewise. | |
438 | * elf32-bfin.c: Likewise. | |
439 | * elf32-cris.c: Likewise. | |
440 | * elf32-frv.c: Likewise. | |
441 | * elf32-hppa.c: Likewise. | |
442 | * elf32-i386.c: Likewise. | |
443 | * elf32-m32r.c: Likewise. | |
444 | * elf32-m68hc1x.c: Likewise. | |
445 | * elf32-m68k.c: Likewise. | |
446 | * elf32-ppc.c: Likewise. | |
447 | * elf32-s390.c: Likewise. | |
448 | * elf32-sh.c: Likewise. | |
449 | * elf32-vax.c: Likewise. | |
450 | * elf64-alpha.c: Likewise. | |
451 | * elf64-hppa.c: Likewise. | |
452 | * elf64-ppc.c: Likewise. | |
453 | * elf64-s390.c: Likewise. | |
454 | * elf64-sh64.c: Likewise. | |
455 | * elf64-x86-64.c: Likewise. | |
456 | * elfxx-ia64.c: Likewise. | |
457 | * elfxx-mips.c: Likewise. | |
458 | * elfxx-sparc.c: Likewise. | |
459 | * i386linux.c: Likewise. | |
460 | * libaout.h: Likewise. | |
461 | * libbfd-in.h: Likewise. | |
462 | * libcoff-in.h: Likewise. | |
463 | * linker.c: Likewise. | |
464 | * m68klinux.c: Likewise. | |
465 | * merge.c: Likewise. | |
466 | * opncls.c: Likewise. | |
467 | * pdp11.c: Likewise. | |
468 | * sparclinux.c: Likewise. | |
469 | * stabs.c: Likewise. | |
470 | * sunos.c: Likewise. | |
471 | * vms.c: Likewise. | |
472 | * xcofflink.c: Likewise. | |
473 | * section.c (struct section_hash_entry): Move to.. | |
474 | * libbfd-in.h: ..here. | |
475 | * Makefile.am: Run "make dep-am" | |
476 | * Makefile.in: Regenerate. | |
477 | * bfd-in2.h: Regenerate. | |
478 | * libbfd.h: Regenerate. | |
479 | * libcoff.h: Regenerate. | |
480 | ||
7123df0e AM |
481 | 2006-03-16 Alan Modra <[email protected]> |
482 | ||
483 | * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs | |
484 | against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak | |
485 | last change to REL32 relocs so that they are counted as | |
486 | possibly dynamic as per REL24 and REL14. | |
487 | ||
fd38b44c AM |
488 | 2006-03-16 Alan Modra <[email protected]> |
489 | ||
490 | * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24 | |
491 | checks from REL32. | |
492 | ||
eb111b1f BE |
493 | 2006-03-15 Ben Elliston <[email protected]> |
494 | ||
495 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all | |
496 | in_list elements, not just the first. | |
497 | ||
81d43bff RS |
498 | 2006-03-14 Richard Sandiford <[email protected]> |
499 | ||
500 | * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split | |
501 | out from... | |
502 | (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend | |
503 | for final links too. | |
504 | ||
d329bcd1 RS |
505 | 2006-03-13 Richard Sandiford <[email protected]> |
506 | ||
507 | * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot. | |
508 | ||
75a657ba L |
509 | 2006-03-11 H.J. Lu <[email protected]> |
510 | ||
511 | PR ld/2443 | |
512 | * dwarf2.c (concat_filename): Don't issue an error if file is | |
513 | 0. | |
514 | ||
3a4a14e9 PB |
515 | 2006-03-10 Paul Brook <[email protected]> |
516 | ||
517 | * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. | |
518 | (elf32_arm_print_private_bfd_data): Ditto. | |
519 | ||
38406048 PB |
520 | 2006-03-09 Paul Brook <[email protected]> |
521 | ||
522 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional | |
523 | mapping symbols. | |
524 | ||
eed62c48 NC |
525 | 2006-03-09 Khem Raj <[email protected]> |
526 | ||
527 | * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned | |
528 | char type. | |
529 | ||
6d2cf7d8 L |
530 | 2006-03-08 H.J. Lu <[email protected]> |
531 | ||
532 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp. | |
533 | ||
00a97672 RS |
534 | 2006-03-07 Richard Sandiford <[email protected]> |
535 | Daniel Jacobowitz <[email protected]> | |
536 | Zack Weinberg <[email protected]> | |
537 | Nathan Sidwell <[email protected]> | |
538 | Paul Brook <[email protected]> | |
539 | Ricardo Anguiano <[email protected]> | |
540 | Phil Edwards <[email protected]> | |
541 | ||
542 | * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo. | |
543 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
544 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
545 | (bfd_elf32_littlearm_vec): Likewise. | |
546 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
547 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
548 | * configure: Regenerate. | |
549 | * elf32-arm.c: Include libiberty.h and elf-vxworks.h. | |
550 | (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros. | |
551 | (elf32_arm_vxworks_bed): Add forward declaration. | |
552 | (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12. | |
553 | (elf32_arm_vxworks_exec_plt0_entry): New table. | |
554 | (elf32_arm_vxworks_exec_plt_entry): Likewise. | |
555 | (elf32_arm_vxworks_shared_plt_entry): Likewise. | |
556 | (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields. | |
557 | (reloc_section_p): New function. | |
558 | (create_got_section): Use RELOC_SECTION. | |
559 | (elf32_arm_create_dynamic_sections): Likewise. Call | |
560 | elf_vxworks_create_dynamic_sections for VxWorks targets. | |
561 | Choose between the two possible values of plt_header_size | |
562 | and plt_entry_size. | |
563 | (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2. | |
564 | (elf32_arm_abs12_reloc): New function. | |
565 | (elf32_arm_final_link_relocate): Call it. Allow the creation of | |
566 | dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p, | |
567 | RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the | |
568 | r_addend fields of relocs. On rela targets, skip any code that | |
569 | adjusts in-place addends. When using _bfd_link_final_relocate | |
570 | to perform a final relocation, pass rel->r_addend as the addend | |
571 | argument. | |
572 | (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks | |
573 | object, ignore flags that are not standard on VxWorks. | |
574 | (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12 | |
575 | relocs on VxWorks. Use reloc_section_p. | |
576 | (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE. | |
577 | (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of | |
578 | .rela.plt.unloaded relocs on VxWorks targets. | |
579 | (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for | |
580 | .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags | |
581 | instead of DT_REL* tags on RELA targets. | |
582 | (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE | |
583 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks | |
584 | PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. | |
585 | (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE | |
586 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ | |
587 | like DT_RELSZ. Handle the VxWorks form of initial PLT entry. | |
588 | Correct the .rela.plt.unreloaded symbol indexes. | |
589 | (elf32_arm_output_symbol_hook): Call the VxWorks version of this | |
590 | hook on VxWorks targets. | |
591 | (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true. | |
592 | Minor formatting tweak. | |
593 | (elf32_arm_vxworks_final_write_processing): New function. | |
594 | (elf_backend_add_symbol_hook): Override for VxWorks and reset | |
595 | for Symbian. | |
596 | (elf_backend_final_write_processing): Likewise. | |
597 | (elf_backend_emit_relocs): Likewise. | |
598 | (elf_backend_want_plt_sym): Likewise. | |
599 | (ELF_MAXPAGESIZE): Likewise. | |
600 | (elf_backend_may_use_rel_p): Minor formatting tweak. | |
601 | (elf_backend_may_use_rela_p): Likewise. | |
602 | (elf_backend_default_use_rela_p): Likewise. | |
603 | (elf_backend_rela_normal): Likewise. | |
604 | * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h. | |
605 | ||
0b2e31dc NS |
606 | 2006-03-06 Nathan Sidwell <[email protected]> |
607 | ||
608 | * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp): | |
609 | New. Adjust other variants. | |
610 | (bfd_default_scan): Update. | |
611 | * bfd-in2.h: Rebuilt. | |
612 | * cpu-m68k.c: Adjust. | |
613 | (bfd_m68k_compatible): New. Use it for architectures. | |
614 | * elf32-m68k.c (elf32_m68k_object_p): Adjust. | |
615 | (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b | |
616 | mismatch. | |
617 | (elf32_m68k_print_private_bfd_data): Adjust. | |
618 | * ieee.c (ieee_write_processor): Adjust. | |
619 | ||
d8d1c398 AM |
620 | 2006-03-06 Alan Modra <[email protected]> |
621 | ||
622 | * dwarf2.c: Formatting. | |
623 | (add_line_info): Remove outer loop. | |
624 | ||
d4c32a81 L |
625 | 2006-03-05 H.J. Lu <[email protected]> |
626 | Alan Modra <[email protected]> | |
627 | ||
628 | PR binutils/2338 | |
629 | * dwarf2.c (loadable_section): New struct. | |
630 | (dwarf2_debug): Add loadable_section_count and | |
631 | loadable_sections. | |
632 | (new_line_sorts_after): New. | |
633 | (add_line_info): Use new_line_sorts_after to compare line | |
634 | addresses. | |
635 | (check_function_name): Removed. | |
636 | (unset_sections): New. | |
637 | (place_sections): New. | |
638 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections | |
639 | and unset_sections on relocatable files. | |
640 | (_bfd_dwarf2_find_line): Likewise. | |
641 | ||
4cdc7696 NC |
642 | 2006-03-03 Nick Clifton <[email protected]> |
643 | ||
644 | * cpu-avr.c: Update to ISO-C90 formatting. | |
645 | * elf32-avr.c: Likewise. | |
646 | ||
df406460 NC |
647 | 2006-03-03 Bjoern Haase <[email protected]> |
648 | ||
649 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI | |
650 | and R_AVR_MS8_LDI | |
651 | (bfd_elf_avr_final_write_processing): Set | |
652 | EF_AVR_LINKRELAX_PREPARED in e_flags field. | |
653 | (elf32_avr_relax_section): New function. | |
654 | (elf32_avr_relax_delete_bytes): New function. | |
655 | (elf32_avr_get_relocated_section_contents): New function. | |
656 | (avr_pc_wrap_around): New function. | |
657 | (avr_relative_distance_considering_wrap_around): New function. | |
658 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. | |
659 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG | |
660 | * libbfd.h: Regenerate. | |
661 | * bfd-in2.h: Regenerate. | |
662 | ||
a1013894 DD |
663 | 2006-03-02 DJ Delorie <[email protected]> |
664 | ||
665 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol | |
666 | calculations. | |
667 | ||
7c492719 RS |
668 | 2006-03-02 Richard Sandiford <[email protected]> |
669 | ||
670 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is | |
671 | bfd_elf32_powerpc_vxworks_vec. | |
672 | ||
e970df31 NC |
673 | 2006-03-02 Nick Clifton <[email protected]> |
674 | ||
675 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. | |
676 | ||
711de32c RS |
677 | 2006-03-02 Richard Sandiford <[email protected]> |
678 | ||
679 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use | |
680 | elf_vxworks_create_dynamic_sections. | |
681 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT | |
682 | symbol handling. | |
683 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use | |
684 | elf_vxworks_create_dynamic_sections. | |
685 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT | |
686 | symbol handling. | |
687 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. | |
688 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. | |
689 | ||
9c72ff84 RS |
690 | 2006-03-02 Richard Sandiford <[email protected]> |
691 | ||
692 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
693 | (elf_backend_link_output_symbol_hook): Use | |
694 | elf_vxworks_link_output_symbol_hook instead. | |
695 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
696 | (elf_backend_link_output_symbol_hook): Use | |
697 | elf_vxworks_link_output_symbol_hook instead. | |
698 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the | |
699 | same interface as elf_backend_link_output_symbol_hook. | |
700 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update | |
701 | prototype accordingly. | |
702 | ||
4a3dc543 RS |
703 | 2006-03-02 Richard Sandiford <[email protected]> |
704 | ||
705 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. | |
706 | (ppc_elf_link_hash_table): Replace old_got and new_got with | |
707 | plt_type and can_use_new_plt. | |
708 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, | |
709 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. | |
710 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. | |
711 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. | |
712 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to | |
713 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that | |
714 | this function should not be called for VxWorks targets. | |
715 | (ppc_elf_tls_setup): Use plt_type instead of old_got. | |
716 | (allocate_got): Likewise. Rearrange so that max_before_header | |
717 | is only used for PLT_OLD and PLT_NEW. | |
718 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. | |
719 | (ppc_elf_size_dynamic_sections): Likewise. | |
720 | (ppc_elf_relax_section): Likewise. | |
721 | (ppc_elf_relocate_section): Likewise. | |
722 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
723 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. | |
724 | ||
5ae0bfb6 RS |
725 | 2006-02-28 Richard Sandiford <[email protected]> |
726 | ||
727 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. | |
728 | (elf_i386_link_hash_table_create): Initialize it. | |
729 | (elf_i386_compute_jump_table_size): Use it instead of | |
730 | srelplt->reloc_count. | |
731 | (allocate_dynrelocs): Likewise. | |
732 | (elf_i386_size_dynamic_sections): Likewise. | |
733 | (elf_i386_relocate_section): Likewise. | |
734 | ||
63752a75 JJ |
735 | 2006-02-27 Jakub Jelinek <[email protected]> |
736 | ||
737 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. | |
738 | (_bfd_elf_write_section_eh_frame): Likewise. | |
739 | ||
f7d9e5c3 CD |
740 | 2006-02-27 Carlos O'Donell <[email protected]> |
741 | ||
742 | * po/Make-in: Add html target. | |
743 | ||
22edb2f1 RS |
744 | 2006-02-27 Richard Sandiford <[email protected]> |
745 | ||
746 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the | |
747 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. | |
748 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. | |
749 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. | |
750 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
751 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
752 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
753 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
754 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. | |
755 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. | |
756 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. | |
757 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. | |
758 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. | |
759 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
760 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
761 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use | |
762 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. | |
763 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. | |
764 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
765 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
766 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
767 | ||
7325306f RS |
768 | 2006-02-25 Richard Sandiford <[email protected]> |
769 | ||
770 | * elf-bfd.h (elf_link_hash_table): Add hplt field. | |
771 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. | |
772 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
773 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
774 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
775 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
776 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
777 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
778 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. | |
779 | (elf_i386_link_hash_table_create): Don't initialize them. | |
780 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and | |
781 | hgot fields. | |
782 | (elf_i386_finish_dynamic_symbol): Likewise. | |
783 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. | |
784 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. | |
785 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
786 | ||
6772dd07 DD |
787 | 2006-02-24 DJ Delorie <[email protected]> |
788 | ||
789 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. | |
790 | (m32c_elf_relocate_section): Don't relocate them. | |
791 | (compare_reloc): New. | |
792 | (relax_reloc): Remove. | |
793 | (m32c_offset_for_reloc): New. | |
794 | (m16c_addr_encodings): New. | |
795 | (m16c_jmpaddr_encodings): New. | |
796 | (m32c_addr_encodings): New. | |
797 | (m32c_elf_relax_section): Relax jumps and address displacements. | |
798 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up | |
799 | short jumps. | |
800 | ||
801 | * reloc.c: Add m32c relax relocs. | |
802 | * libbfd.h: Regenerate. | |
803 | * bfd-in2.h: Regenerate. | |
804 | ||
508c3946 L |
805 | 2006-02-24 H.J. Lu <[email protected]> |
806 | ||
807 | PR ld/2218 | |
808 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. | |
809 | (_bfd_elf_link_hash_fixup_symbol): New. | |
810 | ||
811 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. | |
812 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if | |
813 | it isn't NULL. | |
814 | ||
815 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. | |
816 | ||
817 | * elfxx-target.h (elf_backend_fixup_symbol): New. | |
818 | (elfNN_bed): Initialize elf_backend_fixup_symbol. | |
819 | ||
59cf82fe L |
820 | 2006-02-23 H.J. Lu <[email protected]> |
821 | ||
822 | * cpu-ia64-opc.c (ins_immu5b): New. | |
823 | (ext_immu5b): Likewise. | |
824 | (elf64_ia64_operands): Add IMMU5b. | |
825 | ||
22d606e9 AM |
826 | 2006-02-21 Alan Modra <[email protected]> |
827 | ||
828 | PR ld/2218 | |
829 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie | |
830 | is dynamic. | |
831 | * elf32-hppa.c (allocate_dynrelocs): Likewise. | |
832 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
833 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
834 | * elf32-sh.c (allocate_dynrelocs): Likewise. | |
835 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
836 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
837 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs | |
838 | on undef weak with non-default visibility too. | |
839 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. | |
840 | ||
3168356f AM |
841 | 2006-02-21 Alan Modra <[email protected]> |
842 | ||
843 | * bfd.c: (_bfd_default_error_handler): Don't call abort on | |
844 | error, instead call _exit. | |
845 | (_bfd_abort): Call _exit not xexit. | |
846 | ||
888b45b8 KB |
847 | 2006-02-17 Kevin Buettner <[email protected]> |
848 | ||
849 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): | |
850 | New functions. | |
851 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
852 | ||
d70c5fc7 NC |
853 | 2006-02-17 Shrirang Khisti <[email protected]> |
854 | Anil Paranjape <[email protected]> | |
855 | Shilin Shakti <[email protected]> | |
856 | ||
857 | * Makefile.am: Add xc16x related entry | |
858 | * Makefile.in: Regenerate | |
859 | * archures.c: Add bfd_xc16x_arch | |
860 | * bfd-in2.h: Regenerate | |
861 | * config.bfd: Add xc16x-*-elf | |
862 | * configure.in: Add bfd_elf32_xc16x_vec | |
863 | * configure: Regenerate. | |
864 | * targets.c: Added xc16x related information | |
865 | * cpu-xc16x.c: New file | |
866 | * reloc.c: Add new relocations specific to xc16x: | |
867 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, | |
868 | BFD_RELOC_XC16X_SOF | |
869 | * elf32-xc16x.c: New file. | |
870 | ||
cab87ef9 AM |
871 | 2006-02-17 Alan Modra <[email protected]> |
872 | ||
873 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. | |
874 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
875 | ||
dfbb6ac9 AM |
876 | 2006-02-17 Alan Modra <[email protected]> |
877 | ||
878 | PR ld/2218 | |
879 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is | |
880 | dynamic. | |
881 | (ppc64_elf_relocate_section): Check output reloc section size. | |
882 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. | |
883 | ||
cedc298e L |
884 | 2006-02-16 H.J. Lu <[email protected]> |
885 | ||
886 | PR ld/2322 | |
887 | * elf.c (get_segment_type): New function. | |
888 | (_bfd_elf_print_private_bfd_data): Use it. | |
889 | (print_segment_map): New function. | |
890 | (assign_file_positions_for_segments): Call print_segment_map | |
891 | when there are not enough room for program headers. | |
892 | ||
aaa2ab3d NH |
893 | 2006-02-16 Nick Hudson <[email protected]> |
894 | ||
895 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use | |
896 | traditional MIPS ELF targets. | |
897 | ||
35ccda9e L |
898 | 2006-02-15 H.J. Lu <[email protected]> |
899 | ||
900 | PR binutils/2338 | |
901 | * dwarf2.c (check_function_name): New function. | |
902 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to | |
903 | check if function is correct. | |
904 | ||
e0ae6d6f AM |
905 | 2006-02-16 Alan Modra <[email protected]> |
906 | ||
907 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for | |
908 | debug sections. | |
909 | (elf_link_input_bfd): Adjust comments. | |
910 | ||
d55ce4e2 L |
911 | 2006-02-10 H.J. Lu <[email protected]> |
912 | ||
913 | * elf.c (copy_private_bfd_data): Minor update. | |
914 | ||
84d1d650 L |
915 | 2006-02-10 H.J. Lu <[email protected]> |
916 | ||
917 | PR binutils/2258 | |
918 | * elf.c (copy_private_bfd_data): Renamed to ... | |
919 | (rewrite_elf_program_header): This. | |
920 | (copy_elf_program_header): New function. | |
921 | (copy_private_bfd_data): Likewise. | |
922 | ||
923 | 2006-02-07 Nathan Sidwell <[email protected]> | |
266abb8f NS |
924 | |
925 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, | |
926 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, | |
927 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, | |
928 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. | |
929 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, | |
930 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, | |
931 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, | |
932 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, | |
933 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, | |
934 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, | |
935 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, | |
936 | bfd_mach_mcf_isa_b_usp_float_emac): New. | |
937 | (bfd_default_scan): Update coldfire mapping. | |
938 | * bfd-in.h (bfd_m68k_mach_to_features, | |
939 | bfd_m68k_features_to_mach): Declare. | |
940 | * bfd-in2.h: Rebuilt. | |
941 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, | |
942 | adjust legacy names. | |
943 | (m68k_arch_features): New. | |
944 | (bfd_m68k_mach_to_features, | |
945 | bfd_m68k_features_to_mach): Define. | |
946 | * elf32-m68k.c (elf32_m68k_object_p): New. | |
947 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. | |
948 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. | |
949 | (elf_backend_object_p): Define. | |
950 | * ieee.c (ieee_write_processor): Update coldfire machines. | |
951 | * libbfd.h: Rebuilt. | |
952 | ||
75eb734c SE |
953 | 2006-02-06 Steve Ellcey <[email protected]> |
954 | ||
955 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS | |
956 | if SHF_TLS is set. | |
957 | ||
134dcee5 AM |
958 | 2006-02-05 Arnold Metselaar <[email protected]> |
959 | ||
960 | * coff-z80.c (r_imm24): New howto. | |
961 | (rtype2howto): New case R_IMM24. | |
962 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. | |
963 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. | |
964 | ||
4005427f RS |
965 | 2006-02-04 Richard Sandiford <[email protected]> |
966 | ||
967 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol | |
968 | has already been assigned a GOT index, copy that index to the | |
969 | current hash table entry. | |
970 | ||
bb29dfea EB |
971 | 2006-02-01 Eric Botcazou <[email protected]> |
972 | ||
973 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
974 | for call-to-undefweak reloc overflow. | |
975 | ||
dc669dc8 EB |
976 | 2006-01-31 Eric Botcazou <[email protected]> |
977 | ||
978 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
979 | for 32-bit relocs overflow. | |
980 | ||
1a0eb693 PB |
981 | 2006-01-27 Paul Brook <[email protected]> |
982 | ||
983 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb | |
984 | objects. | |
985 | ||
67a4f2b7 AO |
986 | 2006-01-18 Alexandre Oliva <[email protected]> |
987 | ||
988 | Introduce TLS descriptors for i386 and x86_64. | |
989 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, | |
990 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, | |
991 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. | |
992 | * libbfd.h, bfd-in2.h: Rebuilt. | |
993 | * elf32-i386.c (elf_howto_table): New relocations. | |
994 | (R_386_tls): Adjust. | |
995 | (elf_i386_reloc_type_lookup): Map new relocations. | |
996 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
997 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
998 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. | |
999 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. | |
1000 | (elf_i386_local_tlsdesc_gotent): New macro. | |
1001 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. | |
1002 | (elf_i386_compute_jump_table_size): New macro. | |
1003 | (link_hash_newfunc): Initialize tlsdesc_got. | |
1004 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. | |
1005 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and | |
1006 | R_386_TLS_DESC_CALL. | |
1007 | (elf_i386_check_relocs): Likewise. Allocate space for | |
1008 | local_tlsdesc_gotent. | |
1009 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and | |
1010 | R_386_TLS_DESC_CALL. | |
1011 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
1012 | space for TLS descriptors and relocations. | |
1013 | (elf_i386_size_dynamic_sections): Reserve space for TLS | |
1014 | descriptors and relocations. Set up sgotplt_jump_table_size. | |
1015 | Don't zero reloc_count in srelplt. | |
1016 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. | |
1017 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and | |
1018 | R_386_TLS_DESC_CALL. | |
1019 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
1020 | (elf_backend_always_size_sections): Define. | |
1021 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, | |
1022 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. | |
1023 | (R_X86_64_standard): Adjust. | |
1024 | (x86_64_reloc_map): Map new relocs. | |
1025 | (elf64_x86_64_rtype_to_howto): New, split out of... | |
1026 | (elf64_x86_64_info_to_howto): ... this function, and... | |
1027 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. | |
1028 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
1029 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
1030 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. | |
1031 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. | |
1032 | (elf64_x86_64_local_tlsdesc_gotent): New macro. | |
1033 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, | |
1034 | tlsdesc_got and sgotplt_jump_table_size fields. | |
1035 | (elf64_x86_64_compute_jump_table_size): New macro. | |
1036 | (link_hash_newfunc): Initialize tlsdesc_got. | |
1037 | (elf64_x86_64_link_hash_table_create): Initialize new fields. | |
1038 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and | |
1039 | R_X86_64_TLSDESC_CALL. | |
1040 | (elf64_x86_64_check_relocs): Likewise. Allocate space for | |
1041 | local_tlsdesc_gotent. | |
1042 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and | |
1043 | R_X86_64_TLSDESC_CALL. | |
1044 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
1045 | space for TLS descriptors and relocations. | |
1046 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS | |
1047 | descriptors and relocations. Set up sgotplt_jump_table_size, | |
1048 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero | |
1049 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT | |
1050 | and DT_TLSDESC_GOT. | |
1051 | (elf64_x86_64_always_size_sections): New. Set up | |
1052 | _TLS_MODULE_BASE_. | |
1053 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and | |
1054 | R_386_TLS_DESC_CALL. | |
1055 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
1056 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and | |
1057 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. | |
1058 | (elf_backend_always_size_sections): Define. | |
1059 | ||
6dd55cb7 L |
1060 | 2006-01-17 H.J. Lu <[email protected]> |
1061 | ||
1062 | PR binutils/2096 | |
1063 | * dwarf2.c (comp_unit_contains_address): Update comment. | |
1064 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of | |
1065 | lma. Return TRUE only if both comp_unit_contains_address and | |
1066 | comp_unit_find_nearest_line return TRUE. | |
1067 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. | |
1068 | ||
64d03ab5 AM |
1069 | 2006-01-18 Alan Modra <[email protected]> |
1070 | ||
1071 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. | |
1072 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. | |
1073 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from | |
1074 | elf_gc_mark_dynamic_ref_symbol. Make global. | |
1075 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. | |
1076 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. | |
1077 | (elfNN_bed): Init new field. | |
1078 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. | |
1079 | (ppc64_elf_gc_mark_dynamic_ref): New function. | |
1080 | ||
b56cbdb9 AM |
1081 | 2006-01-17 Alan Modra <[email protected]> |
1082 | ||
1083 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. | |
1084 | ||
6c10990d NC |
1085 | 2006-01-17 Nick Clifton <[email protected]> |
1086 | ||
1087 | PR binutils/2159 | |
1088 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused | |
1089 | parameters. | |
1090 | ||
d7f735da NC |
1091 | 2006-01-11 Nick Clifton <[email protected]> |
1092 | ||
1093 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry | |
1094 | into the newly (re)allocated map array. | |
1095 | ||
2bfd55ca NC |
1096 | 2006-01-09 Alexis Wilke <[email protected]> |
1097 | ||
1098 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". | |
1099 | ||
bce50a28 JJ |
1100 | 2006-01-01 Jakub Jelinek <[email protected]> |
1101 | ||
1102 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 | |
1103 | for .toc1 section. | |
1104 | ||
e88d958a | 1105 | For older changes see ChangeLog-2005 |
56882138 AM |
1106 | \f |
1107 | Local Variables: | |
1108 | mode: change-log | |
1109 | left-margin: 8 | |
1110 | fill-column: 74 | |
1111 | version-control: never | |
1112 | End: |