bfd/
[deliverable/binutils-gdb.git] / bfd / ChangeLog
CommitLineData
ac2aa337
JB
12005-07-18 Jan Beulich <jbeulich@novell.com>
2
3 * elf32-i386.c (elf_howto_table): Adjust overflow complaint handler
4 for R_386_PC16.
5 * elf64-x86-64.c (x86_64_elf_howto_table): Adjust overflow complaint
6 handler for R_X86_64_PC16, R_X86_64_8, and R_X86_64_DTPOFF.
7
9a20ed6e 82005-07-16 Eric Botcazou <ebotcazou@libertysurf.fr>
cc86ff91
EB
9
10 PR ld/1021
11 PR ld/1031
12 * elflink.c (elf_link_add_object_symbols): Also append the version
13 name to non-hidden absolute symbols that are functions.
14
42fa7765
AM
152005-07-16 Alan Modra <amodra@bigpond.net.au>
16
17 * elf32-ppc.c (ppc_elf_set_sdata_syms): Return void. Remove hack
18 for zero size sections. Don't set .sbss syms here.
19 * elf32-ppc.h (ppc_elf_set_sdata_syms): Adjust prototype.
20
0f82ff91
AM
212005-07-16 Alan Modra <amodra@bigpond.net.au>
22
23 * Makefile.am: Run "make dep-am".
24 * Makefile.in: Regenerate.
25
2db662be
BW
262005-07-15 Bob Wilson <bob.wilson@acm.org>
27
28 * elf32-xtensa.c (vsprint_msg): Add prototype.
29 (build_encoding_error_message): Delete. Code moved into....
30 (elf_xtensa_do_reloc): ....here, and changed to give better
31 error messages for out of range literals.
32
eaae8ded
AM
332005-07-15 Alan Modra <amodra@bigpond.net.au>
34
35 * elflink.c (bfd_elf_record_link_assignment): Remove output_bfd param.
36 (_bfd_elf_provide_symbol): Allow redefinition of weak syms and those
37 defined in output sections. Call bfd_elf_record_link_assignment.
38 * bfd-in.h (bfd_elf_record_link_assignment): Update prototype.
39 * bfd-in2.h: Regenerate.
40
49f58d10
JB
412005-07-14 Jim Blandy <jimb@redhat.com>
42
43 Add support for m32c-*-elf (Renesas m32c and m16c).
44 * Makefile.am (ALL_MACHINES): Add cpu-m32c.lo.
45 (ALL_MACHINES_CFILES): Add cpu-m32c.c.
46 (BFD32_BACKENDS): Add elf32-m32c.lo.
47 (BFD32_BACKENDS_CFILES): Add elf32-m32c.c.
48 (cpu-m32c.lo, elf32-m32c.lo): New rules, generated by 'make dep-am'.
49 * Makefile.in: Regenerated.
50 * archures.c (bfd_arch_m32c, bfd_mach_m16c, bfd_mach_m32c): New
51 arch and mach codes.
52 (bfd_m32c_arch): New arch info object.
53 (bfd_archures_list): List bfd_m32c_arch.
54 * bfd-in2.h: Regenerated.
55 * config.bfd: Add case for the m32c.
56 * configure.in: Add case for the m32c.
57 * configure: Regenerated.
58 * cpu-m32c.c, elf32-m32c.c: New files.
59 * libbfd.h: Regenerated.
60 * targets.c (bfd_elf32_m32c_vec): Declare.
61 (_bfd_target_vector): List bfd_elf32_m32c_vec.
62
a3c2b96a
AM
632005-07-14 Alan Modra <amodra@bigpond.net.au>
64
65 * bfd-in.h (_bfd_elf_fix_excluded_sec_syms): Declare.
66 (_bfd_elf_provide_section_bound_symbols): Remove param name.
67 Formatting.
68 * bfd-in2.h: Regenerate.
69 * elflink.c (bfd_elf_gc_sections): Don't call generic function.
70 (_bfd_elf_provide_symbol): Formatting.
71 (_bfd_elf_provide_section_bound_symbols): Remove all hacks, just
72 create section relative syms.
73 (fix_syms, _bfd_elf_fix_excluded_sec_syms): New functions.
74 * elf32-ppc.c (ppc_elf_set_sdata_syms): Use
75 _bfd_elf_provide_section_bound_symbols.
76 * reloc.c (bfd_mark_used_section): Delete.
77 (bfd_generic_gc_sections): Don't call the above.
78
1787c340
NC
792005-07-14 Paul Woegerer <paul.woegerer@nsc.com>
80
cb4aa473 81 PR 1063
1787c340
NC
82 * cache.c (bfd_last_cache): Initialise to NULL.
83
15ac1d4f
NC
842005-07-14 Daniel Marques <marques@cs.cornell.edu>
85 Nick Clifton <nickc@redhat.com>
86
87 * coff-alpha.c (alpha_ecoff_bad_format_hook): Detect compressed
88 Alpha binaries and issue a helpful error message.
89 (alpha_ecoff_swap_reloc_out): Increase maximum allowed internal
90 symbol index to 15 to allow for binaries produced by DEC
a3c2b96a 91 compilers.
15ac1d4f 92
d4909375
SE
932005-07-13 Steve Ellcey <sje@cup.hp.com>
94
95 * bfd.m4 (BFD_NEED_DECLARATION): Remove.
96
15b552e9
AM
972005-07-12 Alan Modra <amodra@bigpond.net.au>
98
99 * elf64-ppc.c (ppc64_elf_relocate_section): Don't use a plt stub
100 when !can_plt_call.
101
70961b9d
AM
1022005-07-12 Alan Modra <amodra@bigpond.net.au>
103
104 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Warning fix.
105
632a56fd
AM
1062005-07-12 Alan Modra <amodra@bigpond.net.au>
107
108 * elf32-ppc.c (ppc_elf_set_sdata_syms): Correct __sbss_start value.
109
49ff44d6
L
1102005-07-11 H.J. Lu <hongjiu.lu@intel.com>
111
112 * elflink.c (_bfd_elf_symbol_refs_local_p): Revert the last
113 change.
114
0af4cd7c
PK
1152005-07-08 Paul Koning <pkoning@equallogic.com>
116
117 * dwarf2.c (read_address): Check sign_extend_vma to handle targets
118 where addresses are sign extended.
119
7e4e2059
NC
1202005-07-08 Ralf Corsepius <ralf.corsepius@rtems.org>
121
122 * config.bfd: Mark i960-*-rtems*, or32-*-rtems* as obsolete.
a3c2b96a 123 Mark a29k-*rtems*, hppa*-*-rtems*, *-go32-rtems*,
7e4e2059
NC
124 i[3-7]86*-*-rtemscoff*, mips*el-*-rtems*, powerpcle-*-rtems*,
125 sparc*-*-rtemsaout* as removed
126
c456f082
AM
1272005-07-08 Alan Modra <amodra@bigpond.net.au>
128
129 * elf-hppa.h (elf_hppa_final_link): Use gp val of zero when none
130 of the usual sections are found.
131 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Tidy.
132 Strip .dynbss if it is zero size.
133 * elf32-arm.c (elf32_arm_size_dynamic_sections): Likewise.
134 * elf32-cris.c (elf_cris_size_dynamic_sections): Likewise.
135 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Likewise.
136 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise, and
137 .dynsbss.
138 (i370_elf_finish_dynamic_sections): Don't attempt to write .got
139 when it is zero size.
140 * elf32-i386.c (elf_i386_size_dynamic_sections): Correct handling
141 of .dynbss and zero size sections.
142 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Strip .dynbss if
143 it is zero size.
144 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Tidy. Strip
145 .dynbss if zero size.
146 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise, .dynsbss
147 too.
148 * elf32-s390.c (elf_s390_size_dynamic_sections): Likewise.
149 * elf32-sh.c (sh_elf_size_dynamic_sections): Likewise.
150 * elf32-vax.c (elf_vax_size_dynamic_sections): Likewise.
151 * elf32-xtensa.c (elf_xtensa_size_dynamic_sections): Tidy. Strip
152 .plt.* and .got.plt.* if zero size.
153 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Tidy. Strip
154 .got* and .dynbss if zero size.
155 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Tidy. Strip
156 * elf64-ppc.c (create_linkage_sections): Create branch lookup table
157 in .data.rel.ro.brlt or .rodata.brlt, and similarly for associated
158 reloc section.
159 (create_got_section): Always create new .got and .rela.got sections.
160 (ppc64_elf_size_dynamic_sections): Tidy. Strip .dynbss if zero size.
161 * elf64-s390.c (elf_s390_size_dynamic_sections): Likewise.
162 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
163 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Handle
164 dynamic bss sections correctly.
165 * elfxx-mips.c (_bfd_mips_elf_size_dynamic_sections): Tidy.
166 * elfxx-sparc.c (_bfd_sparc_elf_size_dynamic_sections): Tidy. Strip
167 .dynbss if zero size.
168
6c98dd1e
BE
1692005-07-08 Ben Elliston <bje@au.ibm.com>
170
171 * elf32-xtensa.c: Include <stdarg.h> unconditionally, not only
172 when ANSI_PROTOTYPES is defined. Remove #ifdef logic.
173
29ef7005
L
1742005-07-07 H.J. Lu <hongjiu.lu@intel.com>
175
176 * elf-bfd.h (elf_backend_data): Add special_sections.
177
178 * elf.c (_bfd_elf_get_sec_type_attr): Check special_sections
179 first.
180
181 * elf32-arm.c (elf_backend_get_sec_type_attr): Removed.
182 (elf_backend_special_sections): New. Defined.
183 * elf32-m32r.c: Likewise.
184 * elf32-m68hc11.c: Likewise.
185 * elf32-m68hc12.c: Likewise.
186 * elf32-mcore.c: Likewise.
187 * elf32-sh64.c: Likewise.
188 * elf32-v850.c: Likewise.
189 * elf32-xtensa.c: Likewise.
190 * elf64-alpha.c: Likewise.
191 * elf64-hppa.c: Likewise.
192 * elf64-ppc.c: Likewise.
193 * elf64-sh64.c: Likewise.
194 * elfxx-ia64.c: Likewise.
195 * elfxx-mips.c: Likewise.
196 * elfxx-mips.h: Likewise.
197
198 * elfxx-target.h (elf_backend_special_sections): New.
199 (elfNN_bed): Initialize special_sections.
200
074f5109
BW
2012005-07-07 Bob Wilson <bob.wilson@acm.org>
202
203 * xtensa-modules.c: Update tables with Xtensa MMU features.
204
0fd3a477
JW
2052005-07-07 Kaveh R. Ghazi <ghazi@caip.rutgers.edu>
206
207 * elf32-xtensa.c (vsprint_msg): Add format attribute. Fix
208 format bugs.
209 * vms.h (_bfd_vms_debug): Add format attribute.
210 (_bfd_vms_debug, _bfd_hexdump): Fix typos.
211
9968d831
L
2122005-07-07 H.J. Lu <hongjiu.lu@intel.com>
213
214 PR 975
215 * elflink.c (_bfd_elf_symbol_refs_local_p): Only undefined
216 symbol with default visibility is local.
217
3b1fcf96
BE
2182005-07-07 Ben Elliston <bje@gnu.org>
219
220 * config.bfd: Mark m68*-*-rtemscoff as obsolete.
221
5cf2e3f0
L
2222005-07-06 H.J. Lu <hongjiu.lu@intel.com>
223
224 * dwarf2.c (varinfo): Add addr.
225 (lookup_symbol_in_variable_table): Also check addr.
226 (scan_unit_for_symbols): Set addr for variable.
227 (comp_unit_find_line): Updated.
228
0adc9281
NC
2292005-07-06 Nick Clifton <nickc@redhat.com>
230
231 * coff-alpha.c (alpha_adjust_reloc_in): Issue an informative error
232 message if an unknown reloc is encountered.
233 (alpha_relocate_section): Likewise.
234
235 * ecoff.c (_bfd_ecoff_write_object_contents): Cope with a reloc
236 with a missing howto field.
237
cfbe541f
AM
2382005-07-06 Alan Modra <amodra@bigpond.net.au>
239
240 * po/SRC-POTFILES.in: Add cpu-ms1.c, elf32-ms1.c, elf-vxworks.c,
241 elfxx-sparc.c.
242
d5e3d971
PB
2432005-07-05 Paul Brook <paul@codesourcery.com>
244
245 * elf32-ppc.c (ppc_elf_vxworks_special_sections): Remove.
246 (ppc_elf_vxworks_get_sec_type_attr): New function.
247 (elf_backend_special_sections): Remove vxwords definition.
248 (elf_backend_get_sec_type_attr): Define for vxworks.
249
3ec2b351
NC
2502005-07-05 Nick Clifton <nickc@redhat.com>
251
252 * elf64-ppc.c (ppc64_elf_info_to_howto): Fix typo.
253
d5e3d971 2542005-07-05 Paul Brook <paul@codesourcery.com>
9d8504b1
PB
255
256 * config.bfd: Add separate case for ppc-vxworks.
257 * configure: Regenerate.
258 * configure.in: Include elf-vxworks.lo on ppc targets.
259 * elf-vxworks.c (elf_vxworks_final_write_processing): Handle
260 .rela.plt.unloaded.
261 * elf32-ppc.c: Add VxWorks target vec. Include elf-vxworks.h.
262 (PLT_ENTRY_SIZE, PLT_INITIAL_ENTRY_SIZE, PLT_SLOT_SIZE): Remove.
263 (VXWORKS_PLT_ENTRY_SIZE, ppc_elf_vxworks_plt_entry,
264 ppc_elf_vxworks_pic_plt_entry, VXWORKS_PLT_INITIAL_ENTRY_SIZE,
265 ppc_elf_vxworks_plt0_entry, ppc_elf_vxworks_pic_plt0_entry,
266 VXWORKS_PLT_NON_JMP_SLOT_RELOCS, VXWORKS_PLTRESOLVE_RELOCS,
267 VXWORKS_PLTRESOLVE_RELOCS_SHLIB): New.
268 (ppc_elf_link_hash_table): Add srelplt2, sgotplt, hgot, hplt,
269 is_vxworks, plt_entry_size, plt_slot_size, plt_initial_entry_size.
270 (ppc_elf_link_hash_table_create): Initialize hadtab plt fields.
271 (ppc_elf_create_got): Create .got.plt for VxWorks.
272 (ppc_elf_create_dynamic_sections): Create unloaded plt relocation
273 section for VxWorks.
274 (ppc_elf_select_plt_layout): Handle VxWorks plt format.
275 (allocate_got): VxWorks does not need a got header.
276 (allocate_dynrelocs): Handle VxWorks plt format.
277 (ppc_elf_size_dynamic_sections): Save _G_O_T_ and _P_L_T_ symbols for
278 VxWorks. Handle VxWorks plt/got.
279 (ppc_elf_finish_dynamic_sections): Fill in VxWorks plt.
280 (ppc_elf_vxworks_special_sections): New.
281 (ppc_elf_vxworks_link_hash_table_create,
282 ppc_elf_vxworks_add_symbol_hook,
283 elf_i386_vxworks_link_output_symbol_hook,
284 ppc_elf_vxworks_final_write_processing): New functions.
285 * targets.c (bfd_elf32_powerpc_vxworks_vec): Declare.
286 (_bfd_target_vector): Use it.
287
c6c60d09
JJ
2882005-07-05 Jakub Jelinek <jakub@redhat.com>
289
9e492e05
JJ
290 * libbfd-in.h (struct artdata): Add extended_names_size field.
291 * libbfd.h: Rebuilt.
292 * coff-rs600.c (_bfd_xcoff_archive_p): Don't clear fields in freshly
293 allocated object by bfd_zalloc.
294 * coff64-rs6000.c (xcoff64_archive_p): Likewise.
295 * ecoff.c (_bfd_ecoff_archive_p): Likewise.
296 * archive.c (_bfd_generic_mkarchive, bfd_generic_archive_p): Likewise.
297 (get_extended_arelt_filename): Fail if index is bigger or equal to
298 extended_names_size.
299 (_bfd_generic_read_ar_hdr_mag): Don't set bfd_error_malformed_archive,
300 get_extended_arelt_filename already did that.
301 (_bfd_slurp_extended_name_table): Initialize extended_names_size field.
302 Allocate one extra byte and clear it, in case extended names table
303 is not terminated.
304
d0fb9a8d
JJ
305 * libbfd-in.h (bfd_malloc2, bfd_realloc2, bfd_zmalloc2, bfd_alloc2,
306 bfd_zalloc2): New prototypes.
307 * bfd-in.h (HALF_BFD_SIZE_TYPE): Define.
308 * libbfd.c (bfd_malloc2, bfd_realloc2, bfd_zmalloc2): New functions.
309 * opncls.c (bfd_alloc2, bfd_zalloc2): New functions.
310 * elf.c (bfd_elf_get_elf_syms, setup_group, assign_section_numbers,
311 elf_map_symbols, map_sections_to_segments,
312 assign_file_positions_for_segments, copy_private_bfd_data,
313 swap_out_syms, _bfd_elf_slurp_version_tables): Use bfd_*alloc2
314 where appropriate.
315 * bfd-in2.h: Rebuilt.
316 * libbfd.h: Rebuilt.
317
318 * elf.c (_bfd_elf_print_private_bfd_data): Don't crash on bogus
319 verdef or verneed section.
320 (_bfd_elf_slurp_version_tables): Handle corrupt verdef and/or
321 verneed sections gracefully.
322 * elfxx-sparc.c (_bfd_sparc_elf_info_to_howto_ptr): Don't crash on
323 bogus relocation values.
324 * elf64-ppc.c (ppc64_elf_info_to_howto): Likewise.
325 * elf64-s390.c (elf_s390_info_to_howto): Likewise.
326 * elf32-s390.c (elf_s390_info_to_howto): Likewise.
327 * elf64-x86-64.c (elf64_x86_64_info_to_howto): Likewise.
328 * elfxx-ia64.c (lookup_howto): Likewise.
329
c6c60d09
JJ
330 * elf.c (bfd_elf_get_str_section): Allocate an extra byte after
331 the end of strtab and clear it.
332 (elf_read): Remove.
333
dcd4b381
NC
3342005-07-05 Nick Clifton <nickc@redhat.com>
335
336 * po/vi.po: New Vietnamese translation.
337 * configure.in (ALL_LINGUAS): Add vi.
338 * configure: Regenerate.
339
8532796c
NC
3402005-07-05 Peter S. Mazinger <ps.m@gmx.net>
341
342 * elf32-arm.c (elf32_arm_size_dynamic_sections): Fix a typo and
343 touchup logic like i386/ppc.
344
b35d266b
AM
3452005-07-05 Alan Modra <amodra@bigpond.net.au>
346
347 * elf.c (special_sections): Move const qualifier.
348 (special_sections_b..special_sections_t): Likewise.
349 * elf32-arm.c (elf32_arm_symbian_get_sec_type_attr): Remove duplicate
350 const.
351 (elf32_arm_symbian_special_sections): Move const qualifier.
352 * elf32-m32r.c: Similarly.
353 * elf32-m68hc11.c: Similarly.
354 * elf32-m68hc12.c: Similarly.
355 * elf32-mcore.c: Similarly.
356 * elf32-ppc.c: Similarly.
357 * elf32-sh64.c: Similarly.
358 * elf32-v850.c: Similarly.
359 * elf32-xtensa.c: Similarly.
360 * elf64-alpha.c: Similarly.
361 * elf64-hppa.c: Similarly.
362 * elf64-ppc.c: Similarly.
363 * elf64-sh64.c: Similarly.
364 * elfxx-ia64.c: Similarly.
365 * elfxx-mips.c: Similarly.
366
80447b21
NC
3672005-07-04 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
368
369 * elf32-m32r.c (m32r_elf_size_dynamic_sections): Use
370 info->executable instead of !info->shared where appropriate.
371
540b09cb
AM
3722005-07-04 Alan Modra <amodra@bigpond.net.au>
373
374 PR 1042
375 * elf.c (assign_file_positions_for_segments): Remove excluded
376 sections from the segment map.
377
551b43fd
AM
3782005-07-04 Alan Modra <amodra@bigpond.net.au>
379
380 PR 1004
381 * elf-bfd.h (struct elf_backend_data): Add get_sec_type_attr. Delete
382 special_sections.
383 (_bfd_elf_get_special_section): Declare.
384 (bfd_elf_special_section): Update prototype.
385 * elf.c (special_sections): Remove unused outer entries.
386 (get_special_section): Delete.
387 (_bfd_elf_get_special_section): New function.
388 (_bfd_elf_get_sec_type_attr): Replace "name" arg with "sec". Update
389 special_sections indexing.
390 (_bfd_elf_new_section_hook): Call backend get_sec_type_attr.
391 * elf32-arm.c (symbian_special_sections_d): Delete.
392 (symbian_special_sections_g, symbian_special_sections_h): Delete.
393 (symbian_special_sections_i, symbian_special_sections_f): Delete.
394 (symbian_special_sections_p): Delete.
395 (elf32_arm_symbian_special_sections): Merge above to here.
396 (elf32_arm_symbian_get_sec_type_attr): New function.
397 (elf_backend_special_sections): Don't define.
398 (elf_backend_get_sec_type_attr): Define.
399 * elf32-m32r.c: Similarly to elf32-arm.c.
400 * elf32-m68hc11.c: Likewise.
401 * elf32-m68hc12.c: Likewise.
402 * elf32-mcore.c: Likewise.
403 * elf32-sh64.c: Likewise.
404 * elf32-v850.c: Likewise.
405 * elf32-xtensa.c: Likewise.
406 * elf64-alpha.c: Likewise.
407 * elf64-hppa.c: Likewise.
408 * elf64-ppc.c: Likewise.
409 * elf64-sh64.c: Likewise.
410 * elfxx-ia64.c: Likewise.
411 * elfxx-mips.c: Likewise.
412 * elf32-ppc.c: Likewise.
413 (bfd_elf_special_section ppc_alt_plt): New. Use it if .plt loadable.
414 * elfxx-mips.h (_bfd_mips_elf_get_sec_type_attr): Declare.
415 (_bfd_mips_elf_special_sections, elf_backend_special_sections): Delete.
416 (elf_backend_get_sec_type_attr): Define.
417 * elfxx-target.h (elf_backend_get_sec_type_attr): Define.
418 (elf_backend_special_sections): Don't define.
419 (elfNN_bed): Update.
420
47b0e7ad
NC
4212005-07-01 Nick Clifton <nickc@redhat.com>
422
423 * cpu-d10v.c: Update to ISO C90 style function declarations and
424 fix formatting.
425 * cpu-d30v.c: Likewsie.
426 * cpu-i370.c: Likewsie.
427 * cpu-xstormy16.c: Likewsie.
428 * elf32-arc.c: Likewsie.
429 * elf32-d10v.c: Likewsie.
430 * elf32-d30v.c: Likewsie.
431 * elf32-dlx.c: Likewsie.
432 * elf32-i370.c: Likewsie.
433 * elf32-i960.c: Likewsie.
434 * elf32-ip2k.c: Likewsie.
435 * elf32-m32r.c: Likewsie.
436 * elf32-mcore.c: Likewsie.
437 * elf32-openrisc.c: Likewsie.
438 * elf32-or32.c: Likewsie.
439 * elf32-pj.c: Likewsie.
440 * elf32-v850.c: Likewsie.
441 * elf32-xstormy16.c: Likewsie.
442
85d162e6
AM
4432005-07-01 Alan Modra <amodra@bigpond.net.au>
444
445 * elf64-alpha.c (elf64_alpha_create_got_section): Always create
446 a new .got section.
447 (elf64_alpha_create_dynamic_sections): Always make new sections
448 by using bfd_make_section_anyway_with_flags. Check that .got not
449 already created.
450 (elf64_alpha_check_relocs): Delete "got_created". Use tdata->gotobj
451 instead.
452
b116d4a7
AM
4532005-06-30 Alan Modra <amodra@bigpond.net.au>
454
455 * elf32-ppc.c (ppc_elf_adjust_dynamic_symbol): Ignore dynamic
456 _SDA_BASE_ and _SDA2_BASE_ symbols.
457 * elflink.c (_bfd_elf_provide_symbol): Correct comment. Define
458 sym if not def_regular.
459 (_bfd_elf_provide_section_bound_symbols): Similarly.
460
7f41b278
BE
4612005-06-30 Ben Elliston <bje@gnu.org>
462
463 * config.bfd: Mark as obsolete:
464 m68*-apollo-*
465 m68*-apple-aux*
466 m68*-bull-sysv*
467
39c2f51b
AM
4682005-06-29 Alan Modra <amodra@bigpond.net.au>
469
470 * elflink.c (_bfd_elf_gc_mark): Mark sections referenced by
471 .eh_frame specially..
472 (bfd_elf_gc_sections): ..rather than totally ignoring .eh_frame.
473 Don't recheck sections we have already marked.
474 (elf_gc_sweep): Keep non-code sections referenced from .eh_frame.
475 * section.c (struct bfd_section): Add gc_mark_from_eh.
476 (STD_SECTION): Adjust.
477 * ecoff.c (bfd_debug_section): Adjust.
478 * bfd-in2.h: Regenerate.
479
e8aaee2a
AM
4802005-06-29 Alan Modra <amodra@bigpond.net.au>
481
482 * elflink.c (elf_gc_sweep): Do not refcount on sections that have
483 not been processed by check_relocs.
484
3b2175db
PB
4852005-06-29 Paul Brook <paul@codesourcery.com>
486
487 * bfd-in.h (_bfd_elf_provide_symbol): Update prototype.
488 * bfd-in2.h: Regenerate.
489 * elf32-ppc.c (ppc_elf_set_sdata_syms): Make sdata symbols section
490 relative.
491 * elflink.c (bfd_elf_set_symbol): Add section argument.
492 (_bfd_elf_provide_symbol): Ditto.
493 (_bfd_elf_provide_section_bound_symbols): Pass NULL section argument.
494
a63e02c7
DA
4952005-06-27 Carlos O'Donell <carlos@systemhalted.org>
496
c456f082 497 * bfd/elf32-hppa.c (struct elf32_hppa_stub_hash_entry):
a63e02c7
DA
498 Use bh_root, and hh.
499 (struct elf32_hppa_link_hash_entry): Use eh, and hsh_cache.
500 (struct elf32_hppa_dyn_reloc_entry): Use hdh_next.
501 (struct elf32_hppa_link_hash_table): Use etab and bstab.
502 (stub_hash_newfunc): Use hh.
503 (hppa_link_hash_newfunc): Use hsh_cache.
504 (elf32_hppa_link_hash_table_create): Use etab, and bstab.
505 (elf32_hppa_link_hash_table_free): Use bstab.
506 (hppa_stub_name): Use eh.
507 (hppa_get_stub_entry): Use hh, hsh_entry, and hsh_cache.
508 (hppa_add_stub): Use bstab.
509 (hppa_type_of_stub): Use eh.
510 (hppa_build_one_stub): Use hh and bh_root.
511 (elf32_hppa_copy_indirect_symbol): Use hdh_next.
512 (elf32_hppa_check_relocs): Use eh, etab, and hdh_next.
513 (elf32_hppa_gc_sweep_hook): Use hdh_next.
514 (elf32_hppa_adjust_dynamic_symbol): Use hdh_next, and etab.
515 (allocate_plt_static): Use etab.
516 (allocate_dynrelocs): Use etab, and hdh_next.
517 (readonly_dynrelocs): Use hdh_next.
518 (elf32_hppa_size_dynamic_sections): Use etab, and hdh_next.
519 (get_local_syms): Use eh, bstab, and hh.
520 (elf32_hppa_size_stubs): Use eh, bstab, and hh.
521 (elf32_hppa_set_gp): Use etab.
522 (elf32_hppa_build_stubs): Use bstab.
523 (final_link_relocate): Use eh, bh_root.
524 (elf32_hppa_relocate_section): Use elf, etab.
525 (elf32_hppa_finish_dynamic_sections): Use etab.
526
5f1cb353
L
5272005-06-27 H.J. Lu <hongjiu.lu@intel.com>
528
529 * elfxx-ia64.c (elfNN_hpux_backend_symbol_processing): Remove
530 the extra `;'.
531
875c0872
DA
5322005-06-21 Carlos O'Donell <carlos@systemhalted.org>
533
534 * bfd/elf32-hppa.c (hppa_elf_hash_entry): Define.
535 (hppa_stub_hash_entry): Define.
536 (stub_hash_newfunc): Rename variables.
537 (hppa_link_hash_newfunc): Likewise.
538 (elf32_hppa_link_hash_table_free): Likewise.
539 (hppa_stub_name): Likewise.
540 (hppa_get_stub_entry): Likewise.
541 (hppa_add_stub): Likewise.
542 (hppa_type_of_stub): Likewise.
543 (hppa_build_one_stub): Likewise.
544 (hppa_size_one_stub): Likewise.
545 (elf32_hppa_create_dynamic_sections): Likewise.
546 (elf32_hppa_copy_indirect_symbol): Likewise.
547 (elf32_hppa_check_relocs): Likewise.
548 (elf32_hppa_gc_mark_hook): Likewise.
549 (elf32_hppa_gc_sweep_hook): Likewise.
550 (elf32_hppa_grok_psinfo): Likewise.
551 (elf32_hppa_hide_symbol): Likewise.
552 (elf32_hppa_adjust_dynamic_symbol): Likewise.
553 (allocate_dynrelocs): Likewise.
554 (clobber_millicode_symbols): Likewise.
555 (readonly_dynrelocs): Likewise.
556 (elf32_hppa_size_dynamic_sections): Likewise.
557 (get_local_syms): Likewise.
558 (elf32_hppa_size_stubs): Likewise.
559 (hppa_record_segment_addr): Likewise.
560 (final_link_relocate): Likewise.
561 (elf32_hppa_relocate_section): Likewise.
562 (elf32_hppa_finish_dynamic_symbol): Likewise.
563
973a3492
L
5642005-06-20 H.J. Lu <hongjiu.lu@intel.com>
565
566 PR 1025
567 * elf-m10300.c (mn10300_elf_check_relocs): Handle indirect
568 symbol.
569 * elf32-arm.c (elf32_arm_check_relocs): Likewise.
570 * elf32-avr.c (elf32_avr_check_relocs): Likewise.
571 * elf32-cris.c (cris_elf_check_relocs): Likewise.
572 * elf32-d10v.c (elf32_d10v_check_relocs): Likewise.
573 * elf32-dlx.c (elf32_dlx_check_relocs): Likewise.
574 * elf32-fr30.c (fr30_elf_check_relocs): Likewise.
575 * elf32-frv.c (elf32_frv_check_relocs): Likewise.
576 * elf32-i370.c (i370_elf_check_relocs): Likewise.
577 * elf32-iq2000.c (iq2000_elf_check_relocs): Likewise.
578 * elf32-m32r.c (m32r_elf_check_relocs): Likewise.
579 * elf32-m68hc1x.c (elf32_m68hc11_check_relocs): Likewise.
580 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
581 * elf32-mcore.c (mcore_elf_check_relocs): Likewise.
582 * elf32-ms1.c (ms1_elf_check_relocs): Likewise.
583 * elf32-msp430.c (elf32_msp430_check_relocs): Likewise.
584 * elf32-openrisc.c (openrisc_elf_check_relocs): Likewise.
585 * elf32-ppc.c (ppc_elf_check_relocs): Likewise.
586 * elf32-s390.c (elf_s390_check_relocs): Likewise.
587 * elf32-sh.c (sh_elf_check_relocs): Likewise.
588 * elf32-v850.c (v850_elf_check_relocs): Likewise.
589 * elf32-vax.c (elf_vax_check_relocs): Likewise.
590 * elf64-mmix.c (mmix_elf_check_relocs): Likewise.
591 * elf64-ppc.c (ppc64_elf_check_relocs): Likewise.
592 * elf64-s390.c (elf_s390_check_relocs): Likewise.
593 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
594 * elfxx-mips.c (_bfd_mips_elf_check_relocs): Likewise.
595 * elfxx-sparc.c (_bfd_sparc_elf_check_relocs): Likewise.
596
71cb9464
L
5972005-06-20 H.J. Lu <hongjiu.lu@intel.com>
598
f7c5057a
L
599 PR 1022
600 * elf32-hppa.c (elf32_hppa_check_relocs): Handle indirect
601 symbol.
602
6032005-06-20 H.J. Lu <hongjiu.lu@intel.com>
604
605 PR 1025
71cb9464
L
606 * elf32-i386.c (elf_i386_check_relocs): Handle indirect symbol.
607 * elf64-x86-64.c (elf64_x86_64_check_relocs): Likewise.
608
73d147dc
L
6092005-06-18 H.J. Lu <hongjiu.lu@intel.com>
610
611 * reloc.c: Add BFD_RELOC_X86_64_GOTOFF64 and
612 BFD_RELOC_X86_64_GOTPC32.
613 * bfd-in2.h: Regenerated.
614
a50b2160
JJ
6152005-06-17 Jakub Jelinek <jakub@redhat.com>
616
aa2ca951
JJ
617 * elf.c (bfd_section_from_shdr): Kill bogus warning.
618
a50b2160
JJ
619 * elf.c (bfd_section_from_shdr): Fail if sh_entsize is bogus for
620 symbol, relocation, group or versym sections.
621
622 * coffcode.h (coff_slurp_reloc_table): Don't crash if native_relocs
623 is NULL.
624 * peXXigen.c (pe_print_idata): Don't crash if dll_name or start_address
625 doesn't point into the section.
626
d6ab8113
JB
6272005-06-17 Jan Beulich <jbeulich@novell.com>
628
629 * bfd-in2.h (elf_x86_64_reloc_type): Add BFD_RELOC_X86_64_GOTOFF64
630 and BFD_RELOC_X86_64_GOTPC32.
631 * libbfd.h (bfd_reloc_code_real_names): Likewise.
632 * elf64-x86-64.c (x86_64_elf_howto_table): Add entries for
633 R_X86_64_PC64, R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
634 (x86_64_reloc_map): Add entries for R_X86_64_PC64, R_X86_64_GOTOFF64,
635 and R_X86_64_GOTPC32.
636 (elf64_x86_64_info_to_howto): Adjust bounding relocation type.
637 (elf64_x86_64_check_relocs): Also handle R_X86_64_PC64,
638 R_X86_64_GOTOFF64, and R_X86_64_GOTPC32.
639 (elf64_x86_64_relocate_section): Likewise.
640 (elf64_x86_64_gc_sweep_hook): Also handle R_X86_64_PC64.
641
b820f1e4
MK
6422005-06-15 Mark Kettenis <kettenis@gnu.org>
643
644 * archive.c: Include "libiberty.h".
645
46767561
NC
6462005-06-15 Nick Clifton <nickc@redhat.com>
647
648 * elf32-v850.c (ELF_MACHINE_ALT2): Define so that binaries
649 produced by the GreenHills toolchain can be assimilated.
650
580a09db
DA
6512005-06-14 Steve Ellcey <sje@cup.hp.com>
652
653 * som.c (som_find_inliner_info): New.
654
91134c82
L
6552005-06-14 H.J. Lu <hongjiu.lu@intel.com>
656
657 * elflink.c (_bfd_elf_merge_symbol): Fix a typo in comment.
658
933d961a
JJ
6592005-06-14 Jakub Jelinek <jakub@redhat.com>
660
661 * elf.c (bfd_section_from_shdr): Fail if name is NULL.
662 Prevent endless recursion on broken objects.
663
664 * archive.c (do_slurp_coff_armap): Check for overflows.
665
9a44bbd9
DJ
6662005-06-10 Daniel Jacobowitz <dan@codesourcery.com>
667
668 * elfcode.h (elf_write_relocs): Do nothing if there are no
669 relocations.
670
75758e9d
AM
6712005-06-10 Alan Modra <amodra@bigpond.net.au>
672
673 * dwarf2.c (decode_line_info): Revert last change. Instead set
674 initial low_pc to -1 to avoid need to test whether loc_pc has
675 been set.
676
2ae0844c
CF
6772005-06-09 Christopher Faylor <cgf@timesys.com>
678
679 * coffcode.h (sec_to_styp_flags): Set appropriate section flags when
680 either SEC_ALLOC OR SEC_LOAD.
681
3b137b9a
CF
6822005-06-09 Christopher Faylor <cgf@timesys.com>
683
684 * coffcode.h (sec_to_styp_flags): Remove read/write flags from noload
685 section header. Do not add STYP_NOLOAD since it does not appear to be
686 a valid PE flag.
687
6bd00c5d
L
6882005-06-09 H.J. Lu <hongjiu.lu@intel.com>
689
690 PR 1000
691 * dwarf2.c (lookup_address_in_line_info_table): Restore code
692 handling NULL function info, removed with 2005-04-03 change.
693
a366f4ff
MM
6942005-06-08 Mark Mitchell <mark@codesourcery.com>
695
696 * opncls.c (bfd_fopen): Mark returned BFD as cacheable if FD == -1.
697
0e58fcf3
AM
6982005-06-09 Alan Modra <amodra@bigpond.net.au>
699
700 * elflink.c (elf_mark_used_section): Delete.
701 (bfd_elf_gc_sections): Call bfd_generic_gc_sections.
702 * reloc.c (bfd_mark_used_section): New function.
703 (bfd_generic_gc_sections): Call bfd_mark_used_section.
704
92a7c1b8
AM
7052005-06-08 Alan Modra <amodra@bigpond.net.au>
706
707 * opncls.c (bfd_fopen): Don't set bfd_error unconditionally.
d83747fa 708 (bfd_fdopenr): Same.
92a7c1b8 709
dfab97d6
MM
7102005-06-07 Mark Mitchell <mark@codesourcery.com>
711
712 * opncls.c (bfd_fdopenr): Add missing break statements.
713
2d0123b7
MM
7142005-06-07 Mark Mitchell <mark@codesourcery.com>
715
716 * opncls.c (bfd_fopen): New API.
717 (bfd_openr): Use it.
718 (bfd_fdopenr): Likewise.
719 * bfd-in2.h: Regenerated.
720
de33e640
AH
7212005-06-07 Aldy Hernandez <aldyh@redhat.com>
722 Michael Snyder <msnyder@redhat.com>
723 Stan Cox <scox@redhat.com>
724
725 * Makefile.am (ALL_MACHINES): Add ms1 support.
726 (ALL_MACHINES_CFILES): Same.
727 (BFD32_BACKENDS): Same.
728 (BFD32_BACKENDS_CFILES): Same.
729
730 * Makefile.in: Regenerate.
731
732 * archures.c (bfd_architecture): Add ms1 entries.
733 Externalize bfd_ms1_arch.
734 (bfd_archures_list): Add bfd_ms1_arch.
735
736 * bfd-in2.h: Regenerate.
737
738 * cpu-ms1.c: New file.
739
740 * elf32-ms1.c: New file.
741
742 * targets.c: Define extern of bfd_elf32_ms1_vec.
743 Add bfd_elf32_ms1_vec to _bfd_target_vector.
744
745 * configure.in: Add bfd_elf32_ms1_vec case.
746
747 * configure: Regenerate.
748
749 * config.bfd: Add ms1-*-elf to table.
750
55cf6793
ZW
7512005-06-07 Zack Weinberg <zack@codesourcery.com>
752
753 * coff-i386.c: Change md_apply_fix3 to md_apply_fix in comment.
754
4575b1b5
AM
7552005-06-07 Alan Modra <amodra@bigpond.net.au>
756
757 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Init _bfd_find_line.
758 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
759
5420f73d
L
7602005-06-06 H.J. Lu <hongjiu.lu@intel.com>
761
762 PR 990
763 * bfd.c (bfd_find_line): New.
764
765 * dwarf2.c (comp_unit): Add variable_table.
766 (funcinfo): Add file, line, and sec.
767 (varinfo): New.
768 (lookup_symbol_in_function_table): New.
769 (lookup_symbol_in_variable_table): New.
770 (scan_unit_for_functions): Renamed to ...
771 (scan_unit_for_symbols): This. Handle DW_TAG_entry_point and
772 DW_TAG_variable.
773 (comp_unit_find_nearest_line): Updated.
774 (comp_unit_find_line): New.
775 (_bfd_dwarf2_find_line): New.
776
777 * elf-bfd.h (_bfd_elf_find_line): New.
778 (_bfd_generic_find_line): New. Defined.
779
780 * elf.c (_bfd_elf_find_line): New.
781
782 * libbfd-in.h (_bfd_dwarf2_find_line): New.
783 (_bfd_generic_find_line): New.
784
785 * bfd-in2.h: Regenerated.
786 * libbfd.h: Likewise.
787
788 * libbfd.c (_bfd_generic_find_line): New.
789
790 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Initialize _bfd_find_line
791 with _bfd_generic_find_line.
792 (bfd_target): Add _bfd_find_line.
793
b42f9a05
L
7942005-06-06 H.J. Lu <hongjiu.lu@intel.com>
795
796 * dwarf2.c (decode_line_info): Properly set low_pc.
797
b4f4e59f
AM
7982005-06-06 Alan Modra <amodra@bigpond.net.au>
799
800 * elf64-pcc.c (ppc64_elf_gc_mark_hook): For the local sym in .opd
801 case, include addend when indexing .opd section map.
802 (ppc64_elf_edit_opd): Add no_opd_opt param. Do nothing besides
803 clear opd_adjust array if no_opd_opt set. Tidy code.
46de2a7c
AM
804 Ignore zero size .opd. Check bfd_alloc return value.
805 (ppc_stub_name): Return immediately on bfd_malloc fail.
b4f4e59f
AM
806 * elf64-ppc.h (ppc64_elf_edit_opd): Update prototype.
807
2ae727ad
L
8082005-06-04 H.J. Lu <hongjiu.lu@intel.com>
809
810 * dwarf2.c (comp_unit): Fix a typo in comment.
811
ce71b576
NC
8122005-06-03 Jan-Benedict Glaw <jbglaw@lug-owl.de>
813
814 * elf32-vax.c (rtype_to_howto): Remove PARAMS.
815 (reloc_type_lookup): Dito.
816 (elf_vax_discard_copies): Dito.
817 (elf_vax_instantiate_got_entries): Dito.
818 (elf_vax_link_hash_traverse): Dito.
819 (elf_vax_link_hash_newfunc): Dito.
820 (elf_vax_link_hash_table_create): Dito.
821 (elf32_vax_set_private_flags): Dito.
822 (elf32_vax_merge_private_bfd_data): Dito.
823 (elf32_vax_print_private_bfd_data): Dito.
824 (elf_vax_check_relocs): Dito.
825 (elf_vax_gc_mark_hook): Dito.
826 (elf_vax_gc_sweep_hook): Dito.
827 (elf_vax_size_dynamic_sections): Dito.
828 (elf_vax_discard_copies): Dito.
829 (elf_vax_instantiate_got_entries): Dito.
830 (elf_vax_relocate_section): Dito.
831 (elf_vax_finish_dynamic_symbol): Dito.
832 (elf_vax_finish_dynamic_sections): Dito.
833 (elf_vax_hash_table): Break-up of line isn't needed.
834 (elf_vax_check_relocs): Remove leading whitespace
835 (elf_vax_relocate_section): Remove redundant whitespace
836 (elf_vax_link_hash_newfunc): Don't cast NULL.
837 (elf_vax_link_hash_table_create): Dito.
838 * cpu-vax.c (bfd_vax_arch) Remove a trailing space.
839
9635fe29
AM
8402005-06-03 Alan Modra <amodra@bigpond.net.au>
841
e1fffbe6
AM
842 PR 568
843 * configure.in: Bump version
844 * configure: Regenerate.
845 * elflink.c (elf_link_input_bfd): Use einfo linker callback to print
846 discarded section sym refs and kill linker output.
847 * simple.c (simple_dummy_einfo): New function.
848 (bfd_simple_get_relocated_section_contents): Init callbacks.einfo.
849
9635fe29
AM
850 * elf32-i386.c (elf_i386_relocate_section): Handle zero symndx
851 for all reloc types.
852
e87d886e
AM
8532005-06-02 Alan Modra <amodra@bigpond.net.au>
854
855 * elf64-ppc.c (add_symbol_adjust): Set sym visibility to most
856 restrictive of func code and func descr for undefined syms as well
857 as defined.
858
b2b09913
JB
8592005-05-31 Jim Blandy <jimb@redhat.com>
860
861 * Makefile.am: Regenerate dependencies with 'make dep-am'.
862 * Makefile.in: Regenerate.
863
8288a39e
RH
8642005-05-31 Richard Henderson <rth@redhat.com>
865
866 * elf64-alpha.c (ALPHA_ELF_LINK_HASH_LU_JSRDIRECT): New.
867 (ALPHA_ELF_LINK_HASH_TLS_IE): Renumber to 0x80.
868 (ALPHA_ELF_LINK_HASH_LU_PLT): Rename from ALPHA_ELF_LINK_HASH_LU_FUNC.
869 (elf64_alpha_want_plt): Update to match.
870 (elf64_alpha_check_relocs): Collect JSRDIRECT in gotent_flags.
871 (elf64_alpha_relax_with_lituse): Likewise. Handle JSRDIRECT.
872
f1c71a59
ZW
8732005-05-31 Zack Weinberg <zack@codesourcery.com>
874
875 * elf32-arm.c (elf32_arm_reloc_type_lookup)
876 (elf32_arm_nabi_grok_prstatus, elf32_arm_nabi_grok_psinfo):
877 Use ISO C90 function declaration style.
878
653bb2de
JW
8792005-05-31 James E Wilson <wilson@specifixinc.com>
880
881 * elfcode.h (NAME(bfd_elf,bfd_from_remote_memory)): Check for program
882 header PF_R flag on PT_LOAD segments.
883
f915360b
RH
8842005-05-30 Richard Henderson <rth@redhat.com>
885
886 * elf64-alpha.c (elf64_alpha_relocate_section): Use dtp_base for
887 the zero index relocs produced by elf64_alpha_relax_tls_get_addr.
888
6ec7057a
RH
8892005-05-29 Richard Henderson <rth@redhat.com>
890
891 * configure.in (--enable-secureplt): New.
892 * elf64-alpha.c (INSN_LDA, INSN_LDAH, INSN_LDQ, INSN_BR): New.
893 (INSN_SUBQ, INSN_S4SUBQ, INSN_JMP): New.
894 (INSN_A, INSN_AB, INSN_ABC, INSN_ABO, INSN_AD): New.
895 (elf64_alpha_use_secureplt): New.
896 (OLD_PLT_HEADER_SIZE, OLD_PLT_ENTRY_SIZE): New.
897 (NEW_PLT_HEADER_SIZE, NEW_PLT_ENTRY_SIZE): New.
898 (PLT_HEADER_SIZE, PLT_ENTRY_SIZE): Conditionalize on secureplt.
899 (ALPHA_ELF_LINK_HASH_PLT_LOC): Remove.
900 (struct alpha_elf_link_hash_entry): Add plt_offset.
901 (PLT_HEADER_WORD1, PLT_HEADER_WORD2, PLT_HEADER_WORD3): Remove.
902 (PLT_HEADER_WORD4, PLT_ENTRY_WORD1, PLT_ENTRY_WORD2): Remove.
903 (PLT_ENTRY_WORD3): Remove.
904 (elf64_alpha_create_dynamic_sections): If secureplt, set SEC_READONLY
905 on .plt and create .got.plt.
906 (elf64_alpha_output_extsym): Remove .plt frobbing for symbol values.
907 (get_got_entry): Initialize plt_offset.
908 (elf64_alpha_want_plt): New.
909 (elf64_alpha_check_relocs): Use it.
910 (elf64_alpha_adjust_dynamic_symbol): Likewise. Don't allocate
911 plt entries here.
912 (elf64_alpha_calc_got_offsets_for_symbol): Don't report internal
913 error as user error.
914 (elf64_alpha_size_plt_section_1): Allocate one plt entry per
915 got subsection.
916 (elf64_alpha_size_plt_section): Size .got.plt section.
917 (elf64_alpha_size_rela_got_1): Don't allocate relocations if
918 plt entries used.
919 (elf64_alpha_size_dynamic_sections): Call elf64_alpha_size_plt_section.
920 Add PLTRO DYNAMIC entry.
921 (elf64_alpha_finish_dynamic_symbol): Generate secureplt format.
922 (elf64_alpha_finish_dynamic_sections): Likewise.
923
3133ddbf
DJ
9242005-05-28 David Daney <ddaney@avtrex.com>
925
926 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_sections): Move
927 calculation of DT_RELSZ to occur after all dynamic relocations
928 are created.
929
36527912
AJ
9302005-05-28 Eli Zaretskii <eliz@gnu.org>
931
932 * configure.in: Add snprintf and vsnprintf to AC_CHECK_DECLS.
933 * config.in, configure: Regenerate.
934
1bc8074d 9352005-05-26 Mark Kettenis <kettenis@gnu.org>
6ec7057a 936 Maciej W. Rozycki <macro@linux-mips.org>
1bc8074d
MR
937
938 * elfxx-mips.c (_bfd_mips_elf_section_processing): Warn and
939 stop processing of options if one of invalid size is
940 encountered.
941 (_bfd_mips_elf_section_from_shdr): Likewise.
942 (_bfd_mips_elf_fake_sections): Reset the type of empty special
943 sections.
944
75fed80d
RH
9452005-05-26 Richard Henderson <rth@redhat.com>
946
36527912 947 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Remove
75fed80d
RH
948 plt_old_section, plt_old_value.
949 (elf64_alpha_adjust_dynamic_symbol): Don't set it.
950 (elf64_alpha_size_plt_section_1): Don't use it.
951
24639c7d
JJ
9522005-05-26 Jakub Jelinek <jakub@redhat.com>
953
954 * elfcode.h (elf_object_p): Fail if e_shoff != 0, e_shnum == 0 and
955 first shdr has sh_size == 0. Fail if e_shnum is large to cause
956 arithmetic overflow when allocating the i_shdr array.
957 Sanity check sh_link and sh_info fields. Fix e_shstrndx sanity check.
958
a7519a3c
RH
9592005-05-25 Richard Henderson <rth@redhat.com>
960
961 * elf64-alpha.c: Update all function definitions to ISO C. Remove
962 all function prototypes; rearrange functions into def-use order.
963
308da68f
RH
9642005-05-25 Richard Henderson <rth@redhat.com>
965
966 * elf64-alpha.c (elf64_alpha_merge_gots): Fix gotent iteration
967 in the presence of deleting elements.
968 (elf64_alpha_size_got_sections): Zero dead got section size.
969
4ab527b0
FF
9702005-05-23 Fred Fish <fnf@specifixinc.com>
971
972 * dwarf2.c (struct dwarf2_debug): Add inliner_chain member.
973 (struct funcinfo): Add caller_func, caller_file, caller_line.
974 tag, and nesting_level members.
975 (lookup_address_in_function_table): Change first passed parameter
976 from "struct funcinfo *" to "struct comp_unit *".
977 (lookup_address_in_function_table): Dereference unit to find function
978 table.
979 (lookup_address_in_function_table): Traverse the function list to
980 create a chain of inlined functions back to the first non inlined
981 function.
982 (scan_unit_for_functions): Remember tag and nesting level. Handle
983 DW_AT_call_file and DW_AT_call_line.
984 (comp_unit_find_nearest_line): Adjust lookup_address_in_function_table
985 call to pass unit pointer instead of function table pointer. For
986 inlined functions, save pointer to the inliner chain.
987 (_bfd_dwarf2_find_nearest_line): Initialize inliner_chain to NULL.
988 (_bfd_dwarf2_find_inliner_info): New function that returns information
989 from the inliner chain after a call to bfd_find_nearest_line.
990
991 * bfd.c (bfd_find_inliner_info): Define using BFD_SEND.
992 * targets.c (BFD_JUMP_TABLE_SYMBOLS): Add entry for
993 NAME##_find_inliner_info.
994 (bfd_target): Add _bfd_find_inliner_info.
995 * bfd-in2.h: Regenerate.
996
997 * libbfd-in.h (_bfd_nosymbols_find_inliner_info): Define as
998 macro that always returns bfd_false.
999 (_bfd_dwarf2_find_inliner_info): Declare.
1000 * libbfd.h: Regenerate.
36527912 1001
4ab527b0
FF
1002 * elf32-arm.c (elf32_arm_find_inliner_info): New function
1003 that calls _bfd_dwarf2_find_inliner_info.
1004 (bfd_elf32_find_inliner_info): Define to elf32_arm_find_inliner_info.
1005
1006 * elfxx-mips.c (_bfd_mips_elf_find_inliner_info): New function
1007 that calls _bfd_dwarf2_find_inliner_info.
1008 * elfxx-mips.h (_bfd_mips_elf_find_inliner_info): Declare.
1009 * elfn32-mips.c (bfd_elf32_find_inliner_info): Define to
1010 _bfd_mips_elf_find_inliner_info.
1011 * elf64-mips.c (bfd_elf64_find_inliner_info): Ditto.
1012 * elf32-mips.c (bfd_elf32_find_inliner_info): Ditto.
1013
1014 * elf.c (_bfd_elf_find_inliner_info): New function that calls
1015 _bfd_dwarf2_find_inliner_info.
1016 * elf-bfd.h (_bfd_elf_find_inliner_info): Declare.
1017 * elfxx-target.h (bfd_elfNN_find_inliner_info): Define to
1018 _bfd_elf_find_inliner_info.
1019
1020 * coffgen.c (coff_find_inliner_info): New function that
1021 calls _bfd_dwarf2_find_inliner_info.
1022 * libcoff-in.h (coff_find_inliner_info): Declare.
1023 * libcoff.h: Regenerate.
1024 * coff-rs6000.c (rs6000coff_vec): Add coff_find_inliner_info.
1025 (pmac_xcoff_vec) Ditto.
1026 * coff64-rs6000.c (rs6000coff64_vec): Ditto.
1027 (aix5coff64_vec): Ditto.
36527912 1028
4ab527b0
FF
1029 * aout-target.h (MY_find_inliner_info): Define as
1030 _bfd_nosymbols_find_inliner_info.
1031 * aout-tic30.c (MY_find_inliner_info): Ditto.
1032 * binary.c (binary_find_inliner_info): Ditto.
1033 * i386msdos.c (msdos_find_inliner_info): Ditto.
1034 * ihex.c (ihex_find_inliner_info): Ditto.
1035 * libaout.h (aout_32_find_inliner_info): Ditto.
1036 * libecoff.h (_bfd_ecoff_find_inliner_info): Ditto.
1037 * mach-o.c (bfd_mach_o_find_inliner_info): Ditto.
1038 * mmo.c (mmo_find_inliner_info): Ditto.
1039 * nlm-target.h (nlm_find_inliner_info): Ditto.
1040 * pef.c (bfd_pef_find_inliner_info): Ditto.
1041 * ppcboot.c (ppcboot_find_inliner_info): Ditto.
1042 * srec.c (srec_find_inliner_info): Ditto.
1043 * tekhex.c (tekhex_find_inliner_info): Ditto.
1044 * versados.c (versados_find_inliner_info): Ditto.
1045 * xsym.c (bfd_sym_find_inliner_info): Ditto.
1046
1047 * ieee.c (ieee_find_inliner_info): New function that always
1048 returns FALSE.
1049 * oasys.c (oasys_find_inliner_info): Ditto.
1050 * vms.c (vms_find_inliner_info): Ditto.
1051
9edfd1af
AM
10522005-05-24 Alan Modra <amodra@bigpond.net.au>
1053
1054 * elf32-ppc.c (ppc_elf_check_relocs): For old gcc -fPIC code
1055 force old plt layout.
1056
3241278a
RH
10572005-05-22 Richard Henderson <rth@redhat.com>
1058
1059 * elf64-alpha.c (elf64_alpha_relax_section): Ignore non-allocated
1060 sections.
1061 (elf64_alpha_check_relocs): Likewise.
1062 (elf64_alpha_relocate_section): Don't emit dynamic relocations to
1063 non-allocated sections.
1064
d6ad34f6
RH
10652005-05-22 Richard Henderson <rth@redhat.com>
1066
36527912 1067 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Relax jsr to
d6ad34f6
RH
1068 undefweak to use zero register. Call elf64_alpha_relax_got_load
1069 if not all uses removed.
1070 (elf64_alpha_relax_got_load): Relax undefweak to lda zero.
1071 (elf64_alpha_relax_section): Handle undefweak symbols.
1072 (elf64_alpha_calc_dynrel_sizes): Don't add relocs for undefweak.
1073 (elf64_alpha_size_rela_got_1): Likewise.
1074 (elf64_alpha_relocate_section): Likewise.
1075
487c4353
RH
10762005-05-22 Richard Henderson <rth@redhat.com>
1077
1078 * elf64-alpha.c (elf64_alpha_relax_section): Only operate
1079 on SEC_CODE sections.
1080
a96afa0f
DA
10812005-05-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1082
1083 * som.c (try_prev_fixup): Changed type of subspace_reloc_sizep to
1084 unsigned int *.
1085 (som_write_space_strings): Change type of tmp_space and p to char *.
1086 (som_write_symbol_strings): Likewise. Also change type of comp to
1087 char *comp[4].
1088 (som_begin_writing): Change type of strings_size to unsigned int.
1089 (som_finish_writing): Likewise.
1090 (som_slurp_reloc_table): Change type of external_relocs to unsigned
1091 char *.
1092 * som.h (struct som_section_data_struct): Change type of reloc_stream
1093 field to unsigned char *.
1094
643796e3
DJ
10952005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
1096
1097 * elf32-i386.c (elf_i386_adjust_dynamic_symbol): Don't eliminate
1098 copy relocations for VxWorks.
1099
4dc4a9a5
DJ
11002005-05-20 Daniel Jacobowitz <dan@codesourcery.com>
1101
1102 * bfd/elf32-ppc.c (struct ppc_elf_link_hash_entry): Add new field
1103 has_sda_refs.
1104 (ppc_elf_copy_indirect_symbol): Copy has_sda_refs.
1105 (ppc_elf_check_relocs): Set has_sda_refs.
1106 (ppc_elf_adjust_dynamic_symbol): Check has_sda_refs before eliminating
1107 copy relocations. Use has_sda_refs to place variables in .sbss.
1108 (ppc_elf_finish_dynamic_symbol): Use has_sda_refs to place variables in
1109 .sbss.
1110
dd1a320b
BW
11112005-05-20 Bob Wilson <bob.wilson@acm.org>
1112
1113 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Make sure that
1114 xtensa_default_isa is initialized.
1115
28e99bb6
AM
11162005-05-20 Alan Modra <amodra@bigpond.net.au>
1117
1118 * elf32-ppc.c (allocate_dynrelocs): Correct plt offset assigned
1119 for second and subsequent list entries. Only allocate multiple
1120 glink stubs when shared or pie.
1121 (ppc_elf_finish_dynamic_symbol): Break out early when only one
1122 glink stub is needed.
1123
e3e71e27
ZW
11242005-05-19 Zack Weinberg <zack@codesourcery.com>
1125
1126 * Makefile.am: Have 'all' depend on 'info'.
1127 * Makefile.in: Regenerate.
1128
a6aa5195
AM
11292005-05-19 Alan Modra <amodra@bigpond.net.au>
1130
1131 * elf-bfd.h (struct elf_link_hash_table): Delete init_refcount and
1132 init_offset. Add init_got_refcount, init_plt_refcount,
1133 init_got_offset and init_plt_offset.
1134 * elf.c (_bfd_elf_link_hash_newfunc): Adjust for above change.
1135 (_bfd_elf_link_hash_hide_symbol): Likewise.
1136 (_bfd_elf_link_hash_table_init): Likewise.
1137 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
1138 * elf64-ppc.c (ppc64_elf_link_hash_table_create): Likewise.
1139 * elflink.c (_bfd_elf_adjust_dynamic_symbol): Likewise.
1140 (bfd_elf_size_dynamic_sections): Likewise.
1141 * elf32-ppc.c (GLINK_PLTRESOLVE): Now 16 insns.
1142 (LWZU_0_X_12, LWZ_0_4_30, LWZ_0_X_12, LWZ_11_X_11, LWZ_11_X_30,
1143 LWZ_12_4_12, LWZ_12_8_30, LWZ_12_X_12, SUB_11_11_30): Delete.
1144 (ADDIS_12_12, BCL_20_31, LWZU_0_12, LWZ_0_12, LWZ_11_11, LWZ_11_30,
1145 LWZ_12_12, MFLR_0, MFLR_12, MTLR_0, SUB_11_11_12): Define.
1146 (struct plt_entry): New.
1147 (ppc_elf_link_hash_table_create): Set new init_plt fields.
1148 (ppc_elf_copy_indirect_symbol): Handle merge of plt plist. Don't
1149 use _bfd_elf_link_hash_copy_indirect.
1150 (update_plt_info, find_plt_ent): New functions.
1151 (ppc_elf_check_relocs): Handle R_PPC_PLTREL24 with non-zero addend
1152 and adjust for use of plt list rather than refcount.
1153 (ppc_elf_gc_sweep_hook): Likewise.
1154 (ppc_elf_tls_optimize): Likewise.
1155 (ppc_elf_adjust_dynamic_symbol): Likewise.
1156 (allocate_dynrelocs): Likewise.
1157 (ppc_elf_relax_section): Likewise.
1158 (ppc_elf_relocate_section): Likewise. Adjust R_PPC_PLTREL24 addends
1159 when performing a relocatable link.
1160 (ppc_elf_finish_dynamic_symbol): Likewise. Write .glink stubs here..
1161 (ppc_elf_finish_dynamic_sections): ..rather than here. Use new
1162 pic resolver stub.
1163
a49e53ed
AM
11642005-05-19 Alan Modra <amodra@bigpond.net.au>
1165
1166 * elf.c (assign_file_positions_for_segments): Use maximum of
1167 maxpagesize and section alignment when adjusting initial
1168 segment offset and section offsets.
1169
cb1afa5c
ZW
11702005-05-18 Zack Weinberg <zack@codesourcery.com>
1171
1172 * elf32-arm.c: Make all #ifndef OLD_ARM_ABI blocks
1173 unconditional.
1174
13792e9d
L
11752005-05-18 H.J. Lu <hongjiu.lu@intel.com>
1176
1177 * elf.c (group_signature): Undo the last change. Check if the
1178 symbol table section is correct.
1179
c19d1205
ZW
11802005-05-17 Zack Weinberg <zack@codesourcery.com>
1181
1182 * elf32-arm.c: Wherever possible, use official reloc names
1183 from AAELF.
1184 (elf32_arm_howto_table, elf32_arm_tls_gd32_howto)
1185 (elf32_arm_tls_ldo32_howto, elf32_arm_tls_ldm32_howto)
1186 (elf32_arm_tls_le32_howto, elf32_arm_tls_ie32_howto)
1187 (elf32_arm_vtinherit_howto, elf32_arm_vtentry_howto)
1188 (elf32_arm_pc11_howto, elf32_arm_thm_pc9_howto, elf32_arm_got_prel)
1189 (elf32_arm_r_howto): Replace with elf32_arm_howto_table_1,
1190 elf32_arm_howto_table_2, and elf32_arm_howto_table_3.
1191 Add many new relocations from AAELF.
1192 (elf32_arm_howto_from_type): Update to match.
1193 (elf32_arm_reloc_map): Add entries for R_ARM_THM_JUMP24,
1194 R_ARM_THM_JUMP11, R_ARM_THM_JUMP19, R_ARM_THM_JUMP8,
1195 R_ARM_THM_JUMP6, R_ARM_GNU_VTINHERIT, and R_ARM_GNU_VTENTRY.
1196 (elf32_arm_reloc_type_lookup): Use elf32_arm_howto_from_type.
1197 (elf32_arm_final_link_relocate): Add support for
1198 R_ARM_THM_JUMP24, R_ARM_THM_JUMP19, R_ARM_THM_JUMP6. Remove
1199 case entries redundant with default.
1200
1201 * reloc.c: Reorganize ARM relocations. Add Thumb
1202 assembler-internal relocations BFD_RELOC_ARM_T32_OFFSET_U8,
1203 BFD_RELOC_ARM_T32_OFFSET_IMM, BFD_RELOC_ARM_T32_IMMEDIATE.
1204 Add visible relocations BFD_RELOC_THUMB_PCREL_BRANCH7,
1205 BFD_RELOC_THUMB_BRANCH20, BFD_RELOC_THUMB_BRANCH25.
1206 Delete unused relocations BFD_RELOC_ARM_GOT12, BFD_RELOC_ARM_COPY.
1207 * bfd-in2.h, libbfd.h: Regenerate.
1208
26ae6d5e
DJ
12092005-05-17 Daniel Jacobowitz <dan@codesourcery.com>
1210
1211 * elf.c (_bfd_elf_write_object_contents): Check for non-NULL
1212 elf_shstrtab.
1213 * format.c (bfd_check_format_matches): Set output_has_begun
1214 for both_direction.
1215 * section.c (bfd_set_section_contents): Use bfd_write_p. Remove
1216 special case for both_direction.
1217
5982e3c7
NC
12182005-05-17 Nick Clifton <nickc@redhat.com>
1219
1220 * elf.c (group_signature): Check for a group section which is
1221 actually a (corrupt) symbol table section in disguise and prevent
1222 an infinite loop from occurring.
1223
fc3ab699
L
12242005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1225
1226 * elfxx-ia64.c (elfNN_ia64_relax_brl): Undo the change made on
1227 2005-02-16.
1228
5e27d427
L
12292005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1230
1231 * elfxx-ia64.c (elfNN_ia64_relax_br): Keep the original
1232 predicate on slot 0 only if slot 0 isn't br.
1233
75ff4589
L
12342005-05-17 H.J. Lu <hongjiu.lu@intel.com>
1235
1236 PR 797
1237 * elf32-i386.c (elf_i386_size_dynamic_sections): Also remove
1238 empty sdynbss section.
1239 * elf64-x86-64.c (elf64_x86_64_size_dynamic_sections): Likewise.
1240
8e0ed13f
NC
12412005-05-17 Tavis Ormandy <taviso@gentoo.org>
1242
1243 * elf.c (bfd_section_from_shdr): Add sanity check when parsing
1244 dynamic sections.
1245
7e8aeb9a
AM
12462005-05-17 Alan Modra <amodra@bigpond.net.au>
1247
1248 * elf32-ppc.c (LIS_11. LIS_12): Define.
1249 (LWZU_0_X_12, LWZ_0_X_12, LWZ_12_4_12, LWZ_12_X_12): Define.
1250 (ppc_elf_finish_dynamic_sections): Provide non-pic plt call stub
1251 for --data-plt when building non-pie executables.
1252
641bd093
NC
12532005-05-17 Nick Clifton <nickc@redhat.com>
1254
10dbd1f3
NC
1255 * elf32-arm.c (elf32_arm_final_link_relocate): Gracefully handle
1256 the situation where a symbols's section is not known but a section
1257 relative R_ARM_RELATIVE reloc has to be generated for the Symbian
1258 OS.
1259
641bd093
NC
1260 * elf32-v850.c (v850_elf_relocate_section): Move code to test for
1261 the presence of a symbol table to just before the symbol table is
1262 actually used.
1263
83b6bd86
L
12642005-05-16 H.J. Lu <hongjiu.lu@intel.com>
1265
1266 PR 834
1267 * elfxx-ia64.c (elfNN_ia64_relax_br): New.
1268 (elfNN_ia64_relax_section): Use it.
1269
06084812
MK
12702005-05-14 Mark Kettenis <kettenis@gnu.org>
1271
1272 * elflink.c (bfd_elf_size_dynamic_sections): Use lbasename instead
1273 of basename.
1274
1fe44d79
AM
12752005-05-14 Alan Modra <amodra@bigpond.net.au>
1276
1277 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Set DT_PPC_GOT,
1278 not DT_PPC_GLINK.
1279 (ppc_elf_finish_dynamic_sections): Likewise.
1280
2db3311b
FF
12812005-05-13 Fred Fish <fnf@specifixinc.com>
1282
1283 * libbfd-in.h: Fix a comment typo, 'neaderst' -> 'nearest'
1284 * libbfd.h: Rebuilt.
1285
7db48a12
BW
12862005-05-13 Bob Wilson <bob.wilson@acm.org>
1287
1288 * elf32-xtensa.c (xtensa_get_property_section_name): Add missing
1289 periods in linkonce_kind values.
1290
8fe76924
L
12912005-05-12 H.J. Lu <hongjiu.lu@intel.com>
1292
1293 * elf32-i386.c (elf_i386_relocate_section): Allow R_386_GOTOFF
1294 against protected function when building executable.
1295
86b9da88
AM
12962005-05-12 Alan Modra <amodra@bigpond.net.au>
1297
1298 * elf32-ppc.c (LWZU_0_X_11): Delete.
1299 (B, LWZ_11_X_11, LWZ_11_X_30, MTCTR_11): Define.
1300 (ppc_elf_select_plt_layout): Set .got flags too. Formatting.
1301 (ppc_elf_size_dynamic_sections): Allocate space for .glink branch
1302 table.
1303 (ppc_elf_finish_dynamic_symbol): Point .plt entries into the branch
1304 table.
1305 (ppc_elf_finish_dynamic_sections): Adjust DT_PPC_GLINK value.
1306 Generate .glink branch table and updated stubs.
1307
d7128ce4
AM
13082005-05-11 Alan Modra <amodra@bigpond.net.au>
1309
1310 * reloc.c (BFD_RELOC_HI16_PCREL): Define.
1311 (BFD_RELOC_HI16_S_PCREL, BFD_RELOC_LO16_PCREL): Define.
1312 * elf32-ppc.c (GLINK_PLTRESOLVE, GLINK_ENTRY_SIZE): Define.
1313 (CROR_151515, CROR_313131): Delete.
1314 (ADDIS_11_11, ADDI_11_11, SUB_11_11_30, ADD_0_11_11, ADD_11_0_11,
1315 LWZ_0_4_30, MTCTR_0, LWZ_12_8_30, BCTR, ADDIS_11_30,
1316 LWZU_0_X_11): Define.
1317 (ppc_elf_howto_raw): Add R_PPC_REL16, R_PPC_REL16_LO, R_PPC_REL16_HI
1318 and R_PPC_REL16_HA entries.
1319 (ppc_elf_reloc_type_lookup): Convert new bfd reloc types.
1320 (ppc_elf_addr16_ha_reloc): Also handle R_PPC_REL16_HA.
1321 (struct ppc_elf_link_hash_table): Add glink, glink_pltresolve,
1322 new_plt, and old_plt.
1323 (ppc_elf_create_dynamic_sections): Create .glink section.
1324 (ppc_elf_check_relocs): Set new_plt and old_plt.
1325 (ppc_elf_select_plt_layout): New function.
1326 (ppc_elf_tls_setup): Set plt output section elf type and flags.
1327 (allocate_got): Handle differences between old and new got layout.
1328 (allocate_dynrelocs): Likewise for plt.
1329 (ppc_elf_size_dynamic_sections): Likewise. Allocate memory for
1330 .glink. Don't allocate memory for old bss .plt. Emit DT_PPC_GLINK.
1331 (ppc_elf_relax_section): Rename ppc_info to htab. Handle .glink
1332 destination of R_PPC_PLTREL24 relocs.
1333 (ppc_elf_relocate_section): Handle new relocs and changed destination
1334 of R_PPC_PLTREL24.
1335 (ppc_elf_finish_dynamic_symbol): Init new style plt and handle
1336 differences in layout.
1337 (ppc_elf_finish_dynamic_sections): Set DT_PPC_GLINK value. Don't
1338 put a blrl in new got. Write glink contents.
1339 * elf32-ppc.h (ppc_elf_select_plt_layout): Declare.
1340 * libbfd.h: Regenerate.
1341 * bfd-in2.h: Regenerate.
1342
4c9b0de6
AS
13432005-05-11 Andreas Schwab <schwab@suse.de>
1344
1345 * elf32-i386.c (elf_i386_finish_dynamic_sections): Fix signedness
1346 warning.
1347
3d2b39cf
L
13482005-05-10 H.J. Lu <hongjiu.lu@intel.com>
1349
1350 * elf.c (_bfd_elf_make_section_from_shdr): Only check debug
1351 section if SEC_ALLOC isn't set.
1352
2ba49b59
KC
13532005-05-09 Kelley Cook <kcook@gcc.gnu.org>
1354
1355 * configure.in: Replace AC_COMPILE_CHECK_SIZEOF with AC_CHECK_SIZEOF.
1356 * acinclude.m4: Don't sinclude accross.m4.
1357 * config.in, configure, Makefile.in, doc/Makefile.in: Regenerate.
1358
433817dd
AM
13592005-05-09 Alan Modra <amodra@bigpond.net.au>
1360
1361 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add has_dotsym.
1362 (ppc64_elf_add_symbol_hook): Set has_dotsym.
1363 (ppc64_elf_check_directives): Only process syms when has_dotsym.
1364 (func_desc_adjust): Hide fake function descriptors when function
1365 code entry is defined.
1366 (adjust_opd_syms): Adjust for deleted_section becoming union field.
1367
0560d0f7
AM
13682005-05-09 Alan Modra <amodra@bigpond.net.au>
1369
1370 * elfcode.h (elf_object_p): Add more sanity checks on elf header.
1371
74cc7600
DK
13722005-05-08 Dave Korn <dave.korn@artimi.com>
1373
1374 * coff-tic80.c: Undefine _CONST after system headers to prevent
1375 clash with tic80-specific definition in include/coff/tic80.h
1376
cfca085c
L
13772005-05-08 H.J. Lu <hongjiu.lu@intel.com>
1378
1379 PR 939
1380 * elflink.c (elf_link_output_extsym): Use output_bfd if
1381 h->root.u.def.section is bfd_abs_section_ptr when reporting
1382 error.
1383
7f4d3958
L
13842005-05-07 H.J. Lu <hongjiu.lu@intel.com>
1385
1386 * elf-bfd.h (elf_backend_data): Update special_sections to
1387 array of pointer to bfd_elf_special_section.
1388 * elf.c (special_sections): Likewise.
1389 * elf32-arm.c (elf32_arm_symbian_special_sections): Likewise.
1390 * elf32-m32r.c (m32r_elf_special_sections): Likewise.
1391 * elf32-m68hc11.c (elf32_m68hc11_special_sections): Likewise.
1392 * elf32-m68hc12.c (elf32_m68hc12_special_sections): Likewise.
1393 * elf32-mcore.c (mcore_elf_special_sections): Likewise.
1394 * elf32-ppc.c (ppc_elf_special_sections): Likewise.
1395 * elf32-sh64.c (sh64_elf_special_sections): Likewise.
1396 * elf32-v850.c (v850_elf_special_sections): Likewise.
1397 * elf32-xtensa.c (elf_xtensa_special_sections): Likewise.
1398 * elf64-alpha.c (elf64_alpha_special_sections): Likewise.
1399 * elf64-hppa.c (elf64_hppa_special_sections): Likewise.
1400 * elf64-ppc.c (ppc64_elf_special_sections): Likewise.
1401 * elf64-sh64.c (sh64_elf64_special_sections): Likewise.
1402 * elfxx-ia64.c (elfNN_ia64_special_sections): Likewise.
1403 * elfxx-mips.c (_bfd_mips_elf_special_sections): Likewise.
1404 * elfxx-mips.h (_bfd_mips_elf_special_sections): Likewise.
1405
1406 * elf.c (get_special_section): Updated.
1407
3b36f7e6
AM
14082005-05-07 Alan Modra <amodra@bigpond.net.au>
1409
1410 * elf-bfd.h (struct elf_backend_data): Remove got_symbol_offset.
1411 * elfxx-target.h (elf_backend_got_symbol_offset): Delete.
1412 * elflink.c (_bfd_elf_create_got_section): Use zero in place of
1413 got_symbol_offset.
1414 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Likewise.
1415 * elf32-frv.c (_frv_create_got_section): Likewise.
1416 * elf32-i370.c (i370_elf_finish_dynamic_sections): Delete ppc code.
1417 (elf_backend_got_symbol_offset): Don't define.
1418 * elf64-ppc.c (elf_backend_got_symbol_offset): Don't define.
1419 * elf32-ppc.c (struct ppc_elf_link_hash_table): Add got_header_size
1420 and got_gap.
1421 (ppc_elf_create_got): Tidy.
1422 (ppc_elf_create_dynamic_sections): Don't set SEC_IN_MEMORY for .plt.
1423 (ppc_elf_check_relocs): Reduce string comparisons by using elf.hgot.
1424 (ppc_elf_gc_sweep_hook): Likewise.
1425 (ppc_elf_relocate_section): Likewise.
1426 (ppc_elf_finish_dynamic_symbol): Likewise.
1427 (allocate_got): New function.
1428 (allocate_dynrelocs): Use allocate_got.
1429 (ppc_elf_size_dynamic_sections): Likewise. Delay tlsld_got allocation
1430 so that local got can refcount it. Set got_header_size.
1431 (ppc_elf_relocate_section): Use value of elf.hgot rather than hard-
1432 coded 4.
1433 (ppc_elf_finish_dynamic_sections): Likewise.
1434 (elf_backend_got_symbol_offset): Don't define.
1435 (elf_backend_got_header_size): Ditto.
1436
2e0fbf77
JW
14372005-05-05 Steve Ellcey <sje@cup.hp.com>
1438
1439 * configure.in (ACX_HEADER_STRING): New.
1440 * configure: Regenerate.
1441 * config.in: Regenerate.
1442 * sysdep.h (STRING_WITH_STRINGS): Use.
1443
6f140a15
L
14442005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1445
1446 * elf.c (_bfd_elf_close_and_cleanup): Only call
1447 _bfd_dwarf2_cleanup_debug_info on bfd_object.
1448
01d9ad14
L
14492005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1450
1451 * elflink.c (_bfd_elf_provide_section_bound_symbols): Use
1452 "__bss_start" instead of "_edata" as fallback.
1453
b36b76cb
L
14542005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1455
1456 * bfd-in2.h: Regenerated.
1457
eac338cf
PB
14582005-05-05 Paul Brook <paul@codesourcery.com>
1459
1460 * config.bfd: Use bfd_elf32_i386_vxworks_vec for i?86-*-vxworks.
1461 * configure.in: Add bfd_elf32_i386_vxworks_vec. i386 targets need
1462 elf-vxworks.lo.
1463 * configure: Regenerate.
1464 * Makefile.am (BFD32_BACKENDS): Add elf-vxworks.lo.
1465 (BFD32_BACKENDS_CFILES): Add elf-vxworks.c.
1466 (elf32-i386.lo): Depend on elf-vxworks.h.
1467 (elf-vxworks.lo): New rule.
1468 * Makefile.in: Regenerate.
1469 * elf-bfd.h (elf_backend_data): Update type of
1470 elf_backend_emit_relocs.
1471 (_bfd_elf_link_output_relocs): Update prototype.
1472 * elflink.c (_bfd_elf_link_output_relocs): Always use
1473 bed->elf_backend_emit_relocs when outputting relocations.
1474 * elfxx-target.h (elf_backend_emit_relocs): Default to
1475 _bfd_elf_link_output_relocs.
1476 * targets.c (bfd_elf32_i386_vxworks_vec): Declare.
1477 (_bfd_target_vector): Add bfd_elf32_i386_vxworks_vec.
1478 * elf32-i386.c: Add elf32-i386-vxworks target BFD.
1479 (elf_i386_plt0_entry): Remove padding.
1480 (elf_i386_pic_plt0_entry): Ditto.
1481 (PLTRESOLVE_RELOCS_SHLIB, PLTRESOLVE_RELOCS): Define.
1482 (PLT_NON_JUMP_SLOT_RELOCS): Define.
1483 (elf_i386_link_hash_table): Add srelplt2, hgot, hplt, is_vxworks and
1484 plt0_pad_byte fields.
1485 (elf_i386_link_hash_table_create): Zero them.
1486 (elf_i386_create_dynamic_sections): Create static relocation section.
1487 (allocate_dynrelocs): Allocate space for static PLT relocations.
1488 (elf_i386_size_dynamic_sections): Save shortcuts to PLT and GOT
1489 symbols. Give PLT symbols function type. Don't strip PLT sections
d7128ce4 1490 if we have exported symbols from them.
eac338cf
PB
1491 (elf_i386_finish_dynamic_symbol): Fill in VxWorks PLT static
1492 relocation section. Don't mark _GLOBAL_OFFSET_TABLE_ as absolute on
1493 VxWorks.
1494 (elf_i386_finish_dynamic_sections): Allow different pad bytes.
1495 Add relocation for GOT location. Fill in PLT static relocations.
1496 (elf_i386_vxworks_link_hash_table_create): New function.
1497 (elf_i386_vxworks_link_output_symbol_hook): New function.
1498 * elf-vxworks.h: New file.
1499
3496cb2a
L
15002005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1501
1502 * section.c (bfd_make_section_anyway_with_flags): New.
1503 (bfd_make_section_anyway): Call bfd_make_section_anyway_with_flags,
1504 (bfd_make_section_with_flags): New.
1505 (bfd_make_section): Call bfd_make_section_with_flags.
1506
1507 * elf-m10300.c (_bfd_mn10300_elf_create_got_section): Call
1508 bfd_make_section_with_flags/bfd_make_section_anyway_with_flags
1509 instead of bfd_make_section/bfd_make_section and don't call
1510 bfd_set_section_flags.
1511 (mn10300_elf_check_relocs): Likewise.
1512 (_bfd_mn10300_elf_create_dynamic_sections): Likewise.
1513 * elf32-arm.c (create_got_section): Likewise.
1514 (bfd_elf32_arm_add_glue_sections_to_bfd): Likewise.
1515 (elf32_arm_check_relocs): Likewise.
1516 * elf32-cris.c (cris_elf_check_relocs): Likewise.
1517 * elf32-frv.c (elf32_frv_add_symbol_hook): Likewise.
1518 (_frv_create_got_section): Likewise.
1519 (elf32_frvfdpic_create_dynamic_sections): Likewise.
1520 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Likewise.
1521 (elf32_hppa_check_relocs): Likewise.
1522 * elf32-i370.c (i370_elf_create_dynamic_sections): Likewise.
1523 (i370_elf_check_relocs): Likewise.
1524 * elf32-i386.c (create_got_section): Likewise.
1525 (elf_i386_check_relocs): Likewise.
1526 * elf32-m32r.c (m32r_elf_add_symbol_hook): Likewise.
1527 (create_got_section): Likewise.
1528 (m32r_elf_create_dynamic_sections): Likewise.
1529 (m32r_elf_check_relocs): Likewise.
1530 * elf32-m68k.c (elf_m68k_check_relocs): Likewise.
1531 * elf32-ppc.c (ppc_elf_create_got): Likewise.
1532 (ppc_elf_create_dynamic_sections): Likewise.
1533 (ppc_elf_add_symbol_hook): Likewise.
1534 (ppc_elf_check_relocs): Likewise.
1535 * elf32-s390.c (create_got_section): Likewise.
1536 (elf_s390_check_relocs): Likewise.
1537 * elf32-sh.c (create_got_section): Likewise.
1538 (sh_elf_create_dynamic_sections): Likewise.
1539 (sh_elf_check_relocs): Likewise.
1540 * elf32-vax.c (elf_vax_check_relocs): Likewise.
1541 * elf32-xstormy16.c (xstormy16_elf_check_relocs): Likewise.
1542 * elf32-xtensa.c (elf_xtensa_create_dynamic_sections): Likewise.
1543 (add_extra_plt_sections): Likewise.
1544 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1545 (elf64_alpha_create_got_section): Likewise.
1546 (elf64_alpha_create_dynamic_sections): Likewise.
1547 (elf64_alpha_check_relocs): Likewise.
1548 * elf64-hppa.c (get_reloc_section): Likewise.
1549 (get_opd): Likewise.
1550 (get_plt): Likewise.
1551 (get_dlt): Likewise.
1552 (get_stub): Likewise.
1553 (elf64_hppa_create_dynamic_sectionso): Likewise.
1554 * elf64-mmix.c (mmix_elf_check_common_relocs): Likewise.
1555 * elf64-ppc.c (create_linkage_sections): Likewise.
1556 (ppc64_elf_check_relocs): Likewise.
1557 * elf64-s390.c (create_got_section): Likewise.
1558 (elf_s390_check_relocs): Likewise.
1559 * elf64-sh64.c (sh_elf64_check_relocs): Likewise.
1560 (sh64_elf64_create_dynamic_sections): Likewise.
1561 * elf64-x86-64.c (create_got_section): Likewise.
1562 (elf64_x86_64_check_relocs): Likewise.
1563 * elflink.c (_bfd_elf_create_got_section): Likewise.
1564 (_bfd_elf_link_create_dynamic_sections): Likewise.
1565 (elf_link_add_object_symbols): Likewise.
1566 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1567 (elfNN_ia64_create_dynamic_sections): Likewise.
1568 (get_fptr): Likewise.
1569 (get_pltoff): Likewise.
1570 (get_reloc_section): Likewise.
1571 (elfNN_ia64_object_p): Likewise.
1572 * elfxx-mips.c (mips_elf_rel_dyn_section): Likewise.
1573 (mips_elf_create_compact_rel_section): Likewise.
1574 (mips_elf_create_got_section): Likewise.
1575 (_bfd_mips_elf_create_dynamic_sections): Likewise.
1576 * elfxx-sparc.c (create_got_section): Likewise.
1577 (_bfd_sparc_elf_check_relocs): Likewise.
1578
1579 * elf.c (_bfd_elf_new_section_hook): Call _bfd_elf_get_sec_type_attr
1580 on linker created sections.
1581
59fef9e7
L
15822005-05-05 H.J. Lu <hongjiu.lu@intel.com>
1583
1584 PR 882
1585 * elflink.c (_bfd_elf_link_assign_sym_version): Allow version
1586 script on executable.
1587
35330cce
NC
15882005-05-05 John Levon <levon@movementarian.org>
1589
1590 * dwarf2.c (read_abbrevs): If bfd_realloc fails, free currently
1591 allocated memory before returning.
1592 (decode_line_info): Likewise.
1593 (_bfd_dwarf2_cleanup_debug_info): New function: Frees memory
1594 allocated by functions in this file.
1595 * elf-bfd.h (_bfd_dwarf2_cleanup_debug_info): Prototype.
6f140a15 1596 * elf.c (_bfd_elf_close_and_cleanup): Call
35330cce
NC
1597 _bfd_dwarf2_cleanup_debug_info.
1598
4a2a2686
HPN
15992005-05-05 Hans-Peter Nilsson <hp@axis.com>
1600
1601 * Makefile.am (INCLUDES): Don't -D_GNU_SOURCE here.
1602 * configure.in: Call AC_GNU_SOURCE here, after AC_PROG_CC.
1603 * configure, config.in, Makefile.in: Regenerate.
1604 * sysdep.h (stpcpy): Revert last change.
1605
0baace35
HPN
16062005-05-05 Hans-Peter Nilsson <hp@axis.com>
1607
1608 * sysdep.h (stpcpy): Wrap declaration in parentheses.
1609
5a260b66
L
16102005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1611
1612 * elfxx-ia64.c (ARCH_SIZE): New.
1613 (LOG_SECTION_ALIGN): Likewise.
1614 (elfNN_ia64_create_dynamic_sections): Use LOG_SECTION_ALIGN to
1615 align relocation sections.
1616 (get_fptr): Likewise.
1617 (get_reloc_section): Likewise.
1618 (elfNN_ia64_tprel_base): Likewise.
1619 (elfNN_ia64_check_relocs): Support 32bit relocations.
1620 (allocate_global_fptr_got): Likewise.
1621 (allocate_dynrel_entries): Likewise.
1622 (set_got_entry): Likewise.
1623 (set_pltoff_entry): Likewise.
1624 (elfNN_ia64_relocate_section): Likewise.
1625
16262005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1627
1628 * configure.in: Add AC_CHECK_DECLS(stpcpy).
1629 * configure: Regenerate.
1630 * config.in: Likewise.
1631
1632 * sysdep.h (stpcpy): New.
1633
3e110533
NC
16342005-05-04 Nick Clifton <nickc@redhat.com>
1635
1636 * Update the address and phone number of the FSF organization in
1637 the GPL notices in the following files:
1638 aix386-core.c, aix5ppc-core.c, aout-adobe.c, aout-arm.c,
1639 aout-cris.c, aout-ns32k.c, aout-sparcle.c, aout-target.h,
1640 aout-tic30.c, aout0.c, aout32.c, aout64.c, aoutf1.h, aoutx.h,
1641 archive.c, archive64.c, archures.c, armnetbsd.c, bfd-in.h,
1642 bfd-in2.h, bfd.c, bfdio.c, bfdwin.c, binary.c, bout.c, cache.c,
1643 cf-i386lynx.c, cf-m68klynx.c, cf-sparclynx.c, cisco-core.c,
1644 coff-a29k.c, coff-alpha.c, coff-apollo.c, coff-arm.c, coff-aux.c,
1645 coff-go32.c, coff-h8300.c, coff-h8500.c, coff-i386.c, coff-i860.c,
1646 coff-i960.c, coff-ia64.c, coff-m68k.c, coff-m88k.c, coff-maxq.c,
1647 coff-mcore.c, coff-mips.c, coff-or32.c, coff-pmac.c, coff-ppc.c,
1648 coff-rs6000.c, coff-sh.c, coff-sparc.c, coff-stgo32.c,
1649 coff-svm68k.c, coff-tic30.c, coff-tic4x.c, coff-tic54x.c,
1650 coff-tic80.c, coff-u68k.c, coff-w65.c, coff-we32k.c, coff-z8k.c,
1651 coff64-rs6000.c, coffcode.h, coffgen.c, cofflink.c, coffswap.h,
1652 corefile.c, cpu-a29k.c, cpu-alpha.c, cpu-arc.c, cpu-arm.c,
1653 cpu-avr.c, cpu-cr16c.c, cpu-cris.c, cpu-crx.c, cpu-d10v.c,
1654 cpu-d30v.c, cpu-dlx.c, cpu-fr30.c, cpu-frv.c, cpu-h8300.c,
1655 cpu-h8500.c, cpu-hppa.c, cpu-i370.c, cpu-i386.c, cpu-i860.c,
1656 cpu-i960.c, cpu-ia64-opc.c, cpu-ia64.c, cpu-ip2k.c, cpu-iq2000.c,
1657 cpu-m10200.c, cpu-m10300.c, cpu-m32r.c, cpu-m68hc11.c,
1658 cpu-m68hc12.c, cpu-m68k.c, cpu-m88k.c, cpu-maxq.c, cpu-mcore.c,
1659 cpu-mips.c, cpu-mmix.c, cpu-msp430.c, cpu-ns32k.c, cpu-openrisc.c,
1660 cpu-or32.c, cpu-pdp11.c, cpu-pj.c, cpu-powerpc.c, cpu-rs6000.c,
1661 cpu-s390.c, cpu-sh.c, cpu-sparc.c, cpu-tic30.c, cpu-tic4x.c,
1662 cpu-tic54x.c, cpu-tic80.c, cpu-v850.c, cpu-vax.c, cpu-w65.c,
1663 cpu-we32k.c, cpu-xstormy16.c, cpu-xtensa.c, cpu-z8k.c, demo64.c,
1664 dwarf1.c, dwarf2.c, ecoff.c, ecofflink.c, ecoffswap.h,
1665 efi-app-ia32.c, efi-app-ia64.c, elf-bfd.h, elf-eh-frame.c,
1666 elf-hppa.h, elf-m10200.c, elf-m10300.c, elf-strtab.c, elf.c,
1667 elf32-am33lin.c, elf32-arc.c, elf32-arm.c, elf32-avr.c,
1668 elf32-cr16c.c, elf32-cris.c, elf32-crx.c, elf32-d10v.c,
1669 elf32-d30v.c, elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-gen.c,
1670 elf32-h8300.c, elf32-hppa.c, elf32-hppa.h, elf32-i370.c,
1671 elf32-i386.c, elf32-i860.c, elf32-i960.c, elf32-ip2k.c,
1672 elf32-iq2000.c, elf32-m32r.c, elf32-m68hc11.c, elf32-m68hc12.c,
1673 elf32-m68hc1x.c, elf32-m68hc1x.h, elf32-m68k.c, elf32-m88k.c,
1674 elf32-mcore.c, elf32-mips.c, elf32-msp430.c, elf32-openrisc.c,
1675 elf32-or32.c, elf32-pj.c, elf32-ppc.c, elf32-ppc.h, elf32-s390.c,
1676 elf32-sh-symbian.c, elf32-sh.c, elf32-sh64-com.c, elf32-sh64.c,
1677 elf32-sh64.h, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
1678 elf32-xstormy16.c, elf32-xtensa.c, elf32.c, elf64-alpha.c,
1679 elf64-gen.c, elf64-hppa.c, elf64-hppa.h, elf64-mips.c,
1680 elf64-mmix.c, elf64-ppc.c, elf64-ppc.h, elf64-s390.c,
1681 elf64-sh64.c, elf64-sparc.c, elf64-x86-64.c, elf64.c, elfcode.h,
1682 elfcore.h, elflink.c, elfn32-mips.c, elfxx-ia64.c, elfxx-mips.c,
1683 elfxx-mips.h, elfxx-sparc.c, elfxx-sparc.h, elfxx-target.h,
1684 epoc-pe-arm.c, epoc-pei-arm.c, format.c, freebsd.h, gen-aout.c,
1685 genlink.h, hash.c, host-aout.c, hp300bsd.c, hp300hpux.c,
1686 hppabsd-core.c, hpux-core.c, i386aout.c, i386bsd.c, i386dynix.c,
1687 i386freebsd.c, i386linux.c, i386lynx.c, i386mach3.c, i386msdos.c,
1688 i386netbsd.c, i386os9k.c, ieee.c, ihex.c, init.c, irix-core.c,
1689 libaout.h, libbfd-in.h, libbfd.c, libbfd.h, libcoff-in.h,
1690 libcoff.h, libecoff.h, libhppa.h, libieee.h, libnlm.h, liboasys.h,
1691 libpei.h, libxcoff.h, linker.c, lynx-core.c, m68k4knetbsd.c,
1692 m68klinux.c, m68klynx.c, m68knetbsd.c, m88kmach3.c, m88kopenbsd.c,
1693 mach-o-target.c, mach-o.c, mach-o.h, merge.c, mipsbsd.c, mmo.c,
1694 netbsd-core.c, netbsd.h, newsos3.c, nlm-target.h, nlm.c,
1695 nlm32-alpha.c, nlm32-i386.c, nlm32-ppc.c, nlm32-sparc.c, nlm32.c,
1696 nlm64.c, nlmcode.h, nlmswap.h, ns32k.h, ns32knetbsd.c, oasys.c,
1697 opncls.c, osf-core.c, pc532-mach.c, pdp11.c, pe-arm.c, pe-i386.c,
1698 pe-mcore.c, pe-mips.c, pe-ppc.c, pe-sh.c, peXXigen.c,
1699 pef-traceback.h, pef.c, pef.h, pei-arm.c, pei-i386.c, pei-mcore.c,
1700 pei-mips.c, pei-ppc.c, pei-sh.c, peicode.h, ppcboot.c,
1701 ptrace-core.c, reloc.c, reloc16.c, riscix.c, rs6000-core.c,
1702 sco5-core.c, section.c, simple.c, som.c, som.h, sparclinux.c,
1703 sparclynx.c, sparcnetbsd.c, srec.c, stab-syms.c, stabs.c, sunos.c,
1704 syms.c, sysdep.h, targets.c, tekhex.c, ticoff.h, trad-core.c,
1705 vax1knetbsd.c, vaxbsd.c, vaxnetbsd.c, versados.c, vms-gsd.c,
1706 vms-hdr.c, vms-misc.c, vms-tir.c, vms.c, vms.h, xcoff-target.h,
1707 xcofflink.c, xsym.c, xsym.h, xtensa-isa.c, xtensa-modules.c,
11d02c41 1708 hosts/alphavms.h
3e110533 1709
f652615e
L
17102005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1711
1712 * bfd-in.h (_bfd_elf_provide_section_bound_symbols): New.
1713 * bfd-in2.h: Regenerated.
1714
1715 * elflink.c (bfd_elf_set_symbol): New.
1716 (_bfd_elf_provide_symbol): Call it.
1717 (_bfd_elf_provide_section_bound_symbols): New.
1718
c5e2cead
L
17192005-05-04 H.J. Lu <hongjiu.lu@intel.com>
1720
1721 * elflink.c (_bfd_elf_merge_symbol): Only skip weak definitions
1722 at the end, if a strong definition has already been seen.
1723
8423293d
AM
17242005-05-04 Alan Modra <amodra@bigpond.net.au>
1725
1726 * section.c (struct bfd_section): Replace link_order_head and
1727 link_order_tail with map_head and map_tail union.
1728 (STD_SECTION): Update.
1729 (_bfd_strip_section_from_output): Delete.
1730 * aoutx.h: Update throughout for above changes.
1731 * coff-ppc.c: Likewise.
1732 * cofflink.c: Likewise.
1733 * ecoff.c: Likewise.
1734 * elf-eh-frame.c: Likewise.
1735 * elf-m10300.c: Likewise.
1736 * elf.c: Likewise.
1737 * elf32-arm.c: Likewise.
1738 * elf32-cris.c: Likewise.
1739 * elf32-hppa.c: Likewise.
1740 * elf32-i386.c: Likewise.
1741 * elf32-m32r.c: Likewise.
1742 * elf32-m68hc1x.c: Likewise.
1743 * elf32-m68k.c: Likewise.
1744 * elf32-ppc.c: Likewise.
1745 * elf32-s390.c: Likewise.
1746 * elf32-sh.c: Likewise.
1747 * elf32-vax.c: Likewise.
1748 * elf32-xtensa.c: Likewise.
1749 * elf64-alpha.c: Likewise.
1750 * elf64-hppa.c: Likewise.
1751 * elf64-ppc.c: Likewise.
1752 * elf64-s390.c: Likewise.
1753 * elf64-sh64.c: Likewise.
1754 * elf64-x86-64.c: Likewise.
1755 * elflink.c: Likewise.
1756 * elfxx-ia64.c: Likewise.
1757 * elfxx-mips.c: Likewise.
1758 * elfxx-sparc.c: Likewise.
1759 * linker.c: Likewise.
1760 * merge.c: Likewise.
1761 * pdp11.c: Likewise.
1762 * xcofflink.c: Likewise.
1763 * elflink.c (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Split
1764 out from bfd_elf_size_dynamic_sections.
1765 * bfd-in.h (bfd_boolean bfd_elf_size_dynsym_hash_dynstr): Declare.
1766 * bfd-in2.h: Regenerate.
1767
04dd1667
AM
17682005-05-04 Alan Modra <amodra@bigpond.net.au>
1769
1770 * section.c (bfd_section_list_remove): Don't clear s->next.
1771 (bfd_section_list_append): Always init s->prev.
1772 (bfd_section_list_prepend): Define.
1773 (bfd_section_list_insert_after): Minor optimization.
1774 (bfd_section_removed_from_list): Rewrite.
1775 * elf.c (assign_section_numbers): Simplify list traversal now that
1776 bfd_section_list_remove doesn't destroy removed section next ptr.
1777 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1778 * elfxx-ia64.c (elfNN_ia64_object_p): Use bfd_section_list_prepend.
1779 * xcofflink.c (_bfd_xcoff_bfd_final_link): Simplify list traversal.
1780 * bfd-in2.h: Regenerate.
1781
5daa8fe7
L
17822005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1783
1784 * bfd.c (bfd): Remove section_tail and add section_last.
1785 (bfd_preserve): Likewise.
1786 (bfd_preserve_save): Likewise.
1787 (bfd_preserve_restore): Likewise.
1788 * opncls.c (_bfd_new_bfd): Likewise.
1789
1790 * coffcode.h (coff_compute_section_file_positions): Updated.
1791 (coff_compute_section_file_positions): Likewise.
1792 * elf.c (assign_section_numbers): Likewise.
1793 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
1794 * elf64-mmix.c (mmix_elf_final_link): Likewise.
1795 * elfxx-ia64.c (elfNN_ia64_object_p): Likewise.
1796 * elfxx-mips.c (_bfd_mips_elf_link_hash_table_create): Likewise.
1797 * sunos.c (sunos_add_dynamic_symbols): Likewise.
1798 * xcofflink.c (_bfd_xcoff_bfd_final_link): Likewise.
1799
1800 * ecoff.c (bfd_debug_section): Initialize prev.
1801
1802 * section.c (bfd_section): Add prev.
1803 (bfd_section_list_remove): Updated.
1804 (bfd_section_list_append): New.
1805 (bfd_section_list_insert_after): New.
1806 (bfd_section_list_insert_before): New.
1807 (bfd_section_list_insert): Removed.
1808 (bfd_section_removed_from_list): Updated.
1809 (STD_SECTION): Initialize prev.
1810 (bfd_section_init): Updated.
1811 (bfd_section_list_clear): Updated.
1812
1813 * bfd-in2.h: Regenerated.
1814
a31501e9
L
18152005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1816
1817 * elf.c (_bfd_elf_new_section_hook): Don't call
1818 _bfd_elf_get_sec_type_attr on sections from input files.
1819
d05da6a8
L
18202005-05-02 H.J. Lu <hongjiu.lu@intel.com>
1821
1822 * merge.c (sec_merge_init): Call bfd_hash_table_init_n with
1823 hash table size 16699 instead of bfd_hash_table_init.
1824
a67b080b
PB
18252005-05-01 Paul Brook <paul@codesourcery.com>
1826
1827 * elflink.c (_bfd_elf_merge_symbol): Skip weak definitions if a strong
1828 definition has already been seen.
1829
c6596c5e
PB
18302005-05-01 Paul Brook <paul@codesourcery.com>
1831
1832 * elf32-arm.c (bfd_elf32_arm_process_before_allocation): Treat
1833 R_ARM_PLT32 the same as R_ARM_PC24.
1834 (arm_add_to_rel): Ditto.
1835
9a813b7a
DJ
18362005-04-29 Ralf Corsepius <ralf.corsepius@rtems.org>
1837
1838 * config.bfd: Add h8300*-*-rtemscoff.
1839 Switch h8300*-*-rtems* to elf.
1840
aa7eb06d
DJ
18412005-04-29 Daniel Jacobowitz <dan@codesourcery.com>
1842
1843 * aclocal.m4, Makefile.in: Regnerated.
1844
fa0d1cab
PB
18452005-04-28 Paul Brook <paul@codesourcery.com>
1846
1847 Merge changes only applied to Makefile.in.
1848 * Makefile.am (BFD32_BACKENDS): Add elfxx-sparc.lo
1849 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
1850 (elfxx-sparc.lo): New rule.
1851 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
1852 (elf64-sparc.lo): Likewise.
1853
0291d291
NC
18542005-04-28 Julian Brown <julian@codesourcery.com>
1855
1856 * elflink.c (_bfd_elf_provide_symbol): Provide symbol for weak
1857 import.
1858
26c61ae5
L
18592005-04-27 H.J. Lu <hongjiu.lu@intel.com>
1860
1861 * elf-bfd.h (bfd_elf_sym_name): Also take "asection *".
1862
1863 * elf.c (bfd_elf_sym_name): Updated.
1864 (group_signature): Likewise.
1865 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
1866 * elf64-ppc.c (ppc64_elf_edit_opd): Likewise.
1867 (ppc64_elf_edit_toc): Likewise.
1868 (ppc64_elf_relocate_section): Likewise.
1869 * elfcode.h (elf_slurp_symbol_table): Likewise.
1870 * elflink.c (elf_link_input_bfd): Likewise.
1871
1872 * elfxx-ia64.c (elfNN_ia64_relocate_section): Call
1873 bfd_elf_sym_name to get local symbol name when reporting errors.
1874
8c19749a
NC
18752005-04-27 Nick Clifton <nickc@redhat.com>
1876
1877 * elflink.c (elf_link_input_bfd): Handle the case where a badly
1878 formatted input file results in a reloc which has no associated
1879 global symbol.
1880
8e5b6e16
JG
18812005-04-26 Jerome Guitton <guitton@gnat.com>
1882
1883 * bfd.m4 (BFD_NEED_DECLARATION): Restore.
1884
e459dc7b
DM
18852005-04-25 David S. Miller <davem@davemloft.net>
1886
1887 * elfxx-sparc.c (sparc_elf_append_rela_64): Add BFD64 protection.
1888 (sparc_elf_r_info_64, _bfd_sparc_elf_finish_dynamic_symbol,
1889 sparc64_finish_dyn, _bfd_sparc_elf_finish_dynamic_sections):
1890 Likewise.
1891
6d633fd2
L
18922005-04-25 H.J. Lu <hongjiu.lu@intel.com>
1893
1894 PR 858
1895 * elflink.c (elf_link_input_bfd): Make non-debugging reference
1896 to discarded section an error.
1897
d34a2b1d
JG
18982005-04-21 Jerome Guitton <guitton@gnat.com>
1899
1900 * configure.in: Replace BFD_NEED_DECLARATION checks by the
1901 corresponding AC_CHECK_DECLS.
1902 * sysdep.h: Replace NEED_DECLARATION_* checks by the corresponding
1903 HAVE_DECL_*.
1904 * bfd.m4 (BFD_NEED_DECLARATION): Remove, obsolete.
1905 * configure: Regenerate.
1906 * config.in: Ditto.
1907
ff01938b
AS
19082005-04-21 Andreas Schwab <schwab@suse.de>
1909
c2e70a82
AS
1910 * elfxx-sparc.h (struct _bfd_sparc_elf_link_hash_table): Remove
1911 unsigned from type of dynamic_interpreter.
1912 * elfxx-sparc.c (_bfd_sparc_elf_link_hash_table_create): Remove
1913 casts again.
1914
ff01938b
AS
1915 * elf.c (assign_section_numbers): Fix comment.
1916
0858d3ec
JG
19172005-04-21 Jerome Guitton <guitton@gnat.com>
1918
1919 * som.c (som_bfd_print_private_bfd_data): Add explicit cast to long
1920 for struct som_exec_auxhdr fields.
1921
7920ce38
NC
19222005-04-21 Nick Clifton <nickc@redhat.com>
1923
1924 * aout-adobe.c: Convert to ISO C and fix formatting.
1925 * aout-arm.c: Convert to ISO C and fix formatting.
1926 * aout-cris.c: Convert to ISO C and fix formatting.
1927 * aout-ns32k.c: Convert to ISO C and fix formatting.
1928 * aout-tic30.c: Convert to ISO C and fix formatting.
1929 * coffcode.h: Convert to ISO C and fix formatting.
1930 * coffswap.h: Convert to ISO C and fix formatting.
1931 * i386aout.c: Convert to ISO C and fix formatting.
1932 * libaout.h: Convert to ISO C and fix formatting.
1933 * libcoff-in.h: Convert to ISO C and fix formatting.
1934 * libcoff.h: Convert to ISO C and fix formatting.
1935 * libecoff.h: Convert to ISO C and fix formatting.
1936 * libnlm.h: Convert to ISO C and fix formatting.
1937 * libpei.h: Convert to ISO C and fix formatting.
1938 * libxcoff.h: Convert to ISO C and fix formatting.
1939 * nlm-target.h: Convert to ISO C and fix formatting.
1940 * nlm.c: Convert to ISO C and fix formatting.
1941 * nlm32-alpha.c: Convert to ISO C and fix formatting.
1942 * nlm32-i386.c: Convert to ISO C and fix formatting.
1943 * nlm32-ppc.c: Convert to ISO C and fix formatting.
1944 * nlm32-sparc.c: Convert to ISO C and fix formatting.
1945 * nlmcode.h: Convert to ISO C and fix formatting.
1946 * nlmswap.h: Convert to ISO C and fix formatting.
1947 * pe-mips.c: Convert to ISO C and fix formatting.
1948 * peXXigen.c: Convert to ISO C and fix formatting.
1949 * peicode.h: Convert to ISO C and fix formatting.
1950 * vms-gsd.c: Convert to ISO C and fix formatting.
1951 * vms-hdr.c: Convert to ISO C and fix formatting.
1952 * vms-misc.c: Convert to ISO C and fix formatting.
1953 * vms-tir.c: Convert to ISO C and fix formatting.
1954 * vms.c: Convert to ISO C and fix formatting.
1955 * vms.h: Convert to ISO C and fix formatting.
1956
1957 * coffgen.c (coff_print_symbol): Restore correct formatting of
1958 output.
1959
e8be8da4
DM
19602005-04-20 David S. Miller <davem@davemloft.net>
1961
1962 * elfxx-sparc.c (sparc_elf_r_symndx_64): Fix compiler warning.
1963 (_bfd_sparc_elf_link_hash_table_create): Likewise.
1964 (allocate_dynrelocs): Likewise.
1965
ec7b76fe
JG
19662005-04-20 Jerome Guitton <guitton@gnat.com>
1967
1968 * configure.in: Fix the check for basename declaration. Add check
1969 for declarations of ftello, ftello64, fseeko, fseeko64.
1970 * configure: Regenerate.
1971 * config.in: Ditto.
1972 * sysdep.h: If needed, declare ftello, ftello64, fseeko, fseeko64.
1973
22b75d0a
DM
19742005-04-19 David S. Miller <davem@davemloft.net>
1975
1976 * elfxx-sparc.c: New file.
1977 * elfxx-sparc.h: New file.
1978 * Makefile.in (BFD32_BACKENDS): Add elfxx-sparc.lo
1979 (BFD32_BACKENDS_CFILES): Add elfxx-sparc.c
1980 (elfxx-sparc.lo): New rule.
1981 (elf32-sparc.lo): Add elfxx-sparc.h dependency.
1982 (elf64-sparc.lo): Likewise.
1983 * configure.in (bfd_elf32_sparc_vec): Add elfxx-sparc.lo
1984 (bfd_elf64_sparc_vec): Likewise.
1985 * configure: Regenerate.
1986 * elf32-sparc.c: Remove common code now in elfxx-sparc.c
1987 * elf64-sparc.c: Likewise, also use elf64_sparc_*() naming
1988 which is more consistent with elf32-sparc.c
1989
a008ac03
DJ
19902005-04-19 Daniel Jacobowitz <dan@codesourcery.com>
1991
1992 * elfxx-mips.c (struct mips_elf_link_hash_entry): Update comment.
1993 (mips_elf_create_local_got_entry): Check h->root.forced_local.
1994
c87b5a93
AM
19952005-04-19 Alan Modra <amodra@bigpond.net.au>
1996
1997 * elf32-ppc.c (ppc_elf_check_relocs): Don't bother with
1998 dynamic relocs in non-SEC_ALLOC sections.
1999 (ppc_elf_gc_sweep_hook): Likewise.
2000 (ppc_elf_relax_section): Likewise.
2001 (ppc_elf_relocate_section): Likewise.
2002
7cefacd3
NC
20032005-04-18 Nick Clifton <nickc@redhat.com>
2004
2005 * aix5ppc-core.c (xcoff64_core_p): Fix compile time warning
2006 assigning a value to return_value.
2007
278d8f37
L
20082005-04-17 H.J. Lu <hongjiu.lu@intel.com>
2009
2010 PR 855
2011 * elf.c (_bfd_elf_copy_private_section_data): Don't copy linker
2012 created group data.
2013
20dbb49d
L
20142005-04-17 H.J. Lu <hongjiu.lu@intel.com>
2015
2016 PR 855
2017 * elf.c (setup_group): Properly handle zero group count.
2018
6a808a40
MK
20192005-04-17 Mark Kettenis <kettenis@gnu.org>
2020
2021 * som.c (hppa_som_reloc, som_mkobject, som_is_space)
2022 (som_is_subspace, compare_subspaces, som_compute_checksum)
2023 (som_build_and_write_symbol_table, som_slurp_symbol_table): New
2024 protoypes.
2025 (hppa_som_reloc, compare_syms, compare_subspaces)
2026 (som_print_symbol, som_get_section_contents)
2027 (som_set_section_contents): Remove space after 'void *'.
2028 (som_bfd_print_private_bfd_data): Use %lx to print longs.
2029 (som_bfd_merge_private_bfd_data)
2030 (som_bfd_copy_private_header_data, som_bfd_set_private_flags): New
2031 defines.
2032
33bfe774
JB
20332004-04-15 Julian Brown <julian@codesourcery.com>
2034
2035 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
2036 * bfd-in2.h: Regenerate.
2037 * elf32-arm.c (elf32_arm_link_hash_table): New field, 'use_blx'.
2038 (elf32_arm_link_hash_table_create): Initialise fix_v4bx, use_blx.
2039 (bfd_elf32_arm_set_target_relocs): Handle use_blx.
2040 (elf32_arm_final_link_relocate): Use Thumb BLX for R_ARM_THM_PC22
2041 relocations if requested to.
2042 (allocate_dynrelocs): Don't count size of omitted Thumb stubs based on
2043 use_blx rather than symbian_p.
2044 (elf32_arm_finish_dynamic_symbol): Don't output Thumb PLT stubs if
2045 use_blx is in effect.
2046 (elf32_arm_symbian_link_hash_table_create): Enable use_blx by default
2047 for SymbianOS.
2048
745c12f8
NC
20492005-04-15 Nick Clifton <nickc@redhat.com>
2050
2051 * coffgen.c (coff_print_symbol): Use fprintf_vma to print vma
2052 values.
2053
2e8b3a61
AM
20542005-04-15 Alan Modra <amodra@bigpond.net.au>
2055
2056 PR ld/815
2057 * elflink.c (elf_smash_syms): Clear undef.next if it's not being
2058 used as a list pointer.
2059
9e9b66a9
AM
20602005-04-14 Alan Modra <amodra@bigpond.net.au>
2061
2062 * Makefile.am (NO_WERROR): Define.
2063 * warning.m4: New file
2064 * acinclude.m4: Include warning.m4.
2065 * configure.in: Invoke AM_BINUTILS_WARNINGS.
2066 * Makefile.in: Regenerate.
2067 * configure: Regenerate.
2068
8699aa54
AM
20692005-04-14 Alan Modra <amodra@bigpond.net.au>
2070
92ceba1e
AM
2071 * merge.c (sec_merge_emit): Tidy. Check for bfd_zmalloc errors.
2072 Write trailing padding.
2073
8699aa54
AM
2074 * merge.c (merge_strings): Round up section size for alignment.
2075
40937810
JJ
20762005-04-14 David S. Miller <davem@davemloft.net>
2077
2078 Add TLS support for 64-bit Sparc ELF.
2079 * elf64-sparc.c (sparc64_elf_dyn_relocs,
2080 sparc64_elf_link_hash_entry, sparc64_elf_obj_tdata): New structs.
2081 (GOT_UNKNOWN, GOT_NORMAL, GOT_TLD_GD, GOT_TLD_IE,
2082 sparc64_elf_hash_entry, sparc64_elf_tdata,
2083 sparc64_elf_local_got_tls_type): New defines.
2084 (sparc64_elf_mkobject): New function.
2085 (sparc64_elf_link_hash_table): Add members for dynamic linker
2086 sections PLT, RELPLT, DYNBSS, and RELBSS. Add tls_ldm_got
2087 uion to track TLS GOT references. Add sym_sec to cache
2088 mappings from local sym to section.
2089 (link_hash_newfunc): New function.
2090 (sparc64_elf_bfd_link_hash_table_create): Rename to
2091 sparc64_elf_link_hash_table_create for consistency.
2092 Pass link_hash_newfunc to _bfd_elf_link_hash_table_init.
2093 (sparc64_elf_create_dynamic_sections): Initialize new section
2094 members of sparc64_elf_link_hash_table. Only init srelbss
2095 if not-shared.
2096 (sparc64_elf_copy_indirect_symbol, sparc64_elf_tls_transition):
2097 New functions.
2098 (SPARC_NOP): Define.
2099 (sparc64_elf_build_plt, sparc64_elf_plt_entry_offset,
2100 sparc64_elf_plt_ptr_offset): Delete.
2101 (sparc64_plt_entry_build): New function to build PLT entries
2102 gradually instread of all at once at the end of linking.
2103 (sparc64_elf_check_relocs): Delete dynobj, sgot, and srelgot
2104 local vars. Get them from sparc64_elf_hash_table instead.
2105 Check early on if r_symndx is in bounds. Handle TLS transitions.
2106 Account for TLS GOT references and DF_STATIC_TLS, as needed.
2107 For TLS relocs, record the tls_type in either
2108 sparc64_elf_local_got_tls_type or sparc64_elf_hash_entry as
2109 appropriate. For R_SPARC_TLS_{GD,LDM}_CALL, emit a reference
2110 to the __tls_get_addr symbol. For PLT relocs, track references
2111 via h->plt.refcount. When R_SPARC_{PC10,PC22,PC_HH22,PC_HM10,
2112 PC_LM22} and h not-NULL, set h->non_got_ref. For global data
2113 symbol references, count the number of relocations needed for
2114 that symbol. For default switch case, don't error, this lets
2115 the TLS relocs not explicitly handled by this function get
2116 accepted.
2117 (sparc64_elf_gc_mark_hook, sparc64_gc_sweep_hook): New functions.
2118 (sparc64_elf_adjust_dynamic_symbol): Remove dynobj local var, get
2119 it from sparc64_elf_hash_table. Store the real PLT offset
2120 in h->plt.offset, and build PLT entries one at a time. Also
2121 get .dynbss section pointer from htab.
2122 (allocate_dynrelocs, readonly_dynrelocs,
2123 sparc64_omit_section_dynsym): New functions.
2124 (sparc64_elf_omit_section_dynsym): Use these new functions as
2125 helpers.
2126 (dtpoff_base, tpoff): New functions.
2127 (sparc64_elf_relocate_section): Kill dynobj, sgot, and splt
2128 locals, get them from sparc64_elf_hash_table. Handle TLS
2129 relocations and refcounting in main relocation loop.
2130 (sparc64_elf_finish_dynamic_symbol): Use
2131 sparc64_elf_link_hash_table. Build PLT entries as we see
2132 them. Handle TLS GOT relocations.
2133 (sparc64_elf_finish_dynamic_sections): Get sgot and dynobj
2134 from sparc64_elf_hash_table. Initialize only PLT header
2135 not all entries since we not build PLT entries one by one.
2136 (elf_backend_copy_indirect_symbol, bfd_elf64_mkobject,
2137 elf_backend_gc_mark_hook, elf_backend_gc_sweep_hook,
2138 elf_backend_can_gc_sections, elf_backend_can_refcount): Define.
2139
e75a280b
L
21402005-04-13 Daniel Jacobowitz <dan@codesourcery.com>
2141
2142 * elflink.c (elf_link_input_bfd): Update check for removed
2143 sections.
2144
ceae3e33
AM
21452005-04-12 Alan Modra <amodra@bigpond.net.au>
2146
2147 * Makefile.am: Run "make dep-am".
2148 * Makefile.in: Regenerate.
2149 * aclocal.m4: Regenerate.
2150 * libcoff.h: Regenerate.
2151
ab82c5b9
L
21522005-04-11 H.J. Lu <hongjiu.lu@intel.com>
2153
2154 * linker.c (_bfd_generic_link_output_symbols): Also check if
2155 the output section of an input section has been removed from
2156 the output file.
2157
2158 * section.c (bfd_section_list_remove): Clear the next field
2159 of the removed section.
2160 (bfd_section_removed_from_list): New.
2161 * bfd-in2.h: Regenerated.
2162
bd695bcc
JJ
21632005-04-11 David S. Miller <davem@davemloft.net>
2164
2165 * elf32-sparc.c (elf32_sparc_relocate_section,
2166 R_SPARC_TLS_LDO_{HIX22,LOX10}): When not shared, transition to
2167 R_SPARC_TLS_LE_{HIX22,LOX10}.
2168 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_HIX22): Only
2169 xor relocation with 0xffffffff if R_SPARC_TLS_LE_HIX22.
2170 (elf32_sparc_relocate_section, R_SPARC_TLS_{LDO,LE}_LOX10): Only
2171 or 0x1c00 into relocation if R_SPARC_TLS_LE_HIX22.
2172
b5b2699c
L
21732005-04-11 H.J. Lu <hongjiu.lu@intel.com>
2174
2175 * coffcode.h (STRING_SIZE_SIZE): Updated to match libcoff-in.h.
2176
116c20d2 21772005-04-11 Nick Clifton <nickc@redhat.com>
d7128ce4 2178
116c20d2
NC
2179 * aout-target.h: Convert to ISO C.
2180 * aoutf1.h: Convert to ISO C.
2181 * aoutx.h: Convert to ISO C.
2182 * bout.c: Convert to ISO C.
2183 * dwarf1.c: Convert to ISO C.
2184 * ecoffswap.h: Convert to ISO C.
2185 * freebsd.h: Convert to ISO C.
2186 * genlink.h: Convert to ISO C.
2187 * ieee.c: Convert to ISO C.
2188 * ihex.c: Convert to ISO C.
2189 * libcoff-in.h: Convert to ISO C.
2190 * mach-o.c: Convert to ISO C.
2191 * mach-o.h: Convert to ISO C.
2192 * netbsd.h: Convert to ISO C.
2193 * ns32k.h: Convert to ISO C.
2194 * ns32knetbsd.c: Convert to ISO C.
2195 * oasys.c: Convert to ISO C.
2196 * pdp11.c: Convert to ISO C.
2197 * pef-traceback.h: Convert to ISO C.
2198 * pef.c: Convert to ISO C.
2199 * pef.h: Convert to ISO C.
2200 * riscix.c: Convert to ISO C.
2201 * som.c: Convert to ISO C.
2202 * som.h: Convert to ISO C.
2203 * srec.c: Convert to ISO C.
2204 * stabs.c: Convert to ISO C.
2205 * sunos.c: Convert to ISO C.
2206 * tekhex.c: Convert to ISO C.
2207 * versados.c: Convert to ISO C.
2208 * version.h: Convert to ISO C.
2209 * xcoff-target.h: Convert to ISO C.
2210 * xcofflink.c: Convert to ISO C.
2211 * xsym.c: Convert to ISO C.
2212 * xsym.h: Convert to ISO C.
2213
8f6277f5
PB
22142005-04-08 Paul Brook <paul@codesourcery.com>
2215
2216 * elf32-arm.c (ARM2THUMB_GLUE_SIZE): Rename...
2217 (ARM2THUMB_STATIC_GLUE_SIZE): ... to this.
2218 (ARM2THUMB_PIC_GLUE_SIZE): Define.
2219 (a2t1p_ldr_insn, a2t2p_add_pc_insn, a2t3p_bx_r12_insn): Add.
2220 (elf32_arm_to_thumb_stub): Create PIC stubs.
2221 (record_arm_to_thumb_glue): Use different stub size for relocatable
2222 images.
2223
8c1d1bb8
AM
22242005-04-05 Alan Modra <amodra@bigpond.net.au>
2225
2226 * elf64-ppc.c (dec_dynrel_count): New function split out from
2227 ppc64_elf_edit_toc, with additional code from ppc64_elf_edit_opd.
2228 (ppc64_elf_edit_toc, ppc64_elf_edit_opd): Use it.
2229 (ppc64_elf_tls_optimize): Likewise.
2230
8c101720
NC
22312005-04-05 Mark Kettenis <kettenis@gnu.org>
2232
2233 * netbsd-core.c (SPARC_WCOOKIE_OFFSET): Renamed from
2234 CORE_WCOOKIE_OFFSET.
2235 (SPARC64_WCOOKIE_OFFSET): New.
2236 (netbsd_core_file_p): Provide .wcookie section for OpenBSD/sparc64.
2237
429cc0ae
NC
22382005-04-05 Nick Clifton <nickc@redhat.com>
2239
2240 * po/rw.po: New translation: Kinyarwanda
2241 * configure.in (ALL_LINGUAS): Add rw
2242 * configure: Regenerate.
2243
cc2e31b9
RS
22442005-04-05 Richard Sandiford <rsandifo@redhat.com>
2245
2246 * elfxx-mips.c (MIPS_ELF_OPTIONS_SECTION_NAME_P): New macro.
2247 (_bfd_mips_elf_section_from_shdr): Use it to check for recognized
2248 SHT_MIPS_OPTIONS names. Allow all sections with unrecognised
2249 section flags.
2250 (_bfd_mips_elf_fake_sections): Use MIPS_ELF_OPTIONS_SECTION_NAME_P
2251 to check for SHT_MIPS_OPTIONS sections.
2252 (_bfd_mips_elf_set_section_contents): Likewise.
2253
8236346f
EC
22542005-04-04 Eric Christopher <echristo@redhat.com>
2255
2256 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents):
2257 Clean up gp handling code.
2258
7e4111ad
L
22592005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2260
2261 * elf.c (bfd_elf_set_group_contents): Ignore linker created
d7128ce4 2262 group section.
da9f89d4
L
2263 (assign_section_numbers): Accept link_info. Check SHT_GROUP
2264 sections for relocatable files only. Remove the linker created
2265 group sections.
2266 (_bfd_elf_compute_section_file_positions): Pass link_info to
2267 assign_section_numbers.
2268
2269 * elfxx-ia64.c (elfNN_ia64_object_p): New.
2270 (elf_backend_object_p): Defined.
7e4111ad 2271
96982dc9
L
22722005-04-04 H.J. Lu <hongjiu.lu@intel.com>
2273
2274 * elf-bfd.h (elf_section_data): Use (sec) instead of sec.
2275
a13afe8e
FF
22762005-04-03 Fred Fish <fnf@specifixinc.com>
2277
2278 * dwarf2.c (struct dwarf2_debug): Add dwarf_ranges_buffer and
2279 dwarf_ranges_size members.
2280 (struct comp_unit): Add base_address member.
2281 (struct funcinfo): Replace low/high members with an arange.
2282 (arange_add): Replace incoming "unit" parameter with "abfd" and
2283 "first_arange" pointers. Reorganize/rewrite function body.
2284 (decode_line_info): Change arange_add call to pass bfd and arange
2285 pointers.
2286 (lookup_address_in_line_info_table): Use arange list instead of
2287 individual low/high members. Walk function's arange list to find
2288 lowest PC in list, to test for overlapping functions.
2289 (read_debug_ranges): New function, reads the debug_ranges section.
2290 (lookup_address_in_function_table): Use arange list instead of
2291 individual low/high members. Rewrite to find smallest range that
2292 matches.
2293 (read_rangelist): Read a given rangelist from debug_ranges.
2294 (scan_unit_for_functions): Use arange list instead of individual
2295 low/high members. Handle a DW_AT_ranges attribute.
2296 (parse_comp_unit): Use arange list instead of individual low/high
2297 members. Save comp unit base address. Handle a DW_AT_ranges
2298 attribute.
2299
2796fd96
L
23002005-04-01 H.J. Lu <hongjiu.lu@intel.com>
2301
2302 * elf.c (assign_section_numbers): Really use the kept section.
2303
01b3c8ab
L
23042005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2305
2306 * elf-bfd.h (_bfd_elf_check_kept_section): New.
2307
2308 * elf.c (assign_section_numbers): When sh_link points to a
2309 discarded section, call _bfd_elf_check_kept_section to see if
2310 the kept section can be used. Otherwise reject sh_link
2311 pointing to discarded section.
2312
2313 * elflink.c (_bfd_elf_check_kept_section): New.
2314 (elf_link_input_bfd): Use it.
2315
35090471
AM
23162005-04-01 Alan Modra <amodra@bigpond.net.au>
2317
2318 * elf64-ppc.c (ppc64_elf_edit_toc): Account for dynamic relocs
2319 that we no longer need.
2320
7356fed5
AM
23212005-04-01 Alan Modra <amodra@bigpond.net.au>
2322
2323 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Return -1 on errors
2324 rather than 0.
77623a34 2325 (ppc64_elf_check_relocs): Remove unnecessary SEC_ALLOC check.
7356fed5 2326
28b13744
L
23272005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2328
2329 * elf.c (assign_section_numbers): Fix a typo.
2330
c93625e2
L
23312005-03-31 H.J. Lu <hongjiu.lu@intel.com>
2332
2333 * elflink.c (elf_link_input_bfd): Remove the extra `\n' in
2334 error message.
2335 (_bfd_elf_section_already_linked): Likewise.
2336
fddc4048
JG
23372005-03-31 Jerome Guitton <guitton@gnat.com>
2338
2339 * config.in: Regenerate.
2340
2e9ebff5
JG
23412005-03-31 Jerome Guitton <guitton@gnat.com>
2342
c93625e2
L
2343 * config.in (HAVE_DECL_BASENAME): New configure macro.
2344 * configure.in: Check for basename.
2345 * configure: Regenerate.
2e9ebff5 2346
05ea83ed
JB
23472005-03-30 Julian Brown <julian@codesourcery.com>
2348
2349 * bfd-in.h (bfd_is_arm_mapping_symbol_name): Rename from
2350 bfd_elf32_is_arm_mapping_symbol_name.
2351 * bfd-in2.h: Regenerate.
2352 * cpu-arm.c (bfd_is_arm_mapping_symbol_name): Rename from
2353 bfd_elf32_is_arm_mapping_symbol_name.
2354 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename
2355 bfd_elf32_is_arm_mapping_symbol_name to bfd_is_arm_mapping_symbol_name.
2356 (arm_elf_find_function): Likewise.
2357 (elf32_arm_output_symbol_hook): Likewise.
2358
9d2da7ca
JB
23592005-03-30 Julian Brown <julian@codesourcery.com>
2360
2361 * bfd-in.h (bfd_elf32_is_arm_mapping_symbol_name): Add prototype.
2362 * bfd-in2.h: Regenerate.
2363 * elf32-arm.c (elf32_arm_is_target_special_symbol): Rename call to
2364 bfd_elf32_is_arm_mapping_symbol_name.
2365 (elf32_arm_output_symbol_hook): Likewise.
2366 (arm_elf_find_function): Likewise, and include STT_NOTYPE in test for
2367 mapping symbols.
2368 (is_arm_mapping_symbol_name): Function moved from here...
2369 * cpu-arm.c (bfd_elf32_is_arm_mapping_symbol_name): ...to here, renamed
2370 and made global.
2371
efa9bda4
AL
23722005-03-29 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
2373
2374 * configure.in: Check for ffs decl and alphabetize.
2375 * config.in: Regenerate.
2376 * configure: Regenerate.
d7128ce4 2377 * sysdep.h [NEED_DECLARATION_FFS] (ffs): Prototype and alphabetize.
efa9bda4 2378
09a9d560
FF
23792005-03-29 Fred Fish <fnf@specifixinc.com>
2380
2381 * dwarf2.c (struct comp_unit): Fix typo.
2382 (scan_unit_for_functions): Remove unused local variable "name"
2383 and dead code that set it.
2384
ba93b8ac
DJ
23852005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2386 Phil Blundell <philb@gnu.org>
2387
2388 * bfd-in2.h, libbfd.h: Regenerated.
2389 * reloc.c: Add ARM TLS relocations.
2390 * elf32-arm.c (elf32_arm_howto_table): Add dynamic TLS
2391 relocations.
2392 (elf32_arm_tls_gd32_howto, elf32_arm_tls_ldo32_howto)
2393 (elf32_arm_tls_ldm32_howto, elf32_arm_tls_le32_howto)
2394 (elf32_arm_tls_ie32_howto): New.
2395 (elf32_arm_howto_from_type): Support TLS relocations.
2396 (elf32_arm_reloc_map): Likewise.
2397 (elf32_arm_reloc_type_lookup): Likewise.
2398 (TCB_SIZE): Define.
2399 (struct elf32_arm_obj_tdata): New.
2400 (elf32_arm_tdata, elf32_arm_local_got_tls_type): Define.
2401 (elf32_arm_mkobject): New function.
2402 (struct elf32_arm_relocs_copied): Add pc_count.
2403 (elf32_arm_hash_entry, GOT_UNKNOWN, GOT_NORMAL, GOT_TLS_GD)
2404 (GOT_TLS_IE): Define.
2405 (struct elf32_arm_link_hash_table): Add tls_ldm_got.
2406 (elf32_arm_link_hash_newfunc): Initialize tls_type.
2407 (elf32_arm_copy_indirect_symbol): Copy pc_count and tls_type.
2408 (elf32_arm_link_hash_table_create): Initialize tls_ldm_got.
2409 (dtpoff_base, tpoff): New functions.
2410 (elf32_arm_final_link_relocate): Handle TLS relocations.
2411 (IS_ARM_TLS_RELOC): Define.
2412 (elf32_arm_relocate_section): Warn about TLS mismatches.
2413 (elf32_arm_gc_sweep_hook): Handle TLS relocations and pc_count.
2414 (elf32_arm_check_relocs): Detect invalid symbol indexes. Handle
2415 TLS relocations and pc_count.
2416 (elf32_arm_adjust_dynamic_symbol): Check non_got_ref.
2417 (allocate_dynrelocs): Handle TLS. Bind REL32 relocs to local
2418 calls.
2419 (elf32_arm_size_dynamic_sections): Handle TLS.
2420 (elf32_arm_finish_dynamic_symbol): Likewise.
2421 (bfd_elf32_mkobject): Define.
2422
71a976dd
DJ
24232005-03-29 Daniel Jacobowitz <dan@codesourcery.com>
2424
2425 * elf32-arm.c (elf32_arm_check_relocs): Increment count for all
2426 relocation types. Don't count relocations which will use a PLT.
2427
7e7353ed
JB
24282005-03-29 Joel Brobecker <brobecker@gnat.com>
2429
2430 * elf.c (elfcore_grok_nto_status): Print tid as long.
2431 (elfcore_grok_nto_regs): Likewise.
2432
166856d7
JB
24332005-03-29 Joel Brobecker <brobecker@gnat.com>
2434
40937810 2435 * irix-core.c: Remove some unnecessary prototypes.
166856d7 2436
40f85900
JB
24372005-03-28 Joel Brobecker <brobecker@adacore.com>
2438
2439 * irix-core.c: Convert to ISO C.
2440
aa2e06ba
JB
24412005-03-28 Joel Brobecker <brobecker@adacore.com>
2442
2443 * irix-core.c (do_sections): Replace + by | in expression.
2444 (irix_core_core_file_matches_executable_p): Add ATTRIBUTE_UNUSED
2445 to unused parameters to avoid a compiler warning.
2446
832bc186
MK
24472005-03-28 Mark Kettenis <kettenis@gnu.org>
2448
2449 * netbsd-core.c: Convert to ISO C. Fix formatting.
2450
82f0cfbd
EC
24512005-03-24 Eric Christopher <echristo@redhat.com>
2452
2453 * elfxx-mips.c: Revert previous patch.
2454
d7b9976f
NC
24552005-03-24 Nick Clifton <nickc@redhat.com>
2456
2457 * targets.c (_bfd_target_vector): Only include the
2458 bfd_elf32_ia64_hpux_big_vec vector when building a 64-bit BFD with
2459 all targets enabled.
2460
074d327a
NC
24612005-03-24 James E Wilson <wilson@specifixinc.com>
2462
2463 * Makefile.am (BFD32_BACKENDS): Delete elf32-ia64.lo.
2464 (BFD64_BACKENDS): Add elf32-ia64.lo.
2465 * Makefile.in: Regenerate.
2466
cc27e1dc
EC
24672005-03-23 Eric Christopher <echristo@redhat.com>
2468
2469 * elfxx-mips.c (MIPS_ELF_READONLY_SECTION): New.
2470 (mips_elf_calculate_relocation): Use. Define DF_TEXTREL
2471 after emitting relocation.
2472 (_bfd_mips_elf_adjust_dynamic_symbol): Ditto.
2473 (_bfd_mips_elf_check_relocs): Remove code to set DF_TEXTREL
2474 and readonly_reloc.
2475
ed84e695
NC
24762005-03-23 Mike Frysinger <vapier@gentoo.org>
2477 Nick Clifton <nickc@redhat.com>
2478
2479 * config.bfd: Accept any C library to accompany a GNU Linux
2480 implementation, not just the GNU C library.
2481 * configure.in: Likewise.
2482 * configure: Regenerate.
2483
81e1b023
L
24842005-03-22 H.J. Lu <hongjiu.lu@intel.com>
2485
2486 * bfd-in.h (_bfd_elf_provide_symbol): New.
2487 * bfd-in2.h: Regenerated.
2488
2489 * elf32-ppc.c (set_linker_sym): Moved to elflink.c.
2490 (ppc_elf_set_sdata_syms): Call _bfd_elf_provide_symbol instead
2491 of set_linker_sym.
2492
2493 * elflink.c (_bfd_elf_provide_symbol): New. Moved and renamed
2494 from elf32-ppc.c.
2495
672c2d7e
HPN
24962005-03-22 Hans-Peter Nilsson <hp@axis.com>
2497
2498 * hash.c (strtab_hash_newfunc): Fix typo in allocated size.
2499
1fbc7e7a
BW
25002005-03-22 Bob Wilson <bob.wilson@acm.org>
2501
2502 * xtensa-isa.c (xtensa_opcode_lookup, xtensa_state_lookup,
2503 xtensa_sysreg_lookup_name, xtensa_interface_lookup,
2504 xtensa_funcUnit_lookup): Skip bsearch call if count is zero.
2505 (xtensa_opcode_decode): Rearrange code.
2506
c8e7bf0d
NC
25072005-03-22 Nick Clifton <nickc@redhat.com>
2508
2509 * binary.c: Convert to ISO C90 formatting.
2510 * coff-arm.c: Convert to ISO C90 formatting.
2511 * coffgen.c: Convert to ISO C90 formatting.
2512 * elf32-gen.c: Convert to ISO C90 formatting.
2513 * elf64-gen.c: Convert to ISO C90 formatting.
2514 * hash.c: Convert to ISO C90 formatting.
2515 * ieee.c: Convert to ISO C90 formatting.
2516
28a094c2
DJ
25172005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
2518
2519 * elf32-arm.c (elf32_arm_final_link_relocate): Don't fail for
2520 unresolved symbols in R_ARM_NONE relocations.
2521
0945cdfd
DJ
25222005-03-22 Daniel Jacobowitz <dan@codesourcery.com>
2523
2524 * elf32-arm.c (elf32_arm_final_link_relocate): Add
2525 UNRESOLVED_RELOC_P argument. Set it appropriately.
2526 (elf32_arm_relocate_section): Update call to
2527 elf32_arm_final_link_relocate. Don't clobber RELOCATION; use
2528 unresolved_reloc instead.
2529
11d2f718
AM
25302005-03-23 Alan Modra <amodra@bigpond.net.au>
2531
2532 * elflink.c (elf_link_add_object_symbols): Set SEC_EXCLUDE on
2533 .gnu.warning.* sections.
2534
76750a2f
AM
25352005-03-22 Alan Modra <amodra@bigpond.net.au>
2536
2537 * elf32-ppc.c (elf_linker_section_pointers_t): Remove
2538 written_address_p.
2539 (ppc_elf_create_linker_section): Don't try to reuse existing section.
2540 (elf_create_pointer_linker_section): Delete info parm. Don't make
2541 h dynamic. Don't set written_address_p.
2542 (ppc_elf_check_relocs): Adjust ppc_elf_create_linker_section calls.
2543 (bfd_put_ptr): Delete.
2544 (elf_finish_pointer_linker_section): Remove output_bfd and info parms.
2545 Always write section contents. Assert global sym is def_regular.
2546 Use offset bottom bit as a written flag.
2547 (ppc_elf_relocate_section): Adjust elf_finish_pointer_linker_section
2548 calls.
2549
f85f57ad
AM
25502005-03-22 Alan Modra <amodra@bigpond.net.au>
2551
2552 * elf32-ppc.c (ppc_elf_set_sdata_syms): New function, extracted from..
2553 (ppc_elf_set_sdata_syms): ..here. Expand comment. Set .sbss start
2554 and end syms.
2555
2dc773a0
NC
25562005-03-21 Nick Clifton <nickc@redhat.com>
2557
2558 * coff-arm.c (coff_link_hash_entry): Only define for non WINCE
2559 targets.
2560 (t2a1_bx_pc_insn): Likewise.
2561 (t2a2_noop_insn): Likewise.
2562 (t2a3_b_insn): Likewise.
2563 (t2a1_push_insn): Likewise.
2564 (t2a2_ldr_insn): Likewise.
2565 (t2a3_mov_insn): Likewise.
2566 (t2a4_bx_insn): Likewise.
2567 (t2a5_pop_insn): Likewise.
2568 (t2a6_bx_insn): Likewise.
2569 (coff_arm_relocate_section): Only declare the high_address
2570 variable for non WINCE targets.
2571
644285ef
AM
25722005-03-22 Alan Modra <amodra@bigpond.net.au>
2573
2574 * elf32-ppc.c (ppc_elf_add_symbol_hook): Make htab->sbss
2575 SEC_LINKER_CREATED. Attach to dynobj.
2576 (ppc_elf_size_dynamic_sections): Strip htab->sbss if zero size.
2577
c9a2f333
AM
25782005-03-21 Alan Modra <amodra@bigpond.net.au>
2579
2580 * elf32-ppc.c (struct elf_linker_section): Remove sym_hash and
2581 sym_offset. Add name, bss_name, sym_name, sym_val.
2582 (struct ppc_elf_link_hash_table): Remove sdata and sdata2 pointers.
2583 Add sdata array of elf_linker_section_t.
2584 (ppc_elf_link_hash_table_create): Set name, sym_name, and bss_name.
2585 (enum elf_linker_section_enum): Delete.
2586 (ppc_elf_create_linker_section): Rewrite. Don't create syms here.
2587 (ppc_elf_check_relocs): Delay ppc_elf_create_linker_section until
2588 the special sections are needed. Adjust htab->sdata refs.
2589 Ensure dynobj is set in sreloc code.
2590 (ppc_elf_size_dynamic_sections): Strip sdata sections.
2591 (ppc_elf_set_sdata_syms): New function.
2592 (elf_finish_pointer_linker_section): Use 0x8000 for sym_offset.
2593 (ppc_elf_relocate_section): Adjust references to htab->sdata. Use
2594 sym_val instead of sym_hash.
2595 * elf32-ppc.h (ppc_elf_set_sdata_syms): Declare.
2596
8853c3d3
AM
25972005-03-21 Alan Modra <amodra@bigpond.net.au>
2598
2599 * elf32-ppc.c (is_ppc_elf_target): Move to linker part of file.
2600 (ppc_elf_merge_private_bfd_data): Likewise.
2601
2bb04cf2
AM
26022005-03-21 Alan Modra <amodra@bigpond.net.au>
2603
2604 * elf32-ppc.c (struct elf_linker_section): Remove rel_section.
2605 (ppc_elf_create_linker_section): Don't create rel_section.
2606 (elf_create_pointer_linker_section): Don't size relocs.
2607 (elf_finish_pointer_linker_section): Remove relative_reloc parm.
2608 Don't generate relocs.
2609 (ppc_elf_relocate_section): Adjust calls to
2610 elf_finish_pointer_linker_section.
2611
d2663f46
AM
26122005-03-21 Alan Modra <amodra@bigpond.net.au>
2613
2614 * elf32-ppc.c (is_ppc_elf_target): New function.
2615 (ppc_elf_merge_private_bfd_data): Use it rather than just testing
2616 for bfd_target_elf_flavour. Do this test before endian check.
2617 (ppc_elf_add_symbol_hook): Use is_pcc_elf_target.
2618 (ppc_elf_size_dynamic_sections): Likewise.
2619
6dc132d9
L
26202005-03-20 H.J. Lu <hongjiu.lu@intel.com>
2621
2622 * elf-bfd.h (elf_backend_data): Add int to
2623 elf_backend_section_from_shdr.
2624 (bfd_elf_section_data): Update comment for this_idx.
2625 (_bfd_elf_make_section_from_shdr): Add int.
2626 * elfxx-mips.h (_bfd_mips_elf_section_from_shdr): Likewise.
2627
2628 * elf.c (_bfd_elf_make_section_from_shdr): Take section index
2629 and use it to set this_idx in bfd_elf_section_data.
2630 (bfd_section_from_shdr): Pass shindex to
2631 _bfd_elf_make_section_from_shdr.
2632 (_bfd_elf_section_from_bfd_section): Use this_idx in
2633 bfd_elf_section_data to find section index.
2634
2635 * elf32-arm.c (elf32_arm_section_from_shdr): Take section
2636 index and pass it to _bfd_elf_make_section_from_shdr.
2637 * elf32-i370.c(i370_elf_section_from_shdr): Likewise.
2638 * elf32-ppc.c (ppc_elf_section_from_shdr): Likewise.
2639 * elf32-sh64.c (sh64_backend_section_from_shdr): Likewise.
2640 * elf32-v850.c (v850_elf_section_from_shdr): Likewise.
2641 * elf64-alpha.c (elf64_alpha_section_from_shdr): Likewise.
2642 * elf64-hppa.c (elf64_hppa_section_from_shdr): Likewise.
2643 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): Likewise.
2644 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Likewise.
2645 * elfxx-mips.c (_bfd_mips_elf_section_from_shdr): Likewise.
2646
cabd4ccc
DS
26472005-03-19 Danny Smith <dannysmith@users.sourceforge.net>
2648 Ross Ridge <rridge@csclub.uwaterloo.ca>
2649
2650 * peicode.h (pe_ILF_build_a_bfd): Strip only one prefix
2651 character in IMPORT_NAME_UNDECORATE and IMPORT_NAME_NOPREFIX
2652 cases. Add comment.
2653
7451fd89
L
26542005-03-18 H.J. Lu <hongjiu.lu@intel.com>
2655
2656 * elflink.c (elf_mark_used_section): Remove check for special
2657 sections.
2658
b4677f03
AS
26592005-03-18 Andreas Schwab <schwab@suse.de>
2660
2661 * elfxx-ia64.c (elfNN_ia64_install_value): Change type of insn
2662 from bfd_vma to ia64_insn, remove broken cast.
2663
238d258f
NC
26642005-03-18 C Jaiprakash <cjaiprakash@noida.hcltech.com>
2665
8853c3d3 2666 * elf32-m68k.c (elf_cfv4e_plt0_entry): plt entry for coldfire v4e.
238d258f
NC
2667 (elf_m68k_adjust_dynamic_symbol,elf_m68k_finish_dynamic_symbol,
2668 elf_m68k_finish_dynamic_sections): Use it.
2669
b294bdf8
MM
26702005-03-17 Paul Brook <paul@codesourcery.com>
2671 Dan Jacobowitz <dan@codesourcery.com>
2672 Mark Mitchell <mark@codesourcery.com>
2673
2674 * elf32-arm.c (elf32_arm_modify_segment_map): New function.
2675 (elf32_arm_additional_program_headers): Likewise.
2676 (elf_backend_modify_segment_map): Define.
2677 (elf_backend_additional_program_headers): Likewise.
2678 (elf32_arm_symbian_modify_segment_map): Use
2679 elf32_arm_modify_segment_map.
2680
257a4820
L
26812005-03-18 H.J. Lu <hongjiu.lu@intel.com>
2682
2683 * elflink.c (elf_mark_used_section): Check bfd_is_const_section
2684 for special sections.
2685
554220db
AM
26862005-03-18 Alan Modra <amodra@bigpond.net.au>
2687
2688 * elf-bfd.h (_bfd_elf_link_renumber_dynsyms): Delete.
2689 * elflink.c (_bfd_elf_link_renumber_dynsyms): Make static, add
2690 section_sym_count param, and return number of section symbols.
2691 (bfd_elf_size_dynamic_sections): Clear section symbol area of
2692 .dynsym contents. Don't bother calling swap_symbol_out on the
2693 first all-zero dynsym.
2694 (elf_mark_used_section): Formatting. Avoid twiddling flags in
2695 special sections like bfd_abs_section.
2696 (bfd_elf_gc_sections): Spelling fix.
2697
36868d45
NC
26982005-03-16 Fred Fish <fnf@specifixinc.com>
2699
2700 PR binutils/790
2701 * dwarf2.c (read_indirect_string): Fix apparent typo, check
2702 dwarf_str_buffer allocation, not dwarf_abbrev_buffer.
2703
57316bff
L
27042005-03-16 H.J. Lu <hongjiu.lu@intel.com>
2705
2706 * elflink.c (elf_mark_used_section): New.
2707 (bfd_elf_gc_sections): Call elf_gc_mark_section for
2708 non-relocatable link if we don't do GC.
2709
1ad12f97
NC
27102005-03-16 Nick Clifton <nickc@redhat.com>
2711 Ben Elliston <bje@au.ibm.com>
2712
569acd2c 2713 * configure.in (werror): New switch: Add -Werror to the
1ad12f97 2714 compiler command line. Enabled by default. Disable via
569acd2c 2715 --disable-werror.
1ad12f97
NC
2716 * configure: Regenerate.
2717
3b5d3310
NC
27182005-03-16 Nick Clifton <nickc@redhat.com>
2719
2720 * ecoff.c: Convert to ISO C90 formatting.
2721
25dbc73a
AM
27222005-03-16 Alan Modra <amodra@bigpond.net.au>
2723
2724 * elf32-ppc.c: Divide file into general and linker specific
2725 functions. Sort linker functions into roughly the order in which
2726 they are called by the ELF linker code.
2727
cb2d1ef2
AM
27282005-03-16 Alan Modra <amodra@bigpond.net.au>
2729
2730 * elf32-ppc.c (ppc_elf_create_linker_section): Set SEC_LINKER_CREATED
2731 on section. Correct comment, and add FIXME.
2732 (ppc_elf_additional_program_headers): Don't bump header count for
2733 interp. Test SEC_ALLOC, not SEC_LOAD, and don't test size.
2734 (ppc_elf_size_dynamic_sections): Don't strip sdata and sdata2, but
2735 do allocate memory if they need it.
2736
34723071
NC
27372005-03-15 Mikkel Krautz <krautz@gmail.com>
2738
2739 * config.bfd (x86_64-elf): Add target.
2740
729ae8d2
AM
27412005-03-15 Alan Modra <amodra@bigpond.net.au>
2742
2743 * po/es.po: Commit new Spanish translation.
2744
f0581930
L
27452005-03-14 H.J. Lu <hongjiu.lu@intel.com>
2746
2747 * elfxx-ia64.c (elfNN_ia64_relocate_section): Set symbo name
2748 for global symbol when reporting overflow.
2749
390c0e42
JJ
27502005-03-11 Jakub Jelinek <jakub@redhat.com>
2751
2752 * libbfd-in.h (_bfd_ar_spacepad): New prototype.
2753 * libbfd.h: Rebuilt.
2754 * archive.c (_bfd_ar_spacepad): New function.
2755 (_bfd_construct_extended_name_table, _bfd_write_archive_contents,
2756 bsd_write_armap, _bfd_archive_bsd_update_armap_timestamp,
2757 coff_write_armap): Use it.
2758 (bfd_ar_hdr_from_filesystem): Likewise. Fix HP-UX large
2759 uid/gid support.
2760 * archive64.c (bfd_elf64_archive_write_armap): Use _bfd_ar_spacepad.
2761
a2633f4e
MK
27622005-03-10 Mark Kettenis <kettenis@gnu.org>
2763
2764 * archive.c (_bfd_look_for_bfd_in_cache): Move declaration of
2765 has_table to the start of the function.
2766
109f7096
BE
27672005-03-10 Ben Elliston <bje@au.ibm.com>
2768
2769 * archive.c: Include hashtab.h.
2770 (struct ar_cache): Rename `arelt' to `arbfd' and remove `next'.
2771 (_bfd_look_for_bfd_in_cache): Reimplement using htab_find.
2772 (hash_file_ptr): New function.
2773 (eq_file_ptr): Likewise.
2774 (_bfd_add_bfd_to_archive_cache): Reimplement using a hash table.
2775 * libbfd-in.h: Include hashtab.h.
2776 (struct artdata): Change `cache' member type to htab_t.
2777 * libbfd.h: Rebuild.
2778
664fe1be
DJ
27792005-03-08 Daniel Jacobowitz <dan@codesourcery.com>
2780
2781 * configure.in: Bump version to 2.16.90.
2782 * configure: Regenerated.
2783
0709bb22
JJ
27842005-03-07 Jakub Jelinek <jakub@redhat.com>
2785
2786 * opncls.c (opncls_bread, opncls_bclose): Fix if pread resp.
2787 close is a function like macro in system headers.
2788
b18e2ae5
AM
27892005-03-07 Alan Modra <amodra@bigpond.net.au>
2790
2791 PR ld/778
2792 * elf32-hppa.c (elf32_hppa_create_dynamic_sections): Reinstate
2793 _GLOBAL_OFFSET_TABLE_ as a normal dynamic symbol.
2794
1f170678
AM
27952005-03-06 Alan Modra <amodra@bigpond.net.au>
2796
2797 * elf.c (elfcore_grok_win32pstatus): Warning fixes.
2798
06647dfd
AM
27992005-03-05 Alan Modra <amodra@bigpond.net.au>
2800
2801 * po/bfd.pot: Regenerate.
2802
93f3fa99
AM
28032005-03-05 Alan Modra <amodra@bigpond.net.au>
2804
2805 * elf64-ppc.c (update_plt_info): Don't mark new ABI call syms
2806 with is_func.
2807 (func_desc_adjust): Force dot-syms local in executables as well
2808 as shared libs.
2809
bbe506e8
TS
28102005-03-04 David Daney <ddaney@avtrex.com>
2811
2812 * elfxx-mips.c (mips_elf_calculate_relocation): Handle special
2813 '__gnu_local_gp' symbol used by gas -mno-shared.
2814
d27f5fa1
L
28152005-03-03 H.J. Lu <hongjiu.lu@intel.com>
2816
2817 * elf-bfd.h (elf_backend_data): Add "const char *" to
2818 elf_backend_section_from_phdr.
2819
2820 * elf.c (bfd_section_from_phdr): Pass "proc" to the
2821 elf_backend_section_from_phdr hook.
2822
0f20cc35
DJ
28232005-03-02 Daniel Jacobowitz <dan@codesourcery.com>
2824 Joseph Myers <joseph@codesourcery.com>
2825
2826 * elfxx-mips.c (struct mips_got_entry): Add tls_type.
2827 (struct mips_got_info): Add tls_gotno, tls_assigned_gotno,
2828 and tls_ldm_offset.
2829 (struct mips_elf_got_per_bfd_arg): Add global_count.
2830 (struct mips_elf_count_tls_arg): New.
2831 (struct mips_elf_hash_sort_data): Update comment for min_got_dynindx.
2832 (struct mips_elf_link_hash_entry): Add tls_type and tls_got_offset.
2833 (GOT_NORMAL, GOT_TLS_GD, GOT_TLS_LDM, GOT_TLS_IE)
2834 (GOT_TLS_OFFSET_DONE, GOT_TLS_DONE): Define.
2835 (TLS_RELOC_P): Define.
2836 (TP_OFFSET, DTP_OFFSET): Define.
2837 (dtprel_base, tprel_base): New functions.
2838 (mips_elf_link_hash_newfunc): Initialize tls_type.
2839 (mips_elf_got_entry_hash, mips_elf_got_entry_eq)
2840 (mips_elf_multi_got_entry_hash, mips_elf_multi_got_entry_eq): Handle
2841 TLS entries.
2842 (mips_tls_got_relocs, mips_elf_count_local_tls_relocs)
2843 (mips_elf_count_global_tls_entries, mips_elf_count_global_tls_relocs)
2844 (mips_elf_output_dynamic_relocation, mips_elf_initialize_tls_slots)
2845 (mips_tls_got_index): New functions.
2846 (mips_elf_local_got_index): Add new R_SYMNDX, H, and R_TYPE
2847 arguments. Pass them to mips_elf_create_local_got_entry. Use
2848 mips_tls_got_index.
2849 (mips_elf_global_got_index): Add new R_TYPE and INFO arguments.
2850 Handle TLS entries.
2851 (mips_elf_got_page, mips_elf_got16_entry): Update calls to
2852 mips_elf_create_local_got_entry.
2853 (mips_elf_create_local_got_entry): Add new R_SYMNDX, H, and R_TYPE
2854 arguments. Handle TLS entries.
2855 (mips_elf_sort_hash_table_f): Add non-TLS assertions.
2856 (mips_elf_record_local_got_symbol): Add new TLS_FLAG argument. Handle
2857 TLS entries.
2858 (mips_elf_record_global_got_symbol): Likewise.
2859 (mips_elf_make_got_per_bfd): Initialize new mips_got_info members.
2860 Count TLS entries.
2861 (mips_elf_merge_gots): Handle TLS entries when merging.
2862 (mips_elf_initialize_tls_index): New function.
2863 (mips_elf_set_global_got_offset): Handle TLS entries.
2864 (mips_elf_adjust_gp): Handle TLS.
2865 (mips_elf_multi_got): Remove redundant call to
2866 mips_elf_resolve_final_got_entries. Initialize global_count.
2867 Correct a comment. Initialize new TLS members of mips_got_info.
2868 Assign TLS GOT indexes for new GOTs.
2869 (mips_elf_create_got_section): Initialize new TLS members of
2870 mips_got_info.
2871 (mips_elf_calculate_relocation): Handle TLS relocs.
2872 (_bfd_mips_elf_check_relocs): Likewise. Update calls to changed
2873 functions.
2874 (_bfd_mips_elf_always_size_sections): Handle TLS.
2875 (_bfd_mips_elf_size_dynamic_sections): Likewise.
2876 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Update calls to
2877 changed functions.
2878 (_bfd_mips_elf_copy_indirect_symbol): Copy tls_type.
2879 (_bfd_mips_elf_hide_symbol): Handle TLS.
2880 * elfn32-mips.c (elf_mips_howto_table_rel, elf_mips_howto_table_rela)
2881 (mips_reloc_map): Add TLS relocs.
2882 * elf32-mips.c (elf_mips_howto_table_rel, mips_reloc_map): Likewise.
2883 * elf64-mips.c (mips_elf64_howto_table_rel)
2884 (mips_elf64_howto_table_rela, mips_reloc_map): Likewise.
2885 * reloc.c: Define new MIPS TLS relocations.
2886 * libbfd.h, bfd-in2.h: Regenerated.
2887
bb14f524
JB
28882005-03-02 Jan Beulich <jbeulich@novell.com>
2889
2890 * Makefile.am: Add dependency of cache.o on libiberty.h.
2891 * cache.c: Include libiberty.h.
2892 (bfd_open_file): Use unlink_if_ordinary instead of unlink.
2893
8c1acd09
ZW
28942005-03-01 Zack Weinberg <zack@codesourcery.com>
2895
2896 * elf.c (bfd_section_from_shdr <default case>): Call
2897 elf_backend_section_from_shdr hook unconditionally, and return
2898 what it returns.
2899 (bfd_section_from_phdr): Similarly, for elf_backend_section_from_phdr.
2900 * elfxx-target.h (elf_backend_section_from_shdr)
2901 (elf_backend_section_from_phdr): Default to
2902 _bfd_elf_make_section_from_shdr and _bfd_elf_make_section_from_phdr
2903 respectively.
2904
70bfecec
AM
29052005-03-01 Alan Modra <amodra@bigpond.net.au>
2906
a67a7b8b
AM
2907 * targets.h: Typo fix.
2908 * bfd-in2.h: Regenerate.
2909
70bfecec
AM
2910 * bout.c (b_out_write_object_contents): Don't use sizeof on host
2911 structs to size on-disk structures.
2912 (b_out_set_section_contents): Size the external struct, not the
2913 internal one for on-disk size.
2914 (b_out_sizeof_headers): Likewise.
2915
ceb1f1ef
AM
29162005-03-01 Alan Modra <amodra@bigpond.net.au>
2917
2918 * elf64-ppc.c (ppc64_elf_size_stubs): Override defined dot-sym
2919 entry points with the func descriptor as well as undefweak.
2920
f67e617a
NC
29212005-02-28 Ross Ridge <rridge@csclub.uwaterloo.ca>
2922
2923 * peicode.h (pe_ILF_build_a_bfd): Do not assume that an @ will be
2924 present when IMPORT_NAME_UNDOECRATE is used.
2925
af44c138
L
29262005-02-28 H.J. Lu <hongjiu.lu@intel.com>
2927
2928 PR 757
2929 * elf-bfd.h (_bfd_elf_merge_symbol): Add a pointer to unsigned
2930 int.
2931
2932 * elf32-sh-symbian.c (sh_symbian_relocate_section): Pass NULL
2933 to _bfd_elf_merge_symbol.
2934
2935 * elflink.c (_bfd_elf_merge_symbol): Use the pointer to
2936 unsigned int to return the alignment of the old common symbol
2937 in the dynamic object.
2938 (_bfd_elf_add_default_symbol): Pass NULL to
2939 _bfd_elf_merge_symbol.
2940 (elf_link_add_object_symbols): Pass &old_alignment to
2941 _bfd_elf_merge_symbol. Get the alignment of the new common
2942 symbol in the dynamic object.
2943
10adf131
BE
29442005-02-24 Ben Elliston <bje@au.ibm.com>
2945
2946 * coffcode.h (coff_sym_filepos): Remove GNU960 conditional code.
2947 * format.c (bfd_check_format_matches): Likewise.
2948 * archive.c (BFD_GNU960_ARMAG): Likewise.
2949 (bfd_generic_archive_p): Likewise.
2950 (_bfd_write_archive_contents): Likewise.
2951
60b779bf
L
29522005-02-24 H.J. Lu <hongjiu.lu@intel.com>
2953
2954 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.95.
2955 * configure: Regenerate.
2956
1f02cbd9
JB
29572005-02-24 Julian Brown <julian@sirius.codesourcery.com>
2958
2959 * elflink.c (elf_link_add_object_symbols): Force symbols in discarded
2960 COMDAT group sections to have default visibility.
2961
f60ca5e3
AM
29622005-02-24 Alan Modra <amodra@bigpond.net.au>
2963
2964 * coffcode.h (coff_print_aux): Warning fix.
2965 * elf-m10300.c (mn10300_elf_relax_section): Use section->id
2966 instead of section pointer to identify.
2967 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise. Allocate
2968 the correct size buffer for local sym mangling too.
2969 (h8300_bfd_link_add_symbols): Likewise.
2970 * elf32-sh-symbian.c (sh_symbian_process_embedded_commands): Fix
2971 warning.
2972 * elf32-sh64.c (shmedia_prepare_reloc): Use %B and %p in error message
2973 * elf32-xtensa.c (literal_value_hash): Warning fix.
2974 * versados.c (process_otr): Warning fix.
2975 (versados_canonicalize_reloc): Likewise.
2976 * vms-gsd.c (_bfd_vms_slurp_gsd): Warning fix.
2977 * vms.c (fill_section_ptr): Warning fix.
2978
9a5d8e72
L
29792005-02-23 H.J. Lu <hongjiu.lu@intel.com>
2980
2981 * coff-tic54x.c (SWAP_OUT_RELOC_EXTRA): Defined.
2982 * coff-tic80.c (SWAP_OUT_RELOC_EXTRA): Likewise.
2983
4b6c0f2f
NC
29842005-02-23 Nick Clifton <nickc@redhat.com>
2985
abc0f8d0
NC
2986 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Initialise
2987 the relvaddr field of the Elf32_crinfo structure.
2988
9b69b847
NC
2989 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Initialise
2990 variables that are passed by reference to
2991 m68hc11_get_relocation_value in case that function does not
2992 initialise them.
2993
90e868ac
NC
2994 * elf32-cr16c.c (cr16c_elf_final_link_relocate): Remove duplicated
2995 return statements and replace with a single return at the end of
2996 the function. This helps pacify the flow analysis code in gcc 4.0.
2997
4b6c0f2f
NC
2998 * elf.c (_bfd_elf_compute_section_file_positions): Initialise
2999 strtab to avoid compile time warning.
3000
c3e8c140
BE
30012005-02-23 Ben Elliston <bje@au.ibm.com>
3002
3003 * opncls.c (bfd_zalloc): Document this function.
3004
ebe372c1
L
30052005-02-21 H.J. Lu <hongjiu.lu@intel.com>
3006
3007 * coffcode.h (sec_to_styp_flags): Replaced SEC_CLINK with
3008 SEC_TIC54X_CLINK. Replace SEC_BLOCK with SEC_TIC54X_BLOCK.
3009 Replace SEC_SHARED with SEC_COFF_SHARED.
3010 (styp_to_sec_flags): Likewise.
3011
3012 * elfxx-target.h (TARGET_BIG_SYM): Remove SEC_ARCH_BIT_0.
3013 (TARGET_LITTLE_SYM): Likewise.
3014
3015 * section.c (SEC_ARCH_BIT_0): Removed.
3016 (SEC_LINK_DUPLICATES_SAME_CONTENTS): Defined with
3017 SEC_LINK_DUPLICATES_ONE_ONLY and SEC_LINK_DUPLICATES_SAME_SIZE.
3018 (SEC_SHARED): Renamed to ...
3019 (SEC_COFF_SHARED): This.
3020 (SEC_BLOCK): Renamed to ...
3021 (SEC_TIC54X_BLOCK): This.
3022 (SEC_CLINK): Renamed to ...
3023 (SEC_TIC54X_CLINK): This.
3024 (SEC_XXX): Rearranged. Move SEC_COFF_SHARED_LIBRARY,
3025 SEC_COFF_SHARED, SEC_TIC54X_BLOCK and SEC_TIC54X_CLINK to the
3026 end.
3027 * bfd-in2.h: Regenerated.
3028
26bf4e33
FF
30292005-02-21 Fred Fish <fnf@specifixinc.com>
3030
3031 * dwarf2.c (find_abstract_instance_name): Call recursively
3032 to handle a DW_AT_specification.
3033
e6daada3
TS
30342005-02-21 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
3035
3036 * elfxx-mips.c (ecoff_swap_rpdr_out, mips_elf_output_extsym,
3037 mips_elf_create_dynamic_relocation,
3038 _bfd_mips_elf_size_dynamic_sections, _bfd_mips_elf_final_link):
3039 Remove #if 0'd code.
3040
d25604af
AM
30412005-02-21 Alan Modra <amodra@bigpond.net.au>
3042
3043 * Makefile.am: Run "make dep-am"
3044 * Makefile.in: Regenerate.
3045
fedf8d51
AM
30462005-02-21 Alan Modra <amodra@bigpond.net.au>
3047
3048 * coffgen.c (bfd_coff_get_comdat_section): Check that
3049 coff_section_data isn't NULL.
3050
f075ee0c
AM
30512005-02-21 Alan Modra <amodra@bigpond.net.au>
3052
3053 * bfd-in.h (bfd_elf_bfd_from_remote_memory): Warning fix.
3054 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Likewise.
3055 * coff-rs6000.c (xcoff_write_armap_big): Warning fixes. Remove
3056 useless assignments.
3057 (xcoff_write_archive_contents_big): Likewise.
3058 (_bfd_xcoff_put_ldsymbol_name): Likewise.
3059 * coff64-rs6000.c (_bfd_xcoff64_put_ldsymbol_name): Likewise.
3060 * coffgen.c (coff_write_symbols): Make "written" a bfd_vma.
3061 * cofflink.c (process_embedded_commands): Warning fixes.
3062 * cpu-arm.c: Delete unnecessary prototypes. Convert to C90.
3063 Warning fixes.
3064 * dwarf2.c: Warning fixes.
3065 * elf-bfd.h: Likewise.
3066 * elf-eh-frame.c: Likewise.
3067 * elf-strtab.c: Likewise.
3068 * elf.c: Likewise.
3069 * elf32-m68k.c: Likewise.
3070 * elf32-ppc.c: Likewise.
3071 * elf32-sh-symbian.c: Likewise.
3072 * elf32-sh.c: Delete unnecessary prototypes. Warning fixes.
3073 * elf64-sh64.c: Likewise.
3074 * peicode.h: Likewise.
3075 * elf64-mmix.c: Warning fixes.
3076 * elfcode.h: Likewise.
3077 * elfxx-mips.c: Likewise.
3078 * libbfd-in.h: Likewise.
3079 * libbfd.c: Likewise.
3080 * mach-o.c: Likewise.
3081 * merge.c: Likewise.
3082 * mmo.c: Likewise.
3083 * opncls.c: Likewise.
3084 * pef.c: Likewise.
3085 * srec.c: Likewise.
3086 * vms-hdr.c: Likewise.
3087 * vms-tir.c: Likewise.
3088 * xtensa-isa.c: Likewise.
3089 * xtensa-modules.c: Likewise.
3090 * xsym.c: Likewise.
3091 (pstrcmp): Use correct choice of string lengths. Fix return value.
3092 (bfd_sym_module_name): Correct string length.
3093 * bfd-in2.h: Regenerate.
3094 * libbfd.h: Regenerate.
3095
68320ddb
AO
30962005-02-17 Alexandre Oliva <aoliva@redhat.com>
3097
3098 * elf32-frv.c (elf32_frv_relocate_section): Remove warning from
fedf8d51 3099 uninitialized check_segment[1] in TLSMOFF case.
68320ddb
AO
3100 Reported by Alan Modra.
3101 (elf32_frv_relocate_section): Improve errors and warnings.
3102
1808e341
AM
31032005-02-17 Alan Modra <amodra@bigpond.net.au>
3104
3105 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Fix warning.
3106
5ff625e9
AM
31072005-02-16 Alan Modra <amodra@bigpond.net.au>
3108
3109 * coff-arm.c (coff_arm_is_local_label_name): Warning fix.
3110 * elf32-frv.c (frvfdpic_relocs_info_hash): Likewise.
3111 * pef.c (bfd_pef_scan): Don't ignore return value of
3112 bfd_pef_scan_start_address.
7e3102a7
AM
3113 * mach-o.c (bfd_mach_o_scan): Don't ignore return value of
3114 bfd_mach_o_scan_start_address.
3115 * elfxx-ia64.c (elfNN_ia64_relax_brl): Rewrite for 32-bit bfd_vma.
3116 * elfxx-mips.c: Remove unnecessary prototypes.
3117 (sort_dynamic_relocs_64): Abort if not BFD64.
5ff625e9 3118
92b7a70f
AM
31192005-02-16 Alan Modra <amodra@bigpond.net.au>
3120
3121 * elf64-ppc.c (ppc64_elf_edit_toc): Skip toc if size is zero.
3122 Skip toc reloc adjust if reloc_count is zero.
3123
d6f16593 31242005-02-15 Nigel Stephens <nigel@mips.com>
fedf8d51 3125 Maciej W. Rozycki <macro@mips.com>
d6f16593
MR
3126
3127 * elf32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
3128 reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
3129 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3130 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
3131 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3132 dst_mask.
3133 (mips16_gprel_reloc): Remove bit shuffling; call
3134 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3135 and _bfd_mips16_elf_reloc_shuffle() instead.
3136 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3137 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3138 relocs.
3139 (mips_elf32_rtype_to_howto): Fetch MIPS16 howtos from
3140 elf_mips16_howto_table_rel.
3141 * elf64-mips.c (mips16_elf64_howto_table_rel): New array for
3142 MIPS16 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16
3143 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3144 (elf_mips16_jump_howto): Move into mips16_elf64_howto_table_rel.
3145 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3146 dst_mask.
3147 (mips16_elf64_howto_table_rela): New array for MIPS16 RELA
3148 reloc howtos. Add R_MIPS16_26, R_MIPS16_GPREL, R_MIPS16_HI16 and
3149 R_MIPS16_LO16 relocs and R_MIPS16_GOT16 and R_MIPS16_CALL16
3150 placeholders.
3151 (mips16_gprel_reloc): Remove bit shuffling; call
3152 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3153 and _bfd_mips16_elf_reloc_shuffle() instead.
3154 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3155 (bfd_elf64_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3156 relocs.
3157 (mips_elf64_rtype_to_howto): Fetch MIPS16 howtos from
3158 mips16_elf64_howto_table_rela or mips16_elf64_howto_table_rel.
3159 * elfn32-mips.c (elf_mips16_howto_table_rel): New array for MIPS16
3160 REL reloc howtos. Add R_MIPS16_HI16 and R_MIPS16_LO16 relocs and
3161 R_MIPS16_GOT16 and R_MIPS16_CALL16 placeholders.
3162 (elf_mips16_jump_howto): Move into elf_mips16_howto_table_rel.
3163 (elf_mips16_gprel_howto): Likewise. Redefine src_mask and
3164 dst_mask.
3165 (mips16_gprel_reloc): Remove bit shuffling; call
3166 _bfd_mips16_elf_reloc_unshuffle(), _bfd_mips_elf_gprel16_with_gp()
3167 and _bfd_mips16_elf_reloc_shuffle() instead.
3168 (mips16_reloc_map): New reloc map for MIPS16 relocs.
3169 (bfd_elf32_bfd_reloc_type_lookup): Use mips16_reloc_map for MIPS16
3170 relocs.
3171 (mips_elf_n32_rtype_to_howto): Fetch MIPS16 howtos from
3172 elf_mips16_howto_table_rela or elf_mips16_howto_table_rel.
3173 * elfxx-mips.c (_bfd_mips16_elf_reloc_unshuffle): New function to
3174 handle bit shuffling for MIPS16 relocs.
3175 (_bfd_mips16_elf_reloc_shuffle): Likewise.
3176 (_bfd_mips_elf_lo16_reloc): Use _bfd_mips16_elf_reloc_unshuffle()
3177 and _bfd_mips16_elf_reloc_shuffle().
3178 (_bfd_mips_elf_generic_reloc): Likewise.
3179 (mips_elf_calculate_relocation): Likewise. Handle R_MIPS16_HI16
3180 and R_MIPS16_LO16.
3181 (mips_elf_obtain_contents): Remove bit shuffling.
3182 (mips_elf_perform_relocation): Likewise; call
3183 _bfd_mips16_elf_reloc_unshuffle() and _bfd_mips16_elf_reloc_shuffle()
3184 instead.
3185 (_bfd_mips_elf_relocate_section): Likewise. Handle R_MIPS16_HI16
3186 and R_MIPS16_LO16.
3187 * elfxx-mips.h (_bfd_mips16_elf_reloc_unshuffle): Declare.
3188 (_bfd_mips16_elf_reloc_shuffle): Likewise.
3189 * reloc.c (BFD_RELOC_MIPS16_HI16): New reloc.
3190 (BFD_RELOC_MIPS16_HI16_S): Likewise.
3191 (BFD_RELOC_MIPS16_LO16): Likewise.
3192 * bfd-in2.h: Regenerate.
3193 * libbfd.h: Regenerate.
3194
0ca3e455
JB
31952005-02-15 Jan Beulich <jbeulich@novell.com>
3196
3197 * elfxx-ia64.c (ia64_howto_table): Correct strings for
3198 R_IA64_DTPMOD64[LM]SB.
3199
c5509b92
L
32002005-02-14 H.J. Lu <hongjiu.lu@intel.com>
3201
3202 * elfxx-ia64.c (elfNN_ia64_relax_section): Allow relax
3203 backward branch in the same section.
3204 (elfNN_ia64_relocate_section): Inform users that the input
3205 section is too big to relax br instruction when overflow
3206 happens to R_IA64_PCREL21B, R_IA64_PCREL21BI, R_IA64_PCREL21M
3207 and R_IA64_PCREL21F.
3208
5cba516c
NC
32092005-02-14 Orjan Friberg <orjanf@axis.com>
3210
3211 * elfcore.h (elf_core_file_p): Move the call to
3212 elf_backend_object_p to allow the correct machine to be set before
3213 processing the program headers.
3214
b59a68e1
NC
32152005-02-14 Nick Clifton <nickc@redhat.com>
3216
3217 PR binutils/716
3218 * peicode.h (pe_bfd_copy_private_bfd_data): Copy the large address
3219 aware flag from the input bfd to the output bfd.
3220
254f0426
MR
32212005-02-11 Maciej W. Rozycki <macro@mips.com>
3222
3223 * elf32-mips.c (_bfd_mips_elf32_gprel16_reloc): Reject
3224 R_MIPS_LITERAL relocations for external symbols.
3225 * elf64-mips.c (mips_elf64_literal_reloc): Likewise.
3226 * elfn32-mips.c (mips_elf_literal_reloc): Likewise.
3227
e91cdea7
L
32282005-02-11 H.J. Lu <hongjiu.lu@intel.com>
3229
3230 * bfd-in2.h: Rebuilt.
3231
67687978
PB
32322005-02-11 Paul Brook <paul@codesourcery.com>
3233
3234 * elf-bfd.h (struct elf_link_hash_table): Add
3235 is_relocatable_executable.
3236 * elf.c (_bfd_elf_link_hash_table_init): Initialize it.
3237 * elflink.c (bfd_elf_link_record_dynamic_symbol): Create local dynamic
3238 symbols in relocatable executables.
3239 (bfd_elf_record_link_assignment): Create dynamic section symbols in
3240 relocatable executables.
3241 (_bfd_elf_link_renumber_dynsyms): Ditto.
3242 (bfd_elf_final_link): Ditto.
3243 * elf32-arm.c (elf32_arm_final_link_relocate): Copy absolute
3244 relocations into relocatable executables.
3245 (elf32_arm_check_relocs): Crate dynamic sections for relocatable
3246 executables. Also copy absolute relocations.
3247 (elf32_arm_adjust_dynamic_symbol): Don't create copy relocations
3248 in relocatable executables.
3249 (allocate_dynrelocs): Copy relocations for relocatable executables.
3250 Output dynamic symbols for symbols defined in linker scripts.
3251
ca724bf2
NC
32522005-02-11 Nick Clifton <nickc@redhat.com>
3253
4b74b983
NC
3254 * libbfd.c (read_signed_leb128): Use an unsigned type for 'shift'
3255 to avoid a compile time warning.
3256
ca724bf2
NC
3257 * coff-alpha.c (alpha_adjust_reloc_in): Remove redundant test from
3258 BFD_ASSERT.
3259
3e25964f
NC
3260 * coff-tic4x.c (coff_rtype_to_howto): Move definition before
3261 inclusion of coffcode.h so that it is actually picked up.
3262
cb7a88a4
NC
3263 * coffcode.h (coff_std_swap_table): Add an unused attribute in
3264 case it is not used.
3265
596c83ec
NC
3266 * elf32-ip2k.c (ip2k_call_opcode, IS_CALL_OPCODE): Remove unused
3267 structure and macro.
3268
6c408f53
NC
3269 * elf32-iq2000.c (iq2000_reloc_map): Remove unused structure and
3270 array.
3271
d5b2f13b
NC
3272 * elf32-m32r.c (m32r_reloc_map_old): Use #ifdef USE_M32R_OLD_RELOC
3273 to protect the declaration of this array.
3274
169a6afd
NC
3275 * xsym.c (bfd_sym_parse_contained_variables_table_entry_v32):
3276 Avoid call to memcpy with a size of 0.
3277
2917689a
AM
32782005-02-12 Alan Modra <amodra@bigpond.net.au>
3279
3280 * elf64-ppc.c (toc_adjusting_stub_needed): Return true for
3281 old-style branches to undefined dot-symbols which will be
3282 satisfied by a plt call.
3283
40d16e0b
AM
32842005-02-11 Alan Modra <amodra@bigpond.net.au>
3285
3286 * elf64-ppc.c (move_plt_plist): New function, extracted from..
3287 (ppc64_elf_copy_indirect_symbol): ..here.
3288 (func_desc_adjust): Use move_plt_plist.
3289
e37c699c
PB
32902005-02-10 Paul Brook <paul@codesourcery.com>
3291
3292 * elf32-arm.c (elf32_arm_final_link_relocate): Handle R_ARM_THM_PC9.
3293
6fa3860b
PB
32942005-02-10 Paul Brook <paul@codesourcery.com>
3295
3296 * elflink.c (bfd_elf_record_link_assignment): Make hidden and internal
3297 symbols local.
3298 (elf_link_renumber_hash_table_dynsyms): Ignore local symbols.
3299 (elf_link_renumber_local_hash_table_dynsyms): New function.
3300 (_bfd_elf_link_renumber_dynsyms): Number local dynamic symbols.
3301
d457dcf6
JJ
33022005-02-10 Jakub Jelinek <jakub@redhat.com>
3303
3304 * bfd-in.h (BFD_LINKER_CREATED): Define.
3305 * bfd-in2.h: Rebuilt.
3306 * elflink.c (bfd_elf_size_dynamic_sections): Disregard
3307 BFD_LINKER_CREATED bfds when determining input bfds without
3308 .note.GNU-stack section.
3309
7f05722e
MR
33102005-02-10 Maciej W. Rozycki <macro@mips.com>
3311
3312 * elf64-mips.c (mips16_gprel_reloc): Update a comment.
3313 * elfn32-mips.c (mips16_gprel_reloc): Keep R_MIPS16_GPREL
3314 relocations against external symbols unchanged.
3315
ccf5f610
PB
33162005-02-08 Paul Brook <paul@codesourcery.com>
3317
3318 * elflink.c (elf_link_input_bfd): Ignore symbols from null input
3319 sections.
3320
370a0e1b
HPN
33212005-02-08 Hans-Peter Nilsson <hp@axis.com>
3322
3323 * elflink.c (elf_link_add_object_symbols): Don't add "warning: "
3324 prefix here.
3325
99277196
MR
33262005-02-07 Maciej W. Rozycki <macro@mips.com>
3327
3328 * elf64-mips.c: Fix formatting throughout.
3329
6422fbef
MR
33302005-02-07 Maciej W. Rozycki <macro@mips.com>
3331
3332 * elfn32-mips.c (elf_mips_howto_table_rela): Fix a comment typo.
3333
303e4c21
AO
33342005-02-07 Alexandre Oliva <aoliva@redhat.com>
3335
3336 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove special handling for
3337 *ABS*/*UND* sections.
3338 (elf32_frv_relocate_section): Move zero-addend-required error...
3339 (_frv_emit_got_relocs_plt_entries): ... here. Report error for
3340 missing needed TLS section.
3341
c3864421
HPN
33422005-02-07 Hans-Peter Nilsson <hp@axis.com>
3343
3344 * aoutx.h (NAME(aout,find_nearest_line)): Correct case for N_SO
3345 being the last symbol.
9f400ee9
HPN
3346 (aout_link_add_symbols): Just return TRUE if a warning
3347 symbol was last.
c3864421 3348
765f2ef6
MR
33492005-02-07 Maciej W. Rozycki <macro@mips.com>
3350
3351 * elf32-mips.c (mips_elf_gprel32_reloc): Reject
3352 R_MIPS_GPREL32 relocations against external symbols.
3353 * elf64-mips.c (mips_elf64_gprel32_reloc): Replace an incorrect
3354 comment.
3355
1b3a8575
AM
33562005-02-07 Alan Modra <amodra@bigpond.net.au>
3357
3358 * elf-bfd.h (elf_string_from_elf_strtab): Delete macro.
3359 * elf.c (bfd_elf_string_from_elf_section): Expand occurrence of
3360 elf_string_from_elf_strtab.
3361 (_bfd_elf_setup_group_pointers, bfd_section_from_shdr): Likewise.
3362 (bfd_section_from_shdr): For SHT_SYMTAB, load SHT_SYMTAB_SHNDX too
3363 if it exists. Don't do the reverse for SHT_SYMTAB_SHNDX. For
3364 SHT_STRTAB, check whether the strtab is for symtab or dynsymtab by
3365 looking at cached symtab info first, before iterating over headers.
3366 For SHT_REL and SHT_RELA, load dynsymtab if needed.
3367 * elfcode.h (elf_object_p): Don't load section header stringtab
3368 specially.
3369
90f487df
L
33702005-02-06 H.J. Lu <hongjiu.lu@intel.com>
3371
3372 * elf32-i386.c (elf_i386_relocate_section): Disallow R_386_GOTOFF
3373 against protected function when building shared library.
3374
3375 PR 584
3376 * elf64-x86-64.c (is_32bit_relative_branch): New.
3377 (elf64_x86_64_relocate_section): Alllow R_X86_64_PC32 on a
3378 protected function symbol when building shared library for
3379 32bit relative branch instruction.
3380
c4f68ce3
AM
33812005-02-06 Alan Modra <amodra@bigpond.net.au>
3382
3383 * elf64-ppc.c (add_symbol_adjust): Don't create fake descriptor
3384 syms when doing a relocatable link.
3385 (ppc64_elf_gc_mark_hook): Check that syms are defined before looking
3386 at u.def.section.
3387 (ppc64_elf_tls_setup): Likewise.
3388 (ppc64_elf_edit_opd): Don't use an undefined func desc sym.
3389
908b32fc
AM
33902005-02-04 Alan Modra <amodra@bigpond.net.au>
3391
3392 * elf64-ppc.c (struct ppc_link_hash_entry): Add "fake".
3393 (link_hash_newfunc): Clear all locals using memset.
3394 (make_fdh): Remove flags param. Always create fake func desc
3395 weak. Link the descriptor with the code entry sym.
3396 (ppc64_elf_archive_symbol_lookup): Don't return fake syms.
3397 (add_symbol_adjust): Adjust make_fdh call.
3398 (func_desc_adjust): Likewise. Twiddle any pre-existing fake
3399 descriptor to strong undefined if code entry is strong.
3400
4ea42fb7
AM
34012005-02-04 Alan Modra <amodra@bigpond.net.au>
3402
3403 * elflink.c (bfd_elf_record_link_assignment): Do "provide" symbol
3404 lookup here. Set to new before calling bfd_link_repair_undef_list.
3405 (elf_smash_syms): Check that u.undef.weak isn't the not_needed bfd.
3406
10d86c8a
AM
34072005-02-03 Alan Modra <amodra@bigpond.net.au>
3408
3409 * linker.c (_bfd_link_hash_newfunc): Set all local fields.
3410
11f25ea6
AM
34112005-02-03 Alan Modra <amodra@bigpond.net.au>
3412
3413 * linker.c (_bfd_generic_link_add_one_symbol): Set u.undef.weak.
3414 * elflink.c (elf_smash_syms): Restore symbols that were undefweak
3415 before the as-needed lib was loaded. Abort on unexpected refs.
3416
4f40114d
AM
34172005-02-02 Alan Modra <amodra@bigpond.net.au>
3418
ec13b3bb
AM
3419 * elflink.c (elf_smash_syms): Expand comments.
3420 (elf_link_add_object_symbols): Only call elf_smash_syms for
3421 as-needed dynamic objects.
3422
4f40114d
AM
3423 * elfxx-ia64.c (elfNN_ia64_new_elf_hash_entry): Don't clear
3424 everything, just the field specific to ia64.
336549c1 3425 * elf64-hppa.c (elf64_hppa_new_dyn_hash_entry): Likewise.
4f40114d 3426
bb700d78
AM
34272005-02-01 Alan Modra <amodra@bigpond.net.au>
3428
3429 * elf64-ppc.c (func_desc_adjust): Move code creating func desc sym to..
3430 (make_fdh): ..here. New function. Don't set BSF_OBJECT for
3431 undefined syms.
3432 (struct add_symbol_adjust_data): New.
3433 (add_symbol_adjust): Make an undefweak func desc for old ABI
3434 objects to link with --as-needed shared libs. Return fail status.
3435 Don't adjust old ABI func entry sym to weak if func desc syms
3436 isn't defined.
3437 (ppc64_elf_check_directives): Adjust call to add_symbol_adjust,
3438 and return status.
3439
1ffd1c2f
HPN
34402005-02-01 Hans-Peter Nilsson <hp@axis.com>
3441
3442 * cpu-cris.c (get_compatible): Rearrange disabled code and comment
3443 for clarity.
3444
77cfaee6
AM
34452005-02-01 Alan Modra <amodra@bigpond.net.au>
3446
3447 * elf64-ppc.c (ppc64_elf_check_directives): Move undefs list fixup..
3448 * linker.c (bfd_link_repair_undef_list): ..to new function, but don't
3449 remove anything but new and undefweak.
3450 * elflink.c (_bfd_elf_link_create_dynamic_sections): Override any
3451 existing _DYNAMIC.
3452 (_bfd_elf_create_dynamic_sections): Formatting.
3453 (bfd_elf_record_link_assignment): Call bfd_link_repair_undef_list.
3454 (_bfd_elf_merge_symbol): Don't handle as-needed syms here.
3455 (struct elf_smash_data): New.
3456 (elf_smash_syms): New function.
3457 (elf_link_add_object_symbols): Call elf_smash_syms. Don't add
3458 unneeded dynamic objects to loaded list.
3459 (elf_link_output_extsym): Don't handle as-needed here. Strip
3460 bfd_link_hash_new symbols.
3461 * elf32-cris.c (elf_cris_discard_excess_program_dynamics): Don't
3462 delref when dynindx is already -1.
3463 * elf64-alpha.c (elf64_alpha_output_extsym): Strip bfd_link_hash_new
3464 symbols.
3465 * elfxx-mips.c (mips_elf_output_extsym): Likewise.
3466
b15c48d1
BE
34672005-02-01 Ben Elliston <bje@au.ibm.com>
3468
3469 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Redefine.
3470
0983f4eb 34712005-02-01 Ben Elliston <bje@au.ibm.com>
0e71e495
BE
3472
3473 * aout-arm.c, aout-target.h, aoutx.h, archive.c, armnetbsd.c,
3474 bfd-in.h, bfdio.c, coff-alpha.c, coff-arm.c, coff-h8300.c,
3475 coff-i860.c, coff-mcore.c, coff-or32.c, coff-ppc.c, coff-sh.c,
3476 coff-sparc.c, coffcode.h, coffgen.c, cofflink.c, cpu-cris.c,
3477 cpu-h8500.c, cpu-ns32k.c, ecoff.c, ecofflink.c, elf.c,
3478 elf32-dlx.c, elf32-fr30.c, elf32-frv.c, elf32-hppa.c,
3479 elf32-i860.c, elf32-ip2k.c, elf32-m32r.c, elf32-sh.c,
3480 elf32-v850.c, elf64-mips.c, elf64-sparc.c, elflink.c,
3481 i386aout.c, i386msdos.c, i386os9k.c, ieee.c, mach-o.c,
3482 nlm32-sparc.c, oasys.c, opncls.c, pdp11.c, pe-mips.c, peXXigen.c,
3483 pef.c, peicode.h, reloc.c, riscix.c, section.c, simple.c, som.c,
11d02c41 3484 sparclynx.c, targets.c, vms-misc.c, vms-tir.c, xsym.c,
0e71e495
BE
3485 hosts/delta68.h, hosts/vaxbsd.h: Remove #if 0'd code
3486 throughout. Similarly, collapse #if 1'd code.
3487
34882005-02-01 Ben Elliston <bje@au.ibm.com>
3489
0983f4eb
BE
3490 * elf-bfd.h (bfd_elf_discard_group): Remove.
3491 * elf.c (bfd_elf_discard_group): Likewise.
3492 * elfxx-target.h (bfd_elfNN_bfd_discard_group): Remove macro.
3493
8c946ed5
RS
34942005-01-31 Richard Sandiford <rsandifo@redhat.com>
3495
3496 * elf-bfd.h (elf_backend_data): Add elf_backend_eh_frame_address_size.
3497 (_bfd_elf_eh_frame_address_size): Declare.
3498 * elfxx-target.h (elf_backend_eh_frame_address_size): Define a default.
3499 (elfNN_bed): Initialize elf_backend_eh_frame_address_size.
3500 * elfxx-mips.h (_bfd_mips_elf_eh_frame_address_size): Declare.
3501 (elf_backend_eh_frame_address_size): Define.
3502 * elfxx-mips.c (_bfd_mips_elf_eh_frame_address_size): New function.
3503 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Get the address
3504 size from the new backend hook.
3505 (_bfd_elf_write_section_eh_frame): Likewise.
3506 (_bfd_elf_eh_frame_address_size): New function.
3507
c46f8c51
AC
35082005-01-31 Andrew Cagney <cagney@gnu.org>
3509
3510 * configure: Regenerate to track ../gettext.m4.
3511
5cd3778d
MM
35122005-01-31 Mark Mitchell <mark@codesourcery.com>
3513
3514 * elf32-arm.c (elf32_arm_symbian_special_sections): Do not set
3515 SHF_WRITE for .init_array, .fini_array, and .preinit_array.
ec13b3bb 3516
d6486796
NC
35172005-01-31 Nick Clifton <nickc@redhat.com>
3518
3519 * confg.bfd: Make targets scheduled for obsoletion (m68k-lynxos,
3520 sparc-lynxos, vax-vms) be obsolete.
3521
b1342370
DJ
35222005-01-28 Daniel Jacobowitz <dan@codesourcery.com>
3523
3524 * elf-bfd.h (struct elf_backend_data): Add minpagesize.
3525 * elf32-arm.c (ELF_MINPAGESIZE): Define.
3526 * elf32-ppc.c (ELF_MINPAGESIZE): Define.
3527 * elfcode.h (elf_object_p): Use minpagesize instead of
3528 maxpagesize.
3529 * elfxx-target.h (ELF_MINPAGESIZE): Default to ELF_MAXPAGESIZE.
3530 (elfNN_bed): Include ELF_MINPAGESIZE.
3531
319850b4
JB
35322005-01-28 Julian Brown <julian@codesourcery.com>
3533
3534 * bin-in.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3535 * bin-in2.h (bfd_elf32_arm_set_target_relocs): Update prototype.
3536 * elf32-arm.c (elf32_arm_link_hash_table): Add fix_v4bx flag.
3537 (bfd_elf32_arm_set_target_relocs): Add formal parameter fix_v4bx for
ec13b3bb 3538 passing flag value from ld. Set flag value in global hash table entry.
319850b4 3539 (elf32_arm_final_link_relocate): Add code to implement R_ARM_V4BX
ec13b3bb 3540 relocation.
319850b4 3541
a53bf506
AC
35422005-01-27 Andrew Cagney <cagney@gnu.org>
3543
3544 * configure: Regenerate to track ../gettext.m4 change.
3545
dc4c9c19
MM
35462005-01-25 Mark Mitchell <mark@codesourcery.com>
3547
3548 * elf32-arm.c (elf_backend_default_use_rela_p): Define to zero for
ec13b3bb 3549 SymbianOS.
dc4c9c19 3550
90219bd0
AO
35512005-01-25 Alexandre Oliva <aoliva@redhat.com>
3552
3553 2004-12-10 Alexandre Oliva <aoliva@redhat.com>
3554 * elf32-frv.c (elf32_frv_relocate_section): Force local binding
3555 for TLSMOFF.
3556 * reloc.c: Add R_FRV_TLSMOFF.
3557 * elf32-frv.c (elf32_frv_howto_table): Likewise.
3558 (frv_reloc_map, frv_reloc_type_lookup): Map it.
3559 (elf32_frv_relocate_section): Handle it.
3560 (elf32_frv_check_relocs): Likewise.
3561 * libbfd.h, bfd-in2.h: Rebuilt.
3562 2004-11-26 Alexandre Oliva <aoliva@redhat.com>
3563 * elf32-frv.c (_frvfdpic_emit_got_relocs_plt_entries): Don't crash
3564 when given an undefweak TLS symbol. Fix constant TLS PLT entries
3565 such that they return the constant in gr9.
3566 (_frvfdpic_relax_tls_entries): Don't crash for undefweak TLS
3567 symbols.
3568 (_frvfdpic_size_got_plt): Set _cooked_size of dynamic sections.
3569 too, such that they shrink on relaxation.
3570 (elf32_frvfdpic_finish_dynamic_sections): Check __ROFIXUP_END__ as
3571 marking the position right past the _GLOBAL_OFFSET_TABLE_ value.
3572 (_frvfdpic_assign_plt_entries): Shrink constant TLS PLT entries
3573 if we can guarantee the use of 16-bit constants.
3574 2004-11-10 Alexandre Oliva <aoliva@redhat.com>
3575 Introduce TLS support for FR-V FDPIC.
3576 * reloc.c: Add TLS relocations.
3577 * elf32-frv.c (elf32_frv_howto_table): Add TLS relocations.
3578 (elf32_frv_rel_tlsdesc_value_howto): New.
3579 (elf32_frv_rel_tlsoff_howto): New.
3580 (frv_reloc_map): Add new mappings.
3581 (struct frvfdpic_elf_link_hash_table): Add pointer to summary
3582 reloc information.
3583 (frvfdpic_dynamic_got_plt_info): New.
3584 (frvfdpic_plt_tls_ret_offset): New.
3585 (ELF_DYNAMIC_INTERPRETER, DEFAULT_STACK_SIZE): Move earlier.
3586 (struct _frvfdpic_dynamic_got_info): Likewise. Add TLS members.
3587 (struct _frvfdpic_dynamic_got_plt_info): Likewise.
3588 (FRVFDPIC_SYM_LOCAL): Regard symbols defined in the absolute
3589 section as local.
3590 (struct frvfdpic_relocs_info): Add TLS fields.
3591 (frvfdpic_relocs_info_hash): Warning clean up.
3592 (frvfdpic_relocs_info_find): Initialize tlsplt_entry.
3593 (frvfdpic_pic_merge_early_relocs_info): Merge TLS fields.
3594 (FRVFDPIC_TLS_BIAS): Define.
3595 (tls_biased_base): New.
3596 (_frvfdpic_emit_got_relocs_plt_entries): Deal with TLS
3597 relocations.
3598 (frv_reloc_type_lookup): Likewise.
3599 (frvfdpic_info_to_howto_rel): Likewise.
3600 (elf32_frv_relocate_section): Likewise.
3601 (_frv_create_got_section): Create the PLT section here.
3602 (elf32_frvfdpic_create_dynamic_sections): Not here.
3603 (_frvfdpic_count_nontls_entries): Move out of...
3604 (_frvfdpic_count_got_plt_entries): ... here.
3605 (_frvfdpic_count_tls_entries): Likewise. Add TLS support.
3606 (_frvfdpic_count_relocs_fixups): Likewise. Add relaxation
3607 support.
3608 (_frvfdpic_relax_tls_entries): New.
3609 (_frvfdpic_compute_got_alloc_data): Add TLS support.
3610 (_frvfdpic_get_tlsdesc_entry): New.
3611 (_frvfdpic_assign_got_entries): Add TLS support.
3612 (_frvfdpic_assign_plt_entries): Likewise.
3613 (_frvfdpic_reset_got_plt_entries): New.
3614 (_frvfdpic_size_got_plt): Move out of...
3615 (elf32_frvfdpic_size_dynamic_sections): ... here.
3616 (_frvfdpic_relax_got_plt_entries): New.
3617 (elf32_frvfdpic_relax_section): New.
3618 (elf32_frvfdpic_finish_dynamic_sections): Add TLS sanity check.
3619 (elf32_frv_check_relocs): Add TLS support.
3620 (bfd_elf32_bfd_relax_section): Define for FDPIC.
3621 * libbfd.h, bfd-in2.h: Rebuilt.
3622
8615f3f2
AM
36232005-01-25 Alan Modra <amodra@bigpond.net.au>
3624
3625 * elf.c (_bfd_elf_get_dynamic_reloc_upper_bound): Only include
3626 loadable reloc sections.
3627 (_bfd_elf_canonicalize_dynamic_reloc): Likewise.
3628 (_bfd_elf_get_synthetic_symtab): Return 0 if no dynamic syms.
3629
7e9f0867
AM
36302005-01-25 Alan Modra <amodra@bigpond.net.au>
3631
3632 * elflink.c (elf_link_add_object_symbols): Don't create link dynamic
3633 sections immediately when linking shared libs. Instead, wait until
3634 we know a lib is needed.
3635 (_bfd_elf_link_create_dynstrtab): Extract from..
3636 (_bfd_elf_link_create_dynamic_sections_): ..here.
3637 (elf_add_dt_needed_tag): Call _bfd_elf_link_create_dynstrtab and
3638 _bfd_elf_link_create_dynamic_sections. Add abfd param. Allow
3639 for non-existent .dynamic.
3640 (elf_link_output_extsym): Don't complain about undefined symbols
3641 in as-needed dynamic libs that aren't actually linked.
3642
45181ed1
AC
36432005-01-24 Andrew Cagney <cagney@gnu.org>
3644
3645 * configure: Regenerate, ../gettext.m4 was updated.
3646
753e3eb6
BE
36472005-01-21 Ben Elliston <bje@au.ibm.com>
3648
3649 * aout-encap.c: Remove unused file.
3650
1c16dfa5
L
36512005-01-19 H.J. Lu <hongjiu.lu@intel.com>
3652
3653 PR 679
3654 * elflink.c (_bfd_elf_dynamic_symbol_p): Only protected
3655 non-function symbols are local.
3656 (_bfd_elf_symbol_refs_local_p): Likewise.
3657
1449d79b
AM
36582005-01-18 Alan Modra <amodra@bigpond.net.au>
3659
3660 * bfd.c (bfd_link_just_syms): Add abfd param.
3661 * bfd-in2.h: Regenerate.
3662
dcf507a6
RS
36632005-01-17 Richard Sandiford <rsandifo@redhat.com>
3664
3665 * elf-eh-frame.c (skip_cfa_op, skip_non_nops): New functions.
3666 (_bfd_elf_discard_section_eh_frame): Use them to interpret the CFA
3667 instructions. If the amount of padding is known, reduce the size
3668 of the CIE or FDE by that amount.
3669
2c42be65
RS
36702005-01-17 Richard Sandiford <rsandifo@redhat.com>
3671
3672 * elf-bfd.h (struct cie): Use bfd_vmas for code_align, ra_column and
3673 augmentation_size. Use bfd_signed_vmas for data_align.
3674 * elf-eh-frame.c (read_uleb128, read_sleb128): Delete in favor of...
3675 (read_byte, skip_leb128, read_uleb128, read_sleb128): ...these new
3676 functions. Don't read past the end of the enclosing CIE or FDE.
3677 (skip_bytes): New utility function.
3678 (_bfd_elf_discard_section_eh_frame): Use new functions, adding more
3679 sanity checking.
3680 (_bfd_elf_write_section_eh_frame): Use new functions.
3681
acfe5567
RS
36822005-01-17 Richard Sandiford <rsandifo@redhat.com>
3683
3684 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use an
3685 assert-style REQUIRE() macro to handle sanity checks.
3686
c0c28ab8
L
36872005-01-17 H.J. Lu <hongjiu.lu@intel.com>
3688
3689 * dwarf2.c (dwarf2_debug): Move info_ptr_unit to ...
3690 (comp_unit): Here.
3691 (read_unsigned_leb128): Removed.
3692 (read_signed_leb128): Removed.
3693 (find_abstract_instance_name): Updated.
3694 (parse_comp_unit): Accept info_ptr_unit.
3695 (_bfd_dwarf2_find_nearest_line): Set info_ptr_unit for each
3696 comp unit and pass it to parse_comp_unit.
3697
3698 * elf-eh-frame.c (read_unsigned_leb128): Moved to ...
3699 (read_signed_leb128): Moved to ...
3700 * libbfd.c: Here.
3701
3702 * libbfd-in.h (read_unsigned_leb128): New prototype.
3703 (read_signed_leb128): Likewise.
3704 * libbfd.h: Regenerated.
3705
e38bc3b5
NC
37062005-01-17 Andrew Stubbs <andrew.stubbs@st.com>
3707 Nick Clifton <nickc@redhat.com>
3708
3709 * cpu-sh.c (bfd_to_arch_table): Change arch_sh1_up to arch_sh_up,
3710 arch__sh4_nofp_up to arch_sh4_nofpu_up and arch_sh4a_nofp_up to
3711 arch_sh4a_nofpu_up in order to match the external names and make the
3712 testsuite's job easier.
3713 * archuires.c: Rename bfd_mach_sh2a_fake? to more meaningful
3714 names.
3715 * bfd-in2.h: Regenerate.
3716
8fb84ecc
AC
37172005-01-15 Andrew Cagney <cagney@gnu.org>
3718
3719 * bfd.m4: New file.
3720 * acinclude.m4: Move BFD_NEED_DECLARATION,
3721 BFD_HAVE_SYS_PROCFS_TYPE and BFD_HAVE_SYS_PROCFS_TYPE_MEMBER to
3722 the new file bfd.m4. Include ../bfd/bfd.m4.
3723 * configure: Re-generate.
8615f3f2 3724
b4a38de6
AM
37252005-01-12 Alan Modra <amodra@bigpond.net.au>
3726
3727 * elf32-ppc.c (ppc_elf_howto_raw): Delete RELAX32* entries.
3728 (ppc_elf_relax_section): Use PLT variants of RELAX32 relocs for
3729 reaching PLT.
3730 (ppc_elf_relocate_section): Handle R_PPC_RELAX32_PLT and
3731 R_PPC_RELAX32PC_PLT.
3732
3eb128b2
AM
37332005-01-11 Alan Modra <amodra@bigpond.net.au>
3734
3735 * elf64-ppc.c (ppc64_elf_gc_sweep_hook): Follow indirect and warning
3736 symbols.
3737 * elf32-arm.c (elf32_arm_gc_sweep_hook): Likewise.
3738 * elf32-cris.c (cris_elf_gc_sweep_hook): Likewise.
3739 * elf32-hppa.c (elf32_hppa_gc_sweep_hook): Likewise.
3740 * elf32-i386.c (elf_i386_gc_sweep_hook): Likewise.
3741 * elf32-m32r.c (m32r_elf_gc_sweep_hook): Likewise.
3742 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Likewise.
3743 * elf32-ppc.c (ppc_elf_gc_sweep_hook): Likewise.
3744 * elf32-s390.c (elf_s390_gc_sweep_hook): Likewise.
3745 * elf32-sh.c (sh_elf_gc_sweep_hook): Likewise.
3746 * elf32-sparc.c (elf32_sparc_gc_sweep_hook): Likewise.
3747 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
3748 * elf32-xtensa.c (elf_xtensa_gc_sweep_hook): Likewise.
3749 * elf64-s390.c (elf_s390_gc_sweep_hook): Likewise.
3750 * elf64-x86-64.c (elf64_x86_64_gc_sweep_hook): Likewise.
3751
264a1fe0
AM
37522005-01-11 Alan Modra <amodra@bigpond.net.au>
3753
3754 * elf32-ppc.c (ppc_elf_create_dynamic_sections): Correct
3755 .dynsbss flags.
3756
5c4504f7
NC
37572005-01-10 Inderpreet Singh <inderpreetb@noida.hcltech.com>
3758
3759 * archures.c: Define bfd_mach_maxq10 and bfd_mach_maxq20.
3760 * bfd-in2.h: Regenerate.
3761 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags): Add code
3762 to support these new machine values.
3763 * cpu-maxq.c (bfd_maxq10_arch): New architecture definition for
3764 the maxq10.
3765 (bfd_maxq_arch): Update values for the maxq20.
3766
669460c7
EB
37672005-01-10 Eric Botcazou <ebotcazou@libertysurf.fr>
3768
3769 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): When linking a
3770 non-shared object, do not reserve space in .plt and .rela.plt for
3771 regular symbols neither defined nor referenced in shared objects.
3772
a51a7930
EB
37732005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3774
01aac484
EB
3775 * elf32-sparc.c (elf32_sparc_link_hash_table_create): Use bfd_zmalloc
3776 to zero the structure.
3777 (create_got_section): Use BFD_ASSERT instead of abort.
a51a7930
EB
3778 * elf64-sparc.c (struct sparc64_elf_link_hash_table): New 'sgot' and
3779 'srelgot' fields.
3780 (create_got_section): New function.
3781 (sparc64_elf_create_dynamic_sections): Likewise.
3782 (sparc64_elf_check_relocs): Invoke create_got_section instead of
3783 _bfd_elf_create_got_section. Use the sgot and srelgot shortcuts.
3784 (sparc64_elf_size_dynamic_sections): Use the srelgot shortcut.
3785 (sparc64_elf_relocate_section): Use the sgot and srelgot shortcuts.
3786 (sparc64_elf_finish_dynamic_symbol): Likewise.
3787 (sparc64_elf_finish_dynamic_sections): Use the sgot shortcut.
3788 (elf_backend_create_dynamic_sections): Define to
3789 sparc64_elf_create_dynamic_sections.
3790
151e5294
EB
37912005-01-09 Eric Botcazou <ebotcazou@libertysurf.fr>
3792
3793 * elf32-sparc.c (elf32_sparc_omit_section_dynsym): New function.
3794 (elf_backend_omit_section_dynsym): Define to it.
3795 * elf64-sparc.c (sparc64_elf_omit_section_dynsym): New function.
3796 (elf_backend_omit_section_dynsym): Define to it.
3797
6f79b219
JJ
37982005-01-07 Jakub Jelinek <jakub@redhat.com>
3799
3800 * bfd/elf.c (INCLUDE_SECTION_IN_SEGMENT): Don't put empty sections into
3801 PT_DYNAMIC segment, unless .dynamic.
3802
4e7fd91e
PB
38032005-01-06 Paul Brook <paul@codesourcery.com>
3804
3805 * config.bfd: Add entry for arm-*-vxworks and arm-*-windiss.
3806 * configure.in: Add bfd_elf32_{big,little}arm_vxworks_vec.
3807 * configure: Regenerate.
3808 * elf32-arm.c: Add VxWorks target bfd.
3809 (USE_REL): Remove.
3810 (elf32_arm_link_hash_table): Add use_rel.
3811 (elf32_arm_link_hash_table_create, elf32_arm_final_link_relocate,
3812 elf32_arm_relocate_section): Replace USE_REL with runtime check.
3813 Correct offset calculation for RELA case.
3814 (elf_backend_may_use_rel_p, elf_backend_may_use_rela_p,
3815 elf_backend_default_use_rela_p, elf_backend_rela_normal): Define.
3816 (elf32_arm_vxworks_link_hash_table_create): New function.
3817 * targets.c (bfd_elf32_bigarm_vxworks_vec): Add declaration.
3818 (bfd_elf32_littlearm_vxworks_vec): Ditto.
3819 (_bfd_target_vector): Add bfd_elf32_{big,little}arm_vxworks_vec.
3820
4c52953f
AM
38212005-01-06 Alan Modra <amodra@bigpond.net.au>
3822
3823 * elf64-ppc.c (struct ppc_link_hash_table): Add no_multi_toc and
3824 multi_toc_needed.
3825 (has_toc_reloc, makes_toc_func_call, call_check_in_progress): Define.
3826 (ppc64_elf_check_relocs): Update references to has_gp_reloc.
3827 (ppc64_elf_setup_section_lists): Add no_multi_toc parm, set htab bit.
3828 (ppc64_elf_next_toc_section): Heed no_multi_toc.
3829 (ppc64_elf_reinit_toc): Set multi_toc_needed.
3830 (toc_adjusting_stub_needed): Rewrite.
3831 (ppc64_elf_next_input_section): Use multi_toc_needed to shortcut
3832 toc tests. Adjust for toc_adjusting_stub_needed changes.
3833 (ppc64_elf_size_stubs): Update references to has_gp_reloc.
3834 * elf64-ppc.h (ppc64_elf_setup_section_lists): Update prototype.
3835 * section.c: Expand comment on backend bits.
3836 * bfd-in2.h: Regenerate.
3837 * libbfd.h: Regenerate.
3838
f03d65b4
AM
38392005-01-06 Alan Modra <amodra@bigpond.net.au>
3840
3841 * elf64-ppc.c (ppc64_elf_size_stubs): When determining need for
3842 toc adjusting stub, do not test source section flags.
3843
8af139b3
EB
38442005-01-05 Eric Botcazou <ebotcazou@libertysurf.fr>
3845
3846 * elf64-sparc.c (sparc64_elf_relocate_section): Ignore overflows
3847 from STABS debugging sections again.
3848
06f22d7e
FF
38492005-01-05 Fred Fish <fnf@specifixinc.com>
3850
3851 * dwarf2.c (struct dwarf2_debug): Add info_ptr_unit member.
3852 (find_abstract_instance_name): New function.
3853 (scan_unit_for_functions): Handle DW_TAG_inlined_subroutine.
3854 (scan_unit_for_functions): Handle DW_AT_abstract_origin.
3855 (_bfd_dwarf2_find_nearest_line): Initialize info_ptr_unit.
3856
83a358aa
PB
38572004-12-31 Paul Brook <paul@copdesourcery.com>
3858
3859 * elf32-arm.c (elf32_arm_symbian_plt_entry): Fix comment typo.
3860
b996922c
AM
38612004-12-31 Alan Modra <amodra@bigpond.net.au>
3862
3863 * reloc.c (BFD_RELOC_AVR_LDI, BFD_RELOC_AVR_6, BFD_RELOC_AVR_6_ADIW):
3864 Commit missing changes from 2004-12-22.
3865 * bfd-in2.h: Regenerate.
3866
17a83432
TL
38672004-12-23 Tomer Levi <Tomer.Levi@nsc.com>
3868
3869 * elf32-crx.c (elf32_crx_relax_section): Support 'bcop' relaxation.
3870
d69f560c
KW
38712004-12-21 Kris Warkentin <kewarken@qnx.com>
3872
3873 * elf.c (elfcore_grok_nto_gregs): Change name to elfcore_grok_nto_regs.
3874 Add 'base' argument for constructing register sections. Reformat.
3875 (elfcore_grok_nto_note): Call elfcore_grok_nto_regs for both
3876 gp and fp regs. Reformat.
4c52953f 3877
750bce0e
NC
38782004-12-22 Klaus Rudolph <lts-rudolph@gmx.de>
3879
3880 * reloc.c: Add new relocs R_AVR_LDI, R_AVR_6, R_AVR_6_ADIW.
3881 * bfd-in2.h: Regenerate.
3882 * elf32-avr.c (elf_avr_nowto_table): Add the new relocs.
3883 (avr_reloc_map): Likewise.
3884 (avr_final_link_relocate): Likewise.
3885
a5db907e
AM
38862004-12-22 Alan Modra <amodra@bigpond.net.au>
3887
3888 * elflink.c (_bfd_elf_merge_symbol): Treat old definitions from
3889 as-needed dynamic libs as undefined.
3890 (elf_link_add_object_symbols): Remove DYN_AS_NEEDED from as-needed
3891 libs when finding they are needed.
3892
8860955f
AM
38932004-12-20 Alan Modra <amodra@bigpond.net.au>
3894
3895 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add opd_relocs.
3896 (opd_entry_value): Use opd_relocs if available.
3897 (ppc64_elf_relocate_section): Don't set reloc_done. Instead
3898 copy .opd relocations to opd_relocs.
3899 (ppc64_elf_edit_toc): Set rel_hdr.sh_size after editing relocs.
3900
1e50d24d
RS
39012004-12-16 Richard Sandiford <rsandifo@redhat.com>
3902
3903 * reloc.c (BFD_RELOC_V850_LO16_SPLIT_OFFSET): New bfd_reloc_code_type.
3904 * elf32-v850.c (v850_elf_howto_table): Add entry for
3905 R_V850_LO16_SPLIT_OFFSET.
3906 (v850_elf_reloc_map): Map it to BFD_RELOC_V850_LO16_SPLIT_OFFSET.
3907 (v850_elf_perform_lo16_relocation): New function, extracted from...
3908 (v850_elf_perform_relocation): ...here. Use it to handle
3909 R_V850_LO16_SPLIT_OFFSET.
3910 (v850_elf_check_relocs, v850_elf_final_link_relocate): Handle
3911 R_V850_LO16_SPLIT_OFFSET.
3912 * libbfd.h, bfd-in2.h: Regenerate.
3913
2fbd2a87
NC
39142004-12-14 P.J. Darcy <darcypj@us.ibm.com>
3915
3916 * config.bfd: Add s390x-ibm-tpf support.
3917
06302770
TL
39182004-12-14 Tomer Levi <Tomer.Levi@nsc.com>
3919
8860955f 3920 * elf32-crx.c (elf32_crx_relax_delete_bytes): Add 'struct bfd_link_info *'
06302770
TL
3921 to prototype, to make hash info available.
3922 Prevent wrapped symbols from being adjusted twice.
3923
c314987d
RS
39242004-12-14 Richard Sandiford <rsandifo@redhat.com>
3925
3926 * elfxx-mips.c (mips_elf_calculate_relocation): Don't report an
3927 overflow for calls to undefined weak symbols.
3928
5c799c07
AM
39292004-12-11 Alan Modra <amodra@bigpond.net.au>
3930
3931 * elfcode.h (elf_slurp_symbol_table): Use bfd_elf_sym_name so that
3932 canonical sections syms have a name.
3933
645ea6a9
AM
39342004-12-11 Alan Modra <amodra@bigpond.net.au>
3935
3936 * elf64-ppc.c (opd_entry_value): Don't use cached relocs if they
3937 have been adjusted for output.
3938 (ppc64_elf_relocate_section): Mark sections with reloc_done.
3939
0e2cfdce
AM
39402004-12-10 Alan Modra <amodra@bigpond.net.au>
3941
be8dd2ca
AM
3942 * elf.c (bfd_elf_sym_name): Rename from bfd_elf_local_sym_name and
3943 add symtab_hdr param.
0e2cfdce
AM
3944 (group_signature): Update calls.
3945 * elf-bfd.h (bfd_elf_sym_name): Update.
3946 * elf32-ppc.c (ppc_elf_relocate_section): Update.
8860955f
AM
3947 * elf64-ppc.c (ppc64_elf_edit_opd, ppc64_elf_edit_toc): Update.
3948 (ppc64_elf_relocate_section): Update.
0e2cfdce
AM
3949 * elflink.c (elf_link_input_bfd): Update.
3950
138f35cc
JJ
39512004-12-10 Jakub Jelinek <jakub@redhat.com>
3952
3953 * elf.c (bfd_elf_local_sym_name): Avoid crashes with invalid
3954 st_shndx on STT_SECTION sections.
3955
f9cfae62
DJ
39562004-12-09 Daniel Jacobowitz <dan@codesourcery.com>
3957
3958 * elfcode.h (elf_slurp_reloc_table_from_section): Don't canonicalize
3959 ELF section symbols.
3960
0d2e43ed
ILT
39612004-12-09 Ian Lance Taylor <ian@wasabisystems.com>
3962
1367d393
ILT
3963 * elfxx-mips.c (mips_elf_calculate_relocation): For R_MIPS_JALR,
3964 return a real value, unless it is a PLT symbol.
3965 (mips_elf_perform_relocation): On the RM9000, turn a jal into a
3966 bal if possible.
3967
74f79d8d
ILT
3968 * elfn32-mips.c (elf_mips_howto_table_rela): Change dst_mask of
3969 R_MIPS_JALR entry to 0.
3970
0d2e43ed
ILT
3971 * archures.c: Define bfd_mach_mips9000.
3972 * elfxx-mips.c (_bfd_elf_mips_mach): Handle E_MIPS_MACH_9000.
3973 (mips_set_isa_flags): Handle bfd_mach_mips9000.
3974 * cpu-mips.c (I_mips9000): Define.
3975 (arch_info_struct): Add case for bfd_mach_mips9000.
3976 * aoutx.h (NAME(aout,machine_type)): Handle bfd_mach_mips9000.
3977 * bfd-in2.h: Regenerate.
3978
728b2f21
ILT
39792004-12-08 Ian Lance Taylor <ian@wasabisystems.com>
3980
3981 * elfxx-mips.c (mips_elf_calculate_relocation): Test for R_MIPS_26
3982 overflow.
3983
45ab555d
BE
39842004-12-07 Ben Elliston <bje@gnu.org>
3985
3986 * netbsd-core.c (netbsd_core_file_p): Make `i' unsigned.
3987
1511ddaf
DJ
39882004-12-06 Daniel Jacobowitz <dan@debian.org>
3989
3990 Suggested by Fergal Daly <fergal@esatclear.ie>:
3991 * simple.c (simple_dummy_multiple_definition): New function.
3992 (bfd_simple_get_relocated_section_contents): Use it.
3993
39942004-12-03 Jan Beulich <jbeulich@novell.com>
57426232
JB
3995
3996 * elf.c (elf_find_function): Don't use the last file symbol ever,
3997 seen, but the last one seen prior to the symbol being reported.
3998 Don't report a filename at all for global symbols when that might
3999 be ambiguous/wrong.
4000
94a3258f
PB
40012004-12-01 Paul Brook <paul@codesourcery.com>
4002
4003 * elf32-arm.c (elf32_arm_copy_private_bfd_data): Set EI_OSABI.
4004 (elf32_arm_post_process_headers): Set EI_OSABI depending on ABI
4005 version.
4006
529fcb95
PB
40072004-12-01 Paul Brook <paul@codesourcery.com>
4008
4009 * elflink.c (elf_link_add_object_symbols): Make symbols from discarded
4010 sections undefined.
4011
dea514f5
PB
40122004-11-30 Paul Brook <paul@codesourcery.com>
4013
4014 * elf32-arm.c (struct elf32_arm_link_hash_table): Remove
4015 no_pipeline_knowledge
4016 (elf32_arm_link_hash_table_create): Ditto.
4017 (bfd_elf32_arm_process_before_allocation): Ditto.
4018 (elf32_arm_final_link_relocate): Ditto. Remove oabi relocation
4019 handling.
4020 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
4021 prototype.
4022 * bfd-in2.h: Regenerate.
4023
edfc032f
AM
40242004-11-30 Randolph Chung <tausq@debian.org>
4025
4026 * elf32-hppa.c (elf32_hppa_grok_prstatus): New function.
4027 (elf32_hppa_grok_psinfo): New function.
4028 (elf_backend_grok_prstatus): Define.
4029 (elf_backend_grok_psinfo): Define.
4030
0be9069d
L
40312004-11-24 H.J. Lu <hongjiu.lu@intel.com>
4032
4033 PR 574:
4034 * elfcode.h (elf_slurp_symbol_table): Handle STT_TLS.
4035
47cc2cf5
PB
40362004-11-24 Paul Brook <paul@codesourcery.com>
4037
4038 * elf.c (assign_section_numbers): Number SHT_GROUP sections first.
4039
0beaef2b
PB
40402004-11-24 Paul Brook <paul@codesourcery.com>
4041
4042 * elf32-arm.c (elf32_arm_swap_symbol_in): New function.
4043 (elf32_arm_swap_symbol_out): New function.
4044 (elf32_arm_size_info): Add.
4045 (elf_backend_size_info): Define.
4046
3dd2fcf0
DA
40472004-11-20 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
4048
4049 * hpux-core.c (hpux_core_core_file_p): Use offsetof macro in calls to
4050 make_bfd_asection.
4051
de52dba4
AM
40522004-11-19 Alan Modra <amodra@bigpond.net.au>
4053
4054 * elf32-arm.c (elf32_arm_finish_dynamic_sections): Warning fix.
4055 * elf32-iq2000.c (iq2000_reloc_type_lookup): C90 function decl.
4056 * nlmcode.h (nlm_write_object_contents): Warning fix.
4057
288f74fa
BW
40582004-11-18 Bob Wilson <bob.wilson@acm.org>
4059
4060 * elf32-xtensa.c (ebb_propose_action): Fix argument order.
4061
b7693d02
DJ
40622004-11-17 Daniel Jacobowitz <dan@codesourcery.com>
4063
4064 * elf32-arm.c (PLT_THUMB_STUB_SIZE): Define.
4065 (elf32_arm_plt_thumb_stub): New.
4066 (struct elf32_arm_link_hash_entry): Add plt_thumb_refcount
4067 and plt_got_offset.
4068 (elf32_arm_link_hash_traverse): Fix typo.
4069 (elf32_arm_link_hash_table): Add obfd.
4070 (elf32_arm_link_hash_newfunc): Initialize new fields.
4071 (elf32_arm_copy_indirect_symbol): Copy plt_thumb_refcount.
4072 (elf32_arm_link_hash_table_create): Initialize obfd.
4073 (record_arm_to_thumb_glue): Mark the glue as a local ARM function.
4074 (record_thumb_to_arm_glue): Mark the glue as a local Thumb function.
4075 (bfd_elf32_arm_get_bfd_for_interworking): Verify that the
4076 interworking BFD is not dynamic.
4077 (bfd_elf32_arm_process_before_allocation): Handle R_ARM_PLT32. Do
4078 not emit glue for PLT references.
4079 (elf32_arm_final_link_relocate): Handle Thumb functions. Do not
4080 emit glue for PLT references. Support the Thumb PLT prefix.
4081 (elf32_arm_gc_sweep_hook): Handle R_ARM_THM_PC22 and
4082 plt_thumb_refcount.
4083 (elf32_arm_check_relocs): Likewise.
4084 (elf32_arm_adjust_dynamic_symbol): Handle Thumb functions and
4085 plt_thumb_refcount.
4086 (allocate_dynrelocs): Handle Thumb PLT references.
4087 (elf32_arm_finish_dynamic_symbol): Likewise.
4088 (elf32_arm_symbol_processing): New function.
4089 (elf_backend_symbol_processing): Define.
4090
353057a5
RS
40912004-11-16 Richard Sandiford <rsandifo@redhat.com>
4092
4093 * elf-bfd.h (eh_cie_fde): Add new fields: add_augmentation_size and
4094 add_fde_encoding. Remove need_relative.
4095 * elf-eh-frame.c (extra_augmentation_string_bytes)
4096 (extra_augmentation_data_bytes, size_of_output_cie_fde): New functions.
4097 (_bfd_elf_discard_section_eh_frame): Consider changing the FDE encoding
4098 in cases where the CIE has no existing 'R' augmentation. Use
4099 size_of_output_cie_fde when assigning offsets. Use the final offset
4100 as the new section size.
4101 (_bfd_elf_eh_frame_section_offset): Remove need_relative handling.
4102 Account for any extra augmentation bytes in the returned offset.
4103 (_bfd_elf_write_section_eh_frame): Rework so that the entries are
4104 moved before being modified. Pad growing entries with DW_CFA_nops.
4105 Add 'z' and 'R' augmentations as directed by add_augmentation_size
4106 and add_fde_encoding.
4107
b32d3aa2
MM
41082004-11-15 Mark Mitchell <mark@codesourcery.com>
4109
4110 * elf32-arm.c (elf32_arm_relocate_section): Use
4111 arm_real_reloc_type.
4112
5d41f0b6
RS
41132004-11-16 Richard Sandiford <rsandifo@redhat.com>
4114
4115 * elfxx-mips.c (mips_elf_create_dynamic_relocation): Return early
4116 for discard relocations; don't add an R_MIPS_NONE to the main body
4117 of .rel.dyn.
4118
fc0e6df6
PB
41192004-11-04 Paul Brook <paul@codesourcery.com>
4120
4121 * elf-bfd.h (_bfd_elf_slurp_version_tables): Update prototype.
4122 * elf.c (_bfd_elf_print_private_bfd_data): Pass extra argument.
4123 (_bfd_elf_slurp_version_tables): Add extra argument. Create extra
4124 default version definition for unversioned symbols.
4125 * elfcode.h (elf_slurp_symbol_table): Pass extra argument.
4126 * elflink.c (elf_link_add_object_symbols): Pass extra argument to
4127 _bfd_elf_slurp_version_tables. Set default version for unversioned
4128 imported symbols.
4129
b23e50e2
PB
41302004-11-15 Paul Brook <paul@codesourcery.com>
4131
4132 * elflink.c (elf_link_add_object_symbols): Don't assume version
4133 indices are consecutive.
4134
f4a6705c
RS
41352004-11-14 Richard Sandiford <rsandifo@redhat.com>
4136
4137 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Deal with
4138 composite relocations against the personality data.
4139
ee06dc07
PB
41402004-11-13 Paul Brook <paul@codesourcery.com>
4141
4142 * bfd/elf32-arm.c (elf32_arm_final_link_relocate): Resolve
4143 R_ARM_PREL31 relocations to PLT entries.
4144 (elf32_arm_relocate_section, elf32_arm_gc_sweep_hook): Ditto.
4145 (elf32_arm_check_relocs): Ditto.
4146
a1ace8d8
BW
41472004-11-12 Bob Wilson <bob.wilson@acm.org>
4148
4149 * xtensa-isa.c (xtensa_interface_class_id): New.
4150
e4115460
BW
41512004-11-11 Bob Wilson <bob.wilson@acm.org>
4152
4153 * elf32-xtensa.c (property_table_compare): Remove assertion about
4154 entries with the same address and non-zero size.
4155 (xtensa_read_table_entries): Report such entries as errors.
4156
6366ff1e
MM
41572004-11-11 Mark Mitchell <mark@codesourcery.com>
4158
4159 * elf32-arm.c (elf32_arm_final_link_relocate): Correct logic for
4160 R_ARM_RELATIVE on Symbian OS.
4161
b34af79c
MM
41622004-11-09 Mark Mitchell <mark@codesourcery.com>
4163
e6dc21b6
MM
4164 * som.c (som_bfd_print_private_bfd_data): New function.
4165 (som_object_setup): Save the auxiliary header. Don't assume that
4166 zero is an invalid entry point for a shared library.
4167 (som_object_p): Allocate the auxiliary header on the heap.
4168
b34af79c
MM
4169 * elf32-arm.c (elf32_arm_begin_write_processing): Do not use a K&R
4170 declaration.
4171 (elf32_arm_symbian_modify_segment_map): Likewise.
4172
08d1f311
DJ
41732004-11-09 Daniel Jacobowitz <dan@debian.org>
4174
4175 From David Poole <daveml@mbuf.com>:
4176 * elf32-arm.c (elf32_arm_readonly_dynrelocs): New function.
4177 (elf32_arm_size_dynamic_sections): Call it.
4178
0306b3bf
AM
41792004-11-09 Alan Modra <amodra@bigpond.net.au>
4180
4181 * Makefile.am (SOURCE_HFILES): Remove elf32-arm.h.
4182 (ALL_MACHINES_CFILES): Fix typo.
4183 * Makefile.in: Regenerate.
4184 * po/SRC-POTFILES.in: Regenerate.
4185
a16385dc
MM
41862004-11-08 Mark Mitchell <mark@codesourcery.com>
4187
4188 * elf32-arm.c (elf32_arm_final_link_relocate): When generating an
4189 R_ARM_RELATIVE relocation for Symbian OS, mention the section
4190 symbol in the relocation.
4191
0306b3bf
AM
41922004-11-08 Inderpreet Singh <inderpreetb@nioda.hcltech.com>
4193 Vineet Sharma <vineets@noida.hcltech.com>
7499d566
NC
4194
4195 * coff-maxq.c: New File.
0306b3bf
AM
4196 * cpu-maxq.c: New File.
4197 * coffcode.h: Likewise.
4198 * config.bfd: Likewise.
4199 * configure.in (maxqcoff_vec): New target vector.
7499d566
NC
4200 * Makefile.am: Add support for maxq target.
4201 * configure.in: Likewise.
0306b3bf
AM
4202 * archures.c:. Likewise.
4203 * targets.c: Likewise.
4204 * bfd_in2.h : Regenerated.
7499d566
NC
4205 * Makefile.in: Regenerated.
4206 * configure: Regenerated.
4207 * doc/Makefile.in: Regenerated.
4208
977cdf5a
NC
42092004-11-08 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
4210
4211 * coff-i386.c (coff_i386_reloc): Fix weak symbols.
4212 * cofflink.c (_bfd_coff_link_input_bfd): Don't process
4213 C_NT_WEAK aux entries.
4214 (_bfd_coff_generic_relocate_section): Handle undefined
4215 aliases.
4216
9dfe8738
AS
42172004-11-07 Andreas Schwab <schwab@suse.de>
4218
4219 * elf32-m68k.c (elf_m68k_adjust_dynamic_symbol): Use
4220 SYMBOL_CALLS_LOCAL and check for undefweak symbols with
4221 non-default visibility.
4222
c3c76620
MM
42232004-11-01 Mark Mitchell <mark@codesourcery.com>
4224
4225 * elf32-arm.c (elf32_arm_symbian_begin_write_processing): Clear
0306b3bf 4226 D_PAGED.
c3c76620
MM
4227 (elf32_arm_symbian_modify_segment_map): Don't
4228 reset includes_filehdr and includes_phdrs here.
4229
7f266840
DJ
42302004-11-04 Daniel Jacobowitz <dan@debian.org>
4231
4232 * Makefile.am (BFD32_BACKENDS, BFD32_BACKENDS_CFILES): Replace
4233 elfarm-nabi with elf32-arm. Remove elfarm-oabi.
4234 (elf32-arm.lo): Replace elfarm-nabi.lo rule. Remove elf32-arm.h
4235 dependency.
4236 * config.bfd: Move arm-*-oabi* and thumb-*-oabi* from obsolete list
4237 to a new removed list. Remove normal configuration stanzas.
4238 * configure.in: (bfd_elf32_bigarm_vec, bfd_elf32_bigarm_symbian_vec)
4239 (bfd_elf32_littlearm_symbian_vec, bfd_elf32_littlearm_vec): Replace
4240 elfarm-nabi.lo with elf32-arm.lo.
4241 (bfd_elf32_bigarm_oabi_vec, bfd_elf32_littlearm_oabi_vec): Remove.
4242 * elf32-arm.c: Renamed from elfarm-nabi.c. Inline elf32-arm.h.
4243 * elf32-arm.h: Remove.
4244 * elfarm-oabi.c: Remove.
4245 * targets.c (_bfd_target_vector): Remove bfd_elf32_bigarm_oabi_vec
4246 and bfd_elf32_littlearm_oabi_vec.
4247 * aclocal.m4, Makefile.in, configure, doc/Makefile.in: Regenerated.
4248
bac23f82
HPN
42492004-11-04 Hans-Peter Nilsson <hp@axis.com>
4250
4251 * config.bfd: Support crisv32-*-* like cris-*-*.
4252 * archures.c (bfd_mach_cris_v0_v10, bfd_mach_cris_v32)
4253 (bfd_mach_cris_v10_v32): New macros.
4254 * cpu-cris.c: Tweak formatting.
4255 (get_compatible): New function.
4256 (N): New macro.
4257 (bfd_cris_arch_compat_v10_v32, bfd_cris_arch_v32): New
4258 bfd_arch_info_type:s.
4259 (bfd_cris_arch): Use bfd_mach_cris_v0_v10 for member mach,
4260 get_compatible for member compatible and link bfd_cris_arch_v32 as
4261 next.
4262 * elf32-cris.c (cris_elf_pcrel_reloc)
4263 (cris_elf_set_mach_from_flags): New functions.
4264 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL>
4265 <R_CRIS_32_PCREL>: Use cris_elf_pcrel_reloc.
4266 (cris_elf_grok_prstatus, cris_elf_grok_psinfo): Give correct
4267 numbers for bfd_mach_cris_v32.
4268 (PLT_ENTRY_SIZE_V32): New macro.
4269 (elf_cris_plt0_entry): Drop last comma in initializer.
4270 (elf_cris_plt0_entry_v32, elf_cris_plt_entry_v32)
4271 (elf_cris_pic_plt0_entry_v32, elf_cris_pic_plt_entry_v32): New
4272 PLT initializers.
4273 (cris_elf_relocate_section): Change all "%B(%A)" messages to
4274 "%B, section %A".
4275 (elf_cris_finish_dynamic_symbol): Do V32-specific PLT entries.
4276 (elf_cris_finish_dynamic_sections): Similar.
4277 (elf_cris_adjust_dynamic_symbol): Similar.
4278 (cris_elf_check_relocs): Change all "%B(%A)" messages to "%B,
4279 section %A".
4280 <switch with PIC relocs>: Emit error and return FALSE for
4281 bfd_mach_cris_v10_v32.
4282 <case R_CRIS_8_PCREL, case R_CRIS_16_PCREL, case R_CRIS_32_PCREL>:
4283 Emit warning when generating textrel reloc.
4284 (cris_elf_object_p): Call cris_elf_set_mach_from_flags.
4285 (cris_elf_final_write_processing): Set flags according to mach.
4286 (cris_elf_print_private_bfd_data): Display
4287 EF_CRIS_VARIANT_COMMON_V10_V32 and EF_CRIS_VARIANT_V32.
4288 (cris_elf_merge_private_bfd_data): Drop variables old_flags,
4289 new_flags. Don't call cris_elf_final_write_processing. Don't
4290 look at the actual elf header flags at all; use
4291 bfd_get_symbol_leading_char to check ibfd, obfd. Trap difference
4292 in bfd_get_mach for ibfd and obfd and handle merging of compatible
4293 objects.
4294 (bfd_elf32_bfd_copy_private_bfd_data): Define.
4295 * reloc.c (BFD_RELOC_CRIS_SIGNED_8, BFD_RELOC_CRIS_UNSIGNED_8)
4296 (BFD_RELOC_CRIS_SIGNED_16, BFD_RELOC_CRIS_UNSIGNED_16)
4297 (BFD_RELOC_CRIS_LAPCQ_OFFSET): New relocs.
4298 * bfd-in2.h, libbfd.h: Regenerate.
4299
c5614fa4
AM
43002004-11-04 Alan Modra <amodra@bigpond.net.au>
4301
4302 * elf64-ppc.h (ppc64_elf_edit_toc): Declare.
4303 * elf64-ppc.c (struct ppc_link_hash_entry <adjust_done>): Update
4304 comment.
4305 (struct adjust_toc_info): New.
4306 (adjust_toc_syms, ppc64_elf_edit_toc): New functions.
4307
0ebdbb83
BW
43082004-11-03 Bob Wilson <bob.wilson@acm.org>
4309
4310 * elf.c (assign_file_positions_for_segments): Set next_file_pos even
4311 if there are no segments.
4312
675b2ace
DJ
43132004-11-02 Daniel Jacobowitz <dan@debian.org>
4314
4315 * config.bfd: Mark arm-*-oabi and thumb-*-oabi as obsolete.
4316
58852c27
NC
43172004-11-02 Nick Clifton <nickc@redhat.com>
4318
4319 * elf32-iq2000.c: Convert to ISO C90 formatting.
4320
e6857c0c
HPN
43212004-11-02 Hans-Peter Nilsson <hp@axis.com>
4322
20288ed6 4323 * elflink.c (_bfd_elf_create_got_section): Hide _GLOBAL_OFFSET_TABLE_.
e6857c0c 4324
bf718458
L
43252004-10-28 H.J. Lu <hongjiu.lu@intel.com>
4326
4327 * elfxx-ia64.c (elfNN_ia64_relocate_section): Handle weak
4328 undefined symbols for R_IA64_SECREL32MSB, R_IA64_SECREL32LSB,
4329 R_IA64_SECREL64MSB and R_IA64_SECREL64LSB.
4330
044ad7e3
KK
43312004-10-28 Kaz Kojima <kkojima@rr.iij4u.or.jp>
4332
4333 * elf32-sh.c (tpoff): Take alignment into account.
4334
d5cb4bb8
NC
43352004-10-28 Nick Clifton <nickc@redhat.com>
4336
4337 * elf32-iq2000.c (iq2000_elf_relocate_section): Do nothing when
0d48eab6 4338 performing a relocatable link.
d5cb4bb8
NC
4339 (iq2000_elf_object_p): Do not set elf_bad_symtab. This is only
4340 for MIPS ports under Irix.
4341
5b5bb741
PB
43422004-10-27 Richard Earnshaw <rearnsha@arm.com>
4343
4344 * elf32-arm.h (bfd_elf32_arm_process_before_allocation): Handle
4345 R_ARM_CALL and R_ARM_JUMP24 as aliases of R_ARM_PC24.
4346 (elf32_arm_final_link_relocate): Ditto.
4347 (arm_add_to_rel, elf32_arm_relocate_section): Ditto.
4348 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto
4349 (elf32_arm_adjust_dynamic_symbol): Ditto.
4350 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_CALL and
4351 R_ARM_JUMP32. Move R_ARM_R{REL32,ABS32,PC24,BASE}...
4352 (elf32_arm_r_howto): ... To here.
4353 (elf32_arm_howto_from_type): Use elf32_arm_r_howto.
4354
97ecf322
L
43552004-10-26 H.J. Lu <hongjiu.lu@intel.com>
4356
4357 PR 475
4358 * elfxx-ia64.c (elfNN_ia64_relocate_section): Correct
4359 R_IA64_SECREL32MSB, R_IA64_SECREL32LSB, R_IA64_SECREL64MSB
4360 and R_IA64_SECREL64LSB.
4361
3e3b46e5
PB
43622004-10-26 Paul Brook <paul@codesourcery.com>
4363
4364 * elflink.c (elf_finalize_dynstr): Skip shared aux structure.
4365 (bfd_elf_size_dynamic_sections): Create default version definition.
4366 (elf_link_output_extsym): Adjust for default symbol version.
4367
aa69fe43
HPN
43682004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
4369
278b4623
HPN
4370 * mmo.c: Adjust to ISO C.
4371
aa69fe43
HPN
4372 * mmo.c (mmo_write_section_description): New function broken out
4373 of mmo_internal_write_section.
4374 (mmo_internal_write_section): For each of .text and .data, call
4375 mmo_write_section_description before outputting contents if it has
4376 nontrivially deducible vma or contents.
4377 (mmo_has_leading_or_trailing_zero_tetra_p): New function.
4378 (mmo_canonicalize_symtab): Adjust absolute symbols to .data
4379 symbols if found within the .data address range.
4380
ed040321
DJ
43812004-10-24 Daniel Jacobowitz <dan@debian.org>
4382
4383 * opncls.c (bfd_close): Return TRUE for BFD_IN_MEMORY.
4384
830866af
HPN
43852004-10-24 Hans-Peter Nilsson <hp@bitrange.com>
4386
4387 * mmo.c (File Layout): Correct place of misplaced blurb about
4388 special data.
4389
5f417ca3
MK
43902004-10-22 Mark Kettenis <kettenis@gnu.org>
4391
4392 * config.bfd: Add mips64*-*-openbsd.
4393
823fc61f
BW
43942004-10-21 Bob Wilson <bob.wilson@acm.org>
4395
4396 * elf32-xtensa.c (ebb_propose_action): Put declarations before
4397 statements.
4398
8697aafb
L
43992004-10-21 H.J. Lu <hongjiu.lu@intel.com>
4400
4401 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.94.
4402 * configure: Regenerate.
4403
dfeffb9f
L
44042004-10-21 H.J. Lu <hongjiu.lu@intel.com>
4405
4406 PR 463
4407 * aoutx.h (aout_link_input_section_std): Pass proper hash entry
4408 to linker reloc_overflow callback.
4409 (aout_link_input_section_ext): Likewise.
4410 (aout_link_reloc_link_order): Likewise.
4411 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
4412 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents):
4413 Likewise.
4414 (alpha_relocate_section): Likewise.
4415 * coff-arm.c (coff_arm_relocate_section): Likewise.
4416 * coff-h8300.c (h8300_reloc16_extra_cases): Likewise.
4417 * coff-h8500.c (extra_case): Likewise.
4418 * coff-i960.c (coff_i960_relocate_section): Likewise.
4419 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
4420 * coff-mips.c (mips_relocate_section): Likewise.
4421 * coff-or32.c (coff_or32_relocate_section): Likewise.
4422 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
4423 * coff-rs6000.c (xcoff_ppc_relocate_section): Likewise.
4424 * coff-sh.c (sh_relocate_section): Likewise.
4425 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
4426 * coff-w65.c (w65_reloc16_extra_cases): Likewise.
4427 * coff-z8k.c (extra_case): Likewise.
4428 * coff64-rs6000.c (xcoff64_ppc_relocate_section): Likewise.
4429 * cofflink.c (_bfd_coff_reloc_link_order): Likewise.
4430 (_bfd_coff_generic_relocate_section): Likewise.
4431 * ecoff.c (ecoff_reloc_link_order): Likewise.
4432 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
4433 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
4434 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
4435 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
4436 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
4437 * elf32-cr16c.c (elf32_cr16c_relocate_section): Likewise.
4438 * elf32-cris.c (cris_elf_relocate_section): Likewise.
4439 * elf32-crx.c (elf32_crx_relocate_section): Likewise.
4440 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
4441 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
4442 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
4443 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
4444 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
4445 * elf32-i370.c (i370_elf_relocate_section): Likewise.
4446 * elf32-i386.c (elf_i386_relocate_section): Likewise.
4447 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
4448 * elf32-ip2k.c (ip2k_elf_relocate_section): Likewise.
4449 * elf32-iq2000.c (iq2000_elf_relocate_section): Likewise.
4450 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
4451 * elf32-m68hc1x.c (elf32_m68hc11_relocate_section): Likewise.
4452 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
4453 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
4454 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
4455 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
4456 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
4457 * elf32-s390.c (elf_s390_relocate_section): Likewise.
4458 * elf32-sh.c (sh_elf_relocate_section): Likewise.
4459 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
4460 * elf32-v850.c (v850_elf_relocate_section): Likewise.
4461 * elf32-vax.c (elf_vax_relocate_section): Likewise.
4462 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
4463 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
4464 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
4465 * elf64-ppc.c (ppc64_elf_relocate_section): Likewise.
4466 * elf64-s390.c (elf_s390_relocate_section): Likewise.
4467 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
4468 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
4469 * elf64-x86-64.c (elf64_x86_64_relocate_section): Likewise.
4470 * elflink.c (elf_reloc_link_order): Likewise.
4471 * elfxx-ia64.c (elfNN_ia64_relocate_section): Likewise.
4472 * elfxx-mips.c (_bfd_mips_elf_relocate_section): Likewise.
4473 (_bfd_elf_mips_get_relocated_section_contents): Likewise.
4474 * linker.c (_bfd_generic_reloc_link_order): Likewise.
4475 * pdp11.c (pdp11_aout_link_input_section): Likewise.
4476 (aout_link_reloc_link_order): Likewise.
4477 * reloc.c (bfd_generic_get_relocated_section_contents):
4478 Likewise.
4479 * xcofflink.c (xcoff_reloc_link_order): Likewise.
4480 * simple.c (simple_dummy_reloc_overflow): Updated.
4481
1715e0e3
AS
44822004-10-20 Andreas Schwab <schwab@suse.de>
4483
4484 * elf32-m68k.c (elf_m68k_plt_sym_val): New function.
4485 (elf_backend_plt_sym_val): Define.
4486
db3d41a8
DS
44872004-10-19 Danny Smith <dannysmith@users.sourceforege.net>
4488
4489 * config.bfd: Set targ_underscore=yes for PE COFF targets
4490
4b85d634
AM
44912004-10-19 Alan Modra <amodra@bigpond.net.au>
4492
4493 * elf64-ppc.c (opd_entry_value): Handle --just-symbols objects.
4494 (ppc64_elf_edit_opd): Likewise.
4495
6df4d94c
MM
44962004-10-18 Mark Mitchell <mark@codesourcery.com>
4497
4498 * elfarm-nabi.c (ELF_DYNAMIC_SEC_FLAGS): Add comment.
4499 * elflink.c (_bfd_elf_create_dynamic_sections): For a loaded PLT,
4500 set SEC_ALLOC and SEC_LOAD.
4501
00d962d1
NC
45022004-10-18 Nick Clifton <nickc@redhat.com>
4503
4504 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Compute
4505 'name' for relocs against both local and global symbols.
4506
b58f81ae
DJ
45072004-10-16 Daniel Jacobowitz <dan@debian.org>
4508
4509 * bfd-in2.h: Regenerate.
4510 * bfd.c (struct bfd): Add no_export.
4511 * elflink.c (elf_link_add_object_symbols): Handle no_export.
4512
7d3f158f
AM
45132004-10-15 Alan Modra <amodra@bigpond.net.au>
4514
4515 * config.bfd: Whitespace cleanup.
4516 * Makefile.am: Run "make dep-am"
4517 * Makefile.in: Regenerate.
4518
6d2cd210
JJ
45192004-10-15 Jakub Jelinek <jakub@redhat.com>
4520
4521 * elflink.c (struct already_linked_section): Removed.
4522 (try_match_symbols_in_sections, already_linked): Removed.
4523 (_bfd_elf_section_already_linked): Skip ^\.gnu\.linkonce\.[^.]*\.
4524 prefix of section names when finding already_linked_table
4525 chain. Compare section names. Instead of calling already_linked,
4526 do it inline and only for sections in the same already_linked_list.
4527
92e4ec35
AM
45282004-10-15 Alan Modra <amodra@bigpond.net.au>
4529
4530 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Add "info"
4531 parameter. If called after _bfd_elf_write_section_eh_frame,
4532 don't allow a -2 return unless need_* bit is already set, and
4533 handle offsets adjusted for output_offset.
4534 * elf-bfd.h (_bfd_elf_eh_frame_section_offset): Update prototype.
4535 * elf.c (_bfd_elf_section_offset): Update call.
4536
7bf6dede
L
45372004-10-13 H.J. Lu <hongjiu.lu@intel.com>
4538
4539 PR 440
4540 * coffcode.h (coff_compute_section_file_positions): Cast to
4541 bfd_vma when computing page alignment.
4542
c0042f5d
MM
45432004-10-13 Mark Mitchell <mark@codesourcery.com>
4544
4545 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
4546 offsets, not VMAs, for DT_VERSYM, DT_VERDEF, DT_VERNEED.
4547
2a1b9a48
MM
45482004-10-12 Mark Mitchell <mark@codesourcery.com>
4549
4550 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Make .rel.plt
4551 relocations use a virtual address, not a section offset.
4552
b08b5071
BW
45532004-10-12 Bob Wilson <bob.wilson@acm.org>
4554
4555 * elf32-xtensa.c (elf_xtensa_get_private_bfd_flags): Delete.
4556 (narrow_instruction, widen_instruction): Remove unnecessary calls to
4557 xtensa_format_encode.
4558 (ebb_propose_action): Inline call to ebb_add_proposed_action.
4559 (ebb_add_proposed_action): Delete.
4560
7fa3d080
BW
45612004-10-12 Bob Wilson <bob.wilson@acm.org>
4562
4563 * elf32-xtensa.c: Use ISO C90 formatting.
4564
3656d5e3
PB
45652004-10-12 Paul Brook <paul@codesourcery.com>
4566
4567 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Rephrase error
4568 message.
4569
8cb51566
PB
45702004-10-12 Paul Brook <paul@codesourcery.com>
4571
4572 * elf32-arm.h: Support EABI version 4 objects.
4573
1abc8597
AM
45742004-10-12 Alan Modra <amodra@bigpond.net.au>
4575
4576 PR 325
4577 * cpu-i386.c (bfd_x86_64_arch_intel_syntax): Place last in chain.
4578 Don't mark as default.
4579 (bfd_x86_64_arch): Don't mark as default.
4580
9e66c942
AM
45812004-10-12 Alan Modra <amodra@bigpond.net.au>
4582
4583 * elflink.c (enum action_discarded): New.
4584 (elf_section_complain_discarded): Delete.
4585 (elf_action_discarded): New function subsuming the above and also
4586 controlling reloc behaviour.
1abc8597 4587 (elf_link_input_bfd): Use it.
9e66c942 4588
7f1204bb
JJ
45892004-10-11 Jakub Jelinek <jakub@redhat.com>
4590
4591 * elf.c (bfd_section_from_shdr): Handle SHT_GNU_LIBLIST.
4592 (special_sections): Add .gnu.liblist and .gnu.conflict.
4593 (assign_section_numbers): Handle SHT_GNU_LIBLIST.
4594
87e5235d
AM
45952004-10-11 Alan Modra <amodra@bigpond.net.au>
4596
4597 PR 233
4598 * elflink.c (elf_link_input_bfd): Try harder to support
4599 relocations against symbols in removed linkonce sections.
4600
2ad770c3
AM
46012004-10-11 Alan Modra <amodra@bigpond.net.au>
4602
029446c4
AM
4603 * elflink.c (elf_link_input_bfd): Revert PR 354 change.
4604
2ad770c3
AM
4605 PR 354
4606 * elflink.c (elf_link_input_bfd): Check that relocs in SEC_ALLOC
4607 sections do not reference symbols in non-SEC_ALLOC sections.
4608
1da212d6
AM
46092004-10-11 Alan Modra <amodra@bigpond.net.au>
4610
4611 PR 437
4612 * elflink.c (elf_link_sort_relocs): Don't bomb on unusual sections.
4613 (_bfd_elf_link_omit_section_dynsym): Formatting.
4614
f12123c0
AM
46152004-10-10 Alan Modra <amodra@bigpond.net.au>
4616
4617 * libbfd-in.h (BFD_ASSERT, BFD_FAIL): Wrap macro body in do while.
4618 * libbfd.h: Regnerate.
4619 * elf32-cris.c: Add missing semicolon to BFD_ASSERTs.
4620 * elf32-frv.c: Likewise.
4621 * elf32-m32r.c: Likewise.
4622 * elf32-ppc.c: Likewise.
4623 * elf64-hppa.c: Likewise.
4624 * elfxx-ia64.c: Likewise.
4625 * opncls.c: Likewise.
4626
fda3ecf2
AM
46272004-10-10 Alan Modra <amodra@bigpond.net.au>
4628
3472e2e9
AM
4629 * elf-bfd.h (struct eh_frame_hdr_info): Add offsets_adjusted.
4630 * elf-eh-frame.c (_bfd_elf_write_section_eh_frame): Adjust
4631 offsets stored in struct eh_cie_fde entries before doing other
4632 work.
4633
fda3ecf2
AM
4634 * elf-bfd.h (struct eh_cie_fde): Add cie_inf, remove sec.
4635 (struct eh_frame_hdr_info): Add last_cie_inf, remove last_cie_offset.
4636 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete code
4637 setting offsets for removed CIEs. Don't set "sec", instead set
4638 cie_inf for FDEs. Keep a pointer to last struct eh_cie_fde for a
4639 CIE in hdr_info. Only set make_relative and make_lsda_relative
4640 for CIEs. Use pointers rather than array indices.
4641 (_bfd_elf_eh_frame_section_offset): Test/set make_relative,
4642 make_lsda_relative, need_* on cie_inf for FDEs.
4643 (_bfd_elf_write_section_eh_frame): Adjust offset and new_offset for
4644 section output_offset. Delete cie_offset, instead use cie_inf
4645 pointer to CIE entry. Use need_relative and need_lsda_relative on
4646 CIE entry for FDEs. Use pointers rather than array indices.
4647
7db6994f
AM
46482004-10-09 Alan Modra <amodra@bigpond.net.au>
4649
4650 * coff-rs6000.c (rs6000coff_vec): Add initializer for
4651 bfd_is_target_special_symbol.
4652 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
4653 * som.c (som_bfd_is_target_special_symbol): Define.
4654
3c9458e9
NC
46552004-10-08 Nick Clifton <nickc@redhat.com>
4656
4657 * configure.in: (AM_INIT_AUTOMAKE): Set version to 2.15.93.
4658 * configure: Regenerate.
4659 * bfd-in2.h: Regenerate.
4660 * syms.c (bfd_is_target_special_symbol): New interface function.
4661 Returns true when a symbol should be considered to be special.
7db6994f 4662 * targets.c (bfd_target): Include bfd_is_target_special_symbol in
3c9458e9
NC
4663 the symbol jump table.
4664 * elf32-arm.h (elf32_arm_is_target_special_symbol): New function.
4665 Return true iff the symbol is a mapping symbol.
4666 (bfd_elf32_bfd_is_target_special_symbol): Define.
4667 * elfxx-target.h: Provide a default definition for
4668 bfd_is_target_special_symbol.
4669 * aout-target.h: Likewise.
4670 * aout-tic30.c: Likewise.
873d03ee 4671 * binary.c: Likewise.
3c9458e9
NC
4672 * coffcode.h: Likewise.
4673 * i386msdos.c: Likewise.
4674 * ieee.c: Likewise.
873d03ee 4675 * ihex.c: Likewise.
3c9458e9
NC
4676 * libaout.h: Likewise.
4677 * libbfd-in.h: Likewise
4678 * libecoff.h: Likewise.
4679 * mach-o.c: Likewise.
4680 * mmo.c: Likewise.
4681 * nlm-target.h: Likewise.
4682 * oasys.c: Likewise.
4683 * pef.c: Likewise.
4684 * ppcboot.c: Likewise.
4685 * srec.c: Likewise.
4686 * tekhex.c: Likewise.
4687 * versados.c: Likewise.
4688 * vms.c: Likewise.
4689 * xcoff-target.h: Likewise.
4690 * xsym.c: Likewise.
4691 * libbfd.h: Regenerate.
4692
d2b2c203
DJ
46932004-10-08 Daniel Jacobowitz <dan@debian.org>
4694
4695 * config.bfd: Include 64-bit support for i[3-7]86-*-solaris2*.
4696 * elf64-x86-64.c (elf64_x86_64_section_from_shdr): New function.
4697 (elf_backend_section_from_shdr): Define.
4698
864274b0
AM
46992004-10-08 Alan Modra <amodra@bigpond.net.au>
4700
4701 * syms.c (bfd_is_local_label): Return false for file symbols.
4702
43cd72b9 47032004-10-07 Bob Wilson <bob.wilson@acm.org>
85a5ac80 4704 David Heine <dlheine@tensilica.com>
43cd72b9
BW
4705
4706 * elf32-xtensa.c (elf32xtensa_size_opt): New global variable.
4707 (xtensa_default_isa): Global variable moved here from xtensa-isa.c.
4708 (elf32xtensa_no_literal_movement): New global variable.
4709 (elf_howto_table): Add entries for new relocations.
4710 (elf_xtensa_reloc_type_lookup): Handle new relocations.
4711 (property_table_compare): When addresses are equal, compare sizes and
4712 various property flags.
4713 (property_table_matches): New.
4714 (xtensa_read_table_entries): Extend to read new property tables. Add
4715 output_addr parameter to indicate that output addresses should be used.
4716 Use bfd_get_section_limit.
4717 (elf_xtensa_find_property_entry): New.
4718 (elf_xtensa_in_literal_pool): Use elf_xtensa_find_property_entry.
4719 (elf_xtensa_check_relocs): Handle new relocations.
4720 (elf_xtensa_do_reloc): Use bfd_get_section_limit. Handle new
4721 relocations. Use new xtensa-isa.h functions.
4722 (build_encoding_error_message): Remove encode_result parameter. Add
4723 new target_address parameter used to detect alignment errors.
4724 (elf_xtensa_relocate_section): Use bfd_get_section_limit. Clean up
4725 error handling. Use new is_operand_relocation function.
4726 (elf_xtensa_combine_prop_entries, elf_xtensa_merge_private_bfd_data):
4727 Use underbar macro for error messages. Formatting.
4728 (get_const16_opcode): New.
4729 (get_l32r_opcode): Add a separate flag for initialization.
4730 (get_relocation_opnd): Operand number is no longer explicit in the
4731 relocation. Change to decode the opcode and analyze its operands.
4732 (get_relocation_slot): New.
4733 (get_relocation_opcode): Add bfd parameter. Use bfd_get_section_limit.
4734 Use new xtensa-isa.h functions to handle multislot instructions.
4735 (is_l32r_relocation): Add bfd parameter. Use is_operand_relocation.
4736 (get_asm_simplify_size, is_alt_relocation, is_operand_relocation,
4737 insn_decode_len, insn_decode_opcode, check_branch_target_aligned,
4738 check_loop_aligned, check_branch_target_aligned_address, narrowable,
4739 widenable, narrow_instruction, widen_instruction, op_single_fmt_table,
4740 get_single_format, init_op_single_format_table): New.
4741 (elf_xtensa_do_asm_simplify): Add error_message parameter and use it
4742 instead of calling _bfd_error_handler. Use new xtensa-isa.h functions.
4743 (contract_asm_expansion): Add error_message parameter and pass it to
4744 elf_xtensa_do_asm_simplify. Replace use of R_XTENSA_OP0 relocation
4745 with R_XTENSA_SLOT0_OP.
4746 (get_expanded_call_opcode): Extend to handle either L32R or CONST16
4747 instructions. Use new xtensa-isa.h functions.
4748 (r_reloc struct): Add new virtual_offset field.
4749 (r_reloc_init): Add contents and content_length parameters. Set
4750 virtual_offset field to zero. Add contents to target_offset field for
4751 partial_inplace relocations.
4752 (r_reloc_is_defined): Check for null.
4753 (print_r_reloc): New debug function.
4754 (source_reloc struct): Replace xtensa_operand field with pair of the
4755 opcode and the operand position. Add is_abs_literal field.
4756 (init_source_reloc): Specify operand by opcode/position pair. Set
4757 is_abs_literal field.
4758 (source_reloc_compare): When target_offsets are equal, compare other
4759 fields to make sorting predictable.
4760 (literal_value struct): Add is_abs_literal field.
4761 (value_map_hash_table struct): Add has_last_loc and last_loc fields.
4762 (init_literal_value): New.
4763 (is_same_value): Replace with ...
4764 (literal_value_equal): ... this function. Add comparisons of
4765 virtual_offset and is_abs_literal fields.
4766 (value_map_hash_table_init): Use bfd_zmalloc. Check for allocation
4767 failure. Initialize has_last_loc field.
4768 (value_map_hash_table_delete): New.
4769 (hash_literal_value): Rename to ...
4770 (literal_value_hash): ... this. Include is_abs_literal flag and
4771 virtual_offset field in the hash value.
4772 (get_cached_value): Rename to ...
4773 (value_map_get_cached_value): ... this. Update calls to
4774 literal_value_hash and literal_value_equal.
4775 (add_value_map): Check for allocation failure. Update calls to
4776 value_map_get_cached_value and literal_value_hash.
4777 (text_action, text_action_list, text_action_t): New types.
4778 (find_fill_action, compute_removed_action_diff, adjust_fill_action,
4779 text_action_add, text_action_add_literal, offset_with_removed_text,
4780 offset_with_removed_text_before_fill, find_insn_action,
4781 print_action_list, print_removed_literals): New.
4782 (offset_with_removed_literals): Delete.
4783 (xtensa_relax_info struct): Add is_relaxable_asm_section, action_list,
4784 fix_array, fix_array_count, allocated_relocs, relocs_count, and
4785 allocated_relocs_count fields.
4786 (init_xtensa_relax_info): Initialize new fields.
4787 (reloc_bfd_fix struct): Add new translated field.
4788 (reloc_bfd_fix_init): Add translated parameter and use it to set the
4789 translated field.
4790 (fix_compare, cache_fix_array): New.
4791 (get_bfd_fix): Remove fix_list parameter and get all relax_info for the
4792 section via get_xtensa_relax_info. Use cache_fix_array to set up
4793 sorted fix_array and use bsearch instead of linear search.
4794 (section_cache_t): New struct.
4795 (init_section_cache, section_cache_section, clear_section_cache): New.
4796 (ebb_t, ebb_target_enum, proposed_action, ebb_constraint): New types.
4797 (init_ebb_constraint, free_ebb_constraint, init_ebb, extend_ebb_bounds,
4798 extend_ebb_bounds_forward, extend_ebb_bounds_backward,
4799 insn_block_decodable_len, ebb_propose_action, ebb_add_proposed_action):
4800 New.
4801 (retrieve_contents): Use bfd_get_section_limit.
4802 (elf_xtensa_relax_section): Add relocations_analyzed flag. Update call
4803 to compute_removed_literals. Free value_map_hash_table when no longer
4804 needed.
4805 (analyze_relocations): Check is_relaxable_asm_section flag. Call
4806 compute_text_actions for all sections.
4807 (find_relaxable_sections): Mark sections as relaxable if they contain
4808 ASM_EXPAND relocations that can be optimized. Adjust r_reloc_init
4809 call. Increment relax_info src_count field only for appropriate
4810 relocation types. Remove is_literal_section check.
4811 (collect_source_relocs): Use bfd_get_section_limit. Adjust calls to
4812 r_reloc_init and find_associated_l32r_irel. Check
4813 is_relaxable_asm_section flag. Handle L32R instructions with absolute
4814 literals. Pass is_abs_literal flag to init_source_reloc.
4815 (is_resolvable_asm_expansion): Use bfd_get_section_limit. Check for
4816 CONST16 instructions. Adjust calls to r_reloc_init and
fda3ecf2 4817 pcrel_reloc_fits. Handle weak symbols conservatively.
43cd72b9
BW
4818 (find_associated_l32r_irel): Add bfd parameter and pass it to
4819 is_l32r_relocation.
4820 (compute_text_actions, compute_ebb_proposed_actions,
4821 compute_ebb_actions, check_section_ebb_pcrels_fit,
4822 check_section_ebb_reduces, text_action_add_proposed,
4823 compute_fill_extra_space): New.
4824 (remove_literals): Replace with ...
4825 (compute_removed_literals): ... this function. Call
4826 init_section_cache. Use bfd_get_section_limit. Sort internal_relocs.
4827 Call xtensa_read_table_entries to get the property table. Skip
4828 relocations other than R_XTENSA_32 and R_XTENSA_PLT. Use new
4829 is_removable_literal, remove_dead_literal, and
fda3ecf2 4830 identify_literal_placement functions.
43cd72b9
BW
4831 (get_irel_at_offset): Rewrite to use bsearch on sorted relocations
4832 instead of linear search.
4833 (is_removable_literal, remove_dead_literal,
4834 identify_literal_placement): New.
4835 (relocations_reach): Update check for literal not referenced by any
4836 PC-relative relocations. Adjust call to pcrel_reloc_fits.
4837 (coalesce_shared_literal, move_shared_literal): New.
4838 (relax_section): Use bfd_get_section_limit. Call
4839 translate_section_fixes. Update calls to r_reloc_init and
4840 offset_with_removed_text. Check new is_relaxable_asm_section flag.
4841 Add call to pin_internal_relocs. Add special handling for
4842 R_XTENSA_ASM_SIMPLIFY and R_XTENSA_DIFF* relocs. Use virtual_offset
4843 info to calculate new addend_displacement variable. Replace code for
4844 deleting literals with more general code to perform the actions
4845 determined by the action_list for the section.
4846 (translate_section_fixes, translate_reloc_bfd_fix): New.
4847 (translate_reloc): Check new is_relaxable_asm_section flag. Call
4848 find_removed_literal only if is_operand_relocation. Update call to
4849 offset_with_removed_text. Use new target_offset and removed_bytes
4850 variables.
4851 (move_literal): New.
4852 (relax_property_section): Use bfd_get_section_limit. Set new
4853 is_full_prop_section flag and handle new property tables. Update calls
4854 to r_reloc_init and offset_with_removed_text. Check
4855 is_relaxable_asm_section flag. Handle expansion of zero-sized
4856 unreachable entries, with use of offset_with_removed_text_before_fill.
4857 For relocatable links, combine entries only for literal tables.
4858 (relax_section_symbols): Check is_relaxable_asm_section flag. Update
4859 calls to offset_with_removed_text. Translate st_size field for
4860 function symbols.
4861 (do_fix_for_relocatable_link): Change to return bfd_boolean to indicate
4862 failure. Add contents parameter. Update call to get_bfd_fix. Update
4863 call to r_reloc_init. Call _bfd_error_handler and return FALSE for
4864 R_XTENSA_ASM_EXPAND relocs.
4865 (do_fix_for_final_link): Add input_bfd and contents parameters. Update
4866 call to get_bfd_fix. Include offset from contents for partial_inplace
4867 relocations.
4868 (is_reloc_sym_weak): New.
4869 (pcrel_reloc_fits): Use new xtensa-isa.h functions.
4870 (prop_sec_len): New.
4871 (xtensa_is_property_section): Handle new property sections.
4872 (is_literal_section): Delete.
4873 (internal_reloc_compare): When r_offset matches, compare r_info and
4874 r_addend to make sorting predictable.
4875 (internal_reloc_matches): New.
4876 (xtensa_get_property_section_name): Handle new property sections.
4877 (xtensa_get_property_predef_flags): New.
4878 (xtensa_callback_required_dependence): Use bfd_get_section_limit.
4879 Update calls to xtensa_isa_init, is_l32r_relocation, and r_reloc_init.
4880 * xtensa-isa.c (xtensa_default_isa): Moved to elf32-xtensa.c.
4881 (xtisa_errno, xtisa_error_msg): New variables.
4882 (xtensa_isa_errno, xtensa_isa_error_msg): New.
4883 (xtensa_insnbuf_alloc): Add error handling.
4884 (xtensa_insnbuf_to_chars): Add num_chars parameter. Update to
4885 use xtensa_format_decode. Add error handling.
4886 (xtensa_insnbuf_from_chars): Add num_chars parameter. Decode the
4887 instruction length to find the number of bytes to copy.
4888 (xtensa_isa_init): Add error handling. Replace calls to
4889 xtensa_load_isa and xtensa_extend_isa with code to initialize lookup
4890 tables in the xtensa_modules structure.
4891 (xtensa_check_isa_config, xtensa_add_isa, xtensa_load_isa,
4892 xtensa_extend_isa): Delete.
4893 (xtensa_isa_free): Change to only free lookup tables.
4894 (opname_lookup_compare): Replace with ...
4895 (xtensa_isa_name_compare): ... this function. Use strcasecmp.
4896 (xtensa_insn_maxlength): Rename to ...
4897 (xtensa_isa_maxlength): ... this.
4898 (xtensa_insn_length): Delete.
4899 (xtensa_insn_length_from_first_byte): Replace with ...
4900 (xtensa_isa_length_from_chars): ... this function.
4901 (xtensa_num_opcodes): Rename to ...
4902 (xtensa_isa_num_opcodes): ... this.
4903 (xtensa_isa_num_pipe_stages, xtensa_isa_num_formats,
4904 xtensa_isa_num_regfiles, xtensa_isa_num_stages,
4905 xtensa_isa_num_sysregs, xtensa_isa_num_interfaces,
4906 xtensa_isa_num_funcUnits, xtensa_format_name, xtensa_format_lookup,
4907 xtensa_format_decode, xtensa_format_encode, xtensa_format_length,
4908 xtensa_format_num_slots, xtensa_format_slot_nop_opcode,
4909 xtensa_format_get_slot, xtensa_format_set_slot): New functions.
4910 (xtensa_opcode_lookup): Add error handling.
4911 (xtensa_decode_insn): Replace with ...
4912 (xtensa_opcode_decode): ... this function, with new format and
4913 slot parameters. Add error handling.
4914 (xtensa_encode_insn): Replace with ...
4915 (xtensa_opcode_encode): ... this function, which does the encoding via
4916 one of the entries in the "encode_fns" array. Add error handling.
4917 (xtensa_opcode_name): Add error handling.
4918 (xtensa_opcode_is_branch, xtensa_opcode_is_jump, xtensa_opcode_is_loop,
4919 xtensa_opcode_is_call): New.
4920 (xtensa_num_operands): Replace with ...
4921 (xtensa_opcode_num_operands): ... this function. Add error handling.
4922 (xtensa_opcode_num_stateOperands,
4923 xtensa_opcode_num_interfaceOperands, xtensa_opcode_num_funcUnit_uses,
4924 xtensa_opcode_funcUnit_use, xtensa_operand_name,
4925 xtensa_operand_is_visible): New.
4926 (xtensa_get_operand, xtensa_operand_kind): Delete.
4927 (xtensa_operand_inout): Add error handling and special-case for
4928 "sout" operands.
4929 (xtensa_operand_get_field, xtensa_operand_set_field): Rewritten to
4930 operate on one slot of an instruction. Added error handling.
4931 (xtensa_operand_encode): Handle default operands with no encoding
4932 functions. Check for success by comparing against decoded value.
4933 Add error handling.
4934 (xtensa_operand_decode): Handle default operands. Return decoded value
4935 through argument pointer. Add error handling.
4936 (xtensa_operand_is_register, xtensa_operand_regfile,
4937 xtensa_operand_num_regs, xtensa_operand_is_known_reg): New.
4938 (xtensa_operand_isPCRelative): Rename to ...
4939 (xtensa_operand_is_PCrelative): ... this. Add error handling.
4940 (xtensa_operand_do_reloc, xtensa_operand_undo_reloc): Return value
4941 through argument pointer. Add error handling.
4942 (xtensa_stateOperand_state, xtensa_stateOperand_inout,
4943 xtensa_interfaceOperand_interface, xtensa_regfile_lookup,
4944 xtensa_regfile_lookup_shortname, xtensa_regfile_name,
4945 xtensa_regfile_shortname, xtensa_regfile_view_parent,
4946 xtensa_regfile_num_bits, xtensa_regfile_num_entries,
4947 xtensa_state_lookup, xtensa_state_name, xtensa_state_num_bits,
4948 xtensa_state_is_exported, xtensa_sysreg_lookup,
4949 xtensa_sysreg_lookup_name, xtensa_sysreg_name, xtensa_sysreg_number,
4950 xtensa_sysreg_is_user, xtensa_interface_lookup, xtensa_interface_name,
4951 xtensa_interface_num_bits, xtensa_interface_inout,
4952 xtensa_interface_has_side_effect, xtensa_funcUnit_lookup,
4953 xtensa_funcUnit_name, xtensa_funcUnit_num_copies): New.
4954 * xtensa-modules.c: Rewrite to use new data structures.
4955 * reloc.c (BFD_RELOC_XTENSA_DIFF8, BFD_RELOC_XTENSA_DIFF16,
4956 BFD_RELOC_XTENSA_DIFF32, BFD_RELOC_XTENSA_SLOT0_OP,
4957 BFD_RELOC_XTENSA_SLOT1_OP, BFD_RELOC_XTENSA_SLOT2_OP,
4958 BFD_RELOC_XTENSA_SLOT3_OP, BFD_RELOC_XTENSA_SLOT4_OP,
4959 BFD_RELOC_XTENSA_SLOT5_OP, BFD_RELOC_XTENSA_SLOT6_OP,
4960 BFD_RELOC_XTENSA_SLOT7_OP, BFD_RELOC_XTENSA_SLOT8_OP,
4961 BFD_RELOC_XTENSA_SLOT9_OP, BFD_RELOC_XTENSA_SLOT10_OP,
4962 BFD_RELOC_XTENSA_SLOT11_OP, BFD_RELOC_XTENSA_SLOT12_OP,
4963 BFD_RELOC_XTENSA_SLOT13_OP, BFD_RELOC_XTENSA_SLOT14_OP,
4964 BFD_RELOC_XTENSA_SLOT0_ALT, BFD_RELOC_XTENSA_SLOT1_ALT,
4965 BFD_RELOC_XTENSA_SLOT2_ALT, BFD_RELOC_XTENSA_SLOT3_ALT,
4966 BFD_RELOC_XTENSA_SLOT4_ALT, BFD_RELOC_XTENSA_SLOT5_ALT,
4967 BFD_RELOC_XTENSA_SLOT6_ALT, BFD_RELOC_XTENSA_SLOT7_ALT,
4968 BFD_RELOC_XTENSA_SLOT8_ALT, BFD_RELOC_XTENSA_SLOT9_ALT,
4969 BFD_RELOC_XTENSA_SLOT10_ALT, BFD_RELOC_XTENSA_SLOT11_ALT,
4970 BFD_RELOC_XTENSA_SLOT12_ALT, BFD_RELOC_XTENSA_SLOT13_ALT,
4971 BFD_RELOC_XTENSA_SLOT14_ALT): Add new relocations.
4972 * Makefile.am (xtensa-isa.lo, xtensa-modules.lo): Update dependencies.
4973 * Makefile.in: Regenerate.
4974 * bfd-in2.h: Likewise.
4975 * libbfd.h: Likewise.
4976
99022dfb
RS
49772004-10-07 Richard Sandiford <rsandifo@redhat.com>
4978
4979 * elf64-mips.c (mips_elf64_write_rel): Use STN_UNDEF for relocs
4980 against the absolute section.
4981 (mips_elf64_write_rela): Likewise.
4982
b67ae299
NC
49832004-10-07 Jan Beulich <jbeulich@novell.com>
4984
4985 * elf.c (elf_find_function): Don't generally check for matching
4986 section, just for non-file symbols. Remove redunant comparison
4987 for the latter.
4988 * elf32-arm.h (arm_elf_find_function): Likewise.
4989
8fdd7217
NC
49902004-10-07 Jeff Baker <jbaker@qnx.com>
4991
4992 * elflink.c (_bfd_elf_add_dynamic_entry): Add code to warn if
4993 adding a DT_TEXTREL to a shared object and --warn-shared-textrel
4994 was specified.
4995
073a2dc3
RM
49962004-10-04 Roland McGrath <roland@redhat.com>
4997
4998 * hash.c (bfd_hash_set_default_size): Use const for table.
4999 Use size_t instead of int for variable compared to sizeof results.
5000
7785be14
AM
50012004-10-05 Alan Modra <amodra@bigpond.net.au>
5002
5003 PR 425
5004 * syms.c (_bfd_stab_section_find_nearest_line): Ignore R_*_NONE relocs.
5005
40a18ebd
NC
50062004-10-01 Paul Brook <paul@codesourcery.com>
5007
5008 * elf32-arm.h (elf32_arm_fake_sections,
5009 is_arm_elf_unwind_section_name, elf32_arm_section_from_shdr): New
5010 functions.
5011 (elf_backend_fake_sections, elf_backend_section_from_shdr): Define.
5012
8935b81f
AM
50132004-10-01 Alan Modra <amodra@bigpond.net.au>
5014
5015 * elf-bfd.h (struct eh_cie_fde): Add need_relative and
5016 need_lsda_relative.
5017 * elf-eh-frame.c (_bfd_elf_eh_frame_section_offset): Set
5018 need_relative or need_lsda_relative if we are processing an
5019 offset for a reloc on a FDE initial loc or LSDA field
5020 respectively.
5021 (_bfd_elf_write_section_eh_frame): Test need_relative and
5022 need_lsda_relative in place of corresponding make_* field
5023 when deciding to use pc-relative encodings.
5024
eeac373a
PB
50252004-09-30 Paul Brook <paul@codesourcery.com>
5026
5027 * elf32-arm.h (bfd_elf32_arm_set_target_relocs): Handle "abs"
5028 target2 relocation type.
5029
7479dfd4
L
50302004-09-30 H.J. Lu <hongjiu.lu@intel.com>
5031
5032 PR 414
5033 * elflink.c (_bfd_elf_merge_symbol): Check TLS symbol.
5034
0dd132b6
NC
50352004-09-30 Paul Brook <paul@codesourcery.com>
5036
5037 * reloc.c: Add BFD_RELOC_ARM_SMI.
5038 * bfd-in2.h: Regenerate.
5039 * libbfd.h: Ditto.
5040
1ba54ee0
AM
50412004-09-24 Alan Modra <amodra@bigpond.net.au>
5042
5043 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add output section
5044 vma and output offset to address.
5045 * simple.c (simple_save_output_info): Only set output section
5046 and offset for debug sections, or those not already set up by
5047 the linker.
5048 (bfd_simple_get_relocated_section_contents): Update comment.
5049
5efb6261
AM
50502004-09-24 Alan Modra <amodra@bigpond.net.au>
5051
5052 * elf.c (IS_LOADED): Delete.
5053 (assign_file_positions_for_segments): Just test SEC_LOAD instead.
5054 Restore SEC_HAS_CONTENTS test to the one place it was used prior
5055 to 2004-09-22.
5056
fca870e4
AM
50572004-09-23 Alan Modra <amodra@bigpond.net.au>
5058
5059 PR gas/396
5060 * elf32-sparc.c (elf32_sparc_final_write_processing): Handle
5061 bfd_mach_sparc_sparclet and bfd_mach_sparc_sparclite. Remove
5062 redundant assignment of EM_SPARC.
5063
c86696a3
BF
50642004-09-22 Brian Ford <ford@vss.fsi.com>
5065
5066 * pei-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Enable 16 byte
5067 alignment for .rdata sections so sse[2] code works with gcc >= 3.3.3
5068 constants.
5069 * pe-i386.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
5070
73adb214
AM
50712004-09-22 Alan Modra <amodra@bigpond.net.au>
5072
5073 * elf32-ppc.c (ppc_elf_modify_segment_map): Delete.
5074 (elf_backend_modify_segment_map): Don't define.
5075
b301b248
AM
50762004-09-22 Alan Modra <amodra@bigpond.net.au>
5077
5078 * elf.c (IS_LOADED): Define.
5079 (assign_file_positions_for_segments): Don't round up file offset of
5080 PT_LOAD segments containing no SEC_LOAD sections, instead round down.
5081 Delete code handling link script adjustment of lma. Do the adjust
5082 in later code handling similar ajustments. Remove dead code error
5083 check. Warn if section lma would require a negative offset
5084 adjustment. Tweak lma adjustment to use p_filesz rather than p_memsz.
5085 Use p_vaddr + p_memsz inside section loop in place of voff. Don't
5086 update voff in section loop. Change voff in segment loop to be an
5087 adjustment on top of "off". Set sec->filepos and update "off" later.
5088 Test for loadable sections consistently using IS_LOADED. Similarly,
073a2dc3 5089 test for alloc-only sections other than .tbss consistently.
b301b248
AM
5090 Don't bother checking SEC_ALLOC in PT_LOAD segments. Remove FIXME.
5091 Tidy PT_NOTE handling. Use %B and %A in error messages.
5092 (assign_file_positions_except_relocs): Use %B in error message.
5093
3f85e526
L
50942004-09-17 H.J. Lu <hongjiu.lu@intel.com>
5095
5096 * Makefile.am (AUTOMAKE_OPTIONS): Require 1.9.
5097 (CONFIG_STATUS_DEPENDENCIES): New.
5098 (Makefile): Removed.
5099 (config.status): Likewise.
5100 * Makefile.in: Regenerated.
5101
eb043451
PB
51022004-09-17 Paul Brook <paul@codesourcery.com>
5103
5104 * bfd-in.h (bfd_elf32_arm_set_target_relocs): Add prototype.
5105 (bfd_elf32_arm_process_before_allocation): Update prototype.
5106 * bfd-in2.h: Regenerate.
5107 * bfd/elf32-arm.h (elf32_arm_link_hash_table): Add target2_reloc.
5108 (elf32_arm_link_hash_table_create): Set it.
5109 (bfd_elf32_arm_process_before_allocation): Remove target1_is_rel.
5110 (bfd_elf32_arm_set_target_relocs): New function.
5111 (arm_real_reloc_type): New function.
5112 (elf32_arm_final_link_relocate): Use it. Handle R_ARM_PREL31 and
5113 R_ARM_GOT_PREL. Remove R_ARM_TARGET1.
5114 (elf32_arm_gc_sweep_hook): Ditto.
5115 (elf32_arm_check_relocs): Ditto.
5116 (elf32_arm_relocate_section): Handle R_ARM_GOT_PREL.
5117 * elfarm-nabi.c (elf32_arm_howto_table): Add R_ARM_PREL31 and
5118 R_ARM_GOT_TARGET2.
5119 (elf32_arm_got_prel): New variable.
5120 (elf32_arm_howto_from_type): New function.
5121 (elf32_arm_info_to_howto): Use it.
5122 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_PREL31 and
5123 BFD_RELOC_ARM_TARGET2.
5124 * libbfd.h: Regenerate.
5125 * reloc.c: Add BFD_RELOC_ARM_TARGET2 and BFD_RELOC_ARM_PREL31.
5126
f6e332e6
AM
51272004-09-17 Alan Modra <amodra@bigpond.net.au>
5128
5129 * ecoff.c: Update u.undef.next refs.
5130 * elf64-ppc.c: Likewise.
5131 * elflink.c: Likewise.
5132 * linker.c: Likewise.
5133 * xcofflink.c: Likewise.
5134
5135 * elf-bfd.h (struct elf_link_hash_entry): Rearrange. Add FIXME to
5136 dynamic_def. Combine weakdef and elf_hash_value. Move vtable
5137 fields to indirect struct.
5138 * elf-m10300.c: Update u.weakdef refs.
5139 * elf32-arm.h: Likewise.
5140 * elf32-cris.c: Likewise.
5141 * elf32-frv.c: Likewise.
5142 * elf32-hppa.c: Likewise.
5143 * elf32-i370.c: Likewise.
5144 * elf32-i386.c: Likewise.
5145 * elf32-m32r.c: Likewise.
5146 * elf32-m68k.c: Likewise.
5147 * elf32-ppc.c: Likewise.
5148 * elf32-s390.c: Likewise.
5149 * elf32-sh.c: Likewise.
5150 * elf32-sparc.c: Likewise.
5151 * elf32-vax.c: Likewise.
5152 * elf32-xtensa.c: Likewise.
5153 * elf64-alpha.c: Likewise.
5154 * elf64-hppa.c: Likewise.
5155 * elf64-ppc.c: Likewise.
5156 * elf64-s390.c: Likewise.
5157 * elf64-sh64.c: Likewise.
5158 * elf64-sparc.c: Likewise.
5159 * elf64-x86-64.c: Likewise.
5160 * elfxx-ia64.c: Likewise.
5161 * elfxx-mips.c: Likewise.
5162 * elflink.c: Likewise. Also u.elf_hash_value.
5163 (elf_gc_propagate_vtable_entries_used): Update for h->vtable
5164 indirection.
5165 (elf_gc_smash_unused_vtentry_relocs): Likewise.
5166 (bfd_elf_gc_record_vtinherit): Alloc vtable.
5167 (bfd_elf_gc_record_vtentry): Likewise.
5168 * elf.c (_bfd_elf_link_hash_newfunc): Use memset.
5169
90c0a373
AM
51702004-09-17 Alan Modra <amodra@bigpond.net.au>
5171
5172 * Makefile.am: Run "make dep-am".
5173 * Makefile.in: Regenerate.
5174 * bfd-in2.h: Regenerate.
5175 * po/SRC-POTFILES.in: Regenerate.
5176 * po/bfd.pot: Regenerate.
5177
f5385ebf
AM
51782004-09-16 Alan Modra <amodra@bigpond.net.au>
5179
5180 * elf-bfd.h (struct elf_link_hash_entry): Replace elf_link_hash_flags
5181 with bitfields. Make "type" and "other" bitfields too.
5182 (ELF_LINK_HASH_REF_REGULAR, ELF_LINK_HASH_DEF_REGULAR,
5183 ELF_LINK_HASH_REF_DYNAMIC, ELF_LINK_HASH_DEF_DYNAMIC,
5184 ELF_LINK_HASH_REF_REGULAR_NONWEAK, ELF_LINK_HASH_DYNAMIC_ADJUSTED,
5185 ELF_LINK_HASH_NEEDS_COPY, ELF_LINK_HASH_NEEDS_PLT, ELF_LINK_NON_ELF,
5186 ELF_LINK_HIDDEN, ELF_LINK_FORCED_LOCAL, ELF_LINK_HASH_MARK,
5187 ELF_LINK_NON_GOT_REF, ELF_LINK_DYNAMIC_DEF, ELF_LINK_DYNAMIC_WEAK,
5188 ELF_LINK_POINTER_EQUALITY_NEEDED): Delete.
5189 (ELF_COMMON_DEF_P, WILL_CALL_FINISH_DYNAMIC_SYMBOL): Update.
5190 * elf-hppa.h: Update all uses of elf_link_hash_flags.
5191 * elf-m10300.c: Likewise.
5192 * elf.c: Likewise.
5193 * elf32-arm.h: Likewise.
5194 * elf32-cris.c: Likewise.
5195 * elf32-frv.c: Likewise.
5196 * elf32-hppa.c: Likewise.
5197 * elf32-i370.c: Likewise.
5198 * elf32-i386.c: Likewise.
5199 * elf32-m32r.c: Likewise.
5200 * elf32-m68k.c: Likewise.
5201 * elf32-ppc.c: Likewise.
5202 * elf32-s390.c: Likewise.
5203 * elf32-sh-symbian.c: Likewise.
5204 * elf32-sh.c: Likewise.
5205 * elf32-sh64.c: Likewise.
5206 * elf32-sparc.c: Likewise.
5207 * elf32-vax.c: Likewise.
5208 * elf32-xtensa.c: Likewise.
5209 * elf64-alpha.c: Likewise.
5210 * elf64-hppa.c: Likewise.
5211 * elf64-ppc.c: Likewise.
5212 * elf64-s390.c: Likewise.
5213 * elf64-sh64.c: Likewise.
5214 * elf64-sparc.c: Likewise.
5215 * elf64-x86-64.c: Likewise.
5216 * elflink.c: Likewise.
5217 * elfxx-ia64.c: Likewise.
5218 * elfxx-mips.c: Likewise.
5219 * configure.in (AM_INIT_AUTOMAKE): Set version to 2.15.92.
5220 * configure: Regenerate.
5221 * aclocal.m4: Regenerate.
5222
b6ee372a
AM
52232004-09-16 Alan Modra <amodra@bigpond.net.au>
5224
5225 * elf32-arm.h (elf32_arm_gc_sweep_hook): Add #ifndef OLD_ARM_ABI
5226 around uses of R_ARM_TARGET1.
5227 (elf32_arm_check_relocs): Likewise.
5228
9c504268
PB
52292004-09-13 Paul Brook <paul@codesourcery.com>
5230
5231 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update
5232 prototype.
5233 * bfd-in2.h: Regenerate.
5234 * libbfd.h: Regenerate.
5235 * elf32-arm.h (elf32_arm_link_hash_table): Add target1_is_rel.
5236 (elf32_arm_link_hash_table_create): Set target1_is_rel.
5237 (bfd_elf32_arm_process_before_allocation): Ditto.
5238 (elf32_arm_final_link_relocate): Handle R_ARM_TARGET1.
5239 (elf32_arm_gc_sweep_hook, elf32_arm_check_relocs): Ditto.
5240 * elfarm-nabi.c (elf32_arm_howto_table): Rename RELABS to TARGET1.
5241 * reloc.c: Ditto.
5242
94ea025a
JB
52432004-09-10 Joel Brobecker <brobecker@gnat.com>
5244
5245 * hpux-core.c (thread_section_p): New function.
5246 (hpux_core_core_file_p): Fix computation of offset in call
5247 to bfd_seek. Create a ".reg" section from an arbitrary
5248 ".reg/<id>" section if none was created after having read
5249 all sections.
5250
24443139
AS
52512004-09-11 Andreas Schwab <schwab@suse.de>
5252
5253 * acinclude.m4: Fix spelling of ACX_NONCANONICAL_*.
5254 * aclocal.m4: Rebuild.
5255 * configure: Rebuild.
5256
f4eae89c
JB
52572004-09-10 Joel Brobecker <brobecker@gnat.com>
5258
5259 * section.c (bfd_sections_find_if): Fix parameter name in
5260 comment to match code.
5261
e0638f70
AM
52622004-09-10 Alan Modra <amodra@bigpond.net.au>
5263
5264 * elf.c (assign_file_positions_except_relocs): Assign relocs
5265 stored in a bfd section.
5266
5e0f5ae3
HPN
52672004-09-08 Hans-Peter Nilsson <hp@axis.com>
5268
5269 * elf32-cris.c (elf_cris_adjust_gotplt_to_got): Reset
5270 h->gotplt_refcount to 0, not -1.
5271
ada1953e
HPN
52722004-09-07 Hans-Peter Nilsson <hp@axis.com>
5273
5274 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
5275 case R_CRIS_32_GOTPLT>: For internal error message, handle NULL
5276 symname.
5277 (cris_elf_check_relocs) <case R_CRIS_32_PLT_PCREL>: Don't try to
5278 handle symbol visibility here.
5279
ee75fd95
AM
52802004-09-07 Alan Modra <amodra@bigpond.net.au>
5281
5282 * elf64-ppc.c (struct ppc_link_hash_table): Add stub_globals.
5283 (is_ppc64_elf_target): Rename from is_ppc64_target. Update all
5284 callers.
5285 (ppc_stub_name): Remove trailing "+0" on stub name.
5286 (create_linkage_sections): Create relocations for
5287 branch lookup table when --emit-relocs as well as when --shared.
5288 (ppc_build_one_stub): Emit relocs for long branch stubs. Adjust
5289 relbrlt test. For --emit-stub-syms, always output a sym even when
5290 one already exists on a plt call stub. Put stub type in the stub
5291 symbol name.
5292 (ppc_size_one_stub): Size long branch stub relocs. Adjust relbrlt
5293 test.
5294 (ppc64_elf_size_stubs): Count global sym stubs added. Zero
5295 reloc_count in stub sections. Adjust relbrlt test.
5296 (ppc64_elf_build_stubs): Adjust relbrlt test. Tweak stats output.
5297 * elflink.c (bfd_elf_size_dynamic_sections): Fix comment typo.
5298 (elf_link_input_bfd): Ignore symbol index zero relocs when checking
5299 for relocs against discarded symbols. Fix comments.
5300
229fcec5
MM
53012004-09-06 Mark Mitchell <mark@codesourcery.com>
5302
5303 * elf-bfd.h (_bfd_elf_make_dynamic_segment): Declare it.
5304 * elf.c (_bfd_elf_make_dynamic_segment): New function, split out
5305 from ...
5306 (map_sections_to_segments): ... here. Use it. Assign a file
5307 position to the .dynamic section if it is not loadable, but part
5308 of the PT_DYNAMIC segment.
5309 * elf32-arm.h (elf32_arm_finish_dynamic_sections): Use file
5310 offsets, not VMAs, for the BPABI. Do not fill in the header in
5311 the .got.plt section for the BPABI.
5312 * elfarm-nabi.c (elf32_arm_symbian_modify_segment_map): Add a
5313 PT_DYNAMIC segment.
5314 (elf_backend_want_got_plt): Define to zero for Symbian OS.
073a2dc3 5315
9a0789ec
NC
53162004-09-06 Nick Clifton <nickc@redhat.com>
5317
5318 * elflink.c (elf_link_add_object_symbols): Set the error code to
5319 bfd_error_wrong_format when the input format does not match the
5320 output format.
5321
7b53ace3
AM
53222004-09-06 Alan Modra <amodra@bigpond.net.au>
5323
5324 * elf64-ppc.c (is_ppc64_target): New function, extracted from..
5325 (ppc64_elf_check_directives): ..here.
5326 (ppc64_elf_size_dynamic_sections): Use it here to check bfd type
5327 before accessing ppc64_elf_tdata.
5328 (ppc64_elf_finish_dynamic_sections): And here too.
5329
3e540f25
AM
53302004-09-04 Alan Modra <amodra@bigpond.net.au>
5331
5332 * bfd.c (_bfd_default_error_handler): Correct loop exit.
5333
e5a52504
MM
53342004-09-03 Mark Mitchell <mark@codesourcery.com>
5335
5336 * config.bfd (arm*-*-symbianelf*): Use OS-specific target vectors.
5337 * configure.in (bfd_elf32_bigarm_symbian_vec): Add it.
5338 (bfd_elf32_littlearm_symbian_vec): Likewise.
5339 * configure: Regenerated.
5340 * elf-bfd.h (elf_backend_data): Add dynamic_sec_flags.
5341 * elf32-arm.h (PLT_HEADER_SIZE): Do not define.
5342 (PLT_ENTRY_SIZE): Likewise.
5343 (bfd_vma_elf32_arm_symbian_plt_entry): New
5344 variable.
5345 (elf32_arm_link_hash_table): Add plt_header_size, plt_entry_size,
5346 and symbian_p.
5347 (create_got_section): Don't create sections when generating BPABI
5348 objects.
5349 (elf32_arm_create_dynamic_sections): Tidy.
5350 (elf32_arm_link_hash_table_create): Set plt_header_size,
5351 plt_entry_size, and symbian_p.
5352 (elf32_arm_check_relocs): Do not mark .rel.dyn as loadable when
5353 generating BPABI objects.
5354 (allocate_dynrelocs): Use htab->plt_header_size, not
5355 PLT_HEADER_SIZE. Do not add to .got.plt when
5356 generating BPABI objects.
5357 (elf32_arm_finish_dynamic_symbol): Generate Symbian OS PLTs.
5358 * elfarm-nabi.c: Add SymbianOS target vectors.
5359 * elflink.c (_bfd_elf_create_got_section): Use dynamic_sec_flags.
5360 (_bfd_elf_link_create_dynamic_sections): Likewise.
5361 * elfxx-target.h (ELF_DYNAMIC_SEC_FLAGS): New macro.
5362 (elfNN_bed): Use it.
5363 * targets.c (bfd_elf32_bigarm_symbian_vec): New variable.
5364 (bfd_elf32_littlearm_symbian_vec): Likewise.
5365 (_bfd_target_vector): Add them.
5366
6e3b6835
NC
53672004-09-03 Nick Clifton <nickc@redhat.com>
5368
5369 PR 360
5370 * coffcode.h (handle_COMDAT): Replace abort with an warning
5371 message and allow the scan to continue.
5372
595da8c5
AM
53732004-09-02 Alan Modra <amodra@bigpond.net.au>
5374
5375 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Use static_syms passed
5376 in when reading relocs, not our sorted syms. Remove unnecessary
5377 var.
5378
6723a9f4
EB
53792004-08-31 Eric Botcazou <ebotcazou@libertysurf.fr>
5380
5381 * elf.c (special_sections): Add .gnu.linkonce.b modelled on .bss.
5382
5464f5a1
NN
53832004-08-30 Nathanael Nerode <neroden@gcc.gnu.org>
5384
5385 * acinclude.m4: Require AC_CANONICAL_TARGET, not AC_CANONICAL_SYSTEM.
5386 Include ../config/acx.m4 and use ACX_NONCANONICAL_* where appropriate;
5387 replace uses of *_alias with *_noncanonical.
5388 * aclocal.m4: Rebuild with aclocal 1.4p6.
5389 * Makefile.in: Rebuild with automake 1.4p6.
5390 * doc/Makefile.in: Rebuild with automake 1.4p6.
5391 * configure.in: Autoupdate with autoupdate 2.59.
5392 * config.in: Regenerate with autoheader 2.59.
5393 * configure: Regnerate with autoconf 2.59.
5394
a7535cf3
AM
53952004-08-28 Alan Modra <amodra@bigpond.net.au>
5396
5397 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Copy input
5398 symbol pointer arrays before modifying.
5399
c9727e01
AM
54002004-08-28 Alan Modra <amodra@bigpond.net.au>
5401
b91e2ae2 5402 * bfd.c (bfd_get_synthetic_symtab): Pass counts and both symbol tables.
c9727e01
AM
5403 * elf-bfd.h (_bfd_elf_get_synthetic_symtab): Adjust.
5404 * elf.c (_bfd_elf_get_synthetic_symtab): Adjust.
5405 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Adjust.
b91e2ae2
AM
5406 * targets.c (struct bfd_target <_bfd_get_synthetic_symtab>): Adjust.
5407 * elf64-ppc.c (ppc64_elf_get_synthetic_symtab): Don't read symbols.
5408 Use both symbol tables on non-relocatable objects. Use a common
5409 error exit. Fix "mid" warning.
c9727e01
AM
5410 * libbfd.h: Regenerate.
5411 * bfd-in2.h: Regenerate.
5412
699733f6
AM
54132004-08-28 Alan Modra <amodra@bigpond.net.au>
5414
5415 * elf64-ppc.c (ppc64_elf_branch_reloc): Check .opd is in a regular
5416 object file.
5417 (struct sfpr_def_parms): Save some space.
5418 (sfpr_define): Here too.
5419
5420 * elf64-ppc.c (compare_symbols): Put section syms first.
5421 (sym_exists_at): New function.
5422 (ppc64_elf_get_synthetic_symtab): Use relocs to find code entry
5423 points only for relocatable files. Use .opd section contents
5424 otherwise. Generally clean up the code.
5425
deb0e272
AM
54262004-08-27 Alan Modra <amodra@bigpond.net.au>
5427
5428 * elf64-ppc.c (STD_R0_0R1, STD_R0_0R12, LD_R0_0R1, LD_R0_0R12,
5429 LI_R12_0, STVX_VR0_R12_R0, LVX_VR0_R12_R0, MTLR_R0, SFPR_MAX): Define.
5430 (struct sfpr_def_parms): New.
5431 (sfpr_define): New function.
5432 (savegpr0, savegpr0_tail, restgpr0, restgpr0_tail): New functions.
5433 (savegpr1, savegpr1_tail, restgpr1, restgpr1_tail): New functions.
5434 (savefpr, savefpr0_tail, restfpr, restfpr0_tail): New functions.
5435 (savefpr1_tail, restfpr1_tail): New functions.
5436 (savevr, savevr_tail, restvr, restvr_tail): New functions.
5437 (MIN_SAVE_FPR, MAX_SAVE_FPR): Don't define.
5438 (ppc64_elf_func_desc_adjust): Use sfpr_define in place of existing
5439 code. Define all ABI mandated _save and _rest functions.
5440
85a84e7a
PB
54412004-08-26 Paul Brook <paul@codesourcery.com>
5442
deb0e272 5443 * elf32-arm.h (INTERWORK_FLAG): Return true for EABIv3 objects.
85a84e7a 5444
688c58f3
AM
54452004-08-26 Alan Modra <amodra@bigpond.net.au>
5446
5447 * elf32-m32r.c (m32r_elf_relocate_section): Don't compare with
5448 TRUE or FALSE.
5449
3e95eabc
AM
54502004-08-26 Alan Modra <amodra@bigpond.net.au>
5451
5452 * elf32-i386.c (elf_i386_relocate_section): Tweak last change so
5453 that pcrel correction is applied for R_386_PC32.
5454
f855931b
AM
54552004-08-25 Alan Modra <amodra@bigpond.net.au>
5456
5457 * elf32-i386.c (elf_i386_relocate_section): Zero section contents
5458 for R_386_32 and R_386_PC32 relocs against symbols defined in
5459 discarded sections.
5460
b18c562e
NC
54612004-08-25 Dmitry Diky <diwil@spec.ru>
5462
5463 * reloc.c (BFD_RELOC_MSP430_2X_PCREL,BFD_RELOC_MSP430_RL_PCREL):
5464 Add new relocations.
5465 * bfd-in2.h: Regenerate.
f855931b 5466 * libbfd.h: Regenerate.
b18c562e
NC
5467 * elf32-msp430.c: Clean-up code.
5468 (elf_msp430_howto_table): Add new relocation entries.
5469 (bfd_elf32_bfd_reloc_type_lookup): New relocation handlers.
5470 (msp430_elf_relax_section): New function.
5471 (msp430_elf_relax_delete_bytes): New function.
5472 (msp430_elf_symbol_address_p): New function.
5473
af705ba8
NC
54742004-08-24 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
5475
5476 * elf32-m32r.c (m32r_elf_relocate_section): Handle
5477 R_M32R_SDA16_RELA in the same way as R_M32R_SDA16.
5478
ea5158d8
DJ
54792004-08-20 Daniel Jacobowitz <dan@debian.org>
5480
5481 * elflink.c (_bfd_elf_section_already_linked): Handle
5482 SEC_LINK_DUPLICATES_SAME_CONTENTS.
5483
49d934f1
MM
54842004-08-19 Mark Mitchell <mark@codesourcery.com>
5485
5486 * config.bfd (arm*-*-symbianelf*): New target.
5487 (arm*-*-eabi*): Likewise.
5488
039b3fef
AM
54892004-08-19 Alan Modra <amodra@bigpond.net.au>
5490
5491 * elf64-ppc.c (ppc_get_stub_entry): Change third param to a
5492 "struct ppc_link_hash_entry *".
5493 (ppc64_elf_relocate_section): Ditto for type of h. Introduce h_elf
5494 to satisfy RELOC_FOR_GLOBAL_SYMBOL.
5495
3f764659
JJ
54962004-08-19 Jakub Jelinek <jakub@redhat.com>
5497
5498 * elf64-ppc.c (ppc64_elf_edit_opd): Support 16 byte long .opd
5499 entries (where fd_aux overlaps next entry's fd_func).
5500 Add non_overlapping argument, use it.
5501 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, adjust_opd_syms,
5502 ppc64_elf_size_stubs, ppc64_elf_relocate_section,
5503 ppc64_elf_output_symbol_hook): Use address / 8 instead of address / 24
5504 as indexes into opd_sym_map/opd_adjust array.
5505 * elf64-ppc.h (ppc64_elf_edit_opd): Adjust prototype.
5506
c09bdfe5
AM
55072004-08-18 Alan Modra <amodra@bigpond.net.au>
5508
5509 * elf64-ppc.c (func_desc_adjust): Give undefined dot-symbols a value
5510 if we can look up their function descriptor in a regular file.
5511
271d0fc3
NC
55122004-08-18 Nick Clifton <nickc@redhat.com>
5513
5514 PR 324
5515 * cofflink.c (coff_link_add_symbols): Check that the comdat
5516 pointer in the coff_section_data structure has been initialised
5517 before using it.
5518
a010d60f
AM
55192004-08-18 Alan Modra <amodra@bigpond.net.au>
5520
5521 PR 338
5522 * elflink.c (bfd_elf_record_link_assignment): Add comment about
5523 changing bfd_link_hash_undefined to bfd_link_hash_new.
5524
90e3cdf2
JJ
55252004-08-17 Jakub Jelinek <jakub@redhat.com>
5526
5527 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Only define
5528 if not yet defined.
5529 * elf64-ppc.c (bfd_elf64_get_synthetic_symtab): Define.
5530 (synthetic_opd, synthetic_relocatable): New variables.
5531 (compare_symbols, compare_relocs): New helper routines.
5532 (ppc64_elf_get_synthetic_symtab): New function.
5533 * bfd.c (bfd_get_synthetic_symtab): Rename dynsyms argument
5534 to relsyms.
5535 * bfd-in2.h: Regenerated.
5536 * elf.c (_bfd_elf_get_synthetic_symtab): Rename dynsyms argument
5537 to relsyms. Return 0 if abfd is relocatable.
5538
7c2c8505
AM
55392004-08-17 Alan Modra <amodra@bigpond.net.au>
5540
5541 * elflink.h (elf_gc_sweep): Keep non-alloc, non-load sections.
5542
0367ecfb
NC
55432004-08-17 Nick Clifton <nickc@redhat.com>
5544
5545 * (is_arm_mapping_symbol_name): New function - return true
5546 when a symbol name matches the requirements for an ARM mapping
5547 symbol name.
5548 (arm_elf_find_function): New function based on
5549 elf_find_function in elf.c but skipping ARM mapping symbols
5550 and including thumb function symbols.
5551 (elf32_arm_find_nearest_line): Use arm_elf_find_function.
5552 (elf32_arm_output_symbol_hook): Use is_arm_mapping_symbol_name.
5553
2441e016
AM
55542004-08-17 Alan Modra <amodra@bigpond.net.au>
5555
5556 * elf64-ppc.c (ppc64_elf_branch_reloc): New function.
5557 (ppc64_elf_howto_raw): Use ppc64_elf_branch_reloc.
5558 (ppc64_elf_brtaken_reloc): Here too.
5559
35b0ce59
AM
55602004-08-17 Alan Modra <amodra@bigpond.net.au>
5561
5562 * elf64-ppc.c (add_symbol_adjust): Correct mismatched function
5563 symbol visibility.
5564 (ppc64_elf_check_directives): Check that we have the right hash
5565 table before proceeding.
5566
81688140
AM
55672004-08-17 Alan Modra <amodra@bigpond.net.au>
5568
5569 * elf64-ppc.c (struct ppc64_elf_obj_tdata): Add "deleted_section".
5570 (adjust_opd_syms): Attach opd syms for deleted entries to one of
5571 the sections that will be discarded.
5572
327c1315
AM
55732004-08-16 Alan Modra <amodra@bigpond.net.au>
5574
5575 * elflink.c (elf_section_complain_discarded): Ignore .fixup.
5576
45fc9e4a
AM
55772004-08-16 Alan Modra <amodra@bigpond.net.au>
5578
5579 * bfd.c (_bfd_default_error_handler): Account for doubled '%' in
5580 free space available.
5581
9dadfa79
AM
55822004-08-16 Alan Modra <amodra@bigpond.net.au>
5583
5584 * pdp11.c (struct pdp11_aout_reloc_external): Delete. Replace
f89c4dec 5585 occurrences with bfd_byte * thoughout file.
9dadfa79
AM
5586
5587 * coff-rs6000.c (do_shared_object_padding): Warning fix.
5588 (xcoff_write_armap_big): Likewise.
5589 (xcoff_write_archive_contents_old): Likewise.
5590 (xcoff_write_archive_contents_big): Likewise.
5591
5592 * elf64-mmix.c (mmix_elf_get_section_contents): Delete declaration.
5593
57e8b36a
NC
55942004-08-13 Nick Clifton <nickc@redhat.com>
5595
5596 * elf32-arm.h: Convert to ISO C90.
5597
a005f94e
AM
55982004-08-13 Alan Modra <amodra@bigpond.net.au>
5599
5600 PR 293
5601 * elf32-hppa.c (elf32_hppa_hide_symbol): Use init_refcount to
5602 zero the plt field.
5603
d003868e
AM
56042004-08-13 Alan Modra <amodra@bigpond.net.au>
5605
5606 * bfd.c (_bfd_default_error_handler): Handle %A and %B.
5607 (bfd_archive_filename, bfd_get_section_ident): Delete.
5608 * ecofflink.c (bfd_ecoff_debug_accumulate_other): Don't call
5609 bfd_archive_filename.
5610 * elflink.c (elf_link_input_bfd): Don't use callbacks->error_handler
5611 to warn about symbols in discarded sections. Use _bfd_error_handler.
5612 * aout-adobe.c (aout_adobe_callback): See below.
5613 * aout-cris.c (swap_ext_reloc_in): ..
5614 * coff-arm.c (find_thumb_glue, find_arm_glue,
5615 coff_arm_relocate_section, bfd_arm_process_before_allocation,
5616 coff_arm_merge_private_bfd_data, _bfd_coff_arm_set_private_flags,
5617 coff_arm_copy_private_bfd_data): ..
5618 * coff-i860.c (i860_reloc_processing): ..
5619 * coff-mcore.c (mcore_coff_unsupported_reloc,
5620 coff_mcore_relocate_section): ..
5621 * coff-ppc.c (coff_ppc_relocate_section): ..
5622 * coff-rs6000.c (xcoff_create_csect_from_smclas
5623 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
5624 sh_swap_insns, sh_relocate_section): ..
5625 * coff-tic54x.c (tic54x_reloc_processing): ..
5626 * coff-tic80.c (coff_tic80_relocate_section): ..
5627 * coff64-rs6000.c (xcoff64_create_csect_from_smclas): ..
5628 * coffcode.h (styp_to_sec_flags, coff_slurp_line_table,
5629 coff_slurp_symbol_table, coff_classify_symbol,
5630 coff_slurp_reloc_table): ..
5631 * coffgen.c (_bfd_coff_read_string_table): ..
5632 * cofflink.c (coff_link_add_symbols, _bfd_coff_link_input_bfd,
5633 _bfd_coff_generic_relocate_section): ..
5634 * cpu-arm.c (bfd_arm_merge_machines): ..
5635 * cpu-sh.c (sh_merge_bfd_arch): ..
5636 * elf-hppa.h (elf_hppa_relocate_section): ..
5637 * elf.c (bfd_elf_string_from_elf_section, setup_group,
5638 _bfd_elf_setup_group_pointers, bfd_section_from_shdr,
5639 assign_section_numbers, _bfd_elf_symbol_from_bfd_symbol,
5640 copy_private_bfd_data, _bfd_elf_validate_reloc): ..
5641 * elf32-arm.h (find_thumb_glue, find_arm_glue,
5642 bfd_elf32_arm_process_before_allocation, elf32_thumb_to_arm_stub,
5643 elf32_arm_to_thumb_stub, elf32_arm_final_link_relocate,
5644 elf32_arm_relocate_section, elf32_arm_set_private_flags,
5645 elf32_arm_copy_private_bfd_data, elf32_arm_merge_private_bfd_data): ..
5646 * elf32-cris.c (cris_elf_relocate_section, cris_elf_check_relocs,
5647 cris_elf_merge_private_bfd_data
5648 * elf32-frv.c (elf32_frv_relocate_section, elf32_frv_check_relocs): ..
5649 * elf32-gen.c (elf32_generic_link_add_symbols): ..
5650 * elf32-hppa.c (hppa_add_stub, hppa_build_one_stub,
5651 elf32_hppa_check_relocs, get_local_syms, final_link_relocate,
5652 elf32_hppa_relocate_section): ..
5653 * elf32-i370.c (i370_elf_merge_private_bfd_data,
5654 i370_elf_check_relocs, i370_elf_relocate_section): ..
5655 * elf32-i386.c (elf_i386_info_to_howto_rel, elf_i386_check_relocs,
5656 elf_i386_relocate_section): ..
5657 * elf32-m32r.c (m32r_elf_relocate_section,
5658 m32r_elf_merge_private_bfd_data): ..
5659 * elf32-m68hc1x.c (m68hc12_add_stub,
5660 _bfd_m68hc11_elf_merge_private_bfd_data): ..
5661 * elf32-m68k.c (elf_m68k_relocate_section): ..
5662 * elf32-mcore.c (mcore_elf_unsupported_reloc,
5663 mcore_elf_relocate_section): ..
5664 * elf32-ppc.c (ppc_elf_merge_private_bfd_data, bad_shared_reloc,
5665 ppc_elf_check_relocs, ppc_elf_relocate_section,
5666 ppc_elf_begin_write_processing): ..
5667 * elf32-s390.c (elf_s390_check_relocs, invalid_tls_insn,
5668 elf_s390_relocate_section): ..
5669 * elf32-sh-symbian.c (sh_symbian_import_as,
5670 sh_symbian_process_embedded_commands,
5671 sh_symbian_relocate_section): ..
5672 * elf32-sh.c (sh_elf_relax_section, sh_elf_relax_delete_bytes,
5673 sh_elf_swap_insns, sh_elf_relocate_section, sh_elf_check_relocs,
5674 sh_elf_merge_private_data): ..
5675 * elf32-sparc.c (elf32_sparc_check_relocs,
5676 elf32_sparc_relocate_section,
5677 elf32_sparc_merge_private_bfd_data): ..
5678 * elf32-v850.c (v850_elf_check_relocs,
5679 v850_elf_merge_private_bfd_data): ..
5680 * elf32-xtensa.c (elf_xtensa_check_relocs,
5681 elf_xtensa_relocate_section, elf_xtensa_merge_private_bfd_data): ..
5682 * elf64-alpha.c (elf64_alpha_relax_with_lituse,
5683 elf64_alpha_relax_got_load, elf64_alpha_size_got_sections,
5684 elf64_alpha_relocate_section_r, elf64_alpha_relocate_section): ..
5685 * elf64-gen.c (elf64_generic_link_add_symbols): ..
5686 * elf64-ppc.c (ppc64_elf_merge_private_bfd_data, ppc_add_stub,
5687 ppc64_elf_check_relocs, ppc64_elf_edit_opd,
5688 ppc64_elf_relocate_section): ..
5689 * elf64-s390.c (elf_s390_check_relocs, invalid_tls_insn,
5690 elf_s390_relocate_section): ..
5691 * elf64-sh64.c (sh_elf64_relocate_section): ..
5692 * elf64-sparc.c (sparc64_elf_check_relocs,
5693 sparc64_elf_add_symbol_hook, sparc64_elf_relocate_section,
5694 sparc64_elf_merge_private_bfd_data): ..
5695 * elf64-x86-64.c (elf64_x86_64_check_relocs,
5696 elf64_x86_64_relocate_section): ..
5697 * elflink.c (_bfd_elf_add_default_symbol,
5698 _bfd_elf_link_assign_sym_version, elf_link_read_relocs_from_section,
5699 _bfd_elf_link_output_relocs, elf_link_add_object_symbols,
5700 bfd_elf_size_dynamic_sections, elf_link_output_extsym,
5701 elf_get_linked_section_vma, elf_fixup_link_order,
5702 bfd_elf_final_link, bfd_elf_gc_record_vtinherit,
5703 bfd_elf_gc_record_vtinherit, _bfd_elf_section_already_linked): ..
5704 * elfxx-ia64.c (elfNN_ia64_relax_section,
5705 elfNN_ia64_relocate_section, elfNN_ia64_merge_private_bfd_data): ..
5706 * elfxx-mips.c (mips_elf_perform_relocation,
5707 _bfd_mips_elf_check_relocs,
5708 _bfd_mips_elf_merge_private_bfd_data): ..
5709 * ieee.c (ieee_slurp_external_symbols): ..
5710 * ihex.c (ihex_bad_byte, ihex_scan, ihex_read_section): ..
5711 * libbfd.c (_bfd_generic_verify_endian_match): ..
5712 * linker.c (_bfd_generic_link_add_one_symbol,
5713 _bfd_generic_section_already_linked): ..
5714 * pdp11.c (translate_to_native_sym_flags): ..
5715 * pe-mips.c (coff_pe_mips_relocate_section): ..
5716 * peicode.h (pe_ILF_build_a_bfd): ..
5717 * srec.c (srec_bad_byte): ..
5718 * stabs.c (_bfd_link_section_stabs): ..
5719 * xcofflink.c (xcoff_link_add_symbols, xcoff_link_input_bfd): ..
5720 Replace all uses of bfd_archive_filename and bfd_get_section_ident
5721 with corresponding %B and %A in _bfd_error_handler format string.
5722 Replace occurrences of "fprintf (stderr," with _bfd_error_handler
5723 calls to use %A and %B. Fix "against symbol .. from section" and
5724 similar error messages. Combine multiple _bfd_error_handler calls
5725 where they were separated due to bfd_archive_filename deficiencies.
5726 * bfd-in2.h: Regenerate.
5727
6ba842b6
L
57282004-08-12 H.J. Lu <hongjiu.lu@intel.com>
5729
5730 * elf32-i386.c (elf_i386_relocate_section): Report unrecognized
5731 relocation.
5732
99877b66
AM
57332004-08-10 Alan Modra <amodra@bigpond.net.au>
5734
5735 * elf64-ppc.c (struct ppc_link_hash_entry): Add was_undefined.
5736 (struct ppc_link_hash_table): Remove no_multi_toc, multi_toc_needed.
5737 Make emit_stub_syms, stub_error and has_14bit_branch bit-fields.
5738 Add twiddled_syms.
5739 (link_hash_newfunc): Init was_undefined.
5740 (add_symbol_adjust): Don't set undefined dot symbols to defweak;
5741 Use undefweak instead.
5742 (ppc64_elf_check_directives): Fix undefs chain.
5743 (ppc64_elf_next_toc_section): Remove no_multi_toc and multi_toc_needed
5744 references.
5745 (ppc64_elf_size_stubs): Adjust for add_symbol_adjust change.
5746 (undo_symbol_twiddle, ppc64_elf_restore_symbols): New functions.
5747 * elf64-ppc.h (ppc64_elf_restore_symbols): Declare.
5748
ba3bee0b
JJ
57492004-08-09 Jakub Jelinek <jakub@redhat.com>
5750
5751 * elf64-x86-64.c (elf64_x86_64_relocate_section): For -fno-pic
5752 error, test input_section flags rather than sec.
5753
8387904d
AM
57542004-08-09 Alan Modra <amodra@bigpond.net.au>
5755
5756 * elf-bfd.h (struct elf_backend_data): Add
5757 elf_backend_archive_symbol_lookup.
5758 (_bfd_elf_archive_symbol_lookup): Declare.
5759 * elflink.c (_bfd_elf_archive_symbol_lookup): New function..
5760 (elf_link_add_archive_symbols): ..extracted from here. Call the
5761 backend version.
5762 * elfxx-target.h (elf_backend_archive_symbol_lookup): Provide default.
5763 (elfNN_bed): Init new field.
5764 * elf64-ppc.c (elf_backend_check_directives): Define.
5765 (elf_backend_archive_symbol_lookup): Define.
5766 (struct ppc_link_hash_table): Add tls_get_add_fd. Make tls_get_add
5767 a ppc_link_hash_entry pointer.
5768 (get_fdh): Move.
5769 (ppc64_elf_archive_symbol_lookup, opd_entry_value): New functions.
5770 (add_symbol_adjust, ppc64_elf_check_directives): New functions.
5771 (ppc64_elf_check_relocs, ppc64_elf_gc_mark_hook, func_desc_adjust,
5772 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_tls_setup,
5773 ppc64_elf_tls_optimize, allocate_dynrelocs, ppc_type_of_stub,
5774 ppc_build_one_stub, ppc64_elf_size_stubs, ppc64_elf_relocate_section,
5775 ppc64_elf_finish_dynamic_symbol): Handle branch relocs to function
5776 descriptor symbols.
5777
b25116a9
AM
57782004-08-09 Alan Modra <amodra@bigpond.net.au>
5779
8843416a
AM
5780 * elf64-ppc.c (struct ppc_link_hash_entry): Expand adjust_done comment.
5781 (ppc64_elf_add_symbol_hook): Test for NULL section.
5782 (get_sym_h): Formatting.
5783 (ppc64_elf_size_stubs): Include reloc addend in value stored as
5784 stub target_value.
5785
b25116a9
AM
5786 * elf64-ppc.c (ppc64_elf_relocate_section): Combine handling of
5787 long branch stubs with code handling plt and r2off branch stubs.
5788
ccfa59ea
AM
57892004-08-09 Alan Modra <amodra@bigpond.net.au>
5790
5791 * elf-bfd.h (_bfd_elf_gc_mark): Declare.
5792 * elflink.c (elf_link_input_bfd): Formatting.
5793 (_bfd_elf_gc_mark): Rename from elf_gc_mark and make global. Adjust
5794 all callers.
5795 * elf64-ppc.c (struct ppc_link_hash_entry): Remove is_entry.
5796 (link_hash_newfunc): Don't set it.
5797 (ppc64_elf_copy_indirect_symbol): Nor copy it.
5798 (ppc64_elf_mark_entry_syms): Delete.
5799 (ppc64_elf_gc_mark_hook): Mark entry syms here. Also mark opd
5800 sections. Use get_opd_info.
5801 * elf64-ppc.h (ppc64_elf_mark_entry_syms): Delete.
5802
4025353c
AM
58032004-08-09 Alan Modra <amodra@bigpond.net.au>
5804
4f800a42
AM
5805 * elf64-ppc.c (adjust_opd_syms): Fix merge error.
5806
06da1e8e
AM
5807 * elf64-ppc.c (struct ppc_link_hash_table): Remove have_undefweak.
5808 (func_desc_adjust): Don't set have_undefweak.
5809 (ppc64_elf_func_desc_adjust): Don't add an extr nop to sfpr.
5810 (ppc64_elf_relocate_section): NOP out calls to undefweak functions.
5811
34814b9f
AM
5812 * elf64-ppc.c (struct ppc_link_hash_entry): Make "oh" a
5813 "struct ppc_link_hash_entry *". Adjust all references.
5814 (ppc64_elf_hide_symbol): Correct a comment.
5815
4025353c
AM
5816 * elf64-ppc.c (get_opd_info): New function.
5817 (adjust_opd_syms): Use get_opd_info. Define removed symbols as zero.
5818 (ppc64_elf_edit_opd): Use get_opd_info. Check that sym has a dot
5819 before calling get_fdh. Test fdh rather than h before dereferencing
5820 fdh. Mark removed symbols in opd_adjust.
5821 (ppc64_elf_tls_optimize): Don't bother with opd adjustment here.
5822 (ppc64_elf_relocate_section): Use get_opd_info, and handle removed
5823 opd symbols.
5824 (ppc64_elf_output_symbol_hook): Likewise.
5825
db6579d4
PB
58262004-08-06 Paul Brook <paul@codesourcery.com>
5827
5828 * elfarm-nabi.c (elf32_arm_howto_table): Add new EABI relocations.
5829 (elf32_arm_reloc_map): Add BFD_RELOC_ARM_RELABS32,
5830 BFD_RELOC_ARM_ROSEGREL32 and BFD_RELOC_ARM_SBREL32.
5831 * reloc.c: Add BFD_RELOC_ARM_RELABS32, BFD_RELOC_ARM_ROSEGREL32
5832 and BFD_RELOC_ARM_SBREL32.
5833 * bfd-in2.h, bbfd.h: Regenerate.
5834
a4d0f181
TS
58352004-08-01 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5836
5837 * elfxx-mips.c (mips_elf_calculate_relocation): Test only for
5838 the dynamic link symbol actually in use.
5839
83774818
SC
58402004-08-01 Stephane Carrez <stcarrez@nerim.fr>
5841
5842 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs): Handle bfd_link_hash_new
5843
a4d0f181 58442004-07-31 Joel Brobecker <brobecker@gnat.com>
00b4930b
TS
5845 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
5846
5847 * elfxx-mips.c (_bfd_mips_elf_symbol_processing): Handle
5848 SHN_MIPS_TEXT and SHN_MIPS_DATA.
5849
185d09ad
L
58502004-07-30 H.J. Lu <hongjiu.lu@intel.com>
5851 Nick Clifton <nickc@redhat.com>
5852
5853 PR 290
5854 * bfd.c (_bfd_default_error_handler): Make it global.
5855
5856 * elf-bfd.h (elf_backend_data): Add link_order_error_handler.
5857
5858 * elf.c (assign_section_numbers): Cope gracefully with sections
5859 which have SHF_LINK_ORDER set but no sh_link set up.
5860 * elflink.c (elf_get_linked_section_vma): Likewise.
5861
5862 * elfxx-ia64.c (elf_backend_link_order_error_handler): New. Set
5863 it to NULL.
5864
5865 * elfxx-target.h (elf_backend_link_order_error_handler): New.
5866 Set it to _bfd_default_error_handler.
5867 (elfNN_bed): Add elf_backend_link_order_error_handler.
5868
5869 * libbfd-in.h (_bfd_default_error_handler): New.
5870
5871 * libbfd.h: Regenerated.
5872
7946e94a
JJ
58732004-07-30 Jakub Jelinek <jakub@redhat.com>
5874
5875 * archures.c (bfd_mach_sparc_64bit_p): Define.
5876 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Use it.
5877 * bfd-in2.h: Rebuilt.
5878
1d70c7fb
AO
58792004-07-29 Alexandre Oliva <aoliva@redhat.com>
5880
5881 Introduce SH2a support.
5882 2004-02-18 Corinna Vinschen <vinschen@redhat.com>
5883 * archures.c (bfd_mach_sh2a_nofpu): New.
5884 * bfd-in2.h: Rebuilt.
5885 * cpu-sh.c (SH2A_NOFPU_NEXT): New.
5886 (arch_info_struct): Add sh2a_nofpu.
5887 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a_nofpu.
5888 2003-12-29 DJ Delorie <dj@redhat.com>
5889 * reloc.c: Add relocs for sh2a.
5890 * bfd-in2.h: Regenerate.
5891 * libbfd.hh: Regenerate.
5892 2003-12-01 Michael Snyder <msnyder@redhat.com>
5893 * archures.c (bfd_mach_sh2a): New.
5894 * bfd-in2.h: Rebuilt.
5895 * cpu-sh.c (SH_NEXT, SH2_NEXT, etc.): Change defines to enums.
5896 (SH2A_NEXT): New.
5897 (arch_info_struct): Add sh2a.
5898 * elf32-sh.c (sh_elf_set_mach_from_flags): Handle sh2a.
5899
404ed0cf
DA
59002004-07-28 Nick Clifton <nickc@redhat.com>
5901 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
5902
5903 PR 273
5904 * som.c (setup_sections): Improve estimation of space sizes in
5905 relocatable objects.
5906
225247f0
JT
59072004-07-27 Jason Thorpe <thorpej@wasabisystems.com>
5908 * config.bfd (hppa*-*-netbsd*): Set targ_defvec to
5909 bfd_elf32_hppa_nbsd_vec. Add bfd_elf32_hppa_linux_vec
5910 to targ_selvecs.
5911 * configure.in (bfd_elf32_hppa_nbsd_vec): Add case.
5912 * configure: Regenerate.
5913 * elf32-hppa.c (elf32_hppa_object_p): Add "elf32-hppa-netbsd"
5914 case that accepts OSABI=NetBSD and OSABI=SysV.
5915 (elf32_hppa_set_gp): For "elf32-hppa-netbsd", set the GP to
5916 the base of .got or .data (if .got does not exist).
5917 (elf32_hppa_post_process_headers): For elf32-hppa-netbsd,
5918 set OSABI=NetBSD.
5919 (TARGET_BIG_SYM): Add bfd_elf32_hppa_nbsd_vec case.
5920 (TARGET_BIG_NAME): Add "elf32-hppa-netbsd" case.
5921 * targets.c (bfd_elf32_hppa_nbsd_vec): Add extern declaration.
5922 (_bfd_target_vector): Add bfd_elf32_hppa_nbsd_vec.
5923
3d7f7666
L
59242004-07-27 H.J. Lu <hongjiu.lu@intel.com>
5925
5926 PR 161/251
5927 * elf-bfd.h (bfd_elf_section_data): Add sec_group.
5928 (elf_sec_group): Defined.
5929 (bfd_elf_match_symbols_in_sections): New prototype.
5930 (_bfd_elf_setup_group_pointers): Likewise.
5931
5932 * elf.c (bfd_elf_discard_group): Abort.
5933 (bfd_elf_set_group_contents): Also include relocation sections.
5934 Remove zero-fill for ld -r.
5935 (_bfd_elf_setup_group_pointers): New function.
5936 (elf_sort_elf_symbol): Likewise.
5937 (elf_sym_name_compare): Likewise.
5938 (bfd_elf_match_symbols_in_sections): Likewise.
5939
5940 * elfcode.h (elf_object_p): Call _bfd_elf_setup_group_pointers.
5941
5942 * elflink.c (match_group_member): New.
5943 (elf_link_input_bfd): Check group member for discarded section.
5944 (try_match_symbols_in_sections): New function.
5945 (already_linked): Likewise.
5946 (_bfd_elf_section_already_linked): Support mixing comdat group
5947 and linkonce section.
5948
5949 * libbfd-in.h (bfd_section_already_linked_table_traverse): New.
5950 * linker.c (bfd_section_already_linked_table_traverse): New.
5951
5952 * libbfd.h: Regenerated.
5953
670ec21d
NC
59542004-07-27 Tomer Levi <Tomer.Levi@nsc.com>
5955
5956 * reloc.c: Add BFD_RELOC_CRX_SWITCH8, BFD_RELOC_CRX_SWITCH16,
5957 BFD_RELOC_CRX_SWITCH32.
5958 * bfd-in2.h: Regenerate.
6cd7f07e 5959 * libbfd.h: Regenerate.
670ec21d
NC
5960 * elf32-crx.c: Support relocation/relaxation of
5961 BFD_RELOC_CRX_SWITCH* types.
5962
2c66dc6c
AM
59632004-07-27 Alan Modra <amodra@bigpond.net.au>
5964
5965 * elf64-ppc.c: Correct "Linker stubs" comment.
5966
38ce5b11
L
59672004-07-26 H.J. Lu <hongjiu.lu@intel.com>
5968
5969 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
5970 linked-to section.
5971 (elf_linked_to_section): New.
5972
5973 * elf.c (assign_section_numbers): Set up sh_link for
5974 SHF_LINK_ORDER.
5975
5976 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
5977 to sh_link for SHT_IA_64_UNWIND sections.
5978
65da361f
L
59792004-07-22 H.J. Lu <hongjiu.lu@intel.com>
5980
5981 * elflink.c (elf_fixup_link_order): Add _() to error message.
5982
08ccf96b
L
59832004-07-22 H.J. Lu <hongjiu.lu@intel.com>
5984
5985 * elflink.c (elf_fixup_link_order): Issue a warning and flag
5986 an error if failed.
5987
082b7297
L
59882004-07-21 H.J. Lu <hongjiu.lu@intel.com>
5989
5990 * aout-adobe.c (aout_32_section_already_linked): Defined.
5991 * aout-target.h (MY_section_already_linked): Likewise.
5992 * aout-tic30.c (MY_section_already_linked): Likewise.
5993 * binary.c (binary_section_already_linked): Likewise.
5994 * bout.c (b_out_section_already_linked): Likewise.
5995 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
5996 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
5997 * coffcode.h (coff_section_already_linked): Likewise.
5998 * i386msdos.c (msdos_section_already_linked): Likewise.
5999 * i386os9k.c (os9k_section_already_linked): Likewise.
6000 * ieee.c (ieee_section_already_linked): Likewise.
6001 * ihex.c (ihex_section_already_linked): Likewise.
6002 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
6003 * mmo.c (mmo_section_already_linked): Likewise.
6004 * nlm-target.h (nlm_section_already_linked): Likewise.
6005 * oasys.c (oasys_section_already_linked): Likewise.
6006 * pef.c (bfd_pef_section_already_linked): Likewise.
6007 * ppcboot.c (ppcboot_section_already_linked): Likewise.
6008 * som.c (som_bfd_discard_group): Likewise.
6009 * srec.c (srec_section_already_linked): Likewise.
6010 * tekhex.c (tekhex_section_already_linked): Likewise.
6011 * versados.c (versados_section_already_linked): Likewise.
6012 * vms.c (vms_section_already_linked): Likewise.
6013 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
6014 * xsym.c (bfd_sym_section_already_linked): Likewise.
6015
6016 * bfd-in.h (bfd_section_already_linked_table_init): New.
6017 (bfd_section_already_linked_table_free): Likewise.
6018
6019 * coff-rs6000.c (rs6000coff_vec): Add
6020 _bfd_generic_section_already_linked.
6021 (pmac_xcoff_vec): Likewise.
6022 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
6023 (aix5coff64_vec): Likewise.
6024
6025 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
6026 * elflink.c (_bfd_elf_section_already_linked): New function.
6027
6028 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
6029
6030 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
6031 (_bfd_generic_section_already_linked): New.
6032 (bfd_section_already_linked_hash_entry): Likewise.
6033 (bfd_section_already_linked): Likewise.
6034 (bfd_section_already_linked_table_lookup): Likewise.
6035 (bfd_section_already_linked_table_insert): Likewise.
6036
6037 * linker.c (bfd_section_already_linked): New.
6038 (_bfd_section_already_linked_table): Likewise.
6039 (bfd_section_already_linked_table_lookup): Likewise.
6040 (bfd_section_already_linked_table_insert): Likewise.
6041 (already_linked_newfunc): Likewise.
6042 (bfd_section_already_linked_table_init): Likewise.
6043 (bfd_section_already_linked_table_free): Likewise.
6044 (_bfd_generic_section_already_linked): Likewise.
6045
6046 * section.c (bfd_section): Remove comdat.
6047 (bfd_comdat_info): Moved to ...
6048 * bfd-in.h (coff_comdat_info): Here.
6049 (bfd_coff_get_comdat_section): New.
6050 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
6051 * libcoff-in.h (coff_section_tdata): Add comdat.
6052 * coffcode.h (handle_COMDAT): Updated.
6053 * cofflink.c (coff_link_add_symbols): Likewise.
6054 * ecoff.c (bfd_debug_section): Likewise.
6055
6056 * targets.c (bfd_target): Add _section_already_linked.
6057 (BFD_JUMP_TABLE_LINK): Updated.
6058
6059 * bfd-in2.h: Regenerated.
6060 * libbfd.h: Likewise.
6061 * libcoff.h: Likewise.
6062
0b52efa6
PB
60632003-07-21 Paul Brook <paul@codesourcery.com>
6064
6065 * elflink.c (elf_get_linked_section_vma, compare_link_order,
6066 elf_fixup_link_order): New functions.
6067 (bfd_elf_final_link): Call elf_fixup_link_order.
6068
7e2294f9
AO
60692004-07-21 Alexandre Oliva <aoliva@redhat.com>
6070
6071 * elf-bfd.h (ELF_COMMON_DEF_P): New.
6072 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
6073 common definitions.
6074 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
6075 _bfd_elf_symbol_refs_local_p.
6076 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
6077 symbols.
6078
e56f61be
L
60792004-07-19 H.J. Lu <hongjiu.lu@intel.com>
6080
6081 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
6082 DYN_NO_NEEDED.
6083 (bfd_elf_get_dyn_lib_class): New prototype.
6084 * elf.c (bfd_elf_get_dyn_lib_class): New function.
6085
6086 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
6087 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
6088 entry is needed. Issue an error if a DT_NEEDED entry is needed
6089 for a file marked DYN_NO_NEEDED.
6090 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
6091 for DT_NEEDED tags.
6092
6093 * bfd-in2.h: Regenerated.
6094
27b56da8
DA
60952004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
6096
6097 * elflink.c (elf_section_complain_discarded): Don't complain in
6098 .PARISC.unwind.
6099
bbb268c3
JW
61002004-07-10 James E Wilson <wilson@specifixinc.com>
6101
6102 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
6103 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
6104 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
6105 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
6106 Fix callers.
6107 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
6108 bfd_put_64 to bfd_putl64.
6109 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
2c66dc6c 6110
e525914f
L
61112004-07-09 H.J. Lu <hongjiu.lu@intel.com>
6112
6113 PR 240
6114 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
6115 .init/.fini sections when trying to relax it.
6116
b1a6d0b1
NC
61172004-07-09 Jie Zhang <zhangjie@magima.com.cn>
6118
6119 * elf.c (assign_file_positions_for_segments): Make sure the
6120 .dynamic section is the first section in the PT_DYNAMIC segment.
6121
1a320fbb
NC
61222004-07-09 Nick Clifton <nickc@redhat.com>
6123
6124 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
6125 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
6126 sh_elf_get_flags_from_mach functions so that they do not conflict
6127 when this target is built with other sh-elf targets.
6128 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
6129 suppression of this function.
6130 (sh_elf_find_flags): Likewise.
6131
1fe1f39c
NC
61322004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
6133
6134 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
6135 (ALL_MACHINES_CFILES): Add cpu-crx.c.
6136 (BFD32_BACKENDS): Add elf32-crx.lo.
6137 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
6138 (cpu-crx.lo): New target.
6139 (elf32-crx.lo): New target.
6140 * Makefile.in: Regenerate.
6141 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
6142 (bfd_archures_list): Add bfd_crx_arch.
6143 * bfd-in2.h: Regenerate.
6144 * config.bfd: Handle crx-*-elf*, crx*.
6145 * configure.in: Handle bfd_elf32_crx_vec.
6146 * configure: Regenerate.
6147 * cpu-crx.c: New file.
6148 * elf32-crx.c: Likewise.
6149 * libbfd.h: Regenerate.
6150 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
6151 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
6152 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
6153 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
6154 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
6155 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
6156 * targets.c (bfd_elf32_crx_vec): Declare.
6157 (bfd_target_vector): Add bfd_elf32_crx_vec.
6158
85fbca6a
NC
61592004-07-06 Nick Clifton <nickc@redhat.com>
6160
6161 * config.bfd: Add sh-symbian-elf target.
6162 * configure.in: Add bfd_elf32_shl_symbian_vec.
6163 * configure: Regenerate.
6164 * elf-bfd.h (struct elf_backend_data): Add new field
6165 'check_directives'.
1fe1f39c 6166 * elflink.c (elf_link_add_object_symbols): Invoke the
85fbca6a 6167 check_directives function, if defined.
1fe1f39c 6168 * elfxx-target.h: Provide a default, NULL definition for
85fbca6a 6169 check_directives.
1fe1f39c
NC
6170 * targets.c: Add bfd_elf32_shl_symbian_vec.
6171 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
85fbca6a 6172 definition.
1fe1f39c 6173 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
85fbca6a 6174 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
1fe1f39c 6175 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
85fbca6a 6176 not already been defined.
1fe1f39c
NC
6177 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
6178 * sh-symbian.c: New file. Provide functions to support the
85fbca6a
NC
6179 * sh-symbian-elf target.
6180 * Makefile.am: Add elf32-sh-symbian.c
6181 * Makefile.in: Regenerate.
1fe1f39c 6182
871ec896
JR
61832004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
6184
1fe1f39c
NC
6185 * elf32-sh.c: Include ../opcodes/sh-opc.h.
6186 * Makefile.am: Ran make dep-am.
6187 * Makefile.in: Ran make dep-in.
871ec896 6188
c87db184
CF
61892004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
6190
6191 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
6192 externals properly.
6193
06f2f6af
MS
61942004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
6195
6196 * config.bfd: Add want64 to configuration target s390-*-linux*.
6197
b602c853
L
61982004-07-01 H.J. Lu <hongjiu.lu@intel.com>
6199
6200 * bfd.c (bfd_get_section_ident): New.
6201
6202 * elflink.c (elf_link_read_relocs_from_section): Call
6203 bfd_get_section_ident to identify the section when reporting
6204 error.
6205 (_bfd_elf_link_output_relocs): Likewise.
6206 (elf_link_output_extsym): Likewise.
6207 (elf_link_input_bfd): Likewise.
6208 (bfd_elf_gc_record_vtinherit): Likewise.
6209
6210 * bfd-in2.h: Regenerated.
6211
7a2a6943
NC
62122004-07-01 Jie Zhang <zhangjie@magima.com.cn>
6213 Nick Clifton <nickc@redhat.com>
6214
6215 PR 204
6216 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
6217 of section symbols to mips_elf_sort_hash_table ().
6218
cdd3575c
AM
62192004-07-01 Alan Modra <amodra@bigpond.net.au>
6220
6221 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
6222 change. Comment.
6223 (elf_section_complain_discarded): New function. Handle
6224 .gcc_except_table too.
6225 (elf_link_input_bfd): Rewrite handling of relocs against symbols
6226 in discarded sections.
6227 * elf-bfd.h (elf_discarded_section): Protect macro arg.
6228
21a8f7fa
JW
62292004-06-30 James E Wilson <wilson@specifixinc.com>
6230
6231 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
6232 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
6233
2de26f35
L
62342004-06-30 H.J. Lu <hongjiu.lu@intel.com>
6235
6236 PR 233
6237 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
6238 local references to discarded sections and report their
6239 locations.
6240
72d7a15c
AM
62412004-06-30 Alan Modra <amodra@bigpond.net.au>
6242
6243 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
6244 sec_info_type, test section name instead.
6245
e7f0a167
L
62462004-06-29 H.J. Lu <hongjiu.lu@intel.com>
6247
6248 PR 240
6249 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
6250 in .init/.fini sections.
6251
bff5f93a
BW
62522004-06-29 Bob Wilson <bob.wilson@acm.org>
6253
6254 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
6255 bfd_get_section_limit.
6256
b54d4b07
BW
62572004-06-29 Bob Wilson <bob.wilson@acm.org>
6258
6259 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
6260 output section size.
6261
e87a64e1
AM
62622004-06-29 Alan Modra <amodra@bigpond.net.au>
6263
1a23a9e6
AM
6264 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
6265 rawsize.
6266 (mmix_elf_perform_relocation): Adjust for above change.
6267 (mmix_elf_relocate_section): Likewise.
6268 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
6269 (mmix_elf_get_section_contents): Delete.
6270 (bfd_elf64_get_section_contents): Delete.
6271 (mmix_elf_relocate_section): Zero stub area.
6272 * linker.c (default_indirect_link_order): Alloc max of section size
6273 and rawsize.
6274 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
6275 * section.c (bfd_malloc_and_get_section): Likewise.
6276 (struct bfd_section): Update rawsize comment.
6277 * bfd-in2.h: Regenerate.
6278
e87a64e1
AM
6279 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
6280
07515404
AM
62812004-06-29 Alan Modra <amodra@bigpond.net.au>
6282
6283 * bfd-in.h (bfd_get_section_limit): Define.
1fe1f39c 6284 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
07515404
AM
6285 (_bfd_final_link_relocate): Use bfd_get_section_limit.
6286 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
6287 * coff-arm.c (coff_arm_relocate_section): Likewise.
6288 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
6289 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
6290 (bfd_ns32k_final_link_relocate): Likewise.
6291 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
6292 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
1fe1f39c 6293 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
07515404 6294 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
1fe1f39c 6295 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
07515404
AM
6296 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
6297 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
6298 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
6299 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
6300 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
6301 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
6302 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
6303 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
6304 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
6305 * elf32-v850.c (v850_elf_reloc): Likewise.
6306 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
6307 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
6308 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
6309 * elf64-mips.c (mips_elf64_gprel32_reloc)
6310 (mips16_gprel_reloc): Likewise.
6311 * elf64-mmix.c (mmix_elf_reloc): Likewise.
6312 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
6313 * elf64-sparc.c (init_insn_reloc): Likewise.
6314 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
1fe1f39c
NC
6315 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
6316 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
07515404
AM
6317 (_bfd_mips_elf_generic_reloc): Likewise.
6318 * bfd-in2.h: Regenerate.
6319
3722b82f
AM
63202004-06-28 Alan Modra <amodra@bigpond.net.au>
6321
6322 * bfd-in.h (struct stab_info): Move from stabs.c.
6323 * stabs.c (struct stab_link_includes_table): Delete.
6324 (stab_link_includes_lookup): Delete.
6325 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
6326 level of indirection from sinfo parm.
6327 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
6328 stabstr section. Adjust hash table accesses.
6329 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
6330 alloc. Adjust stab_info test.
6331 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
6332 (_bfd_coff_final_link): Adjust stab_info test.
6333 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
6334 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
6335 in place.
6336 * libcoff-in.h (struct coff_link_hash_table): Likewise.
6337 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
6338 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
6339 stabstr section. Adjust stab_info test.
6340 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
6341 (_bfd_write_stab_strings): Adjust prototypes.
6342 * libbfd.h: Regenerate.
6343 * libcoff.h: Regenerate.
6344 * bfd-in2.h: Regenerate.
6345
727e493d
MK
63462004-06-27 Mark Kettenis <kettenis@gnu.org>
6347
6348 From Miod Vallat <miod@online.fr>:
6349 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
6350
146ccdbb
AO
63512004-06-26 Alexandre Oliva <aoliva@redhat.com>
6352
6353 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
6354 (struct elf32_mn10300_link_hash_entry): Remove
6355 pcrel_relocs_copied.
6356 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
6357 R_MN10300_32. Don't adjust pcrel_relocs_copied.
6358 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
6359 and gotoff relocations if the symbol doesn't bind locally. Use
6360 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
6361 relocation for PCREL32.
6362 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
6363 to test whether a symbol binds locally.
6364 (elf32_mn10300_link_hash_newfunc): Don't initialize
6365 pcrel_relocs_copied.
6366 (_bfd_mn10300_elf_discard_copies): Delete.
6367 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
6368
a5fd0812
MK
63692004-06-26 Mark Kettenis <kettenis@gnu.org>
6370
6371 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
6372
22bfad37
JB
63732004-06-25 Joel Brobecker <brobecker@gnat.com>
6374
6375 * som.c (som_set_reloc_info): Correct small typo.
6376
097f809a
NC
63772004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
6378
6379 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
6380 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
6381 (m32r_elf_gcsweep_hook): Likewise.
6382 (m32r_elf_check_relocs): Likewise.
6383 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
6384 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
6385 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
6386 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
f9f2cf5d
NC
6387 * bfd-in2.h: Regenerated.
6388 * libbfd.h: Regenerated.
097f809a 6389
6610a52d
L
63902004-06-24 H.J. Lu <hongjiu.lu@intel.com>
6391
6392 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
6393 relocation symbol.
6394 (elf64_x86_64_relocate_section): Issue an error for
6395 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
6396 against global symbols when building shared library.
6397
eea6121a
AM
63982004-06-24 Alan Modra <amodra@bigpond.net.au>
6399
6400 * section.c (struct sec): Rename "_cooked_size" to "size".
6401 Rename "_raw_size" to "rawsize".
6402 (STD_SECTION): Adjust comments.
6403 (bfd_set_section_size, bfd_get_section_contents): Use size.
6404 (bfd_malloc_and_get_section): New function.
6405 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
6406 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
6407 Correctly free reloc and contents memory.
6408 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
6409 and fake CIE now that we can shink section size to zero.
6410 (_bfd_elf_write_section_eh_frame): Likewise..
6411 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
6412 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
6413 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
6414 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
6415 unneeded indirection.
6416 * elf.c (_bfd_elf_section_offset): .. and update call.
6417 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
6418 * libbfd.h: Regenerate.
6419 * bfd-in2.h: Regenerate.
6420
6421 Replace occurrences of "_raw_size" and "_cooked_size" in most places
6422 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
6423 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
6424 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
6425 Similarly use "rawsize", if non-zero, in reloc functions to validate
6426 reloc addresses. Use new bfd_malloc_and_get_section in most places
6427 where bfd_get_section_contents was called. Expand all occurrences of
6428 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
6429 grok_prstatus and similar functions to "size".
6430 * aix386-core.c (aix386_core_file_p): ..
6431 * aix5ppc-core.c (xcoff64_core_p): ..
6432 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
6433 aout_adobe_set_section_contents): ..
6434 * aout-target.h (callback): ..
6435 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
6436 MY_bfd_final_link): ..
6437 * aoutf1.h (sunos4_core_file_p): ..
6438 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
6439 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
6440 final_link, aout_link_input_section): ..
6441 * binary.c (binary_object_p, binary_canonicalize_symtab,
6442 binary_set_section_contents): ..
6443 * bout.c (b_out_callback, b_out_write_object_contents,
6444 b_out_set_section_contents, b_out_bfd_relax_section,
6445 b_out_bfd_get_relocated_section_contents): ..
6446 * cisco-core.c (cisco_core_file_validate): ..
6447 * coff-alpha.c (alpha_ecoff_object_p,
6448 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
6449 * coff-arm.c (coff_arm_relocate_section,
6450 bfd_arm_allocate_interworking_sections): ..
6451 * coff-h8300.c (h8300_reloc16_extra_cases,
6452 h8300_bfd_link_add_symbols): ..
6453 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
6454 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
6455 ppc_bfd_coff_final_link): ..
6456 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
6457 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
6458 sh_align_loads, sh_coff_get_relocated_section_contents): ..
6459 * coff64-rs6000.c (xcoff64_write_object_contents,
6460 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
6461 * coffcode.h (coff_compute_section_file_positions,
6462 coff_write_object_contents): ..
6463 * coffgen.c (make_a_section_from_file, coff_write_symbols,
6464 coff_section_symbol, build_debug_section): ..
6465 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
6466 process_embedded_commands, _bfd_coff_link_input_bfd,
6467 _bfd_coff_write_global_sym): ..
6468 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
6469 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
6470 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
6471 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
6472 _bfd_dwarf2_find_nearest_line): ..
6473 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
6474 ecoff_compute_section_file_positions,
6475 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
6476 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
6477 _bfd_elf_discard_section_eh_frame_hdr,
6478 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
6479 _bfd_elf_write_section_eh_frame,
6480 _bfd_elf_write_section_eh_frame_hdr): ..
6481 * elf-hppa.h (elf_hppa_sort_unwind): ..
6482 * elf-m10200.c (mn10200_elf_relax_section,
6483 mn10200_elf_relax_delete_bytes,
6484 mn10200_elf_get_relocated_section_contents): ..
6485 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
6486 mn10300_elf_check_relocs, mn10300_elf_relax_section,
6487 mn10300_elf_relax_delete_bytes,
6488 mn10300_elf_get_relocated_section_contents,
6489 _bfd_mn10300_elf_adjust_dynamic_symbol,
6490 _bfd_mn10300_elf_discard_copies,
6491 _bfd_mn10300_elf_size_dynamic_sections,
6492 _bfd_mn10300_elf_finish_dynamic_sections): ..
6493 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
6494 _bfd_elf_make_section_from_phdr, elf_fake_sections,
6495 bfd_elf_set_group_contents, map_sections_to_segments,
6496 elf_sort_sections, assign_file_positions_for_segments,
6497 SECTION_SIZE, copy_private_bfd_data,
6498 _bfd_elf_get_dynamic_reloc_upper_bound,
6499 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
6500 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
6501 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
6502 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
6503 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
6504 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
6505 bfd_elf32_arm_process_before_allocation,
6506 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
6507 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
6508 elf32_arm_write_section): ..
6509 * elf32-cris.c (cris_elf_grok_prstatus,
6510 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
6511 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
6512 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
6513 elf_cris_discard_excess_dso_dynamics,
6514 elf_cris_discard_excess_program_dynamics): ..
6515 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
6516 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
6517 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
6518 _frv_create_got_section, _frvfdpic_assign_plt_entries,
6519 elf32_frvfdpic_size_dynamic_sections,
6520 elf32_frvfdpic_modify_segment_map,
6521 elf32_frvfdpic_finish_dynamic_sections): ..
6522 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
6523 elf32_h8_get_relocated_section_contents): ..
6524 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
6525 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
6526 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
6527 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
6528 elf32_hppa_finish_dynamic_sections): ..
6529 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
6530 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
6531 i370_elf_finish_dynamic_sections): ..
6532 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
6533 allocate_dynrelocs, elf_i386_size_dynamic_sections,
6534 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
6535 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
6536 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
6537 * elf32-ip2k.c (ip2k_is_switch_table_128,
6538 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
6539 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
6540 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
6541 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
6542 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
6543 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
6544 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
6545 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
6546 m32r_elf_get_relocated_section_contents): ..
6547 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
6548 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
6549 m68hc11_elf_relax_delete_bytes): ..
6550 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
6551 m68hc12_elf_size_one_stub): ..
6552 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
6553 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
6554 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
6555 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
6556 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
6557 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
6558 elf32_mips_grok_prstatus): ..
6559 * elf32-or32.c (or32_elf_consth_reloc): ..
6560 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
6561 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
6562 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
6563 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
6564 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
6565 ppc_elf_final_write_processing): ..
6566 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
6567 allocate_dynrelocs, elf_s390_size_dynamic_sections,
6568 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
6569 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
6570 sh_elf_relax_delete_bytes, sh_elf_align_loads,
6571 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
6572 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
6573 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
6574 * elf32-sh64-com.c (sh64_address_in_cranges,
6575 sh64_get_contents_type): ..
6576 * elf32-sh64.c (sh64_find_section_for_address,
6577 sh64_elf_final_write_processing): ..
6578 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
6579 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
6580 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
6581 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
6582 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
6583 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
6584 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
6585 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
6586 elf_vax_finish_dynamic_sections): ..
6587 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
6588 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
6589 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
6590 xstormy16_elf_finish_dynamic_sections): ..
6591 * elf32-xtensa.c (xtensa_read_table_entries,
6592 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
6593 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
6594 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
6595 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
6596 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
6597 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
6598 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
6599 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
6600 xtensa_callback_required_dependence): ..
6601 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
6602 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
6603 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
6604 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
6605 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
6606 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
6607 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
6608 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
6609 * elf64-hppa.c (allocate_dynrel_entries,
6610 elf64_hppa_size_dynamic_sections,
6611 elf64_hppa_finish_dynamic_sections): ..
6612 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
6613 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
6614 elf64_mips_grok_prstatus): ..
6615 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
6616 mmix_elf_relocate_section, mmix_elf_final_link,
6617 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
6618 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
6619 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
6620 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
6621 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
6622 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
6623 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
6624 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
6625 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
6626 ppc64_elf_finish_dynamic_sections): ..
6627 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
6628 allocate_dynrelocs, elf_s390_size_dynamic_sections,
6629 elf_s390_finish_dynamic_sections): ..
6630 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
6631 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
6632 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
6633 sh64_elf64_finish_dynamic_sections): ..
6634 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
6635 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
6636 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
6637 sparc64_elf_finish_dynamic_symbol,
6638 sparc64_elf_finish_dynamic_sections): ..
6639 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
6640 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
6641 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
6642 elf64_x86_64_finish_dynamic_sections): ..
6643 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
6644 * elfcode.h (elf_slurp_reloc_table): ..
6645 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
6646 elf_finalize_dynstr, elf_link_add_object_symbols,
6647 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
6648 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
6649 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
6650 elf32_mips_grok_prstatus): ..
6651 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
6652 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
6653 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
6654 elfNN_ia64_finish_dynamic_sections): ..
6655 * elfxx-mips.c (mips_elf_create_procedure_table,
6656 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
6657 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
6658 mips_elf_global_got_index, mips_elf_multi_got,
6659 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
6660 mips_elf_allocate_dynamic_relocations,
6661 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
6662 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
6663 _bfd_mips_elf_always_size_sections,
6664 _bfd_mips_elf_size_dynamic_sections,
6665 _bfd_mips_elf_finish_dynamic_symbol,
6666 _bfd_mips_elf_finish_dynamic_sections,
6667 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
6668 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
6669 _bfd_elf_mips_get_relocated_section_contents,
6670 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
6671 * hp300hpux.c (callback): ..
6672 * hppabsd-core.c (make_bfd_asection): ..
6673 * hpux-core.c (make_bfd_asection): ..
6674 * i386linux.c (linux_link_create_dynamic_sections,
6675 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
6676 * i386msdos.c (msdos_write_object_contents): ..
6677 * i386os9k.c (os9k_callback, os9k_write_object_contents,
6678 os9k_set_section_contents): ..
6679 * ieee.c (parse_expression, ieee_slurp_external_symbols,
6680 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
6681 ieee_write_section_part, do_with_relocs, do_as_repeat,
6682 do_without_relocs, ieee_write_debug_part, init_for_output,
6683 ieee_set_section_contents): ..
6684 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
6685 * irix-core.c (do_sections, make_bfd_asection): ..
6686 * libaout.h (aout_section_merge_with_text_p): ..
6687 * libbfd.c (_bfd_generic_get_section_contents,
6688 _bfd_generic_get_section_contents_in_window): ..
6689 * linker.c (default_indirect_link_order): ..
6690 * lynx-core.c (make_bfd_asection): ..
6691 * m68klinux.c (linux_link_create_dynamic_sections,
6692 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
6693 * mach-o.c (bfd_mach_o_make_bfd_section,
6694 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
6695 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
6696 bfd_mach_o_scan_read_segment): ..
6697 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
6698 _bfd_merge_sections): ..
6699 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
6700 mmo_map_set_sizes, mmo_canonicalize_symtab,
6701 mmo_internal_write_section, mmo_write_object_contents): ..
6702 * netbsd-core.c (netbsd_core_file_p): ..
6703 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
6704 nlm_alpha_set_public_section): ..
6705 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
6706 * nlm32-sparc.c (nlm_sparc_write_import): ..
6707 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
6708 nlm_compute_section_file_positions): ..
6709 * oasys.c (oasys_object_p, oasys_slurp_section_data,
6710 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
6711 * opncls.c (get_debug_link_info): ..
6712 * osf-core.c (make_bfd_asection): ..
6713 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
6714 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
6715 final_link, aout_link_input_section): ..
6716 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
6717 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
6718 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
6719 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
6720 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
6721 * ptrace-core.c (ptrace_unix_core_file_p): ..
6722 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
6723 _bfd_final_link_relocate, bfd_generic_relax_section,
6724 bfd_generic_get_relocated_section_contents): ..
6725 * reloc16.c (bfd_coff_reloc16_relax_section,
6726 bfd_coff_reloc16_get_relocated_section_c): ..
6727 * riscix.c (riscix_some_aout_object_p): ..
6728 * rs6000-core.c (read_hdr, make_bfd_asection): ..
6729 * sco5-core.c (make_bfd_asection): ..
6730 * simple.c (bfd_simple_get_relocated_section_contents): ..
6731 * som.c (som_object_setup, setup_sections, som_prep_headers,
6732 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
6733 som_set_reloc_info, som_get_section_contents,
6734 som_bfd_link_split_section): ..
6735 * sparclinux.c (linux_link_create_dynamic_sections,
6736 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
6737 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
6738 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
6739 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
6740 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
6741 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
6742 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
6743 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
6744 sunos_finish_dynamic_link): ..
6745 * syms.c (_bfd_stab_section_find_nearest_line): ..
6746 * tekhex.c (first_phase, tekhex_set_section_contents,
6747 tekhex_write_object_contents): ..
6748 * trad-core.c (trad_unix_core_file_p): ..
6749 * versados.c (process_esd, process_otr, process_otr): ..
6750 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
6751 * vms-misc.c (add_new_contents): ..
6752 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
6753 * vms.c (vms_set_section_contents): ..
6754 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
6755 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
6756 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
6757 * xsym.c (bfd_sym_scan): .. See above.
6758
bf8b15af
L
67592004-06-21 H.J. Lu <hongjiu.lu@intel.com>
6760
6761 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
6762 calling _bfd_merged_section_offset only for section symbols.
6763
d1c6de6f
AM
67642004-06-22 Alan Modra <amodra@bigpond.net.au>
6765
6766 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
6767 for handling SEC_MERGE symbols in relax_section.
6768
aa02cc63
AO
67692004-06-21 Alexandre Oliva <aoliva@redhat.com>
6770
6771 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
6772 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
6773 linked together. Mark the result as h8300sx code.
6774
aee6f5b4
AO
67752004-06-21 Alexandre Oliva <aoliva@redhat.com>
6776
6777 * elf-bfd.h (struct elf_backend_data): Added
6778 elf_backend_omit_section_dynsym.
6779 (_bfd_elf_link_omit_section_dynsym): Declare.
6780 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
6781 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
6782 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
6783 (_bfd_elf_link_renumber_dynsyms): ... this function.
6784 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
6785 _bfd_elf_link_omit_section_dynsym).
6786 (elfNN_bed): Added elf_backend_omit_section_dynsym.
6787
05576f10
NC
67882004-06-21 Nick Clifton <nickc@redhat.com>
6789
6790 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
6791 flags.
6792
02d5a37b
JG
67932004-06-17 Jerome Guitton <guitton@gnat.com>
6794
6795 * bfd-in.h (bfd_cache_close_all): New function declaration.
6796 * bfd-in2.h: Regenerate.
6797 * cache.c (bfd_cache_close_all): New function definition.
6798
d2bef492
MK
67992004-06-16 Mark Kettenis <kettenis@gnu.org>
6800
6801 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
6802 4.10 and beyond.
6803 * configure: Regenerate.
6804
8528d62e
DJ
68052004-06-16 Daniel Jacobowitz <dan@debian.org>
6806
6807 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
6808 the pre-existing section.
6809
911d08a7
AM
68102004-06-15 Alan Modra <amodra@bigpond.net.au>
6811
6812 * section.c (struct sec): Remove usused flags. Reorganize a little.
6813 (bfd_get_section_size_before_reloc): Delete.
6814 (bfd_get_section_size_after_reloc): Delete.
6815 (STD_SECTION): Update.
6816 (bfd_get_section_size_now): Delete.
6817 (bfd_set_section_contents): Don't referece reloc_done.
6818 (bfd_get_section_contents): Remove reloc_done comment.
6819 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
6820 reloc_done.
6821 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
6822 * ecoff.c (bfd_debug_section): Update initializer.
6823 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
6824 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
6825 * bfd-in.h (bfd_section_size): Expand.
6826 (bfd_get_section_size): New macro.
6827 * bfd-in2.h: Regenerate.
6828 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
6829 bfd_get_section_size_before_reloc with bfd_get_section_size.
6830 * coffcode.h (coff_write_object_contents): Likewise.
6831 * coffgen.c (build_debug_section): Likewise.
6832 * dwarf1.c (parse_line_table): Likewise.
6833 (_bfd_dwarf1_find_nearest_line): Likewise.
6834 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
6835 * i386msdos.c (msdos_write_object_contents): Likewise.
6836 * pdp11.c (squirt_out_relocs): Likewise.
6837 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
6838 * elf64-mmix.c (mmix_elf_final_link): Update comment.
6839
092dcd75
CD
68402004-06-14 Chris Demetriou <cgd@broadcom.com>
6841
6842 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
6843 removal) with updated comment.
6844 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
6845 BFD_RELOC_32_PCREL.
6846 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
6847 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
6848
3ffa5234
AM
68492004-06-12 Alan Modra <amodra@bigpond.net.au>
6850
6851 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
6852 overflow on branches to undefweaks.
6853
e9edc808
MR
68542004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6855
6856 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
6857 as ecoff_section_data() does not return a valid lvalue.
6858
a873f25a
AO
68592004-06-09 Alexandre Oliva <aoliva@redhat.com>
6860
a9b881be
AO
6861 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
6862 (elf_link_add_object_symbols): Likewise.
6863
a873f25a
AO
6864 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
6865 (elf_backend_reloc_type_class): New.
6866
eef0f186
MK
68672004-06-08 Mark Kettenis <kettenis@gnu.org>
6868
6869 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
6870 netbsd-core.lo.
6871 * configure: Regenerate.
6872
822392ce
DJ
68732004-06-07 Daniel Jacobowitz <dan@debian.org>
6874
6875 From: Albert Chin-A-Young <china@thewrittenword.com>
6876 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
6877 to unsigned int.
6878
9f2e92c5
L
68792004-05-29 H.J. Lu <hongjiu.lu@intel.com>
6880
6881 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
6882 change.
6883
dd90f1b2
DD
68842004-05-28 DJ Delorie <dj@redhat.com>
6885
6886 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
6887 for linking, but otherwise adjust reloc for merged sections.
6888
5dd23ec1
L
68892004-05-28 H.J. Lu <hongjiu.lu@intel.com>
6890
6891 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
6892 _bfd_merged_section_offset for local symbols.
6893
f6f9408f
JR
68942004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
6895
6896 * Makefile.am: Regenerate dependencies.
6897 * Makefile.in: Regenerate.
6898 * archures.c: Add bfd_mach_sh3_nommu .
6899 * bfd-in2.h: Regenerate.
6900 * cpu-sh.c: Add sh3-nommu architecture.
6901 (bfd_to_arch_table): Create new table.
6902 (sh_get_arch_from_bfd_mach): Create new function.
6903 (sh_get_arch_up_from_bfd_mach): Create new function.
6904 (sh_merge_bfd_arch): Create new function.
6905 * elf32-sh.c (sh_ef_bfd_table): Add table.
6906 (sh_elf_check_relocs): Replace switch statement with
6907 use of sh_ef_bfd_table .
6908 (sh_elf_get_flags_from_mach): Add new function.
6909 (sh_find_elf_flags): Likewise.
6910 (sh_elf_copy_private_data): Replace most of non-elf contents
6911 with a call to sh_merge_bfd_arch() .
6912
d866f350
MC
69132004-05-27 Michael Chastain <mec.gnu@mindspring.com>
6914
6915 * Makefile.am (bfdver.h): Use explicit filename, not $< .
6916 * Makefile.in: Regenerate.
6917
1055df0f
AO
69182004-05-27 Alexandre Oliva <aoliva@redhat.com>
6919
6920 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
6921 custom calling conventions for dynamic symbols.
6922 (mn10300_elf_relax_section): Avoid relaxing a function as a local
6923 symbol if it's an alias to a global one.
6924
b3096250
L
69252004-05-26 H.J. Lu <hongjiu.lu@intel.com>
6926
6927 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
6928 change.
6929
9bb351fd
AO
69302004-05-27 Alexandre Oliva <aoliva@redhat.com>
6931
6932 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
6933 loop over hashes.
6934
e49f5022
AM
69352004-05-26 Alan Modra <amodra@bigpond.net.au>
6936
6937 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
6938 for SHT_GROUP sections.
6939
57ceae94
AM
69402004-05-25 Alan Modra <amodra@bigpond.net.au>
6941
6942 * elflink.c (elf_link_add_object_symbols): Don't set up merge
6943 section data here..
6944 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
6945 * merge.c: Formatting. Remove unnecessary casts. Expand
6946 bfd_get_section_alignment macro.
6947 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
6948 use throughout file.
6949 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
6950 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
6951 section name to determine sinfo group, instead test output section
6952 and alignment.
6953 (_bfd_merge_sections): Add struct bfd_link_info param. Call
6954 _bfd_strip_section_from_output rather than just twiddling flags.
6955 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
6956 (_bfd_merge_sections): Update prototype.
6957 * libbfd.h: Regenerate.
6958
c6f8758f 69592004-05-24 Mark Kettenis <kettenis@gnu.org>
d34436e8
MK
6960
6961 * netbsd-core.c: Correctly indent section that sets architecture
6962 from machine ID.
6963
c6f8758f
NC
6964 From Miod Vallat <miod@online.fr>:
6965 * m88kopenbsd.c: New file.
6966 * targets.c (m88k_openbsd_vec): New.
6967 * config.bfd: Add m88k-*-openbsd*.
6968 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
6969 (m88kopenbsd_vec): New.
6970 * configure: Regenerate.
6971 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
6972 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
6973 Run "make dep-am".
6974 * Makefile.in: Regenerate.
6975 * po/SRC-POTFILES.in: Regenerate.
6976
7d7e6bc4
NC
69772004-05-24 Nick Clifton <nickc@redhat.com>
6978
6979 * hash.c: Remove bogus node "Changing the default Hash Table Size"
6980 introduced by hash table size patch.
6981
bc286f95
BE
69822004-05-22 Ben Elliston <bje@au.ibm.com>
6983
6984 * configure.in (is_release): Remove.
6985 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
6986 (AC_OUTPUT): Don't output bfdver.h from version.h.
6987 * configure: Regenerate.
6988 * Makefile.am (RELEASE): New variable.
6989 (bfdver.h): New target.
6990 * Makefile.in: Regenerate.
6991 * doc/Makefile.in: Likewise.
6992
8b89a4eb
BE
69932004-05-22 Ben Elliston <bje@au.ibm.com>
6994
6995 * Makefile.am (config.status): Don't depend on version.h.
6996 * Makefile.in: Regenerate.
6997
753731ee
AM
69982004-05-22 Alan Modra <amodra@bigpond.net.au>
6999
7000 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
7001 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
7002 * libbfd.h: Regenerate.
7003 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
7004 (_bfd_elf_rel_local_sym): Likewise.
7005 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
7006 (elf_link_input_bfd): Likewise.
7007 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
7008 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7009 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
7010 (elfNN_ia64_relocate_section): Likewise.
7011
2d643429
NC
70122004-05-21 Andy Chittenden <achittenden@bluearc.com>
7013
7014 * hash.c (bfd_default_hash_table_size): New variable.
7015 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
7016 (bfd_hash_set_default_size): New function. Set the default size
7017 to a selected prime number close to the argument. Document new
7018 function.
7019 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
7020 * bfd-in2.h: Regenerate.
7021 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
7022 * Makefile.in: Regenerate.
7023
8377c19c
MK
70242004-05-21 Mark Kettenis <kettenis@gnu.org>
7025
7026 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
7027 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
7028 arm, m68k, m88k and hppa core files.
7029
69fd4758
NC
70302004-05-21 Nick Clifton <nickc@redhat.com>
7031
7032 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
7033 (bfd_bwrite): Likewise.
7034 (bfd_tell): Likewise.
7035 (bfd_flush): Likewise.
7036 (bfd_stat): Likewise.
7037 (bfd_seek): Likewise.
7038 (bfd_get_mtime): Likewise.
7039 (bfd_get_size): Likewise.
7040
cd917290
BE
70412004-05-19 Ben Elliston <bje@au.ibm.com>
7042
7043 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
7044
1b09e940
NC
70452004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
7046
7047 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
7048 (bfd_generic_openr_next_archived_file): Likewise.
7049
096c35a7
BW
70502004-05-17 Bob Wilson <bob.wilson@acm.org>
7051
7052 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
7053 section names by inserting a new substring after .gnu.linkonce, except
7054 for .gnu.linkonce.t.* where the "t." is replaced.
7055
eea6121a 70562004-05-17 Adam Nemet <anemet@lnxw.com>
b2d65c0b
NC
7057
7058 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
7059 (m68-*-lynxos* case): Likewise.
7060 (powerpc-*-lyxnos* case): New case.
7061 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
7062
80fccad2
BW
70632004-05-17 David Heine <dlheine@tensilica.com>
7064
7065 * aout-target.h (MY_bfd_copy_private_header_data): Define.
7066 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
7067 * bfd.c (bfd_copy_private_header_data): Define.
7068 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
7069 interface.
7070 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
7071 * coffcode.h (coff_bfd_copy_private_header_data): Define.
7072 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
7073 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
7074 segments by calling copy_private_bfd_data.
7075 (_bfd_elf_copy_private_header_data): Define.
7076 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
7077 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
7078 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
7079 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
7080 * mmo.c (mmo_bfd_copy_private_header_data): Define.
7081 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
7082 * som.c (som_bfd_copy_private_header_data): Define.
7083 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
7084 * vms.c (vms_bfd_copy_private_header_data): Define.
7085 * bfd-in2.h: Regenerate.
7086 * libbfd.h: Regenerate.
7087
c5ae1840
TS
70882004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7089
7090 * elfxx-mips.c (MINUS_TWO): Define.
7091 (mips_elf_higher, mips_elf_highest,
7092 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
7093 some bfd_vma values.
7094 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
7095
a99cf92b
DA
70962004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7097
7098 * som.c (log2): Rename to exact_log2. Adjust all callers.
7099
0da76f83
NC
71002004-05-13 Paul Brook <paul@codesourcery.com>
7101
c273895f 7102 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
336b9722
NC
7103 dwarf3 format CIE entries. Remove comment about the size of the
7104 ra_column field. It is now correctly deduced.
0da76f83 7105
4b363073
NC
71062004-05-13 Joel Sherrill <joel@oarcorp.com>
7107
7108 * config.bfd (or32-*-rtems*): Switch to elf.
7109
9598fbe5
NC
71102004-05-13 Nick Clifton <nickc@redhat.com>
7111
7112 * po/fr.po: Updated French translation.
7113
8c37241b
JJ
71142004-05-11 Jakub Jelinek <jakub@redhat.com>
7115
0306b3bf 7116 * elflink.c (bfd_elf_final_link): Don't output STT_SECTION symbol
8c37241b
JJ
7117 into .dynsym if elf_section_data (sec)->dynindx <= 0.
7118 Adjust counting of last_local.
7119 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
7120 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
7121 created by the linker nor !SHF_ALLOC.
7122
7123 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
7124 DT_PLTGOT to the start of the .got.plt section instead of the
7125 .got output section. Set sh_entsize for .got section in addition
7126 to .got.plt.
7127 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
7128 is at sgot->output_section->vma.
7129 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
7130 DT_PLTGOT to the start of the .got.plt section instead of the
7131 .got output section.
7132 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
7133 is at sgot->output_section->vma. Set sh_entsize for .got section
7134 in addition to .got.plt.
7135 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
7136 (bfd_section_from_phdr): Likewise.
7137 (map_sections_to_segments): Likewise.
7138 (assign_file_positions_for_segments): Likewise.
7139 (get_program_header_size): Likewise.
7140 * elflink.c (bfd_elf_size_dynamic_sections): Set
7141 elf_tdata (output_bfd)->relro from info->relro.
7142 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
7143
3f980e41
AO
71442004-05-08 Alexandre Oliva <aoliva@redhat.com>
7145
7146 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
7147 a zero symndx for which we hadn't accounted a dynamic relocation.
7148 (_frvfdpic_add_rofixup): Likewise.
7149
d70270c5 71502004-05-07 Brian Ford <ford@vss.fsi.com>
eea6121a 7151 DJ Delorie <dj@redhat.com>
d70270c5
BF
7152
7153 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
7154 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
7155 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
7156 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
7157
7e9f3bd6
AO
71582004-05-07 Alexandre Oliva <aoliva@redhat.com>
7159
7160 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
7161 immediately if there's no link info.
7162 (elf32_frvfdpic_copy_private_bfd_data): New.
7163 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
7164
eb61d2d6
ZW
71652004-05-06 Zack Weinberg <zack@codesourcery.com>
7166
7167 * dwarf2.c (add_line_info): Also set info->filename to NULL if
7168 filename argument is null; do not call strlen on a null pointer.
7169
ecb2d096
DJ
71702004-05-06 Daniel Jacobowitz <drow@mvista.com>
7171
7172 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
7173 special case.
7174
43850d5b
AO
71752004-05-05 Alexandre Oliva <aoliva@redhat.com>
7176
7177 * configure.in (bfd_elf32_frvfdpic_vec): New.
7178 * configure: Rebuilt.
7179 * targets.c (bfd_elf32_frvfdpic_vec): New.
7180 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
7181 on the latter.
7182 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
7183 frvfdpic instead of frv. Rearrange elf-target macros such that
7184 the FDPIC-specific ones are only defined for this new target
7185 vector.
7186 (bfd_elf32_frvfdpic_vec): Declare.
7187 (IS_FDPIC): New.
7188 (elf32_frv_relocate_section): Use it to enable segment checking
7189 and to control rofixup emission. Add output section vma to
7190 applied relocation in non-LOAD non-ALLOC sections. Use
7191 _bfd_error_handler for errors.
7192 (_frv_create_got_section): Create .rel.got and .rofixup only in
7193 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
7194 linker script.
7195 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
7196 (elf32_frvfdpic_modify_segment_map): Likewise.
7197 (elf32_frv_finish_dynamic_sections): New, do-nothing.
7198 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
7199 error message if we miscompute the rofixup size.
7200 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
7201 (frvfdpic_elf_encode_eh_address): Likewise.
7202 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
7203 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
7204 relocs. Reject unknown relocation types.
7205 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
7206 (frv_elf_merge_private_bfd_data): Likewise.
7207 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
7208 0x4000 for newly-added elf32-frvfdpic.
7209
06fc8a8c
NC
72102004-05-05 Nick Clifton <nickc@redhat.com>
7211
7212 PR/136
7213 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
7214 returning NULL as most users of this function do not check its
7215 return value.
33216455
NC
7216 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
7217 of bfd_cache_lookup().
7218 * sco5-core.c (sco5_core_file_p): Likewise.
7219 * trad-core.c (trad_unix_core_file_p): Likewise.
06fc8a8c
NC
7220
72212004-05-05 Nick Clifton <nickc@redhat.com>
7222
7223 * cache.c (bfd_cache_lookup): Improve formatting.
7224 * archive.c: Fix formatting.
7225
6b6e92f4
NC
72262004-05-05 Peter Barada <peter@the-baradas.com>
7227
7228 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
7229 * cpu-m68k.c(bfd_m68k_arch): Likewise.
7230 * bfd-in2.h(bfd_architecture): Regenerate.
7231
6a8d1586
AM
72322004-05-03 Alan Modra <amodra@bigpond.net.au>
7233
7234 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
7235 SEC_MERGE sections.
7236 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
7237 those against discarded link-once and SEC_MERGE section symbols.
7238
fafe6678
L
72392004-05-02 H.J. Lu <hongjiu.lu@intel.com>
7240
7241 * section.c (bfd_get_section_by_name_if): New.
7242 * bfd-in2.h: Regenerated.
7243
ad7b9a36
AM
72442004-05-02 Alan Modra <amodra@bigpond.net.au>
7245
7246 * som.c (som_bfd_is_group_section): Define.
7247
73499ab8
AM
72482004-05-01 Alan Modra <amodra@bigpond.net.au>
7249
7250 * section.c (bfd_make_section_anyway): Copy the whole
7251 bfd_hash_entry, not just "next" from existing entry.
7252
45c5e9ed
L
72532004-04-30 H.J. Lu <hongjiu.lu@intel.com>
7254
7255 * elf.c (bfd_section_from_shdr): Maintain the section order in
7256 a section group.
7257 (special_sections): Add ".note.GNU-stack".
7258 (elf_fake_sections): Handle section group for relocatable
7259 link..
7260
bc87dd2e
L
72612004-04-30 H.J. Lu <hongjiu.lu@intel.com>
7262
7263 * section.c (bfd_sections_find_if): New.
7264 * bfd-in2.h: Regenerated.
7265
72adc230
AM
72662004-04-30 Alan Modra <amodra@bigpond.net.au>
7267
7268 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
7269
7270 * elf-bfd.h (bfd_elf_is_group_section): Declare.
7271 * elf.c (bfd_elf_is_group_section): New function.
7272 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
7273 * section.c (bfd_generic_is_group_section): New function.
7274 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
7275 (BFD_JUMP_TABLE_LINK): Adjust.
7276 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
7277 * aout-target.h (MY_bfd_is_group_section): Define.
7278 * aout-tic30.c (MY_bfd_is_group_section): Define.
7279 * bfd.c (bfd_is_group_section): Define.
7280 * binary.c (binary_bfd_is_group_section): Define.
7281 * bout.c (b_out_bfd_is_group_section): Define.
7282 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
7283 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
7284 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
7285 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
7286 * coffcode.h (coff_bfd_is_group_section): Define.
7287 * i386msdos.c (msdos_bfd_is_group_section): Define.
7288 * i386os9k.c (os9k_bfd_is_group_section): Define.
7289 * ieee.c (ieee_bfd_is_group_section): Define.
7290 * ihex.c (ihex_bfd_is_group_section): Define.
7291 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
7292 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
7293 * mmo.c (mmo_bfd_is_group_section): Define.
7294 * nlm-target.h (nlm_bfd_is_group_section): Define.
7295 * oasys.c (oasys_bfd_is_group_section): Define.
7296 * pef.c (bfd_pef_bfd_is_group_section): Define.
7297 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
7298 * srec.c (srec_bfd_is_group_section): Define.
7299 * tekhex.c (tekhex_bfd_is_group_section): Define.
7300 * versados.c (versados_bfd_is_group_section): Define.
7301 * vms.c (vms_bfd_is_group_section): Define.
7302 * xsym.c (bfd_sym_bfd_is_group_section): Define.
7303 * bfd-in2.h: Regenerate.
7304 * libbfd.h: Regenerate.
7305
20f0a1ad
AM
73062004-04-30 Alan Modra <amodra@bigpond.net.au>
7307
7308 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
7309
f7458fc9 73102004-04-30 Hans-Peter Nilsson <hp@axis.com>
7dfb3b6b
HPN
7311
7312 * configure.in: Update version to 2.15.91.
7313 * configure: Regenerate.
7314
8a7140c3
NC
73152004-04-29 Brian Ford <ford@vss.fsi.com>
7316
7317 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
7318 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
7319 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
7320 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
7321 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
7322 .gnu.linkonce.wi. sections.
7323 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
7324 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
7325 .gnu.linkonce.wi..
7326 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
7327 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
7328
3e722fb5
CD
73292004-04-28 Chris Demetriou <cgd@broadcom.com>
7330
7331 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
7332 * bfd-in2.h: Regenerate.
7333 * libbfd.h: Likewise.
7334
351e2b5a
DA
73352004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7336
7337 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
7338 dup_common fields.
7339 (setup_sections): Use som_subspace_dictionary_record struct instead
7340 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
7341 is_comdat, is_common or dup_common.
7342 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
7343 is_comdat, is_common and dup_common in section subspace_dict from
7344 copy_data.
7345 (som_begin_writing): Use som_subspace_dictionary_record struct.
7346 (som_finish_writing): Likewise.
7347 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
7348 is_common and dup_common flags in info for symbol. Add comment
7349 regarding linker support for these fields. Slightly reorganize
7350 function.
7351 (som_build_and_write_symbol_table): Set is_comdat, is_common and
7352 dup_common fields in symbol table from symbol info.
7353 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
7354 arguments. Set corresponding fields in copy_data. Change all callers.
7355 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
7356 symbol table.
7357 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
7358 * som.h (som_subspace_dictionary_record): Define.
7359 (som_copyable_section_data_struct): Add is_comdat, is_common and
7360 dup_common fields.
7361 (som_section_data_struct): Use som_subspace_dictionary_record struct
7362 instead of subspace_dictionary_record.
7363 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
7364
3ba3bc8c
BW
73652004-04-27 Bob Wilson <bob.wilson@acm.org>
7366
7367 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
7368 if set. Check reloc_done flag before applying relocations. Use
7369 output addresses, both when applying relocations and when comparing
7370 against the specified section.
7371 (elf_xtensa_relocate_section): Use output address to check if dynamic
7372 reloc is in a literal pool. Set section's reloc_done flag.
7373
beb8df56
L
73742004-04-27 H.J. Lu <hongjiu.lu@intel.com>
7375
7376 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
7377 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
7378 section.
7379 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
7380 section.
7381
1829f4b2
AM
73822004-04-27 Alan Modra <amodra@bigpond.net.au>
7383
7384 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
7385 structure field removed in 2004-04-24 patch.
7386 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
7387
7388 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
7389 Constify hdr arg.
7390 * elf32-arm.h (elf32_arm_section_flags): Likewise.
7391 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
7392 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
7393 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
7394 field before calling elf_backend_section_flags.
7395
4030e8f6
CD
73962004-04-24 Chris Demetriou <cgd@broadcom.com>
7397
7398 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
7399 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
7400 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
7401 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
7402 and BFD_RELOC_32_PCREL.
7403 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
7404 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
7405 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
7406 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
7407 (mips_elf_next_relocation): Move comment about matching HI/LO
7408 relocations to...
7409 (_bfd_mips_elf_relocate_section): Here. Remove handling for
7410 R_MIPS_GNU_REL_HI16.
7411
3e27568f
CD
74122004-04-23 Chris Demetriou <cgd@broadcom.com>
7413
7414 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
7415 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
7416 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
7417 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
7418 and update comments to reflect current usage.
7419 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
7420 and MIPS_R_SWITCH, as well as several empty entries. Update comment
7421 for MIPS_R_PCREL16.
7422 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
7423 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
7424 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
7425 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
7426 type number to be MIPS_R_PCREL16.
7427 (mips_relocate_section): Remove support for link-time relaxation
7428 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
7429 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
7430 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
7431 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
7432 relaxation of branches used by embedded-PIC.
7433 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
7434 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
7435 related members, update comment.
7436 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
7437 code related to embedded-PIC.
7438 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
7439 initialization of now-removed 'adjust' member of
7440 'struct ecoff_debug_info'.
7441
b32de0bc 74422004-04-23 Chris Demetriou <cgd@broadcom.com>
8472310d
CD
7443
7444 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
7445
955af222
PB
74462004-04-21 Philip Blundell <pb@nexus.co.uk>
7447
7448 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
7449 relocs for locally defined symbols during -shared final link.
7450 (elf32_arm_final_link_relocate): Likewise.
7451
47a9f7b3
JJ
74522004-04-22 Jakub Jelinek <jakub@redhat.com>
7453
7454 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
7455 ELF_LINK_POINTER_EQUALITY_NEEDED.
7456 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
7457 if r_type is not R_X86_64_PC32.
7458 (elf64_x86_64_finish_dynamic_symbol): If
7459 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
7460 SHN_UNDEF symbols.
7461
1f1799d5
KK
74622004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
7463
7464 * elf32-sh.c (sh_elf_plt_sym_val): New function.
7465 (elf_backend_plt_sym_val): Define.
7466
0fdea5ce
AC
74672004-04-22 Andrew Cagney <cagney@redhat.com>
7468
7469 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
7470
5198ba8b
DA
74712004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
7472
eb61d2d6 7473 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
5198ba8b
DA
7474 make_bfd_asection.
7475 * som.c (som_set_section_contents): Constantify second argument.
7476 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
7477 (som_object_setup): Rework to avoid warning.
7478 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
7479 Likewise.
7480
fe2e161a
AC
74812004-04-22 Andrew Cagney <cagney@redhat.com>
7482
7483 * cache.c (bfd_cache_close): Check for a previously closed file.
7484
4c45e5c9
JJ
74852004-04-22 Jakub Jelinek <jakub@redhat.com>
7486
7487 * bfd.c (bfd_get_synthetic_symtab): Define.
7488 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
7489 NAME##_get_synthetic_symtab.
7490 (struct bfd_target): Add _bfd_get_synthetic_symtab.
7491 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
7492 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
7493 relplt_name fields.
7494 (_bfd_elf_get_synthetic_symtab): New prototype.
7495 * elfcode.h (elf_get_synthetic_symtab): Define.
7496 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
7497 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
7498 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
7499 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
7500 * bfd-in2.h: Rebuilt.
7501 * libbfd.h: Rebuilt.
7502 * elf32-i386.c (elf_i386_plt_sym_val): New function.
7503 (elf_backend_plt_sym_val): Define.
7504 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
7505 (elf_backend_plt_sym_val): Define.
7506 * elf32-s390.c (elf_s390_plt_sym_val): New function.
7507 (elf_backend_plt_sym_val): Define.
7508 * elf64-s390.c (elf_s390_plt_sym_val): New function.
7509 (elf_backend_plt_sym_val): Define.
7510 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
7511 (elf_backend_plt_sym_val): Define.
7512 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
7513 (elf_backend_plt_sym_val): Define.
7514 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
7515 (elf_backend_plt_sym_val): Define.
7516 * aout-target.h (MY_get_synthetic_symtab): Define.
7517 * aout-tic30.c (MY_get_synthetic_symtab): Define.
7518 * coff-rs6000.c (rs6000coff_vec): Add
7519 _bfd_nodynamic_get_synthetic_symtab.
7520 (pmac_xcoff_vec): Likewise.
7521 * coff64-rs6000.c (rs6000coff64_vec): Add
7522 _bfd_nodynamic_get_synthetic_symtab.
7523 (aix5coff64_vec): Likewise.
7524 * sunos.c (MY_get_synthetic_symtab): Define.
7525 * vms.c (vms_get_synthetic_symtab): Define.
7526
d2f7ecac
NC
75272004-04-22 Nick Clifton <nickc@redhat.com>
7528
7529 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
7530
fd99574b
NC
75312004-04-22 Peter Barada <peter@the-baradas.com>
7532
7533 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
7534 * bfd2-in.h: Regenerate.
7535 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
7536
23867d67
CD
75372004-04-21 Chris Demetriou <cgd@broadcom.com>
7538
7539 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
7540 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
7541 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
7542 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
7543 * bfd-in2.h: Regenerate.
7544
2c8c90bc
BW
75452004-04-21 Bob Wilson <bob.wilson@acm.org>
7546
7547 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
7548 require relocations against a weak symbol to reference the same
7549 symbol hash entry if not a final, static link.
7550 (get_cached_value, add_value_map): Add final_static_link argument.
7551 (remove_literals): Pass final_static_link argument as needed.
7552
40838a72
AC
75532004-04-21 Andrew Cagney <cagney@redhat.com>
7554
7555 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
7556 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
7557 (opncls_bwrite, opncls_bclose, opncls_bflush)
7558 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
7559 bfd iovec that uses function callbacks.
7560 (bfd_close): Use the iovec's bclose.
7561 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
7562 (cache_bclose, cache_bflush, cache_bstat)
7563 (cache_iovec): New functions and global variable, implement a
7564 cache "iovec", where applicable set bfd_error.
7565 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
7566 * bfdio.c (struct bfd_iovec): Define.
7567 (real_read): Delete function.
7568 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
7569 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
7570 assume that bread and bwrite set bfd_error.
7571 * bfd.c (struct bfd): Add "iovec", update comments.
7572 * bfd-in2.h, libbfd.h: Re-generate.
7573
7f919c84
AC
75742004-04-21 Andrew Cagney <cagney@redhat.com>
7575
7576 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
7577
715df9b8
EB
75782004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
7579
7580 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
7581 (bfd_elf_gc_sections): Fail if a shared object is being created.
7582 Do not fail if dynamic sections have been created. Instead call
7583 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
7584 dynamically referenced symbols. Do not mark the whole graph
7585 rooted at .eh_frame, only the section proper.
7586
6482c264
NC
75872004-04-20 DJ Delorie <dj@redhat.com>
7588
7589 * reloc.c: Add BFD_RELOC_32_SECREL.
7590 * bfd-in2.h: Regenerate.
7591 * libbfd.h: Likewise.
7592 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
7593 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
7594 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
7595
4dc570c2
JJ
75962004-04-19 Jakub Jelinek <jakub@redhat.com>
7597
7598 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
7599 relocs against hidden/protected undefweak symbols properly.
7600 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7601
0b60d5d3
MK
76022004-04-18 Mark Kettenis <kettenis@gnu.org>
7603
7604 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
7605 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
7606 core files.
7607
d48bdb99
AM
76082004-04-17 Brian Ford <ford@vss.fsi.com>
7609
7610 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
7611 filepos for the SizeOfHeaders field.
7612 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
7613 overflow.
7614 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
7615
57a1784e
AM
76162004-04-16 Alan Modra <amodra@bigpond.net.au>
7617
7618 * simple.c (bfd_simple_get_relocated_section_contents): Don't
7619 change reloc_done. Set and restore _cooked_size.
7620 (RETURN): Delete.
7621
d1ad3f6f
MK
76222004-04-15 Mark Kettenis <kettenis@gnu.org>
7623
7624 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
7625 core files.
7626
3d1bca9d
NC
76272004-04-15 Nick Clifton <nickc@redhat.com>
7628
7629 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
7630
019b892f
AM
76312004-04-15 Alan Modra <amodra@bigpond.net.au>
7632
7633 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
7634
15b43f48
AM
76352004-04-15 H.J. Lu <hongjiu.lu@intel.com>
7636
7637 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
7638 when it is a definition.
7639
6de00a78
AM
76402004-04-14 Alan Modra <amodra@bigpond.net.au>
7641
7642 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
7643 when statically linking PIC code.
7644 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7645
279500de
TS
76462004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
7647
7648 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
7649 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
7650 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
7651 * configure: Regenerate.
7652
ccf2f652
RS
76532004-04-08 Richard Sandiford <rsandifo@redhat.com>
7654
7655 * elflink.c: Include libiberty.h.
7656 * Makefile.am (elflink.lo): Depend on libiberty.h.
7657 * Makefile.in: Regenerate.
7658
ca07892d
DJ
76592004-04-06 Daniel Jacobowitz <drow@mvista.com>
7660
7661 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
7662 ".MIPS.stubs".
7663
a5a58ba4
L
76642004-04-05 H.J. Lu <hongjiu.lu@intel.com>
7665
7666 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
7667 reserve the memory for dynamic linker
7668
24d18d30
MK
76692004-04-05 Mark Kettenis <kettenis@gnu.org>
7670
7671 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
7672 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
7673
a4d7b4b5
L
76742004-04-02 H.J. Lu <hongjiu.lu@intel.com>
7675
7676 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
7677 RELOC_FOR_GLOBAL_SYMBOL.
7678 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
7679
1f433d93
L
76802004-04-02 H.J. Lu <hongjiu.lu@intel.com>
7681
7682 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
7683 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
7684
e489d0ae
PB
76852004-04-01 Paul Brook <paul@codesourcery.com>
7686
7687 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
7688 * elf32-arm.h (struct elf32_elf_section_map): New.
7689 (struct _arm_elf_section_data): New.
7690 (elf32_arm_section_data): Define.
7691 (struct elf32_arm_link_hash_table): Add byteswap_code.
7692 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
7693 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
7694 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
7695 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
7696 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
7697 (bfd_elf32_new_section_hook, elf_backend_write_section,
7698 elf_backend_link_output_symbol_hook): Define.
7699
66a695f0
NC
77002004-04-01 Andy Chittenden <achittenden@bluearc.com>
7701
7702 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
7703 that keeps the characters in a B_INCL..B_EINCL range.
7704 (_bfd_link_section_stabs): When computing the sum of the
7705 characters in a B_INCL..B_EINCL range also keep a copy of those
7706 characters. Use this information to distinguish between
7707 include sections that have the same sum and the same length
7708 but which are nevertheless unique.
7709
8375c36b
PB
77102004-03-31 Paul Brook <paul@codesourcery.com>
7711
7712 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
7713 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
7714
a56b48eb
NC
77152004-03-31 Andy Chittenden <achittenden@bluearc.com>
7716
7717 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
7718 to 'sum_chars' and add field 'num_chars'.
7719 (_bfd_link_section_stabs): When computing the sum of the
7720 characters in a B_INCL..B_EINCL range also keep a count of the
7721 number of characters. Use this information to help distinguish
7722 between include sections when have the same sum but which
7723 nevertheless are still unique.
7724
1fbc7e7a 77252004-03-31 Mattias Engdegård <mattias@virtutech.se>
3d456464
NC
7726
7727 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
7728
0949843d 77292004-03-30 Galit Heller <Galit.Heller@nsc.com>
eb61d2d6 7730 Tomer Levi <Tomer.Levi@nsc.com>
0949843d
NC
7731
7732 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
7733 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
7734 (BFD32_BACKENDS): Add elf32-cr16c.lo.
7735 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
7736 (cpu-cr16c.lo): New target.
7737 (elf32-cr16c.lo): Likewise.
7738 * Makefile.in: Regenerate.
7739 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
7740 (bfd_archures_list): Add bfd_cr16c_arch.
7741 * config.bfd: Handle cr16c-*-elf*.
7742 * configure.in: Handle bfd_elf32_cr16c_vec.
7743 * configure: Regenerate.
7744 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
7745 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
7746 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
7747 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
7748 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
7749 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
7750 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
7751 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
7752 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
7753 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
7754 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
7755 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
7756 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
7757 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
7758 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
7759 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
7760 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
7761 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
7762 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
7763 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
7764 * targets.c (bfd_elf32_cr16c_vec): Declare.
7765 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
7766 * cpu-cr16c.c: New file.
7767 * elf32-cr16c.c: Likewise.
7768 * libbfd.h: Regenerate.
7769 * bfd-in2.h: Likewise.
7770
baaff79e
JJ
77712004-03-30 Jakub Jelinek <jakub@redhat.com>
7772
7773 * elf.c (map_sections_to_segments): Fix handling of .tbss.
7774
c152c796
AM
77752004-03-27 Alan Modra <amodra@bigpond.net.au>
7776
7777 * Makefile.am: Remove all mention of elflink.h.
7778 * Makefile.in: Regenerate.
7779 * bfd-in.h (bfd_elf_discard_info): Declare.
7780 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
7781 * bfd-in2.h: Regenerate.
7782 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
7783 bfd_elf32_link_record_dynamic_symbol,
7784 bfd_elf64_link_record_dynamic_symbol,
7785 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
7786 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
7787 _bfd_elf32_link_record_local_dynamic_symbol,
7788 _bfd_elf64_link_record_local_dynamic_symbol,
7789 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
7790 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
7791 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
7792 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
7793 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
7794 _bfd_elf32_reloc_symbol_deleted_p,
7795 _bfd_elf64_reloc_symbol_deleted_p): Delete.
7796 (bfd_elf_link_record_dynamic_symbol,
7797 bfd_elf_link_record_local_dynamic_symbol,
7798 bfd_elf_final_link, bfd_elf_gc_sections,
7799 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
7800 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
7801 bfd_elf_reloc_symbol_deleted_p): Declare.
7802 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
7803 * elf32-arm.h: Update for changed function names. Remove local
7804 WILL_CALL_FINISH_DYNAMIC_SECTION define.
7805 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
7806 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
7807 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
7808 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
7809 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
7810 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
7811 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
7812 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
7813 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
7814 (bfd_elfNN_print_symbol): Define.
7815 * elfcode.h: Don't include elflink.h.
7816 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
7817 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
7818 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
7819 elf_gc_record_vtinherit, elf_gc_record_vtentry,
7820 elf_link_record_local_dynamic_symbol): Don't define.
7821 * elflink.c: Update for changed function names. Move elflink.h
7822 code here.
7823 * elflink.h: Delete file.
7824 * po/SRC-POTFILES.in: Regenerate.
7825 * po/bfd.pot: Regenerate.
7826
6a9cae7f
AM
78272004-03-27 Alan Modra <amodra@bigpond.net.au>
7828
7829 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
7830 "name" for global syms accidentally removed in 2004-03-20 change.
7831
140f6c8e
AM
78322004-03-27 Alan Modra <amodra@bigpond.net.au>
7833
7834 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
7835 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
7836 where Elf_External_* is different for 64 and 32 bit, with
7837 corresponding elf_size_info field.
7838 (struct elf_final_link_info): Use "bfd_byte *" instead
7839 of "Elf_External_Sym *" for external_syms and symbuf.
7840 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
7841 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
7842 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
7843 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
7844 (elf_link_sort_cmp2): Adjust.
7845 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
7846 using ELF_R_SYM macro. Set u.sym_mask.
7847 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
7848 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
7849 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
7850 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
7851 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
7852 swap_syn_out functions. Rearrange dyn swap in/out switch.
7853 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
7854 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
7855 (elf_link_flush_output_syms): Add elf_backend_data arg.
7856 (elf_link_check_versioned_symbol): Likewise.
7857 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
7858 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
7859 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
7860 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
7861 ELF_R_TYPE and ELF_R_INFO macros.
7862 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
7863 based on size rather than using ELF_R_INFO.
7864 (elf_gc_mark): Set up r_sym_shift local var and use instead of
7865 ELF_R_SYM macro.
7866 (struct alloc_got_off_arg): New.
7867 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
7868 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
7869 (elf_gc_allocate_got_offsets): Adjust.
7870 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
7871 ELF_R_SYM. Use bfd_section_from_elf_index.
7872 (elf_bfd_discard_info): Set cookie.r_sym_shift.
7873 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
7874 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
7875
14bde378
SS
78762004-03-26 Stan Shebs <shebs@apple.com>
7877
7878 Remove MPW support, no longer used.
7879 * config.bfd (powerpc-*-mpw*): Remove configuration.
7880 * mpw-config.in, mpw-make.sed: Remove files.
7881 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
7882
555cd476
AM
78832004-03-26 Alan Modra <amodra@bigpond.net.au>
7884
7885 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
7886 (ppc64_elf_add_symbol_hook): New function.
7887 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
7888 const from Elf_Internal_Sym param.
7889 * elflink.c (elf_link_add_object_symbols): Adjust.
7890 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
7891 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
7892 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
7893 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
7894 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
7895 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
7896 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
7897 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
7898 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
7899 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
7900 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
7901 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
7902 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
7903 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
7904 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
7905 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
7906
4ad4eba5
AM
79072004-03-26 Alan Modra <amodra@bigpond.net.au>
7908
7909 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
7910 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
7911 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
7912 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
7913 (bfd_elf64_bfd_link_add_symbols): Delete.
7914 (bfd_elf_link_add_symbols): Declare.
7915 * elfcode.h (elf_bfd_link_add_symbols): Delete.
7916 * elflink.c: Include safe-ctype.h.
7917 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
7918 make static.
7919 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
7920 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
7921 static.
7922 (elf_link_add_archive_symbols): Rename from
7923 _bfd_elf_link_add_archive_symbols, make static.
7924 (elf_link_add_object_symbols): New function. Corresponding
7925 elflink.h function converted to use elf_size_info.
7926 (bfd_elf_link_add_symbols): Likewise.
7927 (bfd_elf_size_dynamic_sections): Adjust.
7928 * elflink.h (elf_bfd_link_add_symbols): Delete.
7929 (elf_link_add_object_symbols): Delete.
7930 * elf32-gen.c (elf32_generic_link_add_symbols): Call
7931 bfd_elf_link_add_symbols.
7932 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
7933
5a580b3a
AM
79342004-03-25 Alan Modra <amodra@bigpond.net.au>
7935
7936 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
7937 and chained shared libs only if dynsym. Clear dynsym on forced-local.
c152c796 7938
5a580b3a
AM
7939 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
7940 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
7941 (_bfd_elf_add_dt_needed_tag): Declare.
7942 (_bfd_elf_sort_symbol): Declare.
7943 (_bfd_elf_finalize_dynstr): Declare.
7944 (RELOC_FOR_GLOBAL_SYM): Formatting.
7945 * elfcode.h (elf_add_dynamic_entry): Delete.
7946 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
7947 elflink.h function converted to use elf_size_info.
7948 (_bfd_elf_add_dt_needed_tag): Likewise.
7949 (_bfd_elf_sort_symbol): Likewise.
7950 (_bfd_elf_finalize_dynstr): Likewise.
7951 (compute_bucket_count): Likewise.
7952 (bfd_elf_size_dynamic_sections): Likewise. Check result of
7953 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
7954 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
7955 * elflink.h: ..here.
7956 (sort_symbol, add_dt_needed_tag): Delete.
7957 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
7958 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
7959 Update all users.
7960 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
7961 * elf32-cris.c (add_dynamic_entry): Likewise.
7962 * elf32-hppa.c (add_dynamic_entry): Likewise.
7963 * elf32-i370.c (add_dynamic_entry): Likewise.
7964 * elf32-i386.c (add_dynamic_entry): Likewise.
7965 * elf32-m32r.c (add_dynamic_entry): Likewise.
7966 * elf32-m68k.c (add_dynamic_entry): Likewise.
7967 * elf32-ppc.c (add_dynamic_entry): Likewise.
7968 * elf32-s390.c (add_dynamic_entry): Likewise.
7969 * elf32-sh.c (add_dynamic_entry): Likewise.
7970 * elf32-sparc.c (add_dynamic_entry): Likewise.
7971 * elf32-vax.c (add_dynamic_entry): Likewise.
7972 * elf32-xtensa.c (add_dynamic_entry): Likewise.
7973 * elf64-alpha.c (add_dynamic_entry): Likewise.
7974 * elf64-hppa.c (add_dynamic_entry): Likewise.
7975 * elf64-ppc.c (add_dynamic_entry): Likewise.
7976 * elf64-s390.c (add_dynamic_entry): Likewise.
7977 * elf64-sparc.c (add_dynamic_entry): Likewise.
7978 * elf64-x86-64.c (add_dynamic_entry): Likewise.
7979 * elfxx-ia64.c (add_dynamic_entry): Likewise.
7980 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
7981 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
7982 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
7983 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
7984
d507cf36
PB
79852004-03-23 Paul Brook <paul@codesourcery.com>
7986
7987 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
7988
88d65ad6
BW
79892004-03-22 Bob Wilson <bob.wilson@acm.org>
7990
7991 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
7992 literal tables and check for relocs outside of literal pools.
7993 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
7994 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
7995 set DF_TEXTREL.
7996 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
7997 (elf_xtensa_relocate_section): Read literal tables and check for
7998 dynamic relocations in read-only sections and not in literal pools.
c152c796 7999
b9cf773d
AM
80002004-03-23 Alan Modra <amodra@bigpond.net.au>
8001
8002 PR 51.
8003 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
8004
e4a2175c
HPN
80052004-03-22 Hans-Peter Nilsson <hp@axis.com>
8006
8007 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
8008 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
8009 not defined by the executable, or defined in a DSO.
8010 <eliding run-time relocation of .got>: Initialize GOT entry for a
8011 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
8012 executable.
8013 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
8014 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
8015 a PLT reloc to GOT for an executable.
8016 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
b9cf773d 8017 .got for a DSO and explain why.
e4a2175c
HPN
8018 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
8019 and unreferenced symbols for which a PLT is defined. Adjust
8020 dynamic-symbol pruning correspondingly, to make sure we don't lose
8021 a dynamic symbol also defined by a DSO.
8022
b2a8e766
AM
80232004-03-22 Alan Modra <amodra@bigpond.net.au>
8024
8025 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
8026 and rel args. Group input and output args. Wrap to 80 columns.
8027 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
8028 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
8029 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
8030 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
8031 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
8032 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
8033 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
8034 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
8035 RELOC_FOR_GLOBAL_SYMBOL invocation.
8036
59c2e50f
L
80372004-03-20 H.J. Lu <hongjiu.lu@intel.com>
8038
8039 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
8040 unresolved symbols in objects aren't allowed.
8041
8042 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
8043 unresolved symbols.
8044 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
8045 (elf_hppa_unmark_useless_dynamic_symbols):
8046 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
8047 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
8048 (elf32_hppa_relocate_section): Likewise.
8049 * elf32-i370.c (i370_elf_relocate_section): Likewise.
8050 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
8051 * elf32-sh.c (sh_elf_relocate_section): Likewise.
8052 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
8053 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
8054
8055 * elf-m10200.c (mn10200_elf_relocate_section): Use
8056 RELOC_FOR_GLOBAL_SYMBOL.
8057 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
8058 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
8059 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
8060 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
8061 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
8062 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
8063 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
8064 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
8065 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
8066 * elf32-v850.c (v850_elf_relocate_section): Likewise.
8067 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
8068 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
8069
9992270f
DA
80702004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8071
36751eee
DA
8072 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
8073 (final_link_relocate): Likewise.
9992270f
DA
8074 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
8075 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
8076
05864e2a
AM
80772004-03-19 Alan Modra <amodra@bigpond.net.au>
8078
8079 * Makefile.am: Run "make dep-am".
8080 * Makefile.in: Regenerate.
8081 * aclocal.m4: Regenerate.
8082 * config.in: Regenerate.
8083 * po/bfd.pot: Regenerate.
8084
f218a464 80852004-03-19 Alan Modra <amodra@bigpond.net.au>
0f8a2703
AM
8086 H.J. Lu <hongjiu.lu@intel.com>
8087
8088 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
8089 type and size change code to where it was previously. Remove
8090 dt_needed param. Treat old weak syms as strong if new sym is
8091 from a shared lib, even when old sym is from another shared
8092 lib. Remove unnecessary tests of oldweak and newweak. Correct
8093 comments.
8094 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
8095 _bfd_elf_merge_symbol calls.
8096 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
8097 dt_needed local var. Update comments.
8098 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
8099 (_bfd_elf_add_default_symbol): Likewise.
f218a464
AM
8100
8101 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
8102 strong syms in one shared object overriding weak syms in another.
8103
79349b09
AM
81042004-03-18 Alan Modra <amodra@bigpond.net.au>
8105
4a43e768
AM
8106 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
8107 dyn_lib_class field. Rearrange for better packing.
8108 (elf_dt_soname): Delete.
8109 (elf_dyn_lib_class): Define.
8110 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
8111 (bfd_elf_set_dt_needed_soname): Delete.
8112 (bfd_elf_set_dyn_lib_class): New function.
8113 * elflink.h (add_dt_needed_tag): New function. Split out from..
8114 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
8115 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
8116 initialization of soname.
8117 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
8118 elf_dt_soname.
8119 * bfd-in.h (enum dynamic_lib_link_class): New.
8120 (bfd_elf_set_dt_needed_soname): Delete.
8121 (bfd_elf_set_dyn_lib_class): Declare.
8122 * bfd-in2.h: Regenerate.
8123
79349b09
AM
8124 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
8125 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
8126 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
8127 symbol loop. Instead use add_needed to flag tag as written.
8128
d13d89fa
NS
81292004-03-17 Nathan Sidwell <nathan@codesourcery.com>
8130
8131 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
8132 logic for null_input_bfd detection.
8133
9183ed4b
AM
81342004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
8135
8136 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
8137
021d7868
MK
81382004-03-16 Mark Kettenis <kettenis@gnu.org>
8139
8140 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
8141 code.
8142
51992aec
AM
81432004-03-16 Alan Modra <amodra@bigpond.net.au>
8144
8145 * elflink.c (elf_link_read_relocs_from_section): Don't use
8146 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
8147 (_bfd_elf_link_read_relocs): ..to here.
8148 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
8149
ccba357f
AM
81502004-03-16 Alan Modra <amodra@bigpond.net.au>
8151
8152 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
8153 values selected in configure.host. Require both to be defined
8154 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
8155 corresponding BFD_HOST vars with quotes.
8156 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
8157 Always require BFD_HOST_64_BIT_DEFINED.
8158 <file_ptr type>: Find off_t size before emitting message. Combine
8159 off_t and ftello64 conditional.
8160 * configure: Regenerate.
8161
41978308
AM
81622004-03-16 Alan Modra <amodra@bigpond.net.au>
8163
8164 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
8165 aliasing warning. Remove trailing whitespace throughout file.
8166
d63b5ed9
DA
81672004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
8168
8169 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
8170 input_section in calls to get_dyn_name.
8171 * elf64-hppa.c (get_dyn_name): Change type of first argument to "bfd *". Use section id of first section in input BFD to build dynamic name for
8172 local symbols.
8173 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
8174
8ce8c090
AM
81752004-03-15 Alan Modra <amodra@bigpond.net.au>
8176
8177 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
8178 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
8179 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
8180 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
8181 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
8182 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
8183 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
8184 when using long.
8185 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
8186 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
8187 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
8188 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
8189 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
8190 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
8191 (read_8_bytes, read_indirect_string, read_address): Likewise.
8192 (read_abbrevs, parse_comp_unit): Likewise.
8193 * targets.c (struct bfd_target): Likewise.
8194 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
8195 * hppabsd-core.c: Likewise. Formatting.
8196 * hpux-core.c: Likewise.
8197 * irix-core.c: Likewise.
8198 * netbsd-core.c: Likewise.
8199 * osf-core.c: Likewise.
8200 * ptrace-core.c: Likewise.
8201 * sco5-core.c: Likewise.
8202 * trad-core.c: Likewise.
8203 * configure: Regenerate.
8204 * bfd-in2.h: Regenerate.
8205
edeb6e24
AM
82062004-03-15 Alan Modra <amodra@bigpond.net.au>
8207
8208 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
8209 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
8210 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
8211 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
8212 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
8213 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
8214 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
8215 * libbfd.c: Likewise in function definitions.
8216 (bfd_put_8): Mask with 0xff rather than casting to char.
8217 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
8218 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
8219 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
8220 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
8221 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
8222 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
8223 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
8224 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
8225 (H_GET_64, H_GET_32, H_GET_16): Likewise.
8226 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
8227 * archive.c (do_slurp_coff_armap): Update swap prototype.
8228 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
8229 (tic54x_getl_signed_32): Likewise.
8230 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
8231 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
8232 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
8233 (bfd_getp_signed_32, bfd_putp32): Likewise.
8234 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
8235 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
8236 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
8237 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
8238 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
8239 bfd_h_getx_signed_16, bfd_h_putx16.
8240 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
8241 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
8242 * hpux-core.c: Likewise.
8243 * irix-core.c: Likewise.
8244 * netbsd-core.c: Likewise.
8245 * osf-core.c: Likewise.
8246 * ptrace-core.c: Likewise.
8247 * sco5-core.c: Likewise.
8248 * trad-core.c: Likewise.
8249 * bfd-in2.h: Regenerate.
8250
c1b954e2
AM
82512004-03-15 Matt Thomas <matt@3am-software.com>
8252
8253 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
8254 selected.
8255
85cfd8d3
MK
82562004-03-13 Mark Kettenis <kettenis@gnu.org>
8257
8258 * config.bfd: Add x86_64-*-openbsd*.
8259 * configure.in (x86_64-*-openbsd*): Set COREFILE to
8260 netbsd-core.lo.
8261 * configure: Regenerate.
8262
d1f161ea
NC
82632004-03-12 Nick Clifton <nickc@redhat.com>
8264 Dave Murphy <wintermute2k4@ntlworld.com>
c1b954e2 8265
d1f161ea
NC
8266 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
8267 if the input bfd does not contain any code.
8268
8b6f2683
JW
82692004-03-09 Steve Ellcey <sje@cup.hp.com>
8270
8271 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
8272
79cda7cf
FF
82732004-03-05 Fred Fish <fnf@redhat.com>
8274
8275 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
8276 mips16 symbols to be even rather than testing first for even/odd.
8277 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
8278
e5caec89
NS
82792004-03-05 Nathan Sidwell <nathan@codesourcery.com>
8280
8281 * elf.c (map_sections_to_segments): Ignore .tbss sections for
8282 layout purposes.
8283
02bb6eae
AO
82842004-03-03 Alexandre Oliva <aoliva@redhat.com>
8285
8286 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
8287 undefined symbols as hash_new.
8288
ae51a426
JR
82892003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
8290
8291 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
8292 * cpu-sh.c: Ditto.
8293 * elf32-sh.c: Ditto.
8294 * bfd-in2.h: Regenerate.
8295
3b712a1a
AO
82962004-03-02 Alexandre Oliva <aoliva@redhat.com>
8297
8298 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
8299 dynrelocs.
8300 (_frv_count_got_plt_entries): Initialize them.
8301 (frv_pic_relocs_info_find): Add insert argument. Adjust all
8302 callers.
8303 (frv_pic_relocs_info_for_global): Likewise.
8304 (frv_pic_relocs_info_for_local): Likewise.
8305 (frv_pic_merge_early_relocs_info): New.
8306 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
8307 another.
8308 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
8309 Check that we don't exceed the allocated count for entry.
8310 (_frv_add_rofixup): Likewise.
8311 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
8312 (elf32_frv_finish_dynamic_sections): Improve error message in case
8313 we emit too few rofixup entries.
8314
676a64f4
RS
83152004-03-01 Richard Sandiford <rsandifo@redhat.com>
8316
8317 * archures.c (bfd_mach_fr450): New.
8318 * bfd-in2.h: Regenerate.
8319 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
8320 (arch_info_500): Link to it.
8321 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
8322 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
8323 (frv_elf_arch_extension_p): New function.
8324 (frv_elf_merge_private_bfd_data): Use it.
8325
0ad989f9
L
83262004-02-28 H.J. Lu <hongjiu.lu@intel.com>
8327
8328 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
8329
8330 * elflink.h (is_global_data_symbol_definition): Moved to
8331 elflink.c.
8332 (elf_link_is_defined_archive_symbol): Likewise.
8333 (elf_link_add_archive_symbols): Likewise. Renamed to
8334 _bfd_elf_link_add_archive_symbols.
8335
8336 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
8337 of ELF symbol table entry from backend.
8338 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
8339 instead of elf_link_add_object_symbols.
8340
ec3391e7
AO
83412004-02-27 Alexandre Oliva <aoliva@redhat.com>
8342
8343 * elf-bfd.h (struct elf_backend_data): Added
8344 elf_backend_can_make_relative_eh_frame,
8345 elf_backend_can_make_lsda_relative_eh_frame and
8346 elf_backend_encode_eh_address.
8347 (_bfd_elf_encode_eh_address): Declare.
8348 (_bfd_elf_can_make_relative): Declare.
8349 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
8350 hooks to decide whether to attempt to make_relative and
8351 make_lsda_relative.
8352 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
8353 (_bfd_elf_can_make_relative): New.
8354 (_bfd_elf_encode_eh_address): New.
8355 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
8356 (frv_elf_encode_eh_address): New.
8357 (elf_backend_can_make_relative_eh_frame): Define.
8358 (elf_backend_can_make_lsda_relative_eh_frame): Define.
8359 (elf_backend_encode_eh_address): Define.
8360 * elfxx-target.h
8361 (elf_backend_can_make_relative_eh_frame): Define.
8362 (elf_backend_can_make_lsda_relative_eh_frame): Define.
8363 (elf_backend_encode_eh_address): Define.
8364 (elfNN_bed): Add them.
8365
e6deed0a
AO
83662004-02-27 Alexandre Oliva <aoliva@redhat.com>
8367
8368 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
8369 complain_on_overflow to signed.
8370
b60d7a1a
L
83712004-02-27 H.J. Lu <hongjiu.lu@intel.com>
8372
8373 * elflink.h (sort_symbol): New.
8374 (elf_link_add_object_symbols): Use a sorted symbol array for
8375 weakdef.
8376
1c3ff0f2
MS
83772004-02-27 Jakub Jelinek <jakub@redhat.com>
8378
8379 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
8380 for pc relative relocs.
8381 (elf_s390_relocate_section): Likewise.
8382 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
8383 for pc relative relocs.
8384 (elf_s390_relocate_section): Likewise.
8385
de9811af
L
83862004-02-26 H.J. Lu <hongjiu.lu@intel.com>
8387
8388 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
8389 count_dyn_reloc.
8390
ac33696c
L
83912004-02-25 H.J. Lu <hongjiu.lu@intel.com>
8392
8393 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
8394 field to track if a relocation is against readonly section.
8395 (count_dyn_reloc): Take a new argument for rent->reltext.
8396 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
8397 (get_reloc_section): Don't set ia64_info->reltext here.
8398 (allocate_dynrel_entries): Set ia64_info->reltext here.
8399
072c8903
AO
84002004-02-24 Alexandre Oliva <aoliva@redhat.com>
8401
8402 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
8403 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
8404 function's descriptor to symbol+offset, and map local undefweak
8405 symbol to NULL function descriptor.
8406 (elf32_frv_relocate_section): Likewise.
8407
aca305d9
NC
84082004-02-23 Mark Kettenis <kettenis@gnu.org>
8409
8410 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
8411 M_X86_64_NETBSD.
8412 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
8413 (netbsd_core_file_p): Set architecture from machine ID for
8414 selected machines.
8415
646411fb
JJ
84162004-02-23 Jakub Jelinek <jakub@redhat.com>
8417
8418 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
8419 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
8420
1de1a317
L
84212004-02-21 H.J. Lu <hongjiu.lu@intel.com>
8422
8423 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
8424 symbols with non-default visibility.
8425
3c9d0484
DS
84262004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
8427
8428 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
8429 IMAGE_SCN_MEM_WRITE on known sections only.
8430
a876ecf9
JJ
84312004-02-20 Jakub Jelinek <jakub@redhat.com>
8432
8433 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
8434 symbols used in PIE relocs.
8435
a8a6d7ce
JJ
84362004-02-19 Jakub Jelinek <jakub@redhat.com>
8437
8438 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
8439 .plt sh_entsize.
8440
d080fcd2
DJ
84412004-02-18 Daniel Jacobowitz <drow@mvista.com>
8442
8443 * configure.in: Update version to 2.15.90.
8444 * configure: Regenerate.
8445
d25aed71 84462004-02-17 Daniel Jacobowitz <drow@mvista.com>
c1b954e2 8447 Richard Sandiford <rsandifo@redhat.com>
d25aed71
RS
8448
8449 * elfxx-mips.c (mips_elf_calculate_relocation): Use
8450 _bfd_elf_symbol_refs_local_p to decide whether to decay
8451 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
8452 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
8453 relocs if the symbol wasn't defined by a regular object file.
8454 Don't check the symbol's dynindx.
8455
d7ce59e3
AC
84562004-02-16 Andrew Cagney <cagney@redhat.com>
8457
8458 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
8459 @bfd_file_ptr@.
8460 * bfd-in2.h: Re-generate.
8461
ca0b7686
AC
84622004-02-14 Andrew Cagney <cagney@redhat.com>
8463
8464 * configure.host (HDEFINES): When hppa*-*-hpux*, define
8465 _LARGEFILE64_SOURCE.
8466
340b6d91
AC
84672004-02-13 Andrew Cagney <cagney@redhat.com>
8468
8469 * elf.c (vma_page_aligned_bias): New function.
8470 (assign_file_positions_except_relocs)
8471 (assign_file_positions_for_segments): Replace broken modulo
8472 arithmetic with call to vma_page_aligned_bias.
8473
1012372a
AC
84742004-02-11 Andrew Cagney <cagney@redhat.com>
8475
7c192733
AC
8476 * bfd-in.h: Update copyright.
8477 (bfd_tell): Change return type to file_ptr.
8478 * bfd-in2.h: Re-generate.
8479 * cache.c: Update copyright.
8480 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
8481 parameter.
8482 (close_one): Use real_ftell.
8483 * bfdio.c: Update copyright.
8484 (real_ftell, real_fseek): New functions.
8485 (bfd_tell): Use real_fseek and real_ftell, change return type to
8486 file_ptr.
8487 (bfd_seek): Use real_ftell and real_fseek, change type of
8488 file_position to a file_ptr.
8489 * libbfd-in.h: Update copyright.
8490 (real_ftell, real_fseek): Declare.
8491 * libbfd.h: Re-generate.
8492
1012372a
AC
8493 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
8494 fseeko and fseeko64. Determine bfd_file_ptr.
8495 * configure: Re-generate.
c1ea0c09 8496 * config.in: Re-generate.
c1b954e2 8497
3255318a
NC
84982004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
8499
8500 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
8501 * elf32-h8300.c: Likewise.
8502
0d5f9994
NC
85032004-02-09 Christian Vogel <vogelchr@vogel.cx>
8504 Nick Clifton <nickc@redhat.com>
8505
8506 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
8507 GOT entries with no associated GOT subsection.
8508
174fd7f9
RS
85092004-02-09 Richard Sandiford <rsandifo@redhat.com>
8510
8511 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
8512 * elf.c (swap_out_syms): Use it to decide whether local section
8513 symbols should be named.
8514 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
8515 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
8516 (elf_backend_name_local_section_symbols): Define.
8517 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
8518
03609792
L
85192004-01-30 H.J. Lu <hongjiu.lu@intel.com>
8520
8521 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
8522 (elfNN_ia64_relax_section): Optimize brl to br during the relax
8523 finalize pass.
8524
ea01195e
AO
85252004-01-30 Alexandre Oliva <aoliva@redhat.com>
8526
8527 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
8528 to bfd_link_hash_entry passed by reference to
8529 _bfd_generic_link_add_one_symbol.
8530
838e70c5
L
85312004-01-25 H.J. Lu <hongjiu.lu@intel.com>
8532
8533 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
8534 relocations against dynamic symbols.
8535
4f199be3
DJ
85362004-01-23 Daniel Jacobowitz <drow@mvista.com>
8537
8538 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
8539 change.
8540
28d39d1a
NC
85412004-01-21 Tom Rix <tcrix@worldnet.att.net>
8542
8543 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
8544 * bfd-in2.h, libbfd.h: Rebuilt.
8545
66bed356
DS
85462004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
8547
8548 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
8549 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
8550 flag has been cleared.
8551
7e89635a
KH
85522004-01-19 Kazu Hirata <kazu@cs.umass.edu>
8553
8554 * coff-h8300.c: Add and adjust comments about relaxation.
8555 * elf32-h8300.c: Likewise.
8556
e804e836
KH
85572004-01-16 Kazu Hirata <kazu@cs.umass.edu>
8558
8559 * coff-h8300.c: Fix comment typos.
8560 * elf32-h8300.c: Likewise.
8561
630a7b0a
KH
85622004-01-16 Kazu Hirata <kazu@cs.umass.edu>
8563
8564 * coff-h8300.c: Add comments about relaxation.
8565 * elf32-h8300.c: Likewise.
8566
f8b73030
MR
85672004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8568
8569 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
8570 throughout.
8571 * aclocal.m4: Regenerate.
8572 * configure: Regenerate.
8573
32159579
ILT
85742004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
8575
8576 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
8577 mips_elf64_rtype_to_howto instead of using howto_table.
8578
c84cd8ee
DJ
85792004-01-13 Daniel Jacobowitz <drow@mvista.com>
8580
8581 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
8582 the .plt section.
8583 (elf32_arm_check_relocs): Don't increment the PLT refcount for
8584 relocs which would not use the PLT.
8585
680a3378
AM
85862004-01-13 Alan Modra <amodra@bigpond.net.au>
8587
8588 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
8589 (ppc64_elf_gc_sweep_hook): Likewise.
8590 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
8591
faca21e5
NC
85922004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
8593
8594 Adds linker relaxation support for bit manipulation insns like
680a3378 8595 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
faca21e5 8596 bst, btst, bxor.
680a3378 8597 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5 8598 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
680a3378 8599 * coff-h8300.c: Opcode for bit manipulation insn is checked in
faca21e5
NC
8600 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
8601
818a27ac
AM
86022004-01-12 Alan Modra <amodra@bigpond.net.au>
8603
8604 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
8605
96ef1419
KH
86062004-01-11 Kazu Hirata <kazu@cs.umass.edu>
8607
8608 * elf32-h8300.c: Fix formatting.
8609
babfd660
KH
86102004-01-11 Kazu Hirata <kazu@cs.umass.edu>
8611
8612 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
8613 dynamic object is present. Declare r_symndx and h in an inner
8614 scope.
8615 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
8616
7359ea65
DJ
86172004-01-09 Daniel Jacobowitz <drow@mvista.com>
8618
8619 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
8620 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
8621 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
8622 identically. Do not emit PC24 relocations for shared libraries.
8623 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
8624 identically. Don't adjust pc_count.
8625 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
8626 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
8627 adjust count for branch relocations.
8628 (allocate_dynrelocs): Correct typo in call to
8629 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
8630 PC24 or PLT32 relocs when linking.
8631
44e88952
NC
86322004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
8633
8634 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
8635 relocation howto with ARM_26 one for consistency.
8636 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
8637 that will be converted to ARM_26D ones, since we always want 'done'
8638 relocations to be reflected in section's data.
8639 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
8640 offset.
8641 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
8642 requested.
8643
1e7fef1d
NC
86442004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
8645
8646 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
8647 are not partial_inplace during a relocatable link.
8648
4f075348
KH
86492004-01-08 Kazu Hirata <kazu@cs.umass.edu>
8650
babfd660 8651 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
4f075348
KH
8652 if no dynamic object is present. Declare r_symndx and h in an
8653 inner scope.
8654
de0d9f33
L
86552004-01-07 H.J. Lu <hongjiu.lu@intel.com>
8656
8657 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
8658 trampoline if it is known out of range.
8659
51532845
AO
86602004-01-06 Alexandre Oliva <aoliva@redhat.com>
8661
8662 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
8663 * elf32-frv.c (_frv_osec_readonly_p): New.
8664 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
8665 undefweak symbol.
8666 (_frv_count_got_plt_entries): Adjust expected count accordingly.
8667 (elf32_frv_relocate_section): Likewise. Error out if attempting
8668 to emit rofixups or dynamic relocs in read-only segments. Use
8669 _bfd_elf_section_offset to adjust r_offsets in rofixups and
8670 dynamic relocations.
8671 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
8672 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
8673 relocations or fixups involving merged sections correctly. Avoid
8674 crash when undefined symbol is referenced by R_FRV_32 or
8675 R_FRV_FUNCDESC_VALUE.
8676 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
8677 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
8678 input section holding local symbol to addend of R_FRV_32 or
8679 R_FRV_FUNCDESC_VALUE dynamic relocation.
8680 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
8681 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
8682 (elf32_frv_always_size_sections): Don't store pointer to
8683 __stacksize symbol in sec_info.
8684 (elf32_frv_modify_segment_map): Look it up here.
8685 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
8686 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
8687 of the lazy PLT entry, not only its offset, as the low word of a
8688 function descriptor.
8689 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
8690 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
8691 if a hash table entry already exists but is not a definition.
8692 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
8693 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
8694 (_frv_add_rofixup): Don't inline.
8695 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
8696 for undefweak symbols.
8697 (elf32_frv_relocate_section): Avoid crash while computing
8698 relocation when linking with shared library. Only emit rofixups
8699 and dynamic relocations for alloc&load sections. Mark binaries
8700 with inter-segment relocations for relocation as a unit.
8701 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
8702 (DEFAULT_STACK_SIZE): New.
8703 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
8704 emit rofixups or dynamic relocs when linking dynamic non-PIE
8705 executables.
8706 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
8707 shared libs too. Reserve the last entry for the GOT pointer.
8708 (elf32_frv_finish_dynamic_sections): Emit it.
8709 (elf32_frv_always_size_sections): New.
8710 (elf32_frv_modify_segment_map): New.
8711 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
8712 sections.
8713 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
8714 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
8715 (elf_backend_always_size_sections): New.
8716 (elf_backend_modify_segment_map): New.
8717 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
8718 * config.bfd: Added frv-*-*linux*.
8719 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
8720 ABS section, instead of crashing.
8721 (elf32_frv_relocate_section): Don't crash before warning about
8722 different segments in non-PIC relocation.
8723 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
8724 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
8725 relocs to undefweak symbols.
8726 (elf32_frv_relocate_section): Ditto for undefined symbols.
8727 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
8728 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
8729 gotfixup section was created.
8730 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
8731 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
8732 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
8733 complain_overflow_signed.
8734 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
8735 have not been allocated.
8736 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
8737 privfd only if dynamic sections were created.
8738 (elf32_frv_relocate_section): Compute gprel_segment, and use it
8739 for GPREL relocs. When linking relocatable FDPIC executables,
8740 emit warnings for relocations that would be illegal on PIE or
8741 shared libraries. Emit rofixup for R_FRV_32 only if input object
8742 is not FDPIC.
8743 (_frv_create_got_section): Define _gp symbol in the rofixup
8744 section.
8745 (elf32_frv_finish_dynamic_sections): If rofixups needed but
8746 dynamic sections missing, error out requesting -melf32frvfd.
8747 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
8748 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
8749 computation of addends from section and global or local symbol
8750 value. Change return type to bfd_boolean, and return a failure if
8751 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
8752 nonzero addend is required.
8753 (elf32_frv_relocate_section): Likewise. Print error for
8754 unsupported nonzero addends.
8755 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
8756 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
8757 force everything local.
8758 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
8759 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
8760 (frv_gotfixup_section): New.
8761 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
8762 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
8763 and relocsfdv.
8764 (_frv_add_rofixup): New.
8765 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
8766 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
8767 improve some ugly conditions.
8768 (elf32_frv_relocate_section): Likewise. Reject inter-segment
8769 relocations in fdpic.
8770 (_frv_create_got_section): Create .rofixup.got section.
8771 (struct _frv_dynamic_got_info): Added fixups.
8772 (_frv_count_got_plt_entries): Account in-GOT relocations into
8773 relocs32, relocsfd and relocsfdv. Account them into relocs or
8774 fixups, as appropriate.
8775 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
8776 sizing of gotrel.
8777 (elf32_frv_finish_dynamic_sections): Verify that the right number
8778 of relocations and fixups was generated.
8779 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
8780 relocsfdv.
8781 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
8782 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
8783 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
8784 descriptor of a (formerly-)global symbol is local.
8785 (struct frv_pic_relocs_info): Adjust comments.
8786 (_frv_emit_got_relocs_plt_entries): Adjust.
8787 (elf32_frv_relocate_section): Likewise.
8788 (_frv_count_got_plt_entries): Likewise.
8789 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
8790 symbol's value to addend in the common preamble. Decay dynamic
8791 symbols to section+offset if they bind or call locally, for GOT
8792 and FUNCDESC_VALUE, respectively.
8793 (elf32_frv_relocate_section): Likewise.
8794 (elf32_frv_check_relocs): Don't register as dynamic symbols of
8795 internal or hidden visibility.
8796 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
8797 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
8798 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
8799 (elf32_frv_relocate_section): Pass relocation addend in. Use
8800 original relocation addend to look up the got relocs/plt entries
8801 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
8802 processing relocations that reference .scommon symbols.
8803 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
8804 Introduce support for dynamic linking.
8805 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
8806 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
8807 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
8808 (frv_reloc_type_lookup): Return REL howtos for executables and
8809 dynamic libraries.
8810 (frv_info_to_howto_rel): New.
8811 (struct frv_elf_link_hash_table): New.
8812 (frv_hash_table, frv_got_section, frv_gotrel_section,
8813 frv_plt_section, frv_pltrel_section, frv_relocs_info,
8814 frv_got_initial_offset, frv_plt_initial_offset): New macros.
8815 (frv_elf_link_hash_table_create): New.
8816 (struct frv_pic_relocs_info): New.
8817 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
8818 (frv_pic_relocs_info_find): New.
8819 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
8820 New.
8821 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
8822 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
8823 (_frv_emit_got_relocs_plt_entries): New.
8824 (elf32_frv_relocate_section): Add support for dynamic linking.
8825 Handle new relocations.
8826 (_frv_create_got_section): New.
8827 (elf32_frv_create_dynamic_sections): New.
8828 (ELF_DYNAMIC_INTERPRETER): New.
8829 (struct _frv_dynamic_got_info): New.
8830 (_frv_count_got_plt_entries): New.
8831 (struct _frv_dynamic_got_plt_info): New.
8832 (_frv_compute_got_alloc_data): New.
8833 (_frv_get_got_entry, _frv_get_fd_entry): New.
8834 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
8835 (_frv_resolve_final_relocs_info): New.
8836 (elf32_frv_size_dynamic_sections): New.
8837 (elf32_frv_finish_dynamic_sections): New.
8838 (elf32_frv_adjust_dynamic_symbol): New.
8839 (elf32_frv_finish_dynamic_symbol): New.
8840 (elf32_frv_check_relocs): Handle new relocs. Explain how the
8841 whole thing works.
8842 (elf_info_to_howto_rel): Define.
8843 (bfd_elf32_bfd_link_hash_table_create): Define.
8844 (elf_backend_create_dynamic_sections): Define.
8845 (elf_backend_adjust_dynamic_symbol): Define.
8846 (elf_backend_size_dynamic_sections): Define.
8847 (elf_backend_finish_dynamic_symbol): Define.
8848 (elf_backend_finish_dynamic_sections): Define.
8849 (elf_backend_want_got_sym): Define.
8850 (elf_backend_got_header_size): Define.
8851 (elf_backend_want_got_plt): Define.
8852 (elf_backend_plt_readonly): Define.
8853 (elf_backend_want_plt_sym): Define.
8854 (elf_backend_plt_header_size): Define.
8855 (elf_backend_may_use_rel_p): Define.
8856 (elf_backend_may_use_rela_p): Define.
8857 (elf_backend_default_use_rela_p): Define.
8858 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
8859 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
8860 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
8861 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
8862 (frv_reloc_map): Map the corresponding BFD relocs to them.
8863 (frv_reloc_type_lookup): ... and back to BFD relocs.
8864 * reloc.c: New relocs.
8865 * bfd-in2.h, libbfd.h: Rebuilt.
8866 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
8867 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
8868 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
8869 R_FRV_FUNCDESC_GOTLO): New.
8870 (frv_reloc_map): Map the corresponding BFD relocs to them.
8871 (frv_reloc_type_lookup): ... and back to BFD relocs.
8872 * reloc.c: New relocs.
8873 * bfd-in2.h, libbfd.h: Rebuilt.
8874
4301eeb1
MR
88752004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
8876
8877 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
8878 targets to support pages of up to 64kB.
8879 (elf32_bed): Redefine to get a separate backend data structure for
8880 traditional targets.
8881 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
8882 targets to support pages of up to 64kB.
8883 (elf64_bed): Redefine to get a separate backend data structure for
8884 traditional targets.
8885 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
8886 targets to support pages of up to 64kB.
8887 (elf32_bed): Redefine to get a separate backend data structure for
8888 traditional targets.
8889
0647ed71
MK
88902004-01-04 Mark Kettenis <kettenis@gnu.org>
8891
8892 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
8893
61adc1a4
NC
88942004-01-02 Mark Kettenis <kettenis@gnu.org>
8895
8896 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
8897 (elf_i386_grok_psinfo): Likewise.
8898
b50c15dc
NC
88992004-01-02 Bernardo Innocenti <bernie@develer.com>
8900
8901 * config.bfd: Add m68k-uClinux target.
8902
2627de83
AM
89032004-01-01 Grant Edwards <grante@visi.com>
8904
8905 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
8906 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
8907 (elf32_h8_gc_sweep_hook): New function.
8908 (elf_backend_gc_mark_hook): Define.
8909 (elf_backend_gc_sweep_hook): Define.
8910 (elf_backend_can_gc_sections): Define.
8911
c9e214e5 8912For older changes see ChangeLog-0203
56882138
AM
8913\f
8914Local Variables:
8915mode: change-log
8916left-margin: 8
8917fill-column: 74
8918version-control: never
8919End:
This page took 0.774671 seconds and 4 git commands to generate.