]>
Commit | Line | Data |
---|---|---|
b9c3a42a NC |
1 | 2006-11-14 Phil Lello <[email protected]> |
2 | ||
3 | * peXXigen.c: Updates for PE/COFF V8.0, and clarification | |
4 | (dir_names): Added CLR Runtime Header to dir_names[]. | |
5 | (_bfd_XX_print_private_bfd_data_common): Added EFI_ROM and XBOX | |
6 | subsystem names | |
7 | (_bfd_XXi_swap_aouthdr_in, _bfd_XXi_swap_aouthdr_out) | |
8 | (pe_print_idata, pe_print_edata) | |
9 | (_bfd_XX_bfd_copy_private_bfd_data_common) | |
10 | (_bfd_XXi_final_link_postscript): Use #DEFINEs for index into | |
11 | DataDirectory. | |
12 | ||
d504ffc8 DJ |
13 | 2006-11-13 Daniel Jacobowitz <[email protected]> |
14 | ||
15 | * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update | |
16 | prototype. | |
17 | (bfd_elf32_arm_set_byteswap_code): New prototype. | |
18 | * bfd-in2.h: Regenerate. | |
19 | * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Don't take | |
20 | byteswap_code as an argument. Revert 2006-11-01 change. | |
21 | (bfd_elf32_arm_set_byteswap_code): New. | |
22 | (elf32_arm_size_dynamic_sections): Call | |
23 | bfd_elf32_arm_process_before_allocation. | |
24 | ||
73ca2500 TS |
25 | 2006-11-10 Thiemo Seufer <[email protected]> |
26 | ||
27 | * config.bfd (mips*el-sde-elf*, mips*-sde-elf*): Drop ECOFF support | |
28 | for SDE configs. | |
29 | ||
0285182b NC |
30 | 2006-11-10 Nick Clifton <[email protected]> |
31 | ||
32 | * config.bfd: Move previously obsoleted targets to the REMOVED | |
33 | list. | |
34 | Add maxq-*-coff to the obsolete list. | |
35 | ||
d66dff94 NC |
36 | 2006-11-10 Pedro Alves <[email protected]> |
37 | ||
38 | * pe-arm-wince.c (LOCAL_LABEL_PREFIX): Define as ".". | |
39 | * pei-arm-wince.c (LOCAL_LABEL_PREFIX): Likewise. | |
40 | * coff-arm.c (LOCAL_LABEL_PREFIX): Only define if not defined before. | |
41 | ||
f2a9dd69 DJ |
42 | 2006-11-07 Daniel Jacobowitz <[email protected]> |
43 | ||
44 | * elf32-arm.c (find_thumb_glue): Add ERROR_MESSAGE argument; set it | |
45 | on error. | |
46 | (find_arm_glue): Likewise. | |
47 | (elf32_thumb_to_arm_stub, elf32_arm_create_thumb_stub) | |
48 | (elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate): Add | |
49 | ERROR_MESSAGE argument and pass it through. | |
50 | (elf32_arm_to_thumb_export_stub): Update. | |
51 | (elf32_arm_relocate_section): Use ERROR_MESSAGE and reloc_dangerous. | |
52 | ||
7c8fe5c4 AM |
53 | 2006-11-07 Alan Modra <[email protected]> |
54 | ||
55 | * elf64-ppc.c (enum _ppc64_sec_type): New. | |
56 | (struct _ppc64_elf_section_data): Move "t_symndx" into opd union, | |
57 | and rename fields. Add sec_type and has_14bit_branch. | |
58 | (struct ppc_link_hash_table): Remove has_14bit_branch. | |
59 | (get_opd_info, get_tls_mask, ppc64_elf_edit_opd): Adjust. | |
60 | (ppc64_elf_relocate_section): Likewise. | |
61 | (ppc64_elf_check_relocs): Likewise. Set per-section has_14bit_branch. | |
62 | (ppc64_elf_size_stubs): Don't set default group size here. | |
63 | (group_sections): Instead do so here, and group sections using | |
64 | their individual requirements. | |
65 | ||
b3fac117 AM |
66 | 2006-11-07 Alan Modra <[email protected]> |
67 | ||
68 | * elf64-ppc.c (struct ppc64_elf_obj_tdata): Remove "has_dotsym" | |
69 | and union. | |
70 | (struct ppc_link_hash_entry): Add "next_dot_sym". | |
71 | (struct ppc_link_hash_table): Add "dot_syms". | |
72 | (link_hash_newfunc): Make list of syms starting with a dot. | |
73 | (ppc_get_stub_entry, adjust_opd_syms): Adjust. | |
74 | (ppc64_elf_add_symbol_hook): Don't set has_dotsym. | |
75 | (struct add_symbol_adjust_data): Delete. | |
76 | (add_symbol_adjust): Simplify params and return. | |
77 | (ppc64_elf_check_directives): Just process the "dot_syms" lists, | |
78 | not all syms. | |
79 | ||
b1e24c02 DJ |
80 | 2006-11-02 Daniel Jacobowitz <[email protected]> |
81 | ||
82 | * libbfd-in.h (_bfd_clear_contents): New prototype. | |
83 | * reloc.c (_bfd_clear_contents): New. | |
84 | * libbfd.h: Regenerated. | |
85 | ||
86 | * elf32-arm.c (elf32_arm_final_link_relocate): Use | |
87 | _bfd_clear_contents. | |
88 | * elf32-d10v.c (elf32_d10v_relocate_section): Likewise. | |
89 | * elf32-hppa.c (elf32_hppa_relocate_section): Likewise. | |
90 | * elf32-i386.c (elf_i386_relocate_section): Likewise. | |
91 | * elf32-ppc.c (ppc_elf_relocate_section): Likewise. | |
92 | * elf32-s390.c (elf_s390_relocate_section): Likewise. | |
93 | * elf32-sh.c (sh_elf_relocate_section): Likewise. | |
94 | * elf32-xtensa.c (elf_xtensa_relocate_section): Likewise. | |
95 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
96 | * elf64-s390.c (elf_s390_relocate_section): Likewise. | |
97 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
98 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Likewise. | |
99 | ||
100 | * elfxx-ia64.c (elfNN_ia64_relocate_section): Set value to | |
101 | zero for discarded symbols. | |
102 | * elfxx-mips.c (mips_elf_calculate_relocation): Likewise. | |
103 | ||
b9d58d71 TS |
104 | 2006-11-01 Thiemo Seufer <[email protected]> |
105 | David Ung <[email protected]> | |
106 | ||
107 | * elf-bfd.h (local_call_stubs): New member. | |
108 | * elfxx-mips.c (FN_STUB_P, CALL_STUB_P, CALL_FP_STUB_P): New macros. | |
109 | (mips_elf_calculate_relocation): Handle local mips16 call stubs. | |
110 | (mips16_stub_section_p): Rename from mips_elf_stub_section_p, use | |
111 | the new stub macros. | |
112 | (_bfd_mips_elf_check_relocs): Handle call stubs for code which | |
113 | mixes mips16 and mips32 functions. Use mips16_stub_section_p. Mark | |
114 | used stubs with SEC_KEEP. Use the new stub macros. | |
115 | ||
74b08499 DJ |
116 | 2006-11-01 Alan Modra <[email protected]> |
117 | ||
118 | * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Correct | |
119 | check for PLT usage. | |
120 | ||
3110dbc9 DJ |
121 | 2006-11-01 Daniel Jacobowitz <[email protected]> |
122 | ||
123 | * elfxx-mips.c (mips_elf_merge_gots): Always use maxcnt. | |
124 | ||
a39f3346 AM |
125 | 2006-10-31 Alan Modra <[email protected]> |
126 | ||
127 | * elf.c (elfcore_write_note): Pad note descriptor to 4-byte | |
128 | boundary. Tidy. Comment. | |
c0f00686 L |
129 | |
130 | 2006-10-30 H.J. Lu <[email protected]> | |
131 | ||
132 | PR ld/3111 | |
133 | * elf-bfd.h (elf_obj_tdata): Add symbuf. | |
134 | (_bfd_elf_section_already_linked): Add struct bfd_link_info *. | |
135 | (_bfd_elf_check_kept_section): Likewise. | |
136 | (bfd_elf_match_symbols_in_sections): Likewise. | |
137 | ||
138 | * elf.c (assign_section_numbers): Updated to add | |
139 | struct bfd_link_info *. | |
140 | (bfd_elf_match_symbols_in_sections): Updated. Cache symbol | |
141 | buffer if info->reduce_memory_overheads is false. | |
142 | ||
143 | * elflink.c (match_group_member): Updated to add | |
144 | struct bfd_link_info *. | |
145 | (_bfd_elf_check_kept_section): Likewise. | |
146 | (elf_link_input_bfd): Likewise. | |
147 | (_bfd_elf_section_already_linked): Likewise. | |
148 | (bfd_elf_final_link): Free symbol buffer if | |
149 | info->reduce_memory_overheads is false. | |
150 | ||
151 | * libbfd-in.h (_bfd_nolink_section_already_linked): Add | |
152 | struct bfd_link_info *. | |
153 | (_bfd_generic_section_already_linked): Likewise. | |
154 | * libbfd.h: Regenerated. | |
155 | ||
156 | * linker.c (bfd_section_already_linked): Add | |
157 | struct bfd_link_info *. | |
158 | (_bfd_generic_section_already_linked): Likewise. | |
159 | * targets.c (bfd_target): Add struct bfd_link_info * to | |
160 | _section_already_linked. | |
161 | * bfd-in2.h: Regenerated. | |
162 | ||
ffda70fc AM |
163 | 2006-10-30 Alan Modra <[email protected]> |
164 | ||
165 | * bfd.c (bfd_error_type): Add bfd_error_on_input. | |
166 | (input_bfd, input_error): New static vars. | |
167 | (bfd_set_error): Handle bfd_error_on_input. | |
168 | (bfd_errmsg): Likewise. | |
169 | (bfd_perror): Simplify. | |
170 | * archive.c (_bfd_write_archive_contents): Report errors on input. | |
b52149c8 | 171 | * bfd-in2.h: Regenerate. |
ffda70fc | 172 | |
017657f0 AM |
173 | 2006-10-30 Alan Modra <[email protected]> |
174 | ||
175 | * elf.c (elfcore_write_note): Pad to 4-byte boundary. | |
176 | ||
165b93e7 RS |
177 | 2006-10-28 Richard Sandiford <[email protected]> |
178 | ||
179 | * elf32-mips.c (elf_mips_howto_table_rel): Add R_MIPS_GLOB_DAT. | |
180 | * elfn32-mips.c (elf_mips_howto_table_rel): Likewise. | |
181 | (elf_mips_howto_table_rela): Likewise. | |
182 | * elf64-mips.c (mips_elf64_howto_table_rel): Likewise. | |
183 | (mips_elf64_howto_table_rela): Likewise. | |
184 | ||
d270463e L |
185 | 2006-10-26 H.J. Lu <[email protected]> |
186 | ||
187 | * elf.c (_bfd_elf_init_private_section_data): Assert output | |
188 | section ELF type instead of check if it is SHT_NULL. Copy | |
189 | OS/PROC specific flags from input section to output section. | |
190 | ||
a14a5de3 AM |
191 | 2006-10-27 Alan Modra <[email protected]> |
192 | ||
193 | * section.c (SEC_KEEP): Update comment. | |
194 | * bfd-in2.h: Regenerate. | |
195 | * elflink.c (bfd_elf_gc_sections): Ignore SEC_EXCLUDE sections. | |
196 | * merge.c (_bfd_merge_sections): Set SEC_KEEP on excluded sections. | |
197 | * stabs.c (_bfd_discard_section_stabs): Likewise. | |
198 | (_bfd_link_section_stabs): Likewise. Simplify abs_section check. | |
199 | ||
761c7f08 BE |
200 | 2006-10-26 Ben Elliston <[email protected]> |
201 | ||
49a184f6 BE |
202 | * reloc.c (_bfd_relocate_contents): Remove explicit case 0. |
203 | ||
761c7f08 BE |
204 | * elf.c (bfd_section_from_shdr): Remove extraneous breaks. |
205 | * targets.c (find_target): Remove extraneous break. | |
206 | ||
23fe9577 BE |
207 | 2006-10-26 Ben Elliston <[email protected]> |
208 | ||
0b853537 BE |
209 | * coff-maxq.c (coff_maxq20_reloc): Remove unused variable `howto'. |
210 | (struct maxq_reloc_map): Unused; remove. | |
211 | (maxq_reloc_map): Likewise. | |
212 | (maxq_reloc_type_lookup): Remove loop over maxq_reloc_map. | |
213 | ||
a14a5de3 | 214 | 2006-10-26 Ben Elliston <[email protected]> |
0b853537 | 215 | |
23fe9577 BE |
216 | * elf.c (bfd_elf_set_dyn_lib_class): Change second argument type |
217 | from int to enum dynamic_lib_link_class lib_class. | |
218 | * bfd-in.h (bfd_elf_set_dyn_lib_class): Likewise. | |
219 | * bfd-in2.h: Regenerate. | |
220 | ||
e9f53129 AM |
221 | 2006-10-25 Alan Modra <[email protected]> |
222 | Trevor Smigiel <[email protected]> | |
223 | Yukishige Shibata <[email protected]> | |
224 | Nobuhisa Fujinami <[email protected]> | |
225 | Takeaki Fukuoka <[email protected]> | |
226 | ||
227 | * cpu-spu.c: New file. | |
228 | * elf32-spu.c: New file. | |
229 | * elf32-spu.h: New file. | |
230 | * archures.c: Add SPU support. | |
231 | * config.bfd: Likewise. | |
232 | * configure.in: Likewise. | |
233 | * reloc.c: Likewise. | |
234 | * targets.c: Likewise. | |
235 | * Makefile.am: Likewise. Run "make dep-am". | |
236 | * libbfd.h: Regenerate. | |
237 | * bfd-in2.h: Regenerate. | |
238 | * Makefile.in: Regenerate. | |
239 | * configure: Regenerate. | |
240 | * po/SRC-POTFILES.in: Regenerate. | |
241 | ||
05bf9422 AM |
242 | 2006-10-23 Alan Modra <[email protected]> |
243 | ||
244 | * elf64-ppc.c (ppc64_elf_edit_opd): Clarify comment. | |
245 | ||
9838404f AM |
246 | 2006-10-23 Alan Modra <[email protected]> |
247 | ||
248 | * elf32-score.c: Formatting. | |
249 | (elf_backend_omit_section_dynsym): Define. | |
250 | (score_elf_create_dynamic_relocation): Remove code copied from mips. | |
251 | Don't use section syms in dynamic relocs. Remove unused param. | |
252 | (score_elf_final_link_relocate): Remove unused param. | |
253 | ||
720194ed AM |
254 | 2006-10-23 Alan Modra <[email protected]> |
255 | ||
256 | * linker.c (fix_syms): Choose best of previous and next | |
257 | section based on section flags and vma. | |
258 | ||
dc84ceef KK |
259 | 2006-10-21 Kaz Kojima <[email protected]> |
260 | ||
261 | * elf32-sh64.c (sh64_elf_merge_symbol_attribute): Do merging | |
262 | only when the non visibility part of st_other is non-zero. | |
263 | * elf64-sh64.c (sh64_elf64_merge_symbol_attribute): Likewise. | |
264 | ||
f6f62d6f RS |
265 | 2006-10-20 Richard Sandiford <[email protected]> |
266 | ||
267 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Don't extend | |
268 | PT_DYNAMIC on GNU/Linux targets. | |
269 | ||
bcfdf036 RS |
270 | 2006-10-20 Richard Sandiford <[email protected]> |
271 | ||
272 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Make the | |
273 | size of .rel.dyn reflect the value of DT_RELSZ. | |
274 | ||
98c904a8 RS |
275 | 2006-10-20 Richard Sandiford <[email protected]> |
276 | ||
277 | * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Allocate | |
278 | a PT_NULL header for dynamic objects. | |
279 | (_bfd_mips_elf_modify_segment_map): Add it. | |
280 | ||
b3549761 NC |
281 | 2006-10-19 Mei Ligang <[email protected]> |
282 | ||
283 | * elf32-score.c (score_elf_rel_dyn_section): Replace | |
284 | bfd_make_section with bfd_make_section_with_flags. | |
285 | (_bfd_score_elf_create_dynamic_sections): Ditto. | |
286 | (score_elf_create_got_section): Ditto. | |
287 | (score_elf_final_link_relocate): Delete referrence to | |
288 | EF_SCORE_HASENTRY. | |
289 | ||
6870500c RS |
290 | 2006-10-19 Richard Sandiford <[email protected]> |
291 | ||
292 | * elfxx-mips.c (sort_dynamic_relocs): Sort relocations against the | |
293 | same symbol by increasing r_offset. | |
294 | (sort_dynamic_relocs_64): Likewise. Fix comparisons between very | |
295 | large and very small symbol indexes. | |
296 | ||
6a483765 RS |
297 | 2006-10-19 Richard Sandiford <[email protected]> |
298 | ||
299 | * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG | |
300 | and DT_MIPS_RLD_MAP tags for position-independent executables. | |
301 | Do not add DT_DEBUG to shared libraries for any MIPS target. | |
302 | ||
92b7c7b6 L |
303 | 2006-10-18 H.J. Lu <[email protected]> |
304 | ||
305 | PR ld/3290 | |
306 | * elflink.c (elf_link_add_object_symbols): Hide definitions in | |
307 | debug sections. | |
308 | ||
2f475487 AM |
309 | 2006-10-19 Alan Modra <[email protected]> |
310 | ||
311 | * elf32-arm.c (bfd_elf32_arm_allocate_interworking_sect): Check, | |
312 | don't set, glue section size. | |
313 | (record_arm_to_thumb_glue): Set glue section size here. | |
314 | (record_thumb_to_arm_glue): Likewise. | |
315 | (bfd_elf32_arm_add_glue_sections_to_bfd): Formatting. | |
316 | (bfd_elf32_arm_process_before_allocation): Ignore exluded sections. | |
317 | ||
71a75f6f MF |
318 | 2006-10-18 Roy Marples <[email protected]> |
319 | ||
320 | * elf64-sparc.c: Add FreeBSD support. | |
321 | (elf64_sparc_fbsd_post_process_headers): New function. | |
322 | * targets.c (_bfd_target_vector): Add bfd_elf64_sparc_freebsd_vec. | |
323 | * config.bfd (sparc64-*-freebsd*): Set targ_defvec to bfd_elf64_sparc_freebsd_vec. | |
324 | * configure.in: Add entry for bfd_elf64_sparc_freebsd_vec. | |
325 | * configure: Regenerate. | |
326 | ||
92f5d02b MS |
327 | 2006-10-17 Mark Shinwell <[email protected]> |
328 | ||
329 | * elf32-arm.c (elf32_arm_final_link_relocate): Add support for | |
330 | R_ARM_MOVW_BREL_NC, R_ARM_MOVW_BREL, R_ARM_MOVT_BREL, | |
331 | R_ARM_THM_MOVW_BREL_NC, R_ARM_THM_MOVW_BREL and | |
332 | R_ARM_THM_MOVT_BREL relocations. | |
333 | ||
e95de063 MS |
334 | 2006-10-17 Mark Shinwell <[email protected]> |
335 | ||
05bf9422 AM |
336 | * elf32-arm.c (elf32_arm_howto_table_1): Change offset for |
337 | R_THM_CALL to 25 and remove FIXME comment. | |
338 | (using_thumb2): New function. | |
339 | (elf32_arm_final_link_relocate): Cope with Thumb-2 BL encoding. | |
e95de063 | 340 | |
bb224fc3 MS |
341 | 2006-10-17 Mark Shinwell <[email protected]> |
342 | ||
343 | * elf32-arm.c (elf32_arm_final_link_relocate): Add cases | |
344 | for R_ARM_ABS32_NOI and R_ARM_REL32_NOI. | |
345 | (elf32_arm_gc_sweep_hook): Likewise. | |
346 | (elf32_arm_check_relocs): Likewise. | |
347 | (allocate_dynrelocs): Likewise. | |
348 | ||
74541ad4 AM |
349 | 2006-10-17 Alan Modra <[email protected]> |
350 | ||
351 | * elf-bfd.h (struct elf_link_hash_table): Reorder. Add | |
352 | text_index_section and data_index_section. | |
353 | (struct elf_backend_data): Add elf_backend_init_index_section. | |
354 | (_bfd_elf_init_1_index_section): Declare. | |
355 | (_bfd_elf_init_2_index_sections): Declare. | |
356 | * elfxx-target.h (elf_backend_init_index_section): Define. | |
357 | (elfNN_bed): Init new field. | |
358 | * elflink.c (_bfd_elf_link_omit_section_dynsym): Keep first tls | |
359 | section and text_index_section plus data_index_section. | |
360 | (_bfd_elf_link_renumber_dynsyms): Clear dynindx on omitted sections. | |
361 | (_bfd_elf_init_1_index_section): New function. | |
362 | (_bfd_elf_init_2_index_sections): New function. | |
363 | (bfd_elf_size_dynsym_hash_dynstr): Call elf_backend_init_index_section. | |
364 | (elf_link_input_bfd): When emitting relocs, use text_index_section | |
365 | and data_index_section for removed sections. | |
366 | * elf-m10300.c (elf_backend_omit_section_dynsym): Define. | |
367 | * elf32-i386.c: Likewise. | |
368 | * elf32-m32r.c: Likewise. | |
369 | * elf32-sh.c: Likewise. | |
370 | * elf32-xstormy16.c: Likewise. | |
371 | * elf32-xtensa.c: Likewise. | |
372 | * elf64-alpha.c: Likewise. | |
373 | * elf64-hppa.c: Likewise. | |
374 | * elf64-mmix.c: Likewise. | |
375 | * elf64-sh64.c: Likewise. | |
376 | * elfxx-ia64.c: Likewise. | |
377 | * elf32-arm.c (elf32_arm_final_link_relocate): Use text_index_section | |
378 | and data_index_section sym for relocs against sections with no dynamic | |
379 | section sym. | |
380 | (elf_backend_init_index_section): Define. | |
381 | * elf32-cris.c: Similarly. | |
382 | * elf32-hppa.c: Similarly. | |
383 | * elf32-i370.c: Similarly. | |
384 | * elf32-m68k.c: Similarly. | |
385 | * elf32-mips.c: Similarly. | |
386 | * elf32-ppc.c: Similarly. | |
387 | * elf32-s390.c: Similarly. | |
388 | * elf32-sparc.c: Similarly. | |
389 | * elf32-vax.c: Similarly. | |
390 | * elf64-mips.c: Similarly. | |
391 | * elf64-ppc.c: Similarly. | |
392 | * elf64-s390.c: Similarly. | |
393 | * elf64-sparc.c: Similarly. | |
394 | * elf64-x86-64.c: Similarly. | |
395 | * elfn32-mips.c: Similarly. | |
396 | * elfxx-mips.c: Similarly. | |
397 | * elfxx-sparc.c: Similarly. | |
398 | * linker.c (fix_syms): Base symbols in removed sections on | |
399 | previous section in preference to using absolute section. | |
400 | ||
c26620e3 AS |
401 | 2006-10-16 Andreas Schwab <[email protected]> |
402 | ||
403 | * elfxx-ia64.c (addend_compare): Properly compute return value. | |
404 | ||
3ba71138 L |
405 | 2006-10-15 H.J. Lu <[email protected]> |
406 | ||
407 | PR ld/3314 | |
408 | * elf.c (assign_file_positions_for_non_load_sections): Don't | |
05bf9422 | 409 | page align empty SHF_ALLOC sections. |
3ba71138 | 410 | |
7eeb1be6 JJ |
411 | 2006-10-13 Jakub Jelinek <[email protected]> |
412 | ||
413 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_sections): Set | |
414 | .plt sh_entsize to 0 if plt header size isn't multiple of | |
415 | plt entry size or for 32-bit which adds a nop insn at the | |
416 | end of the .plt section. | |
417 | ||
a77dc2cc BW |
418 | 2006-10-12 Bob Wilson <[email protected]> |
419 | ||
420 | * elf32-xtensa.c (elf_xtensa_action_discarded): New. | |
421 | (elf_backend_action_discarded): Define. | |
422 | ||
bf1747de BW |
423 | 2006-10-11 Bob Wilson <[email protected]> |
424 | ||
425 | * elf32-xtensa.c (elf_xtensa_relocate_section): Return after | |
426 | unresolvable relocation error. | |
427 | (elf_xtensa_finish_dynamic_symbol): Set value of undefined, weak | |
428 | symbols to zero. | |
429 | ||
ba05963f BW |
430 | 2006-10-10 Bob Wilson <[email protected]> |
431 | ||
432 | * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Add DT_DEBUG | |
433 | for PIE executables. | |
434 | ||
ac685e6a JJ |
435 | 2006-10-03 Jakub Jelinek <[email protected]> |
436 | ||
437 | * elf-bfd.h (struct eh_cie_fde): Add set_loc pointer. | |
438 | * elf-eh-frame.c (skip_cfa_op): Fix handling of DW_CFA_advance_loc. | |
439 | Handle DW_CFA_{remember,restore}_state, DW_CFA_GNU_window_save, | |
440 | DW_CFA_val_{offset{,_sf},expression}. | |
441 | (skip_non_nops): Record number of DW_CFA_set_loc ops. | |
442 | (_bfd_elf_discard_section_eh_frame): Require skip_non_nops recognizes | |
443 | all ops. If there are any DW_CFA_set_loc ops and they are pcrel | |
444 | or going to be pcrel, compute set_loc array. | |
445 | (_bfd_elf_eh_frame_section_offset): If make_relative, kill relocations | |
446 | against DW_CFA_set_loc operands. | |
447 | (_bfd_elf_write_section_eh_frame): Handle DW_CFA_set_loc adjusting. | |
448 | ||
cd7be95b KH |
449 | 2006-10-02 Daniel Jacobowitz <[email protected]> |
450 | ||
451 | * elflink.c (_bfd_elf_merge_symbol): Discard references to TLS | |
452 | symbols from the --just-syms file. | |
453 | ||
23eb7e01 AM |
454 | 2006-10-01 Alan Modra <[email protected]> |
455 | ||
456 | * elf64-ppc.c (ppc64_elf_build_stubs): Test glink size for | |
457 | existence of PLT. | |
458 | ||
4dba4b24 L |
459 | 2006-09-29 H.J. Lu <[email protected]> |
460 | ||
461 | PR ld/3283 | |
462 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Don't ignore | |
463 | relocation overflow on branches to undefweaks. | |
464 | ||
3bb0c887 AM |
465 | 2006-09-29 Alan Modra <[email protected]> |
466 | ||
467 | * po/BLD-POTFILES.in: Regenerate. | |
468 | * po/SRC-POTFILES.in: Regenerate. | |
469 | ||
14952a5b DS |
470 | 2006-09-29 Danny Smith <[email protected]> |
471 | ||
472 | PR 3276 | |
473 | * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte | |
474 | alignment for .data$, .rdata$ and .text$ sections so that sse | |
05bf9422 | 475 | and sse2 code will work for linkonce sections too. |
14952a5b DS |
476 | * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise. |
477 | ||
07adf181 AM |
478 | 2006-09-28 Alan Modra <[email protected]> |
479 | ||
480 | * elflink.c (_bfd_elf_gc_mark_hook): New function. | |
481 | * elf-bfd.h (_bfd_elf_gc_mark_hook): Declare. | |
482 | * elfxx-target.h (elf_backend_gc_mark_hook): Default to above. | |
483 | * elf-m10300.c (mn10300_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
484 | * elf32-arm.c (elf32_arm_gc_mark_hook): Likewise. | |
485 | * elf32-cris.c (cris_elf_gc_mark_hook): Likewise. | |
486 | * elf32-hppa.c (elf32_hppa_gc_mark_hook): Likewise. | |
487 | * elf32-i386.c (elf_i386_gc_mark_hook): Likewise. | |
488 | * elf32-m32r.c (m32r_elf_gc_mark_hook): Likewise. | |
489 | * elf32-m68k.c (elf_m68k_gc_mark_hook): Likewise. | |
490 | * elf32-mcore.c (mcore_elf_gc_mark_hook): Likewise. | |
491 | * elf32-ppc.c (ppc_elf_gc_mark_hook): Likewise. | |
492 | * elf32-s390.c (elf_s390_gc_mark_hook): Likewise. | |
493 | * elf32-score.c (_bfd_score_elf_gc_mark_hook): Likewise. | |
494 | * elf32-sh.c (sh_elf_gc_mark_hook): Likewise. | |
495 | * elf32-vax.c (elf_vax_gc_mark_hook): Likewise. | |
496 | * elf32-xtensa.c (elf_xtensa_gc_mark_hook): Likewise. | |
497 | * elf64-mmix.c (mmix_elf_gc_mark_hook): Likewise. | |
498 | * elf64-s390.c (elf_s390_gc_mark_hook): Likewise. | |
499 | * elf64-x86-64.c (elf64_x86_64_gc_mark_hook): Likewise. | |
500 | * elfxx-mips.c (_bfd_mips_elf_gc_mark_hook): Likewise. | |
501 | * elfxx-sparc.c (_bfd_sparc_elf_gc_mark_hook): Likewise. | |
502 | * elf32-bfin.c (bfin_gc_mark_hook): Likewise. | |
503 | (bfinfdpic_gc_sweep_hook): Delete. | |
504 | (elf_backend_gc_sweep_hook): Don't define for elf32-bfinfdpic. | |
505 | * elf32-d10v.c (elf32_d10v_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
506 | (elf32_d10v_gc_sweep_hook): Delete. | |
507 | (elf_backend_gc_sweep_hook): Don't define. | |
508 | * elf32-fr30.c (fr30_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
509 | (fr30_elf_gc_sweep_hook): Delete. | |
510 | (elf_backend_gc_sweep_hook): Don't define. | |
511 | * elf32-frv.c (elf32_frv_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
512 | (elf32_frv_gc_sweep_hook): Delete. | |
513 | (elf_backend_gc_sweep_hook): Don't define. | |
514 | * elf32-iq2000.c (iq2000_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
515 | (iq2000_elf_gc_sweep_hook): Delete. | |
516 | (elf_backend_gc_sweep_hook): Don't define. | |
517 | * elf32-openrisc.c (openrisc_elf_gc_mark_hook): Use | |
518 | _bfd_elf_gc_mark_hook. | |
519 | (openrisc_elf_gc_sweep_hook): Delete. | |
520 | (elf_backend_gc_sweep_hook): Don't define. | |
521 | * elf32-v850.c (v850_elf_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
522 | (v850_elf_gc_sweep_hook): Delete. | |
523 | (elf_backend_gc_sweep_hook): Don't define. | |
524 | * elf32-xstormy16.c (xstormy16_elf_gc_mark_hook): Use | |
525 | _bfd_elf_gc_mark_hook. | |
526 | (xstormy16_elf_gc_sweep_hook): Delete. | |
527 | (elf_backend_gc_sweep_hook): Don't define. | |
528 | * elf64-sh64.c (sh_elf64_gc_mark_hook): Use _bfd_elf_gc_mark_hook. | |
529 | (sh_elf64_gc_sweep_hook): Delete. | |
530 | (elf_backend_gc_sweep_hook): Don't define. | |
531 | * elf32-avr.c (elf32_avr_gc_mark_hook): Delete. | |
532 | (elf32_avr_gc_sweep_hook): Delete. | |
533 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
534 | * elf32-cr16c.c (elf32_cr16c_gc_mark_hook): Delete. | |
535 | (elf32_cr16c_gc_sweep_hook): Delete. | |
536 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
537 | * elf32-crx.c (elf32_crx_gc_mark_hook): Delete. | |
538 | (elf32_crx_gc_sweep_hook): Delete. | |
539 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
540 | * elf32-h8300.c (elf32_h8_gc_mark_hook): Delete. | |
541 | (elf32_h8_gc_sweep_hook): Delete. | |
542 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
543 | * elf32-ip2k.c (ip2k_elf_gc_mark_hook): Delete. | |
544 | (ip2k_elf_gc_sweep_hook): Delete. | |
545 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
546 | * elf32-m32c.c (m32c_elf_gc_mark_hook, m32c_elf_gc_sweep_hook): Delete. | |
547 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
548 | * elf32-m68hc11.c (elf_backend_gc_mark_hook): Don't define. | |
549 | (elf_backend_gc_sweep_hook): Don't define. | |
550 | * elf32-m68hc12.c (elf_backend_gc_mark_hook): Don't define. | |
551 | (elf_backend_gc_sweep_hook): Don't define. | |
552 | * elf32-m68hc1x.c (elf32_m68hc11_gc_mark_hook): Delete. | |
553 | (elf32_m68hc11_gc_sweep_hook): Delete. | |
554 | * elf32-m68hc1x.h (elf32_m68hc11_gc_mark_hook): Delete. | |
555 | (elf32_m68hc11_gc_sweep_hook): Delete. | |
556 | * elf32-msp430.c (elf32_msp430_gc_mark_hook): Delete. | |
557 | (elf32_msp430_gc_sweep_hook): Delete. | |
558 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
559 | * elf32-mt.c (mt_elf_gc_mark_hook, mt_elf_gc_sweep_hook): Delete. | |
560 | (elf_backend_gc_mark_hook, elf_backend_gc_mark_hook): Don't define. | |
561 | ||
ea9986ff NC |
562 | 2006-09-25 Pedro Alves <[email protected]> |
563 | ||
564 | * bfd-in.h (CONST_STRNCPY) : Delete. | |
565 | (LITSTRCPY) : New. | |
566 | (LITMEMCPY) : New. | |
567 | * bfd-in2.h : Regenerate. | |
568 | * elflink.c (bfd_elf_gc_sections) : Use LITMEMCPY. Don't manually | |
569 | calculate string lengths. | |
570 | * nlmcode.h (nlm_swap_auxiliary_headers_in) : Use LITMEMCPY. | |
571 | ||
49c13adb L |
572 | 2006-09-26 H.J. Lu <[email protected]> |
573 | ||
574 | PR ld/3223 | |
575 | PR ld/3267 | |
576 | * elf.c (assign_file_positions_for_non_load_sections): Don't | |
577 | warn zero size allocated sections. | |
578 | ||
f36b9bcd AM |
579 | 2006-09-27 Alan Modra <[email protected]> |
580 | ||
581 | * elf32-score.c (_bfd_score_elf_relocate_section): Move assignment | |
582 | to "name" so that compiler realizes it is never uninitialized. | |
583 | Use bfd_elf_sym_name. | |
584 | ||
41f8ce69 L |
585 | 2006-09-26 H.J. Lu <[email protected]> |
586 | ||
587 | PR binutils/3262 | |
588 | * elf.c (rewrite_elf_program_header): Use bfd_zalloc instead of | |
589 | bfd_alloc to allocate segment map. | |
590 | (copy_elf_program_header): Likewise. | |
591 | ||
2d447fca | 592 | 2006-09-26 Mark Shinwell <[email protected]> |
05bf9422 AM |
593 | Joseph Myers <[email protected]> |
594 | Ian Lance Taylor <[email protected]> | |
595 | Ben Elliston <[email protected]> | |
2d447fca JM |
596 | |
597 | * archures.c: Add definition for bfd_mach_arm_iWMMXt2. | |
598 | * cpu-arm.c (processors): Add bfd_mach_arm_iWMMXt2. | |
599 | (arch_info_struct, bfd_arm_update_notes): Likewise. | |
600 | (architectures): Likewise. | |
601 | (bfd_arm_merge_machines): Check for iWMMXt2. | |
602 | * bfd-in2.h: Rebuild. | |
603 | ||
65fe5dd6 L |
604 | 2006-09-24 H.J. Lu <[email protected]> |
605 | ||
606 | * configure: Regenerated. | |
607 | ||
8384fb8f AM |
608 | 2006-09-22 Alan Modra <[email protected]> |
609 | ||
610 | * elfcode.h (elf_swap_symbol_in): Return bfd_boolean. Don't abort | |
611 | on error. | |
612 | * elf-bfd.h (elf_size_info <swap_symbol_in>): Adjust decl. | |
613 | (bfd_elf32_swap_symbol_in, bfd_elf64_swap_symbol_in): Likewise. | |
614 | * elf.c (bfd_elf_get_elf_syms): Test return of swap_symbol_in, | |
615 | and report error. | |
616 | * elf32-arm.c (elf32_arm_swap_symbol_in): Return bfd_boolean. | |
617 | ||
36c10a8f MS |
618 | 2006-09-20 Martin Schwidefsky <[email protected]> |
619 | ||
620 | * elf32-s390.c (elf_s390_relocate_section): Remove check for code | |
621 | section in LD to LE linker relaxation for R_390_TLS_LDO32. | |
622 | * elf64-s390.c (elf_s390_relocate_section): Likewise for | |
623 | R_390_TLS_LDO64. | |
624 | ||
99ad8390 NC |
625 | 2006-09-20 Kai Tietz <[email protected]> |
626 | ||
627 | * configure.in: Added new target-vectors x86_64coff_vec, | |
628 | x86_64pe_vec, and x86_64pei_vec. | |
629 | * configure: Regenerate. | |
630 | * config.bfd: Adjusted x86_64 target architecture detection. | |
631 | * bfd.c: Add for new target "coff-x86-64" | |
632 | (bfd_get_sign_extend): Add target vector idents for pe-x86-64. and pei-x86-64. | |
633 | * coff-x86_64.c: Add new file for x86_64 (AMD64) coff support. | |
634 | * libpei.h: Adjustments for COFF_WITH_pex64. | |
635 | * coffcode.h: Add for new target machine, architecture, signature, and internal | |
636 | signature handler. | |
637 | * Makefile.am: Add new files to target-all and define make-rule for pex64igen.c | |
638 | * Makefile.in: Regenerate. | |
639 | * pe-x86_64.c: Add for new target "pe-x86-64". | |
640 | * pei-x86_64.c: Add for new target "pei-x86-64". | |
641 | * peicode.h: Adjusts for new targets. | |
642 | (coff_swap_filehdr_out): Set for this target to | |
643 | _bfd_pex64_only_swap_filehdr_out. | |
644 | (SIZEOF_IDATA4): Define it as 8 byte size for this target. | |
645 | (SIZEOF_IDATA5): Define it as 8 byte size for this target. | |
646 | (jump_table jtab): Add for AMD64MAGIC. | |
647 | (pe_ILF_build_a_bfd): Adjusts for new size of SIZEOF_IDATA4 and SIZE_IDATA5. | |
648 | (pe_ILF_object_p): Add coff image-file signature to internal | |
649 | signature translation. | |
650 | * peXXigen.c: Adjust proper include of target coff-header and | |
651 | introduced target specific code | |
652 | (COFF_WITH_pex64): New macro for this target. | |
653 | (pe_print_idata): New dumping method for import section of PE+ files. | |
654 | * targets.c: Add new target vectors declarations for x86_64 coff targets. | |
655 | * coffcode.h: Support code to support the x86_64 PE magic number. | |
656 | * coff-x86_64.c: New file. | |
657 | ||
60ff4dc4 HPN |
658 | 2006-09-17 Hans-Peter Nilsson <[email protected]> |
659 | ||
660 | * elf.c (special_sections_s): Revert last STRING_COMMA_LEN change | |
661 | for .stabstr entry, explain why. | |
662 | ||
7421a730 AM |
663 | 2006-09-17 Anton Blanchard <[email protected]> |
664 | Alan Modra <[email protected]> | |
665 | ||
666 | * dwarf2.c (concat_filename): Apply DW_AT_comp_dir if dir table | |
667 | entry isn't absolute. | |
668 | ||
1c0d3aa6 NC |
669 | 2006-09-17 Mei Ligang <[email protected]> |
670 | ||
671 | * cpu-score.c: New file. | |
672 | * elf32-score.c: New file. | |
673 | * config.bfd: Add Score target. | |
674 | * Makefile.am: Add Score files. | |
675 | * Makefile.in: Regenerate. | |
676 | * archures.c: Add Score architecture. | |
677 | * reloc.c: Add Score relocs. | |
678 | * targets.c: Add Score target vectors. | |
679 | * bfd-in2.h: Regenerate. | |
680 | * libbfd.h: Regenerate. | |
681 | * configure.in: Add Score target. | |
682 | * configure: Regenerate. | |
683 | ||
0112cd26 NC |
684 | 2006-09-16 Nick Clifton <[email protected]> |
685 | Pedro Alves <[email protected]> | |
686 | ||
687 | * bfd-in.h (STRING_AND_COMMA): New macro. Takes one constant | |
688 | string as its argument and emits the string followed by a comma | |
689 | and then the length of the string. | |
690 | (CONST_STRNEQ): New macro. Checks to see if a variable string | |
691 | has a constant string as its initial characters. | |
692 | (CONST_STRNCPY): New macro. Copies a constant string to the start | |
693 | of a variable string. | |
694 | * bfd-in2.h: Regenerate. | |
695 | * archive.c: Make use of the new macros. | |
696 | * archive64.c: Likewise. | |
697 | * bfd.c: Likewise. | |
698 | * coff-ppc.c: Likewise. | |
699 | * coff-stgo32.c: Likewise. | |
700 | * coffcode.h: Likewise. | |
701 | * cofflink.c: Likewise. | |
702 | * cpu-i960.c: Likewise. | |
703 | * dwarf2.c: Likewise. | |
704 | * ecoff.c: Likewise. | |
705 | * elf-m10300.c: Likewise. | |
706 | * elf.c: Likewise. | |
707 | * elf32-arm.c: Likewise. | |
708 | * elf32-bfin.c: Likewise. | |
709 | * elf32-cris.c: Likewise. | |
710 | * elf32-hppa.c: Likewise. | |
711 | * elf32-i370.c: Likewise. | |
712 | * elf32-i386.c: Likewise. | |
713 | * elf32-iq2000.c: Likewise. | |
714 | * elf32-m32r.c: Likewise. | |
715 | * elf32-m68hc11.c: Likewise. | |
716 | * elf32-m68hc12.c: Likewise. | |
717 | * elf32-m68k.c: Likewise. | |
718 | * elf32-mcore.c: Likewise. | |
719 | * elf32-ppc.c: Likewise. | |
720 | * elf32-s390.c: Likewise. | |
721 | * elf32-sh-symbian.c: Likewise. | |
722 | * elf32-sh.c: Likewise. | |
723 | * elf32-sh64.c: Likewise. | |
724 | * elf32-v850.c: Likewise. | |
725 | * elf32-vax.c: Likewise. | |
726 | * elf32-xtensa.c: Likewise. | |
727 | * elf64-alpha.c: Likewise. | |
728 | * elf64-hppa.c: Likewise. | |
729 | * elf64-mmix.c: Likewise. | |
730 | * elf64-ppc.c: Likewise. | |
731 | * elf64-s390.c: Likewise. | |
732 | * elf64-sh64.c: Likewise. | |
733 | * elf64-x86-64.c: Likewise. | |
734 | * elflink.c: Likewise. | |
735 | * elfxx-ia64.c: Likewise. | |
736 | * elfxx-mips.c: Likewise. | |
737 | * elfxx-sparc.c: Likewise. | |
738 | * hpux-core.c: Likewise. | |
739 | * i386linux.c: Likewise. | |
740 | * ieee.c: Likewise. | |
741 | * libpei.h: Likewise. | |
742 | * linker.c: Likewise. | |
743 | * m68klinux.c: Likewise. | |
744 | * mmo.c: Likewise. | |
745 | * nlmcode.h: Likewise. | |
746 | * osf-core.c: Likewise. | |
747 | * pef.c: Likewise. | |
748 | * som.c: Likewise. | |
749 | * sparclinux.c: Likewise. | |
750 | * vms-hdr.c: Likewise. | |
751 | ||
30288845 AM |
752 | 2006-09-14 Alan Modra <[email protected]> |
753 | ||
4b181510 | 754 | PR 3181 |
30288845 AM |
755 | * elf.c (_bfd_elf_copy_private_header_data): Fix group members |
756 | that have had their SHT_GROUP section removed. | |
757 | ||
41198d0c L |
758 | 2006-09-12 H.J. Lu <[email protected]> |
759 | ||
760 | PR ld/3197 | |
761 | * elflink.c (elf_link_output_extsym): Compute bucket only if | |
762 | needed. | |
763 | ||
168dd667 L |
764 | 2006-09-10 H.J. Lu <[email protected]> |
765 | ||
766 | PR binutils/3186 | |
767 | * elf.c (_bfd_elf_make_section_from_shdr): Correct length of | |
768 | "gnu.linkonce.wi.". | |
769 | ||
b0fead2b RE |
770 | 2006-09-08 Vladimir Prus <[email protected]> |
771 | ||
772 | * elf32-arm.c (elf32_arm_swap_symbol_out): Remove | |
773 | unconditional setting of low bit for Thumb symbol | |
774 | mistakenly left behind after check for external | |
775 | symbols was added. Fix comment typo. | |
776 | ||
55255dae L |
777 | 2006-09-07 H.J. Lu <[email protected]> |
778 | ||
779 | * elf-bfd.h (elf_link_hash_entry): Add a dynamic field. | |
780 | (bfd_elf_link_mark_dynamic_symbol): New. | |
781 | (SYMBOLIC_BIND): New. | |
782 | ||
783 | * elf32-i386.c (elf_i386_check_relocs): Replace info->symbolic | |
784 | with SYMBOLIC_BIND (info, h). | |
785 | (elf_i386_relocate_section): Likewise. | |
786 | * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise. | |
787 | (elf64_x86_64_relocate_section): Likewise. | |
788 | * elfxx-ia64.c (elfNN_ia64_check_relocs): Likewise. | |
789 | ||
790 | * elflink.c (bfd_elf_link_mark_dynamic_symbol): New. | |
791 | (bfd_elf_record_link_assignment): Call | |
792 | bfd_elf_link_mark_dynamic_symbol on new entry. | |
793 | (_bfd_elf_merge_symbol): Likewise. | |
794 | (_bfd_elf_export_symbol): Return if the symbol isn't exported. | |
795 | (_bfd_elf_fix_symbol_flags): Replace info->symbolic with | |
796 | SYMBOLIC_BIND (info, h). | |
797 | (_bfd_elf_dynamic_symbol_p): Likewise. | |
798 | (_bfd_elf_symbol_refs_local_p): Likewise. | |
799 | (bfd_elf_size_dynamic_sections): Updated. | |
800 | ||
7a2ec0a6 L |
801 | 2006-09-05 Bibo Mao <[email protected]> |
802 | ||
803 | PR binutils/3171 | |
804 | * coffcode.h (coff_write_object_contents): Set the optional | |
805 | header magic number to PE32PMAGIC instead of ZMAGIC for ia64. | |
806 | ||
2cab6cc3 MS |
807 | 2006-09-04 Mark Shinwell <[email protected]> |
808 | ||
05bf9422 AM |
809 | * elf32-arm.c (elf32_arm_howto_table_1): Adjust entries for |
810 | R_ARM_THM_ALU_PREL_11_0 and R_ARM_THM_PC12 relocations. | |
811 | (elf32_arm_final_link_relocate): Handle R_ARM_THM_ALU_PREL_11_0 | |
812 | and R_ARM_THM_PC12 relocations. | |
2cab6cc3 | 813 | |
74869ac7 BW |
814 | 2006-08-24 Bob Wilson <[email protected]> |
815 | ||
816 | * elf32-xtensa.c (xtensa_get_property_section_name): Delete. | |
817 | (xtensa_get_property_section): New. | |
818 | (xtensa_read_table_entries): Use xtensa_get_property_section. | |
819 | (relax_property_section, xtensa_get_property_predef_flags): Handle | |
820 | group name suffixes in property section names. | |
821 | (match_section_group): New. | |
822 | ||
174660ce NC |
823 | 2006-08-23 Frediano Ziglio <[email protected]> |
824 | ||
825 | * archive.c (hpux_uid_gid_encode): Fix thinko decrementing "cnt" | |
826 | variable. | |
827 | ||
b34b2d70 DJ |
828 | 2006-08-22 Daniel Jacobowitz <[email protected]> |
829 | ||
830 | * elf32-arm.c (elf32_arm_copy_indirect_symbol): Only copy | |
831 | plt_thumb_refcount from indirect symbols. | |
832 | ||
5c5f6e17 AM |
833 | 2006-08-22 Alan Modra <[email protected]> |
834 | ||
835 | * elf32-ppc.c (ppc_elf_relocate_section): Correct GOT and PLT HA | |
836 | reloc handling. | |
837 | * elf64-ppc.c (ppc64_elf_relocate_section): Likewise. | |
838 | ||
87bc043a MS |
839 | 2006-08-21 Mark Shinwell <[email protected]> |
840 | ||
841 | * elf32-arm.c (elf32_arm_link_hash_table): Correct typo in | |
842 | comment for target1_is_rel. | |
843 | ||
7148cc28 NC |
844 | 2006-08-21 Pedro Alves <[email protected]> |
845 | ||
846 | * Makefile.am: Add rules to build pe-arm-wince.lo | |
847 | and pei-arm-wince.lo objects. | |
848 | * Makefile.in: Regenerate. | |
849 | * pe-arm-wince.c: New file. | |
850 | * pei-arm-wince.c: New file. | |
851 | * pei-arm.c: Remove ARM_WINCE block. | |
852 | * pe-arm.c: Remove ARM_WINCE block. Rename | |
853 | bfd_arm_pe_allocate_interworking_sections, | |
854 | bfd_arm_pe_get_bfd_for_interworking, and | |
05bf9422 | 855 | bfd_arm_pe_process_before_allocation to |
7148cc28 NC |
856 | bfd_armpe_allocate_interworking_sections, |
857 | bfd_armpe_get_bfd_for_interworking, and | |
858 | bfd_armpe_process_before_allocation. Move them before | |
859 | including bfd.h. | |
860 | * bfd.c: ARM wince bfd format names were renamed. Adjust. | |
861 | * coff-arm.c [ARM_WINCE]: Adjust so Windows CE doesn't end up | |
862 | with unexpected/conflicting relocs. | |
863 | * targets.c: The arm-wince-pe target got its own new vector. | |
864 | Adjust. | |
865 | * config.bfd: Likewise. | |
866 | * configure.in: Likewise. | |
867 | * configure: Regenerate. | |
868 | ||
a4fd1a8e PB |
869 | 2006-08-18 Paul Brook <[email protected]> |
870 | ||
871 | * elf32-arm.c (elf32_arm_link_hash_entry): Add export_glue. | |
872 | (elf32_arm_link_hash_newfunc): Initialize export_glue. | |
873 | (record_arm_to_thumb_glue): Return stub symbol. | |
874 | (elf32_arm_create_thumb_stub): New function. | |
875 | (elf32_arm_to_thumb_stub): Use it. | |
876 | (elf32_arm_to_thumb_export_stub): New function. | |
877 | (elf32_arm_begin_write_processing): New function. | |
878 | (allocate_dynrelocs): Allocate Arm stubs. | |
879 | (elf_backend_begin_write_processing): Define. | |
880 | (elf32_arm_symbian_begin_write_processing): Remove ATTRIBUTE_UNUSED. | |
881 | Call elf32_arm_begin_write_processing. | |
882 | ||
ee4bf8d2 AM |
883 | 2006-08-17 Alan Modra <[email protected]> |
884 | ||
885 | * elf64-ppc.c (create_linkage_sections): Align .glink to 8 bytes. | |
886 | (ppc64_elf_build_stubs): Use new lazy linking stub. | |
887 | ||
12c0f757 AM |
888 | 2006-08-17 Alan Modra <[email protected]> |
889 | ||
890 | * elf64-ppc.c (ppc64_elf_size_stubs): Ignore non-code sections. | |
891 | ||
c9df6640 L |
892 | 2006-08-16 H.J. Lu <[email protected]> |
893 | ||
894 | PR ld/3015 | |
895 | * elf.c (get_program_header_size): Add a PT_GNU_RELRO segment | |
896 | only if there is a PT_DYNAMIC segment. | |
897 | (_bfd_elf_map_sections_to_segments): Likewise. | |
898 | (assign_file_positions_for_load_sections): Set PT_GNU_RELRO | |
899 | segment alignment to 1. | |
900 | ||
8992f0d7 | 901 | 2006-08-15 Thiemo Seufer <[email protected]> |
05bf9422 | 902 | Nigel Stephens <[email protected]> |
8992f0d7 TS |
903 | |
904 | * elf32-mips.c, elf64-mips.c, elfn32-mips.c | |
905 | (elf_backend_merge_symbol_attribute): Define. | |
906 | * elflink.c (elf_link_add_object_symbols): Merge only the ELF | |
907 | visibility flags. | |
908 | * elfxx-mips.c (_bfd_mips_elf_merge_symbol_attribute): New function. | |
909 | ||
4be041b2 | 910 | 2006-08-15 Thiemo Seufer <[email protected]> |
05bf9422 AM |
911 | Nigel Stephens <[email protected]> |
912 | David Ung <[email protected]> | |
4be041b2 TS |
913 | |
914 | * config.bfd: Add configurations for mips*el-sde-elf* and | |
915 | mips*-sde-elf*. | |
916 | ||
eb13e63f DD |
917 | 2006-08-14 DJ Delorie <[email protected]> |
918 | ||
919 | * elf-m10300.c (elf32_mn10300_link_hash_entry): Add value. | |
920 | (elf32_mn10300_count_hash_table_entries): New. | |
921 | (elf32_mn10300_list_hash_table_entries): New. | |
922 | (sort_by_value): New. | |
923 | (mn10300_elf_relax_section): Don't skip data sections; restrict | |
924 | code-specific tests to code-specific areas so that potential | |
925 | indirect calls can be detected. Check for multiple local symbols | |
926 | at the same address and merge their flags. | |
927 | (elf32_mn10300_link_hash_newfunc): Initialize value. | |
928 | ||
b59eed79 TS |
929 | 2006-08-14 Thiemo Seufer <[email protected]> |
930 | ||
931 | * elfxx-mips.c (_bfd_mips_elf_symbol_processing, | |
932 | _bfd_mips_elf_add_symbol_hook): Don't try to place small common TLS | |
933 | symbols in .scommon. | |
934 | ||
54938e2a TS |
935 | 2006-08-11 Thiemo Seufer <[email protected]> |
936 | ||
937 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Set | |
938 | sh_entsize only when sgot was already initialized. | |
939 | ||
f725025b DD |
940 | 2006-08-08 DJ Delorie <[email protected]> |
941 | ||
942 | * elf32-sh.c (sh_elf_relax_section): Allow for branches across | |
943 | non-moving .align directives. Preserve any DIR32 offset when | |
944 | converting bsr's to jsr's. | |
945 | ||
aa8a7074 AM |
946 | 2006-08-08 Alan Modra <[email protected]> |
947 | ||
948 | * elf64-ppc.c (ppc64_elf_build_stubs): Clear relbrlt reloc_count | |
949 | after stubs have been built. | |
950 | ||
527a23b8 NC |
951 | 2006-08-07 Nick Clifton <[email protected]> |
952 | ||
953 | * elf32-sh.c (vxworks_object_p): Only check for vxworks target | |
954 | vectors if they are going to be created. | |
955 | ||
7b12cedc NC |
956 | 2006-08-07 Nick Clifton <[email protected]> |
957 | ||
958 | * configure.in (bfd_elf32_shnbsd_vec): Fix typo. | |
959 | * configure: Regenerate. | |
960 | ||
0be038d6 NC |
961 | 2006-08-07 Nick Clifton <[email protected]> |
962 | ||
963 | * coff-arm.c (coff_arm_rtype_to_howto): Only check for ARM_SECREL | |
964 | relocation types if the target is ARM_WINCE. | |
965 | ||
f0927246 NC |
966 | 2006-08-05 Pedro Alves <[email protected]> |
967 | ||
968 | * bfd.c (bfd_get_sign_extend_vma): Add cases for pe-arm-little | |
969 | and pei-arm-little. | |
970 | * coff-arm.c (coff_arm_rtype_to_howto) [COFF_WITH_PE]: Handle | |
971 | ARM_SECREL. | |
972 | (coff_arm_reloc_type_lookup): Map BFD_RELOC_32_SECREL to | |
973 | ARM_SECREL. | |
974 | * pe-arm.c [COFF_SECTION_ALIGNMENT_ENTRIES]: Define. | |
975 | * pei-arm.c [TARGET_UNDERSCORE]: Define for ARM_WINCE like in | |
976 | pe-arm.c. | |
977 | [COFF_SECTION_ALIGNMENT_ENTRIES]: Define. | |
978 | ||
c17d87de NC |
979 | 2006-08-04 Marcelo Tosatti <[email protected]> |
980 | ||
981 | * elflink.c (elf_gc_sweep): If info.print_gc_sections is true, | |
982 | list removed sections to stderr. | |
983 | ||
55e6e397 RS |
984 | 2006-08-04 Richard Sandiford <[email protected]> |
985 | Kazu Hirata <[email protected]> | |
986 | Phil Edwards <[email protected]> | |
987 | Nathan Sidwell <[email protected]> | |
988 | ||
989 | * config.bfd (sh-*-vxworks): Use bfd_elf32_shvxworks_vec and | |
990 | bfd_elf32_shlvxworks_vec. | |
991 | * configure.in (bfd_elf32_sh64_vec): Add elf-vxworks.lo. | |
992 | (bfd_elf32_sh64l_vec, bfd_elf32_sh64lin_vec): Likewise. | |
993 | (bfd_elf32_sh64blin_vec, bfd_elf32_sh64lnbsd_vec): Likewise. | |
994 | (bfd_elf32_sh64nbsd_vec, bfd_elf32_sh_vec): Likewise. | |
995 | (bfd_elf32_shblin_vec, bfd_elf32_shl_vec): Likewise. | |
996 | (bfd_elf32_shl_symbian_vec, bfd_elf32_shlin_vec): Likewise. | |
997 | (bfd_elf32_shlnbsd_vec, bfd_elf32_shnbsd_vec): Likewise. | |
998 | (bfd_elf32_shlvxworks_vec, bfd_elf32_shvxworks_vec): New stanzas. | |
999 | * configure: Regenerate. | |
1000 | * Makefile.am: Regenerate dependencies. | |
1001 | * Makefile.in: Regenerate. | |
1002 | * elf-vxworks.c (elf_vxworks_gott_symbol_p): New function. | |
1003 | (elf_vxworks_add_symbol_hook): Use it. | |
1004 | (elf_vxworks_link_output_symbol_hook): Likewise. Use the hash | |
1005 | table entry to check for weak undefined symbols and to obtain | |
1006 | the original bfd. | |
1007 | (elf_vxworks_emit_relocs): Use target_index instead of this_idx. | |
1008 | * elf32-sh-relocs.h: New file, split from elf32-sh.c. | |
1009 | (R_SH_DIR32): Use SH_PARTIAL32 for the partial_inplace field, | |
1010 | SH_SRC_MASK32 for the src_mask field, and SH_ELF_RELOC for the | |
1011 | special_function field. | |
1012 | (R_SH_REL32): Use SH_PARTIAL32 and SH_SRC_MASK32 here too. | |
1013 | (R_SH_REL32, R_SH_TLS_GD_32, R_SH_TLS_LD_32): Likewise. | |
1014 | (R_SH_TLS_LDO_32, R_SH_TLS_IE_32, R_SH_TLS_LE_32): Likewise. | |
1015 | (R_SH_TLS_DTPMOD32, R_SH_TLS_DTPOFF32, R_SH_TLS_TPOFF32): Likewise. | |
1016 | (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT): Likewise. | |
1017 | (R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): Likewise. | |
1018 | (SH_PARTIAL32, SH_SRC_MASK32, SH_ELF_RELOC): Undefine at end of file. | |
1019 | * elf32-sh.c: Include elf32-vxworks.h. | |
1020 | (MINUS_ONE): Define. | |
1021 | (sh_elf_howto_table): Include elf32-sh-relocs.h with SH_PARTIAL32 | |
1022 | set to TRUE, SH_SRC_MASK32 set to 0xffffffff, and SH_ELF_RELOC set | |
1023 | to sh_elf_reloc. | |
1024 | (sh_vxworks_howto_table): New variable. Include elf32-sh-relocs.h | |
1025 | with SH_PARTIAL32 set to FALSE, SH_SRC_MASK32 set to 0, and | |
1026 | SH_ELF_RELOC set to bfd_elf_generic_reloc. | |
1027 | (vxworks_object_p, get_howto_table): New functions. | |
1028 | (sh_elf_reloc_type_lookup): Fix typo. Use get_howto_table. | |
1029 | (sh_elf_info_to_howto): Use get_howto_table. | |
1030 | (sh_elf_relax_section): Honor the partial_inplace field of the | |
1031 | R_SH_DIR32 howto. | |
1032 | (sh_elf_relax_delete_bytes): Likewise. | |
1033 | (elf_sh_plt_info): New structure. | |
1034 | (PLT_ENTRY_SIZE): Replace both definitions with... | |
1035 | (ELF_PLT_ENTRY_SIZE): ...this new macro, with separate definitions for | |
1036 | INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. | |
1037 | (elf_sh_plt0_entry_be): Update sizes of both definitions accordingly. | |
1038 | (elf_sh_plt0_entry_le): Likewise. | |
1039 | (elf_sh_plt_entry_be, elf_sh_plt_entry_le): Likewise. | |
1040 | (elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le): Likewise. | |
1041 | (elf_sh_plts): New structure, with separate definitions for | |
1042 | INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. | |
1043 | (elf_sh_plt0_entry): Delete both definitions. | |
1044 | (elf_sh_plt_entry, elf_sh_pic_plt_entry): Likewise. | |
1045 | (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset): Likewise. | |
1046 | (elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset): Likewise. | |
1047 | (elf_sh_plt_reloc_offset): Likewise. | |
1048 | (movi_shori_putval): Delete in favor of... | |
1049 | (install_plt_field): ...this new function, with separate definitions | |
1050 | for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. | |
1051 | (get_plt_info): New function, with separate definitions | |
1052 | for INCLUDE_SHMEDIA and !INCLUDE_SHMEDIA. | |
1053 | (elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset): Delete. | |
1054 | (VXWORKS_PLT_HEADER_SIZE, VXWORKS_PLT_ENTRY_SIZE): New macros. | |
1055 | (vxworks_sh_plt0_entry_be, vxworks_sh_plt0_entry_le): New constants. | |
1056 | (vxworks_sh_plt_entry_be, vxworks_sh_plt_entry_le): Likewise. | |
1057 | (vxworks_sh_pic_plt_entry_be, vxworks_sh_pic_plt_entry_le): Likewise. | |
1058 | (get_plt_index, get_plt_offset): New functions. | |
1059 | (elf_sh_link_hash_table): Add srelplt2, plt_info and vxworks_p fields. | |
1060 | (sh_elf_link_hash_table_create): Initialize them. | |
1061 | (sh_elf_create_dynamic_sections): Call | |
1062 | elf_vxworks_create_dynamic_sections for VxWorks. | |
1063 | (allocate_dynrelocs): Use htab->plt_info to get the size of PLT | |
1064 | entries. Allocate relocation entries in .rela.plt.unloaded if | |
1065 | generating a VxWorks executable. | |
1066 | (sh_elf_always_size_sections): New function. | |
1067 | (sh_elf_size_dynamic_sections): Extend .rela.plt handling to | |
1068 | .rela.plt.unloaded. | |
1069 | (sh_elf_relocate_section): Use get_howto_table. Honor | |
1070 | partial_inplace when calculating the addend for dynamic | |
1071 | relocations. Use get_plt_index. | |
1072 | (sh_elf_finish_dynamic_symbol): Use get_plt_index, install_plt_field | |
1073 | and htab->plt_info. Fill in the bra .plt offset for VxWorks | |
1074 | executables. Populate .rela.plt.unloaded. Do not make | |
1075 | _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. | |
1076 | (sh_elf_finish_dynamic_sections): Use install_plt_field and | |
1077 | htab->plt_info. Handle cases where there is no special PLT header. | |
1078 | Populate the first relocation in .rela.plt.unloaded and fix up | |
1079 | the remaining entries. | |
1080 | (sh_elf_plt_sym_val): Use get_plt_info. | |
1081 | (elf_backend_always_size_sections): Define. | |
1082 | (TARGET_BIG_SYM, TARGET_BIG_NAME): Override for VxWorks. | |
1083 | (TARGET_LITTLE_SYM, TARGET_BIG_SYM): Likewise. | |
1084 | (elf32_bed, elf_backend_want_plt_sym): Likewise. | |
1085 | (elf_symbol_leading_char, elf_backend_want_got_underscore): Likewise. | |
1086 | (elf_backend_grok_prstatus, elf_backend_grok_psinfo): Likewise. | |
1087 | (elf_backend_add_symbol_hook): Likewise. | |
1088 | (elf_backend_link_output_symbol_hook): Likewise. | |
1089 | (elf_backend_emit_relocs): Likewise. | |
1090 | (elf_backend_final_write_processing): Likewise. | |
1091 | (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): Likewise. | |
1092 | * targets.c (bfd_elf32_shlvxworks_vec): Declare. | |
1093 | (bfd_elf32_shvxworks_vec): Likewise. | |
1094 | (_bfd_target_vector): Include bfd_elf32_shlvxworks_vec and | |
1095 | bfd_elf32_shvxworks_vec. | |
1096 | ||
e33533a4 MK |
1097 | 2006-08-02 Mark Kettenis <[email protected]> |
1098 | ||
1099 | * configure.in (arm-*-openbsd*): Set COREFILE to netbsd-core.lo. | |
1100 | * configure: Regenerate. | |
1101 | ||
9d7cbccd NC |
1102 | 2006-08-02 Petr Salinger <[email protected]> |
1103 | ||
1104 | PR binutils/2983 | |
1105 | * elf64-x86-64.c: Add FreeBSD support. | |
1106 | (elf64_x86_64_fbsd_post_process_headers): New function. | |
1107 | * targets.c (_bfd_target_vector): Add bfd_elf64_x86_64_freebsd_vec. | |
1108 | * config.bfd (x64_64-*-freebsd*): Add bfd_elf64_x86_64_freebsd_vec | |
1109 | to the targ_selvecs. | |
1110 | * configure.in: Add entry for bfd_elf64_x86_64_freebsd_vec. | |
1111 | * configure: Regenerate. | |
1112 | ||
f72c3e6b AS |
1113 | 2006-07-26 Andreas Schwab <[email protected]> |
1114 | ||
1115 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Use rawsize if set. | |
1116 | ||
252e386e AM |
1117 | 2006-07-26 Alan Modra <[email protected]> |
1118 | ||
1119 | * elf.c (elf_modify_segment_map): Delete empty PT_LOAD segments. | |
1120 | * elf32-xtensa.c (elf_xtensa_modify_segment_map): Delete. | |
1121 | (define elf_backend_modify_segment_map): Don't define. | |
1122 | ||
2907b861 TS |
1123 | 2006-07-25 Thiemo Seufer <[email protected]> |
1124 | ||
1125 | * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Allow | |
1126 | linking of objects for compatible machine types. | |
1127 | ||
c000e262 TS |
1128 | 2006-07-25 Thiemo Seufer <[email protected]> |
1129 | ||
1130 | * elfxx-mips.c (mips_elf_next_relocation): Tighten check to test | |
1131 | also for same symbol. | |
1132 | ||
37caec6b TS |
1133 | 2006-07-25 Thiemo Seufer <[email protected]> |
1134 | ||
1135 | * elfxx-mips.c (mips_elf_calculate_relocation): Remove magic constant. | |
1136 | ||
ff15b240 NC |
1137 | 2006-07-24 Michael Wetherell <[email protected]> |
1138 | ||
1139 | * elf.c (bfd_section_from_shdr): Reject unrecognised OS-specific | |
1140 | sections only if the SHF_OS_NONCONFORMING flag is present. | |
1141 | ||
4e22f78d NC |
1142 | 2006-07-24 Nick Clifton <[email protected]> |
1143 | ||
1144 | PR ld/2729 | |
1145 | * peXXigen.c (_bfd_XXi_final_link_postscript): Check for the | |
1146 | existance of output sections before putting their entries into the | |
1147 | DataDictionary. | |
1148 | ||
35d3d567 TS |
1149 | 2006-07-20 Thiemo Seufer <[email protected]> |
1150 | ||
1151 | * elf32-mips.c (mips16_jump_reloc): Remove function. | |
1152 | (elf_mips16_howto_table_rel): Use _bfd_mips_elf_generic_reloc | |
1153 | instead of mips16_jump_reloc. | |
1154 | * elf64_mips.c, wlfn32-mips.c (mips16_jump_reloc): Remove function. | |
1155 | (elf_mips16_howto_table_rel, elf_mips16_howto_table_rela): Use | |
1156 | _bfd_mips_elf_generic_reloc instead of mips16_jump_reloc. | |
1157 | ||
5061a885 AM |
1158 | 2006-07-19 Alan Modra <[email protected]> |
1159 | ||
1160 | * bfd-in.h (enum notice_asneeded_action): Define. | |
1161 | * bfd-in2.h: Regenerate. | |
1162 | * elflink.c (elf_link_add_object_symbols): Call linker "notice" | |
1163 | function with NULL name for as-needed handling. | |
1164 | ||
16805f35 PB |
1165 | 2006-07-18 Paul Brook <[email protected]> |
1166 | ||
1167 | * bfd-in2.h: Regenerate. | |
1168 | * libbfd.h: Regenerate. | |
1169 | * reloc.c: Add BFD_RELOC_ARM_T32_ADD_IMM. | |
1170 | ||
e0764319 NC |
1171 | 2006-07-18 Nick Clifton <[email protected]> |
1172 | ||
1173 | * elfxx-mips.c (_bfd_mips_elf_common_definition): New function. | |
1174 | Consider SHN_MIPS_ACOMMON and SHN_MIPS_SCOMMON as being common | |
1175 | sections. | |
1176 | * elfxx-mips.h (_bfd_mips_elf_common_definition): Prototype. | |
1177 | ||
2ccdbfcc JJ |
1178 | 2006-07-14 Jakub Jelinek <[email protected]> |
1179 | ||
1180 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Fix cinfo.shift2 value. | |
1181 | ||
0b33793d MK |
1182 | 2006-07-14 Mark Kettenis <[email protected]> |
1183 | ||
1184 | * elflink.c (bfd_elf_size_dynsym_hash_dynstr): Move declarations | |
1185 | to the start of a block. | |
1186 | ||
230d6d81 NC |
1187 | 2006-07-13 Nick Clifton <[email protected]> |
1188 | ||
1189 | * coff-sh.c (_bfd_sh_align_load_span): Catch sh_insn_info() | |
1190 | returning a NULL value. | |
1191 | ||
d2dee3b2 L |
1192 | 2006-07-12 H.J. Lu <[email protected]> |
1193 | ||
1194 | PR ld/2884 | |
1195 | * elflink.c (_bfd_elf_merge_symbol): Copy the symbol info from | |
1196 | the old versioned dynamic definition to the new one with | |
1197 | non-default visibility. Hide the symbol if it is hidden or | |
1198 | internal. | |
1199 | ||
fb405f8a RS |
1200 | 2006-07-12 Matthew R. Dempsky <[email protected]> |
1201 | ||
1202 | * cpu-m68k.c (bfd_m68k_compatible): Handle CPU32. | |
1203 | ||
fdc90cb4 JJ |
1204 | 2006-07-10 Jakub Jelinek <[email protected]> |
1205 | ||
1206 | * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_GNU_HASH. | |
1207 | (bfd_section_from_shdr, elf_fake_sections, assign_section_numbers): | |
1208 | Handle SHT_GNU_HASH. | |
1209 | (special_sections_g): Include .gnu.hash section. | |
1210 | (bfd_elf_gnu_hash): New function. | |
1211 | * elf-bfd.h (bfd_elf_gnu_hash, _bfd_elf_hash_symbol): New prototypes. | |
1212 | (struct elf_backend_data): Add elf_hash_symbol method. | |
1213 | * elflink.c (_bfd_elf_link_create_dynamic_sections): Create .hash | |
1214 | only if info->emit_hash, create .gnu.hash section if | |
1215 | info->emit_gnu_hash. | |
1216 | (struct collect_gnu_hash_codes): New type. | |
1217 | (elf_collect_gnu_hash_codes, elf_renumber_gnu_hash_syms, | |
1218 | _bfd_elf_hash_symbol): New functions. | |
1219 | (compute_bucket_count): Don't compute HASHCODES array, instead add | |
1220 | that and NSYMS as arguments. Use bed->s->sizeof_hash_entry | |
1221 | instead of bed->s->arch_size / 8. Fix .hash size estimation. | |
1222 | When not optimizing, use the number of hashed symbols rather than | |
1223 | dynsymcount. | |
1224 | (bfd_elf_size_dynamic_sections): Only add DT_HASH if info->emit_hash, | |
1225 | and ADD DT_GNU_HASH if info->emit_gnu_hash. | |
1226 | (bfd_elf_size_dynsym_hash_dynstr): Size .hash only if info->emit_hash, | |
1227 | adjust compute_bucket_count caller. Create and populate .gnu.hash | |
1228 | section if info->emit_gnu_hash. | |
1229 | (elf_link_output_extsym): Only populate .hash section if | |
1230 | finfo->hash_sec != NULL. | |
1231 | (bfd_elf_final_link): Adjust assertion. Handle DT_GNU_HASH. | |
1232 | * elfxx-target.h (elf_backend_hash_symbol): Define if not yet defined. | |
1233 | (elfNN_bed): Add elf_backend_hash_symbol. | |
1234 | * elf64-x86-64.c (elf64_x86_64_hash_symbol): New function. | |
1235 | (elf_backend_hash_symbol): Define. | |
1236 | * elf32-i386.c (elf_i386_hash_symbol): New function. | |
1237 | (elf_backend_hash_symbol): Define. | |
1238 | ||
cfc9dfb1 NC |
1239 | 2006-07-05 Nick Clifton <[email protected]> |
1240 | ||
1241 | PR ld/2659 | |
1242 | * cofflink.c (_bfd_coff_link_input_bfd): Fix selection of aux | |
1243 | entry when multiple definitions of a symbol are encountered. | |
1244 | ||
10efb593 L |
1245 | 2006-06-30 H.J. Lu <[email protected]> |
1246 | ||
1247 | * elf32-i386.c (elf_i386_relocate_section): Use xchg %ax,%ax | |
1248 | instead of 2 nops. | |
1249 | * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise. | |
1250 | (elf64_x86_64_plt0_entry): Use nopl 0(%rax) instead of 4 nops. | |
1251 | ||
ebcfb3c0 JJ |
1252 | 2006-06-29 Jakub Jelinek <[email protected]> |
1253 | ||
1254 | PR ld/2513 | |
1255 | * elf32-i386.c (GOT_TLS_MASK, GOT_TLS_IE_IE, GOT_TLS_IE_GD, | |
1256 | GOT_TLS_IE_MASK, elf_i386_check_relocs, allocate_dynrelocs): Revert | |
1257 | 2006-04-08 changes. | |
1258 | (elf_i386_relocate_section): Likewise. For GD->IE transition | |
1259 | change subl into addl whenever tls_type is GOT_TLS_IE_POS. | |
1260 | ||
62d7a5f6 AM |
1261 | 2006-06-23 Alan Modra <[email protected]> |
1262 | ||
1263 | PR ld/2754 | |
1264 | * elf.c (bfd_elf_mkobject): Don't alloc if already done. Set | |
1265 | program_header_size to -1. | |
1266 | (_bfd_elf_map_sections_to_segments): Adjust program_header_size check. | |
1267 | (assign_file_positions_for_load_sections ): Likewise. | |
1268 | (_bfd_elf_sizeof_headers): Use saved program_header_size if | |
1269 | available. | |
1270 | * elf32-arm.c (elf32_arm_mkobject): Call bfd_elf_mkobject, don't | |
1271 | alloc if already done. | |
1272 | * elf32-i386.c (elf_i386_mkobject): Likewise. | |
1273 | * elf32-ppc.c (ppc_elf_mkobject): Likewise. | |
1274 | * elf32-s390.c (elf_s390_mkobject): Likewise. | |
1275 | * elf32-sh.c (sh_elf_mkobject): Likewise. | |
1276 | * elf64-alpha.c (elf64_alpha_mkobject): Likewise. | |
1277 | * elf64-ppc.c (ppc64_elf_mkobject): Likewise. | |
1278 | * elf64-s390.c (elf_s390_mkobject): Likewise. | |
1279 | * elf64-x86-64.c (elf64_x86_64_mkobject): Likewise. | |
1280 | * elfxx-sparc.c (_bfd_sparc_elf_mkobject): Likewise. | |
1281 | ||
6a4a0940 JJ |
1282 | 2006-06-20 Jakub Jelinek <[email protected]> |
1283 | ||
1284 | * elflink.c (elf_link_add_object_symbols): Don't create .tcommon | |
1285 | section for relocatable link. | |
1286 | ||
e36284ab AM |
1287 | 2006-06-21 Alan Modra <[email protected]> |
1288 | ||
1289 | * elf-bfd.h (struct elf_backend_data): Add | |
1290 | elf_backend_modify_program_headers. | |
1291 | * elfxx-target.h (elf_backend_modify_program_headers): Define. | |
1292 | (elfNN_bed): Init new field. | |
1293 | * elf.c (elf_modify_segment_map): Remove comment. | |
1294 | (assign_file_positions_for_load_sections): Only call | |
1295 | elf_modify_segment_map for objcopy/strip. | |
1296 | (assign_file_positions_except_relocs): Call | |
1297 | elf_backend_modify_program_headers. | |
1298 | * elf32-frv.c (elf32_frvfdpic_always_size_sections): Don't make | |
1299 | .stack section. | |
1300 | (elf32_frvfdpic_modify_segment_map): Delete. | |
1301 | (elf32_frvfdpic_modify_program_headers): New. | |
1302 | (elf_backend_modify_segment_map): Don't define. | |
1303 | (elf_backend_modify_program_headers): Define. | |
1304 | * elf32-bfin.c (elf32_bfinfdpic_always_size_sections): Don't make | |
1305 | .stack section. | |
1306 | (elf32_bfinfdpic_modify_segment_map): Delete. | |
1307 | (elf32_bfinfdpic_modify_program_headers): New. | |
1308 | (elf_backend_modify_segment_map): Don't define. | |
1309 | (elf_backend_modify_program_headers): Define. | |
1310 | * elfxx-ia64.c (elfNN_ia64_modify_program_headers): New function. | |
1311 | Split out from.. | |
1312 | (elfNN_ia64_modify_segment_map): ..here. | |
1313 | (elf_backend_modify_program_headers): Define. | |
1314 | ||
ed66ec07 JJ |
1315 | 2006-06-20 Jakub Jelinek <[email protected]> |
1316 | ||
1317 | * bfd.c (bfd_record_phdr): Clear p_align and p_align_valid fields. | |
1318 | * elf.c (_bfd_elf_link_hash_table_init): Clear hplt field. | |
1319 | ||
8ded5a0f AM |
1320 | 2006-06-20 Alan Modra <[email protected]> |
1321 | ||
1322 | * elf-bfd.h: Formatting. | |
1323 | (_bfd_elf_map_sections_to_segments): Declare. | |
1324 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame_hdr): Don't | |
1325 | clear program_header_size. | |
1326 | * elf.c (get_program_header_size): Move. Don't use or set saved | |
1327 | program_header_size here. | |
1328 | (elf_modify_segment_map): New function. Split out from.. | |
1329 | (assign_file_positions_for_load_sections): ..here. Assert | |
1330 | header size is correct. Remove dead code. | |
1331 | (_bfd_elf_map_sections_to_segments): Rename from | |
1332 | map_sections_to_segments. Make global. Use get_program_header_size | |
1333 | when we need estimate of header size. Call elf_modify_segment_map. | |
1334 | Set program_header_size. | |
1335 | (print_segment_map): Delete. | |
1336 | (_bfd_elf_sizeof_headers): If segment_map available, get the | |
1337 | actual size. | |
1338 | * elf32-arm.c (elf32_arm_symbian_modify_segment_map): Make safe | |
1339 | for calling more than once. | |
1340 | * elf32-bfin.c (elf32_bfinfdpic_modify_segment_map): Likewise. | |
1341 | * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Likewise. | |
1342 | * elfxx-mips.c (_bfd_mips_elf_modify_segment_map): Likewise. | |
1343 | * elf32-i370.c (elf_backend_add_symbol_hook): Delete. | |
1344 | (elf_backend_additional_program_headers): Delete. | |
1345 | (elf_backend_modify_segment_map): Delete. | |
1346 | * elf64-hppa.c (elf64_hppa_modify_segment_map): Convert to ISO C. | |
1347 | * elfxx-ia64.c (elfNN_ia64_modify_segment_map): Likewise. | |
1348 | * doc/bfdint.texi: Delete SIZEOF_HEADERS difficulties. | |
1349 | ||
0fa3dcad PB |
1350 | 2006-06-19 Vladimir Prus <[email protected]> |
1351 | ||
1352 | * elf32-arm.c (elf32_arm_swap_symbol_out): Don't set low | |
1353 | bit for undefined symbols. | |
1354 | ||
a6b96beb AM |
1355 | 2006-06-19 Alan Modra <[email protected]> |
1356 | ||
1357 | * elf-bfd.h (struct elf_backend_data): Add bfd_link_info pointer | |
1358 | parameter. | |
1359 | (_bfd_elf_sizeof_headers): Replace bfd_boolean param with | |
1360 | bfd_link_info pointer. | |
1361 | * targets.c (struct bfd_target <_bfd_sizeof_headers>): Likewise. | |
1362 | * bfd.c (bfd_sizeof_headers): Tweak param name. | |
1363 | * aout-adobe.c (aout_adobe_sizeof_headers): Adjust. | |
1364 | * aoutx.h (NAME (aout, sizeof_headers)): Adjust. | |
1365 | * binary.c (binary_sizeof_headers): Adjust. | |
1366 | * bout.c (b_out_sizeof_headers): Adjust. | |
1367 | * coff-rs6000.c (_bfd_xcoff_sizeof_headers): Adjust. | |
1368 | * coff64-rs6000.c (xcoff64_sizeof_headers): Adjust. | |
1369 | * coffgen.c (coff_sizeof_headers): Adjust. | |
1370 | * ecoff.c (_bfd_ecoff_sizeof_headers): Adjust. | |
1371 | (ecoff_compute_section_file_positions): Adjust. | |
1372 | (_bfd_ecoff_write_object_contents): Adjust. | |
1373 | * elf.c (get_program_header_size, _bfd_elf_sizeof_headers): Adjust. | |
1374 | * elf32-arm.c (elf32_arm_additional_program_headers): Adjust. | |
1375 | * elf32-i370.c (elf_backend_additional_program_headers): Adjust. | |
1376 | * elf32-ppc.c (ppc_elf_additional_program_headers): Adjust. | |
1377 | * elf64-hppa.c (elf64_hppa_additional_program_headers): Adjust. | |
1378 | * elf64-x86-64.c (elf64_x86_64_additional_program_headers): Adjust. | |
1379 | * elfxx-ia64.c (elfNN_ia64_additional_program_headers): Adjust. | |
1380 | * elfxx-mips.c (_bfd_mips_elf_additional_program_headers): Adjust. | |
1381 | * elfxx-mips.h (_bfd_mips_elf_additional_program_headers): Adjust. | |
1382 | * i386msdos.c: Convert to ISO C. | |
1383 | (msdos_sizeof_headers): Adjust. | |
1384 | * i386os9k.c: Convert to ISO C. | |
1385 | (os9k_sizeof_headers): Adjust. | |
1386 | * ieee.c (ieee_sizeof_headers): Adjust. | |
1387 | * ihex.c (ihex_sizeof_headers): Adjust. | |
1388 | * libaout.h (NAME (aout, sizeof_headers)): Adjust. | |
1389 | * libbfd-in.h (_bfd_nolink_sizeof_headers): Adjust. | |
1390 | * libcoff-in.h (coff_sizeof_headers): Adjust. | |
1391 | * libecoff.h (_bfd_ecoff_sizeof_headers): Adjust. | |
1392 | * mach-o.c (bfd_mach_o_sizeof_headers): Adjust. | |
1393 | * mmo.c (mmo_sizeof_headers): Adjust. | |
1394 | * oasys.c (oasys_sizeof_headers): Adjust. | |
1395 | * pdp11.c (NAME (aout, sizeof_headers)): Adjust. | |
1396 | * pef.c (bfd_pef_sizeof_headers): Adjust. | |
1397 | * ppcboot.c (ppcboot_sizeof_headers): Adjust. | |
1398 | * som.c (som_sizeof_headers): Adjust. | |
1399 | * srec.c (srec_sizeof_headers): Adjust. | |
1400 | * tekhex.c (tekhex_sizeof_headers): Adjust. | |
1401 | * versados.c (versados_sizeof_headers): Adjust. | |
1402 | * vms.c (vms_sizeof_headers): Adjust. | |
1403 | * xcoff-target.h (_bfd_xcoff_sizeof_headers): Adjust. | |
1404 | * xsym.c (bfd_sym_sizeof_headers): Adjust. | |
1405 | * xsym.h (bfd_sym_sizeof_headers): Adjust. | |
1406 | * bfd-in2.h: Regenerate. | |
1407 | * libbfd.h: Regenerate. | |
1408 | * libcoff.h: Regenerate. | |
1409 | ||
4962c51a MS |
1410 | 2006-06-15 Mark Shinwell <[email protected]> |
1411 | ||
1412 | * bfd-in2.h: Regenerate. | |
1413 | * elf32-arm.c (R_ARM_ALU_PC_G0_NC, R_ARM_ALU_PC_G0, | |
1414 | R_ARM_ALU_PC_G1_NC, R_ARM_ALU_PC_G1, R_ARM_ALU_PC_G2, | |
1415 | R_ARM_LDR_PC_G1, R_ARM_LDR_PC_G2, R_ARM_LDRS_PC_G0, | |
1416 | R_ARM_LDRS_PC_G1, R_ARM_LDRS_PC_G2, R_ARM_LDC_PC_G0, | |
1417 | R_ARM_LDC_PC_G1, R_ARM_LDC_PC_G2, R_ARM_ALU_SB_G0_NC, | |
1418 | R_ARM_ALU_SB_G0, R_ARM_ALU_SB_G1_NC, R_ARM_ALU_SB_G1, | |
1419 | R_ARM_ALU_SB_G2, R_ARM_LDR_SB_G0, R_ARM_LDR_SB_G1, | |
1420 | R_ARM_LDR_SB_G2, R_ARM_LDRS_SB_G0, R_ARM_LDRS_SB_G1, | |
1421 | R_ARM_LDRS_SB_G2, R_ARM_LDC_SB_G0, R_ARM_LDC_SB_G1, | |
1422 | R_ARM_LDC_SB_G2): New relocation types. | |
1423 | (R_ARM_PC13): Rename to AAELF name R_ARM_LDR_PC_G0 and | |
1424 | adjust HOWTO entry to be consistent with R_ARM_LDR_PC_G1 | |
1425 | and friends. | |
1426 | (elf32_arm_howto_table_3): Delete; contents merged into | |
1427 | elf32_arm_howto_table_2. | |
1428 | (elf32_arm_howto_from_type): Adjust correspondingly. | |
1429 | (elf32_arm_reloc_map): Extend with the above relocations. | |
1430 | (calculate_group_reloc_mask): New function. | |
1431 | (identify_add_or_sub): New function. | |
1432 | (elf32_arm_final_link_relocate): Support for the above | |
1433 | relocations. | |
1434 | * reloc.c: Add enumeration entries for BFD_RELOC_ARM_... | |
1435 | codes to correspond to the above relocations. | |
1436 | ||
cc3e26be RS |
1437 | 2006-06-14 Richard Sandiford <[email protected]> |
1438 | ||
1439 | * elf32-m68k.c (elf_m68k_plt_info): New structure. | |
1440 | (elf_m68k_plt0_entry): Add R_68K_PC32-style in-place addends. | |
1441 | (elf_m68k_plt_entry): Likewise. | |
1442 | (elf_m68k_plt_info): New table. | |
1443 | (CFV4E_PLT_ENTRY_SIZE): Rename to... | |
1444 | (ISAB_PLT_ENTRY_SIZE): ...this. | |
1445 | (CFV4E_FLAG): Delete. | |
1446 | (elf_cfv4e_plt0_entry): Rename to... | |
1447 | (elf_isab_plt0_entry): ...this. Adjust comments. Use (-6,%pc,%d0) | |
1448 | for the second instruction too. | |
1449 | (elf_cfv4e_plt_entry): Rename to... | |
1450 | (elf_isab_plt_entry): ...this. Adjust comments and use (-6,%pc,%d0). | |
1451 | (elf_isab_plt_info): New table. | |
1452 | (CPU32_FLAG): Delete. | |
1453 | (PLT_CPU32_ENTRY_SIZE): Rename to... | |
1454 | (CPU32_PLT_ENTRY_SIZE): ...this. | |
1455 | (elf_cpu32_plt0_entry): Update bounds accordingly. Add R_68K_PC32- | |
1456 | style in-place addends. | |
1457 | (elf_cpu32_plt_entry): Likewise. | |
1458 | (elf_cpu32_plt_info): New table. | |
1459 | (elf_m68k_link_hash_table): Add a plt_info field. | |
1460 | (elf_m68k_link_hash_table_create): Initialize it. | |
1461 | (elf_m68k_get_plt_info): New function. | |
1462 | (elf_m68k_always_size_sections): Likewise. | |
1463 | (elf_m68k_adjust_dynamic_symbol): Use the plt_info hash table field. | |
1464 | (elf_m68k_install_pc32): New function. | |
1465 | (elf_m68k_finish_dynamic_symbol): Factor code using plt_info and | |
1466 | elf_m68k_install_pc32. | |
1467 | (elf_m68k_finish_dynamic_sections): Likewise. | |
1468 | (elf_m68k_plt_sym_val): Use elf_m68k_get_plt_info. | |
1469 | (elf_backend_always_size_sections): Define. | |
1470 | ||
4f87808c AM |
1471 | 2006-06-14 Alan Modra <[email protected]> |
1472 | ||
1473 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
1474 | struct bfd_hash_table table, size and count fields for | |
1475 | as-needed libs. | |
1476 | ||
7fd91fe0 TS |
1477 | 2006-06-12 Thiemo Seufer <[email protected]> |
1478 | ||
1479 | * elf32-mips.c: Expand comment about ABI-mandated pagesize values. | |
1480 | (ELF_MAXPAGESIZE, ELF_COMMONPAGESIZE): define in a more obvious way. | |
1481 | * elf64-mips.c, elfn32-mips.c (ELF_MAXPAGESIZE): Fix value for IRIX6. | |
1482 | Delete old comments. | |
1483 | (ELF_COMMONPAGESIZE): Define in a more obvious way. | |
1484 | ||
d07676f8 NC |
1485 | 2006-06-12 Nick Clifton <[email protected]> |
1486 | ||
1487 | PR binutils/2735 | |
1488 | * elflink.c (elf_link_add_object_symbols): Fix the warning message | |
1489 | about mismatched alignments to allow for the case where the common | |
1490 | alignment has been deduced from the section alignment. | |
1491 | * bfd.c (_bfd_default_error_handler): Update comment to explain | |
1492 | why bfd and asection varargs are out of order. Explicitly catch | |
1493 | and abort on NULL bfd and asection arguments. | |
1494 | ||
5108fc1b RS |
1495 | 2006-06-11 Richard Sandiford <[email protected]> |
1496 | Thiemo Seufer <[email protected]> | |
1497 | ||
1498 | * elfxx-mips.c (mips_elf_link_hash_table): Add function_stub_size. | |
1499 | (STUB_ORI): New macro. | |
1500 | (STUB_LI16U): Fix formatting. | |
1501 | (MIPS_FUNCTION_STUB_SIZE): Delete. | |
1502 | (MIPS_FUNCTION_STUB_MAX_SIZE): Likewise. | |
1503 | (MIPS_FUNCTION_STUB_NORMAL_SIZE): New macro. | |
1504 | (MIPS_FUNCTION_STUB_BIG_SIZE): Likewise. | |
1505 | (_bfd_mips_elf_adjust_dynamic_symbol): Use htab->function_stub_size | |
1506 | instead of MIPS_FUNCTION_STUB_SIZE. | |
1507 | (count_section_dynsyms): New function, split out from | |
1508 | _bfd_mips_elf_final_link. | |
1509 | (_bfd_mips_elf_always_size_sections): Get a worst-case estimate | |
1510 | of the number of dynamic symbols needed and use it to set up | |
1511 | function_stub_size. Use function_stub_size rather than | |
1512 | MIPS_FUNCTION_STUB_SIZE to determine the size of the stub section. | |
1513 | Use 16-byte stubs for 0x10000 dynamic symbols. | |
1514 | (_bfd_mips_elf_size_dynamic_sections): Use htab->function_stub_size | |
1515 | instead of MIPS_FUNCTION_STUB_SIZE. Fix formatting. | |
1516 | (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Change the | |
1517 | size of the stub buffer from MIPS_FUNCTION_STUB_MAX_SIZE to | |
1518 | MIPS_FUNCTION_STUB_BIG_SIZE. Tweak the check for unhandled dynindxes. | |
1519 | Use MIPS_FUNCTION_STUB_BIG_SIZE rather than a hard-coded 20. | |
1520 | Use STUB_ORI rather than STUB_LI16U for big stubs. | |
1521 | (_bfd_mips_elf_link_hash_table_create): Initialize function_stub_size. | |
1522 | (_bfd_mips_elf_final_link): Use count_section_dynsyms. | |
1523 | ||
f38c2df5 TS |
1524 | 2006-06-09 David Ung <[email protected]> |
1525 | ||
1526 | * bfd/elfxx-mips.c (mips_elf_calculate_relocation): Fix mode for stub | |
1527 | calling relocations. | |
1528 | ||
3d6746ca DD |
1529 | 2006-06-08 David Daney <[email protected]> |
1530 | ||
1531 | * elfxx-mips.c (STUB_LI16): Removed. | |
1532 | (STUB_LUI): New macro. | |
1533 | (STUB_LI16U): Ditto. | |
1534 | (STUB_LI16S): Ditto. | |
1535 | (MIPS_FUNCTION_STUB_SIZE): Rewrote to take info parameter. | |
1536 | (_bfd_mips_elf_adjust_dynamic_symbol): Pass info parameter to | |
1537 | MIPS_FUNCTION_STUB_SIZE. | |
1538 | (_bfd_mips_elf_always_size_sections): Ditto. | |
1539 | (_bfd_mips_elf_size_dynamic_sections): Ditto. | |
1540 | (_bfd_mips_elf_finish_dynamic_sections): Ditto. | |
1541 | (_bfd_mips_elf_finish_dynamic_symbol): Rewrote stub generation | |
1542 | to allow larger symbol table indexes. | |
1543 | ||
6648b7cf JM |
1544 | 2006-06-07 Joseph S. Myers <[email protected]> |
1545 | ||
1546 | * po/Make-in (pdf, ps): New dummy targets. | |
1547 | ||
d3fd4074 AM |
1548 | 2006-06-06 Alan Modra <[email protected]> |
1549 | ||
0bef4ce5 AM |
1550 | * hash.c (bfd_hash_lookup): Correct stray line. |
1551 | ||
d3fd4074 AM |
1552 | * elf.c (_bfd_elf_init_private_section_data): Comment typo. |
1553 | (elfcore_grok_nto_status): Use long instead of pid_t. | |
1554 | (elfcore_grok_nto_regs, elfcore_grok_nto_note): Likewise. | |
1555 | ||
4cfe2c59 DJ |
1556 | 2006-06-05 Daniel Jacobowitz <[email protected]> |
1557 | ||
1558 | * po/Make-in (top_builddir): Define. | |
1559 | ||
7ff1a5b5 AM |
1560 | 2006-06-05 Alan Modra <[email protected]> |
1561 | ||
1562 | * Makefile.am: Run "make dep-am". | |
1563 | * Makefile.in: Regenerate. | |
1564 | * config.in: Regenerate. | |
1565 | ||
f0b5bb34 AM |
1566 | 2006-06-02 Alan Modra <[email protected]> |
1567 | H.J. Lu <[email protected]> | |
1568 | ||
1569 | PR ld/2723 | |
1570 | * elflink.c (bfd_elf_final_link): Don't output section symbols | |
1571 | for special ELF sections. | |
1572 | ||
117ed4f8 AM |
1573 | 2006-06-01 Alan Modra <[email protected]> |
1574 | ||
1575 | * stabs.c (_bfd_link_section_stabs): Use bfd_make_section*_with_flags | |
1576 | instead of bfd_make_section*. | |
1577 | * aix386-core.c: Likewise. | |
1578 | * aix5ppc-core.c: Likewise. | |
1579 | * aout-adobe.c: Likewise. | |
1580 | * aoutf1.h: Likewise. | |
1581 | * binary.c: Likewise. | |
1582 | * cisco-core.c: Likewise. | |
1583 | * coff-arm.c: Likewise. | |
1584 | * coff-h8300.c: Likewise. | |
1585 | * elf.c: Likewise. | |
1586 | * elf32-bfin.c: Likewise. | |
1587 | * elf32-m32c.c: Likewise. | |
1588 | * hppabsd-core.c: Likewise. | |
1589 | * hpux-core.c: Likewise. | |
1590 | * i386linux.c: Likewise. | |
1591 | * ieee.c: Likewise. | |
1592 | * ihex.c: Likewise. | |
1593 | * irix-core.c: Likewise. | |
1594 | * lynx-core.c: Likewise. | |
1595 | * m68klinux.c: Likewise. | |
1596 | * mach-o.c: Likewise. | |
1597 | * netbsd-core.c: Likewise. | |
1598 | * nlmcode.h: Likewise. | |
1599 | * opncls.c: Likewise. | |
1600 | * osf-core.c: Likewise. | |
1601 | * peXXigen.c: Likewise. | |
1602 | * ppcboot.c: Likewise. | |
1603 | * ptrace-core.c: Likewise. | |
1604 | * rs6000-core.c: Likewise. | |
1605 | * sco5-core.c: Likewise. | |
1606 | * sparclinux.c: Likewise. | |
1607 | * srec.c: Likewise. | |
1608 | * sunos.c: Likewise. | |
1609 | * trad-core.c: Likewise. | |
1610 | * xcofflink.c: Likewise. | |
1611 | * xsym.c: Likewise. | |
1612 | ||
20e95c23 DJ |
1613 | 2006-05-31 Daniel Jacobowitz <[email protected]> |
1614 | ||
1615 | * Makefile.am (INCLUDES): Use @INCINTL@. | |
1616 | * acinclude.m4: Include new gettext macros. | |
1617 | * configure.in: Use ZW_GNU_GETTEXT_SISTER_DIR and AM_PO_SUBDIRS. | |
1618 | Manually substitute POFILES and GMOFILES. | |
1619 | * Makefile.in, aclocal.m4, configure, doc/Makefile.in: Regenerated. | |
1620 | ||
24718e3b L |
1621 | 2006-05-30 H.J. Lu <[email protected]> |
1622 | ||
1623 | * bfd.c (bfd_emul_get_maxpagesize): New. | |
1624 | (bfd_elf_set_pagesize): Likewise. | |
1625 | (bfd_emul_set_maxpagesize): Likewise. | |
1626 | (bfd_emul_get_commonpagesize): Likewise. | |
1627 | (bfd_emul_set_commonpagesize): Likewise. | |
1628 | * bfd-in2.h: Regenerated. | |
1629 | ||
1630 | * elf-bfd.h (elf_backend_data): Add commonpagesize. | |
1631 | (xvec_get_elf_backend_data): New. | |
1632 | (get_elf_backend_data): Use xvec_get_elf_backend_data. | |
1633 | ||
1634 | * elf32-arm.c (elf32_arm_vxworks_bed): Remove const. | |
1635 | * elfxx-target.h (elfNN_bed): Likewise. | |
1636 | ||
1637 | * elf32-arm.c (ELF_COMMONPAGESIZE): Defined. | |
1638 | * elf32-mips.c (ELF_COMMONPAGESIZE): Likewise. | |
1639 | * elf32-ppc.c (ELF_COMMONPAGESIZE): Likewise. | |
1640 | * elf32-sh.c (ELF_COMMONPAGESIZE): Likewise. | |
1641 | * elf32-sh64.c (ELF_COMMONPAGESIZE): Likewise. | |
1642 | * elf32-sparc.c (ELF_COMMONPAGESIZE): Likewise. | |
1643 | * elf64-alpha.c (ELF_COMMONPAGESIZE): Likewise. | |
1644 | * elf64-ppc.c (ELF_COMMONPAGESIZE): Likewise. | |
1645 | * elf64-sparc.c (ELF_COMMONPAGESIZE): Likewise. | |
1646 | * elf64-x86-64.c (ELF_COMMONPAGESIZE): Likewise. | |
1647 | * elfn32-mips.c (ELF_COMMONPAGESIZE): Likewise. | |
1648 | * elfxx-ia64.c (ELF_COMMONPAGESIZE): Likewise. | |
1649 | ||
1650 | * elfxx-target.h (ELF_COMMONPAGESIZE): Define if not defined. | |
1651 | (elfNN_bed): Initialize commonpagesize with ELF_COMMONPAGESIZE. | |
1652 | ||
1653 | * targets.c (bfd_find_target): Support NULL abfd. | |
1654 | ||
eebf07fb NC |
1655 | 2006-05-30 Nick Clifton <[email protected]> |
1656 | ||
1657 | * po/es.po: Updated Spanish translation. | |
1658 | ||
3f570048 AM |
1659 | 2006-05-27 Alan Modra <[email protected]> |
1660 | H.J. Lu <[email protected]> | |
1661 | ||
1662 | * elf.c (assign_file_positions_for_load_sections): Retrieve | |
1663 | maxpagesize from m->p_align if it is valid. Set p_vaddr, | |
1664 | p_paddr and p_align earlier. Revert 2006-05-19 change to p_align. | |
1665 | (copy_elf_program_header): Copy p_align. Set p_align_valid. | |
1666 | ||
2043964e L |
1667 | 2006-05-26 H.J. Lu <[email protected]> |
1668 | ||
1669 | * elf64-x86-64.c (ELF_MINPAGESIZE): Changed to 0x1000. | |
1670 | ||
1671 | 2006-05-25 H.J. Lu <[email protected]> | |
1672 | ||
1673 | * elf64-x86-64.c (ELF_MINPAGESIZE): Set to 0x100000. | |
1674 | ||
f7661549 L |
1675 | 2006-05-25 H.J. Lu <[email protected]> |
1676 | ||
1677 | * elf64-x86-64.c (ELF_MAXPAGESIZE): Updated to 0x200000. | |
1678 | ||
5372391b AM |
1679 | 2006-05-26 Alan Modra <[email protected]> |
1680 | ||
1681 | * elf.c (sym_is_global): Return a bfd_boolean. | |
1682 | (ignore_section_sym): New function. | |
1683 | (elf_map_symbols): Use ignore_section_sym to discard some syms. | |
1684 | (_bfd_elf_symbol_from_bfd_symbol): Ensure section belongs to | |
1685 | bfd before using elf_section_syms. | |
1686 | ||
6566b43c L |
1687 | 2006-05-25 H.J. Lu <[email protected]> |
1688 | ||
1689 | * config.bfd: (sh-*-linux*): Treat as 64bit target. | |
1690 | (sh*l*-*-netbsdelf*): Likewise. | |
1691 | (sh-*-netbsdelf*): Likewise. | |
1692 | (shl*-*-elf*): Likewise. | |
1693 | (sh[1234]l*-*-elf*): Likewise. | |
1694 | (sh3el*-*-elf*): Likewise. | |
1695 | (shl*-*-kaos*): Likewise. | |
1696 | (sh-*-elf*): Likewise. | |
1697 | (sh[1234]*-elf*): Likewise. | |
1698 | (sh-*-rtems*): Likewise. | |
1699 | (sh-*-kaos*): Likewise. | |
1700 | ||
314e9a4e L |
1701 | 2006-05-24 H.J. Lu <[email protected]> |
1702 | ||
1703 | PR ld/1485 | |
1704 | * config.bfd: Set want64 to true if 64bit bfd is used. | |
1705 | (sh-*-linux*): Use targ64_selvecs for 64bit targets. | |
1706 | (sh*l*-*-netbsdelf*): Likewise. | |
1707 | (sh-*-netbsdelf*): Likewise. | |
1708 | (shl*-*-elf*): Likewise. | |
1709 | (sh[1234]l*-*-elf*): Likewise. | |
1710 | (sh3el*-*-elf*): Likewise. | |
1711 | (shl*-*-kaos*): Likewise. | |
1712 | (sh-*-elf*): Likewise. | |
1713 | (sh[1234]*-elf*): Likewise. | |
1714 | (sh-*-rtems*): Likewise. | |
1715 | (sh-*-kaos*): Likewise. | |
1716 | ||
4e617b1e PB |
1717 | 2006-05-24 Paul Brook <[email protected]> |
1718 | ||
1719 | * elf-bfd.h (elf_backend_data): Add elf_backend_output_arch_local_syms | |
1720 | * elf32-arm.c (output_arch_syminfo): Define. | |
1721 | (elf32_arm_ouput_plt_map_sym, elf32_arm_output_plt_map, | |
1722 | elf32_arm_output_arch_local_syms): New functions. | |
1723 | (elf_backend_output_arch_local_syms): Define. | |
1724 | * elflink.c (bfd_elf_final_link): Call | |
1725 | elf_backend_output_arch_local_syms. | |
1726 | * elfxx-target.h (elf_backend_output_arch_local_syms): Provide default | |
1727 | definition. | |
1728 | (elfNN_bed): Add elf_backend_output_arch_local_syms. | |
1729 | ||
52ab56c2 PB |
1730 | 2006-05-24 Paul Brook <[email protected]> |
1731 | ||
1732 | * elf32-arm.c (put_arm_insn, put_thumb_insn): New functions. | |
1733 | (elf32_thumb_to_arm_stub, elf32_arm_to_thumb_stub, | |
1734 | elf32_arm_finish_dynamic_symbol): Use them. | |
1735 | ||
9b52905e NC |
1736 | 2006-05-24 Carlos O'Donell <[email protected]> |
1737 | Randolph Chung <[email protected]> | |
05bf9422 | 1738 | |
9b52905e NC |
1739 | * elf-hppa.h (reloc_hppa_howto_table): Check bitfield for |
1740 | TPREL21L/TPREL14R relocations. Handle LTOFF_TP14R relocations. | |
1741 | Add handling for TLS relocations. | |
1742 | (elf_hpp_reloc_final_type): Handle TLS relocs. | |
1743 | * elf32-hppa.c: Add authors for cleanup and TLS support. | |
1744 | (hppa_elf_local_got_tls_type, hh_name, eh_name): Define. | |
1745 | (elf32_hppa_link_hash_entry): Add tls_type. | |
1746 | (elf32_hppa_link_hash_table): Add tld_ldm_got. | |
1747 | (hppa_link_has_newfunc): Set tls_type. | |
1748 | (elf32_hppa_link_hash_table_create): Set tls_ldm_got refcount. | |
1749 | (hppa_stub_name): Use hh_name macro. | |
1750 | (elf32_hppa_copy_indirect_symbol): Copy TLS information. | |
1751 | (elf32_hppa_check_relocs): Call elf32_hppa_optimized_tls_reloc. | |
1752 | Handle TLS relocs. | |
05bf9422 | 1753 | (elf32_hppa_gc_sweep_hook): Likewise. |
9b52905e NC |
1754 | (allocate_dynrelocs): Handle TLS relocs. |
1755 | (elf32_hppa_size_dynamic_sections): Count space required by TLS | |
1756 | relocs. Use hh_name macro. | |
1757 | (dtpoff_base): New function. | |
1758 | (tpoff): Likewise. | |
1759 | (elf32_hppa_optimized_tls_reloc): Likewise. | |
1760 | (final_link_relocate): Handle TLS relocs. | |
1761 | (elf32_hppa_relocate_section): Handle TLS relocs. Use eh_name | |
1762 | and hh_name macros. | |
1763 | (elf32_hppa_finish_dynamic_symbol): Setup TLS got entries. Use | |
1764 | hh_name and eh_name macros. | |
1765 | (elf32_hppa_reloc_type_clas): Handle TLS relocs. | |
1766 | ||
05bf9422 | 1767 | 2006-05-24 Bjoern Haase <[email protected]> |
28c9d252 | 1768 | |
05bf9422 | 1769 | * archures.c: Add bfd_mach_avr6. |
28c9d252 NC |
1770 | * cpu-avr.c: Likewise. |
1771 | * reloc.c (BFD_RELOC_AVR_LO8_LDI_GS, BFD_RELOC_AVR_HI8_LDI_GS): | |
1772 | New relocations. | |
05bf9422 | 1773 | * libbfd.h: Regenerate. |
28c9d252 NC |
1774 | * bfd-in2.h:Regenerate. |
1775 | * elf32-avr.h: New file. Protoypes for functions accessed from ld. | |
1776 | * elf32-avr.c: Add elf32-avr.h to include list. | |
1777 | (elf32_avr_stub_hash_entry): New function. | |
1778 | (elf32_avr_link_hash_table): New struct. | |
1779 | (avr_link_hash_table): Likewise. | |
1780 | (avr_stub_hash_entry): Likewise. | |
1781 | (avr_stub_hash_lookup): New function. | |
1782 | (stub_hash_newfunc): New function. | |
1783 | (elf32_avr_link_hash_table_create): New function. | |
1784 | (elf32_avr_link_hash_table_free): New function. | |
1785 | (avr_get_stub_addr): New function. | |
1786 | (debug_relax, debug_stubs): Add new global variables controlling | |
1787 | debugging printout to stdout. | |
1788 | (avr_pc_wrap_around): Change the type to bfd_vma. | |
05bf9422 | 1789 | (avr_replace_call_ret_sequences): Add a new variable controling |
28c9d252 NC |
1790 | linkrelax optimizations. |
1791 | (avr_stub_is_required_for_16_bit_reloc): New function. | |
05bf9422 | 1792 | (avr_final_link_relocate): |
28c9d252 NC |
1793 | Add linker hash table to parameter list. Use stub addr. if necessary. |
1794 | (elf32_avr_relocate_section): | |
1795 | Add linker hashtable to parameter list of avr_final_link_relocate. | |
1796 | (bfd_elf_avr_final_write_processing): Add support for bfd_mach_avr6. | |
1797 | (elf32_avr_object_p): Add support for E_AVR_MACH_AVR6. | |
1798 | (elf32_avr_relax_delete_bytes): | |
1799 | Iterate over all sections of a bfd when adjusting relocs addends. | |
1800 | (elf32_avr_relax_section): | |
05bf9422 | 1801 | Evaluate avr_replace_call_ret_sequences and recalculate the size of |
28c9d252 NC |
1802 | stub section. |
1803 | (avr_stub_name): New function. | |
1804 | (avr_get_stub_entry): New function. | |
1805 | (avr_add_stub): New function. | |
1806 | (avr_build_one_stub): New function. | |
1807 | (avr_size_one_stub): New function. | |
1808 | (elf32_avr_setup_params): New function. | |
1809 | (elf32_avr_setup_section_lists): New function. | |
1810 | (get_local_syms): New function. | |
1811 | (elf32_avr_size_stubs): New function. | |
1812 | (bfd_elf32_bfd_link_hash_table_create): New function. | |
1813 | (bfd_elf32_bfd_link_hash_table_free): New function. | |
1814 | ||
a34a056a L |
1815 | 2006-05-23 H.J. Lu <[email protected]> |
1816 | ||
1817 | PR ld/2655 | |
1818 | PR ld/2657 | |
1819 | * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Properly | |
1820 | update CIE/FDE length. Don't pad to the section alignment. | |
1821 | ||
8aafe8b4 JZ |
1822 | 2006-05-23 Jie Zhang <[email protected]> |
1823 | ||
1824 | * elf32-bfin.c (bfinfdpic_relocate_section): Clear reloc for | |
1825 | deteted entries in .eh_frame section. | |
1826 | ||
5592d7ec JZ |
1827 | 2006-05-23 Jie Zhang <[email protected]> |
1828 | ||
1829 | * elf32-bfin.c (bfin_check_relocs): Use __GLOBAL_OFFSET_TABLE_ | |
1830 | instead of _GLOBAL_OFFSET_TABLE_. | |
1831 | (bfin_relocate_section): Ditto. | |
1832 | (_bfin_create_got_section): Ditto. | |
1833 | (elf32_bfinfdpic_create_dynamic_sections): Use | |
1834 | __PROCEDURE_LINKAGE_TABLE_ instead of _PROCEDURE_LINKAGE_TABLE_. | |
1835 | (bfin_finish_dynamic_symbol): Use __DYNAMIC instead of _DYNAMIC. | |
1836 | ||
4d35a0aa AM |
1837 | 2006-05-23 Alan Modra <[email protected]> |
1838 | ||
1839 | * elf64-ppc.c (compare_symbols): Prefer strong dynamic global | |
1840 | function syms over other syms. | |
1841 | ||
943284cc DJ |
1842 | 2006-05-22 Daniel Jacobowitz <[email protected]> |
1843 | ||
1844 | * elflink.c (_bfd_elf_add_dynamic_entry): Remove DT_TEXTREL | |
1845 | check. | |
1846 | (bfd_elf_final_link): Add a late DT_TEXTREL check. | |
1847 | * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): Define. | |
1848 | (mips_elf_create_dynamic_relocation): Set DF_TEXTREL. | |
1849 | (_bfd_mips_elf_check_relocs): Delete MIPS_READONLY_SECTION. | |
1850 | Use MIPS_ELF_READONLY_SECTION. | |
1851 | (_bfd_mips_elf_size_dynamic_sections): Clear DF_TEXTREL after | |
1852 | creating DT_TEXTREL. | |
1853 | (_bfd_mips_elf_finish_dynamic_sections): Clear textrel markers | |
1854 | if no text relocations were generated. | |
1855 | ||
4d345610 L |
1856 | 2006-05-19 H.J. Lu <[email protected]> |
1857 | ||
1858 | * elfxx-ia64.c (ELF_MAXPAGESIZE): Fix a typo in comment. | |
1859 | ||
1ea63fd2 AM |
1860 | 2006-05-19 Alan Modra <[email protected]> |
1861 | ||
1862 | * elf.c (elf_fake_sections): Formatting. | |
1863 | (assign_file_positions_for_load_sections): Only add SEC_ALLOC | |
1864 | sections to p_memsz. Remove hack for PT_NOTE sections. Allow | |
1865 | section alignment to increase p_align for PT_LOAD. | |
1866 | (assign_file_positions_for_non_load_sections): Remove ARM BPABI | |
1867 | hack for PT_DYNAMIC. Instead, set p_filesz for all segments | |
1868 | other than PT_LOAD, and PT_NOTE in core. | |
1869 | ||
f3520d2f AM |
1870 | 2006-05-17 Alan Modra <[email protected]> |
1871 | ||
1872 | * elf.c (assign_file_positions_for_segments): Split into.. | |
1873 | (assign_file_positions_for_load_sections): ..this, and.. | |
1874 | (assign_file_positions_for_non_load_sections): ..this new function,.. | |
1875 | (assign_file_positions_except_relocs): ..writing program headers here. | |
1876 | ||
dea5f36a AM |
1877 | 2006-05-17 Alan Modra <[email protected]> |
1878 | ||
1879 | * elflink.c (elf_gc_sweep): Don't specially keep non-alloc, | |
1880 | non-load sections if they have relocs. | |
1881 | ||
b0796911 PB |
1882 | 2006-05-15 Paul Brook <[email protected]> |
1883 | ||
1884 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename ... | |
1885 | (bfd_is_arm_special_symbol_name): ... to this. Add type argument. | |
1886 | Check symbol name is of specified type. | |
1887 | * elf32-arm.c (elf32_arm_is_target_special_symbol, | |
1888 | arm_elf_find_function, elf32_arm_output_symbol_hook): Use | |
1889 | bfd_is_arm_special_symbol_name. | |
1890 | * bfd-in.h (BFD_ARM_SPECIAL_SYM_TYPE_MAP, | |
1891 | BFD_ARM_SPECIAL_SYM_TYPE_TAG, BFD_ARM_SPECIAL_SYM_TYPE_OTHER, | |
1892 | BFD_ARM_SPECIAL_SYM_TYPE_ANY): Define. | |
1893 | (bfd_is_arm_mapping_symbol_name): Remove prototype. | |
1894 | (bfd_is_arm_special_symbol_name): Add prototype. | |
1895 | * bfd-in2.h: Regenerate. | |
1896 | ||
64b607e6 BW |
1897 | 2006-05-15 David Heine <[email protected]> |
1898 | Bob Wilson <[email protected]> | |
1899 | ||
1900 | * elf32-xtensa.c (check_loop_aligned): Fix reversed check for | |
1901 | undefined opcode. Clean up assertions. | |
1902 | (narrow_instruction, widen_instruction): Remove "do_it" parameters. | |
1903 | Factor most of the code into separate functions.... | |
1904 | (can_narrow_instruction, can_widen_instruction): New. | |
1905 | (prev_instr_is_a_loop): New. | |
1906 | (compute_ebb_proposed_actions): Combine error handling code for | |
1907 | decode errors. Replace call to insn_decode_len with inline code. | |
1908 | Use can_narrow_instruction and can_widen_instruction. Handle errors | |
1909 | from call to xtensa_opcode_is_loop. | |
05bf9422 | 1910 | (relax_section): Adjust calls to narrow_instruction and |
64b607e6 BW |
1911 | widen_instruction. |
1912 | ||
7de713b9 AM |
1913 | 2006-05-15 Alan Modra <[email protected]> |
1914 | ||
1915 | PR 2658 | |
1916 | * elf32-ppc.c (ppc_elf_relax_section): Don't segfault on non-pic | |
1917 | -shared link. | |
1918 | ||
83180ade L |
1919 | 2006-05-11 Michael Matz <[email protected]> |
1920 | ||
1921 | * elflink.c (match_group_member): Correctly iterate group | |
1922 | members. | |
1923 | ||
b6895b4f PB |
1924 | 2006-05-11 Paul Brook <[email protected]> |
1925 | ||
1926 | * elf32-arm.c (elf32_arm_reloc_map): Add MOVW and MOVT relocs. | |
1927 | (elf32_arm_final_link_relocate): Handle MOVW and MOVT relocs. | |
1928 | (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto. | |
1929 | * reloc.c: Ditto. | |
1930 | * bfd-in2.h: Regenerate. | |
1931 | * libbfd.h: Regenerate. | |
1932 | * libcoff.h: Regenerate. | |
1933 | ||
8b95791f AM |
1934 | 2006-05-11 Mike Bland <[email protected]> |
1935 | ||
1936 | * elf.c (_bfd_elf_init_private_section_data): Don't change | |
1937 | section type if already set. | |
1938 | ||
5e1b4a6d NC |
1939 | 2006-05-10 Nick Clifton <[email protected]> |
1940 | ||
1941 | PR ld/2607 | |
1942 | * elfcode.h (valid_section_index_p): New function: Checks for a | |
1943 | valid section index. Allows indicies in the range SHN_LOPROC to | |
1944 | SHN_HIOS. | |
1945 | (elf_object_p): Use valid_section_index_p. | |
1946 | ||
53baae48 NC |
1947 | 2006-05-11 Pedro Alves <[email protected]> |
1948 | ||
1949 | * coff-arm.c (ARM_26D, ARM_32, ARM_RVA_32, ARM_SECTION, | |
1950 | ARM_SECREL): Mark WinCE versions of these relocs as partial | |
1951 | inplace. | |
1952 | (coff_arm_relocate_section): Adjust addend for WinCE. | |
1953 | ||
69d54b1b AM |
1954 | 2006-05-10 Alan Modra <[email protected]> |
1955 | ||
1956 | PR 2342 | |
1957 | * elflink.c (_bfd_elf_default_action_discarded): Revert 2006-02-16. | |
1958 | ||
337ff0a5 NC |
1959 | 2006-05-09 Nick Clifton <[email protected]> |
1960 | ||
1961 | * coffcode.h (coff_write_relocs): Produce an error message if a an | |
1962 | out-of-range symbol index is detected in a reloc. | |
1963 | ||
e4d4d200 BE |
1964 | 2006-05-09 Ben Elliston <[email protected]> |
1965 | ||
1966 | * elf64-ppc.c (ppc64_elf_finish_dynamic_symbol): Remove unused | |
1967 | local variable `dynobj'. | |
05bf9422 | 1968 | |
73160847 NC |
1969 | 2006-05-05 Bjoern Haase <[email protected]> |
1970 | ||
336e5de1 | 1971 | * elf32-avr.c (elf32_avr_relax_delete_bytes): Iterate over all |
73160847 NC |
1972 | of the bfd's sections for the reloc-addend adjustments. |
1973 | ||
77df2968 MS |
1974 | 2006-05-05 Martin Schwidefsky <[email protected]> |
1975 | ||
1976 | * elf32-s390.c (invalid_tls_insn): Call bfd_set_error. | |
1977 | (elf_s390_relocate_section): Add code to do the GD->LE and | |
1978 | LD->LE TLS linker optimizations if a brasl instruction is used | |
1979 | for the __tls_get_offset function call. | |
1980 | * elf64-s390.c (invalid_tls_insn): Call bfd_set_error. | |
1981 | ||
30038c59 AM |
1982 | 2006-05-05 Alan Modra <[email protected]> |
1983 | ||
1984 | * elf64-ppc.c (ppc64_elf_tls_optimize): Only optimize | |
1985 | R_PPC64_TPREL64 and R_PPC64_DTPMOD64 relocs when they are in | |
1986 | the .toc and referenced by a TLS code sequence. | |
1987 | (ppc64_elf_edit_toc): Cater for the unlikely situation that | |
1988 | .toc is the first section in a file. | |
1989 | ||
ff8b75c7 AS |
1990 | 2006-05-04 Andreas Schwab <[email protected]> |
1991 | ||
1992 | * aoutf1.h (struct external_sparc_core): Declare c_regs as struct | |
1993 | regs instead of an array of int. | |
1994 | (struct external_solaris_bcp_core): Likewise. | |
1995 | (swapcore_sun3): Use offsetof instead of computing the offset | |
1996 | manually. | |
1997 | (swapcore_sparc): Likewise. Simplify reference to c_regs. | |
1998 | (swapcore_solaris_bcp): Likewise. | |
1999 | ||
003b8e1d DJ |
2000 | 2006-05-04 Daniel Jacobowitz <[email protected]> |
2001 | ||
2002 | * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling | |
2003 | for missing GOTs. | |
2004 | ||
efacb0fb DJ |
2005 | 2006-05-04 Daniel Jacobowitz <[email protected]> |
2006 | ||
27106ff0 | 2007 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more |
efacb0fb DJ |
2008 | mapping symbols. |
2009 | ||
9578239d BE |
2010 | 2006-05-04 Ben Elliston <[email protected]> |
2011 | ||
2012 | * coff-or32.c (bfd_section_from_shdr): Remove unused local | |
2013 | variable `ptr'. | |
2014 | * cofflink.c (process_embedded_commands): Remove unused local | |
2015 | variables `had_read' and `had_shared'. | |
2016 | * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local | |
2017 | variable `fdr_adr'. | |
2018 | * ihex.c (ihex_read_section): Remove unused local variable `addr'. | |
2019 | ||
f592407e AM |
2020 | 2006-05-03 Alan Modra <[email protected]> |
2021 | ||
2022 | * libbfd-in.h (_bfd_generic_new_section_hook): Declare. | |
2023 | * section.c (bfd_abs_symbol, bfd_com_symbol): Delete. | |
2024 | (bfd_und_symbol, bfd_ind_symbol): Delete. | |
2025 | (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to | |
2026 | &SEC.symbol. | |
2027 | (STD_SECTION): Adjust. | |
2028 | (_bfd_generic_new_section_hook): New function, extracted from.. | |
2029 | (bfd_section_init): ..here. | |
2030 | (bfd_make_section_old_way): Call new_section_hook for abs, com, | |
2031 | und and ind sections. | |
2032 | * elf.c (_bfd_elf_large_com_section): Adjust. | |
2033 | * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook. | |
2034 | * pdp11.c (new_section_hook): Likewise. | |
2035 | * coffcode.h (coff_new_section_hook): Likewise. | |
2036 | * ecoff.c (_bfd_ecoff_new_section_hook): Likewise. | |
2037 | * elf.c (_bfd_elf_new_section_hook): Likewise. | |
2038 | * vms.c (vms_new_section_hook): Likwise. | |
2039 | * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't | |
2040 | already set. | |
2041 | * elf32-sh64.c (sh64_elf_new_section_hook): Likewise. | |
2042 | * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise. | |
2043 | * elf64-mmix.c (mmix_elf_new_section_hook): Likewise. | |
2044 | * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise. | |
2045 | * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise. | |
2046 | * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise. | |
2047 | * ieee.c (ieee_new_section_hook): Likewise. Call | |
2048 | _bfd_generic_new_section_hook too. | |
2049 | * mmo.c (mmo_new_section_hook): Likewise. | |
2050 | * oasys.c (oasys_new_section_hook): Likewise. | |
2051 | * som.c (som_new_section_hook): Likewise. | |
2052 | * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol. | |
2053 | * bfd-in2.h: Regenerate. | |
2054 | * libbfd.h: Regenerate. | |
2055 | ||
bd75c995 AM |
2056 | 2006-05-03 Alan Modra <[email protected]> |
2057 | ||
2058 | * hash.c (DEFAULT_SIZE): Revert last change. | |
2059 | (higher_prime_number): Correct test for no larger prime. Don't | |
2060 | abort on error, instead return 0. Depopulate primes[]. | |
2061 | (bfd_hash_lookup): If we overflow size, refuse to grow table. | |
2062 | ||
a8bc6c78 PB |
2063 | 2006-05-02 Paul Brook <[email protected]> |
2064 | ||
2065 | * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit | |
2066 | for R_ARM_REL32. | |
2067 | ||
b48c61bc BE |
2068 | 2006-05-02 Ben Elliston <[email protected]> |
2069 | ||
2070 | * archive.c (bfd_generic_archive_p): Remove unused local variable | |
2071 | `fail'. | |
2072 | * dwarf2.c (decode_line_info): Remove unused local variable | |
2073 | `basic_block'. | |
e4d4d200 BE |
2074 | * elfcode.h (elf_slurp_reloc_table_from_section): Remove unused |
2075 | local variable `s'. | |
b48c61bc BE |
2076 | * tekhex.c (tekhex_write_object_contents): Remove unused local |
2077 | variable `bytes_written'. | |
2078 | * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local | |
2079 | variable `r_addend'. | |
2080 | * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns. | |
2081 | * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns. | |
2082 | (_bfd_ns32k_relocate_contents): Remove break after return. | |
2083 | * elf.c (bfd_section_from_shdr): Remove breaks after returns. | |
2084 | ||
63f2fc30 NC |
2085 | 2006-05-02 Nick Clifton <[email protected]> |
2086 | ||
2087 | * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG | |
2088 | in order to avoid conflicts with the global DEBUG define. | |
2089 | ||
e460dd0d AM |
2090 | 2006-05-02 Alan Modra <[email protected]> |
2091 | ||
2092 | * dwarf2.c: Formatting. | |
2093 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify | |
2094 | output section check. | |
2095 | * elf32-i370.c: Warning fixes inside #ifdef DEBUG. | |
2096 | * elf32-m32c.c: Similarly. | |
2097 | * elf32-ppc.c: Similarly. | |
2098 | * elf32-v850.c: Similarly. | |
2099 | * nlm32-sparc.c: Similarly. | |
2100 | * elfcode.h: Similarly. | |
2101 | (elf_symbol_flags): Delete. | |
2102 | * elflink.c (elf_link_input_bfd): Comment typo. | |
2103 | ||
aa149cf7 DD |
2104 | 2006-05-01 DJ Delorie <[email protected]> |
2105 | ||
2106 | * bfd-in.h (bfd_hash_table): Add count field. | |
2107 | * bfd-in2.h: Regenerate. | |
2108 | * hash.c (higher_prime_number): New. | |
2109 | (bfd_hash_table_inint_n): Init count field. | |
2110 | (bfd_hash_lookup): Grow table as needed. | |
2111 | ||
75b8939e KK |
2112 | 2006-04-27 Kaz Kojima <[email protected]> |
2113 | ||
2114 | PR binutils/2584 | |
2115 | * tekhex.c (getvalue): Change return type to bfd_boolean and | |
2116 | add the new parameter. Return false if the unexpected character | |
2117 | is found. | |
2118 | (getsym): Likewise. | |
2119 | (first_phase): Change return type to bfd_boolean and return | |
2120 | false if the unexpected character is found. Replace abort | |
2121 | with returning false. | |
2122 | (pass_over): Change return type to bfd_boolean and the type of | |
2123 | the second argument to bfd_boolean (*) (bfd *, int, char *). | |
2124 | Return false if FUNC returns false. | |
2125 | (tekhex_object_p): Return NULL if pass_over fails. | |
2126 | ||
f05742e6 AM |
2127 | 2006-04-27 Alan Modra <[email protected]> |
2128 | ||
2129 | * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. | |
2130 | ||
e843e0f8 L |
2131 | 2006-04-26 H.J. Lu <[email protected]> |
2132 | ||
2133 | PR binutils/2593 | |
2134 | * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type | |
2135 | and flags if its BFD flags have been set. | |
2136 | (_bfd_elf_init_private_section_data): Don't copy the output ELF | |
2137 | section type from input if it has been set to something | |
2138 | different. | |
2139 | ||
b25e3d87 L |
2140 | 2006-04-25 H.J. Lu <[email protected]> |
2141 | ||
2142 | PR binutils/2467 | |
2143 | * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd) | |
2144 | is NULL first. | |
2145 | ||
2146 | * elf32-arm.c (elf32_arm_close_and_cleanup): Check if | |
2147 | abfd->sections is NULL. | |
2148 | (elf32_arm_bfd_free_cached_info): New. | |
2149 | (bfd_elf32_bfd_free_cached_info): Defined. | |
2150 | ||
2151 | * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it | |
2152 | to _bfd_free_cached_info. | |
2153 | ||
2154 | * libbfd-in.h (_bfd_free_cached_info): New. | |
2155 | * libbfd: Regenerated. | |
2156 | ||
2157 | * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL. | |
2158 | (_bfd_free_cached_info): New. | |
2159 | ||
5c182d5f AM |
2160 | 2006-04-21 Alan Modra <[email protected]> |
2161 | ||
2162 | * elf.c (assign_file_positions_except_relocs): Move code setting | |
2163 | file position of non-loaded sections.. | |
2164 | (assign_file_positions_for_segments): ..to here. | |
2165 | ||
3eb70a79 L |
2166 | 2006-04-20 H.J. Lu <[email protected]> |
2167 | ||
2168 | PR ld/2537 | |
2169 | * elf.c (bfd_section_from_shdr): Allow sections reserved for | |
2170 | applications. Issue an error on sections we don't know how | |
2171 | to handle. | |
2172 | ||
ec3fcc56 AM |
2173 | 2006-04-19 Alan Modra <[email protected]> |
2174 | ||
2175 | * Makefile.am: Run "make dep-am". | |
2176 | * Makefile.in: Regenerate. | |
2177 | ||
241a6c40 AM |
2178 | 2006-04-19 Alan Modra <[email protected]> |
2179 | ||
2180 | * warning.m4 (--enable-werror): Format help message. | |
2181 | (--enable-build-warnings): Likewise. | |
2182 | * configure: Regenerate. | |
2183 | ||
0b49d371 NC |
2184 | 2006-04-18 Nick Clifton <[email protected]> |
2185 | ||
2186 | PR 2257 | |
2187 | * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx | |
2188 | fields to still be handled as ELF files. | |
2189 | ||
e7403566 DJ |
2190 | 2006-04-16 Daniel Jacobowitz <[email protected]> |
2191 | ||
2192 | * po/SRC-POTFILES.in: Regenerated. | |
2193 | ||
ffdc4eed DJ |
2194 | 2006-04-16 Daniel Jacobowitz <[email protected]> |
2195 | ||
2196 | * configure.in: Update version to 2.17.50. | |
2197 | * configure: Regenerated. | |
2198 | ||
cb337148 BW |
2199 | 2006-04-14 David Heine <[email protected]> |
2200 | ||
2201 | * elf32-xtensa.c (build_reloc_opcodes): New. | |
2202 | (compute_text_actions): Use it to decode opcodes outside inner loop. | |
2203 | (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if | |
2204 | it is set, use it to get the opcodes for relocations. | |
2205 | (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit. | |
2206 | ||
cb878726 L |
2207 | 2006-04-08 H.J. Lu <[email protected]> |
2208 | ||
2209 | PR ld/2513 | |
2210 | * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type. | |
2211 | (GOT_TLS_IE_IE): Likewise. | |
2212 | (GOT_TLS_IE_GD): Likewise. | |
2213 | (GOT_TLS_IE_MASK): Likewise. | |
2214 | (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD | |
2215 | and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE | |
2216 | respectively. | |
2217 | (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD | |
2218 | are set, treat tls_type as GOT_TLS_IE_BOTH. | |
2219 | (elf_i386_relocate_section): Likewise. | |
2220 | ||
235ecfbc NC |
2221 | 2006-04-07 Randolph Chung <[email protected]> |
2222 | ||
2223 | * elf64-hppa.c (elf64_hppa_grok_prstatus): New function. | |
2224 | (elf64_hppa_grok_psinfo): Likewise. | |
2225 | (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define. | |
2226 | ||
35520cb7 DD |
2227 | 2006-04-06 DJ Delorie <[email protected]> |
2228 | ||
2229 | * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for | |
2230 | each plt entry we create. | |
2231 | ||
108a6f8e CD |
2232 | 2006-04-06 Carlos O'Donell <[email protected]> |
2233 | ||
2234 | * po/Make-in: Add install-html target. | |
2235 | * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir | |
2236 | htmldir. Add install-html and install-html-recursive targets. | |
2237 | * Makefile.in: Regenerate. | |
2238 | * configure.in: AC_SUBST for datarootdir, docdir and htmldir. | |
2239 | * configure: Regenerate. | |
2240 | ||
fbbc3759 L |
2241 | 2006-04-06 H.J. Lu <[email protected]> |
2242 | ||
2243 | * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes | |
2244 | with the skip_relax_pass_0 and skip_relax_pass_1 bits in the | |
2245 | section structure. | |
2246 | ||
17e226a8 BS |
2247 | 2006-04-05 Bernd Schmidt <[email protected]> |
2248 | ||
2249 | * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to | |
2250 | eliminate warnings. | |
2251 | ||
396a682d L |
2252 | 2006-04-05 H.J. Lu <[email protected]> |
2253 | James E Wilson <[email protected]> | |
2254 | ||
2255 | PR ld/2442 | |
2256 | * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next. | |
2257 | (elfNN_ia64_local_hash_entry): Add count, sorted_count and | |
2258 | size. | |
2259 | (elfNN_ia64_link_hash_entry): Likewise. | |
2260 | (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count | |
2261 | and size. | |
2262 | (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info | |
2263 | processing. | |
2264 | (elfNN_ia64_hash_hide_symbol): Likewise. | |
2265 | (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
2266 | (elfNN_ia64_local_dyn_sym_thunk): Likewise. | |
2267 | (elfNN_ia64_global_dyn_info_free): New function. | |
2268 | (elfNN_ia64_local_dyn_info_free): Likewise. | |
2269 | (elfNN_ia64_hash_table_free): Free local and global | |
2270 | elfNN_ia64_dyn_sym_info. | |
2271 | (addend_compare): New function. | |
2272 | (sort_dyn_sym_info): Likewise. | |
2273 | (get_dyn_sym_info): Updated to use binary search for addend. | |
2274 | (elfNN_ia64_check_relocs): Scan relocations to create dynamic | |
2275 | relocation arrays first. | |
2276 | ||
0781db9f BS |
2277 | 2006-04-05 Bernd Schmidt <[email protected]> |
2278 | ||
2279 | * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp | |
2280 | symbol. | |
2281 | ||
c0d5a53d L |
2282 | 2006-04-05 H.J. Lu <[email protected]> |
2283 | ||
2284 | PR ld/2411 | |
2285 | * elflink.c (check_dynsym): New. | |
2286 | (elf_link_output_extsym): Use it. | |
2287 | (bfd_elf_final_link): Likewise. | |
2288 | ||
580a2b6e L |
2289 | 2006-04-05 H.J. Lu <[email protected]> |
2290 | ||
2291 | PR ld/2404 | |
2292 | * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect | |
2293 | symbol from the dynamic definition with the default version if | |
2294 | its type and the type of existing regular definition mismatch. | |
2295 | ||
910600e9 RS |
2296 | 2006-04-05 Richard Sandiford <[email protected]> |
2297 | Daniel Jacobowitz <[email protected]> | |
2298 | ||
2299 | * config.bfd (sparc-*-vxworks*): New stanza. | |
2300 | * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza. | |
2301 | (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo. | |
2302 | * configure: Regenerate. | |
2303 | * elf32-sparc.c: Include elf-vxworks.h. | |
2304 | (elf32_sparc_vxworks_link_hash_table_create: New. | |
2305 | (elf32_sparc_vxworks_final_write_processing): New. | |
2306 | (TARGET_BIG_SYM): Override for VxWorks. | |
2307 | (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise. | |
2308 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
2309 | (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise. | |
2310 | (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise. | |
2311 | (elf_backend_link_output_symbol_hook): Likewise. | |
2312 | (elf_backend_emit_relocs): Likewise. | |
2313 | (elf_backend_final_write_processing, elf32_bed): Likewise. | |
2314 | * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h. | |
2315 | (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New. | |
2316 | (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New. | |
2317 | (_bfd_sparc_elf_link_hash_table_create): Don't initialize | |
2318 | build_plt_entry here. | |
2319 | (create_got_section): Initialize sgotplt for VxWorks. | |
2320 | (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry, | |
2321 | plt_header_size and plt_entry_size, with new VxWorks-specific settings. | |
2322 | Call elf_vxworks_create_dynamic_sections for VxWorks. | |
2323 | (allocate_dynrelocs): Use plt_header_size and plt_entry_size. | |
2324 | Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks. | |
2325 | (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt | |
2326 | for VxWorks. Check for the .got.plt section. | |
2327 | (sparc_vxworks_build_plt_entry): New function. | |
2328 | (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs. | |
2329 | Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_ | |
2330 | absolute on VxWorks. | |
2331 | (sparc32_finish_dyn): Add special handling for DT_RELASZ | |
2332 | and DT_PLTGOT on VxWorks. | |
2333 | (sparc_vxworks_finish_exec_plt): New. | |
2334 | (sparc_vxworks_finish_shared_plt): New. | |
2335 | (_bfd_sparc_elf_finish_dynamic_sections): Call them. | |
2336 | Use plt_header_size and plt_entry_size. | |
2337 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks, | |
2338 | srelplt2, sgotplt, plt_header_size and plt_entry_size fields. | |
2339 | * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h. | |
2340 | (elf32-sparc.lo): Likewise. | |
2341 | * Makefile.in: Regenerate. | |
2342 | * targets.c (bfd_elf32_sparc_vxworks_vec): Declare. | |
2343 | (_bfd_target_vector): Add a pointer to it. | |
2344 | ||
b761a207 BE |
2345 | 2006-03-30 Ben Elliston <[email protected]> |
2346 | ||
2347 | PR ld/2267 | |
2348 | * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a | |
2349 | special section number that exceeds the number of ELF sections | |
2350 | (eg. SHN_MIPS_SCOMMON). | |
2351 | ||
ead49a57 RS |
2352 | 2006-03-27 Richard Sandiford <[email protected]> |
2353 | ||
2354 | * elfxx-mips.c (mips_got_entry): Add more commentary. | |
2355 | (mips_elf_local_got_index): Use the hash table entry to record | |
2356 | the GOT index of forced-local symbols. | |
2357 | (mips_elf_initialize_tls_index): Rearrange code. Store the index | |
2358 | in either the hash table entry or the mips_got_entry, not both. | |
2359 | Add more commentary. | |
2360 | (mips_elf_multi_got): Make sure the g->next is nonnull when calling | |
2361 | mips_elf_initialize_tls_index. | |
2362 | ||
3b55e94a BS |
2363 | 2006-03-25 Bernd Schmidt <[email protected]> |
2364 | ||
2365 | * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc, | |
2366 | RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty, | |
2367 | reloc_stack_push, reloc_stack_pop, reloc_stack_operate, | |
2368 | bfin_areloc_howto_table): Delete. All | |
2369 | uses deleted as well. | |
2370 | (bfin_reloc_map): Delete all stack relocs. | |
2371 | (bfin_info_to_howto, bfin_bfd_reloc_type_lookup, | |
2372 | bfin_reloc_type_lookup): Don't support them. | |
2373 | (bfin_relocate_section): Don't try to handle them. | |
2374 | ||
48d502e1 BS |
2375 | * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec. |
2376 | * configure.in: Likewise. | |
2377 | * configure: Regenerate. | |
2378 | * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h". | |
2379 | (BFIN_RELOC_MAX): Now 0x21. | |
2380 | (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs. | |
2381 | (bfd_elf32_bfinfdpic_vec): Declare. | |
2382 | (IS_FDPIC): New macro. | |
2383 | (struct bfinfdpic_elf_link_hash_table): New struct. | |
2384 | (bfinfdpic_hash_table, bfinfdpic_got_section, | |
2385 | bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section, | |
2386 | bfinfdpic_plt_setion, bfinfdpic_pltrel_section, | |
2387 | bfinfdpic_relocs_info, bfinfdpic_got_initial_offset, | |
2388 | bfinfdpic_plt_initial_offset): Accessor macros for it. | |
2389 | (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros. | |
2390 | (struct bfinfdpic_relocs_info): New struct. | |
2391 | (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES, | |
2392 | BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC, | |
2393 | DEFAULT_STACK_SIZE): New macros. | |
2394 | (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash, | |
2395 | bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find, | |
2396 | bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local, | |
2397 | bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc, | |
2398 | _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment, | |
2399 | _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section, | |
2400 | bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook, | |
2401 | _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section, | |
2402 | elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry, | |
2403 | _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry, | |
2404 | _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries, | |
2405 | _bfinfdpic_resolve_final_relocs_info, | |
2406 | elf32_bfinfdpic_size_dynamic_sections, | |
2407 | elf32_bfinfdpic_always_size_sections, | |
2408 | elf32_bfinfdpic_modify_segment_map, | |
2409 | _bfinfdpic_count_got_plt_entries, | |
2410 | elf32_bfinfdpic_finish_dynamic_sections, | |
2411 | elf32_bfinfdpic_adjust_dynamic_symbol, | |
2412 | elf32_bfinfdpic_finish_dynamic_symbol, | |
2413 | elf32_bfinfdpic_elf_use_relative_eh_frame, | |
2414 | elf32_bfinfdpic_elf_encode_eh_address, | |
2415 | elf32_bfin_object_p, bfin_elf_copy_private_bfd_data, | |
2416 | elf32_bfinfdpic_copy_private_bfd_data, | |
2417 | (struct _bfinfdpic_dynamic_got_info, | |
2418 | struct _bfinfdpic_dynamic_got_plt_info): New structs. | |
2419 | (elf32_bfin_print_private_bfd_data): Print PIC flags. | |
2420 | (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC. | |
2421 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed, | |
2422 | elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create, | |
2423 | elf_backend_always_size_sectinos, elf_backend_modify_segment_map, | |
2424 | bfd_elf32_bfd_copy_private_bfd_data, | |
2425 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
2426 | elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol, | |
2427 | elf_backend_finish_dynamic_sections, elf_backend_relocate_section, | |
2428 | elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs, | |
2429 | elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p, | |
2430 | elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, | |
2431 | elf_backend_omit_section_dynsym): Redefine these macros and include | |
2432 | "elf32-target.h" again to create the elf32-bfinfdpic target. | |
2433 | * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI, | |
2434 | BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC, | |
2435 | BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI, | |
2436 | BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE, | |
2437 | BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI, | |
2438 | BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI, | |
2439 | BFD_RELOC_BFIN_GOTOFFLO): New. | |
2440 | * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target. | |
2441 | (_bfd_target_vector): Add it. | |
2442 | * bfd-in2.h: Regenerate. | |
2443 | * libbfd.h: Regenerate. | |
2444 | ||
a9d34880 RS |
2445 | 2006-03-25 Richard Sandiford <[email protected]> |
2446 | ||
2447 | * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as | |
2448 | incompatible. Likewise MAC and EMAC code. | |
2449 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use | |
2450 | bfd_get_compatible to set the new bfd architecture. Rely on it | |
2451 | to detect incompatibilities. | |
2452 | ||
9ca26584 AJ |
2453 | 2006-03-23 Michael Matz <[email protected]> |
2454 | ||
2455 | * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64, | |
2456 | BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64, | |
2457 | BFD_RELOC_X86_64_PLTOFF64. | |
2458 | * bfd-in2.h: Regenerated. | |
2459 | * libbfd.h: Regenerated. | |
2460 | * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment. | |
2461 | Add howtos for above relocs. | |
2462 | (x86_64_reloc_map): Add mappings for new relocs. | |
2463 | (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64, | |
2464 | R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT | |
2465 | entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64 | |
2466 | needs a PLT entry. | |
2467 | (elf64_x86_64_gc_sweep_hook): Reflect changes from | |
2468 | elf64_x86_64_check_relocs for the new relocs. | |
2469 | (elf64_x86_64_relocate_section): Handle new relocs. | |
2470 | ||
2a23c2c5 BW |
2471 | 2006-03-22 Bob Wilson <[email protected]> |
2472 | ||
2473 | * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that | |
2474 | rel->r_addend is zero. | |
2475 | ||
6d79d2ed RS |
2476 | 2006-03-22 Richard Sandiford <[email protected]> |
2477 | ||
2478 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type | |
2479 | of "loc". | |
2480 | ||
0a44bf69 RS |
2481 | 2006-03-22 Richard Sandiford <[email protected]> |
2482 | Daniel Jacobowitz <[email protected]> | |
2483 | Phil Edwards <[email protected]> | |
2484 | Zack Weinberg <[email protected]> | |
2485 | Mark Mitchell <[email protected]> | |
2486 | Nathan Sidwell <[email protected]> | |
2487 | ||
2488 | * bfd-in2.h: Regenerate. | |
2489 | * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas. | |
2490 | * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza. | |
2491 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
2492 | (bfd_elf32_bigmips_vec): Add elf-vxworks.lo. | |
2493 | (bfd_elf32_littlemips_vec): Likewise. | |
2494 | (bfd_elf32_nbigmips_vec): Likewise. | |
2495 | (bfd_elf32_nlittlemips_vec): Likewise. | |
2496 | (bfd_elf32_ntradbigmips_vec): Likewise. | |
2497 | (bfd_elf32_ntradlittlemips_vec): Likewise. | |
2498 | (bfd_elf32_tradbigmips_vec): Likewise. | |
2499 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
2500 | (bfd_elf64_bigmips_vec): Likewise. | |
2501 | (bfd_elf64_littlemips_vec): Likewise. | |
2502 | (bfd_elf64_tradbigmips_vec): Likewise. | |
2503 | (bfd_elf64_tradlittlemips_vec): Likewise. | |
2504 | * elf32-mips.c: Include elf-vxworks.h. | |
2505 | (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto | |
2506 | instead of calling mips_elf32_rtype_to_howto directly. | |
2507 | (mips_vxworks_copy_howto_rela): New reloc howto. | |
2508 | (mips_vxworks_jump_slot_howto_rela): Likewise. | |
2509 | (mips_vxworks_bfd_reloc_type_lookup): New function. | |
2510 | (mips_vxworks_rtype_to_howto): Likewise. | |
2511 | (mips_vxworks_final_write_processing): Likewise. | |
2512 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks. | |
2513 | (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise. | |
2514 | (elf_backend_want_got_plt): Likewise. | |
2515 | (elf_backend_want_plt_sym): Likewise. | |
2516 | (elf_backend_got_symbol_offset): Likewise. | |
2517 | (elf_backend_want_dynbss): Likewise. | |
2518 | (elf_backend_may_use_rel_p): Likewise. | |
2519 | (elf_backend_may_use_rela_p): Likewise. | |
2520 | (elf_backend_default_use_rela_p): Likewise. | |
2521 | (elf_backend_got_header_size: Likewise. | |
2522 | (elf_backend_plt_readonly): Likewise. | |
2523 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
2524 | (elf_backend_mips_rtype_to_howto): Likewise. | |
2525 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
2526 | (elf_backend_finish_dynamic_symbol): Likewise. | |
2527 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
2528 | (elf_backend_add_symbol_hook): Likewise. | |
2529 | (elf_backend_link_output_symbol_hook): Likewise. | |
2530 | (elf_backend_emit_relocs): Likewise. | |
2531 | (elf_backend_final_write_processing: Likewise. | |
2532 | (elf_backend_additional_program_headers): Likewise. | |
2533 | (elf_backend_modify_segment_map): Likewise. | |
2534 | (elf_backend_symbol_processing): Likewise. | |
2535 | * elfxx-mips.c: Include elf-vxworks.h. | |
2536 | (mips_elf_link_hash_entry): Add is_relocation_target and | |
2537 | is_branch_target fields. | |
2538 | (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt, | |
2539 | srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields. | |
2540 | (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros. | |
2541 | (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument. | |
2542 | Return 3 for VxWorks. | |
2543 | (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a | |
2544 | mips_elf_link_hash_table. Return 0 for VxWorks. | |
2545 | (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a | |
2546 | mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET. | |
2547 | (mips_vxworks_exec_plt0_entry): New variable. | |
2548 | (mips_vxworks_exec_plt_entry): Likewise. | |
2549 | (mips_vxworks_shared_plt0_entry): Likewise. | |
2550 | (mips_vxworks_shared_plt_entry): Likewise. | |
2551 | (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields. | |
2552 | (mips_elf_rel_dyn_section): Change the bfd argument to a | |
2553 | mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get | |
2554 | the name of the section. | |
2555 | (mips_elf_initialize_tls_slots): Update the call to | |
2556 | mips_elf_rel_dyn_section. | |
2557 | (mips_elf_gotplt_index): New function. | |
2558 | (mips_elf_local_got_index): Add an input_section argument. | |
2559 | Update the call to mips_elf_create_local_got_entry. | |
2560 | (mips_elf_got_page): Likewise. | |
2561 | (mips_elf_got16_entry): Likewise. | |
2562 | (mips_elf_create_local_got_entry): Add bfd_link_info and input_section | |
2563 | arguments. Create dynamic relocations for each entry on VxWorks. | |
2564 | (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE. | |
2565 | (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE | |
2566 | and MIPS_RESERVED_GOTNO. | |
2567 | (mips_elf_create_got_section): Update the uses of | |
2568 | MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks. | |
2569 | (is_gott_symbol): New function. | |
2570 | (mips_elf_calculate_relocation): Use a dynobj local variable. | |
2571 | Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and | |
2572 | mips_elf_got_page_entry. Set G to the .got.plt entry when calculating | |
2573 | VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT | |
2574 | relocations on VxWorks. Add dynamic relocations for references | |
2575 | to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't | |
2576 | create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 | |
2577 | in VxWorks executables. | |
2578 | (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument. | |
2579 | Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry. | |
2580 | Don't allocate a null entry on VxWorks. | |
2581 | (mips_elf_create_dynamic_relocation): Update the call to | |
2582 | mips_elf_rel_dyn_section. Use absolute rather than relative | |
2583 | relocations for VxWorks, and make them RELA rather than REL. | |
2584 | (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic | |
2585 | read-only on VxWorks. Update the call to mips_elf_rel_dyn_section. | |
2586 | Create the .plt, .rela.plt, .dynbss and .rela.bss sections on | |
2587 | VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol. | |
2588 | Call elf_vxworks_create_dynamic_sections for VxWorks and | |
2589 | initialize the plt_header_size and plt_entry_size fields. | |
2590 | (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be | |
2591 | used in VxWorks executables. Don't allocate dynamic relocations | |
2592 | for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables. | |
2593 | Set is_relocation_target for each symbol referenced by a relocation. | |
2594 | Allocate .rela.dyn entries for relocations against the special | |
2595 | VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT | |
2596 | entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate | |
2597 | a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*, | |
2598 | R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls | |
2599 | to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations. | |
2600 | Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26 | |
2601 | relocations. Don't set no_fn_stub on VxWorks. | |
2602 | (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to | |
2603 | mips_elf_allocate_dynamic_relocations. | |
2604 | (_bfd_mips_vxworks_adjust_dynamic_symbol): New function. | |
2605 | (_bfd_mips_elf_always_size_sections): Do not allocate GOT page | |
2606 | entries for VxWorks, and do not create multiple GOTs. | |
2607 | (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME. | |
2608 | Handle .got specially for VxWorks. Update the uses of | |
2609 | MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations. | |
2610 | Check for sgotplt and splt. Allocate the .rel(a).dyn contents last, | |
2611 | once its final size is known. Set DF_TEXTREL for VxWorks. Add | |
2612 | DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL | |
2613 | tags on VxWorks. Do not add the MIPS-specific tags for VxWorks. | |
2614 | (_bfd_mips_vxworks_finish_dynamic_symbol): New function. | |
2615 | (mips_vxworks_finish_exec_plt): Likewise. | |
2616 | (mips_vxworks_finish_shared_plt): Likewise. | |
2617 | (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call | |
2618 | to mips_elf_rel_dyn_section. Use a VxWorks-specific value of | |
2619 | DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, | |
2620 | DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO | |
2621 | and mips_elf_rel_dyn_section. Use a different GOT header for | |
2622 | VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks. | |
2623 | (_bfd_mips_elf_link_hash_table_create): Initialize the new | |
2624 | mips_elf_link_hash_table fields. | |
2625 | (_bfd_mips_vxworks_link_hash_table_create): New function. | |
2626 | (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_ | |
2627 | on VxWorks. Update the call to ELF_MIPS_GP_OFFSET. | |
2628 | * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare. | |
2629 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
2630 | (_bfd_mips_vxworks_link_hash_table_create): Likewise. | |
2631 | * libbfd.h: Regenerate. | |
2632 | * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h. | |
2633 | (elf32-mips.lo): Likewise. | |
2634 | * Makefile.in: Regenerate. | |
2635 | * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare. | |
2636 | * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare. | |
2637 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
2638 | (_bfd_target_vector): Add entries for them. | |
2639 | ||
a2199086 DA |
2640 | 2006-03-19 John David Anglin <[email protected]> |
2641 | ||
2642 | * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss | |
2643 | section from SHF_PARISC_WEAKORDER to SHF_HP_TLS. | |
2644 | (elf_backend_special_sections): Remove #undef. | |
2645 | ||
af7cfa33 DA |
2646 | 2006-03-18 John David Anglin <[email protected]> |
2647 | ||
2648 | * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry | |
2649 | for undefined weak symbols. | |
2650 | ||
a4676736 L |
2651 | 2006-03-17 Daniel Jacobowitz <[email protected]> |
2652 | ||
2653 | PR ld/2462 | |
2654 | * elflink.c (bfd_elf_final_link): Remove | |
2655 | bed->elf_backend_emit_relocs from emit_relocs. | |
2656 | ||
e1710606 AO |
2657 | 2006-03-17 Alexandre Oliva <[email protected]> |
2658 | ||
2659 | * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from | |
2660 | first relocation to the second when relaxing TLS GD to LE; | |
2661 | zero it out when relaxing to IE. | |
2662 | ||
2de92251 AM |
2663 | 2006-03-17 Alan Modra <[email protected]> |
2664 | ||
2665 | PR 2434 | |
2666 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
2667 | warning sym's linked sym. | |
2668 | ||
66eb6687 AM |
2669 | 2006-03-16 Alan Modra <[email protected]> |
2670 | ||
2671 | PR 2434 | |
2672 | * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. | |
2673 | (elf_link_add_object_symbols): Delete unnecessary locals. Rename | |
2674 | hash_table -> htab. Formatting. Save entire symbol table | |
2675 | before loading as-needed syms, and restore afterwards if lib not | |
2676 | needed. Use bfd_hash_allocate rather than bfd_alloc for sym | |
2677 | name. Free some buffers earlier. | |
2678 | * bfd-in.h (struct bfd_hash_table): Add entsize. | |
2679 | (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. | |
2680 | * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise | |
2681 | * hash.c (bfd_hash_table_init_n): Add entsize param, save to | |
2682 | hash table. | |
2683 | (bfd_hash_table_init): Add param, adjust calls. | |
2684 | * aoutx.h: Adjust all hash_table_init functions and calls. | |
2685 | * bfd.c: Likewise. | |
2686 | * coff-arm.c: Likewise. | |
2687 | * coff-h8300.c: Likewise. | |
2688 | * coff-ppc.c: Likewise. | |
2689 | * cofflink.c: Likewise. | |
2690 | * ecoff.c: Likewise. | |
2691 | * ecofflink.c: Likewise. | |
2692 | * elf-m10300.c: Likewise. | |
2693 | * elf-strtab.c: Likewise. | |
2694 | * elf.c: Likewise. | |
2695 | * elf32-arm.c: Likewise. | |
2696 | * elf32-bfin.c: Likewise. | |
2697 | * elf32-cris.c: Likewise. | |
2698 | * elf32-frv.c: Likewise. | |
2699 | * elf32-hppa.c: Likewise. | |
2700 | * elf32-i386.c: Likewise. | |
2701 | * elf32-m32r.c: Likewise. | |
2702 | * elf32-m68hc1x.c: Likewise. | |
2703 | * elf32-m68k.c: Likewise. | |
2704 | * elf32-ppc.c: Likewise. | |
2705 | * elf32-s390.c: Likewise. | |
2706 | * elf32-sh.c: Likewise. | |
2707 | * elf32-vax.c: Likewise. | |
2708 | * elf64-alpha.c: Likewise. | |
2709 | * elf64-hppa.c: Likewise. | |
2710 | * elf64-ppc.c: Likewise. | |
2711 | * elf64-s390.c: Likewise. | |
2712 | * elf64-sh64.c: Likewise. | |
2713 | * elf64-x86-64.c: Likewise. | |
2714 | * elfxx-ia64.c: Likewise. | |
2715 | * elfxx-mips.c: Likewise. | |
2716 | * elfxx-sparc.c: Likewise. | |
2717 | * i386linux.c: Likewise. | |
2718 | * libaout.h: Likewise. | |
2719 | * libbfd-in.h: Likewise. | |
2720 | * libcoff-in.h: Likewise. | |
2721 | * linker.c: Likewise. | |
2722 | * m68klinux.c: Likewise. | |
2723 | * merge.c: Likewise. | |
2724 | * opncls.c: Likewise. | |
2725 | * pdp11.c: Likewise. | |
2726 | * sparclinux.c: Likewise. | |
2727 | * stabs.c: Likewise. | |
2728 | * sunos.c: Likewise. | |
2729 | * vms.c: Likewise. | |
2730 | * xcofflink.c: Likewise. | |
2731 | * section.c (struct section_hash_entry): Move to.. | |
2732 | * libbfd-in.h: ..here. | |
2733 | * Makefile.am: Run "make dep-am" | |
2734 | * Makefile.in: Regenerate. | |
2735 | * bfd-in2.h: Regenerate. | |
2736 | * libbfd.h: Regenerate. | |
2737 | * libcoff.h: Regenerate. | |
2738 | ||
7123df0e AM |
2739 | 2006-03-16 Alan Modra <[email protected]> |
2740 | ||
2741 | * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs | |
2742 | against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak | |
2743 | last change to REL32 relocs so that they are counted as | |
2744 | possibly dynamic as per REL24 and REL14. | |
2745 | ||
fd38b44c AM |
2746 | 2006-03-16 Alan Modra <[email protected]> |
2747 | ||
2748 | * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24 | |
2749 | checks from REL32. | |
2750 | ||
eb111b1f BE |
2751 | 2006-03-15 Ben Elliston <[email protected]> |
2752 | ||
2753 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all | |
2754 | in_list elements, not just the first. | |
05bf9422 | 2755 | |
81d43bff RS |
2756 | 2006-03-14 Richard Sandiford <[email protected]> |
2757 | ||
2758 | * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split | |
2759 | out from... | |
2760 | (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend | |
2761 | for final links too. | |
2762 | ||
d329bcd1 RS |
2763 | 2006-03-13 Richard Sandiford <[email protected]> |
2764 | ||
2765 | * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot. | |
2766 | ||
75a657ba L |
2767 | 2006-03-11 H.J. Lu <[email protected]> |
2768 | ||
2769 | PR ld/2443 | |
241a6c40 | 2770 | * dwarf2.c (concat_filename): Don't issue an error if file is 0. |
75a657ba | 2771 | |
3a4a14e9 PB |
2772 | 2006-03-10 Paul Brook <[email protected]> |
2773 | ||
2774 | * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. | |
2775 | (elf32_arm_print_private_bfd_data): Ditto. | |
2776 | ||
38406048 PB |
2777 | 2006-03-09 Paul Brook <[email protected]> |
2778 | ||
2779 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional | |
2780 | mapping symbols. | |
2781 | ||
eed62c48 NC |
2782 | 2006-03-09 Khem Raj <[email protected]> |
2783 | ||
2784 | * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned | |
2785 | char type. | |
2786 | ||
6d2cf7d8 L |
2787 | 2006-03-08 H.J. Lu <[email protected]> |
2788 | ||
2789 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp. | |
2790 | ||
00a97672 RS |
2791 | 2006-03-07 Richard Sandiford <[email protected]> |
2792 | Daniel Jacobowitz <[email protected]> | |
2793 | Zack Weinberg <[email protected]> | |
2794 | Nathan Sidwell <[email protected]> | |
2795 | Paul Brook <[email protected]> | |
2796 | Ricardo Anguiano <[email protected]> | |
2797 | Phil Edwards <[email protected]> | |
2798 | ||
2799 | * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo. | |
2800 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
2801 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
2802 | (bfd_elf32_littlearm_vec): Likewise. | |
2803 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
2804 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
2805 | * configure: Regenerate. | |
2806 | * elf32-arm.c: Include libiberty.h and elf-vxworks.h. | |
2807 | (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros. | |
2808 | (elf32_arm_vxworks_bed): Add forward declaration. | |
2809 | (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12. | |
2810 | (elf32_arm_vxworks_exec_plt0_entry): New table. | |
2811 | (elf32_arm_vxworks_exec_plt_entry): Likewise. | |
2812 | (elf32_arm_vxworks_shared_plt_entry): Likewise. | |
2813 | (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields. | |
2814 | (reloc_section_p): New function. | |
2815 | (create_got_section): Use RELOC_SECTION. | |
2816 | (elf32_arm_create_dynamic_sections): Likewise. Call | |
2817 | elf_vxworks_create_dynamic_sections for VxWorks targets. | |
2818 | Choose between the two possible values of plt_header_size | |
2819 | and plt_entry_size. | |
2820 | (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2. | |
2821 | (elf32_arm_abs12_reloc): New function. | |
2822 | (elf32_arm_final_link_relocate): Call it. Allow the creation of | |
2823 | dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p, | |
2824 | RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the | |
2825 | r_addend fields of relocs. On rela targets, skip any code that | |
2826 | adjusts in-place addends. When using _bfd_link_final_relocate | |
2827 | to perform a final relocation, pass rel->r_addend as the addend | |
2828 | argument. | |
2829 | (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks | |
2830 | object, ignore flags that are not standard on VxWorks. | |
2831 | (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12 | |
2832 | relocs on VxWorks. Use reloc_section_p. | |
2833 | (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE. | |
2834 | (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of | |
2835 | .rela.plt.unloaded relocs on VxWorks targets. | |
2836 | (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for | |
2837 | .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags | |
2838 | instead of DT_REL* tags on RELA targets. | |
2839 | (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE | |
2840 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks | |
2841 | PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. | |
2842 | (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE | |
2843 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ | |
2844 | like DT_RELSZ. Handle the VxWorks form of initial PLT entry. | |
2845 | Correct the .rela.plt.unreloaded symbol indexes. | |
2846 | (elf32_arm_output_symbol_hook): Call the VxWorks version of this | |
2847 | hook on VxWorks targets. | |
2848 | (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true. | |
2849 | Minor formatting tweak. | |
2850 | (elf32_arm_vxworks_final_write_processing): New function. | |
2851 | (elf_backend_add_symbol_hook): Override for VxWorks and reset | |
2852 | for Symbian. | |
2853 | (elf_backend_final_write_processing): Likewise. | |
2854 | (elf_backend_emit_relocs): Likewise. | |
2855 | (elf_backend_want_plt_sym): Likewise. | |
2856 | (ELF_MAXPAGESIZE): Likewise. | |
2857 | (elf_backend_may_use_rel_p): Minor formatting tweak. | |
2858 | (elf_backend_may_use_rela_p): Likewise. | |
2859 | (elf_backend_default_use_rela_p): Likewise. | |
2860 | (elf_backend_rela_normal): Likewise. | |
2861 | * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h. | |
2862 | ||
0b2e31dc NS |
2863 | 2006-03-06 Nathan Sidwell <[email protected]> |
2864 | ||
2865 | * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp): | |
2866 | New. Adjust other variants. | |
2867 | (bfd_default_scan): Update. | |
2868 | * bfd-in2.h: Rebuilt. | |
2869 | * cpu-m68k.c: Adjust. | |
2870 | (bfd_m68k_compatible): New. Use it for architectures. | |
2871 | * elf32-m68k.c (elf32_m68k_object_p): Adjust. | |
2872 | (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b | |
2873 | mismatch. | |
2874 | (elf32_m68k_print_private_bfd_data): Adjust. | |
2875 | * ieee.c (ieee_write_processor): Adjust. | |
05bf9422 | 2876 | |
d8d1c398 AM |
2877 | 2006-03-06 Alan Modra <[email protected]> |
2878 | ||
2879 | * dwarf2.c: Formatting. | |
2880 | (add_line_info): Remove outer loop. | |
2881 | ||
d4c32a81 L |
2882 | 2006-03-05 H.J. Lu <[email protected]> |
2883 | Alan Modra <[email protected]> | |
2884 | ||
2885 | PR binutils/2338 | |
2886 | * dwarf2.c (loadable_section): New struct. | |
2887 | (dwarf2_debug): Add loadable_section_count and | |
2888 | loadable_sections. | |
2889 | (new_line_sorts_after): New. | |
2890 | (add_line_info): Use new_line_sorts_after to compare line | |
2891 | addresses. | |
2892 | (check_function_name): Removed. | |
2893 | (unset_sections): New. | |
2894 | (place_sections): New. | |
2895 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections | |
2896 | and unset_sections on relocatable files. | |
2897 | (_bfd_dwarf2_find_line): Likewise. | |
2898 | ||
4cdc7696 NC |
2899 | 2006-03-03 Nick Clifton <[email protected]> |
2900 | ||
2901 | * cpu-avr.c: Update to ISO-C90 formatting. | |
2902 | * elf32-avr.c: Likewise. | |
2903 | ||
df406460 NC |
2904 | 2006-03-03 Bjoern Haase <[email protected]> |
2905 | ||
2906 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI | |
05bf9422 | 2907 | and R_AVR_MS8_LDI |
df406460 NC |
2908 | (bfd_elf_avr_final_write_processing): Set |
2909 | EF_AVR_LINKRELAX_PREPARED in e_flags field. | |
2910 | (elf32_avr_relax_section): New function. | |
2911 | (elf32_avr_relax_delete_bytes): New function. | |
2912 | (elf32_avr_get_relocated_section_contents): New function. | |
2913 | (avr_pc_wrap_around): New function. | |
2914 | (avr_relative_distance_considering_wrap_around): New function. | |
2915 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. | |
2916 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG | |
2917 | * libbfd.h: Regenerate. | |
2918 | * bfd-in2.h: Regenerate. | |
2919 | ||
a1013894 DD |
2920 | 2006-03-02 DJ Delorie <[email protected]> |
2921 | ||
2922 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol | |
2923 | calculations. | |
2924 | ||
7c492719 RS |
2925 | 2006-03-02 Richard Sandiford <[email protected]> |
2926 | ||
2927 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is | |
2928 | bfd_elf32_powerpc_vxworks_vec. | |
2929 | ||
e970df31 NC |
2930 | 2006-03-02 Nick Clifton <[email protected]> |
2931 | ||
2932 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. | |
2933 | ||
711de32c RS |
2934 | 2006-03-02 Richard Sandiford <[email protected]> |
2935 | ||
2936 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use | |
2937 | elf_vxworks_create_dynamic_sections. | |
2938 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT | |
2939 | symbol handling. | |
2940 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use | |
2941 | elf_vxworks_create_dynamic_sections. | |
2942 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT | |
2943 | symbol handling. | |
2944 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. | |
2945 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. | |
2946 | ||
9c72ff84 RS |
2947 | 2006-03-02 Richard Sandiford <[email protected]> |
2948 | ||
2949 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
2950 | (elf_backend_link_output_symbol_hook): Use | |
2951 | elf_vxworks_link_output_symbol_hook instead. | |
2952 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
2953 | (elf_backend_link_output_symbol_hook): Use | |
2954 | elf_vxworks_link_output_symbol_hook instead. | |
2955 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the | |
2956 | same interface as elf_backend_link_output_symbol_hook. | |
2957 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update | |
2958 | prototype accordingly. | |
2959 | ||
4a3dc543 RS |
2960 | 2006-03-02 Richard Sandiford <[email protected]> |
2961 | ||
2962 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. | |
2963 | (ppc_elf_link_hash_table): Replace old_got and new_got with | |
2964 | plt_type and can_use_new_plt. | |
2965 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, | |
2966 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. | |
2967 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. | |
2968 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. | |
2969 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to | |
2970 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that | |
2971 | this function should not be called for VxWorks targets. | |
2972 | (ppc_elf_tls_setup): Use plt_type instead of old_got. | |
2973 | (allocate_got): Likewise. Rearrange so that max_before_header | |
2974 | is only used for PLT_OLD and PLT_NEW. | |
2975 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. | |
2976 | (ppc_elf_size_dynamic_sections): Likewise. | |
2977 | (ppc_elf_relax_section): Likewise. | |
2978 | (ppc_elf_relocate_section): Likewise. | |
2979 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
2980 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. | |
2981 | ||
5ae0bfb6 RS |
2982 | 2006-02-28 Richard Sandiford <[email protected]> |
2983 | ||
2984 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. | |
2985 | (elf_i386_link_hash_table_create): Initialize it. | |
2986 | (elf_i386_compute_jump_table_size): Use it instead of | |
2987 | srelplt->reloc_count. | |
2988 | (allocate_dynrelocs): Likewise. | |
2989 | (elf_i386_size_dynamic_sections): Likewise. | |
2990 | (elf_i386_relocate_section): Likewise. | |
05bf9422 | 2991 | |
63752a75 JJ |
2992 | 2006-02-27 Jakub Jelinek <[email protected]> |
2993 | ||
2994 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. | |
2995 | (_bfd_elf_write_section_eh_frame): Likewise. | |
2996 | ||
f7d9e5c3 CD |
2997 | 2006-02-27 Carlos O'Donell <[email protected]> |
2998 | ||
2999 | * po/Make-in: Add html target. | |
3000 | ||
22edb2f1 RS |
3001 | 2006-02-27 Richard Sandiford <[email protected]> |
3002 | ||
3003 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the | |
3004 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. | |
3005 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. | |
3006 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. | |
3007 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
3008 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
3009 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
3010 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
3011 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. | |
3012 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. | |
3013 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. | |
3014 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. | |
3015 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. | |
3016 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
3017 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
3018 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use | |
3019 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. | |
3020 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. | |
3021 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
3022 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
3023 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
3024 | ||
7325306f RS |
3025 | 2006-02-25 Richard Sandiford <[email protected]> |
3026 | ||
3027 | * elf-bfd.h (elf_link_hash_table): Add hplt field. | |
3028 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. | |
3029 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
3030 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
3031 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
3032 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
3033 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
3034 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
3035 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. | |
3036 | (elf_i386_link_hash_table_create): Don't initialize them. | |
3037 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and | |
3038 | hgot fields. | |
3039 | (elf_i386_finish_dynamic_symbol): Likewise. | |
3040 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. | |
3041 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. | |
3042 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
05bf9422 | 3043 | |
6772dd07 DD |
3044 | 2006-02-24 DJ Delorie <[email protected]> |
3045 | ||
3046 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. | |
3047 | (m32c_elf_relocate_section): Don't relocate them. | |
3048 | (compare_reloc): New. | |
3049 | (relax_reloc): Remove. | |
3050 | (m32c_offset_for_reloc): New. | |
3051 | (m16c_addr_encodings): New. | |
3052 | (m16c_jmpaddr_encodings): New. | |
3053 | (m32c_addr_encodings): New. | |
3054 | (m32c_elf_relax_section): Relax jumps and address displacements. | |
3055 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up | |
3056 | short jumps. | |
3057 | ||
3058 | * reloc.c: Add m32c relax relocs. | |
3059 | * libbfd.h: Regenerate. | |
3060 | * bfd-in2.h: Regenerate. | |
05bf9422 | 3061 | |
508c3946 L |
3062 | 2006-02-24 H.J. Lu <[email protected]> |
3063 | ||
3064 | PR ld/2218 | |
3065 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. | |
3066 | (_bfd_elf_link_hash_fixup_symbol): New. | |
3067 | ||
3068 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. | |
3069 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if | |
3070 | it isn't NULL. | |
3071 | ||
3072 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. | |
3073 | ||
3074 | * elfxx-target.h (elf_backend_fixup_symbol): New. | |
3075 | (elfNN_bed): Initialize elf_backend_fixup_symbol. | |
3076 | ||
59cf82fe L |
3077 | 2006-02-23 H.J. Lu <[email protected]> |
3078 | ||
3079 | * cpu-ia64-opc.c (ins_immu5b): New. | |
3080 | (ext_immu5b): Likewise. | |
3081 | (elf64_ia64_operands): Add IMMU5b. | |
3082 | ||
22d606e9 AM |
3083 | 2006-02-21 Alan Modra <[email protected]> |
3084 | ||
3085 | PR ld/2218 | |
3086 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie | |
3087 | is dynamic. | |
3088 | * elf32-hppa.c (allocate_dynrelocs): Likewise. | |
3089 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
3090 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
3091 | * elf32-sh.c (allocate_dynrelocs): Likewise. | |
3092 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
3093 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
3094 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs | |
3095 | on undef weak with non-default visibility too. | |
3096 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. | |
3097 | ||
3168356f AM |
3098 | 2006-02-21 Alan Modra <[email protected]> |
3099 | ||
3100 | * bfd.c: (_bfd_default_error_handler): Don't call abort on | |
3101 | error, instead call _exit. | |
3102 | (_bfd_abort): Call _exit not xexit. | |
3103 | ||
888b45b8 KB |
3104 | 2006-02-17 Kevin Buettner <[email protected]> |
3105 | ||
3106 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): | |
3107 | New functions. | |
3108 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
3109 | ||
d70c5fc7 | 3110 | 2006-02-17 Shrirang Khisti <[email protected]> |
05bf9422 AM |
3111 | Anil Paranjape <[email protected]> |
3112 | Shilin Shakti <[email protected]> | |
d70c5fc7 | 3113 | |
05bf9422 AM |
3114 | * Makefile.am: Add xc16x related entry |
3115 | * Makefile.in: Regenerate | |
3116 | * archures.c: Add bfd_xc16x_arch | |
d70c5fc7 NC |
3117 | * bfd-in2.h: Regenerate |
3118 | * config.bfd: Add xc16x-*-elf | |
3119 | * configure.in: Add bfd_elf32_xc16x_vec | |
3120 | * configure: Regenerate. | |
3121 | * targets.c: Added xc16x related information | |
3122 | * cpu-xc16x.c: New file | |
3123 | * reloc.c: Add new relocations specific to xc16x: | |
3124 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, | |
05bf9422 | 3125 | BFD_RELOC_XC16X_SOF |
d70c5fc7 NC |
3126 | * elf32-xc16x.c: New file. |
3127 | ||
cab87ef9 AM |
3128 | 2006-02-17 Alan Modra <[email protected]> |
3129 | ||
3130 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. | |
3131 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
3132 | ||
dfbb6ac9 AM |
3133 | 2006-02-17 Alan Modra <[email protected]> |
3134 | ||
3135 | PR ld/2218 | |
3136 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is | |
3137 | dynamic. | |
3138 | (ppc64_elf_relocate_section): Check output reloc section size. | |
3139 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. | |
3140 | ||
cedc298e L |
3141 | 2006-02-16 H.J. Lu <[email protected]> |
3142 | ||
3143 | PR ld/2322 | |
3144 | * elf.c (get_segment_type): New function. | |
3145 | (_bfd_elf_print_private_bfd_data): Use it. | |
3146 | (print_segment_map): New function. | |
3147 | (assign_file_positions_for_segments): Call print_segment_map | |
3148 | when there are not enough room for program headers. | |
3149 | ||
aaa2ab3d NH |
3150 | 2006-02-16 Nick Hudson <[email protected]> |
3151 | ||
3152 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use | |
3153 | traditional MIPS ELF targets. | |
3154 | ||
35ccda9e L |
3155 | 2006-02-15 H.J. Lu <[email protected]> |
3156 | ||
3157 | PR binutils/2338 | |
3158 | * dwarf2.c (check_function_name): New function. | |
3159 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to | |
3160 | check if function is correct. | |
3161 | ||
e0ae6d6f AM |
3162 | 2006-02-16 Alan Modra <[email protected]> |
3163 | ||
3164 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for | |
3165 | debug sections. | |
3166 | (elf_link_input_bfd): Adjust comments. | |
3167 | ||
d55ce4e2 L |
3168 | 2006-02-10 H.J. Lu <[email protected]> |
3169 | ||
3170 | * elf.c (copy_private_bfd_data): Minor update. | |
3171 | ||
84d1d650 L |
3172 | 2006-02-10 H.J. Lu <[email protected]> |
3173 | ||
3174 | PR binutils/2258 | |
3175 | * elf.c (copy_private_bfd_data): Renamed to ... | |
3176 | (rewrite_elf_program_header): This. | |
3177 | (copy_elf_program_header): New function. | |
3178 | (copy_private_bfd_data): Likewise. | |
3179 | ||
3180 | 2006-02-07 Nathan Sidwell <[email protected]> | |
266abb8f NS |
3181 | |
3182 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, | |
3183 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, | |
3184 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, | |
3185 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. | |
3186 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, | |
3187 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, | |
3188 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, | |
3189 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, | |
3190 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, | |
3191 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, | |
3192 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, | |
3193 | bfd_mach_mcf_isa_b_usp_float_emac): New. | |
3194 | (bfd_default_scan): Update coldfire mapping. | |
3195 | * bfd-in.h (bfd_m68k_mach_to_features, | |
3196 | bfd_m68k_features_to_mach): Declare. | |
3197 | * bfd-in2.h: Rebuilt. | |
3198 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, | |
3199 | adjust legacy names. | |
3200 | (m68k_arch_features): New. | |
3201 | (bfd_m68k_mach_to_features, | |
3202 | bfd_m68k_features_to_mach): Define. | |
3203 | * elf32-m68k.c (elf32_m68k_object_p): New. | |
3204 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. | |
3205 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. | |
3206 | (elf_backend_object_p): Define. | |
3207 | * ieee.c (ieee_write_processor): Update coldfire machines. | |
3208 | * libbfd.h: Rebuilt. | |
3209 | ||
75eb734c SE |
3210 | 2006-02-06 Steve Ellcey <[email protected]> |
3211 | ||
3212 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS | |
3213 | if SHF_TLS is set. | |
3214 | ||
134dcee5 AM |
3215 | 2006-02-05 Arnold Metselaar <[email protected]> |
3216 | ||
05bf9422 | 3217 | * coff-z80.c (r_imm24): New howto. |
134dcee5 AM |
3218 | (rtype2howto): New case R_IMM24. |
3219 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. | |
3220 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. | |
3221 | ||
4005427f RS |
3222 | 2006-02-04 Richard Sandiford <[email protected]> |
3223 | ||
3224 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol | |
3225 | has already been assigned a GOT index, copy that index to the | |
3226 | current hash table entry. | |
3227 | ||
bb29dfea EB |
3228 | 2006-02-01 Eric Botcazou <[email protected]> |
3229 | ||
3230 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
3231 | for call-to-undefweak reloc overflow. | |
3232 | ||
dc669dc8 EB |
3233 | 2006-01-31 Eric Botcazou <[email protected]> |
3234 | ||
3235 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
3236 | for 32-bit relocs overflow. | |
3237 | ||
1a0eb693 PB |
3238 | 2006-01-27 Paul Brook <[email protected]> |
3239 | ||
3240 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb | |
3241 | objects. | |
3242 | ||
67a4f2b7 AO |
3243 | 2006-01-18 Alexandre Oliva <[email protected]> |
3244 | ||
3245 | Introduce TLS descriptors for i386 and x86_64. | |
3246 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, | |
3247 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, | |
3248 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. | |
3249 | * libbfd.h, bfd-in2.h: Rebuilt. | |
3250 | * elf32-i386.c (elf_howto_table): New relocations. | |
3251 | (R_386_tls): Adjust. | |
3252 | (elf_i386_reloc_type_lookup): Map new relocations. | |
3253 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
3254 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
3255 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. | |
3256 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. | |
3257 | (elf_i386_local_tlsdesc_gotent): New macro. | |
3258 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. | |
3259 | (elf_i386_compute_jump_table_size): New macro. | |
3260 | (link_hash_newfunc): Initialize tlsdesc_got. | |
3261 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. | |
3262 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and | |
3263 | R_386_TLS_DESC_CALL. | |
3264 | (elf_i386_check_relocs): Likewise. Allocate space for | |
3265 | local_tlsdesc_gotent. | |
3266 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and | |
3267 | R_386_TLS_DESC_CALL. | |
3268 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
3269 | space for TLS descriptors and relocations. | |
3270 | (elf_i386_size_dynamic_sections): Reserve space for TLS | |
3271 | descriptors and relocations. Set up sgotplt_jump_table_size. | |
3272 | Don't zero reloc_count in srelplt. | |
3273 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. | |
3274 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and | |
3275 | R_386_TLS_DESC_CALL. | |
3276 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
3277 | (elf_backend_always_size_sections): Define. | |
3278 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, | |
3279 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. | |
3280 | (R_X86_64_standard): Adjust. | |
3281 | (x86_64_reloc_map): Map new relocs. | |
3282 | (elf64_x86_64_rtype_to_howto): New, split out of... | |
3283 | (elf64_x86_64_info_to_howto): ... this function, and... | |
3284 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. | |
3285 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
3286 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
3287 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. | |
3288 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. | |
3289 | (elf64_x86_64_local_tlsdesc_gotent): New macro. | |
3290 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, | |
3291 | tlsdesc_got and sgotplt_jump_table_size fields. | |
3292 | (elf64_x86_64_compute_jump_table_size): New macro. | |
3293 | (link_hash_newfunc): Initialize tlsdesc_got. | |
3294 | (elf64_x86_64_link_hash_table_create): Initialize new fields. | |
3295 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and | |
3296 | R_X86_64_TLSDESC_CALL. | |
3297 | (elf64_x86_64_check_relocs): Likewise. Allocate space for | |
3298 | local_tlsdesc_gotent. | |
3299 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and | |
3300 | R_X86_64_TLSDESC_CALL. | |
3301 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
3302 | space for TLS descriptors and relocations. | |
3303 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS | |
3304 | descriptors and relocations. Set up sgotplt_jump_table_size, | |
3305 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero | |
3306 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT | |
3307 | and DT_TLSDESC_GOT. | |
3308 | (elf64_x86_64_always_size_sections): New. Set up | |
3309 | _TLS_MODULE_BASE_. | |
3310 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and | |
3311 | R_386_TLS_DESC_CALL. | |
3312 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
3313 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and | |
3314 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. | |
3315 | (elf_backend_always_size_sections): Define. | |
3316 | ||
6dd55cb7 L |
3317 | 2006-01-17 H.J. Lu <[email protected]> |
3318 | ||
3319 | PR binutils/2096 | |
3320 | * dwarf2.c (comp_unit_contains_address): Update comment. | |
3321 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of | |
3322 | lma. Return TRUE only if both comp_unit_contains_address and | |
3323 | comp_unit_find_nearest_line return TRUE. | |
3324 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. | |
3325 | ||
64d03ab5 AM |
3326 | 2006-01-18 Alan Modra <[email protected]> |
3327 | ||
3328 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. | |
3329 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. | |
3330 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from | |
3331 | elf_gc_mark_dynamic_ref_symbol. Make global. | |
3332 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. | |
3333 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. | |
3334 | (elfNN_bed): Init new field. | |
3335 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. | |
3336 | (ppc64_elf_gc_mark_dynamic_ref): New function. | |
3337 | ||
b56cbdb9 AM |
3338 | 2006-01-17 Alan Modra <[email protected]> |
3339 | ||
3340 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. | |
3341 | ||
6c10990d NC |
3342 | 2006-01-17 Nick Clifton <[email protected]> |
3343 | ||
3344 | PR binutils/2159 | |
3345 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused | |
3346 | parameters. | |
3347 | ||
d7f735da NC |
3348 | 2006-01-11 Nick Clifton <[email protected]> |
3349 | ||
3350 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry | |
3351 | into the newly (re)allocated map array. | |
3352 | ||
2bfd55ca NC |
3353 | 2006-01-09 Alexis Wilke <[email protected]> |
3354 | ||
3355 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". | |
3356 | ||
bce50a28 JJ |
3357 | 2006-01-01 Jakub Jelinek <[email protected]> |
3358 | ||
3359 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 | |
3360 | for .toc1 section. | |
3361 | ||
e88d958a | 3362 | For older changes see ChangeLog-2005 |
56882138 AM |
3363 | \f |
3364 | Local Variables: | |
3365 | mode: change-log | |
3366 | left-margin: 8 | |
3367 | fill-column: 74 | |
3368 | version-control: never | |
3369 | End: |