PR 2434
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2006-03-17 Alan Modra <amodra@bigpond.net.au>
2
3 PR 2434
4 * elflink.c (elf_link_add_object_symbols): Save and restore
5 warning sym's linked sym.
6
7 2006-03-16 Alan Modra <amodra@bigpond.net.au>
8
9 PR 2434
10 * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
11 (elf_link_add_object_symbols): Delete unnecessary locals. Rename
12 hash_table -> htab. Formatting. Save entire symbol table
13 before loading as-needed syms, and restore afterwards if lib not
14 needed. Use bfd_hash_allocate rather than bfd_alloc for sym
15 name. Free some buffers earlier.
16 * bfd-in.h (struct bfd_hash_table): Add entsize.
17 (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
18 * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
19 * hash.c (bfd_hash_table_init_n): Add entsize param, save to
20 hash table.
21 (bfd_hash_table_init): Add param, adjust calls.
22 * aoutx.h: Adjust all hash_table_init functions and calls.
23 * bfd.c: Likewise.
24 * coff-arm.c: Likewise.
25 * coff-h8300.c: Likewise.
26 * coff-ppc.c: Likewise.
27 * cofflink.c: Likewise.
28 * ecoff.c: Likewise.
29 * ecofflink.c: Likewise.
30 * elf-m10300.c: Likewise.
31 * elf-strtab.c: Likewise.
32 * elf.c: Likewise.
33 * elf32-arm.c: Likewise.
34 * elf32-bfin.c: Likewise.
35 * elf32-cris.c: Likewise.
36 * elf32-frv.c: Likewise.
37 * elf32-hppa.c: Likewise.
38 * elf32-i386.c: Likewise.
39 * elf32-m32r.c: Likewise.
40 * elf32-m68hc1x.c: Likewise.
41 * elf32-m68k.c: Likewise.
42 * elf32-ppc.c: Likewise.
43 * elf32-s390.c: Likewise.
44 * elf32-sh.c: Likewise.
45 * elf32-vax.c: Likewise.
46 * elf64-alpha.c: Likewise.
47 * elf64-hppa.c: Likewise.
48 * elf64-ppc.c: Likewise.
49 * elf64-s390.c: Likewise.
50 * elf64-sh64.c: Likewise.
51 * elf64-x86-64.c: Likewise.
52 * elfxx-ia64.c: Likewise.
53 * elfxx-mips.c: Likewise.
54 * elfxx-sparc.c: Likewise.
55 * i386linux.c: Likewise.
56 * libaout.h: Likewise.
57 * libbfd-in.h: Likewise.
58 * libcoff-in.h: Likewise.
59 * linker.c: Likewise.
60 * m68klinux.c: Likewise.
61 * merge.c: Likewise.
62 * opncls.c: Likewise.
63 * pdp11.c: Likewise.
64 * sparclinux.c: Likewise.
65 * stabs.c: Likewise.
66 * sunos.c: Likewise.
67 * vms.c: Likewise.
68 * xcofflink.c: Likewise.
69 * section.c (struct section_hash_entry): Move to..
70 * libbfd-in.h: ..here.
71 * Makefile.am: Run "make dep-am"
72 * Makefile.in: Regenerate.
73 * bfd-in2.h: Regenerate.
74 * libbfd.h: Regenerate.
75 * libcoff.h: Regenerate.
76
77 2006-03-16 Alan Modra <amodra@bigpond.net.au>
78
79 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
80 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
81 last change to REL32 relocs so that they are counted as
82 possibly dynamic as per REL24 and REL14.
83
84 2006-03-16 Alan Modra <amodra@bigpond.net.au>
85
86 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
87 checks from REL32.
88
89 2006-03-15 Ben Elliston <bje@au.ibm.com>
90
91 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
92 in_list elements, not just the first.
93
94 2006-03-14 Richard Sandiford <richard@codesourcery.com>
95
96 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
97 out from...
98 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
99 for final links too.
100
101 2006-03-13 Richard Sandiford <richard@codesourcery.com>
102
103 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
104
105 2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
106
107 PR ld/2443
108 * dwarf2.c (concat_filename): Don't issue an error if file is
109 0.
110
111 2006-03-10 Paul Brook <paul@codesourcery.com>
112
113 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
114 (elf32_arm_print_private_bfd_data): Ditto.
115
116 2006-03-09 Paul Brook <paul@codesourcery.com>
117
118 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
119 mapping symbols.
120
121 2006-03-09 Khem Raj <khem@mvista.com>
122
123 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
124 char type.
125
126 2006-03-08 H.J. Lu <hongjiu.lu@intel.com>
127
128 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
129
130 2006-03-07 Richard Sandiford <richard@codesourcery.com>
131 Daniel Jacobowitz <dan@codesourcery.com>
132 Zack Weinberg <zack@codesourcery.com>
133 Nathan Sidwell <nathan@codesourcery.com>
134 Paul Brook <paul@codesourcery.com>
135 Ricardo Anguiano <anguiano@codesourcery.com>
136 Phil Edwards <phil@codesourcery.com>
137
138 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
139 (bfd_elf32_bigarm_symbian_vec): Likewise.
140 (bfd_elf32_bigarm_vxworks_vec): Likewise.
141 (bfd_elf32_littlearm_vec): Likewise.
142 (bfd_elf32_littlearm_symbian_vec): Likewise.
143 (bfd_elf32_littlearm_vxworks_vec): Likewise.
144 * configure: Regenerate.
145 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
146 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
147 (elf32_arm_vxworks_bed): Add forward declaration.
148 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
149 (elf32_arm_vxworks_exec_plt0_entry): New table.
150 (elf32_arm_vxworks_exec_plt_entry): Likewise.
151 (elf32_arm_vxworks_shared_plt_entry): Likewise.
152 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
153 (reloc_section_p): New function.
154 (create_got_section): Use RELOC_SECTION.
155 (elf32_arm_create_dynamic_sections): Likewise. Call
156 elf_vxworks_create_dynamic_sections for VxWorks targets.
157 Choose between the two possible values of plt_header_size
158 and plt_entry_size.
159 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
160 (elf32_arm_abs12_reloc): New function.
161 (elf32_arm_final_link_relocate): Call it. Allow the creation of
162 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
163 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
164 r_addend fields of relocs. On rela targets, skip any code that
165 adjusts in-place addends. When using _bfd_link_final_relocate
166 to perform a final relocation, pass rel->r_addend as the addend
167 argument.
168 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
169 object, ignore flags that are not standard on VxWorks.
170 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
171 relocs on VxWorks. Use reloc_section_p.
172 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
173 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
174 .rela.plt.unloaded relocs on VxWorks targets.
175 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
176 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
177 instead of DT_REL* tags on RELA targets.
178 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
179 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
180 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
181 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
182 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
183 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
184 Correct the .rela.plt.unreloaded symbol indexes.
185 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
186 hook on VxWorks targets.
187 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
188 Minor formatting tweak.
189 (elf32_arm_vxworks_final_write_processing): New function.
190 (elf_backend_add_symbol_hook): Override for VxWorks and reset
191 for Symbian.
192 (elf_backend_final_write_processing): Likewise.
193 (elf_backend_emit_relocs): Likewise.
194 (elf_backend_want_plt_sym): Likewise.
195 (ELF_MAXPAGESIZE): Likewise.
196 (elf_backend_may_use_rel_p): Minor formatting tweak.
197 (elf_backend_may_use_rela_p): Likewise.
198 (elf_backend_default_use_rela_p): Likewise.
199 (elf_backend_rela_normal): Likewise.
200 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
201
202 2006-03-06 Nathan Sidwell <nathan@codesourcery.com>
203
204 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
205 New. Adjust other variants.
206 (bfd_default_scan): Update.
207 * bfd-in2.h: Rebuilt.
208 * cpu-m68k.c: Adjust.
209 (bfd_m68k_compatible): New. Use it for architectures.
210 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
211 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
212 mismatch.
213 (elf32_m68k_print_private_bfd_data): Adjust.
214 * ieee.c (ieee_write_processor): Adjust.
215
216 2006-03-06 Alan Modra <amodra@bigpond.net.au>
217
218 * dwarf2.c: Formatting.
219 (add_line_info): Remove outer loop.
220
221 2006-03-05 H.J. Lu <hongjiu.lu@intel.com>
222 Alan Modra <amodra@bigpond.net.au>
223
224 PR binutils/2338
225 * dwarf2.c (loadable_section): New struct.
226 (dwarf2_debug): Add loadable_section_count and
227 loadable_sections.
228 (new_line_sorts_after): New.
229 (add_line_info): Use new_line_sorts_after to compare line
230 addresses.
231 (check_function_name): Removed.
232 (unset_sections): New.
233 (place_sections): New.
234 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
235 and unset_sections on relocatable files.
236 (_bfd_dwarf2_find_line): Likewise.
237
238 2006-03-03 Nick Clifton <nickc@redhat.com>
239
240 * cpu-avr.c: Update to ISO-C90 formatting.
241 * elf32-avr.c: Likewise.
242
243 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
244
245 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
246 and R_AVR_MS8_LDI
247 (bfd_elf_avr_final_write_processing): Set
248 EF_AVR_LINKRELAX_PREPARED in e_flags field.
249 (elf32_avr_relax_section): New function.
250 (elf32_avr_relax_delete_bytes): New function.
251 (elf32_avr_get_relocated_section_contents): New function.
252 (avr_pc_wrap_around): New function.
253 (avr_relative_distance_considering_wrap_around): New function.
254 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
255 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
256 * libbfd.h: Regenerate.
257 * bfd-in2.h: Regenerate.
258
259 2006-03-02 DJ Delorie <dj@redhat.com>
260
261 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
262 calculations.
263
264 2006-03-02 Richard Sandiford <richard@codesourcery.com>
265
266 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
267 bfd_elf32_powerpc_vxworks_vec.
268
269 2006-03-02 Nick Clifton <nickc@redhat.com>
270
271 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
272
273 2006-03-02 Richard Sandiford <richard@codesourcery.com>
274
275 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
276 elf_vxworks_create_dynamic_sections.
277 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
278 symbol handling.
279 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
280 elf_vxworks_create_dynamic_sections.
281 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
282 symbol handling.
283 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
284 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
285
286 2006-03-02 Richard Sandiford <richard@codesourcery.com>
287
288 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
289 (elf_backend_link_output_symbol_hook): Use
290 elf_vxworks_link_output_symbol_hook instead.
291 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
292 (elf_backend_link_output_symbol_hook): Use
293 elf_vxworks_link_output_symbol_hook instead.
294 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
295 same interface as elf_backend_link_output_symbol_hook.
296 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
297 prototype accordingly.
298
299 2006-03-02 Richard Sandiford <richard@codesourcery.com>
300
301 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
302 (ppc_elf_link_hash_table): Replace old_got and new_got with
303 plt_type and can_use_new_plt.
304 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
305 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
306 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
307 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
308 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
309 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
310 this function should not be called for VxWorks targets.
311 (ppc_elf_tls_setup): Use plt_type instead of old_got.
312 (allocate_got): Likewise. Rearrange so that max_before_header
313 is only used for PLT_OLD and PLT_NEW.
314 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
315 (ppc_elf_size_dynamic_sections): Likewise.
316 (ppc_elf_relax_section): Likewise.
317 (ppc_elf_relocate_section): Likewise.
318 (ppc_elf_finish_dynamic_symbol): Likewise.
319 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
320
321 2006-02-28 Richard Sandiford <richard@codesourcery.com>
322
323 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
324 (elf_i386_link_hash_table_create): Initialize it.
325 (elf_i386_compute_jump_table_size): Use it instead of
326 srelplt->reloc_count.
327 (allocate_dynrelocs): Likewise.
328 (elf_i386_size_dynamic_sections): Likewise.
329 (elf_i386_relocate_section): Likewise.
330
331 2006-02-27 Jakub Jelinek <jakub@redhat.com>
332
333 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
334 (_bfd_elf_write_section_eh_frame): Likewise.
335
336 2006-02-27 Carlos O'Donell <carlos@codesourcery.com>
337
338 * po/Make-in: Add html target.
339
340 2006-02-27 Richard Sandiford <richard@codesourcery.com>
341
342 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
343 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
344 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
345 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
346 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
347 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
348 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
349 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
350 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
351 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
352 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
353 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
354 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
355 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
356 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
357 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
358 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
359 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
360 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
361 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
362 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
363
364 2006-02-25 Richard Sandiford <richard@codesourcery.com>
365
366 * elf-bfd.h (elf_link_hash_table): Add hplt field.
367 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
368 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
369 * elf32-frv.c (_frv_create_got_section): Likewise.
370 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
371 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
372 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
373 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
374 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
375 (elf_i386_link_hash_table_create): Don't initialize them.
376 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
377 hgot fields.
378 (elf_i386_finish_dynamic_symbol): Likewise.
379 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
380 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
381 (ppc_elf_finish_dynamic_symbol): Likewise.
382
383 2006-02-24 DJ Delorie <dj@redhat.com>
384
385 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
386 (m32c_elf_relocate_section): Don't relocate them.
387 (compare_reloc): New.
388 (relax_reloc): Remove.
389 (m32c_offset_for_reloc): New.
390 (m16c_addr_encodings): New.
391 (m16c_jmpaddr_encodings): New.
392 (m32c_addr_encodings): New.
393 (m32c_elf_relax_section): Relax jumps and address displacements.
394 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
395 short jumps.
396
397 * reloc.c: Add m32c relax relocs.
398 * libbfd.h: Regenerate.
399 * bfd-in2.h: Regenerate.
400
401 2006-02-24 H.J. Lu <hongjiu.lu@intel.com>
402
403 PR ld/2218
404 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
405 (_bfd_elf_link_hash_fixup_symbol): New.
406
407 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
408 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
409 it isn't NULL.
410
411 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
412
413 * elfxx-target.h (elf_backend_fixup_symbol): New.
414 (elfNN_bed): Initialize elf_backend_fixup_symbol.
415
416 2006-02-23 H.J. Lu <hongjiu.lu@intel.com>
417
418 * cpu-ia64-opc.c (ins_immu5b): New.
419 (ext_immu5b): Likewise.
420 (elf64_ia64_operands): Add IMMU5b.
421
422 2006-02-21 Alan Modra <amodra@bigpond.net.au>
423
424 PR ld/2218
425 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
426 is dynamic.
427 * elf32-hppa.c (allocate_dynrelocs): Likewise.
428 * elf32-i386.c (allocate_dynrelocs): Likewise.
429 * elf32-s390.c (allocate_dynrelocs): Likewise.
430 * elf32-sh.c (allocate_dynrelocs): Likewise.
431 * elf64-s390.c (allocate_dynrelocs): Likewise.
432 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
433 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
434 on undef weak with non-default visibility too.
435 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
436
437 2006-02-21 Alan Modra <amodra@bigpond.net.au>
438
439 * bfd.c: (_bfd_default_error_handler): Don't call abort on
440 error, instead call _exit.
441 (_bfd_abort): Call _exit not xexit.
442
443 2006-02-17 Kevin Buettner <kevinb@redhat.com>
444
445 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
446 New functions.
447 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
448
449 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
450 Anil Paranjape <anilp1@kpitcummins.com>
451 Shilin Shakti <shilins@kpitcummins.com>
452
453 * Makefile.am: Add xc16x related entry
454 * Makefile.in: Regenerate
455 * archures.c: Add bfd_xc16x_arch
456 * bfd-in2.h: Regenerate
457 * config.bfd: Add xc16x-*-elf
458 * configure.in: Add bfd_elf32_xc16x_vec
459 * configure: Regenerate.
460 * targets.c: Added xc16x related information
461 * cpu-xc16x.c: New file
462 * reloc.c: Add new relocations specific to xc16x:
463 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
464 BFD_RELOC_XC16X_SOF
465 * elf32-xc16x.c: New file.
466
467 2006-02-17 Alan Modra <amodra@bigpond.net.au>
468
469 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
470 * elf64-ppc.c (allocate_dynrelocs): Likewise.
471
472 2006-02-17 Alan Modra <amodra@bigpond.net.au>
473
474 PR ld/2218
475 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
476 dynamic.
477 (ppc64_elf_relocate_section): Check output reloc section size.
478 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
479
480 2006-02-16 H.J. Lu <hongjiu.lu@intel.com>
481
482 PR ld/2322
483 * elf.c (get_segment_type): New function.
484 (_bfd_elf_print_private_bfd_data): Use it.
485 (print_segment_map): New function.
486 (assign_file_positions_for_segments): Call print_segment_map
487 when there are not enough room for program headers.
488
489 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
490
491 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
492 traditional MIPS ELF targets.
493
494 2006-02-15 H.J. Lu <hongjiu.lu@intel.com>
495
496 PR binutils/2338
497 * dwarf2.c (check_function_name): New function.
498 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
499 check if function is correct.
500
501 2006-02-16 Alan Modra <amodra@bigpond.net.au>
502
503 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
504 debug sections.
505 (elf_link_input_bfd): Adjust comments.
506
507 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
508
509 * elf.c (copy_private_bfd_data): Minor update.
510
511 2006-02-10 H.J. Lu <hongjiu.lu@intel.com>
512
513 PR binutils/2258
514 * elf.c (copy_private_bfd_data): Renamed to ...
515 (rewrite_elf_program_header): This.
516 (copy_elf_program_header): New function.
517 (copy_private_bfd_data): Likewise.
518
519 2006-02-07 Nathan Sidwell <nathan@codesourcery.com>
520
521 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
522 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
523 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
524 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
525 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
526 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
527 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
528 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
529 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
530 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
531 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
532 bfd_mach_mcf_isa_b_usp_float_emac): New.
533 (bfd_default_scan): Update coldfire mapping.
534 * bfd-in.h (bfd_m68k_mach_to_features,
535 bfd_m68k_features_to_mach): Declare.
536 * bfd-in2.h: Rebuilt.
537 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
538 adjust legacy names.
539 (m68k_arch_features): New.
540 (bfd_m68k_mach_to_features,
541 bfd_m68k_features_to_mach): Define.
542 * elf32-m68k.c (elf32_m68k_object_p): New.
543 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
544 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
545 (elf_backend_object_p): Define.
546 * ieee.c (ieee_write_processor): Update coldfire machines.
547 * libbfd.h: Rebuilt.
548
549 2006-02-06 Steve Ellcey <sje@cup.hp.com>
550
551 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
552 if SHF_TLS is set.
553
554 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
555
556 * coff-z80.c (r_imm24): New howto.
557 (rtype2howto): New case R_IMM24.
558 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
559 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
560
561 2006-02-04 Richard Sandiford <richard@codesourcery.com>
562
563 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
564 has already been assigned a GOT index, copy that index to the
565 current hash table entry.
566
567 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
568
569 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
570 for call-to-undefweak reloc overflow.
571
572 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
573
574 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
575 for 32-bit relocs overflow.
576
577 2006-01-27 Paul Brook <paul@codesourcery.com>
578
579 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
580 objects.
581
582 2006-01-18 Alexandre Oliva <aoliva@redhat.com>
583
584 Introduce TLS descriptors for i386 and x86_64.
585 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
586 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
587 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
588 * libbfd.h, bfd-in2.h: Rebuilt.
589 * elf32-i386.c (elf_howto_table): New relocations.
590 (R_386_tls): Adjust.
591 (elf_i386_reloc_type_lookup): Map new relocations.
592 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
593 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
594 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
595 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
596 (elf_i386_local_tlsdesc_gotent): New macro.
597 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
598 (elf_i386_compute_jump_table_size): New macro.
599 (link_hash_newfunc): Initialize tlsdesc_got.
600 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
601 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
602 R_386_TLS_DESC_CALL.
603 (elf_i386_check_relocs): Likewise. Allocate space for
604 local_tlsdesc_gotent.
605 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
606 R_386_TLS_DESC_CALL.
607 (allocate_dynrelocs): Count function PLT relocations. Reserve
608 space for TLS descriptors and relocations.
609 (elf_i386_size_dynamic_sections): Reserve space for TLS
610 descriptors and relocations. Set up sgotplt_jump_table_size.
611 Don't zero reloc_count in srelplt.
612 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
613 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
614 R_386_TLS_DESC_CALL.
615 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
616 (elf_backend_always_size_sections): Define.
617 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
618 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
619 (R_X86_64_standard): Adjust.
620 (x86_64_reloc_map): Map new relocs.
621 (elf64_x86_64_rtype_to_howto): New, split out of...
622 (elf64_x86_64_info_to_howto): ... this function, and...
623 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
624 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
625 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
626 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
627 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
628 (elf64_x86_64_local_tlsdesc_gotent): New macro.
629 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
630 tlsdesc_got and sgotplt_jump_table_size fields.
631 (elf64_x86_64_compute_jump_table_size): New macro.
632 (link_hash_newfunc): Initialize tlsdesc_got.
633 (elf64_x86_64_link_hash_table_create): Initialize new fields.
634 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
635 R_X86_64_TLSDESC_CALL.
636 (elf64_x86_64_check_relocs): Likewise. Allocate space for
637 local_tlsdesc_gotent.
638 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
639 R_X86_64_TLSDESC_CALL.
640 (allocate_dynrelocs): Count function PLT relocations. Reserve
641 space for TLS descriptors and relocations.
642 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
643 descriptors and relocations. Set up sgotplt_jump_table_size,
644 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
645 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
646 and DT_TLSDESC_GOT.
647 (elf64_x86_64_always_size_sections): New. Set up
648 _TLS_MODULE_BASE_.
649 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
650 R_386_TLS_DESC_CALL.
651 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
652 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
653 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
654 (elf_backend_always_size_sections): Define.
655
656 2006-01-17 H.J. Lu <hongjiu.lu@intel.com>
657
658 PR binutils/2096
659 * dwarf2.c (comp_unit_contains_address): Update comment.
660 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
661 lma. Return TRUE only if both comp_unit_contains_address and
662 comp_unit_find_nearest_line return TRUE.
663 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
664
665 2006-01-18 Alan Modra <amodra@bigpond.net.au>
666
667 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
668 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
669 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
670 elf_gc_mark_dynamic_ref_symbol. Make global.
671 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
672 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
673 (elfNN_bed): Init new field.
674 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
675 (ppc64_elf_gc_mark_dynamic_ref): New function.
676
677 2006-01-17 Alan Modra <amodra@bigpond.net.au>
678
679 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
680
681 2006-01-17 Nick Clifton <nickc@redhat.com>
682
683 PR binutils/2159
684 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
685 parameters.
686
687 2006-01-11 Nick Clifton <nickc@redhat.com>
688
689 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
690 into the newly (re)allocated map array.
691
692 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
693
694 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
695
696 2006-01-01 Jakub Jelinek <jakub@redhat.com>
697
698 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
699 for .toc1 section.
700
701 For older changes see ChangeLog-2005
702 \f
703 Local Variables:
704 mode: change-log
705 left-margin: 8
706 fill-column: 74
707 version-control: never
708 End:
This page took 0.042615 seconds and 5 git commands to generate.