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