3b7a2d5fc46bb9367664399d232af647a3c020e7
[deliverable/binutils-gdb.git] / bfd / ChangeLog
1 2004-07-27 Alan Modra <amodra@bigpond.net.au>
2
3 * elf64-ppc.c: Correct "Linker stubs" comment.
4
5 2004-07-26 H.J. Lu <hongjiu.lu@intel.com>
6
7 * elf-bfd.h (bfd_elf_section_data): Add a pointer for the
8 linked-to section.
9 (elf_linked_to_section): New.
10
11 * elf.c (assign_section_numbers): Set up sh_link for
12 SHF_LINK_ORDER.
13
14 * elfxx-ia64.c (elfNN_ia64_final_write_processing): Set sh_info
15 to sh_link for SHT_IA_64_UNWIND sections.
16
17 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
18
19 * elflink.c (elf_fixup_link_order): Add _() to error message.
20
21 2004-07-22 H.J. Lu <hongjiu.lu@intel.com>
22
23 * elflink.c (elf_fixup_link_order): Issue a warning and flag
24 an error if failed.
25
26 2004-07-21 H.J. Lu <hongjiu.lu@intel.com>
27
28 * aout-adobe.c (aout_32_section_already_linked): Defined.
29 * aout-target.h (MY_section_already_linked): Likewise.
30 * aout-tic30.c (MY_section_already_linked): Likewise.
31 * binary.c (binary_section_already_linked): Likewise.
32 * bout.c (b_out_section_already_linked): Likewise.
33 * coff-alpha.c (_bfd_ecoff_section_already_linked): Likewise.
34 * coff-mips.c (_bfd_ecoff_section_already_linked): Likewise.
35 * coffcode.h (coff_section_already_linked): Likewise.
36 * i386msdos.c (msdos_section_already_linked): Likewise.
37 * i386os9k.c (os9k_section_already_linked): Likewise.
38 * ieee.c (ieee_section_already_linked): Likewise.
39 * ihex.c (ihex_section_already_linked): Likewise.
40 * mach-o.c (bfd_mach_o_section_already_linked): Likewise.
41 * mmo.c (mmo_section_already_linked): Likewise.
42 * nlm-target.h (nlm_section_already_linked): Likewise.
43 * oasys.c (oasys_section_already_linked): Likewise.
44 * pef.c (bfd_pef_section_already_linked): Likewise.
45 * ppcboot.c (ppcboot_section_already_linked): Likewise.
46 * som.c (som_bfd_discard_group): Likewise.
47 * srec.c (srec_section_already_linked): Likewise.
48 * tekhex.c (tekhex_section_already_linked): Likewise.
49 * versados.c (versados_section_already_linked): Likewise.
50 * vms.c (vms_section_already_linked): Likewise.
51 * coff-target.h (_bfd_xcoff_section_already_linked): Likewise.
52 * xsym.c (bfd_sym_section_already_linked): Likewise.
53
54 * bfd-in.h (bfd_section_already_linked_table_init): New.
55 (bfd_section_already_linked_table_free): Likewise.
56
57 * coff-rs6000.c (rs6000coff_vec): Add
58 _bfd_generic_section_already_linked.
59 (pmac_xcoff_vec): Likewise.
60 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
61 (aix5coff64_vec): Likewise.
62
63 * elf-bfd.h (_bfd_elf_section_already_linked): New prototype.
64 * elflink.c (_bfd_elf_section_already_linked): New function.
65
66 * elfxx-target.h (bfd_elfNN_section_already_linked): Defined.
67
68 * libbfd-in.h (_bfd_nolink_section_already_linked): Defined.
69 (_bfd_generic_section_already_linked): New.
70 (bfd_section_already_linked_hash_entry): Likewise.
71 (bfd_section_already_linked): Likewise.
72 (bfd_section_already_linked_table_lookup): Likewise.
73 (bfd_section_already_linked_table_insert): Likewise.
74
75 * linker.c (bfd_section_already_linked): New.
76 (_bfd_section_already_linked_table): Likewise.
77 (bfd_section_already_linked_table_lookup): Likewise.
78 (bfd_section_already_linked_table_insert): Likewise.
79 (already_linked_newfunc): Likewise.
80 (bfd_section_already_linked_table_init): Likewise.
81 (bfd_section_already_linked_table_free): Likewise.
82 (_bfd_generic_section_already_linked): Likewise.
83
84 * section.c (bfd_section): Remove comdat.
85 (bfd_comdat_info): Moved to ...
86 * bfd-in.h (coff_comdat_info): Here.
87 (bfd_coff_get_comdat_section): New.
88 * coffgen.c (bfd_coff_get_comdat_section): Likewise.
89 * libcoff-in.h (coff_section_tdata): Add comdat.
90 * coffcode.h (handle_COMDAT): Updated.
91 * cofflink.c (coff_link_add_symbols): Likewise.
92 * ecoff.c (bfd_debug_section): Likewise.
93
94 * targets.c (bfd_target): Add _section_already_linked.
95 (BFD_JUMP_TABLE_LINK): Updated.
96
97 * bfd-in2.h: Regenerated.
98 * libbfd.h: Likewise.
99 * libcoff.h: Likewise.
100
101 2003-07-21 Paul Brook <paul@codesourcery.com>
102
103 * elflink.c (elf_get_linked_section_vma, compare_link_order,
104 elf_fixup_link_order): New functions.
105 (bfd_elf_final_link): Call elf_fixup_link_order.
106
107 2004-07-21 Alexandre Oliva <aoliva@redhat.com>
108
109 * elf-bfd.h (ELF_COMMON_DEF_P): New.
110 * elflink.c (_bfd_elf_symbol_refs_local_p): Use it to handle
111 common definitions.
112 * elf-m10300.c: Use SYMBOL_REFERENCES_LOCAL instead of
113 _bfd_elf_symbol_refs_local_p.
114 * elf32-frv.c (FRVFDPIC_SYM_LOCAL): Remove hack for common
115 symbols.
116
117 2004-07-19 H.J. Lu <hongjiu.lu@intel.com>
118
119 * bfd-in.h (dynamic_lib_link_class): Add DYN_NO_ADD_NEEDED and
120 DYN_NO_NEEDED.
121 (bfd_elf_get_dyn_lib_class): New prototype.
122 * elf.c (bfd_elf_get_dyn_lib_class): New function.
123
124 * elflink.c (elf_link_add_object_symbols): Check DYN_AS_NEEDED,
125 DYN_DT_NEEDED and DYN_NO_NEEDED bits to see if a DT_NEEDED
126 entry is needed. Issue an error if a DT_NEEDED entry is needed
127 for a file marked DYN_NO_NEEDED.
128 (elf_link_check_versioned_symbol): Check the DYN_DT_NEEDED bit
129 for DT_NEEDED tags.
130
131 * bfd-in2.h: Regenerated.
132
133 2004-07-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
134
135 * elflink.c (elf_section_complain_discarded): Don't complain in
136 .PARISC.unwind.
137
138 2004-07-10 James E Wilson <wilson@specifixinc.com>
139
140 * elfxx-ia64.c (elfNN_ia64_relax_ldxmov): Remove abfd parameter.
141 (elfNN_ia64_install_value, elfNN_ia64_relax_brl): Likewise.
142 (elfNN_ia64_relax_section, elfNN_ia64_relocate_section,
143 elfNN_ia64_finish_dynamic_symbol, elfNN_ia64_finish_dynamic_sections):
144 Fix callers.
145 (elfNN_ia64_relax_brl): Change bfd_get_64 to bfd_getl64. Change
146 bfd_put_64 to bfd_putl64.
147 (elfNN_ia64_relax_ldxmov, elfNN_ia64_install_value): Likewise.
148
149 2004-07-09 H.J. Lu <hongjiu.lu@intel.com>
150
151 PR 240
152 * elfxx-ia64.c (elfNN_ia64_relax_section): Only warn br in
153 .init/.fini sections when trying to relax it.
154
155 2004-07-09 Jie Zhang <zhangjie@magima.com.cn>
156
157 * elf.c (assign_file_positions_for_segments): Make sure the
158 .dynamic section is the first section in the PT_DYNAMIC segment.
159
160 2004-07-09 Nick Clifton <nickc@redhat.com>
161
162 * config.bfd: Change sh-sybmian-elf to sh-*-symbianelf.
163 * elf32-sh-symbian.c: Rename the sh_find_elf_flags and
164 sh_elf_get_flags_from_mach functions so that they do not conflict
165 when this target is built with other sh-elf targets.
166 * elf32-sh.c (sh_elf_get_flags_from_mach): Remove bogus
167 suppression of this function.
168 (sh_elf_find_flags): Likewise.
169
170 2004-07-07 Tomer Levi <Tomer.Levi@nsc.com>
171
172 * Makefile.am (ALL_MACHINES): Add cpu-crx.lo.
173 (ALL_MACHINES_CFILES): Add cpu-crx.c.
174 (BFD32_BACKENDS): Add elf32-crx.lo.
175 (BFD32_BACKENDS_CFILES): Add elf32-crx.c.
176 (cpu-crx.lo): New target.
177 (elf32-crx.lo): New target.
178 * Makefile.in: Regenerate.
179 * archures.c (bfd_architecture): Add bfd_{arch,mach}_crx.
180 (bfd_archures_list): Add bfd_crx_arch.
181 * bfd-in2.h: Regenerate.
182 * config.bfd: Handle crx-*-elf*, crx*.
183 * configure.in: Handle bfd_elf32_crx_vec.
184 * configure: Regenerate.
185 * cpu-crx.c: New file.
186 * elf32-crx.c: Likewise.
187 * libbfd.h: Regenerate.
188 * reloc.c: Add BFD_RELOC_CRX_REL4, BFD_RELOC_CRX_REL8,
189 BFD_RELOC_CRX_REL8_CMP, BFD_RELOC_CRX_REL16, BFD_RELOC_CRX_REL24,
190 BFD_RELOC_CRX_REL32, BFD_RELOC_CRX_REGREL12, BFD_RELOC_CRX_REGREL22,
191 BFD_RELOC_CRX_REGREL28, BFD_RELOC_CRX_REGREL32, BFD_RELOC_CRX_ABS16,
192 BFD_RELOC_CRX_ABS32, BFD_RELOC_CRX_NUM8, BFD_RELOC_CRX_NUM16,
193 BFD_RELOC_CRX_NUM32, BFD_RELOC_CRX_IMM16 and BFD_RELOC_CRX_IMM32
194 * targets.c (bfd_elf32_crx_vec): Declare.
195 (bfd_target_vector): Add bfd_elf32_crx_vec.
196
197 2004-07-06 Nick Clifton <nickc@redhat.com>
198
199 * config.bfd: Add sh-symbian-elf target.
200 * configure.in: Add bfd_elf32_shl_symbian_vec.
201 * configure: Regenerate.
202 * elf-bfd.h (struct elf_backend_data): Add new field
203 'check_directives'.
204 * elflink.c (elf_link_add_object_symbols): Invoke the
205 check_directives function, if defined.
206 * elfxx-target.h: Provide a default, NULL definition for
207 check_directives.
208 * targets.c: Add bfd_elf32_shl_symbian_vec.
209 * elf32-sh.c (sh_elf_swap_insns): Protect against unnecessary
210 definition.
211 (elf32_shlin_grok_prstatus, elf32_shlib_grok_psinfo,
212 * sh_elf_get_flags_from_mach, sh_elf_find_flags): Likewise.
213 (TARGET_BIG_SYM, TARGET_LITTLE_SYM): Only define if they have
214 not already been defined.
215 * elf32-sh64.c: Use SH_TARGET_ALREADY_DEFINED.
216 * sh-symbian.c: New file. Provide functions to support the
217 * sh-symbian-elf target.
218 * Makefile.am: Add elf32-sh-symbian.c
219 * Makefile.in: Regenerate.
220
221 2004-07-05 Andrew Stubbs <andrew.stubbs@superh.com>
222
223 * elf32-sh.c: Include ../opcodes/sh-opc.h.
224 * Makefile.am: Ran make dep-am.
225 * Makefile.in: Ran make dep-in.
226
227 2004-07-03 Aaron W. LaFramboise <aaron98wiridge9@aaronwl.com>
228
229 * cofflink.c (_bfd_coff_generic_relocate_section): Resolve PE weak
230 externals properly.
231
232 2004-07-02 Martin Schwidefsky <schwidefsky@de.ibm.com>
233
234 * config.bfd: Add want64 to configuration target s390-*-linux*.
235
236 2004-07-01 H.J. Lu <hongjiu.lu@intel.com>
237
238 * bfd.c (bfd_get_section_ident): New.
239
240 * elflink.c (elf_link_read_relocs_from_section): Call
241 bfd_get_section_ident to identify the section when reporting
242 error.
243 (_bfd_elf_link_output_relocs): Likewise.
244 (elf_link_output_extsym): Likewise.
245 (elf_link_input_bfd): Likewise.
246 (bfd_elf_gc_record_vtinherit): Likewise.
247
248 * bfd-in2.h: Regenerated.
249
250 2004-07-01 Jie Zhang <zhangjie@magima.com.cn>
251 Nick Clifton <nickc@redhat.com>
252
253 PR 204
254 * elfxx-mips.c (_bfd_mips_elf_final_link): Pass the correct number
255 of section symbols to mips_elf_sort_hash_table ().
256
257 2004-07-01 Alan Modra <amodra@bigpond.net.au>
258
259 * elflink.c (elf_section_ignore_discarded_relocs): Revert last
260 change. Comment.
261 (elf_section_complain_discarded): New function. Handle
262 .gcc_except_table too.
263 (elf_link_input_bfd): Rewrite handling of relocs against symbols
264 in discarded sections.
265 * elf-bfd.h (elf_discarded_section): Protect macro arg.
266
267 2004-06-30 James E Wilson <wilson@specifixinc.com>
268
269 * elfxx-ia64.c (elfNN_ia64_check_relocs): New local pltoff. Initialize
270 to NULL. Call get_pltoff if NULL and NEED_PLTOFF is true.
271
272 2004-06-30 H.J. Lu <hongjiu.lu@intel.com>
273
274 PR 233
275 * elflink.c (elf_link_input_bfd): Issue an error for non-debug
276 local references to discarded sections and report their
277 locations.
278
279 2004-06-30 Alan Modra <amodra@bigpond.net.au>
280
281 * elflink.c (elf_section_ignore_discarded_relocs): Don't test
282 sec_info_type, test section name instead.
283
284 2004-06-29 H.J. Lu <hongjiu.lu@intel.com>
285
286 PR 240
287 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't relax branch
288 in .init/.fini sections.
289
290 2004-06-29 Bob Wilson <bob.wilson@acm.org>
291
292 * elf32-xtensa.c (elf_xtensa_relocate_section): Use
293 bfd_get_section_limit.
294
295 2004-06-29 Bob Wilson <bob.wilson@acm.org>
296
297 * elf32-xtensa.c (elf_xtensa_combine_prop_entries): Don't change the
298 output section size.
299
300 2004-06-29 Alan Modra <amodra@bigpond.net.au>
301
302 * elf64-mmix.c (mmix_set_relaxable_size): Save original size in
303 rawsize.
304 (mmix_elf_perform_relocation): Adjust for above change.
305 (mmix_elf_relocate_section): Likewise.
306 (mmix_elf_relax_section): Likewise. Use output_section->rawsize.
307 (mmix_elf_get_section_contents): Delete.
308 (bfd_elf64_get_section_contents): Delete.
309 (mmix_elf_relocate_section): Zero stub area.
310 * linker.c (default_indirect_link_order): Alloc max of section size
311 and rawsize.
312 * simple.c (bfd_simple_get_relocated_section_contents): Likewise.
313 * section.c (bfd_malloc_and_get_section): Likewise.
314 (struct bfd_section): Update rawsize comment.
315 * bfd-in2.h: Regenerate.
316
317 * reloc16.c (bfd_coff_reloc16_relax_section): Set rawsize.
318
319 2004-06-29 Alan Modra <amodra@bigpond.net.au>
320
321 * bfd-in.h (bfd_get_section_limit): Define.
322 * reloc.c (bfd_perform_relocation, bfd_install_relocation)
323 (_bfd_final_link_relocate): Use bfd_get_section_limit.
324 * aout-tic30.c (tic30_aout_final_link_relocate): Likewise.
325 * coff-arm.c (coff_arm_relocate_section): Likewise.
326 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): Likewise.
327 * cpu-ns32k.c (do_ns32k_reloc): Likewise.
328 (bfd_ns32k_final_link_relocate): Likewise.
329 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): Likwise.
330 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): Likewise.
331 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc)
332 (i860_howto_highadj_reloc, i860_howto_splitn_reloc): Likewise.
333 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc)
334 (m32r_elf_generic_reloc, m32r_elf_relocate_section): Likewise.
335 * elf32-m68hc1x.c (m68hc11_elf_special_reloc): Likewise.
336 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
337 * elf32-or32.c (or32_elf_consth_reloc): Likewise.
338 * elf32-ppc.c (ppc_elf_addr16_ha_reloc): Likewise.
339 * elf32-s390.c (s390_elf_ldisp_reloc): Likewise.
340 * elf32-sh.c (sh_elf_reloc_loop): Likewise.
341 * elf32-sparc.c (sparc_elf_wdisp16_reloc): Likewise.
342 (sparc_elf_hix22_reloc, sparc_elf_lox10_reloc): Likwise.
343 * elf32-v850.c (v850_elf_reloc): Likewise.
344 * elf32-xstormy16.c (xstormy16_elf_24_reloc): Likewise.
345 * elf32-xtensa.c (bfd_elf_xtensa_reloc): Likewise.
346 * elf64-alpha.c (elf64_alpha_reloc_gpdisp): Likewise.
347 * elf64-mips.c (mips_elf64_gprel32_reloc)
348 (mips16_gprel_reloc): Likewise.
349 * elf64-mmix.c (mmix_elf_reloc): Likewise.
350 * elf64-s390.c (s390_elf_ldisp_reloc): Likewise.
351 * elf64-sparc.c (init_insn_reloc): Likewise.
352 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc): Likewise.
353 * elfxx-mips.c (_bfd_mips_elf_gprel16_with_gp)
354 (_bfd_mips_elf_hi16_reloc, _bfd_mips_elf_lo16_reloc)
355 (_bfd_mips_elf_generic_reloc): Likewise.
356 * bfd-in2.h: Regenerate.
357
358 2004-06-28 Alan Modra <amodra@bigpond.net.au>
359
360 * bfd-in.h (struct stab_info): Move from stabs.c.
361 * stabs.c (struct stab_link_includes_table): Delete.
362 (stab_link_includes_lookup): Delete.
363 (_bfd_write_section_stabs, _bfd_write_stab_strings): Remove one
364 level of indirection from sinfo parm.
365 (_bfd_link_section_stabs): Likewise. Set SEC_LINKER_CREATED on
366 stabstr section. Adjust hash table accesses.
367 * coff-ppc.c (ppc_bfd_coff_final_link): Do include rawsize in contents
368 alloc. Adjust stab_info test.
369 * cofflink.c (_bfd_coff_link_hash_table_init): Clear stab_info.
370 (_bfd_coff_final_link): Adjust stab_info test.
371 (_bfd_coff_link_input_bfd): Ignore SEC_LINKER_CREATED sections.
372 * elf-bfd.h (struct elf_link_hash_table): Include struct stab_info
373 in place.
374 * libcoff-in.h (struct coff_link_hash_table): Likewise.
375 * elf.c (_bfd_elf_link_hash_table_init): Clear stab_info.
376 * elflink.c (bfd_elf_final_link): Don't attempt to link linker created
377 stabstr section. Adjust stab_info test.
378 * libbfd-in.h (_bfd_link_section_stabs, _bfd_write_section_stabs)
379 (_bfd_write_stab_strings): Adjust prototypes.
380 * libbfd.h: Regenerate.
381 * libcoff.h: Regenerate.
382 * bfd-in2.h: Regenerate.
383
384 2004-06-27 Mark Kettenis <kettenis@gnu.org>
385
386 From Miod Vallat <miod@online.fr>:
387 * aoutx.h (NAME(aout,machine_type)): Handle bfd_arch_m88k.
388
389 2004-06-26 Alexandre Oliva <aoliva@redhat.com>
390
391 * elf-m10300.c (struct elf_mn10300_pcrel_relocs_copied): Delete.
392 (struct elf32_mn10300_link_hash_entry): Remove
393 pcrel_relocs_copied.
394 (mn10300_elf_check_relocs): Only reserve dynamic relocations for
395 R_MN10300_32. Don't adjust pcrel_relocs_copied.
396 (mn10300_elf_final_link_relocate): Fail for direct, pc-relative
397 and gotoff relocations if the symbol doesn't bind locally. Use
398 _bfd_elf_symbol_refs_local_p to test. Don't create dynamic
399 relocation for PCREL32.
400 (mn10300_elf_relocate_section): Use _bfd_elf_symbol_refs_local_p
401 to test whether a symbol binds locally.
402 (elf32_mn10300_link_hash_newfunc): Don't initialize
403 pcrel_relocs_copied.
404 (_bfd_mn10300_elf_discard_copies): Delete.
405 (_bfd_mn10300_elf_size_dynamic_sections): Don't call it.
406
407 2004-06-26 Mark Kettenis <kettenis@gnu.org>
408
409 * config.bfd: Replace m88k-*-openbsd* with m88*-*-openbsd*.
410
411 2004-06-25 Joel Brobecker <brobecker@gnat.com>
412
413 * som.c (som_set_reloc_info): Correct small typo.
414
415 2004-06-25 Kazuhiro Inaoka <inaoka.kazuhiro@renesas.com>
416
417 * elf32-m32r.c (m32r_elf_howto_table): Support R_M32R_GOTOFF.
418 (m32r_elf_relocate_section): Changed for R_M32R_GOTOFF.
419 (m32r_elf_gcsweep_hook): Likewise.
420 (m32r_elf_check_relocs): Likewise.
421 (m32r_elf_howto_table): Added R_M32R_GOTOFF_HI_ULO,
422 R_M32R_GOTOFF_HI_SLO and R_M32R_GOTOFF_LO.
423 * reloc.c: Added BFD_RELOC_M32R_GOTOFF_HI_ULO,
424 BFD_RELOC_M32R_GOTOFF_HI_SLO and BFD_RELOC_M32R_GOTOFF_LO.
425 * bfd-in2.h: Regenerated.
426 * libbfd.h: Regenerated.
427
428 2004-06-24 H.J. Lu <hongjiu.lu@intel.com>
429
430 * elf64-x86-64.c (elf64_x86_64_check_relocs): Warn overflow
431 relocation symbol.
432 (elf64_x86_64_relocate_section): Issue an error for
433 R_X86_64_PC8, R_X86_64_PC16 and R_X86_64_PC32 relocations
434 against global symbols when building shared library.
435
436 2004-06-24 Alan Modra <amodra@bigpond.net.au>
437
438 * section.c (struct sec): Rename "_cooked_size" to "size".
439 Rename "_raw_size" to "rawsize".
440 (STD_SECTION): Adjust comments.
441 (bfd_set_section_size, bfd_get_section_contents): Use size.
442 (bfd_malloc_and_get_section): New function.
443 * bfd-in.h (bfd_section_size, bfd_get_section_size): Use size.
444 * coff-sh.c (sh_relax_section): Alloc coff_section_data struct early.
445 Correctly free reloc and contents memory.
446 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Delete FIXME
447 and fake CIE now that we can shink section size to zero.
448 (_bfd_elf_write_section_eh_frame): Likewise..
449 * elf32-ppc.c (ppc_elf_relax_section): Delay reading section contents.
450 * elf-m10300.c (mn10300_elf_final_link_relocate): Don't use
451 _bfd_stab_section_offset. Use _bfd_elf_section_offset.
452 * stabs.c (_bfd_stab_section_offset_): Remove unused args and
453 unneeded indirection.
454 * elf.c (_bfd_elf_section_offset): .. and update call.
455 * libbfd-in.h (_bfd_stab_section_offset): Update prototype.
456 * libbfd.h: Regenerate.
457 * bfd-in2.h: Regenerate.
458
459 Replace occurrences of "_raw_size" and "_cooked_size" in most places
460 with "size". Set new "rawsize" for stabs, eh_frame, and SEC_MERGE
461 sections. Use "rawsize", if non-zero, for bfd_get_section_contents
462 calls if the section might be a stabs, eh_frame, or SEC_MERGE section.
463 Similarly use "rawsize", if non-zero, in reloc functions to validate
464 reloc addresses. Use new bfd_malloc_and_get_section in most places
465 where bfd_get_section_contents was called. Expand all occurrences of
466 bfd_section_size and bfd_get_section_size. Rename "raw_size" var in
467 grok_prstatus and similar functions to "size".
468 * aix386-core.c (aix386_core_file_p): ..
469 * aix5ppc-core.c (xcoff64_core_p): ..
470 * aout-adobe.c (aout_adobe_callback, aout_adobe_write_object_contents,
471 aout_adobe_set_section_contents): ..
472 * aout-target.h (callback): ..
473 * aout-tic30.c (tic30_aout_callback, tic30_aout_final_link_relocate,
474 MY_bfd_final_link): ..
475 * aoutf1.h (sunos4_core_file_p): ..
476 * aoutx.h (some_aout_object_p, adjust_o_magic, adjust_z_magic,
477 adjust_n_magic, adjust_sizes_and_vmas, translate_from_native_sym_flags,
478 final_link, aout_link_input_section): ..
479 * binary.c (binary_object_p, binary_canonicalize_symtab,
480 binary_set_section_contents): ..
481 * bout.c (b_out_callback, b_out_write_object_contents,
482 b_out_set_section_contents, b_out_bfd_relax_section,
483 b_out_bfd_get_relocated_section_contents): ..
484 * cisco-core.c (cisco_core_file_validate): ..
485 * coff-alpha.c (alpha_ecoff_object_p,
486 alpha_ecoff_get_relocated_section_conten, alpha_relocate_section): ..
487 * coff-arm.c (coff_arm_relocate_section,
488 bfd_arm_allocate_interworking_sections): ..
489 * coff-h8300.c (h8300_reloc16_extra_cases,
490 h8300_bfd_link_add_symbols): ..
491 * coff-mips.c (mips_refhi_reloc, mips_gprel_reloc): ..
492 * coff-ppc.c (coff_ppc_relocate_section, ppc_allocate_toc_section,
493 ppc_bfd_coff_final_link): ..
494 * coff-rs6000.c (xcoff_reloc_type_br, xcoff_ppc_relocate_section): ..
495 * coff-sh.c (sh_relax_section, sh_relax_delete_bytes,
496 sh_align_loads, sh_coff_get_relocated_section_contents): ..
497 * coff64-rs6000.c (xcoff64_write_object_contents,
498 xcoff64_reloc_type_br, xcoff64_ppc_relocate_section): ..
499 * coffcode.h (coff_compute_section_file_positions,
500 coff_write_object_contents): ..
501 * coffgen.c (make_a_section_from_file, coff_write_symbols,
502 coff_section_symbol, build_debug_section): ..
503 * cofflink.c (coff_link_add_symbols, _bfd_coff_final_link,
504 process_embedded_commands, _bfd_coff_link_input_bfd,
505 _bfd_coff_write_global_sym): ..
506 * cpu-arm.c (bfd_arm_update_notes, bfd_arm_get_mach_from_notes): ..
507 * cpu-ns32k.c (do_ns32k_reloc, _bfd_ns32k_final_link_relocate): ..
508 * dwarf1.c (parse_line_table, _bfd_dwarf1_find_nearest_line): ..
509 * dwarf2.c (read_indirect_string, read_abbrevs, decode_line_info,
510 _bfd_dwarf2_find_nearest_line): ..
511 * ecoff.c (bfd_debug_section, ecoff_set_symbol_info,
512 ecoff_compute_section_file_positions,
513 _bfd_ecoff_write_object_contents, ecoff_indirect_link_order): ..
514 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame,
515 _bfd_elf_discard_section_eh_frame_hdr,
516 _bfd_elf_maybe_strip_eh_frame_hdr, _bfd_elf_eh_frame_section_offset,
517 _bfd_elf_write_section_eh_frame,
518 _bfd_elf_write_section_eh_frame_hdr): ..
519 * elf-hppa.h (elf_hppa_sort_unwind): ..
520 * elf-m10200.c (mn10200_elf_relax_section,
521 mn10200_elf_relax_delete_bytes,
522 mn10200_elf_get_relocated_section_contents): ..
523 * elf-m10300.c (_bfd_mn10300_elf_create_got_section,
524 mn10300_elf_check_relocs, mn10300_elf_relax_section,
525 mn10300_elf_relax_delete_bytes,
526 mn10300_elf_get_relocated_section_contents,
527 _bfd_mn10300_elf_adjust_dynamic_symbol,
528 _bfd_mn10300_elf_discard_copies,
529 _bfd_mn10300_elf_size_dynamic_sections,
530 _bfd_mn10300_elf_finish_dynamic_sections): ..
531 * elf.c (_bfd_elf_print_private_bfd_data, bfd_elf_get_bfd_needed_list,
532 _bfd_elf_make_section_from_phdr, elf_fake_sections,
533 bfd_elf_set_group_contents, map_sections_to_segments,
534 elf_sort_sections, assign_file_positions_for_segments,
535 SECTION_SIZE, copy_private_bfd_data,
536 _bfd_elf_get_dynamic_reloc_upper_bound,
537 _bfd_elf_canonicalize_dynamic_reloc, elfcore_maybe_make_sect,
538 _bfd_elfcore_make_pseudosection, elfcore_grok_prstatus,
539 elfcore_grok_lwpstatus, elfcore_grok_win32pstatus,
540 elfcore_grok_note, elfcore_grok_nto_status, elfcore_grok_nto_gregs,
541 _bfd_elf_rel_local_sym, _bfd_elf_get_synthetic_symtab): ..
542 * elf32-arm.h (bfd_elf32_arm_allocate_interworking_sect,
543 bfd_elf32_arm_process_before_allocation,
544 elf32_arm_adjust_dynamic_symbol, allocate_dynrelocs,
545 elf32_arm_size_dynamic_sections, elf32_arm_finish_dynamic_sections,
546 elf32_arm_write_section): ..
547 * elf32-cris.c (cris_elf_grok_prstatus,
548 elf_cris_finish_dynamic_sections, cris_elf_gc_sweep_hook,
549 elf_cris_adjust_gotplt_to_got, elf_cris_adjust_dynamic_symbol,
550 cris_elf_check_relocs, elf_cris_size_dynamic_sections,
551 elf_cris_discard_excess_dso_dynamics,
552 elf_cris_discard_excess_program_dynamics): ..
553 * elf32-d30v.c (bfd_elf_d30v_reloc, bfd_elf_d30v_reloc_21): ..
554 * elf32-dlx.c (_bfd_dlx_elf_hi16_reloc): ..
555 * elf32-frv.c (_frvfdpic_add_dyn_reloc, _frvfdpic_add_rofixup,
556 _frv_create_got_section, _frvfdpic_assign_plt_entries,
557 elf32_frvfdpic_size_dynamic_sections,
558 elf32_frvfdpic_modify_segment_map,
559 elf32_frvfdpic_finish_dynamic_sections): ..
560 * elf32-h8300.c (elf32_h8_relax_section, elf32_h8_relax_delete_bytes,
561 elf32_h8_get_relocated_section_contents): ..
562 * elf32-hppa.c (hppa_build_one_stub, hppa_size_one_stub,
563 elf32_hppa_adjust_dynamic_symbol, allocate_plt_static,
564 allocate_dynrelocs, elf32_hppa_size_dynamic_sections, group_sections,
565 elf32_hppa_size_stubs, elf32_hppa_set_gp, elf32_hppa_build_stubs,
566 elf32_hppa_finish_dynamic_sections): ..
567 * elf32-i370.c (i370_elf_adjust_dynamic_symbol,
568 i370_elf_size_dynamic_sections, i370_elf_check_relocs,
569 i370_elf_finish_dynamic_sections): ..
570 * elf32-i386.c (elf_i386_grok_prstatus, elf_i386_adjust_dynamic_symbol,
571 allocate_dynrelocs, elf_i386_size_dynamic_sections,
572 elf_i386_relocate_section, elf_i386_finish_dynamic_sections): ..
573 * elf32-i860.c (i860_howto_pc26_reloc, i860_howto_pc16_reloc,
574 i860_howto_highadj_reloc, i860_howto_splitn_reloc): ..
575 * elf32-ip2k.c (ip2k_is_switch_table_128,
576 ip2k_relax_switch_table_128, ip2k_is_switch_table_256,
577 ip2k_relax_switch_table_256, ip2k_elf_relax_section,
578 adjust_all_relocations, ip2k_elf_relax_delete_bytes): ..
579 * elf32-m32r.c (m32r_elf_do_10_pcrel_reloc, m32r_elf_hi16_reloc,
580 m32r_elf_generic_reloc, m32r_elf_adjust_dynamic_symbol,
581 allocate_dynrelocs, m32r_elf_size_dynamic_sections,
582 m32r_elf_relocate_section, m32r_elf_finish_dynamic_sections,
583 m32r_elf_relax_section, m32r_elf_relax_delete_bytes,
584 m32r_elf_get_relocated_section_contents): ..
585 * elf32-m68hc11.c (m68hc11_elf_build_one_stub,
586 m68hc11_elf_size_one_stub, m68hc11_elf_relax_section,
587 m68hc11_elf_relax_delete_bytes): ..
588 * elf32-m68hc12.c (m68hc12_elf_build_one_stub,
589 m68hc12_elf_size_one_stub): ..
590 * elf32-m68hc1x.c (elf32_m68hc11_size_stubs,
591 elf32_m68hc11_build_stubs, m68hc11_elf_special_reloc): ..
592 * elf32-m68k.c (elf_m68k_check_relocs, elf_m68k_gc_sweep_hook,
593 elf_m68k_adjust_dynamic_symbol, elf_m68k_size_dynamic_sections,
594 elf_m68k_discard_copies, elf_m68k_finish_dynamic_sections): ..
595 * elf32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
596 elf32_mips_grok_prstatus): ..
597 * elf32-or32.c (or32_elf_consth_reloc): ..
598 * elf32-ppc.c (ppc_elf_relax_section, ppc_elf_addr16_ha_reloc,
599 elf_create_pointer_linker_section, ppc_elf_create_linker_section,
600 ppc_elf_additional_program_headers, ppc_elf_adjust_dynamic_symbol,
601 allocate_dynrelocs, ppc_elf_size_dynamic_sections,
602 ppc_elf_finish_dynamic_sections, ppc_elf_grok_prstatus,
603 ppc_elf_final_write_processing): ..
604 * elf32-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
605 allocate_dynrelocs, elf_s390_size_dynamic_sections,
606 elf_s390_finish_dynamic_sections, elf_s390_grok_prstatus): ..
607 * elf32-sh.c (sh_elf_reloc_loop, sh_elf_relax_section,
608 sh_elf_relax_delete_bytes, sh_elf_align_loads,
609 sh_elf_adjust_dynamic_symbol, allocate_dynrelocs,
610 sh_elf_size_dynamic_sections, sh_elf_get_relocated_section_contents,
611 sh_elf_finish_dynamic_sections, elf32_shlin_grok_prstatus): ..
612 * elf32-sh64-com.c (sh64_address_in_cranges,
613 sh64_get_contents_type): ..
614 * elf32-sh64.c (sh64_find_section_for_address,
615 sh64_elf_final_write_processing): ..
616 * elf32-sparc.c (sparc_elf_wdisp16_reloc, sparc_elf_hix22_reloc,
617 sparc_elf_lox10_reloc, elf32_sparc_adjust_dynamic_symbol,
618 allocate_dynrelocs, elf32_sparc_size_dynamic_sections,
619 elf32_sparc_relocate_section, elf32_sparc_finish_dynamic_sections): ..
620 * elf32-v850.c (v850_elf_reloc, v850_elf_relax_section): ..
621 * elf32-vax.c (elf_vax_check_relocs, elf_vax_adjust_dynamic_symbol,
622 elf_vax_size_dynamic_sections, elf_vax_discard_copies,
623 elf_vax_instantiate_got_entries, elf_vax_relocate_section,
624 elf_vax_finish_dynamic_sections): ..
625 * elf32-xstormy16.c (xstormy16_elf_24_reloc,
626 xstormy16_elf_check_relocs, xstormy16_relax_plt_check,
627 xstormy16_elf_relax_section, xstormy16_elf_always_size_sections,
628 xstormy16_elf_finish_dynamic_sections): ..
629 * elf32-xtensa.c (xtensa_read_table_entries,
630 elf_xtensa_allocate_got_size, elf_xtensa_allocate_local_got_size,
631 elf_xtensa_size_dynamic_sections, elf_xtensa_do_reloc,
632 bfd_elf_xtensa_reloc, elf_xtensa_relocate_section,
633 elf_xtensa_combine_prop_entries, elf_xtensa_finish_dynamic_sections,
634 elf_xtensa_discard_info_for_section, elf_xtensa_grok_prstatus,
635 get_relocation_opcode, retrieve_contents, find_relaxable_sections,
636 collect_source_relocs, is_resolvable_asm_expansion, remove_literals,
637 relax_section, shrink_dynamic_reloc_sections, relax_property_section,
638 xtensa_callback_required_dependence): ..
639 * elf64-alpha.c (elf64_alpha_reloc_gpdisp, elf64_alpha_relax_section,
640 elf64_alpha_check_relocs, elf64_alpha_adjust_dynamic_symbol,
641 elf64_alpha_calc_got_offsets_for_symbol, elf64_alpha_calc_got_offsets,
642 elf64_alpha_size_plt_section, elf64_alpha_size_plt_section_1,
643 elf64_alpha_always_size_sections, elf64_alpha_calc_dynrel_sizes,
644 elf64_alpha_size_rela_got_section, elf64_alpha_size_rela_got_1,
645 elf64_alpha_size_dynamic_sections, elf64_alpha_emit_dynrel,
646 elf64_alpha_finish_dynamic_sections, elf64_alpha_final_link): ..
647 * elf64-hppa.c (allocate_dynrel_entries,
648 elf64_hppa_size_dynamic_sections,
649 elf64_hppa_finish_dynamic_sections): ..
650 * elf64-mips.c (mips_elf64_gprel32_reloc, mips16_gprel_reloc,
651 mips_elf64_canonicalize_dynamic_reloc, mips_elf64_slurp_reloc_table,
652 elf64_mips_grok_prstatus): ..
653 * elf64-mmix.c (mmix_elf_perform_relocation, mmix_elf_reloc,
654 mmix_elf_relocate_section, mmix_elf_final_link,
655 mmix_set_relaxable_size, _bfd_mmix_after_linker_allocation,
656 mmix_elf_relax_section, mmix_elf_get_section_contents): ..
657 * elf64-ppc.c (ppc64_elf_object_p, ppc64_elf_grok_prstatus,
658 ppc64_elf_check_relocs, ppc64_elf_func_desc_adjust,
659 ppc64_elf_adjust_dynamic_symbol, ppc64_elf_edit_opd,
660 allocate_dynrelocs, ppc64_elf_size_dynamic_sections,
661 ppc_build_one_stub, ppc_size_one_stub, ppc64_elf_next_toc_section,
662 toc_adjusting_stub_needed, group_sections, ppc64_elf_size_stubs,
663 ppc64_elf_build_stubs, ppc64_elf_relocate_section,
664 ppc64_elf_finish_dynamic_sections): ..
665 * elf64-s390.c (s390_elf_ldisp_reloc, elf_s390_adjust_dynamic_symbol,
666 allocate_dynrelocs, elf_s390_size_dynamic_sections,
667 elf_s390_finish_dynamic_sections): ..
668 * elf64-sh64.c (sh_elf64_get_relocated_section_contents,
669 sh_elf64_check_relocs, sh64_elf64_adjust_dynamic_symbol,
670 sh64_elf64_discard_copies, sh64_elf64_size_dynamic_sections,
671 sh64_elf64_finish_dynamic_sections): ..
672 * elf64-sparc.c (sparc64_elf_slurp_reloc_table, init_insn_reloc,
673 sparc64_elf_check_relocs, sparc64_elf_adjust_dynamic_symbol,
674 sparc64_elf_size_dynamic_sections, sparc64_elf_relocate_section,
675 sparc64_elf_finish_dynamic_symbol,
676 sparc64_elf_finish_dynamic_sections): ..
677 * elf64-x86-64.c (elf64_x86_64_grok_prstatus,
678 elf64_x86_64_adjust_dynamic_symbol, allocate_dynrelocs,
679 elf64_x86_64_size_dynamic_sections, elf64_x86_64_relocate_section,
680 elf64_x86_64_finish_dynamic_sections): ..
681 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): ..
682 * elfcode.h (elf_slurp_reloc_table): ..
683 * elflink.c (_bfd_elf_create_got_section, elf_add_dt_needed_tag,
684 elf_finalize_dynstr, elf_link_add_object_symbols,
685 bfd_elf_size_dynamic_sections, elf_link_sort_relocs,
686 elf_link_input_bfd, bfd_elf_final_link, bfd_elf_discard_info): ..
687 * elfn32-mips.c (gprel32_with_gp, mips16_gprel_reloc,
688 elf32_mips_grok_prstatus): ..
689 * elfxx-ia64.c (elfNN_ia64_relax_section, allocate_dynrel_entries,
690 elfNN_ia64_size_dynamic_sections, elfNN_ia64_install_dyn_reloc,
691 elfNN_ia64_choose_gp, elfNN_ia64_final_link,
692 elfNN_ia64_finish_dynamic_sections): ..
693 * elfxx-mips.c (mips_elf_create_procedure_table,
694 mips_elf_check_mips16_stubs, _bfd_mips_elf_gprel16_with_gp,
695 _bfd_mips_elf_hi16_reloc, _bfd_mips_elf_generic_reloc,
696 mips_elf_global_got_index, mips_elf_multi_got,
697 mips_elf_create_compact_rel_section, mips_elf_calculate_relocation,
698 mips_elf_allocate_dynamic_relocations,
699 mips_elf_create_dynamic_relocation, _bfd_mips_elf_fake_sections,
700 _bfd_mips_relax_section, _bfd_mips_elf_adjust_dynamic_symbol,
701 _bfd_mips_elf_always_size_sections,
702 _bfd_mips_elf_size_dynamic_sections,
703 _bfd_mips_elf_finish_dynamic_symbol,
704 _bfd_mips_elf_finish_dynamic_sections,
705 _bfd_mips_elf_modify_segment_map, _bfd_mips_elf_discard_info,
706 _bfd_mips_elf_write_section, _bfd_mips_elf_set_section_contents,
707 _bfd_elf_mips_get_relocated_section_contents,
708 _bfd_mips_elf_final_link, _bfd_mips_elf_merge_private_bfd_data): ..
709 * hp300hpux.c (callback): ..
710 * hppabsd-core.c (make_bfd_asection): ..
711 * hpux-core.c (make_bfd_asection): ..
712 * i386linux.c (linux_link_create_dynamic_sections,
713 bfd_i386linux_size_dynamic_sections, linux_finish_dynamic_link): ..
714 * i386msdos.c (msdos_write_object_contents): ..
715 * i386os9k.c (os9k_callback, os9k_write_object_contents,
716 os9k_set_section_contents): ..
717 * ieee.c (parse_expression, ieee_slurp_external_symbols,
718 ieee_slurp_sections, ieee_slurp_debug, ieee_slurp_section_data,
719 ieee_write_section_part, do_with_relocs, do_as_repeat,
720 do_without_relocs, ieee_write_debug_part, init_for_output,
721 ieee_set_section_contents): ..
722 * ihex.c (ihex_scan, ihex_read_section, ihex_get_section_contents): ..
723 * irix-core.c (do_sections, make_bfd_asection): ..
724 * libaout.h (aout_section_merge_with_text_p): ..
725 * libbfd.c (_bfd_generic_get_section_contents,
726 _bfd_generic_get_section_contents_in_window): ..
727 * linker.c (default_indirect_link_order): ..
728 * lynx-core.c (make_bfd_asection): ..
729 * m68klinux.c (linux_link_create_dynamic_sections,
730 bfd_m68klinux_size_dynamic_sections, linux_finish_dynamic_link): ..
731 * mach-o.c (bfd_mach_o_make_bfd_section,
732 bfd_mach_o_scan_read_dylinker, bfd_mach_o_scan_read_dylib,
733 bfd_mach_o_scan_read_thread, bfd_mach_o_scan_read_symtab,
734 bfd_mach_o_scan_read_segment): ..
735 * merge.c (_bfd_add_merge_section, record_section, merge_strings,
736 _bfd_merge_sections): ..
737 * mmo.c (mmo_find_sec_w_addr, mmo_get_spec_section, mmo_get_loc,
738 mmo_map_set_sizes, mmo_canonicalize_symtab,
739 mmo_internal_write_section, mmo_write_object_contents): ..
740 * netbsd-core.c (netbsd_core_file_p): ..
741 * nlm32-alpha.c (nlm_alpha_read_reloc, nlm_alpha_write_import,
742 nlm_alpha_set_public_section): ..
743 * nlm32-ppc.c (nlm_powerpc_read_reloc, nlm_powerpc_write_reloc): ..
744 * nlm32-sparc.c (nlm_sparc_write_import): ..
745 * nlmcode.h (add_bfd_section, nlm_swap_auxiliary_headers_in,
746 nlm_compute_section_file_positions): ..
747 * oasys.c (oasys_object_p, oasys_slurp_section_data,
748 oasys_write_sections, oasys_write_data, oasys_set_section_contents): ..
749 * opncls.c (get_debug_link_info): ..
750 * osf-core.c (make_bfd_asection): ..
751 * pdp11.c (some_aout_object_p, adjust_o_magic, adjust_z_magic,
752 adjust_n_magic, adjust_sizes_and_vmas, squirt_out_relocs,
753 final_link, aout_link_input_section): ..
754 * peXXigen.c (_bfd_XXi_swap_sym_in, _bfd_XXi_swap_aouthdr_out,
755 pe_print_idata, pe_print_edata, pe_print_pdata, pe_print_reloc): ..
756 * pef.c (bfd_pef_make_bfd_section, bfd_pef_print_loader_section,
757 bfd_pef_scan_start_address, bfd_pef_parse_symbols): ..
758 * ppcboot.c (ppcboot_object_p, ppcboot_canonicalize_symtab): ..
759 * ptrace-core.c (ptrace_unix_core_file_p): ..
760 * reloc.c (bfd_perform_relocation, bfd_install_relocation,
761 _bfd_final_link_relocate, bfd_generic_relax_section,
762 bfd_generic_get_relocated_section_contents): ..
763 * reloc16.c (bfd_coff_reloc16_relax_section,
764 bfd_coff_reloc16_get_relocated_section_c): ..
765 * riscix.c (riscix_some_aout_object_p): ..
766 * rs6000-core.c (read_hdr, make_bfd_asection): ..
767 * sco5-core.c (make_bfd_asection): ..
768 * simple.c (bfd_simple_get_relocated_section_contents): ..
769 * som.c (som_object_setup, setup_sections, som_prep_headers,
770 som_write_fixups, som_begin_writing, bfd_section_from_som_symbol,
771 som_set_reloc_info, som_get_section_contents,
772 som_bfd_link_split_section): ..
773 * sparclinux.c (linux_link_create_dynamic_sections,
774 bfd_sparclinux_size_dynamic_sections, linux_finish_dynamic_link): ..
775 * srec.c (srec_scan, srec_read_section, srec_get_section_contents): ..
776 * stabs.c (_bfd_link_section_stabs, _bfd_discard_section_stabs,
777 _bfd_write_stab_strings, _bfd_stab_section_offset): ..
778 * sunos.c (sunos_read_dynamic_info, sunos_create_dynamic_sections,
779 bfd_sunos_size_dynamic_sections, sunos_scan_std_relocs,
780 sunos_scan_ext_relocs, sunos_scan_dynamic_symbol,
781 sunos_write_dynamic_symbol, sunos_check_dynamic_reloc,
782 sunos_finish_dynamic_link): ..
783 * syms.c (_bfd_stab_section_find_nearest_line): ..
784 * tekhex.c (first_phase, tekhex_set_section_contents,
785 tekhex_write_object_contents): ..
786 * trad-core.c (trad_unix_core_file_p): ..
787 * versados.c (process_esd, process_otr, process_otr): ..
788 * vms-gsd.c (_bfd_vms_slurp_gsd, _bfd_vms_write_gsd): ..
789 * vms-misc.c (add_new_contents): ..
790 * vms-tir.c (check_section, new_section, _bfd_vms_write_tir): ..
791 * vms.c (vms_set_section_contents): ..
792 * xcofflink.c (xcoff_get_section_contents, xcoff_link_add_symbols,
793 xcoff_sweep, bfd_xcoff_size_dynamic_sections, xcoff_build_ldsyms,
794 _bfd_xcoff_bfd_final_link, xcoff_link_input_bfd): ..
795 * xsym.c (bfd_sym_scan): .. See above.
796
797 2004-06-21 H.J. Lu <hongjiu.lu@intel.com>
798
799 * elfxx-ia64.c (elfNN_ia64_relax_section): Add addend when
800 calling _bfd_merged_section_offset only for section symbols.
801
802 2004-06-22 Alan Modra <amodra@bigpond.net.au>
803
804 * elf32-ppc.c (ppc_elf_relax_section): Implement reference code
805 for handling SEC_MERGE symbols in relax_section.
806
807 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
808
809 2003-05-15 Richard Sandiford <rsandifo@redhat.com>
810 * cpu-h8300.c (compatible): Allow h8300s and h8300sx code to be
811 linked together. Mark the result as h8300sx code.
812
813 2004-06-21 Alexandre Oliva <aoliva@redhat.com>
814
815 * elf-bfd.h (struct elf_backend_data): Added
816 elf_backend_omit_section_dynsym.
817 (_bfd_elf_link_omit_section_dynsym): Declare.
818 * elf32-frv.c (_frvfdpic_link_omit_section_dynsym): New.
819 (elf_backend_omit_section_dynsym): Use it for frvfdpic.
820 * elflink.c (_bfd_elf_link_omit_section_dynsym): Split out of...
821 (_bfd_elf_link_renumber_dynsyms): ... this function.
822 * elfxx-target.h (elf_backend_omit_section_dynsym): Default to
823 _bfd_elf_link_omit_section_dynsym).
824 (elfNN_bed): Added elf_backend_omit_section_dynsym.
825
826 2004-06-21 Nick Clifton <nickc@redhat.com>
827
828 * coffcode.h (styp_to_sec_flags): Ignore IMAGE_SCN_MEM_NOT_PAGED
829 flags.
830
831 2004-06-17 Jerome Guitton <guitton@gnat.com>
832
833 * bfd-in.h (bfd_cache_close_all): New function declaration.
834 * bfd-in2.h: Regenerate.
835 * cache.c (bfd_cache_close_all): New function definition.
836
837 2004-06-16 Mark Kettenis <kettenis@gnu.org>
838
839 * configure.in: Don't set COREFILE to trad-core.lo for FreeBSD
840 4.10 and beyond.
841 * configure: Regenerate.
842
843 2004-06-16 Daniel Jacobowitz <dan@debian.org>
844
845 * elf32-ppc.c (ppc_elf_create_linker_section): Create symbols in
846 the pre-existing section.
847
848 2004-06-15 Alan Modra <amodra@bigpond.net.au>
849
850 * section.c (struct sec): Remove usused flags. Reorganize a little.
851 (bfd_get_section_size_before_reloc): Delete.
852 (bfd_get_section_size_after_reloc): Delete.
853 (STD_SECTION): Update.
854 (bfd_get_section_size_now): Delete.
855 (bfd_set_section_contents): Don't referece reloc_done.
856 (bfd_get_section_contents): Remove reloc_done comment.
857 * bout.c (b_out_bfd_get_relocated_section_contents): Don't set
858 reloc_done.
859 * coff-alpha.c (alpha_ecoff_get_relocated_section_contents): Likewise.
860 * ecoff.c (bfd_debug_section): Update initializer.
861 * elfxx-mips.c (_bfd_elf_mips_get_relocated_section_contents): Ditto.
862 * reloc.c (bfd_generic_get_relocated_section_contents): Likewise.
863 * bfd-in.h (bfd_section_size): Expand.
864 (bfd_get_section_size): New macro.
865 * bfd-in2.h: Regenerate.
866 * coff64-rs6000.c (xcoff64_write_object_contents): Replace
867 bfd_get_section_size_before_reloc with bfd_get_section_size.
868 * coffcode.h (coff_write_object_contents): Likewise.
869 * coffgen.c (build_debug_section): Likewise.
870 * dwarf1.c (parse_line_table): Likewise.
871 (_bfd_dwarf1_find_nearest_line): Likewise.
872 * ecoff.c (_bfd_ecoff_write_object_contents): Likewise.
873 * i386msdos.c (msdos_write_object_contents): Likewise.
874 * pdp11.c (squirt_out_relocs): Likewise.
875 * elf32-sh64.c (sh64_find_section_for_address): Remove comment.
876 * elf64-mmix.c (mmix_elf_final_link): Update comment.
877
878 2004-06-14 Chris Demetriou <cgd@broadcom.com>
879
880 * elf32-mips.c (elf_mips_gnu_pcrel32): Add (undoing 2004-04-24
881 removal) with updated comment.
882 (bfd_elf32_bfd_reloc_type_lookup): Add back case for
883 BFD_RELOC_32_PCREL.
884 (mips_elf32_rtype_to_howto): Add back case for R_MIPS_PC32.
885 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
886
887 2004-06-12 Alan Modra <amodra@bigpond.net.au>
888
889 * elf64-x86-64.c (elf64_x86_64_relocate_section): Ignore reloc
890 overflow on branches to undefweaks.
891
892 2004-06-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
893
894 * coff-alpha.c (alpha_relocate_section): Set used_by_bfd directly
895 as ecoff_section_data() does not return a valid lvalue.
896
897 2004-06-09 Alexandre Oliva <aoliva@redhat.com>
898
899 * elflink.c (elf_sort_symbol): Compare section id, not pointers.
900 (elf_link_add_object_symbols): Likewise.
901
902 * elf-m10300.c (_bfd_mn10300_elf_reloc_type_class): New.
903 (elf_backend_reloc_type_class): New.
904
905 2004-06-08 Mark Kettenis <kettenis@gnu.org>
906
907 * configure.in (hppa*-*-netbsd*, hppa*-*-openbsd): Set COREFILE to
908 netbsd-core.lo.
909 * configure: Regenerate.
910
911 2004-06-07 Daniel Jacobowitz <dan@debian.org>
912
913 From: Albert Chin-A-Young <china@thewrittenword.com>
914 * bfd/elf-bfd.h (struct eh_cie_fde): Convert unsigned char bitfields
915 to unsigned int.
916
917 2004-05-29 H.J. Lu <hongjiu.lu@intel.com>
918
919 * elfxx-ia64.c (elfNN_ia64_relax_section): Undo the last
920 change.
921
922 2004-05-28 DJ Delorie <dj@redhat.com>
923
924 * elf-m10300.c (mn10300_elf_relax_section): Preserve reloc addend
925 for linking, but otherwise adjust reloc for merged sections.
926
927 2004-05-28 H.J. Lu <hongjiu.lu@intel.com>
928
929 * elfxx-ia64.c (elfNN_ia64_relax_section): Properly call
930 _bfd_merged_section_offset for local symbols.
931
932 2004-05-28 Andrew Stubbs <andrew.stubbs@superh.com>
933
934 * Makefile.am: Regenerate dependencies.
935 * Makefile.in: Regenerate.
936 * archures.c: Add bfd_mach_sh3_nommu .
937 * bfd-in2.h: Regenerate.
938 * cpu-sh.c: Add sh3-nommu architecture.
939 (bfd_to_arch_table): Create new table.
940 (sh_get_arch_from_bfd_mach): Create new function.
941 (sh_get_arch_up_from_bfd_mach): Create new function.
942 (sh_merge_bfd_arch): Create new function.
943 * elf32-sh.c (sh_ef_bfd_table): Add table.
944 (sh_elf_check_relocs): Replace switch statement with
945 use of sh_ef_bfd_table .
946 (sh_elf_get_flags_from_mach): Add new function.
947 (sh_find_elf_flags): Likewise.
948 (sh_elf_copy_private_data): Replace most of non-elf contents
949 with a call to sh_merge_bfd_arch() .
950
951 2004-05-27 Michael Chastain <mec.gnu@mindspring.com>
952
953 * Makefile.am (bfdver.h): Use explicit filename, not $< .
954 * Makefile.in: Regenerate.
955
956 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
957
958 * elf-m10300.c (elf32_mn10300_finish_hash_table_entry): Avoid
959 custom calling conventions for dynamic symbols.
960 (mn10300_elf_relax_section): Avoid relaxing a function as a local
961 symbol if it's an alias to a global one.
962
963 2004-05-26 H.J. Lu <hongjiu.lu@intel.com>
964
965 * elf.c (_bfd_elf_make_section_from_shdr): Undo the last
966 change.
967
968 2004-05-27 Alexandre Oliva <aoliva@redhat.com>
969
970 * elf-m10300.c (mn10300_elf_relax_section): Don't test isym within
971 loop over hashes.
972
973 2004-05-26 Alan Modra <amodra@bigpond.net.au>
974
975 * elf.c (_bfd_elf_make_section_from_shdr): Don't set SEC_EXCLUDE
976 for SHT_GROUP sections.
977
978 2004-05-25 Alan Modra <amodra@bigpond.net.au>
979
980 * elflink.c (elf_link_add_object_symbols): Don't set up merge
981 section data here..
982 * elf.c (_bfd_elf_merge_sections): .. Do it here instead.
983 * merge.c: Formatting. Remove unnecessary casts. Expand
984 bfd_get_section_alignment macro.
985 (struct sec_merge_sec_info): Rename "first" to "first_str". Update
986 use throughout file.
987 (_bfd_add_merge_section): Rename from _bfd_merge_section. Update
988 comment. Abort on dynamic or non-SEC_MERGE input. Don't test
989 section name to determine sinfo group, instead test output section
990 and alignment.
991 (_bfd_merge_sections): Add struct bfd_link_info param. Call
992 _bfd_strip_section_from_output rather than just twiddling flags.
993 * libbfd-in.h (_bfd_add_merge_section): Rename, update comment.
994 (_bfd_merge_sections): Update prototype.
995 * libbfd.h: Regenerate.
996
997 2004-05-24 Mark Kettenis <kettenis@gnu.org>
998
999 * netbsd-core.c: Correctly indent section that sets architecture
1000 from machine ID.
1001
1002 From Miod Vallat <miod@online.fr>:
1003 * m88kopenbsd.c: New file.
1004 * targets.c (m88k_openbsd_vec): New.
1005 * config.bfd: Add m88k-*-openbsd*.
1006 * configure.in (m88k-*-openbsd*): Set COREFILE to netbsd-core.lo.
1007 (m88kopenbsd_vec): New.
1008 * configure: Regenerate.
1009 * Makefile.am (BFD32_BACKENDS): Add m88kopenbsd.lo.
1010 (BFD32_BACKENDS_CFILES): Add m88kopenbsd.c.
1011 Run "make dep-am".
1012 * Makefile.in: Regenerate.
1013 * po/SRC-POTFILES.in: Regenerate.
1014
1015 2004-05-24 Nick Clifton <nickc@redhat.com>
1016
1017 * hash.c: Remove bogus node "Changing the default Hash Table Size"
1018 introduced by hash table size patch.
1019
1020 2004-05-22 Ben Elliston <bje@au.ibm.com>
1021
1022 * configure.in (is_release): Remove.
1023 (bfd_version_date, bfd_version, bfd_version_string): Likewise.
1024 (AC_OUTPUT): Don't output bfdver.h from version.h.
1025 * configure: Regenerate.
1026 * Makefile.am (RELEASE): New variable.
1027 (bfdver.h): New target.
1028 * Makefile.in: Regenerate.
1029 * doc/Makefile.in: Likewise.
1030
1031 2004-05-22 Ben Elliston <bje@au.ibm.com>
1032
1033 * Makefile.am (config.status): Don't depend on version.h.
1034 * Makefile.in: Regenerate.
1035
1036 2004-05-22 Alan Modra <amodra@bigpond.net.au>
1037
1038 * merge.c (_bfd_merged_section_offset): Remove "addend" param.
1039 * libbfd-in.h (_bfd_merged_section_offset): Adjust prototype.
1040 * libbfd.h: Regenerate.
1041 * elf.c (_bfd_elf_rela_local_sym): Adjust call.
1042 (_bfd_elf_rel_local_sym): Likewise.
1043 * elflink.c (_bfd_elf_link_sec_merge_syms): Likewise.
1044 (elf_link_input_bfd): Likewise.
1045 * elf32-ppc.c (ppc_elf_relax_section): Likewise.
1046 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
1047 * elfxx-ia64.c (elfNN_ia64_relax_section): Likewise.
1048 (elfNN_ia64_relocate_section): Likewise.
1049
1050 2004-05-21 Andy Chittenden <achittenden@bluearc.com>
1051
1052 * hash.c (bfd_default_hash_table_size): New variable.
1053 (bfd_hash_table_init): Use new variable instead of DEFAULT_SIZE.
1054 (bfd_hash_set_default_size): New function. Set the default size
1055 to a selected prime number close to the argument. Document new
1056 function.
1057 * bfd-in.h: Add prototype for bfd_hash_set_default_size.
1058 * bfd-in2.h: Regenerate.
1059 * Makefile.am (hash.lo): Add dependency upon libiberty.h.
1060 * Makefile.in: Regenerate.
1061
1062 2004-05-21 Mark Kettenis <kettenis@gnu.org>
1063
1064 * libaout.h (machine_type): Add M_88K_OPENBSD and M_HPPA_OPENBSD.
1065 * netbsd-core.c (netbsd_core_file_p): Set architecture for alpha,
1066 arm, m68k, m88k and hppa core files.
1067
1068 2004-05-21 Nick Clifton <nickc@redhat.com>
1069
1070 * bfdio.c (bfd_bread): Do not use iovec if it is NULL.
1071 (bfd_bwrite): Likewise.
1072 (bfd_tell): Likewise.
1073 (bfd_flush): Likewise.
1074 (bfd_stat): Likewise.
1075 (bfd_seek): Likewise.
1076 (bfd_get_mtime): Likewise.
1077 (bfd_get_size): Likewise.
1078
1079 2004-05-19 Ben Elliston <bje@au.ibm.com>
1080
1081 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Comment correction.
1082
1083 2004-05-19 Mikulas Patocka <mikulas@artax.karlin.mff.cuni.cz>
1084
1085 * archive.c (_bfd_get_elt_at_filepos): Cope with a nested archives.
1086 (bfd_generic_openr_next_archived_file): Likewise.
1087
1088 2004-05-17 Bob Wilson <bob.wilson@acm.org>
1089
1090 * elf32-xtensa.c (xtensa_get_property_section_name): Determine linkonce
1091 section names by inserting a new substring after .gnu.linkonce, except
1092 for .gnu.linkonce.t.* where the "t." is replaced.
1093
1094 2004-05-17 Adam Nemet <anemet@lnxw.com>
1095
1096 * config.bfd (sparc-*-lynxos* case): Add to obsolete list.
1097 (m68-*-lynxos* case): Likewise.
1098 (powerpc-*-lyxnos* case): New case.
1099 (i[3-7]86-*-lynxos* case): Update to LynxOS 4.0 ELF.
1100
1101 2004-05-17 David Heine <dlheine@tensilica.com>
1102
1103 * aout-target.h (MY_bfd_copy_private_header_data): Define.
1104 * aout-tic30.c (MY_bfd_copy_private_header_data): Define.
1105 * bfd.c (bfd_copy_private_header_data): Define.
1106 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Add entries for new
1107 interface.
1108 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Likewise.
1109 * coffcode.h (coff_bfd_copy_private_header_data): Define.
1110 * elf-bfd.h (_bfd_elf_copy_private_header_data): Declare.
1111 * elf.c (_bfd_elf_copy_private_section_data): Remove code to set up
1112 segments by calling copy_private_bfd_data.
1113 (_bfd_elf_copy_private_header_data): Define.
1114 * elfxx-target.h (bfd_elfNN_bfd_copy_private_header_data): Define.
1115 * libbfd-in.h (_bfd_generic_bfd_copy_private_header_data): Define.
1116 * libecoff.h (_bfd_ecoff_bfd_copy_private_header_data): Define.
1117 * mach-o.c (bfd_mach_o_bfd_copy_private_header_data): Define.
1118 * mmo.c (mmo_bfd_copy_private_header_data): Define.
1119 * ppcboot.c (ppcboot_bfd_copy_private_header_data): Define.
1120 * som.c (som_bfd_copy_private_header_data): Define.
1121 * targets.c (BFD_JUMP_TABLE_COPY): Add _bfd_copy_private_header_data.
1122 * vms.c (vms_bfd_copy_private_header_data): Define.
1123 * bfd-in2.h: Regenerate.
1124 * libbfd.h: Regenerate.
1125
1126 2004-05-15 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1127
1128 * elfxx-mips.c (MINUS_TWO): Define.
1129 (mips_elf_higher, mips_elf_highest,
1130 mips_elf_create_dynamic_relocation): Use MINUS_ONE and MINUS_TWO for
1131 some bfd_vma values.
1132 (_bfd_mips_elf_finish_dynamic_symbol): Likewise. Code cleanup.
1133
1134 2004-05-14 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1135
1136 * som.c (log2): Rename to exact_log2. Adjust all callers.
1137
1138 2004-05-13 Paul Brook <paul@codesourcery.com>
1139
1140 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Handle
1141 dwarf3 format CIE entries. Remove comment about the size of the
1142 ra_column field. It is now correctly deduced.
1143
1144 2004-05-13 Joel Sherrill <joel@oarcorp.com>
1145
1146 * config.bfd (or32-*-rtems*): Switch to elf.
1147
1148 2004-05-13 Nick Clifton <nickc@redhat.com>
1149
1150 * po/fr.po: Updated French translation.
1151
1152 2004-05-11 Jakub Jelinek <jakub@redhat.com>
1153
1154 * elflink.c (elf_bfd_final_link): Don't output STT_SECTION symbol
1155 into .dynsym if elf_section_data (sec)->dynindx <= 0.
1156 Adjust counting of last_local.
1157 (_bfd_elf_link_renumber_dynsyms): Don't assign dynindx to sections
1158 other than SHT_PROGBITS/SHT_NOBITS and neither for .got/.got.plt/.plt
1159 created by the linker nor !SHF_ALLOC.
1160
1161 * elf32-i386.c (elf_i386_finish_dynamic_sections): Point
1162 DT_PLTGOT to the start of the .got.plt section instead of the
1163 .got output section. Set sh_entsize for .got section in addition
1164 to .got.plt.
1165 (elf_i386_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1166 is at sgot->output_section->vma.
1167 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Point
1168 DT_PLTGOT to the start of the .got.plt section instead of the
1169 .got output section.
1170 (elf64_x86_64_relocate_section): Don't assume _GLOBAL_OFFSET_TABLE_
1171 is at sgot->output_section->vma. Set sh_entsize for .got section
1172 in addition to .got.plt.
1173 * elf.c (_bfd_elf_print_private_bfd_data): Handle PT_GNU_RELRO.
1174 (bfd_section_from_phdr): Likewise.
1175 (map_sections_to_segments): Likewise.
1176 (assign_file_positions_for_segments): Likewise.
1177 (get_program_header_size): Likewise.
1178 * elflink.c (bfd_elf_size_dynamic_sections): Set
1179 elf_tdata (output_bfd)->relro from info->relro.
1180 * elf-bfd.h (struct elf_obj_tdata): Add relro field.
1181
1182 2004-05-08 Alexandre Oliva <aoliva@redhat.com>
1183
1184 * elf32-frv.c (_frvfdpic_add_dyn_reloc): Don't warn when we get
1185 a zero symndx for which we hadn't accounted a dynamic relocation.
1186 (_frvfdpic_add_rofixup): Likewise.
1187
1188 2004-05-07 Brian Ford <ford@vss.fsi.com>
1189 DJ Delorie <dj@redhat.com>
1190
1191 * coffcode.h (coff_write_object_contents) [COFF_IMAGE_WITH_PE]:
1192 Propagate IMAGE_FILE_LARGE_ADDRESS_AWARE.
1193 * peXXigen.c (_bfd_XX_print_private_bfd_data_common): Recognize
1194 IMAGE_FILE_LARGE_ADDRESS_AWARE. Use PE defines.
1195
1196 2004-05-07 Alexandre Oliva <aoliva@redhat.com>
1197
1198 * elf32-frv.c (elf32_frvfdpic_modify_segment_map): Return
1199 immediately if there's no link info.
1200 (elf32_frvfdpic_copy_private_bfd_data): New.
1201 (bfd_elf32_bfd_copy_private_bfd_data): Use it for frvfdpic.
1202
1203 2004-05-06 Zack Weinberg <zack@codesourcery.com>
1204
1205 * dwarf2.c (add_line_info): Also set info->filename to NULL if
1206 filename argument is null; do not call strlen on a null pointer.
1207
1208 2004-05-06 Daniel Jacobowitz <drow@mvista.com>
1209
1210 * elf32-arm.h (elf32_arm_relocate_section): Remove R_ARM_PLT32
1211 special case.
1212
1213 2004-05-05 Alexandre Oliva <aoliva@redhat.com>
1214
1215 * configure.in (bfd_elf32_frvfdpic_vec): New.
1216 * configure: Rebuilt.
1217 * targets.c (bfd_elf32_frvfdpic_vec): New.
1218 * config.bfd: Enable it on frv-*-elf and frv-*-*linux*, as default
1219 on the latter.
1220 * elf32-frv.c: Prefix all identifiers added for FDPIC support with
1221 frvfdpic instead of frv. Rearrange elf-target macros such that
1222 the FDPIC-specific ones are only defined for this new target
1223 vector.
1224 (bfd_elf32_frvfdpic_vec): Declare.
1225 (IS_FDPIC): New.
1226 (elf32_frv_relocate_section): Use it to enable segment checking
1227 and to control rofixup emission. Add output section vma to
1228 applied relocation in non-LOAD non-ALLOC sections. Use
1229 _bfd_error_handler for errors.
1230 (_frv_create_got_section): Create .rel.got and .rofixup only in
1231 FDPIC. Create non-dynamic _gp at .got+2048 in non-FDPIC, like the
1232 linker script.
1233 (elf32_frvfdpic_size_dynamic_sections): Assume FDPIC.
1234 (elf32_frvfdpic_modify_segment_map): Likewise.
1235 (elf32_frv_finish_dynamic_sections): New, do-nothing.
1236 (elf32_frvfdpic_finish_dynamic_sections): Assume FDPIC. Improve
1237 error message if we miscompute the rofixup size.
1238 (frvfdpic_elf_use_relative_eh_frame): Assume FDPIC.
1239 (frvfdpic_elf_encode_eh_address): Likewise.
1240 (elf32_frv_check_relocs): Reject FDPIC-only relocs in non-FDPIC.
1241 Record relocs only in FDPIC. Make sure _gp is defined for GPREL
1242 relocs. Reject unknown relocation types.
1243 (elf32_frv_object_p): Make sure target vector matches FDPIC bits.
1244 (frv_elf_merge_private_bfd_data): Likewise.
1245 (ELF_MAXPAGESIZE): Revert to 0x1000 for elf32-frv; keep it as
1246 0x4000 for newly-added elf32-frvfdpic.
1247
1248 2004-05-05 Nick Clifton <nickc@redhat.com>
1249
1250 PR/136
1251 * cache.c (bfd_cache_lookup_worker): Call abort() rather than
1252 returning NULL as most users of this function do not check its
1253 return value.
1254 * hppabsd-core.c (hppabsd_core_core_file_p): Do not check result
1255 of bfd_cache_lookup().
1256 * sco5-core.c (sco5_core_file_p): Likewise.
1257 * trad-core.c (trad_unix_core_file_p): Likewise.
1258
1259 2004-05-05 Nick Clifton <nickc@redhat.com>
1260
1261 * cache.c (bfd_cache_lookup): Improve formatting.
1262 * archive.c: Fix formatting.
1263
1264 2004-05-05 Peter Barada <peter@the-baradas.com>
1265
1266 * bfd_archures.c(bfd_architecture): Add 521x,5249,547x,548x.
1267 * cpu-m68k.c(bfd_m68k_arch): Likewise.
1268 * bfd-in2.h(bfd_architecture): Regenerate.
1269
1270 2004-05-03 Alan Modra <amodra@bigpond.net.au>
1271
1272 * elf.c (_bfd_elf_rela_local_sym): Set kept_section for excluded
1273 SEC_MERGE sections.
1274 * elflink.c (elf_link_input_bfd): Adjust output reloc index for
1275 those against discarded link-once and SEC_MERGE section symbols.
1276
1277 2004-05-02 H.J. Lu <hongjiu.lu@intel.com>
1278
1279 * section.c (bfd_get_section_by_name_if): New.
1280 * bfd-in2.h: Regenerated.
1281
1282 2004-05-02 Alan Modra <amodra@bigpond.net.au>
1283
1284 * som.c (som_bfd_is_group_section): Define.
1285
1286 2004-05-01 Alan Modra <amodra@bigpond.net.au>
1287
1288 * section.c (bfd_make_section_anyway): Copy the whole
1289 bfd_hash_entry, not just "next" from existing entry.
1290
1291 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1292
1293 * elf.c (bfd_section_from_shdr): Maintain the section order in
1294 a section group.
1295 (special_sections): Add ".note.GNU-stack".
1296 (elf_fake_sections): Handle section group for relocatable
1297 link..
1298
1299 2004-04-30 H.J. Lu <hongjiu.lu@intel.com>
1300
1301 * section.c (bfd_sections_find_if): New.
1302 * bfd-in2.h: Regenerated.
1303
1304 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1305
1306 * section.c (bfd_make_section_anyway): Add all sections to hash tab.
1307
1308 * elf-bfd.h (bfd_elf_is_group_section): Declare.
1309 * elf.c (bfd_elf_is_group_section): New function.
1310 * elfxx-target.h (bfd_elfNN_bfd_is_group_section
1311 * section.c (bfd_generic_is_group_section): New function.
1312 * targets.c (struct bfd_target): Add _bfd_is_group_section field.
1313 (BFD_JUMP_TABLE_LINK): Adjust.
1314 * aout-adobe.c (aout_32_bfd_is_group_section): Define.
1315 * aout-target.h (MY_bfd_is_group_section): Define.
1316 * aout-tic30.c (MY_bfd_is_group_section): Define.
1317 * bfd.c (bfd_is_group_section): Define.
1318 * binary.c (binary_bfd_is_group_section): Define.
1319 * bout.c (b_out_bfd_is_group_section): Define.
1320 * coff-alpha.c (_bfd_ecoff_bfd_is_group_section): Define.
1321 * coff-mips.c (_bfd_ecoff_bfd_is_group_section): Define.
1322 * coff-rs6000.c (rs6000coff_vec, pmac_xcoff_vec): Adjust.
1323 * coff64-rs6000.c (rs6000coff64_vec, aix5coff64_vec): Adjust.
1324 * coffcode.h (coff_bfd_is_group_section): Define.
1325 * i386msdos.c (msdos_bfd_is_group_section): Define.
1326 * i386os9k.c (os9k_bfd_is_group_section): Define.
1327 * ieee.c (ieee_bfd_is_group_section): Define.
1328 * ihex.c (ihex_bfd_is_group_section): Define.
1329 * libbfd-in.h (_bfd_nolink_bfd_is_group_section): Define.
1330 * mach-o.c (bfd_mach_o_bfd_is_group_section): Define.
1331 * mmo.c (mmo_bfd_is_group_section): Define.
1332 * nlm-target.h (nlm_bfd_is_group_section): Define.
1333 * oasys.c (oasys_bfd_is_group_section): Define.
1334 * pef.c (bfd_pef_bfd_is_group_section): Define.
1335 * ppcboot.c (ppcboot_bfd_is_group_section): Define.
1336 * srec.c (srec_bfd_is_group_section): Define.
1337 * tekhex.c (tekhex_bfd_is_group_section): Define.
1338 * versados.c (versados_bfd_is_group_section): Define.
1339 * vms.c (vms_bfd_is_group_section): Define.
1340 * xsym.c (bfd_sym_bfd_is_group_section): Define.
1341 * bfd-in2.h: Regenerate.
1342 * libbfd.h: Regenerate.
1343
1344 2004-04-30 Alan Modra <amodra@bigpond.net.au>
1345
1346 * elflink.c (elf_gc_mark): Follow indirect and warning syms.
1347
1348 2004-04-30 Hans-Peter Nilsson <hp@axis.com>
1349
1350 * configure.in: Update version to 2.15.91.
1351 * configure: Regenerate.
1352
1353 2004-04-29 Brian Ford <ford@vss.fsi.com>
1354
1355 * bfd.c (bfd_get_sign_extend_vma): Add pe[i]-i386 case to DJGPP hack.
1356 * coffcode.h (DOT_DEBUG, GNU_LINKONCE_WI): Define.
1357 [!COFF_WITH_PE] (sec_to_styp_flags, styp_to_sec_flags): Use them.
1358 (coff_compute_section_file_positions) [RS6000COFF_C]: Likewise.
1359 [COFF_WITH_PE] (sec_to_styp_flags): Handle DWARF 2/3 .debug* and
1360 .gnu.linkonce.wi. sections.
1361 * pe-i386.c (COFF_SUPPORT_GNU_LINKONCE): Define.
1362 (COFF_SECTION_ALIGNMENT_ENTRIES): Add entries for .debug and
1363 .gnu.linkonce.wi..
1364 * pei-i386.c (COFF_SUPPORT_GNU_LINKONCE): Likewise.
1365 (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
1366
1367 2004-04-28 Chris Demetriou <cgd@broadcom.com>
1368
1369 * reloc.c: Remove BFD_RELOC_PCREL_HI16_S and BFD_RELOC_PCREL_LO16.
1370 * bfd-in2.h: Regenerate.
1371 * libbfd.h: Likewise.
1372
1373 2004-04-28 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1374
1375 * som.c (struct som_misc_symbol_info): Add is_comdat, is_common and
1376 dup_common fields.
1377 (setup_sections): Use som_subspace_dictionary_record struct instead
1378 subspace_dictionary_record. Set SEC_LINK_ONCE if subspace is
1379 is_comdat, is_common or dup_common.
1380 (som_prep_headers): Use som_subspace_dictionary_record struct. Set
1381 is_comdat, is_common and dup_common in section subspace_dict from
1382 copy_data.
1383 (som_begin_writing): Use som_subspace_dictionary_record struct.
1384 (som_finish_writing): Likewise.
1385 (som_bfd_derive_misc_symbol_info): Add support to set is_comdat,
1386 is_common and dup_common flags in info for symbol. Add comment
1387 regarding linker support for these fields. Slightly reorganize
1388 function.
1389 (som_build_and_write_symbol_table): Set is_comdat, is_common and
1390 dup_common fields in symbol table from symbol info.
1391 (bfd_som_set_subsection_attributes): Add comdat, common and dup_common
1392 arguments. Set corresponding fields in copy_data. Change all callers.
1393 (som_bfd_ar_write_symbol_stuff): Set dup_common flag in library
1394 symbol table.
1395 (som_vec): Add SEC_LINK_ONCE to applicable section flags.
1396 * som.h (som_subspace_dictionary_record): Define.
1397 (som_copyable_section_data_struct): Add is_comdat, is_common and
1398 dup_common fields.
1399 (som_section_data_struct): Use som_subspace_dictionary_record struct
1400 instead of subspace_dictionary_record.
1401 (bfd_boolean bfd_som_set_subsection_attributes): Adjust prototype.
1402
1403 2004-04-27 Bob Wilson <bob.wilson@acm.org>
1404
1405 * elf32-xtensa.c (xtensa_read_table_entries): Use section _cooked_size
1406 if set. Check reloc_done flag before applying relocations. Use
1407 output addresses, both when applying relocations and when comparing
1408 against the specified section.
1409 (elf_xtensa_relocate_section): Use output address to check if dynamic
1410 reloc is in a literal pool. Set section's reloc_done flag.
1411
1412 2004-04-27 H.J. Lu <hongjiu.lu@intel.com>
1413
1414 * elf32-sh64.c (elf_backend_section_flags): New. Defined.
1415 (sh64_elf_set_mach_from_flags): Remove the kludge for .cranges
1416 section.
1417 (sh64_elf_section_flags): New. Set SEC_DEBUGGING for .cranges
1418 section.
1419
1420 2004-04-27 Alan Modra <amodra@bigpond.net.au>
1421
1422 * elf64-alpha.c (elf64_alpha_read_ecoff_info): Don't assign
1423 structure field removed in 2004-04-24 patch.
1424 * elf64-sparc.c (sparc64_elf_plt_sym_val): Warning fix.
1425
1426 * elf-bfd.h (struct elf_backend_data <elf_backend_section_flags>):
1427 Constify hdr arg.
1428 * elf32-arm.h (elf32_arm_section_flags): Likewise.
1429 * elf64-alpha.c (elf64_alpha_section_flags): Likewise.
1430 * elfxx-ia64.c (elfNN_ia64_section_flags): Likewise.
1431 * elf.c (_bfd_elf_make_section_from_shdr): Set the bfd_section
1432 field before calling elf_backend_section_flags.
1433
1434 2004-04-24 Chris Demetriou <cgd@broadcom.com>
1435
1436 * elf32-mips.c (elf_mips_gnu_rel_hi16, elf_mips_gnu_rel_lo16)
1437 (elf_mips_gnu_pcrel64, elf_mips_gnu_pcrel32): Remove.
1438 (bfd_elf32_bfd_reloc_type_lookup): Remove cases for
1439 BFD_RELOC_PCREL_HI16_S, BFD_RELOC_PCREL_LO16, BFD_RELOC_64_PCREL,
1440 and BFD_RELOC_32_PCREL.
1441 (mips_elf32_rtype_to_howto): Remove cases for R_MIPS_GNU_REL_HI16,
1442 R_MIPS_GNU_REL_LO16, R_MIPS_PC64, R_MIPS_PC32.
1443 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
1444 (_bfd_mips_elf_lo16_reloc): Remove handling for R_MIPS_GNU_REL_HI16.
1445 (mips_elf_next_relocation): Move comment about matching HI/LO
1446 relocations to...
1447 (_bfd_mips_elf_relocate_section): Here. Remove handling for
1448 R_MIPS_GNU_REL_HI16.
1449
1450 2004-04-23 Chris Demetriou <cgd@broadcom.com>
1451
1452 * coff-mips.c (mips_relhi_reloc, mips_rello_reloc)
1453 (mips_switch_reloc, mips_read_relocs, mips_relax_section)
1454 (mips_relax_pcrel16, PCREL16_EXPANSION_ADJUSTMENT): Remove.
1455 (mips_relocate_hi): Remove now-unused 'adjust' and 'pcrel' arguments,
1456 and update comments to reflect current usage.
1457 (mips_howto_table): Remove entries for MIPS_R_RELHI, MIPS_R_RELLO,
1458 and MIPS_R_SWITCH, as well as several empty entries. Update comment
1459 for MIPS_R_PCREL16.
1460 (mips_ecoff_swap_reloc_in, mips_ecoff_swap_reloc_out)
1461 (mips_adjust_reloc_out, mips_bfd_reloc_type_lookup): Remove support
1462 for MIPS_R_SWITCH, MIPS_R_RELLO, and MIPS_R_RELHI relocations.
1463 (mips_adjust_reloc_in): Likewise, adjust maximum accepted relocation
1464 type number to be MIPS_R_PCREL16.
1465 (mips_relocate_section): Remove support for link-time relaxation
1466 of branches used by embedded-PIC. Remove support for MIPS_R_SWITCH,
1467 MIPS_R_RELLO, and MIPS_R_RELHI relocations.
1468 (_bfd_ecoff_bfd_relax_section): Redefine to bfd_generic_relax_section.
1469 * ecoff.c (ecoff_indirect_link_order): Remove support for link-time
1470 relaxation of branches used by embedded-PIC.
1471 * ecofflink.c (bfd_ecoff_debug_accumulate): Likewise.
1472 * libecoff.h (struct ecoff_section_tdata): Remove embedded-PIC
1473 related members, update comment.
1474 * pe-mips.c: Remove disabled (commented-out and #if 0'd)
1475 code related to embedded-PIC.
1476 * elfxx-mips.c (_bfd_mips_elf_read_ecoff_info): Remove
1477 initialization of now-removed 'adjust' member of
1478 'struct ecoff_debug_info'.
1479
1480 2004-04-23 Chris Demetriou <cgd@broadcom.com>
1481
1482 * elfxx-mips.c (mips_elf_get_global_gotsym_index): Remove.
1483
1484 2004-04-21 Philip Blundell <pb@nexus.co.uk>
1485
1486 * elf32-arm.h (elf32_arm_check_relocs): Don't output REL32
1487 relocs for locally defined symbols during -shared final link.
1488 (elf32_arm_final_link_relocate): Likewise.
1489
1490 2004-04-22 Jakub Jelinek <jakub@redhat.com>
1491
1492 * elf64-x86-64.c (elf64_x86_64_copy_indirect_symbol): Copy also
1493 ELF_LINK_POINTER_EQUALITY_NEEDED.
1494 (elf64_x86_64_check_relocs): Set ELF_LINK_POINTER_EQUALITY_NEEDED
1495 if r_type is not R_X86_64_PC32.
1496 (elf64_x86_64_finish_dynamic_symbol): If
1497 ELF_LINK_POINTER_EQUALITY_NEEDED is not set, clear st_value of
1498 SHN_UNDEF symbols.
1499
1500 2004-04-22 Kaz Kojima <kkojima@rr.iij4u.or.jp>
1501
1502 * elf32-sh.c (sh_elf_plt_sym_val): New function.
1503 (elf_backend_plt_sym_val): Define.
1504
1505 2004-04-22 Andrew Cagney <cagney@redhat.com>
1506
1507 * opncls.c (bfd_alloc): Fix type of "wanted" in doco.
1508
1509 2004-04-22 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
1510
1511 * hpux-core.c (hpux_core_core_file_p): Add cast in call to
1512 make_bfd_asection.
1513 * som.c (som_set_section_contents): Constantify second argument.
1514 (hppa_som_gen_reloc_type): Abort for unsupported selectors.
1515 (som_object_setup): Rework to avoid warning.
1516 (setup_sections, som_write_fixups, bfd_section_from_som_symbol):
1517 Likewise.
1518
1519 2004-04-22 Andrew Cagney <cagney@redhat.com>
1520
1521 * cache.c (bfd_cache_close): Check for a previously closed file.
1522
1523 2004-04-22 Jakub Jelinek <jakub@redhat.com>
1524
1525 * bfd.c (bfd_get_synthetic_symtab): Define.
1526 * targets.c (BFD_JUMP_TABLE_DYNAMIC): Add
1527 NAME##_get_synthetic_symtab.
1528 (struct bfd_target): Add _bfd_get_synthetic_symtab.
1529 * libbfd-in.h (_bfd_nodynamic_get_synthetic_symtab): Define.
1530 * elf-bfd.h (struct elf_backend_data): Add plt_sym_val and
1531 relplt_name fields.
1532 (_bfd_elf_get_synthetic_symtab): New prototype.
1533 * elfcode.h (elf_get_synthetic_symtab): Define.
1534 * elf.c (_bfd_elf_get_synthetic_symtab): New function.
1535 * elfxx-target.h (bfd_elfNN_get_synthetic_symtab): Define.
1536 (elf_backend_plt_sym_val, elf_backend_relplt_name): Define.
1537 (elfNN_bed): Add elf_backend_plt_sym_val and elf_backend_relplt_name.
1538 * bfd-in2.h: Rebuilt.
1539 * libbfd.h: Rebuilt.
1540 * elf32-i386.c (elf_i386_plt_sym_val): New function.
1541 (elf_backend_plt_sym_val): Define.
1542 * elf64-x86-64.c (elf64_x86_64_plt_sym_val): New function.
1543 (elf_backend_plt_sym_val): Define.
1544 * elf32-s390.c (elf_s390_plt_sym_val): New function.
1545 (elf_backend_plt_sym_val): Define.
1546 * elf64-s390.c (elf_s390_plt_sym_val): New function.
1547 (elf_backend_plt_sym_val): Define.
1548 * elf32-sparc (elf32_sparc_plt_sym_val): New function.
1549 (elf_backend_plt_sym_val): Define.
1550 * elf64-sparc.c (sparc64_elf_plt_sym_val): New function.
1551 (elf_backend_plt_sym_val): Define.
1552 * elf32-ppc.c (ppc_elf_plt_sym_val): New function.
1553 (elf_backend_plt_sym_val): Define.
1554 * aout-target.h (MY_get_synthetic_symtab): Define.
1555 * aout-tic30.c (MY_get_synthetic_symtab): Define.
1556 * coff-rs6000.c (rs6000coff_vec): Add
1557 _bfd_nodynamic_get_synthetic_symtab.
1558 (pmac_xcoff_vec): Likewise.
1559 * coff64-rs6000.c (rs6000coff64_vec): Add
1560 _bfd_nodynamic_get_synthetic_symtab.
1561 (aix5coff64_vec): Likewise.
1562 * sunos.c (MY_get_synthetic_symtab): Define.
1563 * vms.c (vms_get_synthetic_symtab): Define.
1564
1565 2004-04-22 Nick Clifton <nickc@redhat.com>
1566
1567 * bfd.c (bfd_archive_filename): Return NULL on NULL input.
1568
1569 2004-04-22 Peter Barada <peter@the-baradas.com>
1570
1571 * archures.c: Add bfd_mach_mcfv4e to bfd_architecture.
1572 * bfd2-in.h: Regenerate.
1573 * cpu-m68k.c: Add 'm68k:mcfv4e' to arch_info_struct[].
1574
1575 2004-04-21 Chris Demetriou <cgd@broadcom.com>
1576
1577 * coff-mips.c (bfd_mips_ecoff_create_embedded_relocs): Remove.
1578 * elf32-mips.c (bfd_mips_elf32_create_embedded_relocs): Remove.
1579 * bfd-in.h (bfd_mips_ecoff_create_embedded_relocs)
1580 (bfd_mips_elf32_create_embedded_relocs): Remove prototypes
1581 * bfd-in2.h: Regenerate.
1582
1583 2004-04-21 Bob Wilson <bob.wilson@acm.org>
1584
1585 * elf32-xtensa.c (is_same_value): Add final_static_link argument and
1586 require relocations against a weak symbol to reference the same
1587 symbol hash entry if not a final, static link.
1588 (get_cached_value, add_value_map): Add final_static_link argument.
1589 (remove_literals): Pass final_static_link argument as needed.
1590
1591 2004-04-21 Andrew Cagney <cagney@redhat.com>
1592
1593 * opncls.c (_bfd_new_bfd_contained_in): Copy "iovec".
1594 (struct opncls, opncls_btell, opncls_bseek, opncls_bread)
1595 (opncls_bwrite, opncls_bclose, opncls_bflush)
1596 (opncls_bstat, opncls_iovec, bfd_openr_iovec): Implement a
1597 bfd iovec that uses function callbacks.
1598 (bfd_close): Use the iovec's bclose.
1599 * cache.c (cache_btell, cache_bseek, cache_bread, cache_bwrite)
1600 (cache_bclose, cache_bflush, cache_bstat)
1601 (cache_iovec): New functions and global variable, implement a
1602 cache "iovec", where applicable set bfd_error.
1603 (bfd_cache_init, bfd_cache_close): Set/test the bfd's iovec.
1604 * bfdio.c (struct bfd_iovec): Define.
1605 (real_read): Delete function.
1606 (bfd_bread, bfd_bread, bfd_bwrite, bfd_tell, bfd_flush, bfd_stat)
1607 (bfd_seek, bfd_get_mtime, bfd_get_size): Use the bfd's "iovec",
1608 assume that bread and bwrite set bfd_error.
1609 * bfd.c (struct bfd): Add "iovec", update comments.
1610 * bfd-in2.h, libbfd.h: Re-generate.
1611
1612 2004-04-21 Andrew Cagney <cagney@redhat.com>
1613
1614 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
1615
1616 2004-04-21 Eric Botcazou <ebotcazou@act-europe.fr>
1617
1618 * elflink.c (elf_gc_mark_dynamic_ref_symbol): New function.
1619 (bfd_elf_gc_sections): Fail if a shared object is being created.
1620 Do not fail if dynamic sections have been created. Instead call
1621 elf_gc_mark_dynamic_ref_symbol to mark sections that contain
1622 dynamically referenced symbols. Do not mark the whole graph
1623 rooted at .eh_frame, only the section proper.
1624
1625 2004-04-20 DJ Delorie <dj@redhat.com>
1626
1627 * reloc.c: Add BFD_RELOC_32_SECREL.
1628 * bfd-in2.h: Regenerate.
1629 * libbfd.h: Likewise.
1630 * coff-i386.c (howto_table) [COFF_WITH_PE]: Add R_SECREL32.
1631 (coff_i386_rtype_to_howto) [COFF_WITH_PE]: Handle it.
1632 (coff_i386_reloc_type_lookup) [COFF_WITH_PE]: Likewise.
1633
1634 2004-04-19 Jakub Jelinek <jakub@redhat.com>
1635
1636 * elf32-sparc.c (elf32_sparc_relocate_section): Handle
1637 relocs against hidden/protected undefweak symbols properly.
1638 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1639
1640 2004-04-18 Mark Kettenis <kettenis@gnu.org>
1641
1642 * libaout.h (enum machine_type): Add M_POWERPC_NETBSD.
1643 * netbsd-core.c (netbsd_core_file_p): Set architecture for PowerPC
1644 core files.
1645
1646 2004-04-17 Brian Ford <ford@vss.fsi.com>
1647
1648 * peXXigen.c (_bfd_XXi_swap_aouthdr_out): Use the first non-zero
1649 filepos for the SizeOfHeaders field.
1650 (_bfd_XXi_swap_scnhdr_out): Correct section flags lossage on reloc
1651 overflow.
1652 (_bfd_XXi_swap_sym_in): Remove redundant section flags assignment.
1653
1654 2004-04-16 Alan Modra <amodra@bigpond.net.au>
1655
1656 * simple.c (bfd_simple_get_relocated_section_contents): Don't
1657 change reloc_done. Set and restore _cooked_size.
1658 (RETURN): Delete.
1659
1660 2004-04-15 Mark Kettenis <kettenis@gnu.org>
1661
1662 * netbsd-core.c (netbsd_core_file_p): Set architecture for VAX
1663 core files.
1664
1665 2004-04-15 Nick Clifton <nickc@redhat.com>
1666
1667 * bfd.c (bfd_archive_filename): Catch NULL bfd pointers.
1668
1669 2004-04-15 Alan Modra <amodra@bigpond.net.au>
1670
1671 * elf64-sparc.c (sparc64_elf_check_relocs): Fix thinko last change.
1672
1673 2004-04-15 H.J. Lu <hongjiu.lu@intel.com>
1674
1675 * elflink.c (_bfd_elf_merge_symbol): Treat weak as strong only
1676 when it is a definition.
1677
1678 2004-04-14 Alan Modra <amodra@bigpond.net.au>
1679
1680 * elf32-sparc.c (elf32_sparc_relocate_section): Don't abort
1681 when statically linking PIC code.
1682 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
1683
1684 2004-04-11 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1685
1686 * config.bfd: Remove mips*-*-mach3* and mips*-dec-mach3* targets.
1687 * configure.in: Remove mips-dec-bsd*, mips-dec-mach3*, mips-*-mach3*
1688 targets amd aout_mips_big_vec, aout_mips_little_vec target vectors.
1689 * configure: Regenerate.
1690
1691 2004-04-08 Richard Sandiford <rsandifo@redhat.com>
1692
1693 * elflink.c: Include libiberty.h.
1694 * Makefile.am (elflink.lo): Depend on libiberty.h.
1695 * Makefile.in: Regenerate.
1696
1697 2004-04-06 Daniel Jacobowitz <drow@mvista.com>
1698
1699 * elfxx-mips.c (MIPS_ELF_STUB_SECTION_NAME): Always use
1700 ".MIPS.stubs".
1701
1702 2004-04-05 H.J. Lu <hongjiu.lu@intel.com>
1703
1704 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Always
1705 reserve the memory for dynamic linker
1706
1707 2004-04-05 Mark Kettenis <kettenis@gnu.org>
1708
1709 * netbsd-core.c (CORE_WCOOKIE_OFFSET): New define.
1710 (netbsd_core_file_p): Create a .wcookie section for OpenBSD/sparc.
1711
1712 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
1713
1714 * elf32-cr16c.c (elf32_cr16c_relocate_section): Use
1715 RELOC_FOR_GLOBAL_SYMBOL.
1716 (elf32_cr16c_add_symbol_hook): Remove const from Elf_Internal_Sym.
1717
1718 2004-04-02 H.J. Lu <hongjiu.lu@intel.com>
1719
1720 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
1721 R_ARM_ALU* only if OLD_ARM_ABI is not defined.
1722
1723 2004-04-01 Paul Brook <paul@codesourcery.com>
1724
1725 * bfd-in.h (bfd_elf32_arm_process_before_allocation): Update.
1726 * elf32-arm.h (struct elf32_elf_section_map): New.
1727 (struct _arm_elf_section_data): New.
1728 (elf32_arm_section_data): Define.
1729 (struct elf32_arm_link_hash_table): Add byteswap_code.
1730 (elf32_arm_link_hash_table_create): Initialize byteswap_code.
1731 (bfd_elf32_arm_process_before_allocation): Add byteswap_code.
1732 (elf32_arm_post_process_headers): Set EF_ARM_BE8.
1733 (elf32_arm_output_symbol_hook, elf32_arm_new_section_hook,
1734 elf32_arm_compare_mapping, elf32_arm_write_section): New functions.
1735 (bfd_elf32_new_section_hook, elf_backend_write_section,
1736 elf_backend_link_output_symbol_hook): Define.
1737
1738 2004-04-01 Andy Chittenden <achittenden@bluearc.com>
1739
1740 * stabs.c (struct stab_link_includes_totals): Add field 'symb'
1741 that keeps the characters in a B_INCL..B_EINCL range.
1742 (_bfd_link_section_stabs): When computing the sum of the
1743 characters in a B_INCL..B_EINCL range also keep a copy of those
1744 characters. Use this information to distinguish between
1745 include sections that have the same sum and the same length
1746 but which are nevertheless unique.
1747
1748 2004-03-31 Paul Brook <paul@codesourcery.com>
1749
1750 * elf32-arm.h (elf32_arm_final_link_relocate): Add R_ARM_ALU*.
1751 * elfarm-nabi.c (elf32_arm_howto_table): Ditto.
1752
1753 2004-03-31 Andy Chittenden <achittenden@bluearc.com>
1754
1755 * stabs.c (struct stab_link_includes_totals): Rename field 'total'
1756 to 'sum_chars' and add field 'num_chars'.
1757 (_bfd_link_section_stabs): When computing the sum of the
1758 characters in a B_INCL..B_EINCL range also keep a count of the
1759 number of characters. Use this information to help distinguish
1760 between include sections when have the same sum but which
1761 nevertheless are still unique.
1762
1763 2004-03-31 Mattias Engdegård <mattias@virtutech.se>
1764
1765 * stabs.c (_bfd_link_section_stabs): Do not skip N_EXCL stabs.
1766
1767 2004-03-30 Galit Heller <Galit.Heller@nsc.com>
1768 Tomer Levi <Tomer.Levi@nsc.com>
1769
1770 * Makefile.am (ALL_MACHINES): Add cpu-cr16c.lo.
1771 (ALL_MACHINES_CFILES): Add cpu-cr16c.c.
1772 (BFD32_BACKENDS): Add elf32-cr16c.lo.
1773 (BFD32_BACKENDS_CFILES): Add elf32-cr16c.c.
1774 (cpu-cr16c.lo): New target.
1775 (elf32-cr16c.lo): Likewise.
1776 * Makefile.in: Regenerate.
1777 * archures.c (bfd_architecture): Add bfd_{arch,mach}_cr16c.
1778 (bfd_archures_list): Add bfd_cr16c_arch.
1779 * config.bfd: Handle cr16c-*-elf*.
1780 * configure.in: Handle bfd_elf32_cr16c_vec.
1781 * configure: Regenerate.
1782 * reloc.c: Add BFD_RELOC_16C_NUM08, BFD_RELOC_16C_NUM08_C,
1783 BFD_RELOC_16C_NUM16, BFD_RELOC_16C_NUM16_C,
1784 BFD_RELOC_16C_NUM32, BFD_RELOC_16C_NUM32_C,
1785 BFD_RELOC_16C_DISP04, BFD_RELOC_16C_DISP04_C,
1786 BFD_RELOC_16C_DISP08, BFD_RELOC_16C_DISP08_C,
1787 BFD_RELOC_16C_DISP16, BFD_RELOC_16C_DISP16_C,
1788 BFD_RELOC_16C_DISP24, BFD_RELOC_16C_DISP24_C,
1789 BFD_RELOC_16C_DISP24a, BFD_RELOC_16C_DISP24a_C,
1790 BFD_RELOC_16C_REG04, BFD_RELOC_16C_REG04_C,
1791 BFD_RELOC_16C_REG04a, BFD_RELOC_16C_REG04a_C,
1792 BFD_RELOC_16C_REG14, BFD_RELOC_16C_REG14_C,
1793 BFD_RELOC_16C_REG16, BFD_RELOC_16C_REG16_C,
1794 BFD_RELOC_16C_REG20, BFD_RELOC_16C_REG20_C,
1795 BFD_RELOC_16C_ABS20, BFD_RELOC_16C_ABS20_C,
1796 BFD_RELOC_16C_ABS24, BFD_RELOC_16C_ABS24_C,
1797 BFD_RELOC_16C_IMM04, BFD_RELOC_16C_IMM04_C,
1798 BFD_RELOC_16C_IMM16, BFD_RELOC_16C_IMM16_C,
1799 BFD_RELOC_16C_IMM20, BFD_RELOC_16C_IMM20_C,
1800 BFD_RELOC_16C_IMM24, BFD_RELOC_16C_IMM24_C,
1801 BFD_RELOC_16C_IMM32, BFD_RELOC_16C_IMM32_C.
1802 * targets.c (bfd_elf32_cr16c_vec): Declare.
1803 (bfd_target_vector): Add bfd_elf32_cr16c_vec.
1804 * cpu-cr16c.c: New file.
1805 * elf32-cr16c.c: Likewise.
1806 * libbfd.h: Regenerate.
1807 * bfd-in2.h: Likewise.
1808
1809 2004-03-30 Jakub Jelinek <jakub@redhat.com>
1810
1811 * elf.c (map_sections_to_segments): Fix handling of .tbss.
1812
1813 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1814
1815 * Makefile.am: Remove all mention of elflink.h.
1816 * Makefile.in: Regenerate.
1817 * bfd-in.h (bfd_elf_discard_info): Declare.
1818 (bfd_elf32_discard_info, bfd_elf64_discard_info): Delete.
1819 * bfd-in2.h: Regenerate.
1820 * elf-bfd.h (bfd_elf32_print_symbol, bfd_elf64_print_symbol,
1821 bfd_elf32_link_record_dynamic_symbol,
1822 bfd_elf64_link_record_dynamic_symbol,
1823 _bfd_elf_link_record_dynamic_symbol, bfd_elf32_bfd_final_link,
1824 bfd_elf64_bfd_final_link, elf_link_record_local_dynamic_symbol,
1825 _bfd_elf32_link_record_local_dynamic_symbol,
1826 _bfd_elf64_link_record_local_dynamic_symbol,
1827 _bfd_elf32_gc_sections, _bfd_elf32_gc_common_finalize_got_offsets,
1828 _bfd_elf32_gc_common_final_link, _bfd_elf64_gc_common_final_link,
1829 _bfd_elf32_gc_record_vtinherit, _bfd_elf32_gc_record_vtentry,
1830 _bfd_elf64_gc_sections, _bfd_elf64_gc_common_finalize_got_offsets,
1831 _bfd_elf64_gc_record_vtinherit, _bfd_elf64_gc_record_vtentry,
1832 _bfd_elf32_reloc_symbol_deleted_p,
1833 _bfd_elf64_reloc_symbol_deleted_p): Delete.
1834 (bfd_elf_link_record_dynamic_symbol,
1835 bfd_elf_link_record_local_dynamic_symbol,
1836 bfd_elf_final_link, bfd_elf_gc_sections,
1837 bfd_elf_gc_record_vtinherit, bfd_elf_gc_record_vtentry,
1838 bfd_elf_gc_common_finalize_got_offsets, bfd_elf_gc_common_final_link,
1839 bfd_elf_reloc_symbol_deleted_p): Declare.
1840 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
1841 * elf32-arm.h: Update for changed function names. Remove local
1842 WILL_CALL_FINISH_DYNAMIC_SECTION define.
1843 * elf-hppa.h, elf-m10300.c, elf32-cris.c, elf32-d10v.c, elf32-dlx.c,
1844 * elf32-fr30.c, elf32-frv.c, elf32-h8300.c, elf32-hppa.c, elf32-i386.c,
1845 * elf32-iq2000.c, elf32-m32r.c, elf32-m68hc1x.c, elf32-m68k.c,
1846 * elf32-mcore.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
1847 * elf32-sh.c, elf32-sparc.c, elf32-v850.c, elf32-vax.c,
1848 * elf32-xstormy16.c, elf32-xtensa.c, elf64-alpha.c, elf64-hppa.c,
1849 * elf64-mmix.c, elf64-ppc.c, elf64-s390.c, elf64-sh64.c, elf64-sparc.c,
1850 * elf64-x86-64.c, elfxx-ia64.c, elfxx-mips.c, elfxx-target.h: Likewise.
1851 * elfxx-target.h (bfd_elfNN_bfd_final_link): Define.
1852 (bfd_elfNN_print_symbol): Define.
1853 * elfcode.h: Don't include elflink.h.
1854 (elf_bfd_discard_info, elf_reloc_symbol_deleted_p,
1855 elf_link_record_dynamic_symbol, elf_bfd_final_link, elf_gc_sections,
1856 elf_gc_common_finalize_got_offsets, elf_gc_common_final_link,
1857 elf_gc_record_vtinherit, elf_gc_record_vtentry,
1858 elf_link_record_local_dynamic_symbol): Don't define.
1859 * elflink.c: Update for changed function names. Move elflink.h
1860 code here.
1861 * elflink.h: Delete file.
1862 * po/SRC-POTFILES.in: Regenerate.
1863 * po/bfd.pot: Regenerate.
1864
1865 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1866
1867 * elf64-mmix.c (mmix_elf_relocate_section): Restore code setting
1868 "name" for global syms accidentally removed in 2004-03-20 change.
1869
1870 2004-03-27 Alan Modra <amodra@bigpond.net.au>
1871
1872 * elf-bfd.h (struct elf_reloc_cookie): Add r_sym_shift field.
1873 * elflink.h: Replace all occurrences of sizeof (Elf_External_*)
1874 where Elf_External_* is different for 64 and 32 bit, with
1875 corresponding elf_size_info field.
1876 (struct elf_final_link_info): Use "bfd_byte *" instead
1877 of "Elf_External_Sym *" for external_syms and symbuf.
1878 (elf_link_adjust_relocs): Set up r_type_mask and r_sym_shift local
1879 vars and use instead of ELF_R_INFO and ELF_R_TYPE macros.
1880 (struct elf_link_sort_rela): Add "sym_mask" alias for "offset".
1881 (elf_link_sort_cmp1): Use sym_mask field instead of ELF_R_SYM.
1882 (elf_link_sort_cmp2): Adjust.
1883 (elf_link_sort_relocs): Set up r_sym_mask local var instead of
1884 using ELF_R_SYM macro. Set u.sym_mask.
1885 (elf_bfd_final_link): Call _bfd_elf_stringtab_init instead of macro
1886 version, elf_stringtab_init. Ditto for bfd_section_from_elf_index
1887 vs. section_from_elf_index. Adjust Elf_External_Sym pointer
1888 arithmetic. Pass bed to elf_link_flush_output_syms. Adjust
1889 Elf_External_Dyn pointer arithmentic. Use bed swap_dyn_in and
1890 swap_syn_out functions. Rearrange dyn swap in/out switch.
1891 (elf_link_output_sym): Adjust Elf_External_Sym pointer arithmentic.
1892 Pass bed to elf_link_flush_output_syms. Use bed swap_symbol_out.
1893 (elf_link_flush_output_syms): Add elf_backend_data arg.
1894 (elf_link_check_versioned_symbol): Likewise.
1895 (elf_link_output_extsym): Pass bed to elf_link_check_versioned_symbol.
1896 Adjust Elf_External_Sym pointer arithmetic. Use bed swap_symbol_out.
1897 (elf_link_input_bfd): Use bfd_section_from_elf_index. Set up
1898 r_type_mask and r_sym_shift local vars and use instead of ELF_R_SYM,
1899 ELF_R_TYPE and ELF_R_INFO macros.
1900 (elf_reloc_link_order): Select ELF32_R_INFO or ELF64_R_INFO invocation
1901 based on size rather than using ELF_R_INFO.
1902 (elf_gc_mark): Set up r_sym_shift local var and use instead of
1903 ELF_R_SYM macro.
1904 (struct alloc_got_off_arg): New.
1905 (elf_gc_common_finalize_got_offsets): Use elf_size_info instead of
1906 ARCH_SIZE. Pass get entry size down to elf_gc_allocate_got_offsets.
1907 (elf_gc_allocate_got_offsets): Adjust.
1908 (elf_reloc_symbol_deleted_p): Usee cookie.r_sym_shift instead of
1909 ELF_R_SYM. Use bfd_section_from_elf_index.
1910 (elf_bfd_discard_info): Set cookie.r_sym_shift.
1911 * elfcode.h (elf_stringtab_init, section_from_elf_index): Delete.
1912 (elf_slurp_symbol_table): Use bfd_section_from_elf_index.
1913
1914 2004-03-26 Stan Shebs <shebs@apple.com>
1915
1916 Remove MPW support, no longer used.
1917 * config.bfd (powerpc-*-mpw*): Remove configuration.
1918 * mpw-config.in, mpw-make.sed: Remove files.
1919 * ecoffswap.h [MPW_C]: Remove MPW-C-friendly version of code.
1920
1921 2004-03-26 Alan Modra <amodra@bigpond.net.au>
1922
1923 * elf64-ppc.c (elf_backend_add_symbol_hook): Define.
1924 (ppc64_elf_add_symbol_hook): New function.
1925 * elf-bfd.h (struct elf_backend_data <elf_add_symbol_hook>): Remove
1926 const from Elf_Internal_Sym param.
1927 * elflink.c (elf_link_add_object_symbols): Adjust.
1928 * elf-hppa.h (elf_hppa_add_symbol_hook): Adjust.
1929 * elf32-frv.c (elf32_frv_add_symbol_hook): Adjust.
1930 * elf32-i370.c (elf_backend_add_symbol_hook): Adjust.
1931 * elf32-m32r.c (m32r_elf_add_symbol_hook): Adjust.
1932 * elf32-m68hc1x.c (elf32_m68hc11_add_symbol_hook): Adjust.
1933 * elf32-m68hc1x.h (elf32_m68hc11_add_symbol_hook): Adjust.
1934 * elf32-ppc.c (ppc_elf_add_symbol_hook): Adjust.
1935 * elf32-sh64.c (sh64_elf_add_symbol_hook): Adjust.
1936 * elf32-v850.c (v850_elf_add_symbol_hook): Adjust.
1937 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Adjust.
1938 * elf64-mmix.c (mmix_elf_add_symbol_hook): Adjust.
1939 * elf64-sh64.c (sh64_elf64_add_symbol_hook): Adjust.
1940 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Adjust.
1941 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Adjust.
1942 * elfxx-mips.c (_bfd_mips_elf_add_symbol_hook): Adjust.
1943 * elfxx-mips.h (_bfd_mips_elf_add_symbol_hook): Adjust.
1944
1945 2004-03-26 Alan Modra <amodra@bigpond.net.au>
1946
1947 * elfxx-target.h (bfd_elfNN_bfd_link_add_symbols): Define.
1948 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): Delete.
1949 (_bfd_elf_sort_symbol, _bfd_elf_add_dt_needed_tag): Delete.
1950 (_bfd_elf_finalize_dynstr, bfd_elf32_bfd_link_add_symbols): Delete.
1951 (bfd_elf64_bfd_link_add_symbols): Delete.
1952 (bfd_elf_link_add_symbols): Declare.
1953 * elfcode.h (elf_bfd_link_add_symbols): Delete.
1954 * elflink.c: Include safe-ctype.h.
1955 (elf_add_dt_needed_tag): Rename from _bfd_elf_add_dt_needed_tag,
1956 make static.
1957 (elf_sort_symbol): Rename from _bfd_elf_sort_symbol, make static.
1958 (elf_finalize_dynstr): Rename from _bfd_elf_finalize_dynstr, make
1959 static.
1960 (elf_link_add_archive_symbols): Rename from
1961 _bfd_elf_link_add_archive_symbols, make static.
1962 (elf_link_add_object_symbols): New function. Corresponding
1963 elflink.h function converted to use elf_size_info.
1964 (bfd_elf_link_add_symbols): Likewise.
1965 (bfd_elf_size_dynamic_sections): Adjust.
1966 * elflink.h (elf_bfd_link_add_symbols): Delete.
1967 (elf_link_add_object_symbols): Delete.
1968 * elf32-gen.c (elf32_generic_link_add_symbols): Call
1969 bfd_elf_link_add_symbols.
1970 * elf64-gen.c (elf64_generic_link_add_symbols): Likewise.
1971
1972 2004-03-25 Alan Modra <amodra@bigpond.net.au>
1973
1974 * elflink.h (elf_link_add_object_symbols): Add DT_NEEDED for as-needed
1975 and chained shared libs only if dynsym. Clear dynsym on forced-local.
1976
1977 * elf-bfd.h (_bfd_elf_add_dynamic_entry): Declare.
1978 (bfd_elf32_add_dynamic_entry, bfd_elf64_add_dynamic_entry): Delete.
1979 (_bfd_elf_add_dt_needed_tag): Declare.
1980 (_bfd_elf_sort_symbol): Declare.
1981 (_bfd_elf_finalize_dynstr): Declare.
1982 (RELOC_FOR_GLOBAL_SYM): Formatting.
1983 * elfcode.h (elf_add_dynamic_entry): Delete.
1984 * elflink.c (_bfd_elf_add_dynamic_entry): New function. Corresponding
1985 elflink.h function converted to use elf_size_info.
1986 (_bfd_elf_add_dt_needed_tag): Likewise.
1987 (_bfd_elf_sort_symbol): Likewise.
1988 (_bfd_elf_finalize_dynstr): Likewise.
1989 (compute_bucket_count): Likewise.
1990 (bfd_elf_size_dynamic_sections): Likewise. Check result of
1991 _bfd_elf_strtab_add before calling _bfd_elf_strtab_addref.
1992 (elf_adjust_dynstr_offsets, elf_collect_hash_codes): Moved from..
1993 * elflink.h: ..here.
1994 (sort_symbol, add_dt_needed_tag): Delete.
1995 (elf_add_dynamic_entry, elf_finalize_dynstr): Delete.
1996 (compute_bucket_count, NAME(bfd_elf,size_dynamic_sections)): Delete.
1997 Update all users.
1998 * elf32-arm.h (add_dynamic_entry): Update. Remove casts.
1999 * elf32-cris.c (add_dynamic_entry): Likewise.
2000 * elf32-hppa.c (add_dynamic_entry): Likewise.
2001 * elf32-i370.c (add_dynamic_entry): Likewise.
2002 * elf32-i386.c (add_dynamic_entry): Likewise.
2003 * elf32-m32r.c (add_dynamic_entry): Likewise.
2004 * elf32-m68k.c (add_dynamic_entry): Likewise.
2005 * elf32-ppc.c (add_dynamic_entry): Likewise.
2006 * elf32-s390.c (add_dynamic_entry): Likewise.
2007 * elf32-sh.c (add_dynamic_entry): Likewise.
2008 * elf32-sparc.c (add_dynamic_entry): Likewise.
2009 * elf32-vax.c (add_dynamic_entry): Likewise.
2010 * elf32-xtensa.c (add_dynamic_entry): Likewise.
2011 * elf64-alpha.c (add_dynamic_entry): Likewise.
2012 * elf64-hppa.c (add_dynamic_entry): Likewise.
2013 * elf64-ppc.c (add_dynamic_entry): Likewise.
2014 * elf64-s390.c (add_dynamic_entry): Likewise.
2015 * elf64-sparc.c (add_dynamic_entry): Likewise.
2016 * elf64-x86-64.c (add_dynamic_entry): Likewise.
2017 * elfxx-ia64.c (add_dynamic_entry): Likewise.
2018 * elfxx-mips.c (MIPS_ELF_ADD_DYNAMIC_ENTRY): Likewise.
2019 * elf-m10300.c (_bfd_mn10300_elf_size_dynamic_sections): Likewise.
2020 * elf32-frv.c (elf32_frv_size_dynamic_sections): Likewise.
2021 * elf64-sh64.c (sh64_elf64_size_dynamic_sections): Likewise.
2022
2023 2004-03-23 Paul Brook <paul@codesourcery.com>
2024
2025 * elf32-arm.h (arm_print_private_bfd_data): Add EABI v3.
2026
2027 2004-03-22 Bob Wilson <bob.wilson@acm.org>
2028
2029 * elf32-xtensa.c (elf_xtensa_check_relocs): Remove code to read
2030 literal tables and check for relocs outside of literal pools.
2031 (elf_xtensa_make_sym_local): Don't clear ELF_LINK_NON_GOT_REF flag.
2032 (elf_xtensa_fix_refcounts): Don't check ELF_LINK_NON_GOT_REF or
2033 set DF_TEXTREL.
2034 (elf_xtensa_size_dynamic_sections): Don't add DT_TEXTREL entry.
2035 (elf_xtensa_relocate_section): Read literal tables and check for
2036 dynamic relocations in read-only sections and not in literal pools.
2037
2038 2004-03-23 Alan Modra <amodra@bigpond.net.au>
2039
2040 PR 51.
2041 * linker.c (bfd_wrapped_link_hash_lookup): Handle info->wrap_char.
2042
2043 2004-03-22 Hans-Peter Nilsson <hp@axis.com>
2044
2045 * elf32-cris.c (cris_elf_relocate_section) <case R_CRIS_16_GOTPLT,
2046 R_CRIS_16_GOTPLT>: Also error if there's no PLT for a symbol
2047 not defined by the executable, or defined in a DSO.
2048 <eliding run-time relocation of .got>: Initialize GOT entry for a
2049 function symbol or ELF_LINK_HASH_NEEDS_PLT statically in an
2050 executable.
2051 (cris_elf_gc_sweep_hook): Improve fallthrough marking.
2052 (elf_cris_try_fold_plt_to_got): Improve head comment. Do not fold
2053 a PLT reloc to GOT for an executable.
2054 (elf_cris_adjust_dynamic_symbol): Only fold a .got.plt entry with
2055 .got for a DSO and explain why.
2056 (elf_cris_discard_excess_program_dynamics): Also lose GOT-relocs
2057 and unreferenced symbols for which a PLT is defined. Adjust
2058 dynamic-symbol pruning correspondingly, to make sure we don't lose
2059 a dynamic symbol also defined by a DSO.
2060
2061 2004-03-22 Alan Modra <amodra@bigpond.net.au>
2062
2063 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Add input_bfd, input_section
2064 and rel args. Group input and output args. Wrap to 80 columns.
2065 * elf-m10200.c, elf-m10300.c, elf32-arm.h, elf32-avr.c,
2066 elf32-cris.c, elf32-d10v.c, elf32-fr30.c, elf32-h8300.c,
2067 elf32-hppa.c, elf32-i386.c, elf32-i860.c, elf32-ip2k.c,
2068 elf32-iq2000.c, elf32-m68hc1x.c, elf32-m68k.c, elf32-mcore.c,
2069 elf32-msp430.c, elf32-openrisc.c, elf32-ppc.c, elf32-s390.c,
2070 elf32-sparc.c, elf32-v850.c, elf32-vax.c, elf32-xstormy16.c,
2071 elf32-xtensa.c, elf64-alpha.c, elf64-mmix.c, elf64-ppc.c,
2072 elf64-s390.c, elf64-sparc.c, elf64-x86-64.c, elfxx-ia64.c: Update
2073 RELOC_FOR_GLOBAL_SYMBOL invocation.
2074
2075 2004-03-20 H.J. Lu <hongjiu.lu@intel.com>
2076
2077 * elf-bfd.h (RELOC_FOR_GLOBAL_SYMBOL): Report error if
2078 unresolved symbols in objects aren't allowed.
2079
2080 * elf-hppa.h (elf_hppa_relocate_section): Properly handle
2081 unresolved symbols.
2082 (elf_hppa_remark_useless_dynamic_symbols): Likewise.
2083 (elf_hppa_unmark_useless_dynamic_symbols):
2084 * elf32-frv.c (elf32_frv_relocate_section): Likewise.
2085 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
2086 (elf32_hppa_relocate_section): Likewise.
2087 * elf32-i370.c (i370_elf_relocate_section): Likewise.
2088 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
2089 * elf32-sh.c (sh_elf_relocate_section): Likewise.
2090 * elf64-sh64.c (sh_elf64_relocate_section): Likewise.
2091 * elfxx-mips.c (mips_elf_calculate_relocation): Likewise.
2092
2093 * elf-m10200.c (mn10200_elf_relocate_section): Use
2094 RELOC_FOR_GLOBAL_SYMBOL.
2095 * elf32-avr.c (elf32_avr_relocate_section): Likewise.
2096 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
2097 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
2098 * elf32-h8300.c (elf32_h8_relocate_section): Likewise.
2099 * elf32-i860.c (elf32_i860_relocate_section): Likewise.
2100 * elf32-m68hc1x.c (m68hc11_get_relocation_value): Likewise.
2101 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
2102 * elf32-msp430.c (elf32_msp430_relocate_section): Likewise.
2103 * elf32-openrisc.c (openrisc_elf_relocate_section): Likewise.
2104 * elf32-v850.c (v850_elf_relocate_section): Likewise.
2105 * elf32-xstormy16.c (xstormy16_elf_relocate_section): Likewise.
2106 * elf64-mmix.c (mmix_elf_relocate_section): Likewise.
2107
2108 2004-03-19 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2109
2110 * elf32-hppa.c (elf32_hppa_check_relocs): Handle R_PARISC_PCREL32.
2111 (final_link_relocate): Likewise.
2112 * elf-hppa.h (elf_hppa_reloc_final_type): Handle selectors for
2113 R_PARISC_PCREL32 and R_PARISC_PCREL64 relocations.
2114
2115 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2116
2117 * Makefile.am: Run "make dep-am".
2118 * Makefile.in: Regenerate.
2119 * aclocal.m4: Regenerate.
2120 * config.in: Regenerate.
2121 * po/bfd.pot: Regenerate.
2122
2123 2004-03-19 Alan Modra <amodra@bigpond.net.au>
2124 H.J. Lu <hongjiu.lu@intel.com>
2125
2126 * elflink.c (_bfd_elf_merge_symbol): Revert last change. Move
2127 type and size change code to where it was previously. Remove
2128 dt_needed param. Treat old weak syms as strong if new sym is
2129 from a shared lib, even when old sym is from another shared
2130 lib. Remove unnecessary tests of oldweak and newweak. Correct
2131 comments.
2132 (_bfd_elf_add_default_symbol): Remove dt_needed param. Update
2133 _bfd_elf_merge_symbol calls.
2134 * elflink.h (elf_link_add_object_symbols): Update calls. Remove
2135 dt_needed local var. Update comments.
2136 * elf-bfd.h (_bfd_elf_merge_symbol): Update prototype.
2137 (_bfd_elf_add_default_symbol): Likewise.
2138
2139 * elflink.c (_bfd_elf_merge_symbol): Reinstate code to handle
2140 strong syms in one shared object overriding weak syms in another.
2141
2142 2004-03-18 Alan Modra <amodra@bigpond.net.au>
2143
2144 * elf-bfd.h (struct elf_obj_tdata): Delete dt_soname field. Add
2145 dyn_lib_class field. Rearrange for better packing.
2146 (elf_dt_soname): Delete.
2147 (elf_dyn_lib_class): Define.
2148 * elf.c (bfd_elf_set_dt_needed_name): Update comment.
2149 (bfd_elf_set_dt_needed_soname): Delete.
2150 (bfd_elf_set_dyn_lib_class): New function.
2151 * elflink.h (add_dt_needed_tag): New function. Split out from..
2152 (elf_link_add_object_symbols): ..here. Rename "name" to "soname".
2153 Use elf_dyn_lib_class to set dt_needed and add_needed. Move fallback
2154 initialization of soname.
2155 (elf_link_check_versioned_symbol): Test elf_dyn_lib_class instead of
2156 elf_dt_soname.
2157 * bfd-in.h (enum dynamic_lib_link_class): New.
2158 (bfd_elf_set_dt_needed_soname): Delete.
2159 (bfd_elf_set_dyn_lib_class): Declare.
2160 * bfd-in2.h: Regenerate.
2161
2162 * elflink.c (_bfd_elf_merge_symbol): Rewrite weak symbol handling.
2163 (_bfd_elf_add_default_symbol): Remove indirect BFD_ASSERTs.
2164 * elflink.h (elf_link_add_object_symbols): Don't clear dt_needed in
2165 symbol loop. Instead use add_needed to flag tag as written.
2166
2167 2004-03-17 Nathan Sidwell <nathan@codesourcery.com>
2168
2169 * elfxx-mips.c (_bfd_mips_elf_merge_private_bfd_data): Correct
2170 logic for null_input_bfd detection.
2171
2172 2004-03-17 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
2173
2174 * config.bfd: Switch sh-*-rtems* to ELF. Add sh-*-rtemscoff*.
2175
2176 2004-03-16 Mark Kettenis <kettenis@gnu.org>
2177
2178 * netbsd-core.c (netbsd_core_file_p) [CORE_FPU_OFFSET]: Remove
2179 code.
2180
2181 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2182
2183 * elflink.c (elf_link_read_relocs_from_section): Don't use
2184 NUM_SHDR_ENTRIES in end of reloc calc. Move NULL shdr check..
2185 (_bfd_elf_link_read_relocs): ..to here.
2186 * elf32-ppc.c (ppc_elf_relax_section): Formatting.
2187
2188 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2189
2190 * configure.in (HOST_64BIT_TYPE, HOST_U_64BIT_TYPE): Don't override
2191 values selected in configure.host. Require both to be defined
2192 before setting BFD_HOST_64_BIT_DEFINED. Protect assignment to
2193 corresponding BFD_HOST vars with quotes.
2194 <${host64}-${target64}-${want64} in *true*>: Don't exempt gcc;
2195 Always require BFD_HOST_64_BIT_DEFINED.
2196 <file_ptr type>: Find off_t size before emitting message. Combine
2197 off_t and ftello64 conditional.
2198 * configure: Regenerate.
2199
2200 2004-03-16 Alan Modra <amodra@bigpond.net.au>
2201
2202 * elf32-m32r.c (m32r_elf_create_dynamic_sections): Fix pointer
2203 aliasing warning. Remove trailing whitespace throughout file.
2204
2205 2004-03-15 John David Anglin <dave.anglin@nrc-cnrc.gc.ca>
2206
2207 * elf-hppa.h (elf_hppa_relocate_section): Pass input_bfd instead of
2208 input_section in calls to get_dyn_name.
2209 * 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
2210 local symbols.
2211 (elf64_hppa_check_relocs): Pass abfd in call to get_dyn_name.
2212
2213 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2214
2215 * bfd-in.h (bfd_int64_t, bfd_uint64_t): New types.
2216 (BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Don't define here.
2217 (bfd_getb64, bfd_getl64, bfd_get_bits): Return bfd_uint64_t.
2218 (bfd_getb_signed_64, bfd_getl_signed_64): Return bfd_int64_t.
2219 (bfd_putb64, bfd_putl64, bfd_put_bits): Accept bfd_uint64_t.
2220 * configure.in (HOST_U_64BIT_TYPE): Set when sizeof long is 8.
2221 (BFD_HOST_64_BIT_DEFINED, BFD_HOST_64_BIT, BFD_HOST_U_64_BIT): Set
2222 when using long.
2223 * libbfd.c (EIGHT_GAZILLION, COERCE64): Use bfd_int64_t.
2224 (bfd_getb64): Return bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2225 (bfd_getl64, bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2226 (bfd_putb64): Accept bfd_uint64_t. Enable when BFD_HOST_64_BIT.
2227 (bfd_putl64, bfd_put_bits, bfd_get_bits): Likewise.
2228 * dwarf2.c (struct attribute): Use bfd_int64_t and bfd_uint64_t.
2229 (read_8_bytes, read_indirect_string, read_address): Likewise.
2230 (read_abbrevs, parse_comp_unit): Likewise.
2231 * targets.c (struct bfd_target): Likewise.
2232 * aix386-core.c (NO_GET64, NO_PUT64, NO_GETS64): Define and use.
2233 * hppabsd-core.c: Likewise. Formatting.
2234 * hpux-core.c: Likewise.
2235 * irix-core.c: Likewise.
2236 * netbsd-core.c: Likewise.
2237 * osf-core.c: Likewise.
2238 * ptrace-core.c: Likewise.
2239 * sco5-core.c: Likewise.
2240 * trad-core.c: Likewise.
2241 * configure: Regenerate.
2242 * bfd-in2.h: Regenerate.
2243
2244 2004-03-15 Alan Modra <amodra@bigpond.net.au>
2245
2246 * bfd-in.h (bfd_getb64, bfd_getl64): Replace bfd_byte* with void*.
2247 (bfd_getb32, bfd_getl32, bfd_getb16, bfd_getl16): Likewise.
2248 (bfd_getb_signed_64, bfd_getl_signed_64): Likewise.
2249 (bfd_getb_signed_32, bfd_getl_signed_32): Likewise.
2250 (bfd_getb_signed_16, bfd_getl_signed_16): Likewise.
2251 (bfd_putb64, bfd_putl64, bfd_putb32, bfd_putl32): Likewise.
2252 (bfd_putb16, bfd_putl16, bfd_get_bits, bfd_put_bits): Likewise.
2253 * libbfd.c: Likewise in function definitions.
2254 (bfd_put_8): Mask with 0xff rather than casting to char.
2255 (bfd_putb16, bfd_putl16, bfd_putb32, bfd_putl32): Likewise.
2256 (bfd_putb64, bfd_putl64, bfd_put_bits): Likewise.
2257 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8): Remove casts, simplify.
2258 (H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8): Likewise.
2259 (H_GET_64, H_GET_32, H_GET_16, H_GET_8): Likewise.
2260 (H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Likewise.
2261 * libaout.h (H_PUT_64 H_PUT_32, H_PUT_16): Remove casts, simplify.
2262 (H_PUT_S64, H_PUT_S32, H_PUT_S16): Likewise.
2263 (H_GET_64, H_GET_32, H_GET_16): Likewise.
2264 (H_GET_S64, H_GET_S32, H_GET_S16): Likewise.
2265 * archive.c (do_slurp_coff_armap): Update swap prototype.
2266 * coff-tic54x.c (tic54x_getl32): Replace bfd_byte* with void*.
2267 (tic54x_getl_signed_32): Likewise.
2268 (tic54x_putl32): Likewise. Mask with 0xff rather than casting to char.
2269 * mach-o.c (bfd_mach_o_read_header): Update get32 prototype.
2270 * pdp11.c (bfd_getp32): Make static, replace bfd_byte* with void*.
2271 (bfd_getp_signed_32, bfd_putp32): Likewise.
2272 * targets.c (struct bfd_target): Use void* in place of bfd_byte* for
2273 bfd_getx64, bfd_getx_signed_64, bfd_putx64, bfd_getx32,
2274 bfd_getx_signed_32, bfd_putx32, bfd_getx16, bfd_getx_signed_16,
2275 bfd_putx16, bfd_h_getx64, bfd_h_getx_signed_64, bfd_h_putx64,
2276 bfd_h_getx32, bfd_h_getx_signed_32, bfd_h_putx32, bfd_h_getx16,
2277 bfd_h_getx_signed_16, bfd_h_putx16.
2278 * aix386-core.c (NO_GET, NO_GETS, NO_PUT): Update prototypes.
2279 * hppabsd-core.c: Similarly. Rename NO_SIGNED_GET to NO_GETS.
2280 * hpux-core.c: Likewise.
2281 * irix-core.c: Likewise.
2282 * netbsd-core.c: Likewise.
2283 * osf-core.c: Likewise.
2284 * ptrace-core.c: Likewise.
2285 * sco5-core.c: Likewise.
2286 * trad-core.c: Likewise.
2287 * bfd-in2.h: Regenerate.
2288
2289 2004-03-15 Matt Thomas <matt@3am-software.com>
2290
2291 * config.bfd: Add x86-64 vector to NetBSD/i386 if 64bit BFD is
2292 selected.
2293
2294 2004-03-13 Mark Kettenis <kettenis@gnu.org>
2295
2296 * config.bfd: Add x86_64-*-openbsd*.
2297 * configure.in (x86_64-*-openbsd*): Set COREFILE to
2298 netbsd-core.lo.
2299 * configure: Regenerate.
2300
2301 2004-03-12 Nick Clifton <nickc@redhat.com>
2302 Dave Murphy <wintermute2k4@ntlworld.com>
2303
2304 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Skip most checks
2305 if the input bfd does not contain any code.
2306
2307 2004-03-09 Steve Ellcey <sje@cup.hp.com>
2308
2309 * elfxx-ia64.c (plt_full_entry): Change ld8 to ld8.acq.
2310
2311 2004-03-05 Fred Fish <fnf@redhat.com>
2312
2313 * elfxx-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Just force
2314 mips16 symbols to be even rather than testing first for even/odd.
2315 (_bfd_mips_elf_link_output_symbol_hook): Ditto.
2316
2317 2004-03-05 Nathan Sidwell <nathan@codesourcery.com>
2318
2319 * elf.c (map_sections_to_segments): Ignore .tbss sections for
2320 layout purposes.
2321
2322 2004-03-03 Alexandre Oliva <aoliva@redhat.com>
2323
2324 * elflink.c (bfd_elf_record_link_assignment): Mark undefweak and
2325 undefined symbols as hash_new.
2326
2327 2003-03-03 Andrew Stubbs <andrew.stubbs@superh.com>
2328
2329 * archures.c: Add bfd_mach_sh4_nommu_nofpu.
2330 * cpu-sh.c: Ditto.
2331 * elf32-sh.c: Ditto.
2332 * bfd-in2.h: Regenerate.
2333
2334 2004-03-02 Alexandre Oliva <aoliva@redhat.com>
2335
2336 * elf32-frv.c (struct frv_pic_relocs_info): Added fixups and
2337 dynrelocs.
2338 (_frv_count_got_plt_entries): Initialize them.
2339 (frv_pic_relocs_info_find): Add insert argument. Adjust all
2340 callers.
2341 (frv_pic_relocs_info_for_global): Likewise.
2342 (frv_pic_relocs_info_for_local): Likewise.
2343 (frv_pic_merge_early_relocs_info): New.
2344 (_frv_resolve_final_relocs_info): Use it in case one entry maps to
2345 another.
2346 (_frv_add_dyn_reloc): Add entry argument. Adjust all callers.
2347 Check that we don't exceed the allocated count for entry.
2348 (_frv_add_rofixup): Likewise.
2349 (_frv_emit_got_relocs_plt_entries): Adjust for coding standards.
2350 (elf32_frv_finish_dynamic_sections): Improve error message in case
2351 we emit too few rofixup entries.
2352
2353 2004-03-01 Richard Sandiford <rsandifo@redhat.com>
2354
2355 * archures.c (bfd_mach_fr450): New.
2356 * bfd-in2.h: Regenerate.
2357 * cpu-frv.c (arch_info_450): New bfd_arch_info_type.
2358 (arch_info_500): Link to it.
2359 * elf32-frv.c (elf32_frv_machine, frv_elf_merge_private_bfd_data)
2360 (frv_elf_print_private_bfd_data): Handle fr405 and fr450 header flags.
2361 (frv_elf_arch_extension_p): New function.
2362 (frv_elf_merge_private_bfd_data): Use it.
2363
2364 2004-02-28 H.J. Lu <hongjiu.lu@intel.com>
2365
2366 * elf-bfd.h (_bfd_elf_link_add_archive_symbols): New prototype.
2367
2368 * elflink.h (is_global_data_symbol_definition): Moved to
2369 elflink.c.
2370 (elf_link_is_defined_archive_symbol): Likewise.
2371 (elf_link_add_archive_symbols): Likewise. Renamed to
2372 _bfd_elf_link_add_archive_symbols.
2373
2374 * elflink.c (elf_link_is_defined_archive_symbol): Get the size
2375 of ELF symbol table entry from backend.
2376 (_bfd_elf_link_add_archive_symbols): Call bfd_link_add_symbols
2377 instead of elf_link_add_object_symbols.
2378
2379 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2380
2381 * elf-bfd.h (struct elf_backend_data): Added
2382 elf_backend_can_make_relative_eh_frame,
2383 elf_backend_can_make_lsda_relative_eh_frame and
2384 elf_backend_encode_eh_address.
2385 (_bfd_elf_encode_eh_address): Declare.
2386 (_bfd_elf_can_make_relative): Declare.
2387 * elf-eh-frame.c (_bfd_elf_discard_section_eh_frame): Use new
2388 hooks to decide whether to attempt to make_relative and
2389 make_lsda_relative.
2390 (_bfd_elf_write_section_eh_frame_hdr): Call encode_eh_address.
2391 (_bfd_elf_can_make_relative): New.
2392 (_bfd_elf_encode_eh_address): New.
2393 * elf32-frv.c (frv_elf_use_relative_eh_frame): New.
2394 (frv_elf_encode_eh_address): New.
2395 (elf_backend_can_make_relative_eh_frame): Define.
2396 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2397 (elf_backend_encode_eh_address): Define.
2398 * elfxx-target.h
2399 (elf_backend_can_make_relative_eh_frame): Define.
2400 (elf_backend_can_make_lsda_relative_eh_frame): Define.
2401 (elf_backend_encode_eh_address): Define.
2402 (elfNN_bed): Add them.
2403
2404 2004-02-27 Alexandre Oliva <aoliva@redhat.com>
2405
2406 * elf32-frv.c (elf32_frv_howto_table) <R_FRV_LABEL16>: Set
2407 complain_on_overflow to signed.
2408
2409 2004-02-27 H.J. Lu <hongjiu.lu@intel.com>
2410
2411 * elflink.h (sort_symbol): New.
2412 (elf_link_add_object_symbols): Use a sorted symbol array for
2413 weakdef.
2414
2415 2004-02-27 Jakub Jelinek <jakub@redhat.com>
2416
2417 * elf32-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
2418 for pc relative relocs.
2419 (elf_s390_relocate_section): Likewise.
2420 * elf64-s390.c (allocate_dynrelocs): Use SYMBOL_REFERENCES_LOCAL
2421 for pc relative relocs.
2422 (elf_s390_relocate_section): Likewise.
2423
2424 2004-02-26 H.J. Lu <hongjiu.lu@intel.com>
2425
2426 * elfxx-ia64.c (elfNN_ia64_check_relocs): Fix call to
2427 count_dyn_reloc.
2428
2429 2004-02-25 H.J. Lu <hongjiu.lu@intel.com>
2430
2431 * elfxx-ia64.c (elfNN_ia64_dyn_reloc_entry): Add the reltext.
2432 field to track if a relocation is against readonly section.
2433 (count_dyn_reloc): Take a new argument for rent->reltext.
2434 (elfNN_ia64_check_relocs): Adjust call to count_dyn_reloc.
2435 (get_reloc_section): Don't set ia64_info->reltext here.
2436 (allocate_dynrel_entries): Set ia64_info->reltext here.
2437
2438 2004-02-24 Alexandre Oliva <aoliva@redhat.com>
2439
2440 * elf32-frv.c (FRV_SYM_LOCAL): Weak undefined doesn't imply local.
2441 (_frv_emit_got_relocs_plt_entries): Decay relocation to protected
2442 function's descriptor to symbol+offset, and map local undefweak
2443 symbol to NULL function descriptor.
2444 (elf32_frv_relocate_section): Likewise.
2445
2446 2004-02-23 Mark Kettenis <kettenis@gnu.org>
2447
2448 * libaout.h (enum machine_type): Add M_SPARC64_NETBSD and
2449 M_X86_64_NETBSD.
2450 * netbsd-core.c (M_SPARC64_OPENBSD): Define.
2451 (netbsd_core_file_p): Set architecture from machine ID for
2452 selected machines.
2453
2454 2004-02-23 Jakub Jelinek <jakub@redhat.com>
2455
2456 * elflink.h (size_dynamic_sections): If not adding DT_FLAGS and
2457 DF_BIND_NOW is set in info->flags, create DT_BIND_NOW dynamic entry.
2458
2459 2004-02-21 H.J. Lu <hongjiu.lu@intel.com>
2460
2461 * elflink.c (_bfd_elf_merge_symbol): Properly handle undefined
2462 symbols with non-default visibility.
2463
2464 2004-02-21 Danny Smith <daanysmith@users.sourceforge.net>
2465
2466 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Clear
2467 IMAGE_SCN_MEM_WRITE on known sections only.
2468
2469 2004-02-20 Jakub Jelinek <jakub@redhat.com>
2470
2471 * elf32-ppc.c (allocate_dynrelocs): Create dynsym for undef weak
2472 symbols used in PIE relocs.
2473
2474 2004-02-19 Jakub Jelinek <jakub@redhat.com>
2475
2476 * elf32-sparc.c (elf32_sparc_finish_dynamic_sections): Clear
2477 .plt sh_entsize.
2478
2479 2004-02-18 Daniel Jacobowitz <drow@mvista.com>
2480
2481 * configure.in: Update version to 2.15.90.
2482 * configure: Regenerate.
2483
2484 2004-02-17 Daniel Jacobowitz <drow@mvista.com>
2485 Richard Sandiford <rsandifo@redhat.com>
2486
2487 * elfxx-mips.c (mips_elf_calculate_relocation): Use
2488 _bfd_elf_symbol_refs_local_p to decide whether to decay
2489 a GOT_PAGE/GOT_OFST pair to GOT_DISP/addend.
2490 (_bfd_mips_elf_check_relocs): Add a global GOT entry for GOT_PAGE
2491 relocs if the symbol wasn't defined by a regular object file.
2492 Don't check the symbol's dynindx.
2493
2494 2004-02-16 Andrew Cagney <cagney@redhat.com>
2495
2496 * bfd-in.h (file_ptr, ufile_ptr): Configure type using
2497 @bfd_file_ptr@.
2498 * bfd-in2.h: Re-generate.
2499
2500 2004-02-14 Andrew Cagney <cagney@redhat.com>
2501
2502 * configure.host (HDEFINES): When hppa*-*-hpux*, define
2503 _LARGEFILE64_SOURCE.
2504
2505 2004-02-13 Andrew Cagney <cagney@redhat.com>
2506
2507 * elf.c (vma_page_aligned_bias): New function.
2508 (assign_file_positions_except_relocs)
2509 (assign_file_positions_for_segments): Replace broken modulo
2510 arithmetic with call to vma_page_aligned_bias.
2511
2512 2004-02-11 Andrew Cagney <cagney@redhat.com>
2513
2514 * bfd-in.h: Update copyright.
2515 (bfd_tell): Change return type to file_ptr.
2516 * bfd-in2.h: Re-generate.
2517 * cache.c: Update copyright.
2518 (bfd_cache_lookup_worker): Use real_fseek, do not cast offset
2519 parameter.
2520 (close_one): Use real_ftell.
2521 * bfdio.c: Update copyright.
2522 (real_ftell, real_fseek): New functions.
2523 (bfd_tell): Use real_fseek and real_ftell, change return type to
2524 file_ptr.
2525 (bfd_seek): Use real_ftell and real_fseek, change type of
2526 file_position to a file_ptr.
2527 * libbfd-in.h: Update copyright.
2528 (real_ftell, real_fseek): Declare.
2529 * libbfd.h: Re-generate.
2530
2531 * configure.in (AC_CHECK_FUNCS): Check for ftello, ftello64,
2532 fseeko and fseeko64. Determine bfd_file_ptr.
2533 * configure: Re-generate.
2534 * config.in: Re-generate.
2535
2536 2004-02-09 Anil Paranjpe <anilp1@KPITCummins.com>
2537
2538 * coff-h8300.c: Added comments about relaxation for ldc.w and stc.w.
2539 * elf32-h8300.c: Likewise.
2540
2541 2004-02-09 Christian Vogel <vogelchr@vogel.cx>
2542 Nick Clifton <nickc@redhat.com>
2543
2544 * elf64-alpha.c (elf64_alpha_calc_got_offsets_for_symbol): Catch
2545 GOT entries with no associated GOT subsection.
2546
2547 2004-02-09 Richard Sandiford <rsandifo@redhat.com>
2548
2549 * bfd-elf.h (elf_backend_name_local_section_symbols): New hook.
2550 * elf.c (swap_out_syms): Use it to decide whether local section
2551 symbols should be named.
2552 * elfxx-target.h (elf_backend_name_local_section_symbols): New macro.
2553 * elfxx-mips.h (_bfd_mips_elf_name_local_section_symbols): Declare.
2554 (elf_backend_name_local_section_symbols): Define.
2555 * elfxx-mips.c (_bfd_mips_elf_name_local_section_symbols): New.
2556
2557 2004-01-30 H.J. Lu <hongjiu.lu@intel.com>
2558
2559 * elfxx-ia64.c (elfNN_ia64_relax_brl): New function.
2560 (elfNN_ia64_relax_section): Optimize brl to br during the relax
2561 finalize pass.
2562
2563 2004-01-30 Alexandre Oliva <aoliva@redhat.com>
2564
2565 * elf32-frv.c (elf32_frv_always_size_sections): Initialize pointer
2566 to bfd_link_hash_entry passed by reference to
2567 _bfd_generic_link_add_one_symbol.
2568
2569 2004-01-25 H.J. Lu <hongjiu.lu@intel.com>
2570
2571 * elfxx-ia64.c (elfNN_ia64_relocate_section): Disallow imm
2572 relocations against dynamic symbols.
2573
2574 2004-01-23 Daniel Jacobowitz <drow@mvista.com>
2575
2576 * elf32-arm.h (elf32_arm_check_relocs): Revert part of 2004-01-13
2577 change.
2578
2579 2004-01-21 Tom Rix <tcrix@worldnet.att.net>
2580
2581 * reloc.c: New 5 bit reloc, BFD_RELOC_M68HC12_5B, for m68hc12 movb/movw.
2582 * bfd-in2.h, libbfd.h: Rebuilt.
2583
2584 2004-01-20 Danny Smith <dannysmith@users.sourceforge.net>
2585
2586 * peXXigen.c (_bfd_XXi_swap_scnhdr_out): Don't remove
2587 IMAGE_SCN_MEM_WRITE flag from .text section if WP_TEXT
2588 flag has been cleared.
2589
2590 2004-01-19 Kazu Hirata <kazu@cs.umass.edu>
2591
2592 * coff-h8300.c: Add and adjust comments about relaxation.
2593 * elf32-h8300.c: Likewise.
2594
2595 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
2596
2597 * coff-h8300.c: Fix comment typos.
2598 * elf32-h8300.c: Likewise.
2599
2600 2004-01-16 Kazu Hirata <kazu@cs.umass.edu>
2601
2602 * coff-h8300.c: Add comments about relaxation.
2603 * elf32-h8300.c: Likewise.
2604
2605 2004-01-14 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2606
2607 * acinclude.m4: Quote names of macros to be defined by AC_DEFUN
2608 throughout.
2609 * aclocal.m4: Regenerate.
2610 * configure: Regenerate.
2611
2612 2004-01-13 Ian Lance Taylor <ian@wasabisystems.com>
2613
2614 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Call
2615 mips_elf64_rtype_to_howto instead of using howto_table.
2616
2617 2004-01-13 Daniel Jacobowitz <drow@mvista.com>
2618
2619 * elf32-arm.h (elf32_arm_final_link_relocate): Check that we created
2620 the .plt section.
2621 (elf32_arm_check_relocs): Don't increment the PLT refcount for
2622 relocs which would not use the PLT.
2623
2624 2004-01-13 Alan Modra <amodra@bigpond.net.au>
2625
2626 * elf64-ppc.c (ppc64_elf_check_relocs): Ignore !SEC_ALLOC relocs.
2627 (ppc64_elf_gc_sweep_hook): Likewise.
2628 (ppc64_elf_size_dynamic_sections): Test for .plt directly.
2629
2630 2004-01-12 Anil Paranjpe <anilp1@KPITCummins.com>
2631
2632 Adds linker relaxation support for bit manipulation insns like
2633 band, bclr, biand, bild, bior, bist, bixor, bld, bnot, bor, bset,
2634 bst, btst, bxor.
2635 * elf32-h8300.c: Opcode for bit manipulation insn is checked in
2636 elf32_h8_relax_section function while relxation for aa:16 and aa:32.
2637 * coff-h8300.c: Opcode for bit manipulation insn is checked in
2638 h8300_reloc16_extra_cases function while relxation for aa:16 and aa:32.
2639
2640 2004-01-12 Alan Modra <amodra@bigpond.net.au>
2641
2642 * dwarf2.c: Convert to C90, remove unneeded casts and prototypes.
2643
2644 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
2645
2646 * elf32-h8300.c: Fix formatting.
2647
2648 2004-01-11 Kazu Hirata <kazu@cs.umass.edu>
2649
2650 * elf32-cris.c (cris_elf_gc_sweep_hook): Return early if no
2651 dynamic object is present. Declare r_symndx and h in an inner
2652 scope.
2653 * elf32-vax.c (elf_vax_gc_sweep_hook): Likewise.
2654
2655 2004-01-09 Daniel Jacobowitz <drow@mvista.com>
2656
2657 * elf32-arm.h (struct elf32_arm_relocs_copied): Remove pc_count.
2658 (elf32_arm_copy_indirect_symbol): Don't copy pc_count.
2659 (elf32_arm_final_link_relocate): Handle PLT32 and PC24 relocs
2660 identically. Do not emit PC24 relocations for shared libraries.
2661 (elf32_arm_gc_sweep_hook): Handle PLT32 and PC24 relocs
2662 identically. Don't adjust pc_count.
2663 (elf32_arm_check_relocs): Handle PLT32 and PC24 relocs identically.
2664 Set ELF_LINK_HASH_NEEDS_PLT for both. Don't adjust pc_count; don't
2665 adjust count for branch relocations.
2666 (allocate_dynrelocs): Correct typo in call to
2667 WILL_CALL_FINISH_DYNAMIC_SYMBOL. Never allocate space for
2668 PC24 or PLT32 relocs when linking.
2669
2670 2004-01-09 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2671
2672 * coff-arm.c (aoutarm_std_reloc_howto): [ARM_WINCE] Synchronize ARM_26D
2673 relocation howto with ARM_26 one for consistency.
2674 (coff_arm_relocate_section): Set partial_inplace for ARM_26 relocations
2675 that will be converted to ARM_26D ones, since we always want 'done'
2676 relocations to be reflected in section's data.
2677 (coff_arm_relocate_section): [ARM_WINCE] Quick fix for BL instruction
2678 offset.
2679 (_bfd_final_link_relocate): Do not modify "inplace" data, if not
2680 requested.
2681
2682 2004-01-08 Dmitry Semyonov <Dmitry.Semyonov@oktet.ru>
2683
2684 * coff-arm.c (coff_arm_relocate_section): Do not alter relocs that
2685 are not partial_inplace during a relocatable link.
2686
2687 2004-01-08 Kazu Hirata <kazu@cs.umass.edu>
2688
2689 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return early
2690 if no dynamic object is present. Declare r_symndx and h in an
2691 inner scope.
2692
2693 2004-01-07 H.J. Lu <hongjiu.lu@intel.com>
2694
2695 * elfxx-ia64.c (elfNN_ia64_relax_section): Don't install
2696 trampoline if it is known out of range.
2697
2698 2004-01-06 Alexandre Oliva <aoliva@redhat.com>
2699
2700 2003-12-17 Alexandre Oliva <aoliva@redhat.com>
2701 * elf32-frv.c (_frv_osec_readonly_p): New.
2702 (_frv_emit_got_relocs_plt_entries): Don't emit rofixup for
2703 undefweak symbol.
2704 (_frv_count_got_plt_entries): Adjust expected count accordingly.
2705 (elf32_frv_relocate_section): Likewise. Error out if attempting
2706 to emit rofixups or dynamic relocs in read-only segments. Use
2707 _bfd_elf_section_offset to adjust r_offsets in rofixups and
2708 dynamic relocations.
2709 2003-12-12 Alexandre Oliva <aoliva@redhat.com>
2710 * elf32-frv.c (elf32_frv_relocate_section): Compute dynamic
2711 relocations or fixups involving merged sections correctly. Avoid
2712 crash when undefined symbol is referenced by R_FRV_32 or
2713 R_FRV_FUNCDESC_VALUE.
2714 2003-12-02 Alexandre Oliva <aoliva@redhat.com>
2715 * elf32-frv.c (elf32_frv_relocate_section): Add output_offset of
2716 input section holding local symbol to addend of R_FRV_32 or
2717 R_FRV_FUNCDESC_VALUE dynamic relocation.
2718 2003-11-27 Alexandre Oliva <aoliva@redhat.com>
2719 * elf32-frv.c (elf32_frv_modify_segment_map): Add link info arg.
2720 (elf32_frv_always_size_sections): Don't store pointer to
2721 __stacksize symbol in sec_info.
2722 (elf32_frv_modify_segment_map): Look it up here.
2723 2003-11-26 Alexandre Oliva <aoliva@redhat.com>
2724 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Emit the address
2725 of the lazy PLT entry, not only its offset, as the low word of a
2726 function descriptor.
2727 2003-11-10 Alexandre Oliva <aoliva@redhat.com>
2728 * elf32-frv.c (elf32_frv_always_size_sections): Define __stacksize
2729 if a hash table entry already exists but is not a definition.
2730 2003-11-05 Alexandre Oliva <aoliva@redhat.com>
2731 * elf32-frv.c (frv_elf_link_hash_table_create): Use bfd_zalloc.
2732 (_frv_add_rofixup): Don't inline.
2733 (_frv_emit_got_relocs_plt_entries): Use NULL as funcdesc address
2734 for undefweak symbols.
2735 (elf32_frv_relocate_section): Avoid crash while computing
2736 relocation when linking with shared library. Only emit rofixups
2737 and dynamic relocations for alloc&load sections. Mark binaries
2738 with inter-segment relocations for relocation as a unit.
2739 (_frv_create_got_section): Rename .rofixup.got to .rofixup.
2740 (DEFAULT_STACK_SIZE): New.
2741 (_frv_count_got_plt_entries): Fix thinko in deciding whether to
2742 emit rofixups or dynamic relocs when linking dynamic non-PIE
2743 executables.
2744 (elf32_frv_size_dynamic_sections): Generate rofixup on PIEs and
2745 shared libs too. Reserve the last entry for the GOT pointer.
2746 (elf32_frv_finish_dynamic_sections): Emit it.
2747 (elf32_frv_always_size_sections): New.
2748 (elf32_frv_modify_segment_map): New.
2749 (elf32_frv_check_relocs): Reserve relocs32 space only in ALLOC
2750 sections.
2751 (frv_elf_merge_private_bfd_data): Clear PIC bit if FDPIC is set.
2752 (frv_elf_print_private_bfd_data): Handle FDPIC and LIBPIC.
2753 (elf_backend_always_size_sections): New.
2754 (elf_backend_modify_segment_map): New.
2755 2003-10-31 Alexandre Oliva <aoliva@redhat.com>
2756 * config.bfd: Added frv-*-*linux*.
2757 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Use idx 0 for
2758 ABS section, instead of crashing.
2759 (elf32_frv_relocate_section): Don't crash before warning about
2760 different segments in non-PIC relocation.
2761 2003-10-17 Alexandre Oliva <aoliva@redhat.com>
2762 * elf32-frv.c (elf32_frv_relocate_section): Don't warn on LABEL24
2763 relocs to undefweak symbols.
2764 (elf32_frv_relocate_section): Ditto for undefined symbols.
2765 2003-10-06 Alexandre Oliva <aoliva@redhat.com>
2766 * elf32-frv.c (elf32_frv_create_dynamic_sections): Make sure
2767 gotfixup section was created.
2768 2003-09-30 Alexandre Oliva <aoliva@redhat.com>
2769 * elf32-frv.c (elf32_frv_howto_table): Change GOT12,
2770 FUNCDESC_GOT12, GOTOFF12 and FUNCDESC_GOTOFF12 to
2771 complain_overflow_signed.
2772 * elf32-frv.c (_frv_add_rofixup): Do not error out if contents
2773 have not been allocated.
2774 (_frv_emit_got_relocs_plt_entries): Return non-void. Assert
2775 privfd only if dynamic sections were created.
2776 (elf32_frv_relocate_section): Compute gprel_segment, and use it
2777 for GPREL relocs. When linking relocatable FDPIC executables,
2778 emit warnings for relocations that would be illegal on PIE or
2779 shared libraries. Emit rofixup for R_FRV_32 only if input object
2780 is not FDPIC.
2781 (_frv_create_got_section): Define _gp symbol in the rofixup
2782 section.
2783 (elf32_frv_finish_dynamic_sections): If rofixups needed but
2784 dynamic sections missing, error out requesting -melf32frvfd.
2785 2003-09-19 Alexandre Oliva <aoliva@redhat.com>
2786 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Rearrange
2787 computation of addends from section and global or local symbol
2788 value. Change return type to bfd_boolean, and return a failure if
2789 a dynamic FUNCDESC or FUNCDESC_VALUE relocation that requires a
2790 nonzero addend is required.
2791 (elf32_frv_relocate_section): Likewise. Print error for
2792 unsupported nonzero addends.
2793 2003-09-18 Alexandre Oliva <aoliva@redhat.com>
2794 * elf32-frv.c (FRV_SYM_LOCAL): In the absence of dynamic sections,
2795 force everything local.
2796 (_frv_emit_got_relocs_plt_entries): Cope with NULL sec.
2797 * elf32-frv.c (struct frv_elf_link_hash_table): Added sgotfixup.
2798 (frv_gotfixup_section): New.
2799 (FRV_SYM_LOCAL): Accept undefweak and local common symbols.
2800 (struct frv_pic_relocs_info): Split relocs into relocs32, relocsfd
2801 and relocsfdv.
2802 (_frv_add_rofixup): New.
2803 (_frv_emit_got_relocs_plt_entries): Generate fixups for non-PIE
2804 fdpic executables. Use FRV_SYM_LOCAL more widely to simplify and
2805 improve some ugly conditions.
2806 (elf32_frv_relocate_section): Likewise. Reject inter-segment
2807 relocations in fdpic.
2808 (_frv_create_got_section): Create .rofixup.got section.
2809 (struct _frv_dynamic_got_info): Added fixups.
2810 (_frv_count_got_plt_entries): Account in-GOT relocations into
2811 relocs32, relocsfd and relocsfdv. Account them into relocs or
2812 fixups, as appropriate.
2813 (elf32_frv_size_dynamic_sections): Size rofixup section. Simplify
2814 sizing of gotrel.
2815 (elf32_frv_finish_dynamic_sections): Verify that the right number
2816 of relocations and fixups was generated.
2817 (elf32_frv_check_relocs): Compute relocs32, relocsfd and
2818 relocsfdv.
2819 * elf32-frv.c (FRV_SYM_LOCAL): New macro, used instead of
2820 SYMBOL_CALLS_LOCAL and SYMBOL_REFERENCES_LOCAL.
2821 (FRV_FUNCDESC_LOCAL): New macro, used to decide whether a function
2822 descriptor of a (formerly-)global symbol is local.
2823 (struct frv_pic_relocs_info): Adjust comments.
2824 (_frv_emit_got_relocs_plt_entries): Adjust.
2825 (elf32_frv_relocate_section): Likewise.
2826 (_frv_count_got_plt_entries): Likewise.
2827 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Don't add global
2828 symbol's value to addend in the common preamble. Decay dynamic
2829 symbols to section+offset if they bind or call locally, for GOT
2830 and FUNCDESC_VALUE, respectively.
2831 (elf32_frv_relocate_section): Likewise.
2832 (elf32_frv_check_relocs): Don't register as dynamic symbols of
2833 internal or hidden visibility.
2834 2003-09-17 Alexandre Oliva <aoliva@redhat.com>
2835 * elf32-frv.c (_frv_emit_got_relocs_plt_entries): Get addend as
2836 argument, so as to not call _bfd_elf_rel_local_sym to compute it.
2837 (elf32_frv_relocate_section): Pass relocation addend in. Use
2838 original relocation addend to look up the got relocs/plt entries
2839 table. Do not call _bfd_elf_rel_local_sym. Don't error out when
2840 processing relocations that reference .scommon symbols.
2841 2003-09-15 Alexandre Oliva <aoliva@redhat.com>
2842 Introduce support for dynamic linking.
2843 * elf32-frv.c (R_FRV_FUNCDESC_VALUE): Mark it as 64 bits.
2844 (elf32_frv_rel_32_howto, elf32_frv_rel_funcdesc_howto,
2845 elf32_frv_rel_funcdesc_value_howto): New REL descriptors.
2846 (frv_reloc_type_lookup): Return REL howtos for executables and
2847 dynamic libraries.
2848 (frv_info_to_howto_rel): New.
2849 (struct frv_elf_link_hash_table): New.
2850 (frv_hash_table, frv_got_section, frv_gotrel_section,
2851 frv_plt_section, frv_pltrel_section, frv_relocs_info,
2852 frv_got_initial_offset, frv_plt_initial_offset): New macros.
2853 (frv_elf_link_hash_table_create): New.
2854 (struct frv_pic_relocs_info): New.
2855 (frv_pic_relocs_info_hash, frv_pic_relocs_info_eq): New.
2856 (frv_pic_relocs_info_find): New.
2857 (frv_pic_relocs_info_for_global, frv_pic_relocs_info_for_local):
2858 New.
2859 (FRV_LZPLT_BLOCK_SIZE, FRV_LZPLT_RESOLVE_LOC): New.
2860 (_frv_add_dyn_reloc, _frv_osec_to_segment): New.
2861 (_frv_emit_got_relocs_plt_entries): New.
2862 (elf32_frv_relocate_section): Add support for dynamic linking.
2863 Handle new relocations.
2864 (_frv_create_got_section): New.
2865 (elf32_frv_create_dynamic_sections): New.
2866 (ELF_DYNAMIC_INTERPRETER): New.
2867 (struct _frv_dynamic_got_info): New.
2868 (_frv_count_got_plt_entries): New.
2869 (struct _frv_dynamic_got_plt_info): New.
2870 (_frv_compute_got_alloc_data): New.
2871 (_frv_get_got_entry, _frv_get_fd_entry): New.
2872 (_frv_assign_got_entries, _frv_assign_plt_entries): New.
2873 (_frv_resolve_final_relocs_info): New.
2874 (elf32_frv_size_dynamic_sections): New.
2875 (elf32_frv_finish_dynamic_sections): New.
2876 (elf32_frv_adjust_dynamic_symbol): New.
2877 (elf32_frv_finish_dynamic_symbol): New.
2878 (elf32_frv_check_relocs): Handle new relocs. Explain how the
2879 whole thing works.
2880 (elf_info_to_howto_rel): Define.
2881 (bfd_elf32_bfd_link_hash_table_create): Define.
2882 (elf_backend_create_dynamic_sections): Define.
2883 (elf_backend_adjust_dynamic_symbol): Define.
2884 (elf_backend_size_dynamic_sections): Define.
2885 (elf_backend_finish_dynamic_symbol): Define.
2886 (elf_backend_finish_dynamic_sections): Define.
2887 (elf_backend_want_got_sym): Define.
2888 (elf_backend_got_header_size): Define.
2889 (elf_backend_want_got_plt): Define.
2890 (elf_backend_plt_readonly): Define.
2891 (elf_backend_want_plt_sym): Define.
2892 (elf_backend_plt_header_size): Define.
2893 (elf_backend_may_use_rel_p): Define.
2894 (elf_backend_may_use_rela_p): Define.
2895 (elf_backend_default_use_rela_p): Define.
2896 2003-08-08 Alexandre Oliva <aoliva@redhat.com>
2897 * elf32-frv.c (R_FRV_FUNCDESC_VALUE, R_FRV_FUNCDESC_GOTOFF12,
2898 R_FRV_FUNCDESC_GOTOFFHI, R_FRV_FUNCDESC_GOTOFFLO, R_FRV_GOTOFF12,
2899 R_FRV_GOTOFFHI, R_FRV_GOTOFFLO): New.
2900 (frv_reloc_map): Map the corresponding BFD relocs to them.
2901 (frv_reloc_type_lookup): ... and back to BFD relocs.
2902 * reloc.c: New relocs.
2903 * bfd-in2.h, libbfd.h: Rebuilt.
2904 2003-08-04 Alexandre Oliva <aoliva@redhat.com>
2905 * elf32-frv.c (R_FRV_GOT12, R_FRV_GOTHI, R_FRV_GOTLO,
2906 R_FRV_FUNCDESC, R_FRV_FUNCDESC_GOT12, R_FRV_FUNCDESC_GOTHI,
2907 R_FRV_FUNCDESC_GOTLO): New.
2908 (frv_reloc_map): Map the corresponding BFD relocs to them.
2909 (frv_reloc_type_lookup): ... and back to BFD relocs.
2910 * reloc.c: New relocs.
2911 * bfd-in2.h, libbfd.h: Rebuilt.
2912
2913 2004-01-05 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
2914
2915 * elf32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
2916 targets to support pages of up to 64kB.
2917 (elf32_bed): Redefine to get a separate backend data structure for
2918 traditional targets.
2919 * elf64-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
2920 targets to support pages of up to 64kB.
2921 (elf64_bed): Redefine to get a separate backend data structure for
2922 traditional targets.
2923 * elfn32-mips.c (ELF_MAXPAGESIZE): Redefine for traditional
2924 targets to support pages of up to 64kB.
2925 (elf32_bed): Redefine to get a separate backend data structure for
2926 traditional targets.
2927
2928 2004-01-04 Mark Kettenis <kettenis@gnu.org>
2929
2930 * elf32-sparc.c (elf32_sparc_grok_psinfo): New function.
2931
2932 2004-01-02 Mark Kettenis <kettenis@gnu.org>
2933
2934 * elf32-i386.c (elf_i386_grok_prstatus): Add support for FreeBSD.
2935 (elf_i386_grok_psinfo): Likewise.
2936
2937 2004-01-02 Bernardo Innocenti <bernie@develer.com>
2938
2939 * config.bfd: Add m68k-uClinux target.
2940
2941 2004-01-01 Grant Edwards <grante@visi.com>
2942
2943 * elflink.h (elf_gc_sections): Warn when gc-sections option is ignored.
2944 * elf32-h8300.c (elf32_h8_gc_mark_hook): New function.
2945 (elf32_h8_gc_sweep_hook): New function.
2946 (elf_backend_gc_mark_hook): Define.
2947 (elf_backend_gc_sweep_hook): Define.
2948 (elf_backend_can_gc_sections): Define.
2949
2950 For older changes see ChangeLog-0203
2951 \f
2952 Local Variables:
2953 mode: change-log
2954 left-margin: 8
2955 fill-column: 74
2956 version-control: never
2957 End:
This page took 0.087097 seconds and 3 git commands to generate.