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