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