]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blame - bfd/ChangeLog
Fix typo in documentation of --check-sections.
[thirdparty/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
35520cb7
DD
12006-04-06 DJ Delorie <dj@redhat.com>
2
3 * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for
4 each plt entry we create.
5
108a6f8e
CD
62006-04-06 Carlos O'Donell <carlos@codesourcery.com>
7
8 * po/Make-in: Add install-html target.
9 * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir
10 htmldir. Add install-html and install-html-recursive targets.
11 * Makefile.in: Regenerate.
12 * configure.in: AC_SUBST for datarootdir, docdir and htmldir.
13 * configure: Regenerate.
14
fbbc3759
L
152006-04-06 H.J. Lu <hongjiu.lu@intel.com>
16
17 * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes
18 with the skip_relax_pass_0 and skip_relax_pass_1 bits in the
19 section structure.
20
17e226a8
BS
212006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
22
23 * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to
24 eliminate warnings.
25
396a682d
L
262006-04-05 H.J. Lu <hongjiu.lu@intel.com>
27 James E Wilson <wilson@specifixinc.com>
28
29 PR ld/2442
30 * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next.
31 (elfNN_ia64_local_hash_entry): Add count, sorted_count and
32 size.
33 (elfNN_ia64_link_hash_entry): Likewise.
34 (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count
35 and size.
36 (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info
37 processing.
38 (elfNN_ia64_hash_hide_symbol): Likewise.
39 (elfNN_ia64_global_dyn_sym_thunk): Likewise.
40 (elfNN_ia64_local_dyn_sym_thunk): Likewise.
41 (elfNN_ia64_global_dyn_info_free): New function.
42 (elfNN_ia64_local_dyn_info_free): Likewise.
43 (elfNN_ia64_hash_table_free): Free local and global
44 elfNN_ia64_dyn_sym_info.
45 (addend_compare): New function.
46 (sort_dyn_sym_info): Likewise.
47 (get_dyn_sym_info): Updated to use binary search for addend.
48 (elfNN_ia64_check_relocs): Scan relocations to create dynamic
49 relocation arrays first.
50
0781db9f
BS
512006-04-05 Bernd Schmidt <bernd.schmidt@analog.com>
52
53 * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp
54 symbol.
55
c0d5a53d
L
562006-04-05 H.J. Lu <hongjiu.lu@intel.com>
57
58 PR ld/2411
59 * elflink.c (check_dynsym): New.
60 (elf_link_output_extsym): Use it.
61 (bfd_elf_final_link): Likewise.
62
580a2b6e
L
632006-04-05 H.J. Lu <hongjiu.lu@intel.com>
64
65 PR ld/2404
66 * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect
67 symbol from the dynamic definition with the default version if
68 its type and the type of existing regular definition mismatch.
69
910600e9
RS
702006-04-05 Richard Sandiford <richard@codesourcery.com>
71 Daniel Jacobowitz <dan@codesourcery.com>
72
73 * config.bfd (sparc-*-vxworks*): New stanza.
74 * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza.
75 (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo.
76 * configure: Regenerate.
77 * elf32-sparc.c: Include elf-vxworks.h.
78 (elf32_sparc_vxworks_link_hash_table_create: New.
79 (elf32_sparc_vxworks_final_write_processing): New.
80 (TARGET_BIG_SYM): Override for VxWorks.
81 (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise.
82 (bfd_elf32_bfd_link_hash_table_create): Likewise.
83 (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise.
84 (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise.
85 (elf_backend_link_output_symbol_hook): Likewise.
86 (elf_backend_emit_relocs): Likewise.
87 (elf_backend_final_write_processing, elf32_bed): Likewise.
88 * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h.
89 (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New.
90 (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New.
91 (_bfd_sparc_elf_link_hash_table_create): Don't initialize
92 build_plt_entry here.
93 (create_got_section): Initialize sgotplt for VxWorks.
94 (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry,
95 plt_header_size and plt_entry_size, with new VxWorks-specific settings.
96 Call elf_vxworks_create_dynamic_sections for VxWorks.
97 (allocate_dynrelocs): Use plt_header_size and plt_entry_size.
98 Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks.
99 (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt
100 for VxWorks. Check for the .got.plt section.
101 (sparc_vxworks_build_plt_entry): New function.
102 (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs.
103 Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_
104 absolute on VxWorks.
105 (sparc32_finish_dyn): Add special handling for DT_RELASZ
106 and DT_PLTGOT on VxWorks.
107 (sparc_vxworks_finish_exec_plt): New.
108 (sparc_vxworks_finish_shared_plt): New.
109 (_bfd_sparc_elf_finish_dynamic_sections): Call them.
110 Use plt_header_size and plt_entry_size.
111 * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks,
112 srelplt2, sgotplt, plt_header_size and plt_entry_size fields.
113 * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h.
114 (elf32-sparc.lo): Likewise.
115 * Makefile.in: Regenerate.
116 * targets.c (bfd_elf32_sparc_vxworks_vec): Declare.
117 (_bfd_target_vector): Add a pointer to it.
118
b761a207
BE
1192006-03-30 Ben Elliston <bje@au.ibm.com>
120
121 PR ld/2267
122 * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a
123 special section number that exceeds the number of ELF sections
124 (eg. SHN_MIPS_SCOMMON).
125
ead49a57
RS
1262006-03-27 Richard Sandiford <richard@codesourcery.com>
127
128 * elfxx-mips.c (mips_got_entry): Add more commentary.
129 (mips_elf_local_got_index): Use the hash table entry to record
130 the GOT index of forced-local symbols.
131 (mips_elf_initialize_tls_index): Rearrange code. Store the index
132 in either the hash table entry or the mips_got_entry, not both.
133 Add more commentary.
134 (mips_elf_multi_got): Make sure the g->next is nonnull when calling
135 mips_elf_initialize_tls_index.
136
3b55e94a
BS
1372006-03-25 Bernd Schmidt <bernd.schmidt@analog.com>
138
139 * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc,
140 RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty,
141 reloc_stack_push, reloc_stack_pop, reloc_stack_operate,
142 bfin_areloc_howto_table): Delete. All
143 uses deleted as well.
144 (bfin_reloc_map): Delete all stack relocs.
145 (bfin_info_to_howto, bfin_bfd_reloc_type_lookup,
146 bfin_reloc_type_lookup): Don't support them.
147 (bfin_relocate_section): Don't try to handle them.
148
48d502e1
BS
149 * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec.
150 * configure.in: Likewise.
151 * configure: Regenerate.
152 * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h".
153 (BFIN_RELOC_MAX): Now 0x21.
154 (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs.
155 (bfd_elf32_bfinfdpic_vec): Declare.
156 (IS_FDPIC): New macro.
157 (struct bfinfdpic_elf_link_hash_table): New struct.
158 (bfinfdpic_hash_table, bfinfdpic_got_section,
159 bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section,
160 bfinfdpic_plt_setion, bfinfdpic_pltrel_section,
161 bfinfdpic_relocs_info, bfinfdpic_got_initial_offset,
162 bfinfdpic_plt_initial_offset): Accessor macros for it.
163 (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros.
164 (struct bfinfdpic_relocs_info): New struct.
165 (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES,
166 BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC,
167 DEFAULT_STACK_SIZE): New macros.
168 (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash,
169 bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find,
170 bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local,
171 bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc,
172 _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment,
173 _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section,
174 bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook,
175 _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section,
176 elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry,
177 _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry,
178 _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries,
179 _bfinfdpic_resolve_final_relocs_info,
180 elf32_bfinfdpic_size_dynamic_sections,
181 elf32_bfinfdpic_always_size_sections,
182 elf32_bfinfdpic_modify_segment_map,
183 _bfinfdpic_count_got_plt_entries,
184 elf32_bfinfdpic_finish_dynamic_sections,
185 elf32_bfinfdpic_adjust_dynamic_symbol,
186 elf32_bfinfdpic_finish_dynamic_symbol,
187 elf32_bfinfdpic_elf_use_relative_eh_frame,
188 elf32_bfinfdpic_elf_encode_eh_address,
189 elf32_bfin_object_p, bfin_elf_copy_private_bfd_data,
190 elf32_bfinfdpic_copy_private_bfd_data,
191 (struct _bfinfdpic_dynamic_got_info,
192 struct _bfinfdpic_dynamic_got_plt_info): New structs.
193 (elf32_bfin_print_private_bfd_data): Print PIC flags.
194 (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC.
195 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed,
196 elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create,
197 elf_backend_always_size_sectinos, elf_backend_modify_segment_map,
198 bfd_elf32_bfd_copy_private_bfd_data,
199 elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol,
200 elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol,
201 elf_backend_finish_dynamic_sections, elf_backend_relocate_section,
202 elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs,
203 elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p,
204 elf_backend_may_use_rela_p, elf_backend_default_use_rela_p,
205 elf_backend_omit_section_dynsym): Redefine these macros and include
206 "elf32-target.h" again to create the elf32-bfinfdpic target.
207 * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI,
208 BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC,
209 BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI,
210 BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE,
211 BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI,
212 BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI,
213 BFD_RELOC_BFIN_GOTOFFLO): New.
214 * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target.
215 (_bfd_target_vector): Add it.
216 * bfd-in2.h: Regenerate.
217 * libbfd.h: Regenerate.
218
a9d34880
RS
2192006-03-25 Richard Sandiford <richard@codesourcery.com>
220
221 * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as
222 incompatible. Likewise MAC and EMAC code.
223 * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use
224 bfd_get_compatible to set the new bfd architecture. Rely on it
225 to detect incompatibilities.
226
2a23c2c5
BW
2272006-03-22 Bob Wilson <bob.wilson@acm.org>
228
229 * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that
230 rel->r_addend is zero.
231
6d79d2ed
RS
2322006-03-22 Richard Sandiford <richard@codesourcery.com>
233
234 * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type
235 of "loc".
236
0a44bf69
RS
2372006-03-22 Richard Sandiford <richard@codesourcery.com>
238 Daniel Jacobowitz <dan@codesourcery.com>
239 Phil Edwards <phil@codesourcery.com>
240 Zack Weinberg <zack@codesourcery.com>
241 Mark Mitchell <mark@codesourcery.com>
242 Nathan Sidwell <nathan@codesourcery.com>
243
244 * bfd-in2.h: Regenerate.
245 * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas.
246 * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza.
247 (bfd_elf32_littlemips_vxworks_vec): Likewise.
248 (bfd_elf32_bigmips_vec): Add elf-vxworks.lo.
249 (bfd_elf32_littlemips_vec): Likewise.
250 (bfd_elf32_nbigmips_vec): Likewise.
251 (bfd_elf32_nlittlemips_vec): Likewise.
252 (bfd_elf32_ntradbigmips_vec): Likewise.
253 (bfd_elf32_ntradlittlemips_vec): Likewise.
254 (bfd_elf32_tradbigmips_vec): Likewise.
255 (bfd_elf32_tradlittlemips_vec): Likewise.
256 (bfd_elf64_bigmips_vec): Likewise.
257 (bfd_elf64_littlemips_vec): Likewise.
258 (bfd_elf64_tradbigmips_vec): Likewise.
259 (bfd_elf64_tradlittlemips_vec): Likewise.
260 * elf32-mips.c: Include elf-vxworks.h.
261 (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto
262 instead of calling mips_elf32_rtype_to_howto directly.
263 (mips_vxworks_copy_howto_rela): New reloc howto.
264 (mips_vxworks_jump_slot_howto_rela): Likewise.
265 (mips_vxworks_bfd_reloc_type_lookup): New function.
266 (mips_vxworks_rtype_to_howto): Likewise.
267 (mips_vxworks_final_write_processing): Likewise.
268 (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks.
269 (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise.
270 (elf_backend_want_got_plt): Likewise.
271 (elf_backend_want_plt_sym): Likewise.
272 (elf_backend_got_symbol_offset): Likewise.
273 (elf_backend_want_dynbss): Likewise.
274 (elf_backend_may_use_rel_p): Likewise.
275 (elf_backend_may_use_rela_p): Likewise.
276 (elf_backend_default_use_rela_p): Likewise.
277 (elf_backend_got_header_size: Likewise.
278 (elf_backend_plt_readonly): Likewise.
279 (bfd_elf32_bfd_reloc_type_lookup): Likewise.
280 (elf_backend_mips_rtype_to_howto): Likewise.
281 (elf_backend_adjust_dynamic_symbol): Likewise.
282 (elf_backend_finish_dynamic_symbol): Likewise.
283 (bfd_elf32_bfd_link_hash_table_create): Likewise.
284 (elf_backend_add_symbol_hook): Likewise.
285 (elf_backend_link_output_symbol_hook): Likewise.
286 (elf_backend_emit_relocs): Likewise.
287 (elf_backend_final_write_processing: Likewise.
288 (elf_backend_additional_program_headers): Likewise.
289 (elf_backend_modify_segment_map): Likewise.
290 (elf_backend_symbol_processing): Likewise.
291 * elfxx-mips.c: Include elf-vxworks.h.
292 (mips_elf_link_hash_entry): Add is_relocation_target and
293 is_branch_target fields.
294 (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt,
295 srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields.
296 (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros.
297 (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument.
298 Return 3 for VxWorks.
299 (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a
300 mips_elf_link_hash_table. Return 0 for VxWorks.
301 (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a
302 mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET.
303 (mips_vxworks_exec_plt0_entry): New variable.
304 (mips_vxworks_exec_plt_entry): Likewise.
305 (mips_vxworks_shared_plt0_entry): Likewise.
306 (mips_vxworks_shared_plt_entry): Likewise.
307 (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields.
308 (mips_elf_rel_dyn_section): Change the bfd argument to a
309 mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get
310 the name of the section.
311 (mips_elf_initialize_tls_slots): Update the call to
312 mips_elf_rel_dyn_section.
313 (mips_elf_gotplt_index): New function.
314 (mips_elf_local_got_index): Add an input_section argument.
315 Update the call to mips_elf_create_local_got_entry.
316 (mips_elf_got_page): Likewise.
317 (mips_elf_got16_entry): Likewise.
318 (mips_elf_create_local_got_entry): Add bfd_link_info and input_section
319 arguments. Create dynamic relocations for each entry on VxWorks.
320 (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE.
321 (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE
322 and MIPS_RESERVED_GOTNO.
323 (mips_elf_create_got_section): Update the uses of
324 MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks.
325 (is_gott_symbol): New function.
326 (mips_elf_calculate_relocation): Use a dynobj local variable.
327 Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and
328 mips_elf_got_page_entry. Set G to the .got.plt entry when calculating
329 VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT
330 relocations on VxWorks. Add dynamic relocations for references
331 to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't
332 create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64
333 in VxWorks executables.
334 (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument.
335 Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry.
336 Don't allocate a null entry on VxWorks.
337 (mips_elf_create_dynamic_relocation): Update the call to
338 mips_elf_rel_dyn_section. Use absolute rather than relative
339 relocations for VxWorks, and make them RELA rather than REL.
340 (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic
341 read-only on VxWorks. Update the call to mips_elf_rel_dyn_section.
342 Create the .plt, .rela.plt, .dynbss and .rela.bss sections on
343 VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol.
344 Call elf_vxworks_create_dynamic_sections for VxWorks and
345 initialize the plt_header_size and plt_entry_size fields.
346 (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be
347 used in VxWorks executables. Don't allocate dynamic relocations
348 for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables.
349 Set is_relocation_target for each symbol referenced by a relocation.
350 Allocate .rela.dyn entries for relocations against the special
351 VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT
352 entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate
353 a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*,
354 R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls
355 to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations.
356 Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26
357 relocations. Don't set no_fn_stub on VxWorks.
358 (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to
359 mips_elf_allocate_dynamic_relocations.
360 (_bfd_mips_vxworks_adjust_dynamic_symbol): New function.
361 (_bfd_mips_elf_always_size_sections): Do not allocate GOT page
362 entries for VxWorks, and do not create multiple GOTs.
363 (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME.
364 Handle .got specially for VxWorks. Update the uses of
365 MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations.
366 Check for sgotplt and splt. Allocate the .rel(a).dyn contents last,
367 once its final size is known. Set DF_TEXTREL for VxWorks. Add
368 DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL
369 tags on VxWorks. Do not add the MIPS-specific tags for VxWorks.
370 (_bfd_mips_vxworks_finish_dynamic_symbol): New function.
371 (mips_vxworks_finish_exec_plt): Likewise.
372 (mips_vxworks_finish_shared_plt): Likewise.
373 (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call
374 to mips_elf_rel_dyn_section. Use a VxWorks-specific value of
375 DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL,
376 DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO
377 and mips_elf_rel_dyn_section. Use a different GOT header for
378 VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks.
379 (_bfd_mips_elf_link_hash_table_create): Initialize the new
380 mips_elf_link_hash_table fields.
381 (_bfd_mips_vxworks_link_hash_table_create): New function.
382 (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_
383 on VxWorks. Update the call to ELF_MIPS_GP_OFFSET.
384 * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare.
385 (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise.
386 (_bfd_mips_vxworks_link_hash_table_create): Likewise.
387 * libbfd.h: Regenerate.
388 * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h.
389 (elf32-mips.lo): Likewise.
390 * Makefile.in: Regenerate.
391 * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare.
392 * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare.
393 (bfd_elf32_littlemips_vxworks_vec): Likewise.
394 (_bfd_target_vector): Add entries for them.
395
a2199086
DA
3962006-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
397
398 * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss
399 section from SHF_PARISC_WEAKORDER to SHF_HP_TLS.
400 (elf_backend_special_sections): Remove #undef.
401
af7cfa33
DA
4022006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
403
404 * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry
405 for undefined weak symbols.
406
a4676736
L
4072006-03-17 Daniel Jacobowitz <dan@codesourcery.com>
408
409 PR ld/2462
410 * elflink.c (bfd_elf_final_link): Remove
411 bed->elf_backend_emit_relocs from emit_relocs.
412
e1710606
AO
4132006-03-17 Alexandre Oliva <aoliva@redhat.com>
414
415 * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from
416 first relocation to the second when relaxing TLS GD to LE;
417 zero it out when relaxing to IE.
418
2de92251
AM
4192006-03-17 Alan Modra <amodra@bigpond.net.au>
420
421 PR 2434
422 * elflink.c (elf_link_add_object_symbols): Save and restore
423 warning sym's linked sym.
424
66eb6687
AM
4252006-03-16 Alan Modra <amodra@bigpond.net.au>
426
427 PR 2434
428 * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete.
429 (elf_link_add_object_symbols): Delete unnecessary locals. Rename
430 hash_table -> htab. Formatting. Save entire symbol table
431 before loading as-needed syms, and restore afterwards if lib not
432 needed. Use bfd_hash_allocate rather than bfd_alloc for sym
433 name. Free some buffers earlier.
434 * bfd-in.h (struct bfd_hash_table): Add entsize.
435 (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype.
436 * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise
437 * hash.c (bfd_hash_table_init_n): Add entsize param, save to
438 hash table.
439 (bfd_hash_table_init): Add param, adjust calls.
440 * aoutx.h: Adjust all hash_table_init functions and calls.
441 * bfd.c: Likewise.
442 * coff-arm.c: Likewise.
443 * coff-h8300.c: Likewise.
444 * coff-ppc.c: Likewise.
445 * cofflink.c: Likewise.
446 * ecoff.c: Likewise.
447 * ecofflink.c: Likewise.
448 * elf-m10300.c: Likewise.
449 * elf-strtab.c: Likewise.
450 * elf.c: Likewise.
451 * elf32-arm.c: Likewise.
452 * elf32-bfin.c: Likewise.
453 * elf32-cris.c: Likewise.
454 * elf32-frv.c: Likewise.
455 * elf32-hppa.c: Likewise.
456 * elf32-i386.c: Likewise.
457 * elf32-m32r.c: Likewise.
458 * elf32-m68hc1x.c: Likewise.
459 * elf32-m68k.c: Likewise.
460 * elf32-ppc.c: Likewise.
461 * elf32-s390.c: Likewise.
462 * elf32-sh.c: Likewise.
463 * elf32-vax.c: Likewise.
464 * elf64-alpha.c: Likewise.
465 * elf64-hppa.c: Likewise.
466 * elf64-ppc.c: Likewise.
467 * elf64-s390.c: Likewise.
468 * elf64-sh64.c: Likewise.
469 * elf64-x86-64.c: Likewise.
470 * elfxx-ia64.c: Likewise.
471 * elfxx-mips.c: Likewise.
472 * elfxx-sparc.c: Likewise.
473 * i386linux.c: Likewise.
474 * libaout.h: Likewise.
475 * libbfd-in.h: Likewise.
476 * libcoff-in.h: Likewise.
477 * linker.c: Likewise.
478 * m68klinux.c: Likewise.
479 * merge.c: Likewise.
480 * opncls.c: Likewise.
481 * pdp11.c: Likewise.
482 * sparclinux.c: Likewise.
483 * stabs.c: Likewise.
484 * sunos.c: Likewise.
485 * vms.c: Likewise.
486 * xcofflink.c: Likewise.
487 * section.c (struct section_hash_entry): Move to..
488 * libbfd-in.h: ..here.
489 * Makefile.am: Run "make dep-am"
490 * Makefile.in: Regenerate.
491 * bfd-in2.h: Regenerate.
492 * libbfd.h: Regenerate.
493 * libcoff.h: Regenerate.
494
7123df0e
AM
4952006-03-16 Alan Modra <amodra@bigpond.net.au>
496
497 * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs
498 against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak
499 last change to REL32 relocs so that they are counted as
500 possibly dynamic as per REL24 and REL14.
501
fd38b44c
AM
5022006-03-16 Alan Modra <amodra@bigpond.net.au>
503
504 * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24
505 checks from REL32.
506
eb111b1f
BE
5072006-03-15 Ben Elliston <bje@au.ibm.com>
508
509 * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all
510 in_list elements, not just the first.
511
81d43bff
RS
5122006-03-14 Richard Sandiford <richard@codesourcery.com>
513
514 * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split
515 out from...
516 (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend
517 for final links too.
518
d329bcd1
RS
5192006-03-13 Richard Sandiford <richard@codesourcery.com>
520
521 * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot.
522
75a657ba
L
5232006-03-11 H.J. Lu <hongjiu.lu@intel.com>
524
525 PR ld/2443
526 * dwarf2.c (concat_filename): Don't issue an error if file is
527 0.
528
3a4a14e9
PB
5292006-03-10 Paul Brook <paul@codesourcery.com>
530
531 * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5.
532 (elf32_arm_print_private_bfd_data): Ditto.
533
38406048
PB
5342006-03-09 Paul Brook <paul@codesourcery.com>
535
536 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional
537 mapping symbols.
538
eed62c48
NC
5392006-03-09 Khem Raj <khem@mvista.com>
540
541 * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned
542 char type.
543
6d2cf7d8
L
5442006-03-08 H.J. Lu <hongjiu.lu@intel.com>
545
546 * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp.
547
00a97672
RS
5482006-03-07 Richard Sandiford <richard@codesourcery.com>
549 Daniel Jacobowitz <dan@codesourcery.com>
550 Zack Weinberg <zack@codesourcery.com>
551 Nathan Sidwell <nathan@codesourcery.com>
552 Paul Brook <paul@codesourcery.com>
553 Ricardo Anguiano <anguiano@codesourcery.com>
554 Phil Edwards <phil@codesourcery.com>
555
556 * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo.
557 (bfd_elf32_bigarm_symbian_vec): Likewise.
558 (bfd_elf32_bigarm_vxworks_vec): Likewise.
559 (bfd_elf32_littlearm_vec): Likewise.
560 (bfd_elf32_littlearm_symbian_vec): Likewise.
561 (bfd_elf32_littlearm_vxworks_vec): Likewise.
562 * configure: Regenerate.
563 * elf32-arm.c: Include libiberty.h and elf-vxworks.h.
564 (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros.
565 (elf32_arm_vxworks_bed): Add forward declaration.
566 (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12.
567 (elf32_arm_vxworks_exec_plt0_entry): New table.
568 (elf32_arm_vxworks_exec_plt_entry): Likewise.
569 (elf32_arm_vxworks_shared_plt_entry): Likewise.
570 (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields.
571 (reloc_section_p): New function.
572 (create_got_section): Use RELOC_SECTION.
573 (elf32_arm_create_dynamic_sections): Likewise. Call
574 elf_vxworks_create_dynamic_sections for VxWorks targets.
575 Choose between the two possible values of plt_header_size
576 and plt_entry_size.
577 (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2.
578 (elf32_arm_abs12_reloc): New function.
579 (elf32_arm_final_link_relocate): Call it. Allow the creation of
580 dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p,
581 RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the
582 r_addend fields of relocs. On rela targets, skip any code that
583 adjusts in-place addends. When using _bfd_link_final_relocate
584 to perform a final relocation, pass rel->r_addend as the addend
585 argument.
586 (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks
587 object, ignore flags that are not standard on VxWorks.
588 (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12
589 relocs on VxWorks. Use reloc_section_p.
590 (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE.
591 (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of
592 .rela.plt.unloaded relocs on VxWorks targets.
593 (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for
594 .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags
595 instead of DT_REL* tags on RELA targets.
596 (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE
597 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks
598 PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks.
599 (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE
600 and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ
601 like DT_RELSZ. Handle the VxWorks form of initial PLT entry.
602 Correct the .rela.plt.unreloaded symbol indexes.
603 (elf32_arm_output_symbol_hook): Call the VxWorks version of this
604 hook on VxWorks targets.
605 (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true.
606 Minor formatting tweak.
607 (elf32_arm_vxworks_final_write_processing): New function.
608 (elf_backend_add_symbol_hook): Override for VxWorks and reset
609 for Symbian.
610 (elf_backend_final_write_processing): Likewise.
611 (elf_backend_emit_relocs): Likewise.
612 (elf_backend_want_plt_sym): Likewise.
613 (ELF_MAXPAGESIZE): Likewise.
614 (elf_backend_may_use_rel_p): Minor formatting tweak.
615 (elf_backend_may_use_rela_p): Likewise.
616 (elf_backend_default_use_rela_p): Likewise.
617 (elf_backend_rela_normal): Likewise.
618 * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h.
619
0b2e31dc
NS
6202006-03-06 Nathan Sidwell <nathan@codesourcery.com>
621
622 * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp):
623 New. Adjust other variants.
624 (bfd_default_scan): Update.
625 * bfd-in2.h: Rebuilt.
626 * cpu-m68k.c: Adjust.
627 (bfd_m68k_compatible): New. Use it for architectures.
628 * elf32-m68k.c (elf32_m68k_object_p): Adjust.
629 (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b
630 mismatch.
631 (elf32_m68k_print_private_bfd_data): Adjust.
632 * ieee.c (ieee_write_processor): Adjust.
633
d8d1c398
AM
6342006-03-06 Alan Modra <amodra@bigpond.net.au>
635
636 * dwarf2.c: Formatting.
637 (add_line_info): Remove outer loop.
638
d4c32a81
L
6392006-03-05 H.J. Lu <hongjiu.lu@intel.com>
640 Alan Modra <amodra@bigpond.net.au>
641
642 PR binutils/2338
643 * dwarf2.c (loadable_section): New struct.
644 (dwarf2_debug): Add loadable_section_count and
645 loadable_sections.
646 (new_line_sorts_after): New.
647 (add_line_info): Use new_line_sorts_after to compare line
648 addresses.
649 (check_function_name): Removed.
650 (unset_sections): New.
651 (place_sections): New.
652 (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections
653 and unset_sections on relocatable files.
654 (_bfd_dwarf2_find_line): Likewise.
655
4cdc7696
NC
6562006-03-03 Nick Clifton <nickc@redhat.com>
657
658 * cpu-avr.c: Update to ISO-C90 formatting.
659 * elf32-avr.c: Likewise.
660
df406460
NC
6612006-03-03 Bjoern Haase <bjoern.m.haase@web.de>
662
663 * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI
664 and R_AVR_MS8_LDI
665 (bfd_elf_avr_final_write_processing): Set
666 EF_AVR_LINKRELAX_PREPARED in e_flags field.
667 (elf32_avr_relax_section): New function.
668 (elf32_avr_relax_delete_bytes): New function.
669 (elf32_avr_get_relocated_section_contents): New function.
670 (avr_pc_wrap_around): New function.
671 (avr_relative_distance_considering_wrap_around): New function.
672 (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI.
673 * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG
674 * libbfd.h: Regenerate.
675 * bfd-in2.h: Regenerate.
676
a1013894
DD
6772006-03-02 DJ Delorie <dj@redhat.com>
678
679 * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol
680 calculations.
681
7c492719
RS
6822006-03-02 Richard Sandiford <richard@codesourcery.com>
683
684 * elf32-ppc.c (is_ppc_elf_target): Return true if the target is
685 bfd_elf32_powerpc_vxworks_vec.
686
e970df31
NC
6872006-03-02 Nick Clifton <nickc@redhat.com>
688
689 * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'.
690
711de32c
RS
6912006-03-02 Richard Sandiford <richard@codesourcery.com>
692
693 * elf32-i386.c (elf_i386_create_dynamic_sections): Use
694 elf_vxworks_create_dynamic_sections.
695 (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT
696 symbol handling.
697 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use
698 elf_vxworks_create_dynamic_sections.
699 (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT
700 symbol handling.
701 * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function.
702 * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare.
703
9c72ff84
RS
7042006-03-02 Richard Sandiford <richard@codesourcery.com>
705
706 * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
707 (elf_backend_link_output_symbol_hook): Use
708 elf_vxworks_link_output_symbol_hook instead.
709 * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete.
710 (elf_backend_link_output_symbol_hook): Use
711 elf_vxworks_link_output_symbol_hook instead.
712 * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the
713 same interface as elf_backend_link_output_symbol_hook.
714 * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update
715 prototype accordingly.
716
4a3dc543
RS
7172006-03-02 Richard Sandiford <richard@codesourcery.com>
718
719 * elf32-ppc.c (ppc_elf_plt_type): New enumeration.
720 (ppc_elf_link_hash_table): Replace old_got and new_got with
721 plt_type and can_use_new_plt.
722 (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS,
723 SEC_LOAD and SEC_READONLY to the VxWorks .plt flags.
724 (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt.
725 Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt.
726 (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to
727 either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that
728 this function should not be called for VxWorks targets.
729 (ppc_elf_tls_setup): Use plt_type instead of old_got.
730 (allocate_got): Likewise. Rearrange so that max_before_header
731 is only used for PLT_OLD and PLT_NEW.
732 (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks.
733 (ppc_elf_size_dynamic_sections): Likewise.
734 (ppc_elf_relax_section): Likewise.
735 (ppc_elf_relocate_section): Likewise.
736 (ppc_elf_finish_dynamic_symbol): Likewise.
737 (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type.
738
5ae0bfb6
RS
7392006-02-28 Richard Sandiford <richard@codesourcery.com>
740
741 * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index.
742 (elf_i386_link_hash_table_create): Initialize it.
743 (elf_i386_compute_jump_table_size): Use it instead of
744 srelplt->reloc_count.
745 (allocate_dynrelocs): Likewise.
746 (elf_i386_size_dynamic_sections): Likewise.
747 (elf_i386_relocate_section): Likewise.
748
63752a75
JJ
7492006-02-27 Jakub Jelinek <jakub@redhat.com>
750
751 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag.
752 (_bfd_elf_write_section_eh_frame): Likewise.
753
f7d9e5c3
CD
7542006-02-27 Carlos O'Donell <carlos@codesourcery.com>
755
756 * po/Make-in: Add html target.
757
22edb2f1
RS
7582006-02-27 Richard Sandiford <richard@codesourcery.com>
759
760 * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the
761 cached hgot entry to check for _GLOBAL_OFFSET_TABLE_.
762 * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise.
763 * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise.
764 * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise.
765 * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise.
766 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise.
767 * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise.
768 * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise.
769 * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise.
770 * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise.
771 * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise.
772 * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise.
773 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise.
774 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise.
775 * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use
776 the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_.
777 * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise.
778 * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise.
779 * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise.
780 * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise.
781
7325306f
RS
7822006-02-25 Richard Sandiford <richard@codesourcery.com>
783
784 * elf-bfd.h (elf_link_hash_table): Add hplt field.
785 * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it.
786 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
787 * elf32-frv.c (_frv_create_got_section): Likewise.
788 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise.
789 * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise.
790 * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise.
791 * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise.
792 * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt.
793 (elf_i386_link_hash_table_create): Don't initialize them.
794 (elf_i386_size_dynamic_sections): Use the generic ELF hplt and
795 hgot fields.
796 (elf_i386_finish_dynamic_symbol): Likewise.
797 * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt.
798 (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields.
799 (ppc_elf_finish_dynamic_symbol): Likewise.
800
6772dd07
DD
8012006-02-24 DJ Delorie <dj@redhat.com>
802
803 * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs.
804 (m32c_elf_relocate_section): Don't relocate them.
805 (compare_reloc): New.
806 (relax_reloc): Remove.
807 (m32c_offset_for_reloc): New.
808 (m16c_addr_encodings): New.
809 (m16c_jmpaddr_encodings): New.
810 (m32c_addr_encodings): New.
811 (m32c_elf_relax_section): Relax jumps and address displacements.
812 (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up
813 short jumps.
814
815 * reloc.c: Add m32c relax relocs.
816 * libbfd.h: Regenerate.
817 * bfd-in2.h: Regenerate.
818
508c3946
L
8192006-02-24 H.J. Lu <hongjiu.lu@intel.com>
820
821 PR ld/2218
822 * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol.
823 (_bfd_elf_link_hash_fixup_symbol): New.
824
825 * elflink.c (_bfd_elf_link_hash_fixup_symbol): New.
826 (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if
827 it isn't NULL.
828
829 * elfxx-ia64.c (elf_backend_fixup_symbol): Defined.
830
831 * elfxx-target.h (elf_backend_fixup_symbol): New.
832 (elfNN_bed): Initialize elf_backend_fixup_symbol.
833
59cf82fe
L
8342006-02-23 H.J. Lu <hongjiu.lu@intel.com>
835
836 * cpu-ia64-opc.c (ins_immu5b): New.
837 (ext_immu5b): Likewise.
838 (elf64_ia64_operands): Add IMMU5b.
839
22d606e9
AM
8402006-02-21 Alan Modra <amodra@bigpond.net.au>
841
842 PR ld/2218
843 * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie
844 is dynamic.
845 * elf32-hppa.c (allocate_dynrelocs): Likewise.
846 * elf32-i386.c (allocate_dynrelocs): Likewise.
847 * elf32-s390.c (allocate_dynrelocs): Likewise.
848 * elf32-sh.c (allocate_dynrelocs): Likewise.
849 * elf64-s390.c (allocate_dynrelocs): Likewise.
850 * elf64-x86-64.c (allocate_dynrelocs): Likewise.
851 * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs
852 on undef weak with non-default visibility too.
853 * elfxx-sparc.c (allocate_dynrelocs): Ditto.
854
3168356f
AM
8552006-02-21 Alan Modra <amodra@bigpond.net.au>
856
857 * bfd.c: (_bfd_default_error_handler): Don't call abort on
858 error, instead call _exit.
859 (_bfd_abort): Call _exit not xexit.
860
888b45b8
KB
8612006-02-17 Kevin Buettner <kevinb@redhat.com>
862
863 * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo):
864 New functions.
865 * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define.
866
d70c5fc7
NC
8672006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com>
868 Anil Paranjape <anilp1@kpitcummins.com>
869 Shilin Shakti <shilins@kpitcummins.com>
870
871 * Makefile.am: Add xc16x related entry
872 * Makefile.in: Regenerate
873 * archures.c: Add bfd_xc16x_arch
874 * bfd-in2.h: Regenerate
875 * config.bfd: Add xc16x-*-elf
876 * configure.in: Add bfd_elf32_xc16x_vec
877 * configure: Regenerate.
878 * targets.c: Added xc16x related information
879 * cpu-xc16x.c: New file
880 * reloc.c: Add new relocations specific to xc16x:
881 BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG,
882 BFD_RELOC_XC16X_SOF
883 * elf32-xc16x.c: New file.
884
cab87ef9
AM
8852006-02-17 Alan Modra <amodra@bigpond.net.au>
886
887 * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling.
888 * elf64-ppc.c (allocate_dynrelocs): Likewise.
889
dfbb6ac9
AM
8902006-02-17 Alan Modra <amodra@bigpond.net.au>
891
892 PR ld/2218
893 * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is
894 dynamic.
895 (ppc64_elf_relocate_section): Check output reloc section size.
896 * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test.
897
cedc298e
L
8982006-02-16 H.J. Lu <hongjiu.lu@intel.com>
899
900 PR ld/2322
901 * elf.c (get_segment_type): New function.
902 (_bfd_elf_print_private_bfd_data): Use it.
903 (print_segment_map): New function.
904 (assign_file_positions_for_segments): Call print_segment_map
905 when there are not enough room for program headers.
906
aaa2ab3d
NH
9072006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com>
908
909 * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use
910 traditional MIPS ELF targets.
911
35ccda9e
L
9122006-02-15 H.J. Lu <hongjiu.lu@intel.com>
913
914 PR binutils/2338
915 * dwarf2.c (check_function_name): New function.
916 (_bfd_dwarf2_find_nearest_line): Use check_function_name to
917 check if function is correct.
918
e0ae6d6f
AM
9192006-02-16 Alan Modra <amodra@bigpond.net.au>
920
921 * elflink.c (_bfd_elf_default_action_discarded): Return 0 for
922 debug sections.
923 (elf_link_input_bfd): Adjust comments.
924
d55ce4e2
L
9252006-02-10 H.J. Lu <hongjiu.lu@intel.com>
926
927 * elf.c (copy_private_bfd_data): Minor update.
928
84d1d650
L
9292006-02-10 H.J. Lu <hongjiu.lu@intel.com>
930
931 PR binutils/2258
932 * elf.c (copy_private_bfd_data): Renamed to ...
933 (rewrite_elf_program_header): This.
934 (copy_elf_program_header): New function.
935 (copy_private_bfd_data): Likewise.
936
9372006-02-07 Nathan Sidwell <nathan@codesourcery.com>
266abb8f
NS
938
939 * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e,
940 bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x,
941 bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249,
942 bfd_mach_mcf547x, bfd_mach_mcf548x): Remove.
943 (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div,
944 bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac,
945 bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac,
946 bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp,
947 bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac,
948 bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac,
949 bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac,
950 bfd_mach_mcf_isa_b_usp_float_emac): New.
951 (bfd_default_scan): Update coldfire mapping.
952 * bfd-in.h (bfd_m68k_mach_to_features,
953 bfd_m68k_features_to_mach): Declare.
954 * bfd-in2.h: Rebuilt.
955 * cpu-m68k.c (arch_info_struct): Add new coldfire machines,
956 adjust legacy names.
957 (m68k_arch_features): New.
958 (bfd_m68k_mach_to_features,
959 bfd_m68k_features_to_mach): Define.
960 * elf32-m68k.c (elf32_m68k_object_p): New.
961 (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags.
962 (elf32_m68k_print_private_bfd_data): Print the CF EF flags.
963 (elf_backend_object_p): Define.
964 * ieee.c (ieee_write_processor): Update coldfire machines.
965 * libbfd.h: Rebuilt.
966
75eb734c
SE
9672006-02-06 Steve Ellcey <sje@cup.hp.com>
968
969 * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS
970 if SHF_TLS is set.
971
134dcee5
AM
9722006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl>
973
974 * coff-z80.c (r_imm24): New howto.
975 (rtype2howto): New case R_IMM24.
976 (coff_z80_reloc_type_lookup): New case BFD_RELOC_24.
977 (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24.
978
4005427f
RS
9792006-02-04 Richard Sandiford <richard@codesourcery.com>
980
981 * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol
982 has already been assigned a GOT index, copy that index to the
983 current hash table entry.
984
bb29dfea
EB
9852006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr>
986
987 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
988 for call-to-undefweak reloc overflow.
989
dc669dc8
EB
9902006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr>
991
992 * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass
993 for 32-bit relocs overflow.
994
1a0eb693
PB
9952006-01-27 Paul Brook <paul@codesourcery.com>
996
997 * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb
998 objects.
999
67a4f2b7
AO
10002006-01-18 Alexandre Oliva <aoliva@redhat.com>
1001
1002 Introduce TLS descriptors for i386 and x86_64.
1003 * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC,
1004 BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC,
1005 BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New.
1006 * libbfd.h, bfd-in2.h: Rebuilt.
1007 * elf32-i386.c (elf_howto_table): New relocations.
1008 (R_386_tls): Adjust.
1009 (elf_i386_reloc_type_lookup): Map new relocations.
1010 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1011 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1012 (struct elf_i386_link_hash_entry): Add tlsdesc_got field.
1013 (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field.
1014 (elf_i386_local_tlsdesc_gotent): New macro.
1015 (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size.
1016 (elf_i386_compute_jump_table_size): New macro.
1017 (link_hash_newfunc): Initialize tlsdesc_got.
1018 (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size.
1019 (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and
1020 R_386_TLS_DESC_CALL.
1021 (elf_i386_check_relocs): Likewise. Allocate space for
1022 local_tlsdesc_gotent.
1023 (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and
1024 R_386_TLS_DESC_CALL.
1025 (allocate_dynrelocs): Count function PLT relocations. Reserve
1026 space for TLS descriptors and relocations.
1027 (elf_i386_size_dynamic_sections): Reserve space for TLS
1028 descriptors and relocations. Set up sgotplt_jump_table_size.
1029 Don't zero reloc_count in srelplt.
1030 (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_.
1031 (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and
1032 R_386_TLS_DESC_CALL.
1033 (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1034 (elf_backend_always_size_sections): Define.
1035 * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC,
1036 R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL.
1037 (R_X86_64_standard): Adjust.
1038 (x86_64_reloc_map): Map new relocs.
1039 (elf64_x86_64_rtype_to_howto): New, split out of...
1040 (elf64_x86_64_info_to_howto): ... this function, and...
1041 (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val.
1042 (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros.
1043 (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros.
1044 (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field.
1045 (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field.
1046 (elf64_x86_64_local_tlsdesc_gotent): New macro.
1047 (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt,
1048 tlsdesc_got and sgotplt_jump_table_size fields.
1049 (elf64_x86_64_compute_jump_table_size): New macro.
1050 (link_hash_newfunc): Initialize tlsdesc_got.
1051 (elf64_x86_64_link_hash_table_create): Initialize new fields.
1052 (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and
1053 R_X86_64_TLSDESC_CALL.
1054 (elf64_x86_64_check_relocs): Likewise. Allocate space for
1055 local_tlsdesc_gotent.
1056 (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and
1057 R_X86_64_TLSDESC_CALL.
1058 (allocate_dynrelocs): Count function PLT relocations. Reserve
1059 space for TLS descriptors and relocations.
1060 (elf64_x86_64_size_dynamic_sections): Reserve space for TLS
1061 descriptors and relocations. Set up sgotplt_jump_table_size,
1062 tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero
1063 reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT
1064 and DT_TLSDESC_GOT.
1065 (elf64_x86_64_always_size_sections): New. Set up
1066 _TLS_MODULE_BASE_.
1067 (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and
1068 R_386_TLS_DESC_CALL.
1069 (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P.
1070 (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and
1071 DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry.
1072 (elf_backend_always_size_sections): Define.
1073
6dd55cb7
L
10742006-01-17 H.J. Lu <hongjiu.lu@intel.com>
1075
1076 PR binutils/2096
1077 * dwarf2.c (comp_unit_contains_address): Update comment.
1078 (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of
1079 lma. Return TRUE only if both comp_unit_contains_address and
1080 comp_unit_find_nearest_line return TRUE.
1081 (_bfd_dwarf2_find_line): Use section's vma, instead of lma.
1082
64d03ab5
AM
10832006-01-18 Alan Modra <amodra@bigpond.net.au>
1084
1085 * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref.
1086 (bfd_elf_gc_mark_dynamic_ref_symbol): Declare.
1087 * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from
1088 elf_gc_mark_dynamic_ref_symbol. Make global.
1089 (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref.
1090 * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define.
1091 (elfNN_bed): Init new field.
1092 * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define.
1093 (ppc64_elf_gc_mark_dynamic_ref): New function.
1094
b56cbdb9
AM
10952006-01-17 Alan Modra <amodra@bigpond.net.au>
1096
1097 * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop.
1098
6c10990d
NC
10992006-01-17 Nick Clifton <nickc@redhat.com>
1100
1101 PR binutils/2159
1102 * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused
1103 parameters.
1104
d7f735da
NC
11052006-01-11 Nick Clifton <nickc@redhat.com>
1106
1107 * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry
1108 into the newly (re)allocated map array.
1109
2bfd55ca
NC
11102006-01-09 Alexis Wilke <alexis_wilke@yahoo.com>
1111
1112 * peXXigen.c (tbl): Add comma after "HIGH3ADJ".
1113
bce50a28
JJ
11142006-01-01 Jakub Jelinek <jakub@redhat.com>
1115
1116 * elf64-ppc.c (ppc64_elf_action_discarded): Return 0
1117 for .toc1 section.
1118
e88d958a 1119For older changes see ChangeLog-2005
56882138
AM
1120\f
1121Local Variables:
1122mode: change-log
1123left-margin: 8
1124fill-column: 74
1125version-control: never
1126End: