Commit | Line | Data |
---|---|---|
003b8e1d DJ |
1 | 2006-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
2 | ||
3 | * elfxx-mips.c (_bfd_mips_elf_hide_symbol): Adjust handling | |
4 | for missing GOTs. | |
5 | ||
efacb0fb DJ |
6 | 2006-05-04 Daniel Jacobowitz <dan@codesourcery.com> |
7 | ||
8 | * bfd/cpu-arm.c (bfd_is_arm_mapping_symbol_name): Accept more | |
9 | mapping symbols. | |
10 | ||
9578239d BE |
11 | 2006-05-04 Ben Elliston <bje@au.ibm.com> |
12 | ||
13 | * coff-or32.c (bfd_section_from_shdr): Remove unused local | |
14 | variable `ptr'. | |
15 | * cofflink.c (process_embedded_commands): Remove unused local | |
16 | variables `had_read' and `had_shared'. | |
17 | * ecofflink.c (bfd_ecoff_debug_accumulate): Remove unused local | |
18 | variable `fdr_adr'. | |
19 | * ihex.c (ihex_read_section): Remove unused local variable `addr'. | |
20 | ||
f592407e AM |
21 | 2006-05-03 Alan Modra <amodra@bigpond.net.au> |
22 | ||
23 | * libbfd-in.h (_bfd_generic_new_section_hook): Declare. | |
24 | * section.c (bfd_abs_symbol, bfd_com_symbol): Delete. | |
25 | (bfd_und_symbol, bfd_ind_symbol): Delete. | |
26 | (BFD_FAKE_SECTION): Remove SYM_PTR param, set symbol_ptr_ptr to | |
27 | &SEC.symbol. | |
28 | (STD_SECTION): Adjust. | |
29 | (_bfd_generic_new_section_hook): New function, extracted from.. | |
30 | (bfd_section_init): ..here. | |
31 | (bfd_make_section_old_way): Call new_section_hook for abs, com, | |
32 | und and ind sections. | |
33 | * elf.c (_bfd_elf_large_com_section): Adjust. | |
34 | * aoutx.h (new_section_hook): Call _bfd_generic_new_section_hook. | |
35 | * pdp11.c (new_section_hook): Likewise. | |
36 | * coffcode.h (coff_new_section_hook): Likewise. | |
37 | * ecoff.c (_bfd_ecoff_new_section_hook): Likewise. | |
38 | * elf.c (_bfd_elf_new_section_hook): Likewise. | |
39 | * vms.c (vms_new_section_hook): Likwise. | |
40 | * elf32-arm.c (elf32_arm_new_section_hook): Check used_by_bfd isn't | |
41 | already set. | |
42 | * elf32-sh64.c (sh64_elf_new_section_hook): Likewise. | |
43 | * elf32-xtensa.c (elf_xtensa_new_section_hook): Likewise. | |
44 | * elf64-mmix.c (mmix_elf_new_section_hook): Likewise. | |
45 | * elf64-ppc.c (ppc64_elf_new_section_hook): Likewise. | |
46 | * elfxx-mips.c (_bfd_mips_elf_new_section_hook): Likewise. | |
47 | * elfxx-sparc.c (_bfd_sparc_elf_new_section_hook): Likewise. | |
48 | * ieee.c (ieee_new_section_hook): Likewise. Call | |
49 | _bfd_generic_new_section_hook too. | |
50 | * mmo.c (mmo_new_section_hook): Likewise. | |
51 | * oasys.c (oasys_new_section_hook): Likewise. | |
52 | * som.c (som_new_section_hook): Likewise. | |
53 | * coff-w65.c (reloc_processing): Don't use bfd_abs_symbol. | |
54 | * bfd-in2.h: Regenerate. | |
55 | * libbfd.h: Regenerate. | |
56 | ||
bd75c995 AM |
57 | 2006-05-03 Alan Modra <amodra@bigpond.net.au> |
58 | ||
59 | * hash.c (DEFAULT_SIZE): Revert last change. | |
60 | (higher_prime_number): Correct test for no larger prime. Don't | |
61 | abort on error, instead return 0. Depopulate primes[]. | |
62 | (bfd_hash_lookup): If we overflow size, refuse to grow table. | |
63 | ||
a8bc6c78 PB |
64 | 2006-05-02 Paul Brook <paul@codesourcery.com> |
65 | ||
66 | * elf32-arm.c (elf32_arm_final_link_relocate): Set thumb funciton bit | |
67 | for R_ARM_REL32. | |
68 | ||
b48c61bc BE |
69 | 2006-05-02 Ben Elliston <bje@au.ibm.com> |
70 | ||
71 | * archive.c (bfd_generic_archive_p): Remove unused local variable | |
72 | `fail'. | |
73 | * dwarf2.c (decode_line_info): Remove unused local variable | |
74 | `basic_block'. | |
75 | * elfcode.h (elf_slurp_reloc_table_from_section): Remove unsed | |
76 | local varibale `s'. | |
77 | * tekhex.c (tekhex_write_object_contents): Remove unused local | |
78 | variable `bytes_written'. | |
79 | * aout-ns32k.c (MY_swap_std_reloc_out): Remove unused local | |
80 | variable `r_addend'. | |
81 | * elf32-dlx.c (dlx_rtype_to_howto): Remove breaks after returns. | |
82 | * elfxx-mips.c (_bfd_elf_mips_mach): Remove breaks after returns. | |
83 | (_bfd_ns32k_relocate_contents): Remove break after return. | |
84 | * elf.c (bfd_section_from_shdr): Remove breaks after returns. | |
85 | ||
63f2fc30 NC |
86 | 2006-05-02 Nick Clifton <nickc@redhat.com> |
87 | ||
88 | * elf32-sh-symbian.c: Rename local define DEBUG to SYMBIAN_DEBUG | |
89 | in order to avoid conflicts with the global DEBUG define. | |
90 | ||
e460dd0d AM |
91 | 2006-05-02 Alan Modra <amodra@bigpond.net.au> |
92 | ||
93 | * dwarf2.c: Formatting. | |
94 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Simplify | |
95 | output section check. | |
96 | * elf32-i370.c: Warning fixes inside #ifdef DEBUG. | |
97 | * elf32-m32c.c: Similarly. | |
98 | * elf32-ppc.c: Similarly. | |
99 | * elf32-v850.c: Similarly. | |
100 | * nlm32-sparc.c: Similarly. | |
101 | * elfcode.h: Similarly. | |
102 | (elf_symbol_flags): Delete. | |
103 | * elflink.c (elf_link_input_bfd): Comment typo. | |
104 | ||
aa149cf7 DD |
105 | 2006-05-01 DJ Delorie <dj@redhat.com> |
106 | ||
107 | * bfd-in.h (bfd_hash_table): Add count field. | |
108 | * bfd-in2.h: Regenerate. | |
109 | * hash.c (higher_prime_number): New. | |
110 | (bfd_hash_table_inint_n): Init count field. | |
111 | (bfd_hash_lookup): Grow table as needed. | |
112 | ||
75b8939e KK |
113 | 2006-04-27 Kaz Kojima <kkojima@rr.iij4u.or.jp> |
114 | ||
115 | PR binutils/2584 | |
116 | * tekhex.c (getvalue): Change return type to bfd_boolean and | |
117 | add the new parameter. Return false if the unexpected character | |
118 | is found. | |
119 | (getsym): Likewise. | |
120 | (first_phase): Change return type to bfd_boolean and return | |
121 | false if the unexpected character is found. Replace abort | |
122 | with returning false. | |
123 | (pass_over): Change return type to bfd_boolean and the type of | |
124 | the second argument to bfd_boolean (*) (bfd *, int, char *). | |
125 | Return false if FUNC returns false. | |
126 | (tekhex_object_p): Return NULL if pass_over fails. | |
127 | ||
f05742e6 AM |
128 | 2006-04-27 Alan Modra <amodra@bigpond.net.au> |
129 | ||
130 | * coff-rs6000.c (xcoff_write_archive_contents_old): Warning fix. | |
131 | ||
e843e0f8 L |
132 | 2006-04-26 H.J. Lu <hongjiu.lu@intel.com> |
133 | ||
134 | PR binutils/2593 | |
135 | * elf.c (_bfd_elf_new_section_hook): Don't set section ELF type | |
136 | and flags if its BFD flags have been set. | |
137 | (_bfd_elf_init_private_section_data): Don't copy the output ELF | |
138 | section type from input if it has been set to something | |
139 | different. | |
140 | ||
b25e3d87 L |
141 | 2006-04-25 H.J. Lu <hongjiu.lu@intel.com> |
142 | ||
143 | PR binutils/2467 | |
144 | * elf.c (_bfd_elf_close_and_cleanup): Check elf_tdata (abfd) | |
145 | is NULL first. | |
146 | ||
147 | * elf32-arm.c (elf32_arm_close_and_cleanup): Check if | |
148 | abfd->sections is NULL. | |
149 | (elf32_arm_bfd_free_cached_info): New. | |
150 | (bfd_elf32_bfd_free_cached_info): Defined. | |
151 | ||
152 | * elfxx-target.h (bfd_elfNN_bfd_free_cached_info): Default it | |
153 | to _bfd_free_cached_info. | |
154 | ||
155 | * libbfd-in.h (_bfd_free_cached_info): New. | |
156 | * libbfd: Regenerated. | |
157 | ||
158 | * opncls.c (_bfd_delete_bfd): Check if abfd->memory is NULL. | |
159 | (_bfd_free_cached_info): New. | |
160 | ||
5c182d5f AM |
161 | 2006-04-21 Alan Modra <amodra@bigpond.net.au> |
162 | ||
163 | * elf.c (assign_file_positions_except_relocs): Move code setting | |
164 | file position of non-loaded sections.. | |
165 | (assign_file_positions_for_segments): ..to here. | |
166 | ||
3eb70a79 L |
167 | 2006-04-20 H.J. Lu <hongjiu.lu@intel.com> |
168 | ||
169 | PR ld/2537 | |
170 | * elf.c (bfd_section_from_shdr): Allow sections reserved for | |
171 | applications. Issue an error on sections we don't know how | |
172 | to handle. | |
173 | ||
ec3fcc56 AM |
174 | 2006-04-19 Alan Modra <amodra@bigpond.net.au> |
175 | ||
176 | * Makefile.am: Run "make dep-am". | |
177 | * Makefile.in: Regenerate. | |
178 | ||
241a6c40 AM |
179 | 2006-04-19 Alan Modra <amodra@bigpond.net.au> |
180 | ||
181 | * warning.m4 (--enable-werror): Format help message. | |
182 | (--enable-build-warnings): Likewise. | |
183 | * configure: Regenerate. | |
184 | ||
0b49d371 NC |
185 | 2006-04-18 Nick Clifton <nickc@redhat.com> |
186 | ||
187 | PR 2257 | |
188 | * elfcode.h (elf_object_p): Allow files with corrupt e_shstrndx | |
189 | fields to still be handled as ELF files. | |
190 | ||
e7403566 DJ |
191 | 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com> |
192 | ||
193 | * po/SRC-POTFILES.in: Regenerated. | |
194 | ||
ffdc4eed DJ |
195 | 2006-04-16 Daniel Jacobowitz <dan@codesourcery.com> |
196 | ||
197 | * configure.in: Update version to 2.17.50. | |
198 | * configure: Regenerated. | |
199 | ||
cb337148 BW |
200 | 2006-04-14 David Heine <dlheine@tensilica.com> |
201 | ||
202 | * elf32-xtensa.c (build_reloc_opcodes): New. | |
203 | (compute_text_actions): Use it to decode opcodes outside inner loop. | |
204 | (check_section_ebb_pcrels_fit): Add "reloc_opcodes" argument, and if | |
205 | it is set, use it to get the opcodes for relocations. | |
206 | (move_shared_literal): Adjust call to check_section_ebb_pcrels_fit. | |
207 | ||
cb878726 L |
208 | 2006-04-08 H.J. Lu <hongjiu.lu@intel.com> |
209 | ||
210 | PR ld/2513 | |
211 | * elf32-i386.c (GOT_TLS_MASK): New macro for tls_type. | |
212 | (GOT_TLS_IE_IE): Likewise. | |
213 | (GOT_TLS_IE_GD): Likewise. | |
214 | (GOT_TLS_IE_MASK): Likewise. | |
215 | (elf_i386_check_relocs): For global symbols, set GOT_TLS_IE_GD | |
216 | and GOT_TLS_IE_IE for R_386_TLS_GD and R_386_TLS_IE | |
217 | respectively. | |
218 | (allocate_dynrelocs): If both GOT_TLS_IE_IE and GOT_TLS_IE_GD | |
219 | are set, treat tls_type as GOT_TLS_IE_BOTH. | |
220 | (elf_i386_relocate_section): Likewise. | |
221 | ||
235ecfbc NC |
222 | 2006-04-07 Randolph Chung <tausq@debian.org> |
223 | ||
224 | * elf64-hppa.c (elf64_hppa_grok_prstatus): New function. | |
225 | (elf64_hppa_grok_psinfo): Likewise. | |
226 | (elf_backend_grok_pstatus, elf_backend_grok_psinfo): Define. | |
227 | ||
35520cb7 DD |
228 | 2006-04-06 DJ Delorie <dj@redhat.com> |
229 | ||
230 | * elf32-m32c.c (m32c_elf_relocate_section): Generate a symbol for | |
231 | each plt entry we create. | |
232 | ||
108a6f8e CD |
233 | 2006-04-06 Carlos O'Donell <carlos@codesourcery.com> |
234 | ||
235 | * po/Make-in: Add install-html target. | |
236 | * Makefile.am: Rename docdir to bfddocdir. Add datarootdir, docdir | |
237 | htmldir. Add install-html and install-html-recursive targets. | |
238 | * Makefile.in: Regenerate. | |
239 | * configure.in: AC_SUBST for datarootdir, docdir and htmldir. | |
240 | * configure: Regenerate. | |
241 | ||
fbbc3759 L |
242 | 2006-04-06 H.J. Lu <hongjiu.lu@intel.com> |
243 | ||
244 | * elfxx-ia64.c (elfNN_ia64_relax_section): Skip unneeded passes | |
245 | with the skip_relax_pass_0 and skip_relax_pass_1 bits in the | |
246 | section structure. | |
247 | ||
17e226a8 BS |
248 | 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com> |
249 | ||
250 | * elf32-bfin.c (bfinfdpic_relocs_info_hash): Sprinkle casts to | |
251 | eliminate warnings. | |
252 | ||
396a682d L |
253 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
254 | James E Wilson <wilson@specifixinc.com> | |
255 | ||
256 | PR ld/2442 | |
257 | * elfxx-ia64.c (elfNN_ia64_dyn_sym_info): Remove next. | |
258 | (elfNN_ia64_local_hash_entry): Add count, sorted_count and | |
259 | size. | |
260 | (elfNN_ia64_link_hash_entry): Likewise. | |
261 | (elfNN_ia64_new_elf_hash_entry): Initialize count, sorted_count | |
262 | and size. | |
263 | (elfNN_ia64_hash_copy_indirect): Updated elfNN_ia64_dyn_sym_info | |
264 | processing. | |
265 | (elfNN_ia64_hash_hide_symbol): Likewise. | |
266 | (elfNN_ia64_global_dyn_sym_thunk): Likewise. | |
267 | (elfNN_ia64_local_dyn_sym_thunk): Likewise. | |
268 | (elfNN_ia64_global_dyn_info_free): New function. | |
269 | (elfNN_ia64_local_dyn_info_free): Likewise. | |
270 | (elfNN_ia64_hash_table_free): Free local and global | |
271 | elfNN_ia64_dyn_sym_info. | |
272 | (addend_compare): New function. | |
273 | (sort_dyn_sym_info): Likewise. | |
274 | (get_dyn_sym_info): Updated to use binary search for addend. | |
275 | (elfNN_ia64_check_relocs): Scan relocations to create dynamic | |
276 | relocation arrays first. | |
277 | ||
0781db9f BS |
278 | 2006-04-05 Bernd Schmidt <bernd.schmidt@analog.com> |
279 | ||
280 | * elf32-bfin.c (_bfin_create_got_section): Don't generate a _gp | |
281 | symbol. | |
282 | ||
c0d5a53d L |
283 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
284 | ||
285 | PR ld/2411 | |
286 | * elflink.c (check_dynsym): New. | |
287 | (elf_link_output_extsym): Use it. | |
288 | (bfd_elf_final_link): Likewise. | |
289 | ||
580a2b6e L |
290 | 2006-04-05 H.J. Lu <hongjiu.lu@intel.com> |
291 | ||
292 | PR ld/2404 | |
293 | * elflink.c (_bfd_elf_merge_symbol): Skip the default indirect | |
294 | symbol from the dynamic definition with the default version if | |
295 | its type and the type of existing regular definition mismatch. | |
296 | ||
910600e9 RS |
297 | 2006-04-05 Richard Sandiford <richard@codesourcery.com> |
298 | Daniel Jacobowitz <dan@codesourcery.com> | |
299 | ||
300 | * config.bfd (sparc-*-vxworks*): New stanza. | |
301 | * configure.in (bfd_elf32_sparc_vxworks_vec): New stanza. | |
302 | (bfd_elf32_sparc_vec, bfd_elf64_sparc_vec): Add elf-vxworks.lo. | |
303 | * configure: Regenerate. | |
304 | * elf32-sparc.c: Include elf-vxworks.h. | |
305 | (elf32_sparc_vxworks_link_hash_table_create: New. | |
306 | (elf32_sparc_vxworks_final_write_processing): New. | |
307 | (TARGET_BIG_SYM): Override for VxWorks. | |
308 | (TARGET_BIG_NAME, ELF_MINPAGESIZE): Likewise. | |
309 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
310 | (elf_backend_want_got_plt, elf_backend_plt_readonly): Likewise. | |
311 | (elf_backend_got_header_size, elf_backend_add_symbol_hook): Likewise. | |
312 | (elf_backend_link_output_symbol_hook): Likewise. | |
313 | (elf_backend_emit_relocs): Likewise. | |
314 | (elf_backend_final_write_processing, elf32_bed): Likewise. | |
315 | * elfxx-sparc.c: Include libiberty.h and elf-vxworks.h. | |
316 | (sparc_vxworks_exec_plt0_entry, sparc_vxworks_exec_plt_entry): New. | |
317 | (sparc_vxworks_shared_plt0_entry, sparc_vxworks_shared_plt_entry): New. | |
318 | (_bfd_sparc_elf_link_hash_table_create): Don't initialize | |
319 | build_plt_entry here. | |
320 | (create_got_section): Initialize sgotplt for VxWorks. | |
321 | (_bfd_sparc_elf_create_dynamic_sections): Initialize build_plt_entry, | |
322 | plt_header_size and plt_entry_size, with new VxWorks-specific settings. | |
323 | Call elf_vxworks_create_dynamic_sections for VxWorks. | |
324 | (allocate_dynrelocs): Use plt_header_size and plt_entry_size. | |
325 | Allocate room for .got.plt and .rela.plt.unloaded entries on VxWorks. | |
326 | (_bfd_sparc_elf_size_dynamic_sections): Don't allocate a nop in .plt | |
327 | for VxWorks. Check for the .got.plt section. | |
328 | (sparc_vxworks_build_plt_entry): New function. | |
329 | (_bfd_sparc_elf_finish_dynamic_symbol): Add handling of VxWorks PLTs. | |
330 | Don't make _GLOBAL_OFFSET_TABLE_ and _PROCEDURE_LINKAGE_TABLE_ | |
331 | absolute on VxWorks. | |
332 | (sparc32_finish_dyn): Add special handling for DT_RELASZ | |
333 | and DT_PLTGOT on VxWorks. | |
334 | (sparc_vxworks_finish_exec_plt): New. | |
335 | (sparc_vxworks_finish_shared_plt): New. | |
336 | (_bfd_sparc_elf_finish_dynamic_sections): Call them. | |
337 | Use plt_header_size and plt_entry_size. | |
338 | * elfxx-sparc.h (_bfd_sparc_elf_link_hash_table): Add is_vxworks, | |
339 | srelplt2, sgotplt, plt_header_size and plt_entry_size fields. | |
340 | * Makefile.am (elfxx-sparc.lo): Depend on elf-vxworks.h. | |
341 | (elf32-sparc.lo): Likewise. | |
342 | * Makefile.in: Regenerate. | |
343 | * targets.c (bfd_elf32_sparc_vxworks_vec): Declare. | |
344 | (_bfd_target_vector): Add a pointer to it. | |
345 | ||
b761a207 BE |
346 | 2006-03-30 Ben Elliston <bje@au.ibm.com> |
347 | ||
348 | PR ld/2267 | |
349 | * elflink.c (elf_fixup_link_order): Ensure `elfsec' is not a | |
350 | special section number that exceeds the number of ELF sections | |
351 | (eg. SHN_MIPS_SCOMMON). | |
352 | ||
ead49a57 RS |
353 | 2006-03-27 Richard Sandiford <richard@codesourcery.com> |
354 | ||
355 | * elfxx-mips.c (mips_got_entry): Add more commentary. | |
356 | (mips_elf_local_got_index): Use the hash table entry to record | |
357 | the GOT index of forced-local symbols. | |
358 | (mips_elf_initialize_tls_index): Rearrange code. Store the index | |
359 | in either the hash table entry or the mips_got_entry, not both. | |
360 | Add more commentary. | |
361 | (mips_elf_multi_got): Make sure the g->next is nonnull when calling | |
362 | mips_elf_initialize_tls_index. | |
363 | ||
3b55e94a BS |
364 | 2006-03-25 Bernd Schmidt <bernd.schmidt@analog.com> |
365 | ||
366 | * elf32-bfin.c (bfd_const_reloc, bfd_oper_reloc, bfin_push_reloc, | |
367 | RELOC_STACK_SIZE, reloc_stack, reloc_stack_tos, is_reloc_stack_empty, | |
368 | reloc_stack_push, reloc_stack_pop, reloc_stack_operate, | |
369 | bfin_areloc_howto_table): Delete. All | |
370 | uses deleted as well. | |
371 | (bfin_reloc_map): Delete all stack relocs. | |
372 | (bfin_info_to_howto, bfin_bfd_reloc_type_lookup, | |
373 | bfin_reloc_type_lookup): Don't support them. | |
374 | (bfin_relocate_section): Don't try to handle them. | |
375 | ||
48d502e1 BS |
376 | * config.bfd (bfin-*-*): Add bfd_elf32_bfinfdpic_vec. |
377 | * configure.in: Likewise. | |
378 | * configure: Regenerate. | |
379 | * elf32-bfin.c: Include "elf/dwarf2.h" and "hashtab.h". | |
380 | (BFIN_RELOC_MAX): Now 0x21. | |
381 | (bfin_howto_table, bfin_reloc_map): Add FD-PIC relocs. | |
382 | (bfd_elf32_bfinfdpic_vec): Declare. | |
383 | (IS_FDPIC): New macro. | |
384 | (struct bfinfdpic_elf_link_hash_table): New struct. | |
385 | (bfinfdpic_hash_table, bfinfdpic_got_section, | |
386 | bfinfdpic_gotrel_section, bfinfdpic_gotfixup_section, | |
387 | bfinfdpic_plt_setion, bfinfdpic_pltrel_section, | |
388 | bfinfdpic_relocs_info, bfinfdpic_got_initial_offset, | |
389 | bfinfdpic_plt_initial_offset): Accessor macros for it. | |
390 | (BFINFDPIC_SYM_LOCAL, BFINFDPIC_FUNCDESC_LOCAL): New macros. | |
391 | (struct bfinfdpic_relocs_info): New struct. | |
392 | (LZPLT_RESOLVER_EXTRA, LZPLT_NORMAL_SIZE, LZPLT_ENTRIES, | |
393 | BFINFDPIC_LZPLT_BLOCK_SIZE, BFINFDPIC_LZPLT_RESOLV_LOC, | |
394 | DEFAULT_STACK_SIZE): New macros. | |
395 | (bfinfdpic_elf_link_hash_table_create, bfinfdpic_relocs_info_hash, | |
396 | bfinfdpic_relocs_info_eq, bfinfdpics_relocs_info_find, | |
397 | bfinfdpic_relocs_info_for_global, bfinfdpic_relocs_info_for_local, | |
398 | bfinfdpic_pic_merge_early_relocs_info, _bfinfdpic_add_dyn_reloc, | |
399 | _bfinfdpic_add_rofixup, _bfinfdpic_osec_to_segment, | |
400 | _bfinfdpic_osec_readonly_p, bfinfdpic_relocate_section, | |
401 | bfinfdpic_check_relocs, bfinfdpic_gc_sweep_hook, | |
402 | _bfinfdpic_link_omit_section_dynsym, _bfin_create_got_section, | |
403 | elf32_bfinfdpic_create_dynamic_sections, _bfinfdpic_get_fd_entry, | |
404 | _bfinfdpic_compute_got_alloc_data, _bfinfdpic_get_got_entry, | |
405 | _bfinfdpic_assign_got_entries, _bfinfdpic_assign_plt_entries, | |
406 | _bfinfdpic_resolve_final_relocs_info, | |
407 | elf32_bfinfdpic_size_dynamic_sections, | |
408 | elf32_bfinfdpic_always_size_sections, | |
409 | elf32_bfinfdpic_modify_segment_map, | |
410 | _bfinfdpic_count_got_plt_entries, | |
411 | elf32_bfinfdpic_finish_dynamic_sections, | |
412 | elf32_bfinfdpic_adjust_dynamic_symbol, | |
413 | elf32_bfinfdpic_finish_dynamic_symbol, | |
414 | elf32_bfinfdpic_elf_use_relative_eh_frame, | |
415 | elf32_bfinfdpic_elf_encode_eh_address, | |
416 | elf32_bfin_object_p, bfin_elf_copy_private_bfd_data, | |
417 | elf32_bfinfdpic_copy_private_bfd_data, | |
418 | (struct _bfinfdpic_dynamic_got_info, | |
419 | struct _bfinfdpic_dynamic_got_plt_info): New structs. | |
420 | (elf32_bfin_print_private_bfd_data): Print PIC flags. | |
421 | (elf32_bfin_merge_private_bfd_data): Extend to support FD-PIC. | |
422 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME, elf32_bed, | |
423 | elf_backend_got_header_size, bfd_elf32_bfd_link_hash_table_create, | |
424 | elf_backend_always_size_sectinos, elf_backend_modify_segment_map, | |
425 | bfd_elf32_bfd_copy_private_bfd_data, | |
426 | elf_backend_create_dynamic_sections, elf_backend_adjust_dynamic_symbol, | |
427 | elf_backend_size_dynamic_sections, elf_backend_finish_dynamic_symbol, | |
428 | elf_backend_finish_dynamic_sections, elf_backend_relocate_section, | |
429 | elf_backend_can_make_relative_eh_frame, elf_backend_check_relocs, | |
430 | elf_backend_can_make_ldsa_relative_eh_frame, elf_backend_may_use_rel_p, | |
431 | elf_backend_may_use_rela_p, elf_backend_default_use_rela_p, | |
432 | elf_backend_omit_section_dynsym): Redefine these macros and include | |
433 | "elf32-target.h" again to create the elf32-bfinfdpic target. | |
434 | * reloc.c (BFD_RELOC_BFIN_GOT17M4, BFD_RELOC_BFIN_GOTHI, | |
435 | BFD_RELOC_BFIN_GOTLO, BFD_RELOC_BFIN_FUNCDESC, | |
436 | BFD_RELOC_BFIN_FUNCDESC_GOT17M4, BFD_RELOC_BFIN_FUNCDESC_GOTHI, | |
437 | BFD_RELOC_BFIN_FUNCDESC_GOTLO, BFD_RELOC_BFIN_FUNCDESC_VALUE, | |
438 | BFD_RELOC_BFIN_FUNCDESC_GOTOFF17M4, BFD_RELOC_BFIN_FUNCDESC_GOTOFFHI, | |
439 | BFD_RELOC_BFIN_FUNCDESC_GOTOFFLO, BFD_RELOC_BFIN_GOTOFFHI, | |
440 | BFD_RELOC_BFIN_GOTOFFLO): New. | |
441 | * targets.c (bfd_elf32_bfinfdpic_vec): New bfd_target. | |
442 | (_bfd_target_vector): Add it. | |
443 | * bfd-in2.h: Regenerate. | |
444 | * libbfd.h: Regenerate. | |
445 | ||
a9d34880 RS |
446 | 2006-03-25 Richard Sandiford <richard@codesourcery.com> |
447 | ||
448 | * cpu-m68k.c (bfd_m68k_compatible): Treat ISA A+ and ISA B code as | |
449 | incompatible. Likewise MAC and EMAC code. | |
450 | * elf32-m68k.c (elf32_m68k_merge_private_bfd_data): Use | |
451 | bfd_get_compatible to set the new bfd architecture. Rely on it | |
452 | to detect incompatibilities. | |
453 | ||
9ca26584 AJ |
454 | 2006-03-23 Michael Matz <matz@suse.de> |
455 | ||
456 | * reloc.c: Add BFD_RELOC_X86_64_GOT64, BFD_RELOC_X86_64_GOTPCREL64, | |
457 | BFD_RELOC_X86_64_GOTPC64, BFD_RELOC_X86_64_GOTPLT64, | |
458 | BFD_RELOC_X86_64_PLTOFF64. | |
459 | * bfd-in2.h: Regenerated. | |
460 | * libbfd.h: Regenerated. | |
461 | * elf64-x86-64.c (x86_64_elf_howto_table): Correct comment. | |
462 | Add howtos for above relocs. | |
463 | (x86_64_reloc_map): Add mappings for new relocs. | |
464 | (elf64_x86_64_check_relocs): R_X86_64_GOT64, R_X86_64_GOTPCREL64, | |
465 | R_X86_64_GOTPLT64 need a got entry. R_X86_64_GOTPLT64 also a PLT | |
466 | entry. R_X86_64_GOTPC64 needs a .got section. R_X86_64_PLTOFF64 | |
467 | needs a PLT entry. | |
468 | (elf64_x86_64_gc_sweep_hook): Reflect changes from | |
469 | elf64_x86_64_check_relocs for the new relocs. | |
470 | (elf64_x86_64_relocate_section): Handle new relocs. | |
471 | ||
2a23c2c5 BW |
472 | 2006-03-22 Bob Wilson <bob.wilson@acm.org> |
473 | ||
474 | * elf32-xtensa.c (xtensa_read_table_entries): Remove assertion that | |
475 | rel->r_addend is zero. | |
476 | ||
6d79d2ed RS |
477 | 2006-03-22 Richard Sandiford <richard@codesourcery.com> |
478 | ||
479 | * elfxx-mips.c (_bfd_mips_vxworks_finish_dynamic_symbol): Fix type | |
480 | of "loc". | |
481 | ||
0a44bf69 RS |
482 | 2006-03-22 Richard Sandiford <richard@codesourcery.com> |
483 | Daniel Jacobowitz <dan@codesourcery.com> | |
484 | Phil Edwards <phil@codesourcery.com> | |
485 | Zack Weinberg <zack@codesourcery.com> | |
486 | Mark Mitchell <mark@codesourcery.com> | |
487 | Nathan Sidwell <nathan@codesourcery.com> | |
488 | ||
489 | * bfd-in2.h: Regenerate. | |
490 | * config.bfd (mips*-*-vxworks*, mips*el-*-vxworks*): New stanzas. | |
491 | * configure.in (bfd_elf32_bigmips_vxworks_vec): New stanza. | |
492 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
493 | (bfd_elf32_bigmips_vec): Add elf-vxworks.lo. | |
494 | (bfd_elf32_littlemips_vec): Likewise. | |
495 | (bfd_elf32_nbigmips_vec): Likewise. | |
496 | (bfd_elf32_nlittlemips_vec): Likewise. | |
497 | (bfd_elf32_ntradbigmips_vec): Likewise. | |
498 | (bfd_elf32_ntradlittlemips_vec): Likewise. | |
499 | (bfd_elf32_tradbigmips_vec): Likewise. | |
500 | (bfd_elf32_tradlittlemips_vec): Likewise. | |
501 | (bfd_elf64_bigmips_vec): Likewise. | |
502 | (bfd_elf64_littlemips_vec): Likewise. | |
503 | (bfd_elf64_tradbigmips_vec): Likewise. | |
504 | (bfd_elf64_tradlittlemips_vec): Likewise. | |
505 | * elf32-mips.c: Include elf-vxworks.h. | |
506 | (mips_info_to_howto_rel): Use elf_backend_mips_rtype_to_howto | |
507 | instead of calling mips_elf32_rtype_to_howto directly. | |
508 | (mips_vxworks_copy_howto_rela): New reloc howto. | |
509 | (mips_vxworks_jump_slot_howto_rela): Likewise. | |
510 | (mips_vxworks_bfd_reloc_type_lookup): New function. | |
511 | (mips_vxworks_rtype_to_howto): Likewise. | |
512 | (mips_vxworks_final_write_processing): Likewise. | |
513 | (TARGET_LITTLE_SYM, TARGET_LITTLE_NAME): Override for VxWorks. | |
514 | (TARGET_BIG_SYM, TARGET_BIG_NAME, elf_bed, ELF_MAXPAGESIZE): Likewise. | |
515 | (elf_backend_want_got_plt): Likewise. | |
516 | (elf_backend_want_plt_sym): Likewise. | |
517 | (elf_backend_got_symbol_offset): Likewise. | |
518 | (elf_backend_want_dynbss): Likewise. | |
519 | (elf_backend_may_use_rel_p): Likewise. | |
520 | (elf_backend_may_use_rela_p): Likewise. | |
521 | (elf_backend_default_use_rela_p): Likewise. | |
522 | (elf_backend_got_header_size: Likewise. | |
523 | (elf_backend_plt_readonly): Likewise. | |
524 | (bfd_elf32_bfd_reloc_type_lookup): Likewise. | |
525 | (elf_backend_mips_rtype_to_howto): Likewise. | |
526 | (elf_backend_adjust_dynamic_symbol): Likewise. | |
527 | (elf_backend_finish_dynamic_symbol): Likewise. | |
528 | (bfd_elf32_bfd_link_hash_table_create): Likewise. | |
529 | (elf_backend_add_symbol_hook): Likewise. | |
530 | (elf_backend_link_output_symbol_hook): Likewise. | |
531 | (elf_backend_emit_relocs): Likewise. | |
532 | (elf_backend_final_write_processing: Likewise. | |
533 | (elf_backend_additional_program_headers): Likewise. | |
534 | (elf_backend_modify_segment_map): Likewise. | |
535 | (elf_backend_symbol_processing): Likewise. | |
536 | * elfxx-mips.c: Include elf-vxworks.h. | |
537 | (mips_elf_link_hash_entry): Add is_relocation_target and | |
538 | is_branch_target fields. | |
539 | (mips_elf_link_hash_table): Add is_vxworks, srelbss, sdynbss, srelplt, | |
540 | srelplt2, sgotplt, splt, plt_header_size and plt_entry_size fields. | |
541 | (MIPS_ELF_RELA_SIZE, MIPS_ELF_REL_DYN_NAME): New macros. | |
542 | (MIPS_RESERVED_GOTNO): Take a mips_elf_link_hash_table argument. | |
543 | Return 3 for VxWorks. | |
544 | (ELF_MIPS_GP_OFFSET): Change the argument from a bfd to a | |
545 | mips_elf_link_hash_table. Return 0 for VxWorks. | |
546 | (MIPS_ELF_GOT_MAX_SIZE): Change the argument from a bfd to a | |
547 | mips_elf_link_hash_table. Update the call to ELF_MIPS_GP_OFFSET. | |
548 | (mips_vxworks_exec_plt0_entry): New variable. | |
549 | (mips_vxworks_exec_plt_entry): Likewise. | |
550 | (mips_vxworks_shared_plt0_entry): Likewise. | |
551 | (mips_vxworks_shared_plt_entry): Likewise. | |
552 | (mips_elf_link_hash_newfunc): Initialize the new hash_entry fields. | |
553 | (mips_elf_rel_dyn_section): Change the bfd argument to a | |
554 | mips_elf_link_hash_table. Use MIPS_ELF_REL_DYN_NAME to get | |
555 | the name of the section. | |
556 | (mips_elf_initialize_tls_slots): Update the call to | |
557 | mips_elf_rel_dyn_section. | |
558 | (mips_elf_gotplt_index): New function. | |
559 | (mips_elf_local_got_index): Add an input_section argument. | |
560 | Update the call to mips_elf_create_local_got_entry. | |
561 | (mips_elf_got_page): Likewise. | |
562 | (mips_elf_got16_entry): Likewise. | |
563 | (mips_elf_create_local_got_entry): Add bfd_link_info and input_section | |
564 | arguments. Create dynamic relocations for each entry on VxWorks. | |
565 | (mips_elf_merge_gots): Update the use of MIPS_ELF_GOT_MAX_SIZE. | |
566 | (mips_elf_multi_got): Update the uses of MIPS_ELF_GOT_MAX_SIZE | |
567 | and MIPS_RESERVED_GOTNO. | |
568 | (mips_elf_create_got_section): Update the uses of | |
569 | MIPS_ELF_GOT_MAX_SIZE. Create .got.plt on VxWorks. | |
570 | (is_gott_symbol): New function. | |
571 | (mips_elf_calculate_relocation): Use a dynobj local variable. | |
572 | Update the calls to mips_elf_local_got_index, mips_elf_got16_entry and | |
573 | mips_elf_got_page_entry. Set G to the .got.plt entry when calculating | |
574 | VxWorks R_MIPS_CALL* relocations. Calculate and use G for all GOT | |
575 | relocations on VxWorks. Add dynamic relocations for references | |
576 | to the VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Don't | |
577 | create dynamic relocations for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 | |
578 | in VxWorks executables. | |
579 | (mips_elf_allocate_dynamic_relocations): Add a bfd_link_info argument. | |
580 | Use MIPS_ELF_RELA_SIZE to calculate the size of a VxWorks entry. | |
581 | Don't allocate a null entry on VxWorks. | |
582 | (mips_elf_create_dynamic_relocation): Update the call to | |
583 | mips_elf_rel_dyn_section. Use absolute rather than relative | |
584 | relocations for VxWorks, and make them RELA rather than REL. | |
585 | (_bfd_mips_elf_create_dynamic_sections): Don't make .dynamic | |
586 | read-only on VxWorks. Update the call to mips_elf_rel_dyn_section. | |
587 | Create the .plt, .rela.plt, .dynbss and .rela.bss sections on | |
588 | VxWorks. Likewise create the _PROCEDURE_LINKAGE_TABLE symbol. | |
589 | Call elf_vxworks_create_dynamic_sections for VxWorks and | |
590 | initialize the plt_header_size and plt_entry_size fields. | |
591 | (_bfd_mips_elf_check_relocs): Don't allow GOT relocations to be | |
592 | used in VxWorks executables. Don't allocate dynamic relocations | |
593 | for R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 in VxWorks executables. | |
594 | Set is_relocation_target for each symbol referenced by a relocation. | |
595 | Allocate .rela.dyn entries for relocations against the special | |
596 | VxWorks __GOTT_BASE__ and __GOTT_INDEX__ symbols. Create GOT | |
597 | entries for all VxWorks R_MIPS_GOT16 relocations. Don't allocate | |
598 | a global GOT entry for symbols mentioned in VxWorks R_MIPS_CALL*, | |
599 | R_MIPS_32, R_MIPS_REL32 or R_MIPS_64 relocations. Update the calls | |
600 | to mips_elf_rel_dyn_section and mips_elf_allocate_dynamic_relocations. | |
601 | Set is_branch_target for symbols mentioned in R_MIPS_PC16 or R_MIPS_26 | |
602 | relocations. Don't set no_fn_stub on VxWorks. | |
603 | (_bfd_mips_elf_adjust_dynamic_symbol): Update the call to | |
604 | mips_elf_allocate_dynamic_relocations. | |
605 | (_bfd_mips_vxworks_adjust_dynamic_symbol): New function. | |
606 | (_bfd_mips_elf_always_size_sections): Do not allocate GOT page | |
607 | entries for VxWorks, and do not create multiple GOTs. | |
608 | (_bfd_mips_elf_size_dynamic_sections): Use MIPS_ELF_REL_DYN_NAME. | |
609 | Handle .got specially for VxWorks. Update the uses of | |
610 | MIPS_RESERVED_GOTNO and mips_elf_allocate_dynamic_relocations. | |
611 | Check for sgotplt and splt. Allocate the .rel(a).dyn contents last, | |
612 | once its final size is known. Set DF_TEXTREL for VxWorks. Add | |
613 | DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, DT_PLTRELSZ and DT_JMPREL | |
614 | tags on VxWorks. Do not add the MIPS-specific tags for VxWorks. | |
615 | (_bfd_mips_vxworks_finish_dynamic_symbol): New function. | |
616 | (mips_vxworks_finish_exec_plt): Likewise. | |
617 | (mips_vxworks_finish_shared_plt): Likewise. | |
618 | (_bfd_mips_elf_finish_dynamic_sections): Remove an unncessary call | |
619 | to mips_elf_rel_dyn_section. Use a VxWorks-specific value of | |
620 | DT_PLTGOT. Handle DT_RELA, DT_RELASZ, DT_RELAENT, DT_PLTREL, | |
621 | DT_PLTRELSZ and DT_JMPREL. Update the uses of MIPS_RESERVED_GOTNO | |
622 | and mips_elf_rel_dyn_section. Use a different GOT header for | |
623 | VxWorks. Don't sort .rela.dyn on VxWorks. Finish the PLT on VxWorks. | |
624 | (_bfd_mips_elf_link_hash_table_create): Initialize the new | |
625 | mips_elf_link_hash_table fields. | |
626 | (_bfd_mips_vxworks_link_hash_table_create): New function. | |
627 | (_bfd_mips_elf_final_link): Set the GP value to _GLOBAL_OFFSET_TABLE_ | |
628 | on VxWorks. Update the call to ELF_MIPS_GP_OFFSET. | |
629 | * elfxx-mips.h (_bfd_mips_vxworks_adjust_dynamic_symbol): Declare. | |
630 | (_bfd_mips_vxworks_finish_dynamic_symbol): Likewise. | |
631 | (_bfd_mips_vxworks_link_hash_table_create): Likewise. | |
632 | * libbfd.h: Regenerate. | |
633 | * Makefile.am (elfxx-mips.lo): Depend on elf-vxworks.h. | |
634 | (elf32-mips.lo): Likewise. | |
635 | * Makefile.in: Regenerate. | |
636 | * reloc.c (BFD_RELOC_MIPS_COPY, BFD_RELOC_MIPS_JUMP_SLOT): Declare. | |
637 | * targets.c (bfd_elf32_bigmips_vxworks_vec): Declare. | |
638 | (bfd_elf32_littlemips_vxworks_vec): Likewise. | |
639 | (_bfd_target_vector): Add entries for them. | |
640 | ||
a2199086 DA |
641 | 2006-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
642 | ||
643 | * elf64-hppa.c (elf64_hppa_special_sections): Change flags for .tbss | |
644 | section from SHF_PARISC_WEAKORDER to SHF_HP_TLS. | |
645 | (elf_backend_special_sections): Remove #undef. | |
646 | ||
af7cfa33 DA |
647 | 2006-03-18 John David Anglin <dave.anglin@nrc-cnrc.gc.ca> |
648 | ||
649 | * elf64-hppa.c (allocate_global_data_opd): Don't create an OPD entry | |
650 | for undefined weak symbols. | |
651 | ||
a4676736 L |
652 | 2006-03-17 Daniel Jacobowitz <dan@codesourcery.com> |
653 | ||
654 | PR ld/2462 | |
655 | * elflink.c (bfd_elf_final_link): Remove | |
656 | bed->elf_backend_emit_relocs from emit_relocs. | |
657 | ||
e1710606 AO |
658 | 2006-03-17 Alexandre Oliva <aoliva@redhat.com> |
659 | ||
660 | * elf32-ppc.c (ppc_elf_relocate_section): Copy addend from | |
661 | first relocation to the second when relaxing TLS GD to LE; | |
662 | zero it out when relaxing to IE. | |
663 | ||
2de92251 AM |
664 | 2006-03-17 Alan Modra <amodra@bigpond.net.au> |
665 | ||
666 | PR 2434 | |
667 | * elflink.c (elf_link_add_object_symbols): Save and restore | |
668 | warning sym's linked sym. | |
669 | ||
66eb6687 AM |
670 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
671 | ||
672 | PR 2434 | |
673 | * elflink.c (struct elf_smash_syms_data, elf_smash_syms): Delete. | |
674 | (elf_link_add_object_symbols): Delete unnecessary locals. Rename | |
675 | hash_table -> htab. Formatting. Save entire symbol table | |
676 | before loading as-needed syms, and restore afterwards if lib not | |
677 | needed. Use bfd_hash_allocate rather than bfd_alloc for sym | |
678 | name. Free some buffers earlier. | |
679 | * bfd-in.h (struct bfd_hash_table): Add entsize. | |
680 | (bfd_hash_table_init, bfd_hash_table_init_n): Adjust prototype. | |
681 | * elf-bfd.h (_bfd_elf_link_hash_table_init): Likewise | |
682 | * hash.c (bfd_hash_table_init_n): Add entsize param, save to | |
683 | hash table. | |
684 | (bfd_hash_table_init): Add param, adjust calls. | |
685 | * aoutx.h: Adjust all hash_table_init functions and calls. | |
686 | * bfd.c: Likewise. | |
687 | * coff-arm.c: Likewise. | |
688 | * coff-h8300.c: Likewise. | |
689 | * coff-ppc.c: Likewise. | |
690 | * cofflink.c: Likewise. | |
691 | * ecoff.c: Likewise. | |
692 | * ecofflink.c: Likewise. | |
693 | * elf-m10300.c: Likewise. | |
694 | * elf-strtab.c: Likewise. | |
695 | * elf.c: Likewise. | |
696 | * elf32-arm.c: Likewise. | |
697 | * elf32-bfin.c: Likewise. | |
698 | * elf32-cris.c: Likewise. | |
699 | * elf32-frv.c: Likewise. | |
700 | * elf32-hppa.c: Likewise. | |
701 | * elf32-i386.c: Likewise. | |
702 | * elf32-m32r.c: Likewise. | |
703 | * elf32-m68hc1x.c: Likewise. | |
704 | * elf32-m68k.c: Likewise. | |
705 | * elf32-ppc.c: Likewise. | |
706 | * elf32-s390.c: Likewise. | |
707 | * elf32-sh.c: Likewise. | |
708 | * elf32-vax.c: Likewise. | |
709 | * elf64-alpha.c: Likewise. | |
710 | * elf64-hppa.c: Likewise. | |
711 | * elf64-ppc.c: Likewise. | |
712 | * elf64-s390.c: Likewise. | |
713 | * elf64-sh64.c: Likewise. | |
714 | * elf64-x86-64.c: Likewise. | |
715 | * elfxx-ia64.c: Likewise. | |
716 | * elfxx-mips.c: Likewise. | |
717 | * elfxx-sparc.c: Likewise. | |
718 | * i386linux.c: Likewise. | |
719 | * libaout.h: Likewise. | |
720 | * libbfd-in.h: Likewise. | |
721 | * libcoff-in.h: Likewise. | |
722 | * linker.c: Likewise. | |
723 | * m68klinux.c: Likewise. | |
724 | * merge.c: Likewise. | |
725 | * opncls.c: Likewise. | |
726 | * pdp11.c: Likewise. | |
727 | * sparclinux.c: Likewise. | |
728 | * stabs.c: Likewise. | |
729 | * sunos.c: Likewise. | |
730 | * vms.c: Likewise. | |
731 | * xcofflink.c: Likewise. | |
732 | * section.c (struct section_hash_entry): Move to.. | |
733 | * libbfd-in.h: ..here. | |
734 | * Makefile.am: Run "make dep-am" | |
735 | * Makefile.in: Regenerate. | |
736 | * bfd-in2.h: Regenerate. | |
737 | * libbfd.h: Regenerate. | |
738 | * libcoff.h: Regenerate. | |
739 | ||
7123df0e AM |
740 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
741 | ||
742 | * elf32-ppc.c (ppc_elf_check_relocs): REL24 and REL14 relocs | |
743 | against __GLOBAL_OFFSET_TABLE__ need never be dynamic. Tweak | |
744 | last change to REL32 relocs so that they are counted as | |
745 | possibly dynamic as per REL24 and REL14. | |
746 | ||
fd38b44c AM |
747 | 2006-03-16 Alan Modra <amodra@bigpond.net.au> |
748 | ||
749 | * elf32-ppc.c (ppc_elf_check_relocs): Don't fall into REL24 | |
750 | checks from REL32. | |
751 | ||
eb111b1f BE |
752 | 2006-03-15 Ben Elliston <bje@au.ibm.com> |
753 | ||
754 | * elf32-arm.c (elf32_arm_merge_eabi_attributes): Iterate over all | |
755 | in_list elements, not just the first. | |
756 | ||
81d43bff RS |
757 | 2006-03-14 Richard Sandiford <richard@codesourcery.com> |
758 | ||
759 | * elf32-mips.c (mips_elf_adjust_addend): New function, mostly split | |
760 | out from... | |
761 | (_bfd_mips_elf_relocate_section): ...here. Use it to adjust r_addend | |
762 | for final links too. | |
763 | ||
d329bcd1 RS |
764 | 2006-03-13 Richard Sandiford <richard@codesourcery.com> |
765 | ||
766 | * elfxx-mips.c (mips_elf_create_got_section): Initialize hgot. | |
767 | ||
75a657ba L |
768 | 2006-03-11 H.J. Lu <hongjiu.lu@intel.com> |
769 | ||
770 | PR ld/2443 | |
241a6c40 | 771 | * dwarf2.c (concat_filename): Don't issue an error if file is 0. |
75a657ba | 772 | |
3a4a14e9 PB |
773 | 2006-03-10 Paul Brook <paul@codesourcery.com> |
774 | ||
775 | * elf32-arm.c (INTERWORK_FLAG): Handle EABIv5. | |
776 | (elf32_arm_print_private_bfd_data): Ditto. | |
777 | ||
38406048 PB |
778 | 2006-03-09 Paul Brook <paul@codesourcery.com> |
779 | ||
780 | * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Recognise additional | |
781 | mapping symbols. | |
782 | ||
eed62c48 NC |
783 | 2006-03-09 Khem Raj <khem@mvista.com> |
784 | ||
785 | * elf32-arm.c(elf32_arm_finish_dynamic_sections): Use unsigned | |
786 | char type. | |
787 | ||
6d2cf7d8 L |
788 | 2006-03-08 H.J. Lu <hongjiu.lu@intel.com> |
789 | ||
790 | * elfxx-ia64.c (elfNN_ia64_choose_gp): Properly choose gp. | |
791 | ||
00a97672 RS |
792 | 2006-03-07 Richard Sandiford <richard@codesourcery.com> |
793 | Daniel Jacobowitz <dan@codesourcery.com> | |
794 | Zack Weinberg <zack@codesourcery.com> | |
795 | Nathan Sidwell <nathan@codesourcery.com> | |
796 | Paul Brook <paul@codesourcery.com> | |
797 | Ricardo Anguiano <anguiano@codesourcery.com> | |
798 | Phil Edwards <phil@codesourcery.com> | |
799 | ||
800 | * configure.in (bfd_elf32_bigarm_vec): Include elf-vxworks.lo. | |
801 | (bfd_elf32_bigarm_symbian_vec): Likewise. | |
802 | (bfd_elf32_bigarm_vxworks_vec): Likewise. | |
803 | (bfd_elf32_littlearm_vec): Likewise. | |
804 | (bfd_elf32_littlearm_symbian_vec): Likewise. | |
805 | (bfd_elf32_littlearm_vxworks_vec): Likewise. | |
806 | * configure: Regenerate. | |
807 | * elf32-arm.c: Include libiberty.h and elf-vxworks.h. | |
808 | (RELOC_SECTION, RELOC_SIZE, SWAP_RELOC_IN, SWAP_RELOC_OUT): New macros. | |
809 | (elf32_arm_vxworks_bed): Add forward declaration. | |
810 | (elf32_arm_howto_table_1): Fix the masks for R_ASM_ABS12. | |
811 | (elf32_arm_vxworks_exec_plt0_entry): New table. | |
812 | (elf32_arm_vxworks_exec_plt_entry): Likewise. | |
813 | (elf32_arm_vxworks_shared_plt_entry): Likewise. | |
814 | (elf32_arm_link_hash_table): Add vxworks_p and srelplt2 fields. | |
815 | (reloc_section_p): New function. | |
816 | (create_got_section): Use RELOC_SECTION. | |
817 | (elf32_arm_create_dynamic_sections): Likewise. Call | |
818 | elf_vxworks_create_dynamic_sections for VxWorks targets. | |
819 | Choose between the two possible values of plt_header_size | |
820 | and plt_entry_size. | |
821 | (elf32_arm_link_hash_table_create): Initialize vxworks_p and srelplt2. | |
822 | (elf32_arm_abs12_reloc): New function. | |
823 | (elf32_arm_final_link_relocate): Call it. Allow the creation of | |
824 | dynamic R_ARM_ABS12 relocs on VxWorks. Use reloc_section_p, | |
825 | RELOC_SIZE, SWAP_RELOC_OUT and RELOC_SECTION. Initialize the | |
826 | r_addend fields of relocs. On rela targets, skip any code that | |
827 | adjusts in-place addends. When using _bfd_link_final_relocate | |
828 | to perform a final relocation, pass rel->r_addend as the addend | |
829 | argument. | |
830 | (elf32_arm_merge_private_bfd_data): If one of the bfds is a VxWorks | |
831 | object, ignore flags that are not standard on VxWorks. | |
832 | (elf32_arm_check_relocs): Allow the creation of dynamic R_ARM_ABS12 | |
833 | relocs on VxWorks. Use reloc_section_p. | |
834 | (elf32_arm_adjust_dynamic_symbol): Use RELOC_SECTION and RELOC_SIZE. | |
835 | (allocate_dynrelocs): Use RELOC_SIZE. Account for the size of | |
836 | .rela.plt.unloaded relocs on VxWorks targets. | |
837 | (elf32_arm_size_dynamic_sections): Use RELOC_SIZE. Check for | |
838 | .rela.plt.unloaded as well as .rel(a).plt. Add DT_RELA* tags | |
839 | instead of DT_REL* tags on RELA targets. | |
840 | (elf32_arm_finish_dynamic_symbol): Use RELOC_SECTION, RELOC_SIZE | |
841 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle VxWorks | |
842 | PLT entries. Do not make _GLOBAL_OFFSET_TABLE_ absolute on VxWorks. | |
843 | (elf32_arm_finish_dynamic_sections): Use RELOC_SECTION, RELOC_SIZE | |
844 | and SWAP_RELOC_OUT. Initialize r_addend fields. Handle DT_RELASZ | |
845 | like DT_RELSZ. Handle the VxWorks form of initial PLT entry. | |
846 | Correct the .rela.plt.unreloaded symbol indexes. | |
847 | (elf32_arm_output_symbol_hook): Call the VxWorks version of this | |
848 | hook on VxWorks targets. | |
849 | (elf32_arm_vxworks_link_hash_table_create): Set vxworks_p to true. | |
850 | Minor formatting tweak. | |
851 | (elf32_arm_vxworks_final_write_processing): New function. | |
852 | (elf_backend_add_symbol_hook): Override for VxWorks and reset | |
853 | for Symbian. | |
854 | (elf_backend_final_write_processing): Likewise. | |
855 | (elf_backend_emit_relocs): Likewise. | |
856 | (elf_backend_want_plt_sym): Likewise. | |
857 | (ELF_MAXPAGESIZE): Likewise. | |
858 | (elf_backend_may_use_rel_p): Minor formatting tweak. | |
859 | (elf_backend_may_use_rela_p): Likewise. | |
860 | (elf_backend_default_use_rela_p): Likewise. | |
861 | (elf_backend_rela_normal): Likewise. | |
862 | * Makefile.in (elf32-arm.lo): Depend on elf-vxworks.h. | |
863 | ||
0b2e31dc NS |
864 | 2006-03-06 Nathan Sidwell <nathan@codesourcery.com> |
865 | ||
866 | * archures.c (bfd_mach_mcf_isa_a_nodiv, bfd_mach_mcf_isa_b_nousp): | |
867 | New. Adjust other variants. | |
868 | (bfd_default_scan): Update. | |
869 | * bfd-in2.h: Rebuilt. | |
870 | * cpu-m68k.c: Adjust. | |
871 | (bfd_m68k_compatible): New. Use it for architectures. | |
872 | * elf32-m68k.c (elf32_m68k_object_p): Adjust. | |
873 | (elf32_m68k_merge_private_bfd_data): Adjust. Correct isa-a/b | |
874 | mismatch. | |
875 | (elf32_m68k_print_private_bfd_data): Adjust. | |
876 | * ieee.c (ieee_write_processor): Adjust. | |
877 | ||
d8d1c398 AM |
878 | 2006-03-06 Alan Modra <amodra@bigpond.net.au> |
879 | ||
880 | * dwarf2.c: Formatting. | |
881 | (add_line_info): Remove outer loop. | |
882 | ||
d4c32a81 L |
883 | 2006-03-05 H.J. Lu <hongjiu.lu@intel.com> |
884 | Alan Modra <amodra@bigpond.net.au> | |
885 | ||
886 | PR binutils/2338 | |
887 | * dwarf2.c (loadable_section): New struct. | |
888 | (dwarf2_debug): Add loadable_section_count and | |
889 | loadable_sections. | |
890 | (new_line_sorts_after): New. | |
891 | (add_line_info): Use new_line_sorts_after to compare line | |
892 | addresses. | |
893 | (check_function_name): Removed. | |
894 | (unset_sections): New. | |
895 | (place_sections): New. | |
896 | (_bfd_dwarf2_find_nearest_line): Updated. Call place_sections | |
897 | and unset_sections on relocatable files. | |
898 | (_bfd_dwarf2_find_line): Likewise. | |
899 | ||
4cdc7696 NC |
900 | 2006-03-03 Nick Clifton <nickc@redhat.com> |
901 | ||
902 | * cpu-avr.c: Update to ISO-C90 formatting. | |
903 | * elf32-avr.c: Likewise. | |
904 | ||
df406460 NC |
905 | 2006-03-03 Bjoern Haase <bjoern.m.haase@web.de> |
906 | ||
907 | * elf32-avr.c (avr_reloc_map): Insert BFD_RELOC_AVR_MS8_LDI | |
908 | and R_AVR_MS8_LDI | |
909 | (bfd_elf_avr_final_write_processing): Set | |
910 | EF_AVR_LINKRELAX_PREPARED in e_flags field. | |
911 | (elf32_avr_relax_section): New function. | |
912 | (elf32_avr_relax_delete_bytes): New function. | |
913 | (elf32_avr_get_relocated_section_contents): New function. | |
914 | (avr_pc_wrap_around): New function. | |
915 | (avr_relative_distance_considering_wrap_around): New function. | |
916 | (avr_final_link_relocate): Handle negative int8t_t immediate for R_AVR_LDI. | |
917 | * reloc.c: Add BFD_RELOC_AVR_MS8_LDI and BFD_RELOC_AVR_LDI_NEG | |
918 | * libbfd.h: Regenerate. | |
919 | * bfd-in2.h: Regenerate. | |
920 | ||
a1013894 DD |
921 | 2006-03-02 DJ Delorie <dj@redhat.com> |
922 | ||
923 | * elf32-m32c.c (m32c_offset_for_reloc): Fix local symbol | |
924 | calculations. | |
925 | ||
7c492719 RS |
926 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
927 | ||
928 | * elf32-ppc.c (is_ppc_elf_target): Return true if the target is | |
929 | bfd_elf32_powerpc_vxworks_vec. | |
930 | ||
e970df31 NC |
931 | 2006-03-02 Nick Clifton <nickc@redhat.com> |
932 | ||
933 | * elf32-m32c.c (m32c_elf_relax_section): Initialise 'gap'. | |
934 | ||
711de32c RS |
935 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
936 | ||
937 | * elf32-i386.c (elf_i386_create_dynamic_sections): Use | |
938 | elf_vxworks_create_dynamic_sections. | |
939 | (elf_i386_size_dynamic_sections): Remove VxWorks GOT and PLT | |
940 | symbol handling. | |
941 | * elf32-ppc.c (ppc_elf_create_dynamic_sections): Use | |
942 | elf_vxworks_create_dynamic_sections. | |
943 | (ppc_elf_size_dynamic_sections): Remove VxWorks GOT and PLT | |
944 | symbol handling. | |
945 | * elf-vxworks.c (elf_vxworks_create_dynamic_sections): New function. | |
946 | * elf-vxworks.h (elf_vxworks_create_dynamic_sections): Declare. | |
947 | ||
9c72ff84 RS |
948 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
949 | ||
950 | * elf32-i386.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
951 | (elf_backend_link_output_symbol_hook): Use | |
952 | elf_vxworks_link_output_symbol_hook instead. | |
953 | * elf32-ppc.c (elf_i386_vxworks_link_output_symbol_hook): Delete. | |
954 | (elf_backend_link_output_symbol_hook): Use | |
955 | elf_vxworks_link_output_symbol_hook instead. | |
956 | * elf-vxworks.c (elf_vxworks_link_output_symbol_hook): Provide the | |
957 | same interface as elf_backend_link_output_symbol_hook. | |
958 | * elf-vxworks.h (elf_vxworks_link_output_symbol_hook): Update | |
959 | prototype accordingly. | |
960 | ||
4a3dc543 RS |
961 | 2006-03-02 Richard Sandiford <richard@codesourcery.com> |
962 | ||
963 | * elf32-ppc.c (ppc_elf_plt_type): New enumeration. | |
964 | (ppc_elf_link_hash_table): Replace old_got and new_got with | |
965 | plt_type and can_use_new_plt. | |
966 | (ppc_elf_create_dynamic_sections): Add SEC_HAS_CONTENTS, | |
967 | SEC_LOAD and SEC_READONLY to the VxWorks .plt flags. | |
968 | (ppc_elf_check_relocs): Set can_use_new_plt instead of new_plt. | |
969 | Move from plt_type == PLT_UNSET to PLT_OLD instead of setting old_plt. | |
970 | (ppc_elf_select_plt_layout): Move from plt_type == PLT_UNSET to | |
971 | either plt_type == PLT_OLD or plt_type == PLT_NEW. Assert that | |
972 | this function should not be called for VxWorks targets. | |
973 | (ppc_elf_tls_setup): Use plt_type instead of old_got. | |
974 | (allocate_got): Likewise. Rearrange so that max_before_header | |
975 | is only used for PLT_OLD and PLT_NEW. | |
976 | (allocate_dynrelocs): Use plt_type instead of old_got and is_vxworks. | |
977 | (ppc_elf_size_dynamic_sections): Likewise. | |
978 | (ppc_elf_relax_section): Likewise. | |
979 | (ppc_elf_relocate_section): Likewise. | |
980 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
981 | (ppc_elf_vxworks_link_hash_table_create): Initialize plt_type. | |
982 | ||
5ae0bfb6 RS |
983 | 2006-02-28 Richard Sandiford <richard@codesourcery.com> |
984 | ||
985 | * elf32-i386.c (elf_i386_link_hash_table): Add next_tls_desc_index. | |
986 | (elf_i386_link_hash_table_create): Initialize it. | |
987 | (elf_i386_compute_jump_table_size): Use it instead of | |
988 | srelplt->reloc_count. | |
989 | (allocate_dynrelocs): Likewise. | |
990 | (elf_i386_size_dynamic_sections): Likewise. | |
991 | (elf_i386_relocate_section): Likewise. | |
992 | ||
63752a75 JJ |
993 | 2006-02-27 Jakub Jelinek <jakub@redhat.com> |
994 | ||
995 | * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle S flag. | |
996 | (_bfd_elf_write_section_eh_frame): Likewise. | |
997 | ||
f7d9e5c3 CD |
998 | 2006-02-27 Carlos O'Donell <carlos@codesourcery.com> |
999 | ||
1000 | * po/Make-in: Add html target. | |
1001 | ||
22edb2f1 RS |
1002 | 2006-02-27 Richard Sandiford <richard@codesourcery.com> |
1003 | ||
1004 | * elf-m10300.c (_bfd_mn10300_elf_finish_dynamic_symbol): Use the | |
1005 | cached hgot entry to check for _GLOBAL_OFFSET_TABLE_. | |
1006 | * elf32-arm.c (elf32_arm_finish_dynamic_symbol): Likewise. | |
1007 | * elf32-bfin.c (bfin_finish_dynamic_symbol): Likewise. | |
1008 | * elf32-cris.c (elf_cris_finish_dynamic_symbol): Likewise. | |
1009 | * elf32-hppa.c (elf32_hppa_finish_dynamic_symbol): Likewise. | |
1010 | * elf32-i386.c (elf_i386_finish_dynamic_symbol): Likewise. | |
1011 | * elf32-m32r.c (m32r_elf_finish_dynamic_symbol): Likewise. | |
1012 | * elf32-m68k.c (elf_m68k_finish_dynamic_symbol): Likewise. | |
1013 | * elf32-sh.c (sh_elf_finish_dynamic_symbol): Likewise. | |
1014 | * elf32-vax.c (elf_vax_finish_dynamic_symbol): Likewise. | |
1015 | * elf32-xtensa.c (elf_xtensa_finish_dynamic_symbol): Likewise. | |
1016 | * elf64-sh64.c (sh64_elf64_finish_dynamic_symbol): Likewise. | |
1017 | * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Likewise. | |
1018 | * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Likewise. | |
1019 | * elf32-s390.c (elf_s390_finish_dynamic_symbol): Likewise. Also use | |
1020 | the cached hplt entry to check for _PROCEDURE_LINKAGE_TABLE_. | |
1021 | * elf64-alpha.c (elf64_alpha_finish_dynamic_symbol): Likewise. | |
1022 | * elf64-s390.c (elf_s390_finish_dynamic_symbol): Likewise. | |
1023 | * elfxx-ia64.c (elfNN_ia64_finish_dynamic_symbol): Likewise. | |
1024 | * elfxx-sparc.c (_bfd_sparc_elf_finish_dynamic_symbol): Likewise. | |
1025 | ||
7325306f RS |
1026 | 2006-02-25 Richard Sandiford <richard@codesourcery.com> |
1027 | ||
1028 | * elf-bfd.h (elf_link_hash_table): Add hplt field. | |
1029 | * elflink.c (_bfd_elf_create_dynamic_sections): Initialize it. | |
1030 | * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise. | |
1031 | * elf32-frv.c (_frv_create_got_section): Likewise. | |
1032 | * elf32-m32r.c (m32r_elf_create_dynamic_sections): Likewise. | |
1033 | * elf32-sh.c (sh_elf_create_dynamic_sections): Likewise. | |
1034 | * elf64-alpha.c (elf64_alpha_create_dynamic_sections): Likewise. | |
1035 | * elf64-sh64.c (sh64_elf64_create_dynamic_sections): Likewise. | |
1036 | * elf32-i386.c (elf_i386_link_hash_table): Remove hgot and hplt. | |
1037 | (elf_i386_link_hash_table_create): Don't initialize them. | |
1038 | (elf_i386_size_dynamic_sections): Use the generic ELF hplt and | |
1039 | hgot fields. | |
1040 | (elf_i386_finish_dynamic_symbol): Likewise. | |
1041 | * elf32-ppc.c (ppc_elf_link_hash_table): Remove hplt. | |
1042 | (ppc_elf_size_dynamic_sections): Use the generic ELF hplt fields. | |
1043 | (ppc_elf_finish_dynamic_symbol): Likewise. | |
1044 | ||
6772dd07 DD |
1045 | 2006-02-24 DJ Delorie <dj@redhat.com> |
1046 | ||
1047 | * elf32-m32c.c (m32c_elf_howto_table): Add relaxation relocs. | |
1048 | (m32c_elf_relocate_section): Don't relocate them. | |
1049 | (compare_reloc): New. | |
1050 | (relax_reloc): Remove. | |
1051 | (m32c_offset_for_reloc): New. | |
1052 | (m16c_addr_encodings): New. | |
1053 | (m16c_jmpaddr_encodings): New. | |
1054 | (m32c_addr_encodings): New. | |
1055 | (m32c_elf_relax_section): Relax jumps and address displacements. | |
1056 | (m32c_elf_relax_delete_bytes): Adjust for internal syms. Fix up | |
1057 | short jumps. | |
1058 | ||
1059 | * reloc.c: Add m32c relax relocs. | |
1060 | * libbfd.h: Regenerate. | |
1061 | * bfd-in2.h: Regenerate. | |
1062 | ||
508c3946 L |
1063 | 2006-02-24 H.J. Lu <hongjiu.lu@intel.com> |
1064 | ||
1065 | PR ld/2218 | |
1066 | * elf-bfd.h (elf_backend_data): Add elf_backend_fixup_symbol. | |
1067 | (_bfd_elf_link_hash_fixup_symbol): New. | |
1068 | ||
1069 | * elflink.c (_bfd_elf_link_hash_fixup_symbol): New. | |
1070 | (_bfd_elf_fix_symbol_flags): Call elf_backend_fixup_symbol if | |
1071 | it isn't NULL. | |
1072 | ||
1073 | * elfxx-ia64.c (elf_backend_fixup_symbol): Defined. | |
1074 | ||
1075 | * elfxx-target.h (elf_backend_fixup_symbol): New. | |
1076 | (elfNN_bed): Initialize elf_backend_fixup_symbol. | |
1077 | ||
59cf82fe L |
1078 | 2006-02-23 H.J. Lu <hongjiu.lu@intel.com> |
1079 | ||
1080 | * cpu-ia64-opc.c (ins_immu5b): New. | |
1081 | (ext_immu5b): Likewise. | |
1082 | (elf64_ia64_operands): Add IMMU5b. | |
1083 | ||
22d606e9 AM |
1084 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
1085 | ||
1086 | PR ld/2218 | |
1087 | * elf32-arm.c (allocate_dynrelocs): Ensure undef weak sym in pie | |
1088 | is dynamic. | |
1089 | * elf32-hppa.c (allocate_dynrelocs): Likewise. | |
1090 | * elf32-i386.c (allocate_dynrelocs): Likewise. | |
1091 | * elf32-s390.c (allocate_dynrelocs): Likewise. | |
1092 | * elf32-sh.c (allocate_dynrelocs): Likewise. | |
1093 | * elf64-s390.c (allocate_dynrelocs): Likewise. | |
1094 | * elf64-x86-64.c (allocate_dynrelocs): Likewise. | |
1095 | * elf32-m32r.c (allocate_dynrelocs): Likewise. Discard relocs | |
1096 | on undef weak with non-default visibility too. | |
1097 | * elfxx-sparc.c (allocate_dynrelocs): Ditto. | |
1098 | ||
3168356f AM |
1099 | 2006-02-21 Alan Modra <amodra@bigpond.net.au> |
1100 | ||
1101 | * bfd.c: (_bfd_default_error_handler): Don't call abort on | |
1102 | error, instead call _exit. | |
1103 | (_bfd_abort): Call _exit not xexit. | |
1104 | ||
888b45b8 KB |
1105 | 2006-02-17 Kevin Buettner <kevinb@redhat.com> |
1106 | ||
1107 | * elf32-frv.c (elf32_frv_grok_prstatus, elf32_frv_grok_psinfo): | |
1108 | New functions. | |
1109 | * elf_backend_grok_prstatus, elf_backend_grok_psinfo): Define. | |
1110 | ||
d70c5fc7 NC |
1111 | 2006-02-17 Shrirang Khisti <shrirangk@kpitcummins.com> |
1112 | Anil Paranjape <anilp1@kpitcummins.com> | |
1113 | Shilin Shakti <shilins@kpitcummins.com> | |
1114 | ||
1115 | * Makefile.am: Add xc16x related entry | |
1116 | * Makefile.in: Regenerate | |
1117 | * archures.c: Add bfd_xc16x_arch | |
1118 | * bfd-in2.h: Regenerate | |
1119 | * config.bfd: Add xc16x-*-elf | |
1120 | * configure.in: Add bfd_elf32_xc16x_vec | |
1121 | * configure: Regenerate. | |
1122 | * targets.c: Added xc16x related information | |
1123 | * cpu-xc16x.c: New file | |
1124 | * reloc.c: Add new relocations specific to xc16x: | |
1125 | BFD_RELOC_XC16X_PAG, BFD_RELOC_XC16X_POF, BFD_RELOC_XC16X_SEG, | |
1126 | BFD_RELOC_XC16X_SOF | |
1127 | * elf32-xc16x.c: New file. | |
1128 | ||
cab87ef9 AM |
1129 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
1130 | ||
1131 | * elf32-ppc.c (allocate_dynrelocs): Tweak undef weak handling. | |
1132 | * elf64-ppc.c (allocate_dynrelocs): Likewise. | |
1133 | ||
dfbb6ac9 AM |
1134 | 2006-02-17 Alan Modra <amodra@bigpond.net.au> |
1135 | ||
1136 | PR ld/2218 | |
1137 | * elf64-ppc.c (allocate_dynrelocs): Ensure undef weak sym is | |
1138 | dynamic. | |
1139 | (ppc64_elf_relocate_section): Check output reloc section size. | |
1140 | * elf32-ppc.c (allocate_dynrelocs): Simplify undef weak test. | |
1141 | ||
cedc298e L |
1142 | 2006-02-16 H.J. Lu <hongjiu.lu@intel.com> |
1143 | ||
1144 | PR ld/2322 | |
1145 | * elf.c (get_segment_type): New function. | |
1146 | (_bfd_elf_print_private_bfd_data): Use it. | |
1147 | (print_segment_map): New function. | |
1148 | (assign_file_positions_for_segments): Call print_segment_map | |
1149 | when there are not enough room for program headers. | |
1150 | ||
aaa2ab3d NH |
1151 | 2006-02-16 Nick Hudson <nick.hudson@dsl.pipex.com> |
1152 | ||
1153 | * config.bfd (mips*el-*-netbsd*, mips*-*-netbsd*): Use | |
1154 | traditional MIPS ELF targets. | |
1155 | ||
35ccda9e L |
1156 | 2006-02-15 H.J. Lu <hongjiu.lu@intel.com> |
1157 | ||
1158 | PR binutils/2338 | |
1159 | * dwarf2.c (check_function_name): New function. | |
1160 | (_bfd_dwarf2_find_nearest_line): Use check_function_name to | |
1161 | check if function is correct. | |
1162 | ||
e0ae6d6f AM |
1163 | 2006-02-16 Alan Modra <amodra@bigpond.net.au> |
1164 | ||
1165 | * elflink.c (_bfd_elf_default_action_discarded): Return 0 for | |
1166 | debug sections. | |
1167 | (elf_link_input_bfd): Adjust comments. | |
1168 | ||
d55ce4e2 L |
1169 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
1170 | ||
1171 | * elf.c (copy_private_bfd_data): Minor update. | |
1172 | ||
84d1d650 L |
1173 | 2006-02-10 H.J. Lu <hongjiu.lu@intel.com> |
1174 | ||
1175 | PR binutils/2258 | |
1176 | * elf.c (copy_private_bfd_data): Renamed to ... | |
1177 | (rewrite_elf_program_header): This. | |
1178 | (copy_elf_program_header): New function. | |
1179 | (copy_private_bfd_data): Likewise. | |
1180 | ||
1181 | 2006-02-07 Nathan Sidwell <nathan@codesourcery.com> | |
266abb8f NS |
1182 | |
1183 | * archures.c (bfd_mach_mcf5200, bfd_mach_mcf5206e, | |
1184 | bfd_mach_mcf5307, bfd_mach_mcf5407, bfd_mach_mcf528x, | |
1185 | bfd_mach_mcfv4e, bfd_mach_mcf521x, bfd_mach_mcf5249, | |
1186 | bfd_mach_mcf547x, bfd_mach_mcf548x): Remove. | |
1187 | (bfd_mach_mcf_isa_a, bfd_mach_mcf_isa_a_div, | |
1188 | bfd_mach_mcf_isa_a_div_mac, bfd_mach_mcf_isa_a_div_emac, | |
1189 | bfd_mach_mcf_isa_aplus, bfd_mach_mcf_isa_aplus_mac, | |
1190 | bfd_mach_mcf_isa_aplus_emac, bfd_mach_mcf_isa_aplus_usp, | |
1191 | bfd_mach_mcf_isa_aplus_usp_mac, bfd_mach_mcf_isa_aplus_usp_emac, | |
1192 | bfd_mach_mcf_isa_b, bfd_mach_mcf_isa_b_mac, bfd_mach_mcf_isa_b_emac, | |
1193 | bfd_mach_mcf_isa_b_usp_float, bfd_mach_mcf_isa_b_usp_float_mac, | |
1194 | bfd_mach_mcf_isa_b_usp_float_emac): New. | |
1195 | (bfd_default_scan): Update coldfire mapping. | |
1196 | * bfd-in.h (bfd_m68k_mach_to_features, | |
1197 | bfd_m68k_features_to_mach): Declare. | |
1198 | * bfd-in2.h: Rebuilt. | |
1199 | * cpu-m68k.c (arch_info_struct): Add new coldfire machines, | |
1200 | adjust legacy names. | |
1201 | (m68k_arch_features): New. | |
1202 | (bfd_m68k_mach_to_features, | |
1203 | bfd_m68k_features_to_mach): Define. | |
1204 | * elf32-m68k.c (elf32_m68k_object_p): New. | |
1205 | (elf32_m68k_merge_private_bfd_data): Merge the CF EF flags. | |
1206 | (elf32_m68k_print_private_bfd_data): Print the CF EF flags. | |
1207 | (elf_backend_object_p): Define. | |
1208 | * ieee.c (ieee_write_processor): Update coldfire machines. | |
1209 | * libbfd.h: Rebuilt. | |
1210 | ||
75eb734c SE |
1211 | 2006-02-06 Steve Ellcey <sje@cup.hp.com> |
1212 | ||
1213 | * elfxx-ia64.c (elfNN_ia64_fake_sections): Set SHF_IA_64_HP_TLS | |
1214 | if SHF_TLS is set. | |
1215 | ||
134dcee5 AM |
1216 | 2006-02-05 Arnold Metselaar <arnold.metselaar@planet.nl> |
1217 | ||
1218 | * coff-z80.c (r_imm24): New howto. | |
1219 | (rtype2howto): New case R_IMM24. | |
1220 | (coff_z80_reloc_type_lookup): New case BFD_RELOC_24. | |
1221 | (extra_case): Use bfd_get_8 for R_IMM8, new case R_IMM24. | |
1222 | ||
4005427f RS |
1223 | 2006-02-04 Richard Sandiford <richard@codesourcery.com> |
1224 | ||
1225 | * elfxx-mips.c (mips_elf_initialize_tls_index): If a TLS symbol | |
1226 | has already been assigned a GOT index, copy that index to the | |
1227 | current hash table entry. | |
1228 | ||
bb29dfea EB |
1229 | 2006-02-01 Eric Botcazou <ebotcazou@libertysurf.fr> |
1230 | ||
1231 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
1232 | for call-to-undefweak reloc overflow. | |
1233 | ||
dc669dc8 EB |
1234 | 2006-01-31 Eric Botcazou <ebotcazou@libertysurf.fr> |
1235 | ||
1236 | * elfxx-sparc.c (_bfd_sparc_elf_relocate_section): Reinstate bypass | |
1237 | for 32-bit relocs overflow. | |
1238 | ||
1a0eb693 PB |
1239 | 2006-01-27 Paul Brook <paul@codesourcery.com> |
1240 | ||
1241 | * elf32-arm.c (elf32_arm_get_symbol_type): Allow STT_TLS thumb | |
1242 | objects. | |
1243 | ||
67a4f2b7 AO |
1244 | 2006-01-18 Alexandre Oliva <aoliva@redhat.com> |
1245 | ||
1246 | Introduce TLS descriptors for i386 and x86_64. | |
1247 | * reloc.c (BFD_RELOC_386_TLS_GOTDESC, BFD_RELOC_386_TLS_DESC, | |
1248 | BFD_RELOC_386_TLS_DESC_CALL, BFD_RELOC_X86_64_GOTPC32_TLSDESC, | |
1249 | BFD_RELOC_X86_64_TLSDESC, BFD_RELOC_X86_64_TLSDESC_CALL): New. | |
1250 | * libbfd.h, bfd-in2.h: Rebuilt. | |
1251 | * elf32-i386.c (elf_howto_table): New relocations. | |
1252 | (R_386_tls): Adjust. | |
1253 | (elf_i386_reloc_type_lookup): Map new relocations. | |
1254 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
1255 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
1256 | (struct elf_i386_link_hash_entry): Add tlsdesc_got field. | |
1257 | (struct elf_i386_obj_tdata): Add local_tlsdesc_gotent field. | |
1258 | (elf_i386_local_tlsdesc_gotent): New macro. | |
1259 | (struct elf_i386_link_hash_table): Add sgotplt_jump_table_size. | |
1260 | (elf_i386_compute_jump_table_size): New macro. | |
1261 | (link_hash_newfunc): Initialize tlsdesc_got. | |
1262 | (elf_i386_link_hash_table_create): Set sgotplt_jump_table_size. | |
1263 | (elf_i386_tls_transition): Handle R_386_TLS_GOTDESC and | |
1264 | R_386_TLS_DESC_CALL. | |
1265 | (elf_i386_check_relocs): Likewise. Allocate space for | |
1266 | local_tlsdesc_gotent. | |
1267 | (elf_i386_gc_sweep_hook): Handle R_386_TLS_GOTDESC and | |
1268 | R_386_TLS_DESC_CALL. | |
1269 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
1270 | space for TLS descriptors and relocations. | |
1271 | (elf_i386_size_dynamic_sections): Reserve space for TLS | |
1272 | descriptors and relocations. Set up sgotplt_jump_table_size. | |
1273 | Don't zero reloc_count in srelplt. | |
1274 | (elf_i386_always_size_sections): New. Set up _TLS_MODULE_BASE_. | |
1275 | (elf_i386_relocate_section): Handle R_386_TLS_GOTDESC and | |
1276 | R_386_TLS_DESC_CALL. | |
1277 | (elf_i386_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
1278 | (elf_backend_always_size_sections): Define. | |
1279 | * elf64-x86-64.c (x86_64_elf_howto): Add R_X86_64_GOTPC32_TLSDESC, | |
1280 | R_X86_64_TLSDESC, R_X86_64_TLSDESC_CALL. | |
1281 | (R_X86_64_standard): Adjust. | |
1282 | (x86_64_reloc_map): Map new relocs. | |
1283 | (elf64_x86_64_rtype_to_howto): New, split out of... | |
1284 | (elf64_x86_64_info_to_howto): ... this function, and... | |
1285 | (elf64_x86_64_reloc_type_lookup): ... use it to map elf_reloc_val. | |
1286 | (GOT_TLS_GDESC, GOT_TLS_GD_BOTH_P): New macros. | |
1287 | (GOT_TLS_GD_P, GOT_TLS_GDESC_P, GOT_TLS_GD_ANY_P): New macros. | |
1288 | (struct elf64_x86_64_link_hash_entry): Add tlsdesc_got field. | |
1289 | (struct elf64_x86_64_obj_tdata): Add local_tlsdesc_gotent field. | |
1290 | (elf64_x86_64_local_tlsdesc_gotent): New macro. | |
1291 | (struct elf64_x86_64_link_hash_table): Add tlsdesc_plt, | |
1292 | tlsdesc_got and sgotplt_jump_table_size fields. | |
1293 | (elf64_x86_64_compute_jump_table_size): New macro. | |
1294 | (link_hash_newfunc): Initialize tlsdesc_got. | |
1295 | (elf64_x86_64_link_hash_table_create): Initialize new fields. | |
1296 | (elf64_x86_64_tls_transition): Handle R_X86_64_GOTPC32_TLSDESC and | |
1297 | R_X86_64_TLSDESC_CALL. | |
1298 | (elf64_x86_64_check_relocs): Likewise. Allocate space for | |
1299 | local_tlsdesc_gotent. | |
1300 | (elf64_x86_64_gc_sweep_hook): Handle R_X86_64_GOTPC32_TLSDESC and | |
1301 | R_X86_64_TLSDESC_CALL. | |
1302 | (allocate_dynrelocs): Count function PLT relocations. Reserve | |
1303 | space for TLS descriptors and relocations. | |
1304 | (elf64_x86_64_size_dynamic_sections): Reserve space for TLS | |
1305 | descriptors and relocations. Set up sgotplt_jump_table_size, | |
1306 | tlsdesc_plt and tlsdesc_got. Make room for them. Don't zero | |
1307 | reloc_count in srelplt. Add dynamic entries for DT_TLSDESC_PLT | |
1308 | and DT_TLSDESC_GOT. | |
1309 | (elf64_x86_64_always_size_sections): New. Set up | |
1310 | _TLS_MODULE_BASE_. | |
1311 | (elf64_x86_64_relocate_section): Handle R_386_TLS_GOTDESC and | |
1312 | R_386_TLS_DESC_CALL. | |
1313 | (elf64_x86_64_finish_dynamic_symbol): Use GOT_TLS_GD_ANY_P. | |
1314 | (elf64_x86_64_finish_dynamic_sections): Set DT_TLSDESC_PLT and | |
1315 | DT_TLSDESC_GOT. Set up TLS descriptor lazy resolver PLT entry. | |
1316 | (elf_backend_always_size_sections): Define. | |
1317 | ||
6dd55cb7 L |
1318 | 2006-01-17 H.J. Lu <hongjiu.lu@intel.com> |
1319 | ||
1320 | PR binutils/2096 | |
1321 | * dwarf2.c (comp_unit_contains_address): Update comment. | |
1322 | (_bfd_dwarf2_find_nearest_line): Use section's vma, instead of | |
1323 | lma. Return TRUE only if both comp_unit_contains_address and | |
1324 | comp_unit_find_nearest_line return TRUE. | |
1325 | (_bfd_dwarf2_find_line): Use section's vma, instead of lma. | |
1326 | ||
64d03ab5 AM |
1327 | 2006-01-18 Alan Modra <amodra@bigpond.net.au> |
1328 | ||
1329 | * elf-bfd.h (struct elf_backend_data): Add gc_mark_dynamic_ref. | |
1330 | (bfd_elf_gc_mark_dynamic_ref_symbol): Declare. | |
1331 | * elflink.c (bfd_elf_gc_mark_dynamic_ref_symbol): Rename from | |
1332 | elf_gc_mark_dynamic_ref_symbol. Make global. | |
1333 | (bfd_elf_gc_sections): Call bed->gc_mark_dynamic_ref. | |
1334 | * elfxx-target.h (elf_backend_gc_mark_dynamic_ref): Define. | |
1335 | (elfNN_bed): Init new field. | |
1336 | * elf64-ppc.c (elf_backend_gc_mark_dynamic_ref): Define. | |
1337 | (ppc64_elf_gc_mark_dynamic_ref): New function. | |
1338 | ||
b56cbdb9 AM |
1339 | 2006-01-17 Alan Modra <amodra@bigpond.net.au> |
1340 | ||
1341 | * elf64-ppc.c (ppc64_elf_gc_mark_hook): Don't hang forever in loop. | |
1342 | ||
6c10990d NC |
1343 | 2006-01-17 Nick Clifton <nickc@redhat.com> |
1344 | ||
1345 | PR binutils/2159 | |
1346 | * elf.c (elfcore_write_pstatus): Add ATTRIBUTE_UNUSED to unused | |
1347 | parameters. | |
1348 | ||
d7f735da NC |
1349 | 2006-01-11 Nick Clifton <nickc@redhat.com> |
1350 | ||
1351 | * elf32-arm.c (elf32_arm_output_symbol_hook): Install new entry | |
1352 | into the newly (re)allocated map array. | |
1353 | ||
2bfd55ca NC |
1354 | 2006-01-09 Alexis Wilke <alexis_wilke@yahoo.com> |
1355 | ||
1356 | * peXXigen.c (tbl): Add comma after "HIGH3ADJ". | |
1357 | ||
bce50a28 JJ |
1358 | 2006-01-01 Jakub Jelinek <jakub@redhat.com> |
1359 | ||
1360 | * elf64-ppc.c (ppc64_elf_action_discarded): Return 0 | |
1361 | for .toc1 section. | |
1362 | ||
e88d958a | 1363 | For older changes see ChangeLog-2005 |
56882138 AM |
1364 | \f |
1365 | Local Variables: | |
1366 | mode: change-log | |
1367 | left-margin: 8 | |
1368 | fill-column: 74 | |
1369 | version-control: never | |
1370 | End: |