1 2001-09-29 Alan Modra <amodra@bigpond.net.au>
3 * som.c (som_write_symbol_strings): Cast current_offset in
4 bfd_seek call to match param type.
6 2001-09-28 J. Brobecker <brobecker@gnat.com>
8 * som.c (som_write_symbol_strings): Fix incorrect type of
9 current_offset to match the function definition. Fixes a build
10 failure on HPUX-11.00.
12 2001-09-28 Richard Henderson <rth@redhat.com>
14 * elfxx-target.h [section_flags]: Add SEC_ARCH_BIT_0, SEC_SMALL_DATA,
15 SEC_MERGE, SEC_STRINGS.
17 * section.c (SEC_ARCH_BIT_0): New; replace unused SEC_BALIGN.
20 2001-09-28 Alan Modra <amodra@bigpond.net.au>
22 * elf64-x86-64.c (elf64_x86_64_reloc_type_lookup): Don't map bfd
23 reloc code using x86_64_reloc_map.
25 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
26 no longer allocate here. Localise some vars to blocks where they
28 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
29 setting of vars until needed.
30 (allocate_dynrelocs): Don't create a .plt entry without a reloc
31 when symbol visibilty makes a function local.
32 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
33 swap_reloca_out function calls.
34 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
35 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
38 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
39 no longer allocate here. Localise some vars to blocks where they
40 are used. Remove separate switch stmt for creating .got sec.
41 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
42 redundant casts and aborts. Delay setting of vars until needed.
43 (allocate_dynrelocs): Remove redundant casts and aborts.
44 (elf_i386_size_dynamic_sections): Move comment.
45 (elf_i386_finish_dynamic_symbol): Move expressions out of function
47 (elf_i386_relocate_section): Likewise. Comment typo fix.
48 (elf_i386_finish_dynamic_sections): Migrate common code out of
50 (elf_backend_* defines): Sort.
52 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
53 without a reloc when symbol visibilty makes a function local.
55 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
57 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
58 conflicting float flags.
60 2001-09-26 Alan Modra <amodra@bigpond.net.au>
62 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
63 (elf_backend_copy_indirect_symbol): Define.
64 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
65 (struct elf_i386_link_hash_table): Likewise.
66 (link_hash_newfunc): Get rid of unnecessary casts.
67 (elf_i386_link_hash_table_create): Likewise.
68 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
69 Don't test input section SEC_READONLY here to try to avoid copy
70 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
71 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
72 here to properly test whether we need copy relocs. Do so for weak
75 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
76 (elf_backend_copy_indirect_symbol): Define.
77 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
78 (stub_hash_newfunc): Get rid of unnecessary casts.
79 (hppa_link_hash_newfunc): Likewise.
80 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
81 Don't test input section SEC_READONLY here to try to avoid copy
82 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
83 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
84 here to properly test whether we need copy relocs. Do so for weak
87 2001-09-26 Alan Modra <amodra@bigpond.net.au>
89 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
90 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
91 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
93 2001-09-25 Jakub Jelinek <jakub@redhat.com>
95 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
98 2001-09-25 H.J. Lu <hjl@gnu.org>
100 * bfd-in2.h: Regenerated.
102 2001-09-25 Alan Modra <amodra@bigpond.net.au>
104 * elf32-i386.c: Add comment re linker function names and ordering.
105 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
106 (elf_i386_grok_prstatus): Move before linker functions.
107 (elf_i386_grok_psinfo): Likewise.
108 (elf_i386_fake_sections): Move so that functions are ordered.
109 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
111 2001-09-25 Alan Modra <amodra@bigpond.net.au>
113 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
116 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
117 code handling this option.
118 (LONG_BRANCH_VIA_PLT): Likewise.
119 (RELATIVE_DYNRELOCS): Define as zero.
120 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
121 "pc_count" fields. Remove "section" field.
122 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
123 (elf32_hppa_check_relocs): Don't allocate space for dynamic
124 relocs here. Instead, record all needed dynamic relocs via
125 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
127 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
128 (allocate_plt_and_got_and_discard_relocs): Rename to
129 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
130 (readonly_dynrelocs): New function.
131 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
132 Call readonly_dynrelocs to determine need for DT_TEXTREL.
133 Rename "i" to "ibfd". Allocate space for local dyn relocs.
134 (elf32_hppa_relocate_section): Make use of cached sreloc.
135 (elf32_hppa_reloc_type_class): New function.
136 (elf_backend_reloc_type_class): Define.
138 2001-09-25 Alan Modra <amodra@bigpond.net.au>
140 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
142 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
143 "pc_count" fields. Remove "section" field.
144 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
145 allocate space for dynamic relocs here. Instead, record all
146 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
147 pointer to "sreloc" section in elf_section_data.
148 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
149 (allocate_plt_and_got_and_discard_relocs): Rename to
150 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
151 (readonly_dynrelocs): New function.
152 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
153 Rename "i" to "ibfd". Allocate space for local dyn relocs.
154 (elf_i386_relocate_section): Make use of cached sreloc.
156 2001-09-24 Alan Modra <amodra@bigpond.net.au>
158 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
159 reloc rather than just the type.
160 (_bfd_elf_reloc_type_class): Likewise.
161 * elf.c (_bfd_elf_reloc_type_class): Likewise.
162 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
163 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
164 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
165 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
166 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
167 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
168 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
169 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
170 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
171 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
172 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
173 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
174 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
175 * elflink.h: Formatting fixes.
176 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
177 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
178 o->contents to PTR. Update call to elf_backend_reloc_type_class.
180 2001-09-22 John Reiser <jreiser@BitWagon.com>
182 * elfcode.h (elf_object_p): Allow for no section header at all in
183 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
185 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
187 * elfxx-ia64.c: Fix compile time warning messages.
188 * coff-mcore.c: Fix compile time warning messages.
189 * coff-ppc.c: Fix compile time warning messages.
190 * coffcode.h: Fix compile time warning messages.
191 * elf32-mips.c: Fix compile time warning messages.
192 * elf64-alpha.c: Fix compile time warning messages.
193 * libbfd.c: Fix compile time warning messages.
194 * bfd-in2.h: Regenerate.
196 2001-09-21 Alan Modra <amodra@bigpond.net.au>
198 * Makefile.am: Run "make dep-am".
199 * Makefile.in: Regenerate.
201 * aoutx.h: Formatting fixes.
202 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
204 * linker.c: Replace bfd_get_filename with bfd_archive_filename
207 2001-09-21 Alan Modra <amodra@bigpond.net.au>
209 * bfd.c (bfd_archive_filename): New function.
210 * bfd-in2.h: Regenerate.
211 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
212 in error messages where the bfd is an input bfd.
213 * aout-cris.c: Likewise.
214 * coff-arm.c: Likewise.
215 * coff-mcore.c: Likewise.
216 * coff-ppc.c: Likewise.
217 * coff-rs6000.c: Likewise.
218 * coff-sh.c: Likewise.
219 * coff-tic54x.c: Likewise.
220 * coff-tic80.c: Likewise.
221 * coff64-rs6000.c: Likewise.
222 * coffcode.h: Likewise.
223 * coffgen.c: Likewise.
224 * cofflink.c: Likewise.
225 * ecofflink.c: Likewise.
226 * elf-hppa.h: Likewise.
228 * elf32-arm.h: Likewise.
229 * elf32-cris.c: Likewise.
230 * elf32-gen.c: Likewise.
231 * elf32-hppa.c: Likewise.
232 * elf32-i370.c: Likewise.
233 * elf32-i386.c: Likewise.
234 * elf32-m32r.c: Likewise.
235 * elf32-mcore.c: Likewise.
236 * elf32-mips.c: Likewise.
237 * elf32-ppc.c: Likewise.
238 * elf32-s390.c: Likewise.
239 * elf32-sh.c: Likewise.
240 * elf32-sparc.c: Likewise.
241 * elf32-v850.c: Likewise.
242 * elf64-alpha.c: Likewise.
243 * elf64-gen.c: Likewise.
244 * elf64-ppc.c: Likewise.
245 * elf64-s390.c: Likewise.
246 * elf64-sparc.c: Likewise.
247 * elf64-x86-64.c: Likewise.
248 * elflink.h: Likewise.
249 * elfxx-ia64.c: Likewise.
252 * libbfd.c: Likewise.
254 * pe-mips.c: Likewise.
255 * peicode.h: Likewise.
257 * xcofflink.c: Likewise.
259 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
261 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
264 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
267 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
268 Consolidate error messages, and split long messages to two lines.
270 2001-09-20 John Reiser <jreiser@BitWagon.com>
272 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
273 and info->allow_shlib_undefined.
274 * elf32-cris.c: Likewise.
275 * elf32-hppa.c: Likewise.
276 * elf32-m68k.c: Likewise.
277 * elf32-mips.c: Likewise.
278 * elf32-ppc.c: Likewise.
279 * elf32-s390.c: Likewise.
280 * elf32-sh.c: Likewise.
281 * elf32-sparc.c: Likewise.
282 * elf64-alpha.c: Likewise.
283 * elf64-hppa.c: Likewise.
284 * elf64-ppc.c: Likewise.
285 * elf64-s390.c: Likewise.
286 * elf64-sparc.c: Likewise.
287 * elf64-x86-64.c: Likewise.
288 * elfxx-ia64.c: Likewise.
290 2001-09-18 Bruno Haible <haible@clisp.cons.org>
292 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
293 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
294 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
295 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
296 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
297 (bfd_default_scan): Use ISDIGIT instead of isdigit.
298 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
299 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
300 isxdigit/isdigit/islower.
301 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
302 (mangle_name): Use ISALNUM instead of isalnum.
303 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
304 (scan): Use ISDIGIT instead of isdigit.
305 * hosts/alphavms.h: Don't include <ctype.h>.
306 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
307 (ieee_object_p): Use TOUPPER instead of toupper.
308 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
309 (ihex_bad_byte): Use ISPRINT instead of isprint.
310 * merge.c: Don't include <ctype.h>.
311 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
312 (oasys_write_sections): Use ISDIGIT instead of isdigit.
313 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
314 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
315 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
316 (mangle_name): Use ISALNUM instead of isalnum.
317 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
318 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
319 isupper/islower/isdigit.
320 (som_decode_symclass): Use TOUPPER instead of toupper.
321 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
322 (srec_bad_byte): Use ISPRINT instead of isprint.
323 (srec_scan): Use ISSPACE instead of isspace.
324 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
325 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
326 * syms.c: Include "safe-ctype.h"
327 (islower, toupper): Remove macro definitions.
328 (bfd_decode_symclass): Use TOUPPER instead of toupper.
329 * vms-gsd.c: Don't include <ctype.h>.
330 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
331 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
333 * vms-tir.c: Don't include <ctype.h>.
335 2001-09-18 Alan Modra <amodra@bigpond.net.au>
337 * libbfd.c (bfd_bread): New function replacing bfd_read without
338 redundant params. Allow reads up to (size_t) -2 in length.
339 (bfd_bwrite): Similarly for bfd_write.
340 (real_read): Return a size_t.
341 (bfd_read): Call bfd_bread.
342 (bfd_write): Call bfd_bwrite.
343 (warn_deprecated): New function to annoy everybody.
344 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
345 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
346 (bfd_read, bfd_write): Define as macro.
347 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
348 likewise for bfd_write. Ensure function args are correct size by
349 using casts or local vars. In some cases, remove unnecessary
350 casts. Formatting fixes, in some cases removing a large expression
351 from function args by using a local var. Replace CONST with const.
352 Modify variable types to avoid warings. Use casts to avoid
353 warnings when using negative numbers in unsigned expressions.
354 * aout-adobe.c: Likewise.
355 * aout-arm.c: Likewise.
356 * aout-cris.c: Likewise.
357 * aout-encap.c: Likewise.
358 * aout-ns32k.c: Likewise.
359 * aout-target.h: Likewise.
360 * aout-tic30.c: Likewise.
361 * aoutf1.h: Likewise.
363 * archive.c: Likewise.
364 * archures.c: Likewise.
365 * bfd-in.h: Likewise.
367 * binary.c: Likewise.
370 * cisco-core.c: Likewise.
371 * coff-a29k.c: Likewise.
372 * coff-alpha.c: Likewise.
373 * coff-arm.c: Likewise.
374 * coff-h8300.c: Likewise.
375 * coff-h8500.c: Likewise.
376 * coff-i386.c: Likewise.
377 * coff-i860.c: Likewise.
378 * coff-i960.c: Likewise.
379 * coff-ia64.c: Likewise.
380 * coff-m68k.c: Likewise.
381 * coff-m88k.c: Likewise.
382 * coff-mcore.c: Likewise.
383 * coff-mips.c: Likewise.
384 * coff-ppc.c: Likewise.
385 * coff-rs6000.c: Likewise.
386 * coff-sh.c: Likewise.
387 * coff-sparc.c: Likewise.
388 * coff-stgo32.c: Likewise.
389 * coff-tic30.c: Likewise.
390 * coff-tic54x.c: Likewise.
391 * coff-tic80.c: Likewise.
392 * coff-w65.c: Likewise.
393 * coff-z8k.c: Likewise.
394 * coff64-rs6000.c: Likewise.
395 * coffcode.h: Likewise.
396 * coffgen.c: Likewise.
397 * cofflink.c: Likewise.
398 * coffswap.h: Likewise.
399 * corefile.c: Likewise.
400 * cpu-arc.c: Likewise.
401 * cpu-h8300.c: Likewise.
402 * cpu-h8500.c: Likewise.
403 * cpu-i960.c: Likewise.
404 * cpu-ia64-opc.c: Likewise.
405 * cpu-ns32k.c: Likewise.
406 * cpu-pdp11.c: Likewise.
407 * cpu-pj.c: Likewise.
408 * cpu-sh.c: Likewise.
409 * cpu-w65.c: Likewise.
410 * cpu-z8k.c: Likewise.
411 * dwarf1.c: Likewise.
412 * dwarf2.c: Likewise.
414 * ecofflink.c: Likewise.
415 * ecoffswap.h: Likewise.
416 * elf-bfd.h: Likewise.
417 * elf-hppa.h: Likewise.
418 * elf-m10200.c: Likewise.
419 * elf-m10300.c: Likewise.
421 * elf32-arc.c: Likewise.
422 * elf32-arm.h: Likewise.
423 * elf32-avr.c: Likewise.
424 * elf32-cris.c: Likewise.
425 * elf32-fr30.c: Likewise.
426 * elf32-gen.c: Likewise.
427 * elf32-h8300.c: Likewise.
428 * elf32-hppa.c: Likewise.
429 * elf32-i370.c: Likewise.
430 * elf32-i386.c: Likewise.
431 * elf32-i860.c: Likewise.
432 * elf32-m32r.c: Likewise.
433 * elf32-m68k.c: Likewise.
434 * elf32-mcore.c: Likewise.
435 * elf32-mips.c: Likewise.
436 * elf32-openrisc.c: Likewise.
437 * elf32-pj.c: Likewise.
438 * elf32-ppc.c: Likewise.
439 * elf32-s390.c: Likewise.
440 * elf32-sh-lin.c: Likewise.
441 * elf32-sh.c: Likewise.
442 * elf32-sparc.c: Likewise.
443 * elf32-v850.c: Likewise.
444 * elf64-alpha.c: Likewise.
445 * elf64-hppa.c: Likewise.
446 * elf64-mips.c: Likewise.
447 * elf64-ppc.c: Likewise.
448 * elf64-s390.c: Likewise.
449 * elf64-sparc.c: Likewise.
450 * elf64-x86-64.c: Likewise.
451 * elfarm-nabi.c: Likewise.
452 * elfcode.h: Likewise.
453 * elfcore.h: Likewise.
454 * elflink.c: Likewise.
455 * elflink.h: Likewise.
456 * elfxx-ia64.c: Likewise.
457 * elfxx-target.h: Likewise.
458 * format.c: Likewise.
460 * hp300hpux.c: Likewise.
461 * hppabsd-core.c: Likewise.
462 * hpux-core.c: Likewise.
463 * i386aout.c: Likewise.
464 * i386dynix.c: Likewise.
465 * i386linux.c: Likewise.
466 * i386lynx.c: Likewise.
467 * i386mach3.c: Likewise.
468 * i386msdos.c: Likewise.
469 * i386os9k.c: Likewise.
472 * irix-core.c: Likewise.
473 * libaout.h: Likewise.
474 * libbfd-in.h: Likewise.
475 * libbfd.c: Likewise.
476 * libcoff-in.h: Likewise.
477 * libecoff.h: Likewise.
478 * libieee.h: Likewise.
479 * libnlm.h: Likewise.
480 * libpei.h: Likewise.
481 * libxcoff.h: Likewise.
482 * linker.c: Likewise.
483 * lynx-core.c: Likewise.
484 * m68klinux.c: Likewise.
486 * mipsbsd.c: Likewise.
487 * netbsd-core.c: Likewise.
489 * nlm32-alpha.c: Likewise.
490 * nlm32-i386.c: Likewise.
491 * nlm32-ppc.c: Likewise.
492 * nlm32-sparc.c: Likewise.
493 * nlmcode.h: Likewise.
494 * nlmswap.h: Likewise.
497 * opncls.c: Likewise.
498 * osf-core.c: Likewise.
499 * pc532-mach.c: Likewise.
501 * pe-mips.c: Likewise.
502 * peXXigen.c: Likewise.
503 * peicode.h: Likewise.
504 * ppcboot.c: Likewise.
505 * ptrace-core.c: Likewise.
507 * reloc16.c: Likewise.
508 * riscix.c: Likewise.
509 * rs6000-core.c: Likewise.
510 * sco5-core.c: Likewise.
511 * section.c: Likewise.
513 * sparclinux.c: Likewise.
514 * sparclynx.c: Likewise.
519 * targets.c: Likewise.
520 * tekhex.c: Likewise.
521 * trad-core.c: Likewise.
522 * versados.c: Likewise.
523 * vms-gsd.c: Likewise.
524 * vms-hdr.c: Likewise.
525 * vms-misc.c: Likewise.
526 * vms-tir.c: Likewise.
529 * xcofflink.c: Likewise.
530 * bfd-in2.h: Regenerate.
531 * libbfd.h: Regenerate.
532 * libcoff.h: Regenerate.
534 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
535 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
537 (bfd_tell): Return a ufile_ptr.
538 * libbfd.c (bfd_tell): Likewise.
539 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
541 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
542 * aoutf1.h: Likewise.
544 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
545 larger than unsigned long can represent.
547 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
548 size overflows size_t.
549 (bfd_realloc): Likewise.
550 (bfd_zmalloc): Likewise.
551 * opncls.c (bfd_alloc): Likewise.
552 (bfd_zalloc): Likewise.
553 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
554 (bfd_alloc, bfd_zalloc): Update.
556 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
558 (bfd_get_signed_8): Likewise.
559 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
560 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
561 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
562 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
563 * libaout.h: Likewise define and use here.
564 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
565 * aout-arm.c: Likewise.
566 * aout-encap.c: Likewise.
567 * aout-ns32k.c: Likewise.
568 * aout-tic30.c: Likewise.
569 * aoutf1.h: Likewise.
572 * coff-alpha.c: Likewise.
573 * coff-h8300.c: Likewise.
574 * coff-h8500.c: Likewise.
575 * coff-i960.c: Likewise.
576 * coff-ia64.c: Likewise.
577 * coff-m88k.c: Likewise.
578 * coff-mips.c: Likewise.
579 * coff-ppc.c: Likewise.
580 * coff-rs6000.c: Likewise.
581 * coff-sh.c: Likewise.
582 * coff-sparc.c: Likewise.
583 * coff-stgo32.c: Likewise.
584 * coff-tic30.c: Likewise.
585 * coff-tic80.c: Likewise.
586 * coff-w65.c: Likewise.
587 * coff-z8k.c: Likewise.
588 * coff64-rs6000.c: Likewise.
589 * coffgen.c: Likewise.
590 * cofflink.c: Likewise.
591 * coffswap.h: Likewise.
593 * ecoffswap.h: Likewise.
595 * elf32-mips.c: Likewise.
596 * elf64-mips.c: Likewise.
597 * hp300hpux.c: Likewise.
598 * i386dynix.c: Likewise.
599 * i386lynx.c: Likewise.
600 * i386msdos.c: Likewise.
601 * i386os9k.c: Likewise.
602 * libpei.h: Likewise.
603 * nlm32-alpha.c: Likewise.
604 * nlm32-i386.c: Likewise.
605 * nlm32-ppc.c: Likewise.
606 * nlmcode.h: Likewise.
607 * nlmswap.h: Likewise.
610 * pe-mips.c: Likewise.
611 * peXXigen.c: Likewise.
612 * peicode.h: Likewise.
613 * riscix.c: Likewise.
615 * xcofflink.c: Likewise.
616 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
617 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
618 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
619 equivalent H_PUT_* macro instead.
620 (GETWORD, GETHALF, GETBYTE): Similarly.
621 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
622 (GETWORD, GETHALF, GETBYTE): Likewise.
623 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
625 * bfd-in.h (struct orl): Change "pos" to a union.
626 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
627 (bsd_write_armap): Here too.
628 (coff_write_armap): And here.
629 * coff-rs6000.c (xcoff_write_armap_old): And here.
630 (xcoff_write_one_armap_big): And here.
631 (xcoff_write_armap_big): And here.
632 * ecoff.c (_bfd_ecoff_write_armap): And here.
633 * elf64-mips.c (mips_elf64_write_armap): And here.
635 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
636 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
637 * elf32-h8300.c (elf32_h8_mach): Likewise.
638 * elf32-mips.c (elf_mips_mach): Likewise.
639 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
641 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
643 (aix386_core_vec): Typo fix.
645 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
646 etc. to avoid redefined macro warning.
647 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
648 (MY(fix_pcrel_26)): Likewise.
649 * aout-ns32k.c (MY(put_reloc)): Likewise.
650 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
651 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
652 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
654 * aout-encap.c: Include "file", not <file> for binutils headers.
655 (encap_object_p): Half baked attempt to fix compile errors in
656 code dealing with "magic".
658 * aout-ns32k.c: Include "file", not <file> for binutils headers.
659 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
660 bfd_vma's rather than longs.
661 * cpu-ns32k.c (ns32k_sign_extend): Delete.
662 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
663 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
665 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
666 Use unsigned comparisons.
667 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
668 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
669 (_bfd_do_ns32k_reloc_contents): Likewise.
670 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
671 (_bfd_ns32k_get_immediate): Likewise.
672 (_bfd_ns32k_put_displacement): Likewise.
673 (_bfd_ns32k_put_immediate): Likewise.
674 (bfd_reloc_status_type): Likewise.
676 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
678 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
679 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
680 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
682 (record_toc): Use a bfd_signed_vma for our_toc_offset.
683 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
684 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
686 (_bfd_elfcore_strndup): Likewise for "dup".
687 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
688 "name" to avoid shadowing.
689 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
691 * elf32-i386.c (elf_i386_relocate_section): Likewise.
692 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
694 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
696 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
698 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
700 (elf_link_input_bfd): Likewise.
701 (elf_bfd_final_link): Remove duplicate innermost "off" var.
702 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
703 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
705 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
706 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
707 (sunos_write_dynamic_symbol): Remove unused vars.
708 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
709 innermost "directory_name" and "file_name" vars.
710 * tekhex.c (first_phase): Rename local var "type" to "stype".
711 (tekhex_write_object_contents): Rename innermost "s" to "sym".
712 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
713 doing comparison at caller.
714 (vms_esecflag_by_name): Likewise.
715 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
716 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
717 (xcoff_write_global_symbol): Rename "p" param to "inf".
719 * cisco-core.c: Add missing prototypes.
720 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
721 (cisco_core_file_failing_signal): Likewise.
722 (cisco_core_file_matches_executable_p): Likewise.
723 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
724 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
725 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
726 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
728 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
729 thumb_glue_size and arm_glue_size.
730 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
732 * coff64-rs6000.c: Group prototypes together.
734 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
735 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
737 * cpu-arc.c: Add missing prototypes.
738 * cpu-h8500.c: Likewise.
739 * cpu-i960.c: Likewise.
740 * cpu-pj.c: Likewise.
741 * cpu-sh.c: Likewise.
742 * cpu-w65.c: Likewise.
743 * cpu-z8k.c: Likewise.
744 * elf32-fr30.c: Likewise.
745 * elf32-h8300.c: Likewise.
746 * elf32-i370.c: Likewise.
747 * hpux-core.c: Likewise.
748 * versados.c: Likewise.
750 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
751 * cpu-h8500.c: Likewise.
752 * cpu-i960.c: Likewise.
753 * cpu-z8k.c: Likewise.
755 * cpu-ia64-opc.c: Correct comment.
757 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
759 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
761 (bfd_elf32_write_out_phdrs): Likewise.
762 (bfd_elf64_write_out_phdrs): Likewise.
763 (elf_linker_section_pointers): Change addend to bfd_vma.
764 (_bfd_elf_find_pointer_linker_section): Likewise.
765 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
766 filepos to unsigned file_ptr.
767 (_bfd_elfcore_strndup): Change max param to size_t.
768 * elf.c (_bfd_elfcore_make_pseudosection): As above.
769 (_bfd_elfcore_strndup): Likewise.
770 (_bfd_elf_find_pointer_linker_section): Likewise.
772 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
773 insn and sym_value to ints.
775 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
777 (elfcore_read_notes): Likewise.
779 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
780 param from unsigned char to int.
781 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
782 for info_to_howto call.
783 (add_dynamic_entry): Define macro.
784 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
786 * elf32-cris.c (add_dynamic_entry): Define macro.
787 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
789 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
790 (elf32_h8_object_p): Likewise.
791 (elf32_h8_merge_private_bfd_data): Likewise.
792 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
794 * elf32-hppa.c (add_dynamic_entry): Define macro.
795 (elf32_hppa_size_dynamic_sections): Use it.
796 * elf32-i370.c (add_dynamic_entry): Define macro.
797 (i370_elf_size_dynamic_sections): Use it.
798 (i370_noop): Make static.
799 * elf32-i386.c (add_dynamic_entry): Define macro.
800 (elf_i386_size_dynamic_sections): Use it.
801 * elf32-m68k.c (add_dynamic_entry): Define macro.
802 (elf_m68k_size_dynamic_sections): Use it.
803 * elf32-ppc.c (add_dynamic_entry): Define macro.
804 (ppc_elf_size_dynamic_sections): Use it.
805 * elf32-s390.c (add_dynamic_entry): Define macro.
806 (elf_s390_size_dynamic_sections): Use it.
807 * elf64-alpha.c (add_dynamic_entry): Define macro.
808 (elf64_alpha_size_dynamic_sections): Use it.
809 * elf64-hppa.c (add_dynamic_entry): Define macro.
810 (elf64_hppa_size_dynamic_sections): Use it.
811 * elf64-ppc.c (add_dynamic_entry): Define macro.
812 (ppc64_elf_size_dynamic_sections): Use it.
813 * elf64-s390.c (add_dynamic_entry): Define macro.
814 (elf_s390_size_dynamic_sections): Use it.
815 * elf64-sparc.c (add_dynamic_entry): Define macro.
816 (sparc64_elf_size_dynamic_sections): Use it.
817 * elf64-x86-64.c (add_dynamic_entry): Define macro.
818 (elf64_x86_64_size_dynamic_sections): Use it.
819 * elfxx-ia64.c (add_dynamic_entry): Define macro.
820 (elfNN_ia64_size_dynamic_sections): Use it.
822 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
823 (v850_elf_perform_relocation): Make "r_type" param unsigned.
825 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
826 false if the first malloc fails rather than going via error_return.
828 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
830 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
832 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
834 * elfxx-ia64.c (global_sym_index): Return a long.
836 * ieee.c (get_symbol): Use int rather than char param.
837 (ieee_slurp_sections): Move "section" var to inner blocks.
838 (copy_expression): Don't init "value" to zero or worry about
839 clearing to zero after using.
840 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
843 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
846 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
847 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
849 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
851 * pc532-mach.c (MYNSX): Delete.
852 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
853 (write_object_contents): Correct prototype.
855 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
858 * section.c (bfd_set_section_contents): Remove redundant
859 "offset < 0" test. Check that "count" doesn't overflow size_t.
860 (bfd_get_section_contents): Likewise.
862 * som.c (som_fixup_formats): Add missing braces.
863 (som_reloc_addend): Pass a bfd_vma for "addend".
865 * srec.c (srec_write_record): Pass "type" as an unsigned int.
866 (srec_write_symbols): Remove an unnecessary var.
868 * targets.c (_bfd_target_vector): Sort entries. Sort externs
870 * configure.in: Sort to match. Bump version number.
871 * configure: Regenerate.
873 * tekhex.c (move_section_contents): Assert offset == 0.
875 * versados.c (new_symbol_string): Constify arg.
876 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
877 (versados_get_symbol_info): Make static.
878 (versados_print_symbol): Likewise.
879 (versados_get_reloc_upper_bound): Likewise.
880 (versados_canonicalize_reloc): Likewise.
882 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
884 * elflink.h (elf_link_input_bfd): Fix typo in error message.
886 2001-09-17 H.J. Lu <hjl@gnu.org>
888 * dwarf1.c (parse_die): Take a new arg for the end of the
889 section. Return false if die is beyond the section.
890 (parse_functions_in_unit): Pass the end of the section to
892 (_bfd_dwarf1_find_nearest_line): Likewise.
894 2001-09-14 Michael Rauch <mrauch@netbsd.org>
896 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
897 just like R_SPARC_32.
899 2001-09-14 Kevin Lo <kevlo@openbsd.org>
901 * configure.bfd: Add arm-openbsd target.
903 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
905 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
906 Add support for mips64.
908 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
910 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
912 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
914 * elf.c (prep_headers): Get the machine code from the elf
916 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
917 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
918 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
919 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
920 * elf-arc.c (arc_elf_final_write_processing): Don't override
921 e_machine, it's now properly set in prep_headers.
922 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
924 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
925 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
926 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
927 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
928 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
929 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
930 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
931 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
932 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
933 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
934 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
935 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
937 2001-09-11 Richard Henderson <rth@redhat.com>
939 * elf64-alpha.c (elf64_alpha_section_flags): New.
940 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
942 2001-09-11 Richard Henderson <rth@redhat.com>
944 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
945 apply HINT relocations against dynamic symbols.
947 2001-09-11 H.J. Lu <hjl@gnu.org>
949 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
951 2001-09-09 Richard Henderson <rth@redhat.com>
953 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
955 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
956 following a call to a near function.
958 2001-09-08 Richard Henderson <rth@redhat.com>
960 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
961 relocation errors. Fail gp-relative relocations against
964 2001-09-08 Alan Modra <amodra@bigpond.net.au>
966 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
967 as well as DEF_DYNAMIC in test for avoided copy relocs.
968 (allocate_plt_and_got_and_discard_relocs): Likewise.
969 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
970 (allocate_plt_and_got_and_discard_relocs): Likewise.
972 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
974 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
977 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
979 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
981 (mips_elf64_howto_table_rel): Likewise.
983 2001-09-05 Tom Rix <trix@redhat.com>
985 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
987 (write_global_symbol) : Same.
988 (bfd_xcoff_export_symbol): Remove unused syscall param.
989 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
990 bfd_xcoff_import_symbol.
992 * bfd-in2.h : Regenerate.
994 2001-09-04 Richard Henderson <rth@redhat.com>
996 * elf64-alpha.c (SKIP_HOWTO): New.
997 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
998 Fix sizes of 16-bit mem format relocs.
999 (elf64_alpha_reloc_map): Update to match.
1000 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
1001 (elf64_alpha_relax_without_lituse): Likewise.
1002 (elf64_alpha_check_relocs): Handle GPREL16.
1003 (elf64_alpha_relocate_section): Likewise.
1004 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
1005 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
1006 * bfd-in2.h, libbfd.h: Rebuild.
1008 2001-09-04 Jeff Law <law@redhat.com>
1010 * elf32-h8300.c (elf32_h8_relax_section): New function.
1011 (elf32_h8_relax_delete_bytes): Likewise.
1012 (elf32_h8_symbol_address_p): Likewise.
1013 (elf32_h8_get_relocated_section_contents): Likewise.
1014 (bfd_elf32_bfd_relax_section): Define.
1015 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
1017 * elf32-h8300.c (special): New function.
1018 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
1020 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
1021 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1022 Fix minor problems with 8bit and 16bit PC relative relocations.
1024 2001-09-01 Andreas Jaeger <aj@suse.de>
1026 * vms-tir.c: Add missing prototypes.
1027 * vms-hdr.c: Likewise.
1028 * vms-gsd.c: Likewise.
1029 * vms-misc.c: Likewise.
1031 2001-08-31 H.J. Lu <hjl@gnu.org>
1033 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1034 with bad relocation.
1036 2001-08-31 Eric Christopher <echristo@redhat.com>
1037 Jason Eckhardt <jle@redhat.com>
1039 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1040 mips32_4k and mips64.
1041 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1042 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1043 * bfd/cpu-mips.c: Ditto.
1044 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1045 * bfd/bfd-in2.h: Regenerate.
1047 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1049 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1050 value into R_ALPHA_RELATIVE's addend.
1051 (elf64_alpha_finish_dynamic_symbol): Likewise.
1053 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1055 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1056 recomputed addend during relocatable link if not USE_REL.
1058 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1061 2001-08-30 H.J. Lu <hjl@gnu.org>
1063 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1065 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1066 relocations for weak definitions.
1068 2001-08-30 H.J. Lu <hjl@gnu.org>
1070 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1071 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1072 * Makefile.in: Rebuild.
1074 2001-08-30 H.J. Lu <hjl@gnu.org>
1076 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1077 dynamic relocation for undefined weak symbols when creating
1078 executables. Check h->root.root.type, instead of h->root.type.
1080 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1082 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1083 default from coff to elf.
1085 2001-08-29 Jeff Law <law@redhat.com>
1087 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1089 (h8_reloc_map): Similarly.
1090 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1091 Add support for PC relative relocations.
1093 * elf32-h8300.c: Put all prototypes together.
1094 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1095 (elf32_h8_final_link_relocate): New function for linker.
1096 (elf32_h8_relocate_section): Similarly.
1097 (elf_backend_relocate_section): Define.
1099 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1100 (h8300_scan): Handle architecture:machine encodings typically
1101 found in linker scripts.
1102 * elf.c (prep_headers): Do not try to do H8 machine recognition
1104 * elf32-h8300.c: Add some missing prototypes.
1105 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1106 (elf32_h8_object_p): Similarly.
1108 2001-08-29 Tom Rix <trix@redhat.com>
1110 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1111 does not follow a XTY_SD.
1113 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1115 * targmatch.sed: Delete case statements.
1116 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1119 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1121 * Makefile.am (elf32-h8300.lo): New target.
1122 * config.bfd (h8300*-*-elf): New case.
1123 * configure.in (bfd_elf32_h8300_vec): New case.
1124 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1125 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1126 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1127 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1128 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1129 * elf32-h8300.c: New file.
1130 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1132 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1134 * sparclynx.c: Add missing prototypes.
1135 * coff-mcore.c: Add missing prototypes.
1136 * elf32-pj.c: Add missing prototypes.
1137 * nlm32-sparc.c: Add missing prototypes.
1138 * oasys.c: Add missing prototypes.
1139 * pdp11.c: Add missing prototypes.
1140 * pe-mips.c: Add missing prototypes.
1141 * riscix.c: Add missing prototypes.
1143 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1145 * elf32-i386.c: Add missing prototypes.
1146 * elf32-ppc.c: Likewise.
1147 * elf32-sh-lin.c: Likewise.
1148 * elfarm-nabi.c: Likewise.
1150 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1152 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1153 (elf_i386_grok_psinfo): New function.
1154 (elf_backend_grok_prstatus): Define.
1155 (elf_backend_grok_psinfo): Likewise.
1156 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1157 (ppc_elf_grok_psinfo): New function.
1158 (elf_backend_grok_prstatus): Define.
1159 (elf_backend_grok_psinfo): Likewise.
1160 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1161 (elf32_shlin_grok_psinfo): New function.
1162 (elf_backend_grok_prstatus): Define.
1163 (elf_backend_grok_psinfo): Likewise.
1164 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1165 (elf32_arm_nabi_grok_psinfo): New function.
1166 (elf_backend_grok_prstatus): Define.
1167 (elf_backend_grok_psinfo): Likewise.
1169 2001-08-27 H.J. Lu <hjl@gnu.org>
1171 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1173 (mips_elf_calculate_relocation): Create dynamic relocation for
1174 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1177 2001-08-27 H.J. Lu <hjl@gnu.org>
1179 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1180 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1181 (_bfd_elf32_mips_grok_prstatus): Likewise.
1182 (_bfd_elf32_mips_grok_psinfo): Likewise.
1183 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1184 `struct mips_elf_link_hash_entry *'.
1185 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1187 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1189 * mipsbsd.c: Add missing prototypes.
1190 * hp300hpux.c: Add missing prototypes.
1191 * i386aout.c: Add missing prototypes.
1192 * i386lynx.c: Add missing prototypes.
1193 * i386mach3.c: Add missing prototypes.
1194 * i386msdos.c: Add missing prototypes.
1195 * i386os9k.c: Add missing prototypes.
1197 2001-08-27 Linus Nordberg <linus@swox.se>
1198 Torbjorn Granlund <tege@swox.com>
1199 Staffan Ulfberg <staffanu@swox.se>
1200 Alan Modra <amodra@bigpond.net.au>
1202 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1203 targ64_selvecs for 32 bit powerpc targets.
1204 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1205 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1207 * Makefile.in: Regenerate.
1208 * configure.in: Add elf64_powerpc vecs.
1209 * configure: Regenerate.
1210 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1211 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1212 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1213 * elf64-ppc.c: New file.
1214 * reloc.c: Add powerpc64 relocs.
1215 * libbfd.h: Regenerate.
1216 * bfd-in2.h: Regenerate.
1218 2001-08-27 Andreas Schwab <schwab@suse.de>
1220 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1221 reloc is against read-only section.
1222 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1223 looking up section names for DT_TEXTREL.
1224 (elf32_m68k_reloc_type_class): New function.
1225 (elf_backend_reloc_type_class): Define.
1227 2001-08-27 Andreas Jaeger <aj@suse.de>
1229 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1230 reloc is against read-only section.
1231 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1232 looking up section names for DT_TEXTREL.
1233 (elf_s390_reloc_type_class): New.
1234 (elf_backend_reloc_type_class): Define.
1236 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1237 reloc is against read-only section.
1238 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1239 looking up section names for DT_TEXTREL.
1240 (elf_s390_reloc_type_class): New.
1241 (elf_backend_reloc_type_class): Define.
1243 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1244 is against read-only section.
1245 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1246 looking up section names for DT_TEXTREL.
1247 (ppc_elf_reloc_type_class): New.
1248 (elf_backend_reloc_type_class): Define.
1250 2001-08-26 Andreas Jaeger <aj@suse.de>
1252 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1253 reloc is against read-only section.
1254 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1255 looking up section names for DT_TEXTREL.
1256 (elf_cris_reloc_type_class): New.
1257 (elf_backend_reloc_type_class): Define.
1259 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1260 against read-only section.
1261 (elf_backend_reloc_type_class): Define.
1262 (sh_elf_reloc_type_class): New.
1263 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1264 looking up section names for DT_TEXTREL.
1266 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1267 reloc is against read-only section.
1268 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1269 looking up section names for DT_TEXTREL.
1270 (elf32_arm_reloc_type_class): New.
1271 (elf_backend_reloc_type_class): Define.
1273 2001-08-25 Andreas Jaeger <aj@suse.de>
1275 * oasys.c: Add missing prototypes.
1277 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1278 attribute for parameter.
1279 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1281 * versados.c (get_4): Make static.
1282 (get_10): Make static.
1283 Add missing prototypes.
1284 (process_esd): Fix call to versados_new_symbol.
1286 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1288 * coff-a29k.c: Add missing prototypes.
1289 * coff-apollo.c: Add missing prototypes.
1290 * coff-arm.c: Add missing prototypes.
1291 * coff-i860.c: Add missing prototypes.
1292 * coff-rs6000.c: Add missing prototypes.
1293 * coff-tic80.c: Add missing prototypes.
1294 * elf-m10200.c: Add missing prototypes.
1295 * elf-m10300.c: Add missing prototypes.
1296 * elf32-arm.h: Add missing prototypes.
1297 * elf32-d10v.c: Add missing prototypes.
1298 * elf32-m32r.c: Add missing prototypes.
1299 * elf32-mcore.c: Add missing prototypes.
1300 * elf32-openrisc.c: Add missing prototypes.
1301 * elf32-sh.c: Add missing prototypes.
1302 * elf32-sparc.c: Add missing prototypes.
1303 * elf32-v850.c: Add missing prototypes.
1304 * elfarm-nabi.c: Add missing prototypes.
1305 * elfarm-oabi.c: Add missing prototypes.
1307 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1309 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1310 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1312 2001-08-24 H.J. Lu <hjl@gnu.org>
1314 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1317 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1319 * elf-bfd.h (elf_hash_table): Revert definition.
1320 (is_elf_hash_table): New macro.
1321 * elflink.h (elf_link_add_object_symbols): Test
1322 is_elf_hash_table before accessing ELF only fields in hash
1324 (elf_link_create_dynamic_sections): Fail if not using an ELF
1326 (elf_add_dynamic_entry): Fail if not using an ELF hash
1328 (elf_link_record_local_dynamic_symbol): Fail if not using an
1330 (size_dynamic_sections): Fail if not using an ELF hash
1332 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1334 (elf_bfd_final_link): Fail if not using an ELF hash
1337 2001-08-24 H.J. Lu <hjl@gnu.org>
1339 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1340 table is not an ELF linker hash table.
1342 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1343 table type to bfd_link_elf_hash_table.
1345 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1348 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1349 table type to bfd_link_generic_hash_table.
1351 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1353 * bfd.c (bfd_alt_mach_code): New function.
1354 * bfd-in2.h: Rebuilt.
1356 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1358 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1359 `type' field in the hash entry when deciding whether to follow a
1362 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1364 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1366 (elf_link_sort_relocs): Adjust accordingly.
1368 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1369 (elf64_alpha_check_relocs): Set it if section this reloc is against
1370 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1372 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1373 is is against read-only section.
1374 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1375 check section names.
1376 (elf64_alpha_reloc_type_class): New.
1377 (elf_backend_reloc_type_class): Define.
1379 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1381 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1384 2001-08-23 Andreas Jaeger <aj@suse.de>
1386 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1387 the reloc is against read-only section.
1388 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1389 of looking up section names for DT_TEXTREL.
1390 (elf64_x86_64_reloc_type_class): New.
1391 (elf_backend_reloc_type_class): Define.
1393 2001-08-23 H.J. Lu <hjl@gnu.org>
1395 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1396 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1398 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1399 bfd_print_symbol_vandf.
1400 * coffgen.c (coff_print_symbol): Likewise.
1401 * elf.c (bfd_elf_print_symbol): Likewise.
1402 * ieee.c (ieee_print_symbol): Likewise.
1403 * nlmcode.h (nlm_print_symbol): Likewise.
1404 * oasys.c (oasys_print_symbol): Likewise.
1405 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1406 * som.c (som_print_symbol): Likewise.
1407 * srec.c (srec_print_symbol): Likewise.
1408 * tekhex.c (tekhex_print_symbol): Likewise.
1409 * versados.c (versados_print_symbol): Likewise.
1410 * vms.c (vms_print_symbol): Likewise.
1412 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1413 with bfd_fprintf_vma.
1414 (bfd_elf_print_symbol): Likewise.
1415 * syms.c (bfd_print_symbol_vandf): Likewise.
1417 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1419 * aoutf1.h (sunos_write_object_contents): Silence compile time
1421 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1423 * bout.c: Add missing function prototypes. Fix formatting.
1424 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1425 * coff-w65.c: Add missing function prototypes. Fix formatting.
1426 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1427 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1428 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1429 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1430 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1431 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1432 * coff-sh.c: Add missing function prototypes. Fix formatting.
1434 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1436 * elf-bfd.h (enum elf_reloc_type_class): New.
1437 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1438 (_bfd_elf_reloc_type_class): New.
1439 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1440 (elfNN_bed): Add elf_backend_reloc_type_class.
1441 * elf.c (_bfd_elf_reloc_type_class): New.
1442 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1443 is against read-only section.
1444 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1445 looking up section names for DT_TEXTREL.
1446 (elf_i386_reloc_type_class): New.
1447 (elf_backend_reloc_type_class): Define.
1448 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1449 reloc is against read-only section.
1450 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1451 looking up section names for DT_TEXTREL.
1452 (elf32_sparc_reloc_type_class): New.
1453 (elf_backend_reloc_type_class): Define.
1454 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1455 reloc is against read-only section.
1456 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1457 looking up section names for DT_TEXTREL.
1458 (sparc64_elf_reloc_type_class): New.
1459 (elf_backend_reloc_type_class): Define.
1460 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1461 (elfNN_ia64_hash_table_create): Clear ia64_info.
1462 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1464 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1465 instead of looking up section names for DT_TEXTREL.
1466 (elfNN_ia64_reloc_type_class): New.
1467 (elf_backend_reloc_type_class): Define.
1468 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1469 (struct elf_link_sort_rela): New.
1470 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1471 (elf_bfd_final_link): Call elf_link_sort_relocs.
1472 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1475 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1477 * configure.in (x86-bsdi): No corefile support.
1478 * configure: Regenerate.
1480 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1482 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1485 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1487 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1488 the alignment of dwarf2 linkonce sections to 0.
1489 * coff-sto32.c: Likewise.
1491 2001-08-20 Andreas Jaeger <aj@suse.de>
1493 * coff-sparc.c: Add missing prototypes.
1494 * elf32-s390.c: Likewise.
1495 * elf32-i960.c: Likewise.
1496 * aout-target.h: Likewise.
1498 2001-08-20 H.J. Lu <hjl@gnu.org>
1500 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1501 (elf_num_section_syms): New for num_section_syms.
1503 * elf.c (elf_map_symbols): Set num_section_syms.
1504 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1505 the section symbol index.
1507 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1509 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1510 select the generic has table creator. All elf backends need elf
1511 specific fields in the hash table.
1513 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1515 * archive.c (offsetof): Remove define.
1518 * sysdep.h (offsetof): Define.
1520 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1522 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1523 (bfd_set_gp_size): Make param unsigned.
1524 * bfd-in2.h: Regenerate.
1525 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1526 than calling bfd_get_gp_size.
1527 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1528 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1530 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1532 * linker.c (default_fill_link_order): Handle four byte fill value.
1534 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1536 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1538 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1540 * elf64-mips.c (UNUSED_RELOC): Define.
1541 (mips_elf64_howto_table_rel): Use it.
1542 (mips_elf64_howto_table_rela): Here too.
1543 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1545 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1547 * coffgen.c (coff_print_symbol): Fix warnings.
1548 (coff_find_nearest_line): Likewise.
1549 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1550 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1551 * format.c (bfd_check_format_matches): Likewise.
1552 (bfd_set_format): Likewise.
1553 * coff-ia64.c: Add missing prototypes.
1554 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1555 signed to silence warnings.
1556 (elf64_alpha_relocate_section): Likewise.
1557 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1558 (elf64_alpha_add_symbol_hook): Likewise.
1559 (elf64_alpha_final_link): Likewise.
1560 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1561 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1562 (elf64_alpha_size_got_sections): Likewise.
1563 * elfxx-ia64.c: Add missing prototypes.
1564 (elfNN_ia64_relocate_section): Fix warning.
1565 (elfNN_ia64_unwind_entry_compare): Make params const.
1567 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1569 * config.bfd (targ64_selvecs): New.
1570 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1572 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1573 (BFD_DEFAULT_TARGET_SIZE): New.
1574 (BFD_ARCH_SIZE): Comment.
1575 * configure.in (target_size): New. Set instead of target64 in
1576 selvecs case statement. Set target64 from it.
1577 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1578 * bfd-in2.h: Regenerate.
1579 * configure: Regenerate.
1581 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1583 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1584 (bfd_errmsgs): Add corresponding message.
1585 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1586 finding an archive that contains different format object files.
1587 Return bfd_error_wrong_object_format for this case.
1588 * format.c: Formatting fixes. s/CONST/const/.
1589 (bfd_check_format_matches): Accept archives that give
1590 bfd_error_wrong_object_format if no full match is found. Tidy
1591 code handling matching_vector. Don't return a pointer to freed
1592 memory in `matching'. Handle ambiguous matches as for partial
1594 * bfd-in2.h: Regenerate.
1596 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1598 * libieee.h (common_header_type): Add last_byte field.
1600 * ieee.c: Add missing prototypes. Some format fixes.
1601 (struct output_buffer_struct): Move for availability to prototypes.
1602 (ieee_part_after): New function.
1603 (ieee_slurp_debug): Use it here.
1604 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1605 ieee_part_after to set last_byte to one past end of current part.
1607 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1609 (parse_expression): Don't go beyond the end of the current part.
1610 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1611 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1612 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1613 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1614 ieee_set_section_contents, ieee_write_object_contents,
1615 ieee_make_empty_symbol): Make static.
1616 (ieee_archive_p): Correct comments regarding bfd_read.
1617 (ieee_object_p): Similarly.
1618 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1619 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1620 input_bfd, output_bfd, output_buffer.
1621 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1622 do_with_relocs, ie. as a symbol for relocatable files.
1623 (ieee_vec): Add comments showing functions referenced by macros.
1625 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1627 * aout-tic30.c: Add missing prototypes. Fix formatting.
1628 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1629 * peXXigen.c: Add missining prototypes. Fix formatting.
1630 * aout-adobe.c: Add missining prototypes. Fix formatting.
1632 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1634 * elf32-v850.c: Add missing function prototypes.
1635 Fix some formatting.
1637 * cpu-v850.c: Add missing function prototype.
1638 Fix some formatting.
1640 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1642 * elf-bfd.h (struct elf_backend_data): Add new fields
1643 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1644 (bfd_elf_sprintf_vma): Rename function prototype to
1645 '_bfd_elf_sprintf_vma'.
1646 (bfd_elf_fprintf_vma): Rename function prototype to
1647 '_bfd_elf_fprintf_vma'.
1648 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1649 directly, instead indirect via the elf_backend_data structure.
1650 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1651 instead indirect via the elf_backend_data structure.
1652 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1653 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1654 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1656 (elf_backend_fprintf_vma): Initialise if not already defined.
1657 (struct elf_backend_data): Initialise the
1658 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1660 2001-08-10 Andreas Jaeger <aj@suse.de>
1662 * elf64-sparc.c: Add missing prototypes.
1663 * elf32-cris.c: Likewise.
1664 * elf32-i370.c: Likewise.
1665 * elf64-hppa.c: Likewise.
1666 * elf64-s390.c: Likewise.
1668 2001-08-10 Andreas Jaeger <aj@suse.de>
1670 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1671 Add prototypes where needed.
1673 2001-08-10 H.J. Lu <hjl@gnu.org>
1675 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1676 (bfd_fprintf_vma): Likewise.
1678 2001-08-10 H.J. Lu <hjl@gnu.org>
1680 * bfd.c (bfd_sprintf_vma): Don't return void.
1681 (bfd_fprintf_vma): Likewise.
1683 2001-08-10 Andreas Jaeger <aj@suse.de>
1685 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1687 * configure: Regenerate.
1689 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1691 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1692 warning if not BFD64. Add braces so emacs auto format works.
1693 (bfd_elf_fprintf_vma): Likewise.
1695 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1697 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1698 param to agree with libxcoff.h.
1699 (xcoff_swap_ldhdr_out): Likewise.
1700 (xcoff_swap_ldsym_in): Likewise.
1701 (xcoff_swap_ldsym_out): Likewise.
1702 (xcoff_swap_ldrel_in): Likewise.
1703 (xcoff_swap_ldrel_out): Likewise.
1704 (xcoff_create_csect_from_smclas): Likewise.
1705 * coff64-rs6000.c: Add missing prototypes.
1706 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1708 (xcoff64_swap_ldhdr_out): Likewise.
1709 (xcoff64_swap_ldsym_in): Likewise.
1710 (xcoff64_swap_ldsym_out): Likewise.
1711 (xcoff64_swap_ldrel_in): Likewise.
1712 (xcoff64_swap_ldrel_out): Likewise.
1713 (xcoff64_ppc_relocate_section): Make static.
1714 (xcoff64_slurp_armap): Likewise.
1715 (xcoff64_archive_p): Likewise.
1716 (xcoff64_openr_next_archived_file): Likewise.
1717 (xcoff64_sizeof_headers): Likewise.
1718 (xcoff64_is_lineno_count_overflow): Likewise.
1719 (xcoff64_is_reloc_count_overflow): Likewise.
1720 (xcoff64_loader_symbol_offset): Likewise.
1721 (xcoff64_loader_reloc_offset): Likewise.
1722 * elf64-gen.c: Add missing prototypes.
1724 2001-08-09 H.J. Lu <hjl@gnu.org>
1726 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1727 (bfd_elf_fprintf_vma): Likewise.
1729 2001-08-09 H.J. Lu <hjl@gnu.org>
1731 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1734 * bfd-in2.h: Regenerated.
1736 2001-08-09 H.J. Lu <hjl@gnu.org>
1738 * bfd-in.h (bfd_sprintf_vma): New prototype.
1739 (bfd_fprintf_vma): Likewise.
1740 (bfd_elf_sprintf_vma): Likewise.
1741 (bfd_elf_fprintf_vma): Likewise.
1742 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1743 * bfd-in2.h: Regenerated.
1745 * bfd.c (bfd_sprintf_vma): New. Defined.
1746 (bfd_fprintf_vma): Likewise.
1748 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1749 (bfd_elf_fprintf_vma): Likewise.
1751 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1753 * coff-rs6000.c: Add missing prototypes.
1754 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1755 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1756 xcoff_loader_reloc_offset): Make static.
1757 * dwarf1.c: Add missing prototypes.
1758 * dwarf2.c: Add missing prototypes.
1759 (struct abbrev_info): Move definition.
1760 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1761 * elf.c: Add missing prototypes.
1762 * elf32-gen.c: Likewise.
1763 * elf32-i386.c: Likewise.
1764 * elf32-ppc.c: Likewise.
1765 (ppc_elf_sort_rela): Use PTR instead of "void *".
1766 * elflink.h: Add missing prototypes. Formatting fixes.
1767 * merge.c: Add missing prototypes.
1768 (last4_eq): Use PTR instead of "void *".
1769 (last_eq): Likewise.
1770 * syms.c: Add missing prototypes.
1772 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1774 * bfd.c: Fix formatting.
1775 * bfd-in2.h: Regenerate.
1777 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1779 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1780 true (this target uses REL relocations) and 'pcrel_offset' to
1781 false (the PC is implied, not stored in the offset).
1783 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1785 1999-10-19 Linus Nordberg <linus@swox.se>
1786 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1787 * elfxx-target.h (elf_backend_want_got_sym): Define.
1788 (elfNN_bed): Add elf_backend_want_got_sym.
1789 * elflink.c (_bfd_elf_create_got_section): Define
1790 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1792 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1794 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1795 (find_rela_addend): New function.
1796 (parse_comp_unit): Call it to find the abbrev offset addend.
1797 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1798 members of dwarf2_debug as debugging information is read.
1800 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1802 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1803 targets as well as sh-pe.
1805 2001-08-03 Ben Harris <bjh21@netbsd.org>
1807 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1808 reloc from start of section when computing value for R_ARM_REL32
1811 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1813 From H.J. Lu <hjl@gnu.org>
1814 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1815 keep relocs for undefined syms if there are no dynamic sections in
1817 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1819 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1821 * cofflink.c (coff_link_check_ar_symbols): also search for
1822 __imp__symbol as well as _symbol.
1823 * linker.c (_bfd_generic_link_add_archive_symbols): also
1824 search for __imp__symbol as well as _symbol.
1826 2001-08-01 Adam Nemet <anemet@lnxw.com>
1828 * elf.c (elf_sort_sections): Return zero only as the last step.
1830 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1832 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1834 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1835 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1838 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1840 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1841 to match corresponding bfd_coff_backend data member.
1843 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1845 * Makefile.am: Update dependencies with "make dep-am".
1846 * Makefile.in: Regenerate
1848 2001-07-15 H.J. Lu <hjl@gnu.org>
1850 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1851 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1852 * Makefile.in: Regenerate.
1854 2001-07-11 H.J. Lu <hjl@gnu.org>
1856 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1857 flags when creating the reloc section if the ALLOC flag in the
1858 source section is set.
1860 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1862 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1863 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1864 * bfd-in2.h: Regenerate.
1865 * libbfd.h: Regenerate.
1866 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1868 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1869 (elfNN_ia64_check_relocs): Likewise.
1870 (elfNN_ia64_install_value): Likewise.
1871 (elfNN_ia64_relocate_section): Likewise.
1873 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1875 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1877 (elf32_sparc_check_relocs): Likewise.
1878 Only create .rela section for alloced sections in shared libraries.
1879 (elf32_sparc_relocate_section): Likewise.
1880 Remove redundant check.
1881 Optimize unaligned reloc usage.
1882 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1885 2001-07-11 H.J. Lu <hjl@gnu.org>
1887 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1888 ALLOC|LOAD flags as the source section for debugging sections
1889 when creating the reloc section.
1891 2001-07-05 Jim Wilson <wilson@redhat.com>
1893 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1894 the section of the bigger symbol.
1896 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1898 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1900 * peicode.h (coff_swap_scnhdr_in): For sections containing
1901 uninitialised data, only set their size to s_paddr if this does
1902 not reset their size to zero. MS's latest compilers will set
1905 2001-07-04 H.J. Lu <hjl@gnu.org>
1907 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1908 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1911 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1913 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1915 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1916 sections being discarded.
1918 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1920 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1921 instead of _bfd_elfcore_section_from_phdr.
1922 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1923 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1924 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1925 (elfcore_grok_prstatus): Likewise.
1926 (elfcore_grok_lwpstatus): Likewise.
1927 (bfd_get_elf_phdr_upper_bound): Likewise.
1928 (elfcore_make_note_pseudosection): Formatting.
1929 (_bfd_elfcore_strndup): Formatting.
1930 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1931 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1933 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1935 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1936 and _bfd_elfcore_strndup.
1937 (struct elf_backend_data): Add elf_backend_grok_prstatus
1938 and elf_backend_grok_psinfo.
1939 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1940 (elfcore_grok_prstatus): Use it.
1941 (elfcore_make_note_pseudosection): Likewise.
1942 (elfcore_strndup): Rename to...
1943 (_bfd_elfcore_strndup): Here, and make global.
1944 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1945 (elfcore_grok_note): Call elf_backend_grok_prstatus
1946 and elf_backend_grok_psinfo if available.
1947 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1948 (_bfd_elf32_mips_grok_psinfo): New function.
1949 (elf_backend_grok_prstatus): Define.
1950 (elf_backend_grok_psinfo): Define.
1951 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1952 (elf_backend_grok_psinfo): Likewise.
1953 (elfNN_bed): Include elf_backend_grok_prstatus and
1954 elf_backend_grok_psinfo.
1956 2001-06-29 H.J. Lu <hjl@gnu.org>
1958 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1959 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1960 is NULL before filling PLT.
1962 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1964 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1966 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1968 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1970 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1971 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1974 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1975 (IS_ABSOLUTE_RELOC): Define.
1976 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1977 (hppa_link_hash_newfunc): Always init it.
1978 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1979 create COPY relocs only when the reloc is in a read-only section.
1980 Instead, allocate space for a dynamic reloc to reference the
1981 library symbol directly. Keep track of space we allocate using
1983 (hppa_discard_copies): Delete, and move code to..
1984 (allocate_plt_and_got): ..here. Rename to
1985 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1986 relocs for non-shared link.
1987 (elf32_hppa_size_dynamic_sections): Update calls to above.
1988 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1989 in lieu of COPY relocs.
1991 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1993 (elf_i386_adjust_dynamic_symbol): ..nor here..
1994 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1996 (elf_i386_size_dynamic_sections): Fix a comment.
1997 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1998 involved in writing reloc out.
2000 2001-06-25 Alan Modra <amodra@bigpond.net.au>
2002 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
2003 Ensure syms are dynamic if we might be emitting a reloc.
2004 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
2005 for undefweak or undefined syms..
2006 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
2008 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
2009 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
2010 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
2011 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
2013 2001-06-24 H.J. Lu <hjl@gnu.org>
2015 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
2016 strncasecmp/strcasecmp instead of strncmp/strcmp.
2018 2001-06-23 H.J. Lu <hjl@gnu.org>
2020 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
2021 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2022 in the regular object file and treat the weak definition as
2025 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2027 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2028 unresolved_reloc test to exclude cases where we use "relocation"
2029 before setting it to point into the .got. Reinstate fudge for
2030 unresolved relocs in debugging sections.
2032 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2033 complicated tests for unresolvable relocs with a simple direct
2034 scheme using "unresolved_reloc" var.
2036 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2037 elf_i386_dyn_relocs. Update comment.
2038 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2040 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2042 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2044 (elf_i386_size_dynamic_sections): Likewise.
2045 (elf_i386_finish_dynamic_symbol): Likewise.
2046 (elf_i386_finish_dynamic_sections): Likewise.
2047 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2050 Avoid creating COPY relocs if possible.
2051 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2052 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2053 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2054 reloc is in a read-only section. Instead, allocate space for a
2055 dynamic reloc to reference the library symbol directly. Keep
2056 track of space we allocate using pcrel_relocs_copied.
2057 (discard_copies): Delete, and move code to ..
2058 (allocate_plt_and_got): ..here. Rename to
2059 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2060 relocs for non-shared link.
2061 (elf_i386_size_dynamic_sections): Update calls to above functions.
2062 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2063 more ugly logic to avoid "unresolvable relocation" error. Use
2064 htab shortcut in place of elf_hash_table macro.
2065 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2066 not always be created now.
2068 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2070 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2073 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2075 * configure.host (mips64-*-linux): Reformat.
2077 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2079 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2080 allocate local .got space. Use shortcuts from hash table for .got
2081 and .plt rather than comparing section names.
2082 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2083 adjusting index into local_got_refcounts to document what we are
2085 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2086 Tidy .got and .plt error checking.
2088 2001-06-20 Catherine Moore <clm@redhat.com>
2090 * elf-bfd.h (struct elf_backend_data):
2091 elf_backend_emit_relocs: New field: Function for emitting
2093 elf_backend_count_relocs: New field: Function for determining
2094 the number of relocs to be emitted.
2095 * elfxx-target.h: Provide default (NULL) values for
2096 elf_backend_emit_relocs and elf_backend_count_relocs.
2097 * elflink.h (elf_link_size_reloc_section): Make the hash table
2098 big enough to hold the relocs counted by either reloc_count or
2100 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2101 should be emitted, either because of a command line option
2102 stored in the info structure or because the target provides a
2103 special reloc emitting function.
2104 If the target provides a reloc counting function use it,
2105 unless performing a relocatable link or emitting all relocs.
2106 Also set the SEC_RELOC flag on any output section which will
2108 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2109 should be emitted, either because of a command line option
2110 stored in the info structure or because the target provides a
2111 special reloc emitting function.
2112 If the target provides a reloc emitting function, use it,
2113 unless performing a relocatable link or emitting all relocs.
2115 2001-06-20 H.J. Lu <hjl@gnu.org>
2117 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2118 allocate local .got space.
2120 2001-06-19 Andreas Jaeger <aj@suse.de>
2122 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2125 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2127 * elflink.h (struct elf_assign_sym_version_info): Remove member
2128 export_dynamic. All users changed to use info member.
2129 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2130 export_dynamic, instead use member in parameter info.
2131 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2132 bfd_elf64_size_dynamic_sections): Update prototype.
2133 * bfd-in2.h: Regenerate.
2135 2001-06-18 H.J. Lu <hjl@gnu.org>
2137 * elflink.h (elf_info_failed): Add a new field, verdefs.
2138 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2140 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2143 2001-06-17 H.J. Lu <hjl@gnu.org>
2145 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2146 readonly_reloc, to record if a relocation in the .rel.dyn
2147 section is against a read-only section.
2148 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2150 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2151 in the .rel.dyn section against a read-only section by setting
2152 DF_TEXTREL or readonly_reloc.
2153 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2155 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2156 there is a relocation in the .rel.dyn section against a
2158 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2161 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2163 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2164 function. Move flagword result into parameter list. Remove
2165 comment about setting bfd_error_handler to intercept failure
2167 * coffgen.c (make_a_section_from_file): Examine result of
2168 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2170 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2171 function. Move flagword result into parameter list.
2172 * libcoff.h: Regenerate.
2173 * libecoff.h: Regenerate.
2175 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2177 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2178 section is going to follow it.
2180 2001-06-12 Catherine Moore <clm@redhat.com>
2182 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2183 with the file_align entry from elf_backend_data.
2184 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2185 (elf_gc_record_vtentry): Likewise.
2187 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2189 * elflink.h: Whitespace changes.
2190 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2191 rather than "unsigned char".
2192 (elf_link_output_relocs): Likewise.
2193 (elf_link_input_bfd): Likewise.
2194 (elf_reloc_link_order): LIkewise.
2195 * elf.c: s/CONST/const/. Whitespace changes.
2196 * elf32-mips.c: Formatting fix.
2198 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2199 * Makefile.in: Regenerate.
2200 * po/Make-in: Remove trailing tab.
2202 2001-06-09 Philip Blundell <philb@gnu.org>
2204 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2206 (elf32_arm_plt_entry): Likewise.
2208 2001-06-08 H.J. Lu <hjl@gnu.org>
2210 * elf.c (swap_out_syms): Keep names for global section symbols.
2212 2001-06-07 H.J. Lu <hjl@gnu.org>
2214 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2215 MIPS-based machines need it.
2217 2001-06-07 H.J. Lu <hjl@gnu.org>
2219 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2222 * config.bfd: Remove ecoff from Linux/mips.
2224 2001-06-07 Andreas Jaeger <aj@suse.de>
2226 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2228 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2229 alignment of 8 for .rela sections; handle further relocations.
2231 2001-06-06 Christian Groessler <cpg@aladdin.de>
2233 * coff-z8k.c: Fix formatting.
2234 Fix howtos: howto->size was always 1.
2236 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2238 * configure.host (mips64*-*-linux*): Define.
2240 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2242 * elf32-i386.c (elf_i386_discard_copies): Rename to
2243 discard_copies, and use elf_link_hash_entry arg rather than
2244 elf_i386_link_hash_entry.
2245 (elf_i386_link_hash_traverse): Delete.
2246 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2247 Tidy sizing of dynamic sections.
2248 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2249 possible .plt entries.
2250 (elf_i386_gc_sweep_hook): Likewise.
2251 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2252 everything with plt.refcount <= 0.
2254 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2256 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2257 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2259 (allocate_plt_and_got): ..instead do it all here. New function.
2260 (elf_i386_size_dynamic_sections): Allocate local .got space and
2261 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2262 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2263 rather than gc variety).
2264 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2265 (elf_i386_relocate_section): Use it here and correct handling of
2266 R_386_GOT32. Provide section and offset for "unresolvable
2267 relocation" error message.
2268 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2270 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2271 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2272 (elf_i386_link_hash_table_create): Init them.
2273 (create_got_section): New function.
2274 (elf_i386_create_dynamic_sections): New function.
2275 (elf_backend_create_dynamic_sections): Set to above.
2276 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2277 calling bfd_get_section_by_name.
2278 (elf_i386_gc_sweep_hook): Likewise.
2279 (elf_i386_adjust_dynamic_symbol): Likewise.
2280 (elf_i386_size_dynamic_sections): Likewise.
2281 (elf_i386_relocate_section): Likewise.
2282 (elf_i386_finish_dynamic_sections): Likewise.
2284 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2286 2001-06-02 H.J. Lu <hjl@gnu.org>
2288 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2290 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2292 2001-06-02 H.J. Lu <hjl@gnu.org>
2294 * aout-cris.c (MACHTYPE_OK): New. Defined.
2296 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2298 * section.c (_bfd_strip_section_from_output): Handle NULL
2301 2001-06-02 H.J. Lu <hjl@gnu.org>
2303 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2304 rs6000coff64_vec only if BFD64 is defined.
2305 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2307 2001-06-02 H.J. Lu <hjl@gnu.org>
2309 * coff-ia64.c (ia64coff_object_p): Rewrite with
2310 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2312 2001-06-01 Andreas Jaeger <aj@suse.de>
2314 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2315 relocation, small reformatting.
2317 2001-05-29 Andreas Jaeger <aj@suse.de>
2319 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2320 (elf64_x86_64_relocate_section): Likewise.
2322 2001-05-30 Alan Modra <amodra@one.net.au>
2324 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2325 millicode. Don't allocate .got and .rela.got space here..
2326 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2327 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2329 (hppa_handle_PIC_calls): ..nor here..
2330 (allocate_plt_and_got): ..instead do it all here. New function.
2331 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2332 call allocate_plt_and_got. No need to zap .got if not dynamic.
2333 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2334 gc_common_final_link.
2335 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2336 (elf32_hppa_relocate_section): Use it here.
2337 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2338 dynamic_sections_created.
2339 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2341 2001-05-28 Andreas Jaeger <aj@suse.de>
2343 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2344 generic version since we want a hashsize of 4.
2345 (elf_backend_size_info): Likewise.
2347 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2349 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2351 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2352 (elf_link_input_bfd): Likewise.
2353 (elf_reloc_link_order): Likewise.
2354 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2355 relocations correctly.
2357 2001-05-28 Nicolas Pitre <nico@cam.org>
2359 * elf32-arm.h: fix PLT generation for big endian ARM
2361 2001-05-28 Alan Modra <amodra@one.net.au>
2363 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2364 for symbols forced local that need plabels.
2365 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2366 .plt.rela for local syms if non-shared.
2367 (hppa_build_one_stub): Mask lsb of plt.offset.
2368 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2369 (clobber_millicode_symbols): Correct comment.
2370 (elf32_hppa_relocate_section): Likewise.
2371 (elf32_hppa_finish_dynamic_symbol): Likewise.
2373 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2375 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2376 * bfd-in2.h: Regenerate.
2377 * libbfd.h: Regenerate.
2378 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2379 and BFD_RELOC_SPARC_UA64 mapping
2380 * elf64-sparc.c: Likewise.
2382 2001-05-25 H.J. Lu <hjl@gnu.org>
2384 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2385 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2386 (coff-rs6000.lo): Remove the old dependency.
2387 * Makefile.in: Rebuild.
2389 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2392 2001-05-25 H.J. Lu <hjl@gnu.org>
2394 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2395 rs6000coff_core_file_matches_executable_p,
2396 rs6000coff_core_file_failing_command and
2397 rs6000coff_core_file_failing_signal only if AIX_CORE is
2399 (pmac_xcoff_vec): Likewise.
2400 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2402 2001-05-25 Timothy Wall <twall@redhat.com>
2404 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2405 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2407 2001-05-25 H.J. Lu <hjl@gnu.org>
2409 * bfd-in2.h: Regenerated.
2410 * libcoff.h: Likewise.
2412 2001-05-25 Alan Modra <amodra@one.net.au>
2414 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2415 undefined millicode syms in shared libs.
2416 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2417 (elf32_hppa_check_relocs): Likewise.
2418 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2419 (elf32_hppa_size_dynamic_sections): Likewise.
2420 (elf32_hppa_relocate_section): Likewise.
2421 (elf32_hppa_finish_dynamic_symbol): Likewise.
2422 (elf32_hppa_finish_dynamic_sections): Likewise.
2424 2001-05-24 Tom Rix <trix@redhat.com>
2426 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2427 xcoff-target.h not used to define rs6000 or ppc bfd.
2430 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2433 * coff-rs6000.c : Many changes for 64 bit support. Move common
2434 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2437 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2438 linker now supported. Explictly define the rs6000coff64_vec.
2440 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2441 (coff_print_aux) same
2442 (coff_write_object_contents) same
2443 (coff_slurp_line_table) same
2445 * coffgen.c : (coff_fix_symbol_name) formatting
2446 (coff_mangle_symbols) xcoff 64 bit support
2447 (coff_write_symbol) same
2448 (coff_write_alien_symbol) same
2449 (coff_write_native_symbol) same
2450 (coff_write_symbols) same
2451 (coff_get_symbol_info) same
2452 (bfd_coff_get_syment) same
2453 (coff_print_symbol) same
2455 * config.bfd : add powerpc64-*-aix* target
2457 * libcoff-in.h : formatting
2459 * libcoff.h : move xcoff extern declarations to libxcoff.h
2461 * libxcoff.h : New file
2463 * xcofflink.c : Many changes for xcoff64 support. Move common
2464 structures to include/coff/xcoff.h. Move specific structure to
2465 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2466 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2468 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2471 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2473 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2475 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2478 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2480 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2481 * libbfd.h: Regenerate.
2482 * bfd-in2.h: Regenerate.
2484 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2485 * archures.c (bfd_mach_mips12000): Define.
2486 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2487 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2489 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2490 * bfd-in2.h: Regenerate.
2491 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2493 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2495 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2496 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2497 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2498 that is used by GCC.
2500 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2502 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2503 of entries in a structured section.
2504 * elf.c: Use new macro.
2505 * elf32-i386.c: Use new macro.
2506 * elf32-mips.c: Use new macro.
2507 * elf64-alpha.c: Use new macro.
2508 * elf64-sparc.c: Use new macro.
2509 * elfcode.h: Use new macro.
2510 * elflink.h: Use new macro.
2512 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2514 * bfdint.texi: Replace -oformat with --oformat.
2516 2001-05-21 Andreas Jaeger <aj@suse.de>
2518 * dwarf2.c (decode_line_info): Fix error message.
2519 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2520 adjust error message.
2522 2001-05-18 H.J. Lu <hjl@gnu.org>
2524 * elflink.h (elf_link_add_object_symbols): Revert the last
2527 2001-05-17 Alan Modra <amodra@one.net.au>
2529 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2530 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2531 (hppa_build_one_stub): Add an assert to check plt.offset.
2533 2001-05-17 H.J. Lu <hjl@gnu.org>
2535 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2536 version definition to basename of the output filename.
2538 2001-05-17 H.J. Lu <hjl@gnu.org>
2540 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2541 basename of the bfd filename.
2543 2001-05-16 Alan Modra <amodra@one.net.au>
2545 * section.c (asection): Add linker_has_input field.
2546 (STD_SECTION): Adjust initialization to suit.
2547 * ecoff.c (bfd_debug_section): Likewise.
2548 * bfd-in2.h: Regenerate.
2550 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2552 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2553 negative 32-bit operands to 16 operands when the operand is
2554 going to be zero-extended by the modified opcode.
2556 2001-05-12 Peter Targett <peter.targett@arccores.com>
2558 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2559 name for 'arc5' core versions.
2560 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2562 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2564 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2566 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2568 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2570 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2571 to .gnu.linkonce.t.FOO text section.
2573 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2575 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2576 fields, change sec into secinfo.
2577 (struct sec_merge_info): Add chain, remove last fields.
2578 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2579 (sec_merge_hash_lookup): If lookup could not use a string only
2580 because it has bad alignment, mark the old string for deletion.
2581 (sec_merge_add): Add secinfo argument. Don't compute entry's
2582 position, instead record the section.
2583 (sec_merge_emit): Update for the sec into secinfo change in
2584 struct sec_merge_hash_entry.
2585 (_bfd_merge_section): Only record the section for merging, defer
2586 putting strings into the hash table.
2587 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2588 _bfd_merge_sections): New functions.
2589 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2591 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2592 (_bfd_nolink_bfd_merge_sections): Define.
2593 * libbfd.h: Likewise.
2594 (bfd_generic_merge_sections): Add prototype.
2595 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2596 (struct bfd_target): Likewise.
2597 * bfd.c (bfd_merge_sections): Define.
2598 * bfd-in2.h: Rebuilt.
2599 * elf.c (_bfd_elf_merge_sections): New function.
2600 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2601 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2602 * reloc.c (bfd_generic_merge_sections): New function.
2603 * vms.c (vms_bfd_merge_sections): New function.
2604 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2605 * aout-target.h (MY_bfd_merge_sections): Define.
2606 * aout-tic30.c (MY_bfd_merge_sections): Define.
2607 * binary.c (binary_bfd_merge_sections): Define.
2608 * bout.c (b_out_bfd_merge_sections): Define.
2609 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2610 * coffcode.c (coff_bfd_merge_sections): Define.
2611 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2612 * i386msdos.c (msdos_bfd_merge_sections): Define.
2613 * i386os9k.c (os9k_bfd_merge_sections): Define.
2614 * ieee.c (ieee_bfd_merge_sections): Define.
2615 * ihex.c (ihex_bfd_merge_sections): Define.
2616 * nlm-target.h (nlm_bfd_merge_sections): Define.
2617 * oasys.c (oasys_bfd_merge_sections): Define.
2618 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2619 * som.c (som_bfd_merge_sections): Define.
2620 * srec.c (srec_bfd_merge_sections): Define.
2621 * tekhex.c (tekhex_bfd_merge_sections): Define.
2622 * versados.c (versados_bfd_merge_sections): Define.
2623 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2625 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2627 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2628 to be unsigned long, in order to match its use.
2630 2001-05-10 H.J. Lu <hjl@gnu.org>
2632 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2635 2001-05-09 H.J. Lu <hjl@gnu.org>
2637 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2638 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2639 Remove the unused veriable `dynver'.
2641 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2643 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2644 NULL or is not COFF.
2645 (coff_i386_rtype_to_howto): Don't dump core if output section
2648 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2650 * ecoff.c (bfd_debug_section): Fix initialization.
2651 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2652 is always a positive integer. Cast away sign mismatch.
2653 * elf32-mips.c: Fix misleading comment and typo.
2654 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2656 * elflink.c: Fix typo.
2657 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2658 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2660 2001-05-04 Richard Henderson <rth@redhat.com>
2662 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2664 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2666 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2667 EF_ARM_HASENTRY if the start address is set.
2669 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2671 * targets.c (_bfd_target_vector_entries): Compute value based on
2672 the size of the _bfd_target_vector and not bfd_target_vector.
2674 2001-05-03 H.J. Lu <hjl@gnu.org>
2676 * elfcode.h: Include "libiberty.h".
2678 * elflink.h (elf_link_add_object_symbols): Set
2679 elf_dt_name (abfd) to basename of the bfd filename.
2680 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2681 of the bfd filename.
2683 2001-05-03 Andreas Jaeger <aj@suse.de>
2685 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2686 (elf_generic_info_to_howto_rel): Likewise.
2687 * coff-alpha.c (reloc_nil): Likewise.
2688 (alpha_ecoff_bad_format_hook): Likewise.
2689 (alpha_adjust_reloc_out): Likewise.
2690 (alpha_bfd_reloc_type_lookup): Likewise.
2691 (alpha_convert_external_reloc): Likewise.
2692 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2693 (elf64_alpha_reloc_bad): Likewise.
2694 (elf64_alpha_reloc_gpdisp): Likewise.
2695 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2696 (elf64_alpha_info_to_howto): Likewise.
2697 (elf64_alpha_add_symbol_hook): Likewise.
2698 (elf64_alpha_create_got_section): Likewise.
2699 (elf64_alpha_is_local_label_name): Likewise.
2700 (elf64_alpha_merge_ind_symbols): Likewise.
2701 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2702 (mips_elf64_get_reloc_upper_bound): Likewise.
2703 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2704 (nlm_alpha_get_public_offset): Likewise.
2706 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2708 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2709 about overflow in R_OPENRISC_LO_16_IN_INSN and
2710 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2712 2001-04-30 H.J. Lu <hjl@gnu.org>
2714 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2715 only for ELF_LINK_FORCED_LOCAL.
2716 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2717 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2718 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2720 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2721 if the symbol has hidden or internal visibility.
2723 2001-04-30 Alan Modra <amodra@one.net.au>
2725 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2726 calls to undefined weak symbols.
2728 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2730 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2731 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2733 2001-04-27 Andreas Jaeger <aj@suse.de>
2735 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2736 out handled entries.
2737 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2738 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2739 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2742 2001-04-27 Sean McNeil <sean@mcneil.com>
2744 * config.bfd: Add arm-vxworks target.
2745 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2746 addend (fro VXworks targets).
2748 2001-04-26 H.J. Lu <hjl@gnu.org>
2750 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2753 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2755 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2756 * bfd-in2.h: Regenerated.
2758 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2760 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2761 (struct sec_merge_hash): Remove alignment_power.
2762 (sec_merge_hash_newfunc): Clear alignment.
2763 (sec_merge_hash_lookup): Pass alignment as argument.
2764 Use hashp->root.next, not hashp->next to walk the hash chain.
2765 If a string already in the hashtable does not have required
2766 alignment, create a new hashtable entry.
2767 (sec_merge_init): Remove alignment_power argument.
2768 (sec_merge_add): Add alignment argument.
2769 (sec_merge_emit): Alignment is now a per-entity thing, not per
2771 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2772 for proper alignment.
2773 Pass alignment information to sec_merge_add.
2775 2001-04-24 Christian Groessler <cpg@aladdin.de>
2777 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2778 and R_REL16 reloc types; accept odd values for R_REL16 type
2780 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2782 * cpu-openrisc.c: New file.
2783 * elf32-openrisc.c: Likewise.
2785 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2786 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2787 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2788 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2789 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2790 * Makefile.in: Regenerated.
2791 * config.bfd: (openrisc-*-elf): New target.
2792 * configure.in (bfd_elf32_openrisc_vec): New vector.
2793 * configure: Regenerated.
2794 * libbfd.h: Regenerated.
2795 * bfd-in2.h: Regenerated.
2796 * reloc.c: Add OpenRISC relocations.
2797 * targets.c (bfd_elf32_openrisc_vec): Declare.
2798 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2799 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2800 (bfd_openrisc_arch): Declare.
2801 (bfd_archures_list): Add bfd_openrisc_arch.
2802 * elf.c (prep_headers): Add bfd_arch_openrisc.
2804 2001-04-23 Bo Thorsen <bo@suse.de>
2806 * elf64-x86-64.c: Add c++ vtable hack.
2807 Small whitespace and comment changes.
2809 2001-04-19 Andreas Jaeger <aj@suse.de>
2811 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2812 (elf64_x86_64_plt_entry): Likewise.
2813 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2814 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2816 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2818 * elf32-cris.c: Tweak comments related to dynamic linking.
2819 (cris_elf_relocate_section): When not creating shared object, fill
2820 in the .got table for any symbol not in the dynamic symbol table.
2821 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2822 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2824 (cris_elf_check_relocs): Use variable r_type in all places rather
2825 than the original expression. Add default case in switch for
2827 (elf_cris_size_dynamic_sections): Iterate over
2828 elf_cris_discard_excess_program_dynamics when not creating shared
2830 (elf_cris_discard_excess_dso_dynamics): Renamed from
2831 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2832 (elf_cris_discard_excess_program_dynamics): New.
2834 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2836 * coffcode.h (coff_write_object_contents): Use
2837 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2839 2001-04-14 H.J. Lu <hjl@gnu.org>
2841 * bfd-in2.h: Regenerate.
2843 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2845 * section.c (STD_SECTION): Add entsize.
2847 2001-04-13 H.J. Lu <hjl@gnu.org>
2849 * section.c (SEC_MERGE): Define new flag for merging.
2850 (SEC_STRINGS): Likewise.
2851 (entsize): New field.
2853 2001-04-13 Roger Sayle <roger@metaphorics.com>
2855 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2856 flag on pe-i386 targets.
2858 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2860 * libbfd-in.h (_bfd_merge_section): New.
2861 (_bfd_write_merged_section): New.
2862 (_bfd_merged_section_offset): New.
2863 * libbfd.h: Rebuilt.
2864 * linker.c (_bfd_generic_link_output_symbols): Handle
2866 * aoutx.h (aout_link_write_symbols): Likewise.
2867 * pdp11.c (aout_link_write_symbols): Likewise.
2868 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2869 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2871 (elf_link_sec_merge_syms): New.
2872 (elf_link_input_bfd): Call _bfd_merged_section_offset
2873 and _bfd_write_merged_section.
2874 Handle discard_sec_merge.
2875 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2877 (struct bfd_elf_section_data): Likewise.
2878 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2879 SEC_STRINGS section flags and entsize from their ELF counterparts.
2880 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2881 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2882 from their BFD counterparts.
2883 * merge.c: New file.
2884 * Makefile.am: Add strtab.lo.
2885 * Makefile.in: Rebuilt.
2887 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2889 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2890 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2892 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2894 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2895 endian MIPS ELF target.
2896 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2899 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2900 64bit big endian MIPS ELF target.
2901 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2902 endian MIPS ELF target.
2903 * configure: Regenerated.
2905 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2906 little endian targets.
2907 (mips_elf_sym_is_global): Handle traditional targets.
2909 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2910 64bit big endian MIPS ELF target.
2911 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2912 endian MIPS ELF target.
2914 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2915 and bfd_elf64_tradlittlemips_vec.
2917 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2919 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2920 ordinary "progbits" section.
2922 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2924 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2925 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2927 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2929 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2931 2001-03-30 H.J. Lu <hjl@gnu.org>
2933 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2934 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2936 2001-03-26 H.J. Lu <hjl@gnu.org>
2938 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2939 if there are any relocations for generic ELF.
2940 (bfd_elf32_bfd_link_add_symbols): Defined to
2941 elf32_generic_link_add_symbols.
2942 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2943 if there are any relocations for generic ELF.
2944 (bfd_elf64_bfd_link_add_symbols): Defined to
2945 elf64_generic_link_add_symbols.
2947 2001-03-23 Nick Clifton <nickc@redhat.com>
2949 * Makefile.am (BUILD_CFILES): New variable: List of C source
2950 files created in build directory.
2951 (BUILD_HFILES): New variable: List of header files created in
2954 (po/POTFILES.in): Replace rule with empty entry.
2955 (po/SRC-POTFILES.in): New rule: Create a list of source files
2956 in the source directory.
2957 (po/BLD-POTFILES.in): New rule: Create a list of source files
2958 in the build directory.
2959 (MOSTLYCLEAN): Do not delete source files created in build
2961 * Makefile.in: Regenerate.
2962 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2964 * configure: Regenerate.
2966 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2968 Add .. to the search path when building bfd.pot.
2969 Delete POTFILES when performing distclean.
2970 Add comment describing why distclean is broken in maintainer mode.
2971 * po/POTFILES.in: Delete.
2972 * po/SRC-POTFILES.in: New file.
2973 * po/BLD-POTFILES.in: New file.
2974 * po/bfd.pot: Regenerate.
2976 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2978 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2979 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2980 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2981 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2982 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2983 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2985 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2986 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2987 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2988 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2989 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2990 New HOWTO members for new relocs.
2991 (cris_reloc_map): Map new relocs.
2992 (ELF_DYNAMIC_INTERPRETER): Define.
2993 (PLT_ENTRY_SIZE): Define.
2994 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2995 elf_cris_pic_plt_entry): New, PLT templates.
2996 (struct elf_cris_pcrel_relocs_copied, struct
2997 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2998 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2999 (cris_final_link_relocate): Check that 16-bit GOT relocs have
3000 positive values. Adjust PCREL relocs to be relative to location
3002 (cris_elf_relocate_section): Handle relocations to dynamic
3003 objects. Handle new relocations. Call error handler when seeing
3004 non-PIC relocation for read-only sections while generating shared
3006 (cris_elf_check_relocs): Set reference counts for GOT and PLT
3008 (bfd_elf32_bfd_link_hash_table_create,
3009 elf_backend_adjust_dynamic_symbol,
3010 elf_backend_size_dynamic_sections,
3011 elf_backend_finish_dynamic_symbol,
3012 elf_backend_finish_dynamic_sections,
3013 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
3014 elf_backend_hide_symbol, elf_backend_want_got_plt,
3015 elf_backend_plt_readonly, elf_backend_want_plt_sym,
3016 elf_backend_got_header_size, elf_backend_plt_header_size):
3019 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
3020 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
3021 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3022 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3023 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3024 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3025 * bfd-in2.h, libbfd.h: Regenerate.
3027 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3029 (_bfd_mips_elf_relocate_section): Give a better error message when
3030 a relocation is not recognized.
3032 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3034 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3035 non-NULL before attempting to dereference.
3037 2001-03-20 H.J. Lu <hjl@gnu.org>
3039 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3040 * configure: Rebuild.
3042 2001-03-20 Andreas Schwab <schwab@suse.de>
3044 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3045 relocation value when resolving a reference from a debugging
3048 2001-03-16 Scott Thomason <SThomaso@hii.com>
3050 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3051 (xcoff64_swap_sym_out): Fix syntax errors.
3053 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3055 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3057 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3059 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3060 (hppa_link_hash_newfunc): Init it.
3061 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3062 section appears to be non-PIC.
3063 (final_link_relocate): Likewise.
3064 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3065 possible candidate function, and set pic_call for those that will
3066 only have a .plt entry for the PIC call stub.
3067 (hppa_handle_PIC_calls): Set maybe_pic_call.
3069 2001-03-12 DJ Delorie <dj@redhat.com>
3071 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3072 R_SH_DIR8WP* relocs if they're against external symbols, else
3073 they're just for relaxing. Validate the reloc values.
3075 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3077 * binary.c (bfd_external_binary_architecture): Declare.
3078 (binary_object_p): If bfd_external_binary_architecture is defined,
3079 set the architecture to this string.
3081 2001-03-11 Philip Blundell <philb@gnu.org>
3083 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3084 entries that could serve as a definition for a weak symbol.
3086 2001-03-08 Nick Clifton <nickc@redhat.com>
3088 * Most files: Update copyright notices using Perl script created
3089 by Kevin Buettner <kevinb@redhat.com>.
3091 2001-03-07 Nick Clifton <nickc@redhat.com>
3093 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3094 prior patch on ! defined OLD_ARM_ABI.
3096 2001-03-07 Andreas Jaeger <aj@suse.de>
3098 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3099 some relocation values.
3101 2001-03-06 Nick Clifton <nickc@redhat.com>
3103 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3104 of offset in BLX(1) instruction.
3105 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3106 offset in BLX(1) instruction.
3109 2001-03-06 Nick Clifton <nickc@redhat.com>
3111 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3112 BFD_RELOC_THUMB_PCREL_BLX.
3114 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3116 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3117 * bfd-in2.h: Regenerate.
3118 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3119 * ieee.c (ieee_write_processor): Set proper id for
3122 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3124 * configure.in: Add s390 target.
3125 * configure: Regenerate.
3127 2001-02-28 Andreas Jaeger <aj@suse.de>
3129 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3132 2001-02-28 Philip Blundell <pb@futuretv.com>
3134 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3135 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3137 2001-02-27 H.J. Lu <hjl@gnu.org>
3139 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3140 abfd->tdata.aout_data == NULL.
3142 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3144 * elf32-hppa.c: Correct field selector in stub comments.
3145 (clobber_millicode_symbols): Formatting fix.
3147 * configure.in: Bump version to 2.11.90.
3148 * configure: Regenerate.
3149 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3150 (CFILES): $SOURCE_CFILES + generated C files.
3151 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3153 * Makefile.in: Regenerate.
3154 * doc/Makefile.in: This too.
3156 2001-02-26 Timothy Wall <twall@cygnus.com>
3158 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3161 2001-02-26 Nick Clifton <nickc@redhat.com>
3163 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3164 up, replacing multiple if statements with a switch.
3165 (handle_COMDAT): New function.
3167 2001-02-26 H.J. Lu <hjl@gnu.org>
3169 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3170 a warning for section flags we do not handle instead of
3173 2001-02-26 Andreas Jaeger <aj@suse.de>
3175 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3177 2001-02-22 Timothy Wall <twall@cygnus.com>
3179 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3180 * configure.in: Add objects for elf64_ia64_aix vectors.
3181 * configure: Regenerated.
3182 * configure.host: Recognize ia64-*-aix*.
3183 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3184 for AIX. AIX5 requires most relocations to be dynamic (*all*
3185 binaries are somewhat similar to shared libraries).
3186 * targets.c: Add elf64_ia64_aix vectors.
3188 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3190 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3191 C8 said "1" instead of "8". Clarify error string for IMM22:
3192 "signed integer" instead of just "integer".
3194 2001-02-20 Andreas Jaeger <aj@suse.de>
3196 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3197 PLT entries that could serve as a definition for a weak symbol.
3199 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3201 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3202 entries that could serve as a definition for a weak symbol.
3203 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3205 2001-02-18 David O'Brien <obrien@FreeBSD>
3207 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3208 FreeBSD/i386-CURRENT differently until I can figure out the needed
3210 * configure: Regenerate.
3211 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3212 FreeBSD/PowerPC, and FreeBSD/sparc64.
3214 2001-02-18 lars brinkhoff <lars@nocrew.org>
3216 * Makefile.am: Add PDP-11 a.out target.
3217 * config.bfd: Likewise.
3218 * configure.in: Likewise.
3219 * targets.c: Likewise.
3220 * archures.c: Likewise.
3221 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3222 * libbfd.h: Add PDP-11 relocations.
3223 * reloc.c: Likewise.
3224 * cpu-pdp11.c: New file.
3225 * pdp11.c: New file.
3227 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3228 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3229 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3230 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3231 (GET_MAGIC): New macro.
3232 (PUT_MAGIC): Likewise.
3233 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3235 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3237 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3238 multiarch needs it).
3240 2001-02-18 H.J. Lu <hjl@gnu.org>
3242 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3245 2001-02-18 Kazu Hirata <kazu@hxi.com>
3247 * vms-misc.c: Fix formatting.
3249 2001-02-16 Kazu Hirata <kazu@hxi.com>
3251 * vms.c: Fix formatting.
3253 2001-02-14 H.J. Lu <hjl@gnu.org>
3255 * elf.c (elf_find_function): New function.
3256 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3257 the file name and function name.
3259 2001-02-14 Nick Clifton <nickc@redhat.com>
3261 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3264 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3265 (BFD64_BACKENDS): Add pepigen.c
3266 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3268 * Makefile.in: Regenerate.
3269 * configure: Regenerate.
3270 * po/POTFILES.in: Regenerate.
3271 * po/bfd.pot: Regenerate.
3273 2001-02-14 H.J. Lu <hjl@gnu.org>
3275 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3276 force_minimum_alignment.
3278 2001-02-14 Bo Thorsen <bo@suse.de>
3280 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3281 (elf64_86_64_size_info): Struct added to fix a problem
3282 with the hashtable string entries.
3283 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3284 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3285 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3286 remove the FIXME for this.
3287 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3288 section. Also removed the FIXME for it.
3289 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3290 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3291 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3293 2001-02-13 Richard Henderson <rth@redhat.com>
3295 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3296 and not user provided.
3298 2001-02-13 Kazu Hirata <kazu@hxi.com>
3300 * vms.c (vms_print_symbol): Remove unreachable code.
3302 * rs6000-core.c: Fix formatting.
3304 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3306 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3307 as _bfd_XXi_only_swap_filehdr_out.
3308 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3309 pe->force_minimum_alignment to TRUE.
3310 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3311 PEI_TARGET_SUBSYSTEM.
3312 (pe_print_private_bfd_data): Call
3313 _bfd_XX_print_private_bfd_data_common() instead of
3314 _bfd_pe_print_private_bfd_data_common().
3315 (pe_bfd_copy_private_bfd_data): Call
3316 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3317 _bfd_pe_bfd_copy_private_bfd_data_common().
3318 (coff_bfd_copy_private_section_data): Define as
3319 _bfd_XX_bfd_copy_private_section_data instead of
3320 _bfd_pe_bfd_copy_private_section_data.
3321 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3322 of a _bfd_pe_get_symbol_info.
3326 * peXXigen.c: Renamed from peigen.c.
3327 (COFF_WITH_XX): Define this macro (will get expanded into
3328 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3329 compiled as peigen.c or pepigen.c.
3330 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3331 define the canonical PEP structures and definitions.
3332 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3333 effect, enforce minimum file and section alignments. If
3334 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3335 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3336 so, by default, this is a no-op).
3338 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3339 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3340 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3341 _bfd_pefoo if it's not defined. Use these macros to define
3344 * libcoff.h (pe_tdata): Add members target_subsystem and
3345 force_minimum_alignment.
3347 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3349 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3351 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3354 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3355 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3358 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3359 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3360 (peigen.c): Add rule to generate from peXXigen.c.
3362 (pepigen.lo): List dependencies for pepigen.lo.
3364 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3366 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3367 $global$ referenced but not defined, set its value here.
3369 2001-02-09 Bo Thorsen <bo@suse.de>
3371 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3373 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3375 (elf64_x86_64_relocate_section): Fix formatting.
3376 (elf64_x86_64_relocate_section): Fix addend for relocation of
3377 R_X86_64_(8|16|32|PC8|PC16|PC32).
3379 2001-02-12 Jan Hubicka <jh@suse.cz>
3381 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3383 2001-02-11 H.J. Lu <hjl@gnu.org>
3385 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3388 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3390 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3391 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3392 relocations against dynsym symbols.
3394 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3395 the R_MIPS_26 relocation.
3396 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3397 the R_MIPS_26 relocation.
3398 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3400 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3401 the R_MIPS_26 relocation.
3402 (mips_elf64_howto_table_rela): Likewise.
3404 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3405 member to mark symbols that have non-CALL relocations against
3407 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3408 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3410 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3411 non-CALL relocation against it is encountered.
3412 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3413 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3414 no_fn_stub is not set.
3416 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3417 information from the real symbol for indirect ones.
3418 Check no_fn_stub to find out if a symbol has a function stub
3421 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3423 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3424 * Makefile.in: Regenerate.
3426 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3428 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3429 true if section name is an unwind table section name.
3430 (elfNN_ia64_additional_program_headers): Count each unwind section
3432 (elfNN_ia64_modify_segment_map): Install one unwind program header
3433 for each unwind separate section. Note: normally the linker
3434 script merges the unwind sections that go into a single segment,
3435 so this still generates at most one unwind program header per
3438 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3439 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3440 (elfNN_ia64_fake_sections): Mark sections with names that start
3441 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3444 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3445 Use it to make sh_info in unwind section point to the text section
3448 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3450 * Makefile.am: Add linux target for S/390.
3451 * archures.c: Likewise.
3452 * bfd-in2.h: Likewise.
3453 * config.bfd: Likewise.
3454 * configure.in: Likewise.
3456 * libbfd.h: Likewise.
3457 * targets.c: Likewise.
3458 * cpu-s390.c: New file.
3459 * elf32-s390.c: New file.
3460 * elf64-s390.c: New file.
3462 2001-02-09 Nick Clifton <nickc@redhat.com>
3464 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3465 ImageBase. This has already been done by coff_swap_hdr_in.
3467 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3469 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3471 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3473 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3474 (sparc64_elf_relocate_section): Likewise.
3476 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3478 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3479 similar to R_SPARC_32.
3480 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3482 2001-02-08 H.J. Lu <hjl@gnu.org>
3484 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3485 relocation entries for weak definitions when building DSO with
3488 2001-02-08 Richard Henderson <rth@redhat.com>
3490 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3491 before visibility. Locally defined protected symbols are not
3494 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3496 * config.bfd: Enable coff64 for rs6000-*. Patch from
3497 <hzoli@austin.ibm.com>.
3499 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3501 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3502 found, do not attempt to find dwarf2 info before returning.
3504 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3506 * elflink.h (is_global_symbol_definition): Rename to
3507 is_global_data_symbol_definition and have it reject function
3509 (elf_link_is_defined_archive_symbol): Use renamed function.
3511 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3513 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3514 * libbfd.h (bfd_target_vector): Likewise.
3515 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3516 make static; create pointer reference named bfd_target_vector.
3517 (_bfd_target_vector_entries): Calculate this based on the array
3518 typed _bfd_target_vector.
3520 2001-02-06 H.J. Lu <hjl@gnu.org>
3522 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3523 internal symbols are not dynamic.
3524 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3526 2001-02-06 Nick Clifton <nickc@redhat.com>
3528 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3529 that it will not be pulled into the list of files that make up
3531 * Makefile.in: Regenerate.
3532 * po/bfd.pot: Regenerate.
3534 2001-02-06 H.J. Lu <hjl@gnu.org>
3536 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3538 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3539 external_PEI_IMAGE_hdr.
3541 2001-02-06 Kazu Hirata <kazu@hxi.com>
3543 * elf-m10200.c: Fix formatting.
3545 2001-02-04 Nick Clifton <nickc@redhat.com>
3547 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3548 rel, it will be handled later on.
3550 2001-02-02 Fred Fish <fnf@ninemoons.com>
3552 * Makefile.in: Fix typo.
3554 2001-02-01 Kazu Hirata <kazu@hxi.com>
3556 * elf-m10300.c: Fix formatting.
3558 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3560 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3561 (elf_backend_get_symbol_type): Define.
3562 (elf64_hppa_object_p): Set architecture and machine from elf
3565 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3567 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3570 2001-01-26 Richard Henderson <rth@redhat.com>
3572 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3573 for non-default visibility.
3574 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3575 delete ugly macro and replace with pretty function.
3577 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3579 * coff-go32.c: Update copyright.
3580 * coff-stgo32.c: Likewise.
3581 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3582 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3583 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3584 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3586 2001-01-25 Kazu Hirata <kazu@hxi.com>
3588 * bfd-in2.h: Rebuild.
3589 * libbfd.h: Likewise.
3591 2001-01-23 H.J. Lu <hjl@gnu.org>
3593 * bfd-in2.h: Rebuild.
3595 2001-01-23 H.J. Lu <hjl@gnu.org>
3597 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3598 is NULL or PRIV(vms_rec) is outside of the buffer.
3600 2001-01-23 Kazu Hirata <kazu@hxi.com>
3602 * coff64-rs6000.c: Fix formatting.
3603 * coff-arm.c: Likewise.
3604 * coffgen.c: Likewise.
3605 * cofflink.c: Likewise.
3606 * coff-mcore.c: Likewise.
3607 * coff-mips.c: Likewise.
3608 * coff-pmac.c: Likewise.
3609 * coff-ppc.c: Likewise.
3610 * coff-rs6000.c: Likewise.
3611 * elf32.c: Likewise.
3612 * elf32-fr30.c: Likewise.
3613 * elf32-i370.c: Likewise.
3614 * elf32-i860.c: Likewise.
3615 * elf32-m32r.c: Likewise.
3616 * elf32-m68k.c: Likewise.
3617 * elf32-mcore.c: Likewise.
3618 * elf32-ppc.c: Likewise.
3619 * elf32-sh.c: Likewise.
3620 * elf32-v850.c: Likewise.
3621 * elf64-alpha.c: Likewise.
3622 * elf64-sparc.c: Likewise.
3623 * elflink.c: Likewise.
3624 * elflink.h: Likewise.
3625 * elf-m10200.c: Likewise.
3626 * elf-m10300.c: Likewise.
3627 * elfxx-ia64.c: Likewise.
3629 * aoutx.h: Fix formatting.
3631 * bfd-in2.h: Likewise.
3632 * bfd-in.h: Likewise.
3633 * cpu-i386.c: Likewise.
3634 * cpu-m68hc11.c: Likewise.
3635 * dwarf2.c: Likewise.
3636 * elf64-x86-64.c: Likewise.
3637 * format.c: Likewise.
3638 * freebsd.h: Likewise.
3640 * hp300hpux.c: Likewise.
3641 * hppabsd-core.c: Likewise.
3642 * hpux-core.c: Likewise.
3644 2001-01-22 Bo Thorsen <bo@suse.de>
3646 * elf64-x86-64.c: Added PIC support for X86-64.
3647 (elf64_x86_64_link_hash_newfunc): Function added.
3648 (elf64_x86_64_link_hash_table_create): Likewise.
3649 (elf64_x86_64_check_relocs): Likewise.
3650 (elf64_x86_64_gc_mark_hook): Likewise.
3651 (elf64_x86_64_gc_sweep_hook): Likewise.
3652 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3653 (elf64_x86_64_size_dynamic_sections): Likewise.
3654 (elf64_x86_64_discard_copies): Likewise.
3655 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3656 (elf64_x86_64_finish_dynamic_sections): Likewise.
3657 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3659 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3661 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3662 * Makefile.in: Regenerate.
3664 2001-01-21 Kazu Hirata <kazu@hxi.com>
3666 * coff-a29k.c: Fix formatting.
3668 2001-01-19 H.J. Lu <hjl@gnu.org>
3670 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3671 relocation section names.
3672 (elf_i386_relocate_section): Report files with bad relocation
3673 section names and return false.
3675 2001-01-17 Bo Thorsen <bo@suse.de>
3677 * targets.c: Alphabetize list of xvecs.
3679 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3681 * config.bfd: Add linux target variant for elfxx-hppa.
3682 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3683 bfd_elf64_hppa_linux_vec.
3684 * configure: Regenerate.
3685 * elf64-hppa.c: Include elf64-target.h again to support linux
3687 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3688 * elf32-hppa.c: Include elf32-target.h again to support linux
3690 (elf32_hppa_post_process_headers): New function.
3691 (elf_backend_post_process_headers): Define.
3692 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3693 bfd_elf32_hppa_linux_vec.
3695 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3696 and data_segment_base fields.
3697 (elf32_hppa_link_hash_table_create ): Init them.
3698 (elf32_hppa_check_relocs): Update comments.
3699 (hppa_record_segment_addr): New function.
3700 (elf32_hppa_relocate_section): Call it.
3701 (final_link_relocate): Handle R_PARISC_SEGREL32.
3702 (elf32_hppa_final_link): New function.
3703 (bfd_elf32_bfd_final_link): Define to call it.
3704 (hppa_unwind_entry_compare): New function.
3705 * cache.c (bfd_open_file): Create files in write+read mode.
3707 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3708 SEGREL32 and numerous other relocs. Change duplicate
3709 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3711 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3714 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3715 .plt entries for DT_INIT and DT_FINI.
3716 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3717 DT_INIT and DT_FINI.
3719 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3720 offsets for stub .plt access if wide mode. Check offset in range.
3722 2001-01-13 Nick Clifton <nickc@redhat.com>
3724 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3727 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3730 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3732 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3733 * configure: Regenerate.
3735 2001-01-11 Peter Targett <peter.targett@arccores.com>
3737 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3738 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3739 * cpu-arc.c (arch_info_struct): Add entries for variants.
3740 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3741 (arc_get_mach) Don't assume machine names prefixed arc- before
3743 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3745 (arc_elf_final_write_processing) Likewise.
3746 (ELF_MACHINE_CODE) Use EM_ARC.
3748 2001-01-10 Nick Clifton <nickc@redhat.com>
3750 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3752 2001-01-07 Philip Blundell <philb@gnu.org>
3754 * README: Replace `bug-gnu-utils@gnu.org' with
3755 `bug-binutils@gnu.org'.
3757 2001-01-04 Kazu Hirata <kazu@hxi.com>
3759 * som.c: Fix formatting.
3761 2001-01-03 Kazu Hirata <kazu@hxi.com>
3763 * ecoffswap.h: Fix formatting.
3764 * elf-bfd.h: Likewise.
3765 * elfarm-nabi.c: Likewise.
3766 * elfarm-oabi.c: Likewise.
3767 * elfcode.h: Likewise.
3768 * elfcore.h: Likewise.
3769 * elflink.c: Likewise.
3770 * elflink.h: Likewise.
3771 * elfxx-ia64.c: Likewise.
3772 * elfxx-target.h: Likewise.
3773 * libbfd.c: Likewise
3774 * linker.c: Likewise.
3775 * lynx-core.c: Likewise.
3777 2001-01-02 Kazu Hirata <kazu@hxi.com>
3779 * pc532-mach.c: Fix formatting.
3780 * pe-arm.c: Likewise.
3781 * pe-i386.c: Likewise.
3782 * pe-mips.c: Likewise.
3783 * pe-ppc.c: Likewise.
3784 * pe-sh.c: Likewise.
3785 * pei-mips.c: Likewise.
3786 * pei-sh.c: Likewise.
3787 * peicode.h: Likewise.
3788 * ppcboot.c: Likewise.
3789 * ptrace-core.c: Likewise.
3791 2001-01-01 Kazu Hirata <kazu@hxi.com>
3793 * reloc.c: Fix formatting.
3794 * riscix.c: Likewise.
3795 * rs6000-core.c: Likewise.
3796 * xcoff-target.h: Likewise.
3798 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3800 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3801 error, by calling bfd_default_set_arch_mach with incoming
3804 2000-12-26 Kazu Hirata <kazu@hxi.com>
3806 * vaxnetbsd.c: Fix formatting.
3807 * versados.c: Likewise.
3808 * vms-gsd.c: Likewise.
3809 * vms-hdr.c: Likewise.
3810 * vms-misc.c: Likewise.
3812 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3814 * archive.c (coff_write_armap): Don't write more than symbol_count
3815 `archive_member_file_ptr's.
3817 2000-12-25 Kazu Hirata <kazu@hxi.com>
3819 * vms-tir.c: Fix formatting.
3821 2000-12-23 Kazu Hirata <kazu@hxi.com>
3823 * vms.c: Fix formatting.
3826 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3828 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3830 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3832 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3835 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3837 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3839 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3841 * libbfd.c (bfd_get_bits): Added
3842 (bfd_put_bits): Likewise
3843 * bfd-in.h: Declared the above.
3844 * bfd-in2.h: Regenerated.
3846 2000-12-20 Kazu Hirata <kazu@hxi.com>
3848 * targets.c: Fix formatting.
3849 * tekhex.c: Likewise.
3850 * trad-core.c: Likewise.
3852 2000-12-19 Kazu Hirata <kazu@hxi.com>
3854 * sco5-core.c: Fix formatting.
3855 * section.c: Likewise.
3856 * sparclinux.c: Likewise.
3857 * sparclynx.c: Likewise.
3858 * sparcnetbsd.c: Likewise.
3860 * stabs.c: Likewise.
3861 * stab-syms.c: Likewise.
3862 * sunos.c: Likewise.
3864 * sysdep.h: Likewise.
3866 2000-12-18 Nick Clifton <nickc@redhat.com>
3868 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3870 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3871 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3873 2000-12-18 Nick Clifton <nickc@redhat.com>
3875 * vms-misc.c (_bfd_vms_get_record): Add default case to
3878 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3880 * elfcore.h (elf_core_file_p): Move to the start of the program
3881 headers before attempting to read them.
3883 2000-12-14 Kazu Hirata <kazu@hxi.com>
3885 * peigen.c: Fix formatting.
3889 2000-12-13 Kazu Hirata <kazu@hxi.com>
3891 * peigen.c: Fix formatting.
3893 2000-12-12 Jim Wilson <wilson@redhat.com>
3895 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3897 2000-12-08 Mark Salter <msalter@redhat.com>
3899 * binary.c (binary_set_section_contents): Ignore sections
3902 2000-12-12 Kazu Hirata <kazu@hxi.com>
3904 * m68klinux.c: Fix formatting.
3905 * m68knetbsd.c: Likewise.
3906 * mipsbsd.c: Likewise.
3907 * netbsd-core.c: Likewise.
3908 * netbsd.h: Likewise.
3909 * newsos3.c: Likewise.
3910 * nlm32-alpha.c: Likewise.
3911 * nlm32-i386.c: Likewise.
3912 * nlm32-ppc.c: Likewise.
3913 * nlm32-sparc.c: Likewise.
3914 * nlmcode.h: Likewise.
3915 * nlmswap.h: Likewise.
3916 * nlm-target.h: Likewise.
3917 * ns32knetbsd.c: Likewise.
3919 2000-12-10 Fred Fish <fnf@be.com>
3921 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3922 symbols in shared objects if allow_shlib_undefined is true.
3924 2000-12-12 Nick Clifton <nickc@redhat.com>
3926 * cpu-sh.c: Fix formattng.
3927 * elf.c: Fix formattng.
3928 * elf32-mips.c: Fix formattng.
3929 * elf32-sh.c: Fix formattng.
3930 * elf64-alpha.c: Fix formattng.
3932 2000-12-09 Nick Clifton <nickc@redhat.com>
3934 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3935 dwarf2_find_line_info as last parameter to invocation of
3936 _bfd_dwarf2_find_nearest_line.
3937 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3938 dwarf2_find_line_info as last parameter to invocation of
3939 _bfd_dwarf2_find_nearest_line.
3941 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3943 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3944 (BFD_LIBS): ...to here.
3945 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3946 (BFD_LIBS_CFILES): ...to here.
3947 * Makefile.in: Regenerate.
3948 * configure.in: Remove dwarf.lo from the elf shell variable.
3949 * configure: Regenerate.
3950 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3951 * libcoff.h: Regenerate.
3952 * coffgen.c (coff_find_nearest_line): Call
3953 _bfd_dwarf2_find_nearest_line.
3954 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3956 (read_abbrevs): Likewise
3957 (decode_line_info): Likewise.
3958 (parse_comp_unit): Likewise.
3959 (comp_unit_find_nearest_line): Likewise.
3960 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3961 * libbfd.h: Regenerate.
3962 * elf.c (_bfd_elf_find_nearest_line): Update call.
3963 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3964 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3965 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3966 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3967 (styp_to_sec_flags): Handle DWARF2 sections.
3968 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3969 to _bfd_find_nearest_line.
3970 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3971 call to _bfd_find_nearest_line.
3973 2000-12-08 Kazu Hirata <kazu@hxi.com>
3975 * coffgen.c: Fix formatting.
3976 * elf-m10300.c: Likewise.
3977 * elf32-i386.c: Likewise.
3978 * elf32-i960.c: Likewise.
3979 * elf32-m68k.c: Likewise.
3980 * elf32-mcore.c: Likewise.
3981 * elf32-ppc.c: Likewise.
3982 * elf32-sh.c: Likewise.
3983 * elf32-sparc.c: Likewise.
3984 * elf32-v850.c: Likewise.
3985 * elf64-alpha.c: Likewise.
3986 * elf64-hppa.c: Likewise.
3987 * elf64-mips.c: Likewise.
3988 * elf64-sparc.c: Likewise.
3990 2000-12-07 Kazu Hirata <kazu@hxi.com>
3992 * elf32-ppc.c: Fix formatting.
3993 * elf64-x86-64.c: Likewise.
3995 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3997 From Ralf Baechle <ralf@gnu.org>
3999 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
4000 BFDs containing no sections or empty .text, .data or .bss sections
4001 to be merged, regardless of their flags.
4003 2000-12-06 Kazu Hirata <kazu@hxi.com>
4005 * elf32-m32r.c: Fix formatting.
4006 * elf32-m68hc11.c: Likewise.
4007 * elf32-m68hc12.c: Likewise.
4008 * elf32-m68k.c: Likewise.
4009 * elf32-mcore.c: Likewise.
4010 * elf32-pj.c: Likewise.
4011 * elf32-ppc.c: Likewise.
4013 2000-12-05 Kazu Hirata <kazu@hxi.com>
4015 * elf32-fr30.c: Fix formatting.
4016 * elf32-hppa.c: Likewise.
4017 * elf32-i370.c: Likewise.
4018 * elf32-i386.c: Likewise.
4019 * elf32-i860.c: Likewise.
4020 * elf32-i960.c: Likewise.
4022 2000-12-03 Kazu Hirata <kazu@hxi.com>
4024 * elf32-arm.h: Fix formatting.
4025 * elf32-avr.c: Likewise.
4026 * elf32-cris.c: Likewise.
4027 * elf32-d10v.c: Likewise.
4028 * elf32-d30v.c: Likewise.
4029 * elf-hppa.h: Likewise.
4030 * elf-m10200.c: Likewise.
4031 * elf-m10300.c: Likewise.
4033 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4035 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4036 bfd_mach_mips32_4k. Update FIXME comment.
4037 * archures.c (bfd_mach_mips32): New constant.
4038 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4039 the latter, renumber it.
4040 * bfd-in2.h (bfd_mach_mips32): New constant.
4041 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4042 the latter, renumber it.
4043 * cpu-mips.c (I_mips32): New constant.
4044 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4045 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4046 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4047 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4048 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4049 with E_MIPS_MACH_MIPS32_4K.
4050 (_bfd_mips_elf_final_write_processing): Replace
4051 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4052 bfd_mach_mips32 case.
4053 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4054 comparison with support for MIPS32.
4055 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4058 * aoutx.h (NAME(aout,machine_type)): Add cases for
4059 bfd_mach_mips5 and bfd_mach_mips64.
4060 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4061 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4062 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4063 (arch_info_struct): Add entries for bfd_mach_mips5 and
4065 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4066 _bfd_mips_elf_print_private_bfd_data): Add cases for
4067 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4068 (_bfd_mips_elf_final_write_processing): Add cases for
4069 bfd_mach_mips5 and bfd_mach_mips64.
4071 * aoutx.h (NAME(aout,machine_type)): Add a
4072 bfd_mach_mips_sb1 case.
4073 * archures.c (bfd_mach_mips_sb1): New constant.
4074 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4075 * cpu-mips.c (I_sb1): New constant.
4076 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4077 * elf32-mips.c (elf_mips_mach): Add case for
4079 (_bfd_mips_elf_final_write_processing): Add case for
4082 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4084 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4085 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4086 (sparc*-*-rtems*): Switched from a.out to ELF.
4088 2000-11-30 Jan Hubicka <jh@suse.cz>
4090 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4091 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4092 (elf64-x86-64.lo): Add dependencies.
4093 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4094 bfd_mach_x86_64_intel_syntax.
4095 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4096 * config.bfd (x86_64): Add.
4097 * configure.in: Add support for bfd_elf64_x86_64_vec.
4098 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4099 (bfd_i386_arch, i8086_ar): Link in.
4100 * elf64-x86-64.c: New file.
4101 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4102 * targets.c (bfd_elf64_x86_64_vec): Add.
4103 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4105 2000-11-30 Kazu Hirata <kazu@hxi.com>
4107 * xcofflink.c: Fix formatting.
4109 2000-11-28 Kazu Hirata <kazu@hxi.com>
4111 * aoutx.h: Fix formatting.
4112 * bfd-in.h: Likewise.
4113 * bfd-in2.h: Likewise.
4114 * cache.c: Likewise.
4115 * cisco-core.c: Likewise.
4116 * coff64-rs6000.c: Likewise.
4117 * coffcode.h: Likewise.
4118 * coffswap.h: Likewise.
4119 * corefile.c: Likewise.
4120 * elf32-mips.c: Likewise.
4122 2000-11-27 Kazu Hirata <kazu@hxi.com>
4124 * aout-adobe.c: Fix formatting.
4125 * coff64-rs6000.c: Likewise.
4126 * coffgen.c: Likewise.
4127 * cofflink.c: Likewise.
4129 2000-11-27 Philip Blundell <pb@futuretv.com>
4131 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4132 (obj_coff_strings_written): New accessor macro for above.
4133 * libcoff.h: Regenerate.
4134 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4136 * coffcode.h (coff_write_object_contents): No need to write out
4137 the string table if it's already been done.
4139 2000-11-22 Philip Blundell <pb@futuretv.com>
4141 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4142 weak undefined symbols.
4144 2000-11-24 Nick Clifton <nickc@redhat.com>
4146 * archures.c (bfd_mach_arm_5TE): Define.
4147 (bfd_mach_arm+XScale): Define.
4148 * bfd-in2.h: Regenerate.
4150 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4151 BFD_RELOC_ARM_PCREL_BLX.
4153 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4154 XScale machine numbers.
4156 * config.bfd (xscale-elf): Add target.
4157 (xscale-coff): Add target.
4159 * cpu-arm.c: Add xscale machine name.
4160 Add v5t, v5te and XScale machine numbers.
4162 2000-11-23 Kazu Hirata <kazu@hxi.com>
4164 * aix386-core.c: Fix formatting.
4166 2000-11-22 Jim Wilson <wilson@redhat.com>
4168 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4169 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4170 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4171 (ins_imms_scaled): Initialize sign_bit at function entry.
4172 (elf64_ia64_operands): Add missing initializers.
4173 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4174 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4175 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4176 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4177 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4179 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4180 and free_extsyms at function entry.
4181 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4182 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4183 (get_got): Delete unused local srel.
4184 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4185 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4187 2000-11-21 Kazu Hirata <kazu@hxi.com>
4189 * coff-a29k.c: Fix formatting.
4190 * coff-h8500.c: Likewise.
4191 * coff-i960.c: Likewise.
4192 * coff-ppc.c: Likewise.
4193 * coff-rs6000.c: Likewise.
4194 * coff-stgo32.c: Likewise.
4195 * coff-tic54x.c: Likewise.
4196 * coff-w65.c: Likewise.
4197 * cpu-h8500.c: Likewise.
4198 * cpu-hppa.c: Likewise.
4199 * cpu-ns32k.c: Likewise.
4200 * ecoff.c: Likewise.
4201 * ecofflink.c: Likewise.
4203 2000-11-21 Nick Clifton <nickc@redhat.com>
4205 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4206 remove possibility of infinite loop.
4208 2000-11-20 Kazu Hirata <kazu@hxi.com>
4210 * aix386-core.c: Fix formatting.
4211 * aout-adobe.c: Likewise.
4212 * aout-arm.c: Likewise.
4213 * aout-encap.c: Likewise.
4214 * aout-ns32k.c: Likewise.
4215 * aout-target.h: Likewise.
4216 * aout-tic30.c: Likewise.
4217 * aoutf1.h: Likewise.
4218 * aoutx.h: Likewise.
4219 * archive.c: Likewise.
4220 * bfd-in.h: Likewise.
4221 * bfd-in2.h: Likewise.
4225 2000-11-17 H.J. Lu <hjl@gnu.org>
4227 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4228 pltoff entries for DT_INIT and DT_FINI.
4229 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4230 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4233 2000-11-16 Richard Henderson <rth@redhat.com>
4235 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4236 (allocate_dynrel_entries): Likewise.
4237 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4238 (set_pltoff_entry): Likewise.
4239 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4240 (elfNN_ia64_reloc_type_lookup): Likewise.
4241 (elfNN_ia64_install_value): Likewise.
4242 (elfNN_ia64_relocate_section): Likewise.
4243 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4244 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4246 2000-11-16 Kazu Hirata <kazu@hxi.com>
4248 * cpu-a29k.c: Fix formatting.
4249 * cpu-alpha.c: Likewise.
4250 * cpu-arm.c: Likewise.
4251 * cpu-avr.c: Likewise.
4252 * cpu-d10v.c: Likewise.
4253 * cpu-h8500.c: Likewise.
4254 * cpu-hppa.c: Likewise.
4255 * cpu-i370.c: Likewise.
4256 * cpu-i386.c: Likewise.
4257 * cpu-i960.c: Likewise.
4258 * cpu-ia64-opc.c: Likewise.
4259 * cpu-ia64.c: Likewise.
4260 * cpu-m32r.c: Likewise.
4261 * cpu-m68hc11.c: Likewise.
4262 * cpu-m68hc12.c: Likewise.
4263 * cpu-m68k.c: Likewise.
4264 * cpu-m88k.c: Likewise.
4265 * cpu-mips.c: Likewise.
4266 * cpu-ns32k.c: Likewise.
4267 * cpu-pj.c: Likewise.
4268 * cpu-powerpc.c: Likewise.
4269 * cpu-sh.c: Likewise.
4270 * cpu-sparc.c: Likewise.
4271 * cpu-tic54x.c: Likewise.
4272 * cpu-v850.c: Likewise.
4273 * cpu-vax.c: Likewise.
4274 * cpu-w65.c: Likewise.
4275 * cpu-we32k.c: Likewise.
4276 * cpu-z8k.c: Likewise.
4277 * dwarf1.c: Likewise.
4278 * dwarf2.c: Likewise.
4280 2000-11-15 Kazu Hirata <kazu@hxi.com>
4282 * coff-arm.c: Fix formatting.
4283 * coff-ppc.c: Likewise.
4284 * coff-rs6000.c: Likewise.
4285 * coff-sh.c: Likewise.
4286 * coff-sparc.c: Likewise.
4287 * coff-tic30.c: Likewise.
4288 * coff-tic54x.c: Likewise.
4289 * coff-tic80.c: Likewise.
4290 * coff-w65.c: Likewise.
4291 * coff-we32k.c: Likewise.
4292 * coff-z8k.c: Likewise.
4294 2000-11-15 Richard Henderson <rth@redhat.com>
4296 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4297 section with the same ALLOC|LOAD flags as the source section.
4299 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4301 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4302 by STO_ALPHA constants.
4304 2000-11-14 Kazu Hirata <kazu@hxi.com>
4306 * coff-pmac.c: Fix formatting.
4307 * coff-ppc.c: Likewise.
4309 2000-11-13 H.J. Lu <hjl@gnu.org>
4311 * elflink.h (elf_link_add_object_symbols): Also add indirect
4312 symbols for common symbols with the default version.
4314 2000-11-09 Philip Blundell <pb@futuretv.com>
4316 * section.c (STD_SECTION): Set gc_mark flag.
4318 2000-11-11 Kazu Hirata <kazu@hxi.com>
4320 * coff-i960.c: Likewise.
4321 * coff-m68k.c: Likewise.
4322 * coff-m88k.c: Likewise.
4323 * coff-mcore.c: Likewise.
4324 * coff-mips.c: Likewise.
4326 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4328 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4330 2000-11-10 Kazu Hirata <kazu@hxi.com>
4332 * coff-h8300.c: Fix formatting.
4333 * coff-h8500.c: Likewise.
4334 * coff-i386.c: Likewise.
4335 * coff-i860.c: Likewise.
4336 * coff-i960.c: Likewise.
4337 * coff-ia64.c: Likewise.
4339 2000-11-09 Kazu Hirata <kazu@hxi.com>
4341 * archive.c: Fix formatting.
4342 * archures.c: Likewise.
4344 2000-11-07 Richard Henderson <rth@redhat.com>
4346 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4347 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4348 * section.c (bfd_set_section_contents): Call memcpy if
4349 section->contents set and location not equal to contents plus offset.
4351 2000-11-08 Kazu Hirata <kazu@hxi.com>
4353 * bfd-in.h: Fix formatting.
4354 * bfd-in2.h: Likewise.
4356 * binary.c: Likewise.
4358 * coff-a29k.c: Likewise.
4359 * coff-alpha.c: Likewise.
4360 * coff-apollo.c: Likewise.
4361 * coff-aux.c: Likewise.
4363 2000-11-07 Kazu Hirata <kazu@hxi.com>
4365 * aix386-core.c: Fix formatting.
4366 * aoutf1.h: Likewise.
4367 * aoutx.h: Likewise.
4368 * archures.c: Likewise.
4369 * armnetbsd.c: Likewise.
4371 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4373 * coff-h8300.c (special): Adjust reloc address.
4375 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4377 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4378 to differentiate elf32 and elf64 on ia64.
4379 * bfd-in2.h: Regenerate.
4380 * config.bfd: Add target for "ia64*-*-hpux*".
4381 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4382 * configure: Regenerate.
4383 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4384 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4386 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4387 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4388 * Makefile.in: Regnerate.
4389 * elf64-ia64.c: Deleted.
4390 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4392 2000-11-06 Kazu Hirata <kazu@hxi.com>
4394 * aout-adobe.c: Fix formatting.
4395 * aout-arm.c: Likewise.
4396 * aout-cris.c: Likewise.
4397 * aout-encap.c: Likewise.
4398 * aout-ns32k.c: Likewise.
4399 * aout-target.h: Likewise.
4400 * aout-tic30.c: Likewise.
4402 2000-11-05 Philip Blundell <philb@gnu.org>
4404 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4405 BFDs containing no sections to be merged, regardless of their flags.
4407 2000-11-04 Philip Blundell <philb@gnu.org>
4409 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4410 if a relocation for an undefined symbol also results in an
4413 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4415 * config.bfd: Add support for Sun Chorus.
4417 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4419 * configure.in: Recognize alpha-*-freebsd*.
4420 * configure: Regenerate.
4422 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4424 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4425 (Chunk): New global variable set by a parameter in objcopy.c.
4426 (S3Forced): New global variable set by a parameter in
4428 (srec_set_section_contents): If S3Forced is true, always generate
4430 (srec_write_section): Use 'Chunk' to limit maximum length of S
4433 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4435 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4436 * Makefile.in: Regenerate.
4437 * bfd-in2.h: Regenerate.
4438 * po/bfd.pot: Regenerate.
4440 2000-10-31 Philip Blundell <philb@gnu.org>
4442 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4443 EF_SOFT_FLOAT if it is defined.
4445 2000-10-27 Philip Blundell <philb@gnu.org>
4447 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4448 attempts to mix PIC code with non-PIC, just mark the output as
4449 being position dependent.
4450 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4451 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4452 all mismatches, not just the first one.
4454 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4456 * ieee.c (ieee_archive_p): Plug one of many possible
4457 memory leaks in error handling.
4459 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4461 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4462 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4464 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4465 sparc64_elf_object_p): Support v9b.
4466 * archures.c: Declare v8plusb and v9b machines.
4468 * cpu-sparc.c: Ditto.
4470 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4472 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4475 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4476 (SYMBOL_CALLS_LOCAL): New macro.
4477 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4478 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4479 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4480 (ppc_elf_relocate_section): Use flag variable to determine
4481 whether the relocation refers to a local symbol.
4482 Test whether a PLTREL24 reloc will produce a reloc by looking
4483 to see whether a PLT entry was made.
4485 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4487 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4488 entries that could serve as a definition for a weak symbol.
4490 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4492 From Ralf Baechle <ralf@gnu.org>
4494 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4495 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4496 against local symbols.
4497 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4499 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4501 * section.c (struct sec): Add kept_section.
4502 (struct bfd_comdat_info): Remove sec, we can use above.
4503 (STD_SECTION): Add initializer.
4504 (bfd_make_section_anyway): Init here too.
4506 * bfd-in2.h: Regenerate.
4508 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4510 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4511 fudge values for discarded link-once section symbols.
4513 * elf64-hppa.c: Include alloca-conf.h
4515 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4517 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4519 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4521 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4523 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4525 2000-10-10 Tom Rix <trix@redhat.com>
4527 * section.c (bfd_make_section_anyway): Release newsect ptr when
4528 newsect->symbol fails to alloc. Use bfd_release instead of free.
4530 2000-10-09 Richard Henderson <rth@cygnus.com
4532 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4533 (elf64_ia64_unwind_entry_compare): New.
4534 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4536 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4538 * elflink.h (size_dynamic_sections): Don't create various tags if
4539 .dynstr is excluded from the link. Don't set first dynsym entry
4540 if dynsymcount is zero.
4541 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4542 .dynsym excluded from the link. Don't try to write any dynamic
4543 sections excluded from the link.
4545 * elf.c (swap_out_syms): Handle global section symbols.
4547 2000-10-05 DJ Delorie <dj@redhat.com>
4549 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4550 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4551 (coff_write_relocs): write extended reloc count
4552 (coff_write_object_contents): account for extended relocs
4554 2000-10-05 Jim Wilson <wilson@cygnus.com>
4556 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4558 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4559 elf_backend_section_flags function.
4560 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4562 (elf64_ia64_section_flags): New function containing flag conversion
4564 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4565 * elfxx-target.h (elf_backend_section_flags): Define.
4566 (elfNN_bed): Initialize elf_backend_section_flags field.
4568 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4570 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4571 _bfd_elf32_gc_record_vtable. Correct a comment.
4573 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4575 From Ralf Baechle <ralf@gnu.org>
4577 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4578 produces binaries with got[1] = 0x80000001 to differenciate them
4579 for the dynamic linker from the broken binaries produced by old
4582 2000-09-30 Petr Sorfa <petrs@sco.com>
4584 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4585 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4586 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4587 * configure: Regenerate.
4589 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4591 Define two bfd_targets for absence and presence of leading
4592 underscore on symbols. Make sure to only link same kind.
4593 * elf32-cris.c (cris_elf_object_p,
4594 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4595 cris_elf_merge_private_bfd_data): New.
4596 (elf_backend_object_p, elf_backend_final_write_processing,
4597 bfd_elf32_bfd_print_private_bfd_data,
4598 bfd_elf32_bfd_merge_private_bfd_data): Define.
4599 <Target vector definition>: Include elf32-target.h twice with
4600 different macro settings:
4601 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4602 bfd_elf32_us_cris_vec.
4603 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4604 (elf_symbol_leading_char): First as 0, then '_'.
4605 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4606 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4607 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4608 * configure: Regenerate.
4609 * targets.c: Declare bfd_elf32_us_cris_vec.
4610 * po/bfd.pot: Regenerate.
4612 2000-09-29 Momchil Velikov <velco@fadata.bg>
4614 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4615 R_ARM_THM_PC22 relocations.
4617 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4619 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4621 2000-09-29 Momchil Velikov <velco@fadata.bg>
4623 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4624 is has the SEC_HAS_CONTENTS flag set.
4626 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4627 Hans-Peter Nilsson <hp@axis.com>
4629 * aout-cris.c (N_TXTADDR): Define.
4631 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4633 * som.c: Include alloca-conf.h.
4634 * Makefile.am: "make dep-am"
4635 * Makefile.in: Regenerate.
4637 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4639 * elf32-hppa.c (plt_stub): New.
4640 (PLT_STUB_ENTRY): Define.
4641 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4642 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4643 (elf32_hppa_link_hash_table_create): Init to suit.
4644 (elf32_hppa_check_relocs): Set has_12bit_branch and
4645 has_17bit_branch as appropriate.
4646 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4647 non-local functions.
4648 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4649 Add space for plt_stub as needed.
4650 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4651 functions at plt_stub.
4652 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4653 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4655 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4656 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4657 of fixed size, and if negative, disable handling of input sections
4658 before stub section. Set up default stub group size depending
4659 on detected branch relocs.
4660 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4661 ensure different offsets from sym_value aren't rounded to
4662 different 2k blocks. Use lrsel and rrsel for other stubs too for
4663 consistency rather than necessity.
4664 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4665 (final_link_relocate): Likewise.
4666 (elf32_hppa_relocate_section): Likewise.
4668 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4669 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4670 (elf_hppa_final_link_relocate): Handle them.
4671 (elf_hppa_relocate_insn): Likewise.
4672 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4674 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4676 * elfcode.h (elf_object_p): Preserve and clear abfd section
4677 information. Restore at error.
4679 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4681 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4682 is empty, make sure that its rva also 0. NT loader dislikes
4685 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4687 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4690 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4692 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4693 currently unused RELATIVE_DYNAMIC_RELOCS code.
4694 (hppa_discard_copies): Likewise.
4695 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4696 comments. Don't check non-code output sections for stub grouping.
4698 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4700 * section.c (bfd_get_unique_section_name): Return NULL if
4703 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4705 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4706 instruction sequence to actually work.
4707 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4710 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4712 * elf32-sh.c (sh_elf_relocate_section): Use
4713 _bfd_final_link_relocate to apply the relocation against a section
4714 symbol, when doing relocatable links.
4716 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4718 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4720 (stub_hash_newfunc): Here too.
4721 (hppa_add_stub): And here.
4722 (elf32_hppa_link_hash_table): Remove stub_section_created,
4723 reloc_section_created, first_init_sec and first_fini_sec. Add
4725 (elf32_hppa_link_hash_table_create): Init to suit.
4726 (hppa_get_stub_entry): Add support for grouping stub sections.
4727 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4728 section code. Index stub vars by section->id.
4729 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4730 exit paths. Zap allocation of above removed vars. Refine
4733 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4734 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4735 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4736 rather than pointer to bfd_link_info.
4737 (hppa_add_stub): Likewise.
4738 (final_link_relocate): Likewise.
4740 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4742 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4745 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4747 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4748 ld/emulparams/shelf.sh.
4750 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4752 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4753 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4754 * bfd-in2.h: Regenerate.
4756 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4758 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4759 LITUSE relocations incorrectly if -relax is specified on the ld
4760 command line and the displacement field of the load or store
4761 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4763 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4765 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4766 first_fini_sec here.
4767 (elf32_hppa_size_stubs): Instead correctly find the first .init
4768 and .fini section here.
4770 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4772 * elf32-hppa.c (clobber_millicode_symbols): New function.
4773 (elf32_hppa_size_dynamic_sections): Call it.
4775 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4777 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4778 packed. Add plabel, plt_abs packed booleans.
4779 (hppa_link_hash_newfunc): Init new fields.
4780 (PLABEL_PLT_ENTRY_SIZE): Define.
4781 (hppa_stub_name): Use size_t len vars.
4782 (hppa_add_stub): Likewise.
4783 (elf32_hppa_build_stubs): Likewise.
4784 (hppa_build_one_stub): Kill some compiler warnings.
4785 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4786 if dynamic linking. Munge the local plt offsets into
4787 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4788 size_t len vars. Add assert for plabel addend.
4789 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4790 (elf32_hppa_hide_symbol): New function.
4791 (elf_backend_hide_symbol): Define.
4792 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4793 with h->plabel set. Don't make plt entries to have dynamic syms
4794 when they have been forced local. If plt entry is used by a
4795 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4796 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4797 Set up .plt offsets for local syms.
4798 (elf32_hppa_relocate_section): Initialise plt entries for local
4799 syms. Leave weak undefined plabels zero. Make global plabel
4800 relocs against function symbol, and leave the addend zero.
4801 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4802 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4803 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4804 relocs instead of SEGREL32 for dynamic got relocs.
4805 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4806 (elf_backend_got_header_size): Adjust.
4807 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4809 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4810 (hppa_type_of_stub): Use it instead of #if 0
4811 (hppa_discard_copies): Use it here too.
4812 (elf32_hppa_size_dynamic_sections): And here.
4814 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4815 (elf32_hppa_link_hash_table_create): And here.
4816 (hppa_build_one_stub): And here. Instead keep track of stub
4817 offset using _raw_size.
4818 (elf32_hppa_size_stubs): Likewise.
4819 (elf32_hppa_build_stubs): Likewise.
4820 (hppa_size_one_stub): Likewise. Resize reloc section too.
4822 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4823 first_fini_sec handling. Don't search for reloc section or set
4824 hplink->reloc_section_created here.
4825 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4826 set reloc_section_created here.
4827 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4828 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4830 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4832 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4833 with `hplink->root.'.
4834 (elf32_hppa_check_relocs): Likewise.
4835 (elf32_hppa_gc_sweep_hook): Likewise.
4836 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4837 (hppa_handle_PIC_calls): Likewise.
4838 (elf32_hppa_size_dynamic_sections): Likewise.
4839 (elf32_hppa_set_gp): Likewise.
4840 (elf32_hppa_relocate_section): Likewise.
4841 (elf32_hppa_finish_dynamic_symbol): Likewise.
4842 (elf32_hppa_finish_dynamic_sections): Likewise.
4844 From David Huggins-Daines <dhd@linuxcare.com>
4845 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4846 defined weak symbols in shared links.
4847 (final_link_relocate): Calls to defined weak symbols in shared
4848 objects must go via import stubs, as the target might not be known
4851 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4853 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4854 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4855 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4856 the original entries with EMPTY_HOWTOs, and added new ones to fill
4858 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4859 (sh_elf_relocate_section): Likewise.
4861 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4863 * cpu-mips.c (arch_info_struct): Add mips:4K
4864 * bfd-in2.h (bfd_mach_mips4K): New define.
4865 * archures.c: Add bfd_mach_mips4K to comment.
4866 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4867 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4869 2000-09-13 Marco Franzen <marcof@thyron.com>
4871 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4872 use size_t as a counter.
4873 (som_write_space_strings): Similarly.
4875 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4877 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4879 (elf32_i860_relocate_section): Invoke new function from here.
4881 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4883 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4886 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4888 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4889 target section name instead of dumping core when the target symbol is
4892 2000-09-09 Kazu Hirata <kazu@hxi.com>
4894 * riscix.c: Remove DEFUN.
4896 2000-09-08 Nick Clifton <nickc@redhat.com>
4898 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4899 initialise flags in output bfd if the input bfd is the default
4900 architecture with the default flags.
4902 2000-09-08 Kazu Hirata <kazu@hxi.com>
4904 * archive.c: Fix formatting.
4905 * coff-arm.c: Likewise.
4906 * doc/chew.c: Likewise.
4908 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4910 * section.c (bfd_get_unique_section_name): Put a dot before the
4913 2000-09-07 Kazu Hirata <kazu@hxi.com>
4915 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4916 * elf.c: Fix formatting.
4918 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4920 * config.bfd (sh-*-linux*): Added.
4921 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4922 * targets.c: Declare them.
4923 * elf32-sh-lin.c: New file.
4924 * Makefile.am: Compile it.
4925 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4926 * configure, Makefile.in: Rebuilt.
4928 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4930 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4931 pseduo-section when determining where the TOC ends.
4933 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4934 output x_tvndx as it is only two bytes wide.
4936 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4937 reloc is 26 or 32 bits wide.
4939 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4940 for relocs that don't change anything. Also look at the full
4943 2000-09-06 Philip Blundell <philb@gnu.org>
4945 * config.bfd (arm*-*-uclinux*): New target.
4947 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4949 * configure: Rebuilt with new libtool.m4.
4951 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4953 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4954 word for variable name.
4955 * bfd-in2.h: Regenerate.
4957 2000-09-05 Nick Clifton <nickc@redhat.com>
4959 * config.in: Regenerate.
4960 * libbfd.h: Regenerate.
4961 * po/bfd.pot: Regenerate.
4962 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4965 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4967 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4969 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4971 Shared library and PIC support.
4972 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4973 (GOT_ENTRY_SIZE): New.
4974 (ELF_DYNAMIC_INTERPRETER): New.
4975 (STUB_SUFFIX): Define.
4976 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4977 (RELATIVE_DYNAMIC_RELOCS): Define.
4978 (enum elf32_hppa_stub_type): New.
4979 (struct elf32_hppa_stub_hash_entry): Rename offset to
4980 stub_offset. Add a number of new fields.
4981 (struct elf32_hppa_link_hash_entry): New.
4982 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4984 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4985 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4986 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4988 (hppa_link_hash_newfunc): New function.
4989 (elf32_hppa_link_hash_table_create): Use above function. Init new
4991 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4992 instead of addend, and remove sym_name from args. Don't use
4993 symbol name for local syms, instead use sym index.
4994 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4995 stub type rather than size. Pass in hash and handle import stub
4996 case. Also pass in reloc instead of offset so we can calculate
4997 PCREL22F and PCREL12F branches properly.
4998 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4999 import and export stubs too.
5000 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
5001 import and export stub sizing.
5002 (elf32_hppa_check_relocs): New function.
5003 (elf32_hppa_adjust_dynamic_symbol): New function.
5004 (hppa_discard_copies): New function.
5005 (elf32_hppa_size_dynamic_sections): New function.
5006 (elf_backend_size_dynamic_sections): Define.
5007 (elf32_hppa_finish_dynamic_symbol): New function.
5008 (elf_backend_finish_dynamic_symbol): Define.
5009 (elf32_hppa_size_stubs): Stash params in link hash table, and move
5010 some local vars into the link hash table too. For shared links,
5011 trundle over function syms, generating export stubs. Handle
5012 PCREL22F branches. Break out stub creation code from here..
5013 (hppa_add_stub): .. to here. New function.
5014 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
5015 call the bfd linker. Use elf_gp to record global pointer.
5016 Calculate a value from sections if $global$ is missing.
5017 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
5018 (elf32_hppa_gc_mark_hook): New function.
5019 (elf_backend_gc_mark_hook): Define.
5020 (elf32_hppa_gc_sweep_hook): New function.
5021 (elf_backend_gc_sweep_hook): Define.
5022 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5023 Add rel to args, and remove howto, input_bfd, offset, addend,
5024 sym_name as we can recalculate these locally. Handle calls to
5025 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5026 handling of undefined weak syms. Check that stubs are in range.
5027 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5028 message on hitting a DPREL21L reloc that needs fixing. Subtract
5029 off PC for PCREL14F. Break out code that does a stub lookup from
5031 (hppa_get_stub_entry): ..to here. New function.
5032 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5033 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5035 (elf32_hppa_finish_dynamic_sections): New function.
5036 (elf_backend_finish_dynamic_sections): Define.
5037 (elf_backend_final_write_processing) Define.
5038 (hppa_handle_PIC_calls): New function.
5039 (elf32_hppa_build_stubs): Call it. Pass link_info to
5040 hppa_build_one_stub.
5041 (elf32_hppa_create_dynamic_sections): New function
5042 to create .plt and .got then set .plt flags correctly.
5043 (elf_backend_create_dynamic_sections): Define.
5044 (elf32_hppa_object_p): New function.
5045 (elf_backend_object_p): Define.
5046 (elf32_hppa_elf_get_symbol_type): New function.
5047 (elf_backend_get_symbol_type): Define.
5048 (elf_backend_can_gc_sections): Define.
5049 (elf_backend_want_got_plt): Define.
5050 (elf_backend_plt_alignment): Set to 2.
5051 (elf_backend_plt_readonly): Define.
5052 (elf_backend_want_plt_sym): Define.
5053 (elf_backend_got_header_size): Reserve one entry.
5055 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5056 (elf32_hppa_size_stubs): Pass in multi_subspace.
5057 (elf32_hppa_set_gp): Declare.
5059 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5060 (bfd_get_unique_section_name): New function.
5061 * bfd-in2.h: Regenerate.
5063 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5064 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5067 From David Huggins-Daines <dhd@linuxcare.com>
5068 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5069 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5070 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5071 been updated in finish_dynamic_symbol before modifying function
5074 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5075 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5076 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5077 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5078 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5079 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5080 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5081 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5083 From David Huggins-Daines <dhd@linuxcare.com>
5084 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5085 style of local labels as well.
5087 2000-09-03 Philip Blundell <philb@gnu.org>
5089 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5090 references to undefined symbols in debugging sections.
5092 2000-09-02 H.J. Lu <hjl@gnu.org>
5094 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5095 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5096 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5099 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5101 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5102 (elf32_i860_is_local_label_name): New function and prototype.
5104 2000-09-02 Nick Clifton <nickc@redhat.com>
5106 * configure.in: Increase version number to 2.10.91.
5107 * configure: Regenerate.
5108 * aclocal.m4: Regenerate.
5109 * config.in: Regenerate.
5110 * po/bfd.pot: Regenerate.
5112 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5114 * elf.c (_bfd_elf_make_section_from_shdr): Add
5115 .gnu.linkobce.wi. to the list of debug section names.
5117 2000-09-02 Nick Clifton <nickc@redhat.com>
5119 * dwarf2.c (find_debug_info): New function: Locate a section
5120 containing dwarf2 debug information.
5121 (bfd_dwarf2_find_nearest_line): Find all sections containing
5122 debug information and include them in the stash.
5124 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5126 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5127 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5128 (sh_reloc_map): Add new relocs.
5129 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5130 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5131 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5132 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5134 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5135 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5136 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5137 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5138 New array constants.
5139 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5141 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5142 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5143 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5144 elf_sh_plt_reloc_offset): Define.
5145 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5146 elf_sh_link_hash_table): New structs.
5147 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5148 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5150 (elf_backend_create_dynamic_sections,
5151 bfd_elf32_bfd_link_hash_table_create,
5152 elf_backend_adjust_dynamic_symbol,
5153 elf_backend_size_dynamic_sections,
5154 elf_backend_finish_dynamic_symbol,
5155 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5156 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5157 elf_backend_got_header_size, elf_backend_plt_header_size):
5159 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5160 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5162 * bfd-in2.h, libbfd.h: Rebuilt.
5164 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5166 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5169 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5171 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5172 not initialized, set them to indicate the SH1 instruction set.
5174 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5176 * acinclude.m4: Include libtool and gettext macros from the
5178 * aclocal.m4, configure: Rebuilt.
5180 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5182 * elf.c: Eliminate references to __sparcv9 macro; replace with
5183 autoconf variables HAVE_PSINFO32_T etc.
5184 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5185 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5187 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5188 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5189 * aclocal.m4: Ditto.
5190 * configure: Regenerate.
5192 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5194 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5195 for any shared link, not just shared -Bsymbolic.
5196 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5197 any shared link, and pass link info to it.
5198 (elf_i386_size_dynamic_sections): Update comment.
5199 (elf_i386_discard_copies): Modify to discard relocs for symbols
5200 that have been forced local.
5201 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5202 that have been forced local.
5204 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5206 * elflink.h (elf_link_add_object_symbols): Allow common
5207 symbols to have an alignment of 1 if explicitly requested, and
5208 not overridden by other definitions.
5210 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5212 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5213 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5215 2000-08-22 H.J. Lu <hjl@gnu.org>
5217 * elf-bfd.h (elf_link_hash_table): Add runpath.
5219 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5220 * bfd-in2.h: Rebuilt.
5222 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5223 "runpath" field to NULL.
5224 (bfd_elf_get_runpath_list): New function.
5226 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5229 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5231 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5232 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5233 explicitly. Improve validation of r_type.
5235 2000-08-21 H.J. Lu <hjl@gnu.org>
5237 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5238 dynamic allocated content space. Add a comment to remind us that
5239 one day this ought to be fixed.
5240 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5241 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5242 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5244 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5246 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5247 field with the newly relocated value instead of adding it to the
5248 existing immediate field.
5249 (elf32_i860_relocate_splitn): Likewise.
5250 (elf32_i860_relocate_highadj): Likewise.
5252 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5254 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5255 was previously just a stub).
5257 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5259 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5261 (_bfd_elf_create_dynamic_sections): Likewise.
5263 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5265 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5266 for undefined symbols to be the beginning of the section.
5268 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5269 four extra entries at the beginning of the .rela.plt section.
5270 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5271 section to account for the four reserved entries in the .plt section.
5273 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5275 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5276 to the list of NOPs we recognize after a branch-and-link.
5277 Use the ori NOP when one is needed.
5279 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5282 2000-08-14 Jim Wilson <wilson@cygnus.com>
5284 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5285 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5286 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5289 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5291 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5293 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5295 * elf32-i860.c (elf32_i860_relocate_section): New function.
5296 (i860_final_link_relocate): New function.
5297 (elf32_i860_relocate_splitn): New function.
5298 (elf32_i860_relocate_pc16): New function.
5299 (elf32_i860_relocate_highadj): New function.
5300 (elf32_i860_howto): Minor adjustments to some relocations.
5301 (elf_info_to_howto_rel): Define.
5302 (elf_backend_relocate_section): Define.
5304 2000-08-10 Nick Clifton <nickc@cygnus.com>
5306 * elf32-arm.h: Fix formatting.
5308 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5310 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5312 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5314 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5316 2000-08-07 Kazu Hirata <kazu@hxi.com>
5318 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5319 * elf64-ia64.c: Fix a typo.
5321 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5323 * elf32-i860.c (elf32_i860_howto_table): New structure.
5324 (lookup_howto): New function.
5325 (elf32_i860_reloc_type_lookup): New function.
5326 (elf32_i860_info_to_howto_rela): New function.
5327 (elf_code_to_howto_index): New structure.
5328 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5329 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5330 elf32_i860_reloc_type_lookup.
5332 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5334 * som.c (struct fixup_format): Constify `format'.
5335 (som_hppa_howto_table): Use SOM_HOWTO macro.
5336 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5337 (som_bfd_reloc_type_lookup): Likewise.
5338 (compare_subspaces): Remove unused `count1', `count2'.
5339 (som_begin_writing): Remove unused `total_reloc_size'.
5340 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5341 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5342 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5343 (som_find_nearest_line): Decorate unused parameter(s).
5344 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5345 (som_bfd_link_split_section): Likewise.
5347 2000-08-03 Nick Clifton <nickc@cygnus.com>
5349 * section.c: Restore backed out code.
5350 * elf.c: Restore backed out code.
5351 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5352 binaries from working.
5353 * bfd-in2.h: Regenerate.
5355 2000-08-03 H.J. Lu <hjl@gnu.org>
5357 * section.c: Back out the change made by Nick Clifton
5358 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5360 * bfd-in2.h: Likewise.
5363 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5365 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5367 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5369 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5370 * bfd-in2.h, libbfd.h: Regenerate.
5372 2000-07-31 Nick Clifton <nickc@cygnus.com>
5374 * section.c (struct sec): Add new boolean field 'segment_mark'.
5375 (STD_SECTION): Initialise new field to zero.
5377 * bfd-in2.h: Regenerate.
5379 * elf.c (copy_private_bfd_data): Reorganise section to segment
5380 mapping to cope with moved sections requiring new segments,
5381 and overlapping segments.
5382 (SEGMENT_END): New macro: Return the end address of a segment.
5383 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5384 contains a section by comparing their VMA addresses.
5385 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5386 contains a section by comparing their LMA addresses.
5387 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5388 section should be included in a segment.
5389 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5390 follows another in memory.
5391 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5394 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5396 * cpu-i860.c: Added comments.
5398 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5399 bfd_elf32_i860_little_vec.
5400 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5401 (ELF_MAXPAGESIZE): Changed to 4096.
5403 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5405 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5407 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5408 config for little endian elf32 i860.
5409 (targ_defvec): Define for the new config above
5410 as "bfd_elf32_i860_little_vec".
5411 (targ_selvecs): Define for the new config above
5412 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5414 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5417 * configure: Regenerated.
5419 2000-07-27 H.J. Lu <hjl@gnu.org>
5421 * elflink.h (elf_merge_symbol): Take one more argument,
5422 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5423 entry. Don't overide the existing weak definition if dt_needed
5425 (elf_link_add_object_symbols): Pass dt_needed to
5426 elf_merge_symbol ().
5428 2000-07-27 Nick Clifton <nickc@cygnus.com>
5430 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5433 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5435 * configure.host (*-*-aix*): AIX has 'long long' always.
5437 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5438 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5439 (xcoff_write_archive_contents_big): Don't update the offset
5440 of the symbol table, xcoff_write_armap will do it.
5442 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5444 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5445 of dynobj for SGI_COMPAT checks.
5447 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5449 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5450 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5451 * bfd-in2.h: Regenerate.
5453 2000-07-21 Nick Clifton <nickc@cygnus.com>
5455 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5456 range symbol indices in relocs and issue an error message.
5458 2000-07-20 H.J. Lu <hjl@gnu.org>
5460 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5461 info->new_dtags when setting DT_FLAGS_1. It will only be set
5462 by the new linker options. It shouldn't break anything.
5464 2000-07-20 H.J. Lu <hjl@gnu.org>
5466 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5467 only if info->new_dtags is true.
5469 2000-07-20 H.J. Lu <hjl@gnu.org>
5471 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5472 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5474 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5476 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5477 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5478 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5479 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5480 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5481 * Makefile.in: Rebuild.
5482 * aclocal.m4: Rebuild.
5483 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5484 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5485 (bfd_cris_arch): Declare.
5486 (bfd_archures_list): Add bfd_cris_arch.
5487 * bfd-in2.h: Rebuild.
5488 * config.bfd: (cris-*-*): New target.
5489 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5490 * configure: Rebuild.
5491 * elf.c (prep_headers): Add bfd_arch_cris.
5492 * libbfd.h: Rebuild.
5493 * libaout.h (enum machine_type): Add M_CRIS.
5494 * reloc.c: Add CRIS relocations.
5495 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5496 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5497 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5498 * po/POTFILES.in, po/bfd.pot: Regenerate.
5500 2000-07-19 H.J. Lu <hjl@gnu.org>
5502 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5503 DF_TEXTREL if DT_TEXTREL is set.
5504 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5505 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5506 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5507 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5508 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5509 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5510 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5511 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5512 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5513 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5515 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5516 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5518 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5520 2000-07-19 H.J. Lu <hjl@gnu.org>
5522 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5523 * bfd-in2.h: Rebuild.
5525 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5526 (elf_dt_soname): New.
5528 * elf.c (bfd_elf_set_dt_needed_soname): New.
5530 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5531 entry if the shared object loaded by DT_NEEDED is used to
5532 resolve the reference in a regular object.
5534 2000-07-19 H.J. Lu <hjl@gnu.org>
5536 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5537 DT_DEPAUDIT and DT_AUDIT as strings.
5539 2000-07-19 Nick Clifton <nickc@cygnus.com>
5541 * format.c: Fix formatting.
5543 2000-07-19 H.J. Lu <hjl@gnu.org>
5545 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5547 2000-07-19 H.J. Lu <hjl@gnu.org>
5549 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5550 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5551 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5552 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5553 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5554 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5555 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5557 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5559 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5560 renamed functions from here...
5561 (assign_section_numbers): Use renamed functions.
5562 (prep_headers): Use renamed functions.
5564 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5565 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5566 * bfd-in2.h: Regenerate.
5568 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5570 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5571 parenthesis in if statement.
5573 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5575 Enable the support for Traditional MIPS.
5576 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5577 return ict_none appropriately for traditional mips targets.
5578 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5579 (STUB_MOVE): Conditionalize for traditonal mips.
5580 (STUB_LI16): Likewise.
5581 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5582 room for RTPROC header.
5583 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5584 the permission for the PT_DYNAMIC as read, write and execute.
5585 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5586 for traditonal mips.
5587 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5588 _DYNAMIC_LINKING for traditonal mips.
5589 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5590 in case of traditonal mips.
5591 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5592 entry is required. For a function if PLT is not required then set the
5593 corresponding hash table entry to 0.
5594 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5596 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5597 shared object set the value to 0.
5598 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5599 _DYNAMIC_LINKING for traditonal mips.
5600 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5601 for traditonal mips.
5603 2000-07-15 H.J. Lu <hjl@gnu.org>
5605 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5607 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5609 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5610 out a structure that is BFD_IN_MEMORY.
5612 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5614 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5615 bfd pointer. Print section id instead of bfd pointer for local
5616 syms. Prefix addend with `+' for global syms as well as local.
5617 Correct calculation of name component lengths.
5618 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5620 From David Huggins-Daines <dhd@linuxcare.com>
5621 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5622 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5623 (elf64_hppa_modify_segment_map): Likewise.
5625 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5627 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5628 addresses to be "naturally" sign extended. Return -1 if unknown.
5629 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5630 * bfd-in2.h: Regenerate.
5632 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5634 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5635 and ECOF_SIGNED_64 to list ways to extract an offset.
5636 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5637 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5639 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5640 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5642 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5644 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5645 bfd_get_start_address.
5646 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5647 (elf_swap_ehdr_out): Ditto.
5649 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5651 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5652 compatibility with older binutils.
5654 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5656 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5657 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5659 From Ryan Bradetich <rbradetich@uswest.net>
5660 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5661 (parse_line_table): Ditto.
5662 (_bfd_dwarf1_find_nearest_line): Ditto.
5663 * syms.c (cmpindexentry): Remove extra `*' from params.
5665 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5667 * elf32-mips.c (sort_dynamic_relocs): New Function.
5668 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5669 via qsort to sort the dynamic relocations in increasing r_symndx
5672 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5674 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5675 ATTRIBUTE_UNUSED to unused args.
5676 (get_opd): Likewise.
5677 (get_plt): Likewise.
5678 (get_dlt): Likewise.
5679 (get_stub): Likewise.
5680 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5681 (elf64_hppa_link_output_symbol_hook): Likewise.
5682 (elf64_hppa_check_relocs): Delete unused var.
5683 (elf64_hppa_size_dynamic_sections): Likewise.
5684 (elf64_hppa_finalize_opd): Likewise.
5685 (elf64_hppa_finalize_dynreloc): Likewise.
5686 (elf64_hppa_modify_segment_map): Likewise.
5687 (elf64_hppa_finish_dynamic_sections): Likewise.
5689 * elf-hppa.h (elf_hppa_final_write_processing): Add
5690 ATTRIBUTE_UNUSED to unused args.
5691 (elf_hppa_final_link_relocate): Likewise.
5692 (elf_hppa_record_segment_addrs): Add paretheses.
5693 (elf_hppa_relocate_section): Constify dyn_name.
5695 From David Huggins-Daines <dhd@linuxcare.com>
5696 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5697 rearrange case statement so that it gets preferred to 32-bit ones.
5699 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5700 asection->id instead of address of asection structure.
5701 (elf32_hppa_size_stubs): Likewise.
5703 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5704 for .init* and .fini*.
5706 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5707 and addends used in stub names to 32 bits.
5708 (elf32_hppa_size_stubs): Likewise.
5710 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5711 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5712 not bfd_put_64. Fix minor comment typo and formatting.
5714 Changes to create multiple linker stubs, positioned immediately
5715 before the section where they are required.
5716 * elf32-hppa.c: Don't include hppa_stubs.h.
5717 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5718 (elf32_hppa_stub_hash_table): Delete.
5719 (elf32_hppa_link_hash_entry): Delete.
5720 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5721 stub_hash_table, and store the struct here rather than a pointer.
5722 Delete output_symbol_count. Add offset array. Change
5723 global_value to a bfd_vma.
5724 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5725 (elf32_hppa_stub_hash_traverse): Delete.
5726 (elf32_hppa_name_of_stub): Delete.
5727 (elf32_hppa_link_hash_lookup): Delete.
5728 (elf32_hppa_link_hash_traverse): Delete.
5729 (elf32_hppa_stub_hash_table_init): Delete.
5730 (elf32_hppa_size_of_stub): Pass input section and offset rather
5731 than location and calculate location here. Don't pass name as all
5732 stubs are now the same size.
5733 (elf32_hppa_stub_hash_newfunc): Init new fields.
5734 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5736 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5737 comparing against ints. Rewrite stub handling code.
5738 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5739 Case enums to int before comparing against ints. Remove
5740 bfd_reloc_dangerous case.
5741 (elf32_hppa_build_one_stub): Rewrite.
5742 (elf32_hppa_size_one_stub): New function.
5743 (elf32_hppa_build_stubs): Rewrite.
5744 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5745 Rewrite stub-handling specific code.
5747 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5749 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5751 * hppa_stubs.h: Delete.
5752 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5753 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5754 * Makefile.in: Regenerate.
5756 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5759 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5761 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5762 and section name for bfd_reloc_notsupported error message.
5763 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5764 bfd_reloc_notsupported.
5765 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5767 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5768 undefined weak symbols for all relocs.
5769 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5770 offsets are relative to one past the delay slot.
5771 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5772 branch destination. Put addend into stub name too.
5773 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5774 adjust by 8 when deciding whether a linker stub is needed. Put
5775 addend into stub name as for above.
5777 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5778 various args and vars.
5779 (elf32_hppa_bfd_final_link_relocate): Here too.
5780 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5781 inner block var to avoid shadowing.
5783 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5785 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5786 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5787 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5789 * libhppa.h: Change practically all unsigned ints to plain ints.
5790 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5793 From Ryan Bradetich <rbradetich@uswest.net>
5794 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5795 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5797 From David Huggins-Daines <dhd@linuxcare.com>
5798 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5799 to the new OP_* ones.
5801 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5802 error exit. Bail out earlier on plabel relocs that we aren't
5803 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5804 string, and then don't free our copy.
5805 (elf32_hppa_build_one_stub): Make insn unsigned int.
5807 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5808 available with BL, not BE and BLE.
5810 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5811 code for elf arg relocs.
5812 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5813 argument with elf_link_hash_entry h. Handle undefined weak
5814 symbols. Move $global$ lookup from here...
5815 (elf32_hppa_relocate_section): ...to here. Return correct error
5816 message for non-handled relocs.
5817 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5818 wrong test was -0x3ffff to +0x40000.
5820 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5821 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5822 Handle them as such.
5823 (elf_hppa_relocate_insn): Fix a typo.
5825 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5826 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5827 assemble_17, assemble_21): Delete.
5828 Supply defines for all 64 possible opcodes.
5829 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5830 formats. Handle COMICLR.
5831 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5834 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5835 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5836 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5838 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5839 the local syms - did this code get deleted accidentally? Ignore
5840 undefined and undefweak syms.
5842 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5843 block. Use it instead of elf64_hppa_hash_table (info).
5844 (elf_hppa_final_link_relocate): Use hppa_info instead of
5845 elf64_hppa_hash_table (info).
5847 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5848 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5849 (hppa_rebuild_insn): Mask immediate bits here instead.
5850 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5852 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5854 * section.c (struct sec): Add id field. Tidy comment formatting.
5855 (bfd_make_section_anyway): Set id.
5856 (STD_SECTION): Init id too.
5857 Change CONST to const throughout.
5858 * archures.c (bfd_arch_info): Tidy comment.
5859 (bfd_arch_list): Change a CONST to const.
5860 * libbfd-in.h: Tidy comments and replace CONST with const.
5861 * elf-bfd.h: Likewise.
5862 * libbfd.h: Regenerate.
5863 * bfd-in2.h: Regenerate.
5864 * libcoff.h: Regenerate.
5866 2000-07-07 DJ Delorie <dj@redhat.com>
5868 * archive.c (_bfd_write_archive_contents): Add an informative
5871 2000-07-06 Kazu Hirata <kazu@hxi.com>
5873 * srec.c: Fix formatting.
5875 2000-06-05 DJ Delorie <dj@redhat.com>
5879 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5881 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5882 value of PC-relative offsets.
5884 2000-07-03 Jim Wilson <wilson@cygnus.com>
5886 * elf64-alpha.c (alpha_elf_size_info): New.
5887 (elf_backend_size_info): Define to alpha_elf_size_info.
5888 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5890 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5892 * elf32-mips.c: Include elf32-target.h again for the traditional
5895 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5897 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5898 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5899 (avr_info_to_howto_rela): Likewise.
5900 (elf32_avr_gc_mark_hook): Likewise.
5901 (elf32_avr_gc_sweep_hook): Likewise.
5902 (elf32_avr_relocate_section): Likewise.
5904 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5906 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5907 an external symbol for a non-shared, non-relocatable link.
5909 2000-07-03 Nick Clifton <nickc@redhat.com>
5911 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5912 is an external symbol.
5913 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5916 2000-07-03 Kazu Hirata <kazu@hxi.com>
5918 * reloc16.c: Fix formatting.
5920 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5922 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5923 to add a new target for traditional mips i.e
5924 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5925 * configure.in: Likewise.
5926 * configure: Rebuild.
5927 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5929 (bfd_elf32_tradlittlemips_vec): Likewise.
5930 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5931 to see that elfNN_bed does not get redefined even if the target file
5932 is included twice for a chip. See elf32-mips.c.
5934 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5936 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5937 (CLEANFILES): Add DEPA.
5938 * Makefile.in: Regenerate.
5940 2000-06-30 DJ Delorie <dj@cygnus.com>
5942 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5943 can't assume the PE header is at 0x80.
5945 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5947 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5949 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5951 * go32stub.h: Update stub.
5953 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5955 * archures.c (bfd_mach_avr5): Define.
5956 * bfd-in2.h (bfd_mach_avr5): Define.
5957 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5958 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5959 (compatible): Update comment. Add missing test.
5960 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5961 for avr2 and avr4. Simplify 8K wrap code.
5962 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5963 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5965 2000-06-26 Kazu Hirata <kazu@hxi.com>
5967 * coff-h8300.c: Fix formatting.
5968 * cpu-h8300.c: Likewise.
5970 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5972 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5973 for local symbols whose names are unknown.
5975 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5977 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5979 * Makefile.in: Regenerate.
5980 * doc/Makefile.in: Regenerate.
5982 2000-06-20 H.J. Lu <hjl@gnu.org>
5984 * Makefile.am: Rebuild dependency.
5985 * Makefile.in: Rebuild.
5987 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5989 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5990 (elf_backend_copy_indirect_symbol): Map to the new function.
5992 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5994 * archive.c (normalize): Correct pointer comparison when checking
5996 (bfd_bsd_truncate_arname): Likewise.
5997 (bfd_gnu_truncate_arname): Likewise.
5999 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
6001 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
6002 sections elf_{text,data}_{section,symbol}.
6003 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
6004 (_bfd_mips_elf_hide_symbol): New function.
6005 (elf_backend_hide_symbol): Map to the new function.
6006 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
6007 definitions of mips_elf_{text,data}_{section,symbol}.
6008 (mips_elf_local_relocation_p): Try to find the direct symbol
6009 based on new check_forced argument.
6010 (mips_elf_calculate_relocation): Use new version of
6011 mips_elf_local_relocation_p.
6012 (mips_elf_relocate_section): Likewise.
6013 (_bfd_mips_elf_relocate_section): Likewise.
6014 (mips_elf_sort_hash_table): Only assert that have enough GOT
6016 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
6017 entry if the relocation based on the new external argument.
6018 (mips_elf_create_dynamic_relocation): Assert that we have a
6019 section contents allocated where we can swap out the dynamic
6021 (mips_elf_calculate_relocation): Find the real hash-table entry
6022 correctly by using h->root.root.type. Only create a dynamic
6023 relocation entry if the symbol is defined in a shared library.
6024 Create an external GOT entry for the GOT16 relocation if the
6025 symbol was forced local.
6026 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6027 dynamic index if the symbol was forced local.
6029 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6031 * elf32-mips.c: Fix typos in comments.
6033 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6035 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6038 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6040 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6041 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6042 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6043 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6044 (bfd_elf32_m68hc11_vec): Likewise.
6045 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6046 Supports 68hc11 & 68hc12 at the same time.
6047 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6049 (bfd_elf32_m68hc11_vec): Likewise.
6050 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6051 * archures.c (bfd_m68hc12_arch): Define and register in global list
6052 (bfd_m68hc11_arch): Likewise.
6053 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6054 BFD_RELOC_M68HC11_3B): Define.
6055 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6056 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6058 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6060 * elf_bfd.h (struct elf_backend_data): Add info argument to
6061 elf_backend_hide_symbol.
6062 (_bfd_elf_link_hash_hide_symbol): Likewise.
6063 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6064 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6065 * elflink.h (elf_link_add_object_symbols): Likewise.
6066 (elf_link_assign_sym_version): Likewise.
6068 2000-06-18 H.J. Lu <hjl@gnu.org>
6070 * coff-i386.c (coff_i386_reloc): Don't return in case of
6071 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6072 Compensate PE relocations when linking with non-PE object
6073 files to generate a non-PE executable.
6075 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6077 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6078 GOT entries if we're doing a static link or -Bsymbolic link.
6080 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6082 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6083 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6085 (elf_link_output_relocs): Likewise.
6086 (elf_reloc_link_order): Likewise.
6088 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6090 * archures.c (enum bfd_architecture): #define constants for
6091 PowerPc and RS6000 machine numbers.
6092 * bfd-in2.h: Regenerate.
6093 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6094 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6095 and RS6000 machine numbers using #defined constants from
6097 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6098 machine numbers using #defined constants from archures.c. Add
6099 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6100 64-bit words in 620 entry.
6101 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6103 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6105 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6107 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6108 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6109 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6111 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6113 * bfd-in.h (bfd_family_coff): Define.
6114 * bfd-in2.h: Regenerate.
6115 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6116 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6117 instead of bfd_target_coff_flavour.
6118 * cofflink.c (_bfd_coff_final_link): Likewise.
6119 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6120 exclude XCOFF files.
6121 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6123 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6124 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6125 * xcofflink.c (XCOFF_XVECP): Delete.
6126 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6127 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6128 bfd_xcoff_record_link_assignment,
6129 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6130 check for bfd_target_xcoff_flavour.
6132 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6134 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6136 (read_hdr): New function.
6137 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6138 of trying to extract individual registers. Set abfd->arch_info
6139 to match the architecture that created the core file.
6140 (rs6000coff_get_section_contents): Delete.
6141 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6143 2000-06-14 H.J. Lu <hjl@gnu.org>
6145 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6148 2000-06-13 H.J. Lu <hjl@gnu.org>
6150 * configure: Regenerate.
6152 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6154 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6157 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6159 * configure.in (VERSION): Update to show this is the CVS mainline.
6161 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6163 * elf32-d10v.c: Include elf/d10v.h
6164 (enum reloc_type): Delete.
6165 * elf32-d30v.c: Include elf/d30v.h
6166 (enum reloc_type): Delete.
6168 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6169 * Makefile.in: Regenerate.
6171 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6172 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6173 move HOWTOs into elf_howto_table.
6174 (R_386_standard, R_386_ext_offset): Define.
6175 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6176 (elf_i386_reloc_type_lookup): Modify calculation of index into
6177 elf_howto_table since we've removed the padding.
6178 (elf_i386_info_to_howto_rel): Likewise.
6179 (elf_i386_relocate_section): Likewise.
6181 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6183 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6185 2000-06-05 H.J. Lu <hjl@gnu.org>
6187 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6188 an error when seeing an undefined symbol with hidden/internal
6189 attribute. It is handled in *_relocate_section ().
6191 2000-06-05 H.J. Lu <hjl@gnu.org>
6193 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6194 indirect symbol for the ELF_LINK_NON_ELF bit.
6195 (elf_link_output_extsym): Don't output the indirect symbol even
6196 if the ELF_LINK_NON_ELF bit is set.
6198 2000-06-01 J.T. Conklin <jtc@redback.com>
6200 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6201 (i[3456]86-*-netbsdaout*): New target.
6202 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6203 (i[3456]86-*-openbsd*): Likewise.
6205 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6207 * trad-core.c: From hpux-core.c, include <dirent.h> or
6208 <sys/ndir.h> when possible.
6210 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6212 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6213 definitions. We must not assume they are sorted in the file
6214 according to their index numbers.
6216 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6218 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6219 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6220 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6222 2000-05-30 Nick Clifton <nickc@cygnus.com>
6224 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6225 80960CA, 80960MC as valid machine names.
6227 2000-05-30 H.J. Lu <hjl@gnu.org>
6229 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6230 visibility bits if the symbol is undefined. Correctly handle
6231 weak undefined symbols with hidden and internal attributes.
6233 * elflink.h (elf_link_add_object_symbols): Always turn the
6234 symbol into local if it has the hidden or internal attribute.
6236 2000-05-29 Philip Blundell <philb@gnu.org>
6238 * ppcboot.c: Add packed attribute if compiling with GCC.
6240 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6242 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6244 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6246 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6247 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6248 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6251 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6253 * Makefile.am: Update dependencies with "make dep-am"
6254 * Makefile.in: Regenerate.
6256 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6257 bindtextdomain): Replace defines with those from intl/libgettext.h
6258 to quieten gcc warnings.
6260 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6262 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6264 * archive.c (normalize, bfd_bsd_truncate_arname,
6265 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6266 file names with backslashes.
6268 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6271 * sysdep.h: Include filenames.h.
6273 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6275 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6277 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6279 * elf64-sparc.c (sparc64_elf_relax_section): New.
6280 (sparc64_elf_relocate_section): Optimize tail call into branch always
6282 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6283 (elf32_sparc_relax_section): New.
6285 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6287 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6288 Remove unusued variables.
6289 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6290 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6291 previous fix, so that shared libs really don't influence targets
6292 extension mask and memory model.
6294 2000-05-23 H.J. Lu <hjl@gnu.org>
6296 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6297 h->root.other not h->other.
6298 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6300 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6302 2000-05-23 H.J. Lu <hjl@gnu.org>
6304 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6305 undefined symbol with the non-default visibility attributes.
6306 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6307 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6308 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6309 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6310 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6311 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6312 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6313 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6314 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6315 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6316 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6318 2000-05-22 Richard Henderson <rth@cygnus.com>
6320 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6321 PCREL22, PCREL64I. Zero size of special relocs.
6322 (elf64_ia64_reloc_type_lookup): Likewise.
6323 (USE_BRL, oor_brl, oor_ip): New.
6324 (elf64_ia64_relax_section): New.
6325 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6326 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6327 (elf64_ia64_relocate_section): Likewise.
6328 (bfd_elf64_bfd_relax_section): New.
6329 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6330 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6331 * bfd-in2.h, libbfd.h: Regenerate.
6333 2000-05-22 Nick Clifton <nickc@cygnus.com>
6335 * configure.in : Add peigen.lo to MIPS PE targets.
6336 * configure: Regenerate.
6338 2000-05-22 Momchil Velikov <velco@fadata.bg>
6340 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6341 only if it is known for both input and output bfds. Separate
6342 error message strings as in some languages, it may be necessary
6343 to change more than one place in the string to change between
6346 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6347 endianess checks, call _bfd_generic_verify_endian_match() instead.
6349 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6351 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6353 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6354 endianess before checking bfd flavours.
6356 2000-05-22 H.J. Lu <hjl@gnu.org>
6358 * elflink.h (elf_link_output_extsym): Clear the visibility
6359 field for symbols not defined locally.
6361 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6363 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6364 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6365 (hppa_rebuild_insn): Mask immediate bits here instead.
6366 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6368 2000-05-18 Momchil Velikov <velco@fadata.bg>
6370 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6371 relocs for an executable, ensure that they are virtual addresses.
6373 2000-05-18 Jeffrey A Law (law@cygnus.com)
6375 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6377 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6378 Rick Gorton <gorton@scrugs.lkg.dec.com>
6380 * elflink.h: Add emitrelocations support: when enabled, relocation
6381 information and relocation sections are put into final output
6382 executables. If the emitrelocations flag is set, do the following:
6383 (elf_bfd_final_link): Emit relocation sections.
6384 (elf_link_input_bfd): Compute relocation section contents.
6385 (elf_gc_sections): Don't clean relocation sections.
6387 2000-05-16 Catherine Moore <clm@cygnus.com>
6389 * som.c (som_decode_symclass): Recognize weak symbols.
6391 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6393 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6394 read idata section only from dataoff.
6395 (pe_print_edata): Correctly check for valid eat_member.
6397 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6399 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6401 2000-05-14 Philip Blundell <philb@gnu.org>
6403 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6405 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6407 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6409 * peigen.c (pe_print_idata): Look for .idata section and print
6410 info even if data directory has zero entries. Read idata section
6411 starting from dataoff, and adjust all data offsets to suit. Cast
6412 all bfd_vma vars to unsigned long before passing to fprintf.
6413 * peigen.c (pe_print_edata): Similarly, look for .edata section
6414 and print info even if data directory has zero entries. Cast
6415 all bfd_vma vars to unsigned long before passing to fprintf.
6417 From Szabolcs Szakacsits <szaka@F-Secure.com>
6418 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6419 directory size which may be bogus.
6420 * peigen.c (pe_print_edata): Similarly.
6422 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6424 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6426 (copy_private_bfd_data): Allow for space possibly taken up by elf
6427 headers when calculating segment physical address from lma.
6429 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6431 * versados.c (versados_scan): Init stringlen and pass_2_done.
6433 * trad-core.c (trad_unix_core_file_p): Return
6434 bfd_error_wrong_format rather than bfd_error_file_truncated.
6436 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6437 add_data_entry. DataDirectory virtual address is relative.
6438 (pe_print_idata): Account for relative DataDirectory virtual
6439 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6440 (pe_print_edata): Similarly.
6442 From Szabolcs Szakacsits <szaka@F-Secure.com>
6443 * peigen.c (dir_names): Add Delay Import Directory.
6444 (pe_print_idata): Always search for bfd section containing
6445 idata address rather than looking up section name. Print this
6446 section name rather than .idata.
6447 (pe_print_edata): Similarly. Also print some fields as %08lx.
6448 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6451 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6453 * xcoff.h: Rename to xcoff-target.h
6454 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6455 * coff-rs6000.c: Ditto.
6456 * coff64-rs6000.c: Ditto.
6457 * coff-pmac.c: Ditto.
6458 * Makefile.in: Regenerate.
6460 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6462 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6463 Change U802TOC64MAGIC to U803XTOCMAGIC.
6465 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6467 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6468 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6469 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6471 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6473 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6475 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6477 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6478 hidden and internal symbols.
6479 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6481 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6482 assign a PLT or GOT entry to symbols with hidden and
6483 internal visibility.
6485 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6487 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6489 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6491 2000-05-02 H.J. Lu <hjl@gnu.org>
6493 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6496 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6498 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6499 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6501 * Makefile.in: Regenerate.
6503 2000-05-01 Jim Wilson <wilson@cygnus.com>
6505 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6506 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6507 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6508 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6509 * Makefile.in: Rebuild.
6511 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6513 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6514 doesn't work very well.
6516 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6517 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6518 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6519 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6520 (elf_hppa_info_to_howto): Likewise.
6521 (elf_hppa_info_to_howto_rel): Likewise.
6522 (elf_hppa_reloc_type_lookup): Likewise.
6523 (elf_hppa_is_local_label_name): Likewise.
6524 (elf_hppa_fake_sections): Likewise.
6525 (elf_hppa_final_write_processing): Likewise.
6526 (elf_hppa_howto_table): Fully initialise all entries.
6527 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6528 (elf_hppa_info_to_howto): Likewise.
6529 (elf_hppa_info_to_howto_rel): Likewise.
6530 (elf_hppa_reloc_type_lookup): Likewise.
6531 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6532 elf_hppa_unmark_useless_dynamic_symbols,
6533 elf_hppa_remark_useless_dynamic_symbols,
6534 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6535 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6536 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6537 elf32-hppa.c mess is cleaned up.
6538 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6539 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6540 r_field then call hppa_field_adjust inline func with variable
6541 r_field arg, instead call hppa_field_adjust with fixed arg.
6542 In case R_PARISC_PCREL22F, don't set r_field.
6543 (elf_hppa_relocate_insn): Change args and return type to unsigned
6544 int. Call re_assemble_* funcs to do the work.
6546 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6549 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6551 (sign_extend): Mask first before sign extending.
6552 (low_sign_extend): Rewrite without condition expression.
6553 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6554 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6555 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6556 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6557 result as function return value rather than through pointer arg.
6558 Accept unsigned int args, and return unsigned int.
6559 (re_assemble_3): New. Combines function of dis_assemble_3 with
6560 re-assembly of opcode and immediate.
6561 (re_assemble_12): Likewise.
6562 (re_assemble_16): Likewise.
6563 (re_assemble_17): Likewise.
6564 (re_assemble_21): Likewise.
6565 (re_assemble_22): Likewise.
6566 (hppa_field_adjust): Rewrite and document, paying attention to
6567 size of types and signed/unsigned issues.
6568 (get_opcode): Shift before masking.
6569 (FDLW): Rename to FLDW.
6570 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6571 (hppa_rebuild_insn): Change args and return value to unsigned
6572 int. Make use of re_assemble_*. Correct case 11.
6574 * dep-in.sed: Handle ../opcodes/.
6575 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6576 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6577 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6578 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6579 elfarm-nabi.lo dependencies outside of auto-dependency area.
6580 Regenerate dependencies.
6581 * Makefile.in: Regenerate.
6583 * configure.in (TRAD_HEADER): Test non-null before
6585 * configure: Regenerate.
6587 * reloc.c: Fix mis-spelling in comment.
6589 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6591 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6592 * vms.c (vms_openr_next_archived_file): Return NULL.
6594 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6596 * coffcode.h Copy changes mistakenly done to libcoff.h in
6599 2000-04-29 Andreas Jaeger <aj@suse.de>
6601 * libbfd-in.h: Correctly check GCC version.
6602 * bfd-in.h: Likewise.
6603 * libhppa.h: Likewise.
6604 * libbfd.h: Regenerate.
6605 * bfd-in2.h: Regenerate.
6607 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6609 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6610 coffdu-rs6000.{lo,c}.
6611 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6613 * Makefile.in: Regenerate.
6614 * xcoff.h: New file.
6615 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6616 * coff-rs6000.c: Move all declarations and defines that are
6617 common to the xcoff backends into xcoff.h
6618 * coff64-rs6000.c: Ditto,
6620 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6622 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6623 _bfd_coff_force_symnames in strings and
6624 _bfd_coff_debug_string_prefix_length to their default values.
6625 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6627 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6629 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6630 _bfd_coff_force_symnames in strings and
6631 _bfd_coff_debug_string_prefix_length to their default values.
6633 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6635 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6636 Check local_got_refcounts before dereferencing.
6638 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6639 before deciding we don't need R_PPC_PLT32 relocation.
6640 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6643 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6645 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6647 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6648 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6649 (elf_i386_relocate_section): Allow for .plt to go missing.
6650 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6651 can use a relative reloc for got as elf_i386_relocate_section.
6652 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6654 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6656 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6658 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6660 * Makefile.am (coff64-rs6000.lo): New rule.
6661 * Makefile.in: Regenerate.
6662 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6663 xcoff_is_local_label_name, xcoff_rtype2howto,
6664 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6665 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6666 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6667 (NO_COFF_SYMBOLS): Define.
6668 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6669 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6671 (MINUS_ONE): New macro.
6672 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6674 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6675 coff_SWAP_aux_out): Map to the new functions.
6676 * coff64-rs6000.c: New file.
6677 * libcoff.h (bfd_coff_backend_data): Add new fields
6678 _bfd_coff_force_symnames_in_strings and
6679 _bfd_coff_debug_string_prefix_length.
6680 (bfd_coff_force_symnames_in_strings,
6681 bfd_coff_debug_string_prefix_length): New macros for above fields.
6682 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6683 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6684 of using coff_swap_sym_in directly.
6685 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6686 (coff_set_flags) Set magic for XCOFF64.
6687 (coff_compute_section_file_positions): Add symbol name length to
6688 string section length if bfd_coff_debug_string_prefix_length is
6690 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6691 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6692 using coff_swap_lineno_in directly.
6693 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6694 and _bfd_coff_debug_string_prefix_length fields.
6695 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6696 symbol names into strings table when
6697 bfd_coff_force_symnames_in_strings is true.
6698 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6699 SET_RELOC_VADDR): New macros.
6700 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6701 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6703 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6704 changes within RS6000COFF_C specific code.
6705 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6706 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6707 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6708 Extend existing hack on target name.
6709 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6711 * coff-tic54x.c (ticof): Keep up to date with new fields
6712 in bfd_coff_backend_data.
6713 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6714 targ_selvecs to include rs6000coff64_vec for rs6000.
6715 * configure.in: Add rs6000coff64_vec case.
6716 * cpu-powerpc.c: New bfd_arch_info_type.
6718 2000-04-24 Jeffrey A Law (law@cygnus.com)
6720 * config.bfd: Only disable elf32-hppa vectors, not all of the
6721 BSD and OSF configuration support. Provide (disabled) clauses
6723 * configure.in: Add clause for PA64 support.
6724 * configure: Rebuilt.
6726 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6727 (bfd_elf64_hppa_vec): Declare.
6729 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6730 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6731 (elf64-hppa.lo): Add dependencies.
6732 * Makefile.in: Rebuilt.
6734 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6736 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6738 * libhppa.h (dis_assemble_16): New function.
6739 (pa_arch): Added pa20w element.
6741 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6743 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6744 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6745 bfd_elf64_slurp_reloc_table.
6747 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6748 definitions to get external names.
6749 (elf_write_relocs): Renamed from write_relocs and make global.
6750 (elf_slurp_reloc_table): Make global.
6751 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6753 * archive.c (hpux_uid_gid_encode): New function.
6754 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6755 defined and the ID is greater than 99999.
6756 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6757 special uid/gid fields into 32 bit values.
6759 2000-04-21 Matthew Green <mrg@cygnus.com>
6761 * config.bfd: Add NetBSD/sparc64 support.
6763 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6764 David Mosberger <davidm@hpl.hp.com>
6765 Timothy Wall <twall@cygnus.com>
6766 Jim Wilson <wilson@cygnus.com>
6768 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6769 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6770 (BFD64_BACKENDS): Add elf64-ia64.lo.
6771 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6772 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6773 * Makefile.in: Rebuild.
6774 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6775 (bfd_ia64_arch): Declare.
6776 (bfd_archures_list): Add bfd_ia64_arch.
6777 * bfd-in2.h: Rebuild.
6778 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6779 * configure: Rebuild.
6780 * configure.host: (ia64-*-linux*): New host.
6781 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6782 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6783 * elf.c (prep_headers): Add bfd_arch_ia64.
6784 * libbfd.h: Rebuild.
6785 * reloc.c: Add IA-64 relocations.
6786 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6788 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6789 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6791 2000-04-21 Richard Henderson <rth@cygnus.com>
6793 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6794 contents when performing a partial link.
6795 (bfd_elf_d30v_reloc_21): Likewise.
6797 2000-04-20 H.J. Lu <hjl@gnu.org>
6799 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6800 patch to symbols defined by a shared object.
6801 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6803 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6806 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6807 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6809 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6811 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6812 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6813 (coff-ia64.lo): Add dependency.
6814 * Makefile.in: Regenerate.
6815 * coff-ia64.c: New file.
6816 * efi-app-ia32.c: Ditto.
6817 * efi-app-ia64.c: Ditto.
6818 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6819 (coff_set_flags): Ditto.
6820 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6821 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6822 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6823 * configure: Regenerate.
6824 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6825 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6826 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6827 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6828 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6829 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6830 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6831 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6832 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6833 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6834 (GET_PDATA_ENTRY): Ditto.
6835 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6836 data_start. Use above macros to read fields that are 64 bit wide for
6837 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6838 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6839 FileAlignment and SectionAlignment to minimum alignment if they
6841 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6842 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6843 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6844 Use above macros to write fields that are 64 bit wide for
6846 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6847 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6848 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6849 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6850 begin address, end address, and unwind info address only. Use
6851 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6853 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6854 HIGH3ADJ relocation names.
6855 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6856 * targets.c: Declare bfd_efi_app_ia32_vec and
6857 bfd_efi_app_ia64_vec.
6858 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6859 bfd_efi_app_ia64_vec.
6861 2000-04-17 Timothy Wall <twall@cygnus.com>
6863 * bfd-in2.h: Add prototypes for tic54x load page access.
6864 * bfd-in.h: Regenerate.
6865 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6866 in customized _set_arch_mach function.
6867 * coffcode.h (coff_set_alignment_hook): Set section load page if
6868 the appropriate macro is defined.
6869 (write_object_contents): Read section load page.
6871 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6873 * elf32-hppa.h: Update copyright date.
6875 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6876 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6878 * elf32-d30v.c (MAX32): Don't use LL suffix.
6879 (MIN32): Define in terms of MAX32.
6880 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6882 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6885 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6887 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6889 * dep-in.sed: Match space before file name, not after.
6890 * Makefile.am: Regenerate dependencies.
6891 * Makefile.in: Regenerate.
6893 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6894 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6895 extend without an if statement.
6897 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6899 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6901 * elf32-mips.c (gprel16_with_gp): Likewise.
6902 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6903 here using -0x40000, not (int)0xfffc0000.
6904 (elf32_hppa_size_of_stub): Likewise.
6906 2000-04-11 Timothy Wall <twall@cygnus.com>
6908 * coff-tic54x.c: Now builds with all targets.
6909 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6910 * Makefile.in: Regenerate.
6911 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6912 unitialized variable.
6914 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6916 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6917 --enable-build-warnings option.
6918 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6919 * Makefile.in, configure: Re-generate.
6921 2000-04-07 Nick Clifton <nickc@cygnus.com>
6923 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6924 BFD_RELOC_THUMB_PCREL_BLX.
6926 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6927 R_ARM_XPC25 and R_ARM_THM_PC22.
6929 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6930 R_ARM_XPC25 and R_ARM_THM_XPC22.
6931 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6932 R_ARM_[XPC25|THM_XPC22].
6934 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6935 elf/arm-oabi.h to elf/arm.h
6937 * Makefile.am: Fix dependency for elfarm-oabi.c
6938 * Makefile.in: Regenerate.
6940 * bfd-in2.h: Regenerate.
6941 * libbfd.h: Regenerate.
6943 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6945 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6946 and restore it on failure. Release newly allocated tdata on
6949 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6951 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6952 (decode_line_info): Set it. Report error if unit->line_offset is
6953 equal to or larger than it.
6955 2000-04-07 Timothy Wall <twall@cygnus.com>
6957 * targets.c: Added vecs for tic54x.
6958 * reloc.c: Added relocs for tic54x.
6959 * libbfd.h: Regenerated.
6960 * configure: Add TI COFF vecs for tic54x.
6961 * configure.in: Ditto.
6962 * config.bfd (targ_cpu): Recognize new tic54x target.
6963 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6964 * bfd-in2.h: Add tic54x target and relocations.
6965 * Makefile.am, Makefile.in: Add tic54x target.
6966 * archures.c (bfd_archures_list): Add tic54x target.
6967 * coff-tic54x.c: New.
6968 * cpu-tic54x.c: New.
6970 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6972 * elfcore.h (elf_core_file_p): call backend_object_p which
6973 thereby gets an opportunity to update the arch/machine type.
6975 2000-04-06 Timothy Wall <twall@cygnus.com>
6977 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6978 class. Handle SEC_CLINK and SEC_BLOCK flags.
6979 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6980 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6982 2000-04-06 Nick Clifton <nickc@cygnus.com>
6984 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6985 EF_INTERWORK if this is an unknown EABI.
6986 (elf32_arm_merge_private_bfd_data): Check EABI version
6987 numbers. Only check EF_xxx flags if the EABI version number
6989 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6990 if the EABI version number is unknown.
6991 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6992 if the EABI version number is unknown.
6994 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6996 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6997 BFD_RELOC_SH_LOOP_END.
6998 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6999 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
7000 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
7001 (sh_elf_reloc_loop): New function.
7002 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
7004 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
7005 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
7006 * bfd-in2.h, libbfd.h: Regenerate.
7008 2000-04-04 Alan Modra <alan@linuxcare.com.au>
7010 * po/bfd.pot: Regenerate.
7012 * Makefile.am: Remove extraneous mkdep comment.
7013 (MKDEP): Use gcc -MM rather than mkdep.
7014 (DEP): Quote when passing vars to sub-make. Add warning
7016 (DEP1): Rewrite for "gcc -MM".
7017 (CLEANFILES): Add DEP2.
7018 Update dependencies.
7019 * Makefile.in: Regenerate.
7021 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7023 * configure.in: Added corefile support for AIX 4.3. In particular,
7024 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7025 compiling rs6000-core.c.
7026 * configure: Regenerated.
7028 2000-04-03 H.J. Lu <hjl@gnu.org>
7030 * cache.c (bfd_open_file): Unlink the output file only if
7031 it has non-zero size.
7033 2000-04-01 Ken Block USG <block@zk3.dec.com>
7035 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7036 relative relocations for non-loaded sections in shared objects.
7037 (elf64_alpha_check_relocs): Similarly.
7039 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7041 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7042 BFD_RELOC_16 to switch for extended relocs.
7043 (MY_swap_ext_reloc_in): New.
7044 (MY_swap_ext_reloc_out): New.
7045 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7046 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7047 (NAME(aout,squirt_out_relocs)): Similarly use
7048 MY_swap_ext_reloc_out.
7049 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7051 2000-04-03 Kazu Hirata <kazu@hxi.com>
7053 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7054 the R_PCRWORD_B case.
7056 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7058 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7062 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7064 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7065 HOWTO references to bfd_elf_generic_reloc, that have
7066 partial_inplace == true, now use the new function. The function
7067 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7068 extends its fixes to the R_M32R_{16,24,32} relocs.
7069 The new logic in m32r_elf_lo16_reloc() has been removed, and
7070 it instead calls the new routine to obtain that functionality.
7072 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7074 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7075 elf32_avr_check_relocs, avr_final_link_relocate,
7076 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7077 elf32_avr_object_p): Add prototypes.
7078 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7079 (bfd_elf_avr_final_write_processing): Make static.
7081 2000-03-27 Denis Chertykov <denisc@overta.ru>
7083 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7084 * archures.c (bfd_architecture): Add AVR architecture.
7085 (bfd_archures_list): Add reference to AVR architecture info.
7086 * elf.c (prep_headers): Handle bfd_arch_avr.
7087 * reloc.c: Add various AVR relocation enums.
7088 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7090 * Makefile.am: Add support for AVR elf.
7091 * configure.in: Likewise.
7092 * config.bfd: Likewise.
7093 * Makefile.in: Regenerate.
7094 * configure: This too.
7095 * bfd-in2.h: And this.
7096 * libbfd.h: And this.
7098 2000-03-24 H.J. Lu <hjl@gnu.org>
7100 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7101 (elf64_alpha_find_reloc_at_ofs): Likewise.
7103 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7105 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7106 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7107 allowable range used to be -2**(n-1) to 2**n-1.
7108 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7109 "boolean overflow" with "bfd_reloc_status_type flag".
7111 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7113 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7115 2000-03-14 Kazu Hirata <kazu@hxi.com>
7117 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7118 of shrinks properly, including the last reloc.
7120 2000-03-13 Kazu Hirata <kazu@hxi.com>
7122 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7125 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7127 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7128 a format mismatch rather than an "error" from bfd_read such as
7129 bfd_error_file_truncated.
7131 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7133 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7134 sign-extension and big-endian compensation for
7135 R_MIPS_64 even in ld -r.
7137 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7139 * elf32-mips.c (mips_elf_next_relocation): Rename from
7140 mips_elf_next_lo16_relocation, and generalize to look
7141 for any relocation type.
7142 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7143 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7144 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7145 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7146 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7147 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7148 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7149 (mips_rtype_to_howto): Likewise.
7150 (mips_elf_calculate_relocation): Handle new relocs.
7151 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7152 are paired. The addend for R_MIPS_GNU_REL16_S2
7153 is shifted right two bits.
7155 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7157 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7158 comment, and ensure it doesn't happen again.
7159 (bfd_install_relocation): Same here.
7160 (_bfd_relocate_contents): Don't bother assigning unused signmask
7161 shift result. Fix typos in comments.
7162 Remove trailing whitespace throughout file.
7164 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7166 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7167 * bfd-in2.h: Rebuild.
7169 2000-03-06 Nick Clifton <nickc@cygnus.com>
7171 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7173 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7174 (SIZEOF_ILF_STRINGS): Redefine.
7175 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7176 relative reloc, as opposed to a section relative reloc.
7177 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7179 Add length of symbol's prefix to string pointer.
7180 Store a pointer to the symbol in the symbol pointer table.
7181 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7182 Initialise the symbol pointer table.
7183 Store the hint in the Hint/Name table.
7184 Make the jump reloc be symbol realtive, not section relative.
7185 Create an import symbol for imported code.
7187 2000-03-06 Catherine Moore <clm@cygnus.com>
7189 * elf.c (swap_out_syms): Check for null type_ptr.
7191 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7193 * aout-target.h (MY(write_object_contents)): Remove unused
7194 and unusable "#if CHOOSE_RELOC_SIZE".
7195 * pc532-mach.c (MY(write_object_contents)): Ditto.
7196 * netbsd.h (MY(write_object_contents)): Ditto.
7197 * hp300hpux.c (MY(write_object_contents)): Ditto.
7198 * freebsd.h (MY(write_object_contents)): Ditto.
7199 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7201 2000-02-29 H.J. Lu <hjl@gnu.org>
7203 * peicode.h (jtab): Make it static.
7205 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7206 defined and COFF_IMAGE_WITH_PE is not defined.
7207 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7208 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7210 2000-03-01 Nick Clifton <nickc@cygnus.com>
7212 * coff-arm.c (bfd_arm_process_before_allocation): Make
7213 'symndx' signed to prevent compile time warning.
7215 * coff-mcore.c: Remove unused prototype for pe_object_p.
7217 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7218 functions that are not used when COFF_IMAGE_WITH_PE is
7220 (struct sh_opcode): Change type of 'flags' field to unsigned
7221 long so that it can hold the USESAS flag.
7223 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7225 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7228 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7230 Remove unusued variables and code.
7231 (elf_backend_add_symbol_hook): Fix prototype.
7233 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7236 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7239 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7241 Remove unusued variables and code.
7242 (elf_backend_add_symbol_hook): Fix prototype.
7244 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7246 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7247 to unused function parameter.
7249 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7251 Use EMPTY_HOWTO to initialise empty howto slots.
7252 Remove unused variables.
7254 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7256 2000-03-01 H.J. Lu <hjl@gnu.org>
7258 * aoutx.h (aout_link_input_section_std): Pass "true" to
7259 the undefined_symbol callback.
7260 (aout_link_input_section_ext): Likewise.
7261 * bout.c (get_value): Likewise.
7262 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7263 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7265 (alpha_relocate_section): Likewise.
7266 * coff-arm.c (coff_arm_relocate_section): Likewise.
7267 * coff-i960.c (coff_i960_relocate_section): Likewise.
7268 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7269 * coff-mips.c (mips_relocate_section): Likewise.
7270 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7271 * coff-sh.c (sh_relocate_section): Likewise.
7272 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7273 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7274 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7275 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7276 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7277 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7278 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7279 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7280 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7281 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7282 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7283 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7284 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7285 * elflink.h (elf_link_output_extsym): Likewise.
7286 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7287 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7288 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7290 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7291 undefined_symbol callback when building shared library with
7292 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7294 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7295 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7296 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7297 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7298 (elf32_mips_get_relocated_section_content): Likewise.
7299 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7300 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7301 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7302 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7304 2000-02-28 Nick Clifton <nickc@cygnus.com>
7306 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7307 * Makefile.in: Regenerate.
7309 * configure.in: Add support for mips and sh pe vectors.
7310 * configure: regenerate.
7312 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7315 * targets.c: Add mips and sh pe vectors.
7317 * libpei.h (coff_final_link_postscript): Only define if not
7320 * coffcode.h: Add support for WinCE magic numbers.
7322 * peigen.c (pe_print_reloc): Update comment and rearrange
7323 appending of newline character.
7325 * peicode.h: Add support for Image Library Format.
7326 (pe_ILF_vars): Structure containing data used by ILF code.
7327 (pe_ILF_make_a_section): New function. Create a section based
7329 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7331 (pe_ILF_make_a_symbol): New function. Create a symbol based
7333 (pe_ILF_save_relocs): New function. Store the relocs created
7334 by pe_ILF_make_a_reloc in a section.
7335 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7337 (pe_ILF_object_p): New function. Return a bfd_target pointer
7339 (pe_bfd_object_p): If an ILF object is detected call
7340 pe_ILF_object_p on it.
7342 * coff-arm.c: Add support for WinCE relocs which are different
7343 from normal ARM COFF relocs.
7344 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7346 * coff-sh.c: Add support for sh-pe target.
7347 * pe-sh.c: New file. Support code for sh-pe target.
7348 * pei-sh.c: New file. Support code for sh-pe target.
7350 * pe-mips.c: New file. Support code for mips-pe target.
7351 * pei-mips.c: New file. Support code for mips-pe target.
7353 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7355 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7356 architecture if the object causing the bump is dynamic.
7357 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7358 and also don't it for memory ordering.
7359 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7361 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7363 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7364 calling bfd_get_section_size_before_reloc.
7365 (decode_line_info): Likewise.
7366 (_bfd_dwarf2_find_nearest_line): Likewise.
7368 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7370 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7371 name of the libtool directory.
7372 * Makefile.in: Rebuild.
7374 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7376 * som.c (SOM_HOWTO): Define.
7377 (som_hppa_howto_table): Use it.
7379 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7381 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7383 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7385 2000-02-24 Catherine Moore <clm@cygnus.com>
7387 * som.c (som_misc_symbol_info): Add field
7389 (som_bfd_derive_misc_symbol_info): Initialize
7391 (som_build_and_write_symbol_table): Keep track
7392 of secondary_def field.
7393 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7394 if secondary_def field is set.
7395 (som_bfd_ar_write_symbol_stuff): Initialize
7398 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7400 * dwarf2.c (read_address): Read 16-bits addresses.
7401 (parse_comp_unit): Accept addr_size == 2.
7403 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7405 * bfd-in.h: Update copyright date.
7407 2000-02-23 Linas Vepstas <linas@linas.org>
7409 * cpu-i370.c: New file.
7410 * elf32-i370.c: New file.
7411 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7412 (bfd_i370_arch): New.
7413 (bfd_archures_list): Add bfd_i370_arch.
7414 * elf.c (prep_headers): Add bfd_arch_i370.
7415 * Makefile.am: Add support for IBM 370 elf.
7416 * config.bfd: Likewise.
7417 * configure.in: Likewise.
7418 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7419 * reloc.c (bfd_reloc_code_type): Likewise.
7420 * targets.c: Likewise.
7422 * Makefile.in: Regenerate.
7423 * configure: Regenerate.
7424 * bfd-in2.h: Regenerate.
7426 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7428 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7429 invalid relocation types, and change them to R_386_NONE.
7431 2000-02-22 H.J. Lu <hjl@gnu.org>
7433 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7434 not defined, don't add a second ELF_VER_CHR.
7436 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7437 symbols converted to local symbols even when stripping all
7439 (elf_link_output_extsym): Process global symbols converted to
7440 local symbols even if they are being stripped.
7442 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7444 * archures.c (bfd_octets_per_byte): Return unsigned int.
7445 (bfd_arch_mach_octets_per_byte): Ditto.
7446 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7448 * section.c (bfd_get_section_size_before_reloc): Quell signed
7449 vs. unsigned comparison warning.
7450 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7451 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7452 change. What was I thinking?
7453 * bfd-in2.h: Regenerate.
7455 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7456 (elf_gc_sections): Same here.
7457 (elf_gc_common_finalize_got_offsets): And here.
7459 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7461 ELF HPPA doesn't work at present; remove it until it does.
7462 * config.bfd: Comment out setting targ_defvec to
7464 * Makefile.am: Rebuild dependencies.
7465 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7466 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7467 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7468 * Makefile.in: Rebuild.
7469 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7471 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7473 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7474 is no bfd_free(). Revert bfd_free part of previous change.
7476 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7478 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7480 (coff_compute_section_file_positions): Use bfd_free to pair
7482 (coff_write_object_contents): Likewise.
7484 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7485 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7487 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7489 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7490 (xcoff_ar_file_hdr_big): New structure.
7491 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7492 (xcoff_ar_hdr_big): New structure.
7493 (SIZEOF_AR_HDR_BIG): New macro.
7494 (xcoff_big_format_p): New macro.
7495 (xcoff_ardata_big): New macro.
7496 (arch_xhdr_big): New macro.
7497 (xcoff_slurp_armap): Handle large archives.
7498 (xcoff_archive_p): Detect large archives.
7499 (xcoff_read_ar_hdr): Handle large archives.
7500 (xcoff_openr_next_archived_file): Handle large archives.
7501 (xcoff_generic_stat_arch_elt): Handle large archives.
7502 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7503 (xcoff_write_armap_big): New function.
7504 (xcoff_write_armap): New function, dispatch to _old or _big.
7505 (xcoff_write_archive_contents_old): Rename from
7506 xcoff_write_archive_contents.
7507 (xcoff_write_archive_contents_big): New function.
7508 (xcoff_write_archive_contents): New function, dispatch to _old or
7511 2000-02-18 Richard Henderson <rth@cygnus.com>
7513 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7514 and hide_symbol members.
7515 (elf_link_hash_copy_indirect): Remove.
7516 (elf_link_hash_hide_symbol): Remove.
7517 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7518 and elf_backend_hide_symbol.
7519 (_bfd_elf_link_hash_copy_indirect): Declare.
7520 (_bfd_elf_link_hash_hide_symbol): Declare.
7521 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7522 (_bfd_elf_link_hash_hide_symbol): Likewise.
7523 (_bfd_elf_link_hash_table_init): Don't init killed members.
7524 * elflink.h (elf_link_add_object_symbols): Use the bed function
7525 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7526 (elf_link_assign_sym_version): Likewise.
7527 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7528 (elf_backend_hide_symbol): Likewise.
7529 (elfNN_bed): Update for new members.
7531 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7533 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7534 STACK_END_ADDR): Define for new core file format.
7535 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7536 for handling the vagaries of the various core file structures used
7537 by AIX over the years.
7538 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7539 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7540 core_dumpx structure.
7542 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7544 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7545 (bfd_mach_sh3_dsp): Likewise.
7546 (bfd_mach_sh4): Reinstate.
7547 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7548 * bfd-in2.h: Regenerate.
7549 * coff-sh.c (struct sh_opcode): flags is no longer short.
7550 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7551 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7552 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7553 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7554 (sh_opcodes): No longer const.
7555 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7556 (sh_insn_uses_reg): Check for USESAS and USESR8.
7557 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7558 (_bfd_sh_align_load_span): Return early for SH4.
7559 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7560 Take into account that field b of a parallel processing insn
7561 could be mistaken for a separate insn.
7562 * cpu-sh.c (arch_info_struct): New array elements for
7563 sh2, sh-dsp and sh3-dsp.
7564 Reinstate element for sh4.
7565 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7566 (SH4_NEXT): Reinstate.
7567 (SH3_NEXT, SH3E_NEXT): Adjust.
7568 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7569 * elf32-sh.c (sh_elf_set_private_flags): New function.
7570 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7571 (sh_elf_merge_private_data): New function.
7572 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7573 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7574 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7575 sh_elf_merge_private_data.
7577 2000-02-13 Richard Henderson <rth@cygnus.com>
7579 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7580 hide_symbol members.
7581 (elf_link_hash_copy_indirect): New.
7582 (elf_link_hash_hide_symbol): New.
7583 * elflink.h (elf_link_add_object_symbols): Break out copy from
7584 indirect new new symbol to elf.c.
7585 (elf_link_assign_sym_version): Break out privatization of
7586 non-exported symbol to elf.c.
7587 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7588 (_bfd_elf_link_hash_hide_symbol): New.
7589 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7591 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7593 * section.c (_bfd_strip_section_from_output): Add info parameter.
7594 If it passed as non-NULL, use it to check whether any input BFD
7595 has an input section which uses this output section. Change all
7597 * bfd-in2.h: Rebuild.
7599 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7600 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7602 * bfd-in2.h: Rebuild.
7604 2000-02-10 Timothy Wall <twall@cygnus.com>
7606 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7607 allow final modifications of swapped-in symbol.
7608 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7609 * coffcode.h (coff_write_relocs): Use macro
7610 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7611 symbol index should be set to -1.
7613 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7615 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7616 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7617 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7618 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7619 sh_insns_uses_or_sets_freg): New functions.
7620 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7621 * (sh_insns_conflict): Use new functions and new macros to
7622 detect conflicts when two instructions both set same integer registers,
7623 both set same fp register, and both set special register.
7625 2000-02-09 Timothy Wall <twall@cygnus.com>
7627 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7628 swapping in sections, so that the swapping routines have access to
7631 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7633 * coff-go32.c: Update comment. Update copyright.
7635 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7637 * syms.c (bfd_decode_symclass)
7638 Two new class characters were added - 'V' and 'v'. The
7639 meaning of 'W' is now restricted to just weak non-object
7640 symbols. This allows differentiation between, for example,
7641 weak functions vs weak objects. nm for example now dumps:
7643 'w' = weak unresolved
7644 'V' = weak global object
7645 'v' = weak unresolved object
7647 (bfd_is_undefined_symclass): New function. Return true if the
7648 given symbol class represents and undefined/unresolved symbol.
7650 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7653 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7655 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7656 STT_ARM_16BIT flag set, but it is not attached to a data object
7657 return STT_ARM_16BIT so that it will be treated as code by the
7660 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7662 * coff-i386.c (i3coff_object_p): Remove prototype.
7665 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7666 to name. Update copyright.
7668 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7669 assignment to avoid warning. Update copyright.
7671 2000-01-24 Robert Lipe (robertl@sco.com)
7673 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7674 instead of using GNU C extension.
7676 2000-01-21 Nick Clifton <nickc@cygnus.com>
7678 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7679 amount from a bfd_in_memory structure.
7680 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7683 2000-01-14 Nick Clifton <nickc@cygnus.com>
7685 * linker.c (default_indirect_link_order): oops - fix incorrectly
7686 applied patch from Tim Wall.
7688 2000-01-13 Timothy Wall (twall@tiac.net>
7690 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7691 = scnhsz, filhsz, relsz, aoutsz, etc)
7693 * coffswap.h: Ditto.
7695 2000-01-13 Nick Clifton <nickc@cygnus.com>
7697 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7698 interwork thumb to arm stub.
7700 2000-01-13 Timothy Wall (twall@tiac.net>
7702 * archures.c (bfd_octets_per_byte): New function: Return
7704 (bfd_arch_mach_octets_per_byte): New function: Return target
7707 * section.c: Distinguish between octets and bytes for usage of
7708 _cooked_size, _raw_size, and output_offset. Clarify
7709 description of bfd_set_section_contents.
7711 * bfd-in2.h: Regenerate.
7713 * coffgen.c: Indicate that the offset parameter is in bytes, not
7716 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7717 where appropriate to get the octet offset when calling
7718 bfd_set_section_contents.
7719 (bfd_coff_reloc_link_order): Ditto.
7721 * linker.c (bfd_generic_reloc_link_order): Ditto.
7722 (_bfd_default_link_order): Ditto.
7724 * reloc.c (bfd_perform_relocation): Distinguish between octets
7725 and bytes. Use octets when indexing into octet data; use bytes
7726 when calculating target addresses.
7727 (bfd_install_relocation): Ditto.
7729 * srec.c (srec_write_section): Ditto.
7731 2000-01-13 Nick Clifton <nickc@cygnus.com>
7733 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7734 3 to 2. This allows 4 byte sized sections, which is necessary for
7735 dlltool to build functioning DLLs.
7737 2000-01-10 Philip Blundell <pb@futuretv.com>
7739 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7740 (arm*-*-conix*): New target.
7742 2000-01-10 Egor Duda <deo@logos-m.ru>
7744 * config.bfd: Include elf32_i386 vector to target list for cygwin
7747 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7748 * configure.in: Test for structure win32_pstatus_t in
7750 * configure: Regenerate.
7752 * elf.c (elfcore_grok_win32pstatus): New function: process
7753 win32_pstatus_t notes in elf core file.
7754 (elfcore_grok_note): Detect win32_pstatus notes.
7756 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7758 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7760 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7761 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7763 For older changes see ChangeLog-9899
7769 version-control: never