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