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