1 2001-09-28 Alan Modra <amodra@bigpond.net.au>
3 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
4 no longer allocate here. Localise some vars to blocks where they
5 are used. Remove separate switch stmt for creating .got sec.
6 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
7 redundant casts and aborts. Delay setting of vars until needed.
8 (allocate_dynrelocs): Remove redundant casts and aborts.
9 (elf_i386_size_dynamic_sections): Move comment.
10 (elf_i386_finish_dynamic_symbol): Move expressions out of function
12 (elf_i386_relocate_section): Likewise. Comment typo fix.
13 (elf_i386_finish_dynamic_sections): Migrate common code out of
15 (elf_backend_* defines): Sort.
17 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
18 without a reloc when symbol visibilty makes a function local.
20 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
22 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
23 conflicting float flags.
25 2001-09-26 Alan Modra <amodra@bigpond.net.au>
27 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
28 (elf_backend_copy_indirect_symbol): Define.
29 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
30 (struct elf_i386_link_hash_table): Likewise.
31 (link_hash_newfunc): Get rid of unnecessary casts.
32 (elf_i386_link_hash_table_create): Likewise.
33 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
34 Don't test input section SEC_READONLY here to try to avoid copy
35 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
36 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
37 here to properly test whether we need copy relocs. Do so for weak
40 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
41 (elf_backend_copy_indirect_symbol): Define.
42 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
43 (stub_hash_newfunc): Get rid of unnecessary casts.
44 (hppa_link_hash_newfunc): Likewise.
45 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
46 Don't test input section SEC_READONLY here to try to avoid copy
47 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
48 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
49 here to properly test whether we need copy relocs. Do so for weak
52 2001-09-26 Alan Modra <amodra@bigpond.net.au>
54 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
55 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
56 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
58 2001-09-25 Jakub Jelinek <jakub@redhat.com>
60 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
63 2001-09-25 H.J. Lu <hjl@gnu.org>
65 * bfd-in2.h: Regenerated.
67 2001-09-25 Alan Modra <amodra@bigpond.net.au>
69 * elf32-i386.c: Add comment re linker function names and ordering.
70 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
71 (elf_i386_grok_prstatus): Move before linker functions.
72 (elf_i386_grok_psinfo): Likewise.
73 (elf_i386_fake_sections): Move so that functions are ordered.
74 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
76 2001-09-25 Alan Modra <amodra@bigpond.net.au>
78 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
81 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
82 code handling this option.
83 (LONG_BRANCH_VIA_PLT): Likewise.
84 (RELATIVE_DYNRELOCS): Define as zero.
85 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
86 "pc_count" fields. Remove "section" field.
87 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
88 (elf32_hppa_check_relocs): Don't allocate space for dynamic
89 relocs here. Instead, record all needed dynamic relocs via
90 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
92 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
93 (allocate_plt_and_got_and_discard_relocs): Rename to
94 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
95 (readonly_dynrelocs): New function.
96 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
97 Call readonly_dynrelocs to determine need for DT_TEXTREL.
98 Rename "i" to "ibfd". Allocate space for local dyn relocs.
99 (elf32_hppa_relocate_section): Make use of cached sreloc.
100 (elf32_hppa_reloc_type_class): New function.
101 (elf_backend_reloc_type_class): Define.
103 2001-09-25 Alan Modra <amodra@bigpond.net.au>
105 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
107 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
108 "pc_count" fields. Remove "section" field.
109 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
110 allocate space for dynamic relocs here. Instead, record all
111 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
112 pointer to "sreloc" section in elf_section_data.
113 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
114 (allocate_plt_and_got_and_discard_relocs): Rename to
115 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
116 (readonly_dynrelocs): New function.
117 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
118 Rename "i" to "ibfd". Allocate space for local dyn relocs.
119 (elf_i386_relocate_section): Make use of cached sreloc.
121 2001-09-24 Alan Modra <amodra@bigpond.net.au>
123 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
124 reloc rather than just the type.
125 (_bfd_elf_reloc_type_class): Likewise.
126 * elf.c (_bfd_elf_reloc_type_class): Likewise.
127 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
128 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
129 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
130 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
131 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
132 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
133 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
134 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
135 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
136 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
137 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
138 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
139 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
140 * elflink.h: Formatting fixes.
141 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
142 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
143 o->contents to PTR. Update call to elf_backend_reloc_type_class.
145 2001-09-22 John Reiser <jreiser@BitWagon.com>
147 * elfcode.h (elf_object_p): Allow for no section header at all in
148 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
150 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
152 * elfxx-ia64.c: Fix compile time warning messages.
153 * coff-mcore.c: Fix compile time warning messages.
154 * coff-ppc.c: Fix compile time warning messages.
155 * coffcode.h: Fix compile time warning messages.
156 * elf32-mips.c: Fix compile time warning messages.
157 * elf64-alpha.c: Fix compile time warning messages.
158 * libbfd.c: Fix compile time warning messages.
159 * bfd-in2.h: Regenerate.
161 2001-09-21 Alan Modra <amodra@bigpond.net.au>
163 * Makefile.am: Run "make dep-am".
164 * Makefile.in: Regenerate.
166 * aoutx.h: Formatting fixes.
167 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
169 * linker.c: Replace bfd_get_filename with bfd_archive_filename
172 2001-09-21 Alan Modra <amodra@bigpond.net.au>
174 * bfd.c (bfd_archive_filename): New function.
175 * bfd-in2.h: Regenerate.
176 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
177 in error messages where the bfd is an input bfd.
178 * aout-cris.c: Likewise.
179 * coff-arm.c: Likewise.
180 * coff-mcore.c: Likewise.
181 * coff-ppc.c: Likewise.
182 * coff-rs6000.c: Likewise.
183 * coff-sh.c: Likewise.
184 * coff-tic54x.c: Likewise.
185 * coff-tic80.c: Likewise.
186 * coff64-rs6000.c: Likewise.
187 * coffcode.h: Likewise.
188 * coffgen.c: Likewise.
189 * cofflink.c: Likewise.
190 * ecofflink.c: Likewise.
191 * elf-hppa.h: Likewise.
193 * elf32-arm.h: Likewise.
194 * elf32-cris.c: Likewise.
195 * elf32-gen.c: Likewise.
196 * elf32-hppa.c: Likewise.
197 * elf32-i370.c: Likewise.
198 * elf32-i386.c: Likewise.
199 * elf32-m32r.c: Likewise.
200 * elf32-mcore.c: Likewise.
201 * elf32-mips.c: Likewise.
202 * elf32-ppc.c: Likewise.
203 * elf32-s390.c: Likewise.
204 * elf32-sh.c: Likewise.
205 * elf32-sparc.c: Likewise.
206 * elf32-v850.c: Likewise.
207 * elf64-alpha.c: Likewise.
208 * elf64-gen.c: Likewise.
209 * elf64-ppc.c: Likewise.
210 * elf64-s390.c: Likewise.
211 * elf64-sparc.c: Likewise.
212 * elf64-x86-64.c: Likewise.
213 * elflink.h: Likewise.
214 * elfxx-ia64.c: Likewise.
217 * libbfd.c: Likewise.
219 * pe-mips.c: Likewise.
220 * peicode.h: Likewise.
222 * xcofflink.c: Likewise.
224 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
226 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
229 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
232 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
233 Consolidate error messages, and split long messages to two lines.
235 2001-09-20 John Reiser <jreiser@BitWagon.com>
237 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
238 and info->allow_shlib_undefined.
239 * elf32-cris.c: Likewise.
240 * elf32-hppa.c: Likewise.
241 * elf32-m68k.c: Likewise.
242 * elf32-mips.c: Likewise.
243 * elf32-ppc.c: Likewise.
244 * elf32-s390.c: Likewise.
245 * elf32-sh.c: Likewise.
246 * elf32-sparc.c: Likewise.
247 * elf64-alpha.c: Likewise.
248 * elf64-hppa.c: Likewise.
249 * elf64-ppc.c: Likewise.
250 * elf64-s390.c: Likewise.
251 * elf64-sparc.c: Likewise.
252 * elf64-x86-64.c: Likewise.
253 * elfxx-ia64.c: Likewise.
255 2001-09-18 Bruno Haible <haible@clisp.cons.org>
257 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
258 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
259 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
260 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
261 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
262 (bfd_default_scan): Use ISDIGIT instead of isdigit.
263 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
264 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
265 isxdigit/isdigit/islower.
266 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
267 (mangle_name): Use ISALNUM instead of isalnum.
268 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
269 (scan): Use ISDIGIT instead of isdigit.
270 * hosts/alphavms.h: Don't include <ctype.h>.
271 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
272 (ieee_object_p): Use TOUPPER instead of toupper.
273 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
274 (ihex_bad_byte): Use ISPRINT instead of isprint.
275 * merge.c: Don't include <ctype.h>.
276 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
277 (oasys_write_sections): Use ISDIGIT instead of isdigit.
278 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
279 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
280 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
281 (mangle_name): Use ISALNUM instead of isalnum.
282 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
283 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
284 isupper/islower/isdigit.
285 (som_decode_symclass): Use TOUPPER instead of toupper.
286 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
287 (srec_bad_byte): Use ISPRINT instead of isprint.
288 (srec_scan): Use ISSPACE instead of isspace.
289 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
290 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
291 * syms.c: Include "safe-ctype.h"
292 (islower, toupper): Remove macro definitions.
293 (bfd_decode_symclass): Use TOUPPER instead of toupper.
294 * vms-gsd.c: Don't include <ctype.h>.
295 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
296 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
298 * vms-tir.c: Don't include <ctype.h>.
300 2001-09-18 Alan Modra <amodra@bigpond.net.au>
302 * libbfd.c (bfd_bread): New function replacing bfd_read without
303 redundant params. Allow reads up to (size_t) -2 in length.
304 (bfd_bwrite): Similarly for bfd_write.
305 (real_read): Return a size_t.
306 (bfd_read): Call bfd_bread.
307 (bfd_write): Call bfd_bwrite.
308 (warn_deprecated): New function to annoy everybody.
309 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
310 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
311 (bfd_read, bfd_write): Define as macro.
312 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
313 likewise for bfd_write. Ensure function args are correct size by
314 using casts or local vars. In some cases, remove unnecessary
315 casts. Formatting fixes, in some cases removing a large expression
316 from function args by using a local var. Replace CONST with const.
317 Modify variable types to avoid warings. Use casts to avoid
318 warnings when using negative numbers in unsigned expressions.
319 * aout-adobe.c: Likewise.
320 * aout-arm.c: Likewise.
321 * aout-cris.c: Likewise.
322 * aout-encap.c: Likewise.
323 * aout-ns32k.c: Likewise.
324 * aout-target.h: Likewise.
325 * aout-tic30.c: Likewise.
326 * aoutf1.h: Likewise.
328 * archive.c: Likewise.
329 * archures.c: Likewise.
330 * bfd-in.h: Likewise.
332 * binary.c: Likewise.
335 * cisco-core.c: Likewise.
336 * coff-a29k.c: Likewise.
337 * coff-alpha.c: Likewise.
338 * coff-arm.c: Likewise.
339 * coff-h8300.c: Likewise.
340 * coff-h8500.c: Likewise.
341 * coff-i386.c: Likewise.
342 * coff-i860.c: Likewise.
343 * coff-i960.c: Likewise.
344 * coff-ia64.c: Likewise.
345 * coff-m68k.c: Likewise.
346 * coff-m88k.c: Likewise.
347 * coff-mcore.c: Likewise.
348 * coff-mips.c: Likewise.
349 * coff-ppc.c: Likewise.
350 * coff-rs6000.c: Likewise.
351 * coff-sh.c: Likewise.
352 * coff-sparc.c: Likewise.
353 * coff-stgo32.c: Likewise.
354 * coff-tic30.c: Likewise.
355 * coff-tic54x.c: Likewise.
356 * coff-tic80.c: Likewise.
357 * coff-w65.c: Likewise.
358 * coff-z8k.c: Likewise.
359 * coff64-rs6000.c: Likewise.
360 * coffcode.h: Likewise.
361 * coffgen.c: Likewise.
362 * cofflink.c: Likewise.
363 * coffswap.h: Likewise.
364 * corefile.c: Likewise.
365 * cpu-arc.c: Likewise.
366 * cpu-h8300.c: Likewise.
367 * cpu-h8500.c: Likewise.
368 * cpu-i960.c: Likewise.
369 * cpu-ia64-opc.c: Likewise.
370 * cpu-ns32k.c: Likewise.
371 * cpu-pdp11.c: Likewise.
372 * cpu-pj.c: Likewise.
373 * cpu-sh.c: Likewise.
374 * cpu-w65.c: Likewise.
375 * cpu-z8k.c: Likewise.
376 * dwarf1.c: Likewise.
377 * dwarf2.c: Likewise.
379 * ecofflink.c: Likewise.
380 * ecoffswap.h: Likewise.
381 * elf-bfd.h: Likewise.
382 * elf-hppa.h: Likewise.
383 * elf-m10200.c: Likewise.
384 * elf-m10300.c: Likewise.
386 * elf32-arc.c: Likewise.
387 * elf32-arm.h: Likewise.
388 * elf32-avr.c: Likewise.
389 * elf32-cris.c: Likewise.
390 * elf32-fr30.c: Likewise.
391 * elf32-gen.c: Likewise.
392 * elf32-h8300.c: Likewise.
393 * elf32-hppa.c: Likewise.
394 * elf32-i370.c: Likewise.
395 * elf32-i386.c: Likewise.
396 * elf32-i860.c: Likewise.
397 * elf32-m32r.c: Likewise.
398 * elf32-m68k.c: Likewise.
399 * elf32-mcore.c: Likewise.
400 * elf32-mips.c: Likewise.
401 * elf32-openrisc.c: Likewise.
402 * elf32-pj.c: Likewise.
403 * elf32-ppc.c: Likewise.
404 * elf32-s390.c: Likewise.
405 * elf32-sh-lin.c: Likewise.
406 * elf32-sh.c: Likewise.
407 * elf32-sparc.c: Likewise.
408 * elf32-v850.c: Likewise.
409 * elf64-alpha.c: Likewise.
410 * elf64-hppa.c: Likewise.
411 * elf64-mips.c: Likewise.
412 * elf64-ppc.c: Likewise.
413 * elf64-s390.c: Likewise.
414 * elf64-sparc.c: Likewise.
415 * elf64-x86-64.c: Likewise.
416 * elfarm-nabi.c: Likewise.
417 * elfcode.h: Likewise.
418 * elfcore.h: Likewise.
419 * elflink.c: Likewise.
420 * elflink.h: Likewise.
421 * elfxx-ia64.c: Likewise.
422 * elfxx-target.h: Likewise.
423 * format.c: Likewise.
425 * hp300hpux.c: Likewise.
426 * hppabsd-core.c: Likewise.
427 * hpux-core.c: Likewise.
428 * i386aout.c: Likewise.
429 * i386dynix.c: Likewise.
430 * i386linux.c: Likewise.
431 * i386lynx.c: Likewise.
432 * i386mach3.c: Likewise.
433 * i386msdos.c: Likewise.
434 * i386os9k.c: Likewise.
437 * irix-core.c: Likewise.
438 * libaout.h: Likewise.
439 * libbfd-in.h: Likewise.
440 * libbfd.c: Likewise.
441 * libcoff-in.h: Likewise.
442 * libecoff.h: Likewise.
443 * libieee.h: Likewise.
444 * libnlm.h: Likewise.
445 * libpei.h: Likewise.
446 * libxcoff.h: Likewise.
447 * linker.c: Likewise.
448 * lynx-core.c: Likewise.
449 * m68klinux.c: Likewise.
451 * mipsbsd.c: Likewise.
452 * netbsd-core.c: Likewise.
454 * nlm32-alpha.c: Likewise.
455 * nlm32-i386.c: Likewise.
456 * nlm32-ppc.c: Likewise.
457 * nlm32-sparc.c: Likewise.
458 * nlmcode.h: Likewise.
459 * nlmswap.h: Likewise.
462 * opncls.c: Likewise.
463 * osf-core.c: Likewise.
464 * pc532-mach.c: Likewise.
466 * pe-mips.c: Likewise.
467 * peXXigen.c: Likewise.
468 * peicode.h: Likewise.
469 * ppcboot.c: Likewise.
470 * ptrace-core.c: Likewise.
472 * reloc16.c: Likewise.
473 * riscix.c: Likewise.
474 * rs6000-core.c: Likewise.
475 * sco5-core.c: Likewise.
476 * section.c: Likewise.
478 * sparclinux.c: Likewise.
479 * sparclynx.c: Likewise.
484 * targets.c: Likewise.
485 * tekhex.c: Likewise.
486 * trad-core.c: Likewise.
487 * versados.c: Likewise.
488 * vms-gsd.c: Likewise.
489 * vms-hdr.c: Likewise.
490 * vms-misc.c: Likewise.
491 * vms-tir.c: Likewise.
494 * xcofflink.c: Likewise.
495 * bfd-in2.h: Regenerate.
496 * libbfd.h: Regenerate.
497 * libcoff.h: Regenerate.
499 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
500 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
502 (bfd_tell): Return a ufile_ptr.
503 * libbfd.c (bfd_tell): Likewise.
504 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
506 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
507 * aoutf1.h: Likewise.
509 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
510 larger than unsigned long can represent.
512 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
513 size overflows size_t.
514 (bfd_realloc): Likewise.
515 (bfd_zmalloc): Likewise.
516 * opncls.c (bfd_alloc): Likewise.
517 (bfd_zalloc): Likewise.
518 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
519 (bfd_alloc, bfd_zalloc): Update.
521 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
523 (bfd_get_signed_8): Likewise.
524 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
525 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
526 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
527 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
528 * libaout.h: Likewise define and use here.
529 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
530 * aout-arm.c: Likewise.
531 * aout-encap.c: Likewise.
532 * aout-ns32k.c: Likewise.
533 * aout-tic30.c: Likewise.
534 * aoutf1.h: Likewise.
537 * coff-alpha.c: Likewise.
538 * coff-h8300.c: Likewise.
539 * coff-h8500.c: Likewise.
540 * coff-i960.c: Likewise.
541 * coff-ia64.c: Likewise.
542 * coff-m88k.c: Likewise.
543 * coff-mips.c: Likewise.
544 * coff-ppc.c: Likewise.
545 * coff-rs6000.c: Likewise.
546 * coff-sh.c: Likewise.
547 * coff-sparc.c: Likewise.
548 * coff-stgo32.c: Likewise.
549 * coff-tic30.c: Likewise.
550 * coff-tic80.c: Likewise.
551 * coff-w65.c: Likewise.
552 * coff-z8k.c: Likewise.
553 * coff64-rs6000.c: Likewise.
554 * coffgen.c: Likewise.
555 * cofflink.c: Likewise.
556 * coffswap.h: Likewise.
558 * ecoffswap.h: Likewise.
560 * elf32-mips.c: Likewise.
561 * elf64-mips.c: Likewise.
562 * hp300hpux.c: Likewise.
563 * i386dynix.c: Likewise.
564 * i386lynx.c: Likewise.
565 * i386msdos.c: Likewise.
566 * i386os9k.c: Likewise.
567 * libpei.h: Likewise.
568 * nlm32-alpha.c: Likewise.
569 * nlm32-i386.c: Likewise.
570 * nlm32-ppc.c: Likewise.
571 * nlmcode.h: Likewise.
572 * nlmswap.h: Likewise.
575 * pe-mips.c: Likewise.
576 * peXXigen.c: Likewise.
577 * peicode.h: Likewise.
578 * riscix.c: Likewise.
580 * xcofflink.c: Likewise.
581 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
582 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
583 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
584 equivalent H_PUT_* macro instead.
585 (GETWORD, GETHALF, GETBYTE): Similarly.
586 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
587 (GETWORD, GETHALF, GETBYTE): Likewise.
588 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
590 * bfd-in.h (struct orl): Change "pos" to a union.
591 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
592 (bsd_write_armap): Here too.
593 (coff_write_armap): And here.
594 * coff-rs6000.c (xcoff_write_armap_old): And here.
595 (xcoff_write_one_armap_big): And here.
596 (xcoff_write_armap_big): And here.
597 * ecoff.c (_bfd_ecoff_write_armap): And here.
598 * elf64-mips.c (mips_elf64_write_armap): And here.
600 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
601 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
602 * elf32-h8300.c (elf32_h8_mach): Likewise.
603 * elf32-mips.c (elf_mips_mach): Likewise.
604 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
606 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
608 (aix386_core_vec): Typo fix.
610 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
611 etc. to avoid redefined macro warning.
612 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
613 (MY(fix_pcrel_26)): Likewise.
614 * aout-ns32k.c (MY(put_reloc)): Likewise.
615 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
616 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
617 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
619 * aout-encap.c: Include "file", not <file> for binutils headers.
620 (encap_object_p): Half baked attempt to fix compile errors in
621 code dealing with "magic".
623 * aout-ns32k.c: Include "file", not <file> for binutils headers.
624 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
625 bfd_vma's rather than longs.
626 * cpu-ns32k.c (ns32k_sign_extend): Delete.
627 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
628 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
630 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
631 Use unsigned comparisons.
632 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
633 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
634 (_bfd_do_ns32k_reloc_contents): Likewise.
635 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
636 (_bfd_ns32k_get_immediate): Likewise.
637 (_bfd_ns32k_put_displacement): Likewise.
638 (_bfd_ns32k_put_immediate): Likewise.
639 (bfd_reloc_status_type): Likewise.
641 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
643 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
644 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
645 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
647 (record_toc): Use a bfd_signed_vma for our_toc_offset.
648 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
649 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
651 (_bfd_elfcore_strndup): Likewise for "dup".
652 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
653 "name" to avoid shadowing.
654 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
656 * elf32-i386.c (elf_i386_relocate_section): Likewise.
657 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
659 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
661 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
663 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
665 (elf_link_input_bfd): Likewise.
666 (elf_bfd_final_link): Remove duplicate innermost "off" var.
667 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
668 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
670 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
671 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
672 (sunos_write_dynamic_symbol): Remove unused vars.
673 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
674 innermost "directory_name" and "file_name" vars.
675 * tekhex.c (first_phase): Rename local var "type" to "stype".
676 (tekhex_write_object_contents): Rename innermost "s" to "sym".
677 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
678 doing comparison at caller.
679 (vms_esecflag_by_name): Likewise.
680 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
681 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
682 (xcoff_write_global_symbol): Rename "p" param to "inf".
684 * cisco-core.c: Add missing prototypes.
685 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
686 (cisco_core_file_failing_signal): Likewise.
687 (cisco_core_file_matches_executable_p): Likewise.
688 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
689 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
690 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
691 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
693 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
694 thumb_glue_size and arm_glue_size.
695 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
697 * coff64-rs6000.c: Group prototypes together.
699 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
700 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
702 * cpu-arc.c: Add missing prototypes.
703 * cpu-h8500.c: Likewise.
704 * cpu-i960.c: Likewise.
705 * cpu-pj.c: Likewise.
706 * cpu-sh.c: Likewise.
707 * cpu-w65.c: Likewise.
708 * cpu-z8k.c: Likewise.
709 * elf32-fr30.c: Likewise.
710 * elf32-h8300.c: Likewise.
711 * elf32-i370.c: Likewise.
712 * hpux-core.c: Likewise.
713 * versados.c: Likewise.
715 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
716 * cpu-h8500.c: Likewise.
717 * cpu-i960.c: Likewise.
718 * cpu-z8k.c: Likewise.
720 * cpu-ia64-opc.c: Correct comment.
722 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
724 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
726 (bfd_elf32_write_out_phdrs): Likewise.
727 (bfd_elf64_write_out_phdrs): Likewise.
728 (elf_linker_section_pointers): Change addend to bfd_vma.
729 (_bfd_elf_find_pointer_linker_section): Likewise.
730 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
731 filepos to unsigned file_ptr.
732 (_bfd_elfcore_strndup): Change max param to size_t.
733 * elf.c (_bfd_elfcore_make_pseudosection): As above.
734 (_bfd_elfcore_strndup): Likewise.
735 (_bfd_elf_find_pointer_linker_section): Likewise.
737 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
738 insn and sym_value to ints.
740 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
742 (elfcore_read_notes): Likewise.
744 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
745 param from unsigned char to int.
746 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
747 for info_to_howto call.
748 (add_dynamic_entry): Define macro.
749 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
751 * elf32-cris.c (add_dynamic_entry): Define macro.
752 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
754 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
755 (elf32_h8_object_p): Likewise.
756 (elf32_h8_merge_private_bfd_data): Likewise.
757 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
759 * elf32-hppa.c (add_dynamic_entry): Define macro.
760 (elf32_hppa_size_dynamic_sections): Use it.
761 * elf32-i370.c (add_dynamic_entry): Define macro.
762 (i370_elf_size_dynamic_sections): Use it.
763 (i370_noop): Make static.
764 * elf32-i386.c (add_dynamic_entry): Define macro.
765 (elf_i386_size_dynamic_sections): Use it.
766 * elf32-m68k.c (add_dynamic_entry): Define macro.
767 (elf_m68k_size_dynamic_sections): Use it.
768 * elf32-ppc.c (add_dynamic_entry): Define macro.
769 (ppc_elf_size_dynamic_sections): Use it.
770 * elf32-s390.c (add_dynamic_entry): Define macro.
771 (elf_s390_size_dynamic_sections): Use it.
772 * elf64-alpha.c (add_dynamic_entry): Define macro.
773 (elf64_alpha_size_dynamic_sections): Use it.
774 * elf64-hppa.c (add_dynamic_entry): Define macro.
775 (elf64_hppa_size_dynamic_sections): Use it.
776 * elf64-ppc.c (add_dynamic_entry): Define macro.
777 (ppc64_elf_size_dynamic_sections): Use it.
778 * elf64-s390.c (add_dynamic_entry): Define macro.
779 (elf_s390_size_dynamic_sections): Use it.
780 * elf64-sparc.c (add_dynamic_entry): Define macro.
781 (sparc64_elf_size_dynamic_sections): Use it.
782 * elf64-x86-64.c (add_dynamic_entry): Define macro.
783 (elf64_x86_64_size_dynamic_sections): Use it.
784 * elfxx-ia64.c (add_dynamic_entry): Define macro.
785 (elfNN_ia64_size_dynamic_sections): Use it.
787 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
788 (v850_elf_perform_relocation): Make "r_type" param unsigned.
790 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
791 false if the first malloc fails rather than going via error_return.
793 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
795 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
797 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
799 * elfxx-ia64.c (global_sym_index): Return a long.
801 * ieee.c (get_symbol): Use int rather than char param.
802 (ieee_slurp_sections): Move "section" var to inner blocks.
803 (copy_expression): Don't init "value" to zero or worry about
804 clearing to zero after using.
805 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
808 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
811 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
812 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
814 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
816 * pc532-mach.c (MYNSX): Delete.
817 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
818 (write_object_contents): Correct prototype.
820 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
823 * section.c (bfd_set_section_contents): Remove redundant
824 "offset < 0" test. Check that "count" doesn't overflow size_t.
825 (bfd_get_section_contents): Likewise.
827 * som.c (som_fixup_formats): Add missing braces.
828 (som_reloc_addend): Pass a bfd_vma for "addend".
830 * srec.c (srec_write_record): Pass "type" as an unsigned int.
831 (srec_write_symbols): Remove an unnecessary var.
833 * targets.c (_bfd_target_vector): Sort entries. Sort externs
835 * configure.in: Sort to match. Bump version number.
836 * configure: Regenerate.
838 * tekhex.c (move_section_contents): Assert offset == 0.
840 * versados.c (new_symbol_string): Constify arg.
841 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
842 (versados_get_symbol_info): Make static.
843 (versados_print_symbol): Likewise.
844 (versados_get_reloc_upper_bound): Likewise.
845 (versados_canonicalize_reloc): Likewise.
847 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
849 * elflink.h (elf_link_input_bfd): Fix typo in error message.
851 2001-09-17 H.J. Lu <hjl@gnu.org>
853 * dwarf1.c (parse_die): Take a new arg for the end of the
854 section. Return false if die is beyond the section.
855 (parse_functions_in_unit): Pass the end of the section to
857 (_bfd_dwarf1_find_nearest_line): Likewise.
859 2001-09-14 Michael Rauch <mrauch@netbsd.org>
861 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
862 just like R_SPARC_32.
864 2001-09-14 Kevin Lo <kevlo@openbsd.org>
866 * configure.bfd: Add arm-openbsd target.
868 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
870 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
871 Add support for mips64.
873 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
875 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
877 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
879 * elf.c (prep_headers): Get the machine code from the elf
881 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
882 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
883 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
884 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
885 * elf-arc.c (arc_elf_final_write_processing): Don't override
886 e_machine, it's now properly set in prep_headers.
887 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
889 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
890 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
891 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
892 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
893 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
894 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
895 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
896 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
897 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
898 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
899 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
900 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
902 2001-09-11 Richard Henderson <rth@redhat.com>
904 * elf64-alpha.c (elf64_alpha_section_flags): New.
905 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
907 2001-09-11 Richard Henderson <rth@redhat.com>
909 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
910 apply HINT relocations against dynamic symbols.
912 2001-09-11 H.J. Lu <hjl@gnu.org>
914 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
916 2001-09-09 Richard Henderson <rth@redhat.com>
918 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
920 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
921 following a call to a near function.
923 2001-09-08 Richard Henderson <rth@redhat.com>
925 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
926 relocation errors. Fail gp-relative relocations against
929 2001-09-08 Alan Modra <amodra@bigpond.net.au>
931 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
932 as well as DEF_DYNAMIC in test for avoided copy relocs.
933 (allocate_plt_and_got_and_discard_relocs): Likewise.
934 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
935 (allocate_plt_and_got_and_discard_relocs): Likewise.
937 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
939 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
942 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
944 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
946 (mips_elf64_howto_table_rel): Likewise.
948 2001-09-05 Tom Rix <trix@redhat.com>
950 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
952 (write_global_symbol) : Same.
953 (bfd_xcoff_export_symbol): Remove unused syscall param.
954 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
955 bfd_xcoff_import_symbol.
957 * bfd-in2.h : Regenerate.
959 2001-09-04 Richard Henderson <rth@redhat.com>
961 * elf64-alpha.c (SKIP_HOWTO): New.
962 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
963 Fix sizes of 16-bit mem format relocs.
964 (elf64_alpha_reloc_map): Update to match.
965 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
966 (elf64_alpha_relax_without_lituse): Likewise.
967 (elf64_alpha_check_relocs): Handle GPREL16.
968 (elf64_alpha_relocate_section): Likewise.
969 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
970 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
971 * bfd-in2.h, libbfd.h: Rebuild.
973 2001-09-04 Jeff Law <law@redhat.com>
975 * elf32-h8300.c (elf32_h8_relax_section): New function.
976 (elf32_h8_relax_delete_bytes): Likewise.
977 (elf32_h8_symbol_address_p): Likewise.
978 (elf32_h8_get_relocated_section_contents): Likewise.
979 (bfd_elf32_bfd_relax_section): Define.
980 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
982 * elf32-h8300.c (special): New function.
983 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
985 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
986 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
987 Fix minor problems with 8bit and 16bit PC relative relocations.
989 2001-09-01 Andreas Jaeger <aj@suse.de>
991 * vms-tir.c: Add missing prototypes.
992 * vms-hdr.c: Likewise.
993 * vms-gsd.c: Likewise.
994 * vms-misc.c: Likewise.
996 2001-08-31 H.J. Lu <hjl@gnu.org>
998 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1001 2001-08-31 Eric Christopher <echristo@redhat.com>
1002 Jason Eckhardt <jle@redhat.com>
1004 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1005 mips32_4k and mips64.
1006 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1007 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1008 * bfd/cpu-mips.c: Ditto.
1009 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1010 * bfd/bfd-in2.h: Regenerate.
1012 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1014 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1015 value into R_ALPHA_RELATIVE's addend.
1016 (elf64_alpha_finish_dynamic_symbol): Likewise.
1018 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1020 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1021 recomputed addend during relocatable link if not USE_REL.
1023 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1026 2001-08-30 H.J. Lu <hjl@gnu.org>
1028 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1030 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1031 relocations for weak definitions.
1033 2001-08-30 H.J. Lu <hjl@gnu.org>
1035 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1036 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1037 * Makefile.in: Rebuild.
1039 2001-08-30 H.J. Lu <hjl@gnu.org>
1041 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1042 dynamic relocation for undefined weak symbols when creating
1043 executables. Check h->root.root.type, instead of h->root.type.
1045 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1047 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1048 default from coff to elf.
1050 2001-08-29 Jeff Law <law@redhat.com>
1052 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1054 (h8_reloc_map): Similarly.
1055 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1056 Add support for PC relative relocations.
1058 * elf32-h8300.c: Put all prototypes together.
1059 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1060 (elf32_h8_final_link_relocate): New function for linker.
1061 (elf32_h8_relocate_section): Similarly.
1062 (elf_backend_relocate_section): Define.
1064 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1065 (h8300_scan): Handle architecture:machine encodings typically
1066 found in linker scripts.
1067 * elf.c (prep_headers): Do not try to do H8 machine recognition
1069 * elf32-h8300.c: Add some missing prototypes.
1070 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1071 (elf32_h8_object_p): Similarly.
1073 2001-08-29 Tom Rix <trix@redhat.com>
1075 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1076 does not follow a XTY_SD.
1078 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1080 * targmatch.sed: Delete case statements.
1081 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1084 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1086 * Makefile.am (elf32-h8300.lo): New target.
1087 * config.bfd (h8300*-*-elf): New case.
1088 * configure.in (bfd_elf32_h8300_vec): New case.
1089 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1090 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1091 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1092 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1093 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1094 * elf32-h8300.c: New file.
1095 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1097 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1099 * sparclynx.c: Add missing prototypes.
1100 * coff-mcore.c: Add missing prototypes.
1101 * elf32-pj.c: Add missing prototypes.
1102 * nlm32-sparc.c: Add missing prototypes.
1103 * oasys.c: Add missing prototypes.
1104 * pdp11.c: Add missing prototypes.
1105 * pe-mips.c: Add missing prototypes.
1106 * riscix.c: Add missing prototypes.
1108 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1110 * elf32-i386.c: Add missing prototypes.
1111 * elf32-ppc.c: Likewise.
1112 * elf32-sh-lin.c: Likewise.
1113 * elfarm-nabi.c: Likewise.
1115 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1117 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1118 (elf_i386_grok_psinfo): New function.
1119 (elf_backend_grok_prstatus): Define.
1120 (elf_backend_grok_psinfo): Likewise.
1121 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1122 (ppc_elf_grok_psinfo): New function.
1123 (elf_backend_grok_prstatus): Define.
1124 (elf_backend_grok_psinfo): Likewise.
1125 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1126 (elf32_shlin_grok_psinfo): New function.
1127 (elf_backend_grok_prstatus): Define.
1128 (elf_backend_grok_psinfo): Likewise.
1129 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1130 (elf32_arm_nabi_grok_psinfo): New function.
1131 (elf_backend_grok_prstatus): Define.
1132 (elf_backend_grok_psinfo): Likewise.
1134 2001-08-27 H.J. Lu <hjl@gnu.org>
1136 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1138 (mips_elf_calculate_relocation): Create dynamic relocation for
1139 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1142 2001-08-27 H.J. Lu <hjl@gnu.org>
1144 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1145 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1146 (_bfd_elf32_mips_grok_prstatus): Likewise.
1147 (_bfd_elf32_mips_grok_psinfo): Likewise.
1148 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1149 `struct mips_elf_link_hash_entry *'.
1150 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1152 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1154 * mipsbsd.c: Add missing prototypes.
1155 * hp300hpux.c: Add missing prototypes.
1156 * i386aout.c: Add missing prototypes.
1157 * i386lynx.c: Add missing prototypes.
1158 * i386mach3.c: Add missing prototypes.
1159 * i386msdos.c: Add missing prototypes.
1160 * i386os9k.c: Add missing prototypes.
1162 2001-08-27 Linus Nordberg <linus@swox.se>
1163 Torbjorn Granlund <tege@swox.com>
1164 Staffan Ulfberg <staffanu@swox.se>
1165 Alan Modra <amodra@bigpond.net.au>
1167 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1168 targ64_selvecs for 32 bit powerpc targets.
1169 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1170 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1172 * Makefile.in: Regenerate.
1173 * configure.in: Add elf64_powerpc vecs.
1174 * configure: Regenerate.
1175 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1176 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1177 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1178 * elf64-ppc.c: New file.
1179 * reloc.c: Add powerpc64 relocs.
1180 * libbfd.h: Regenerate.
1181 * bfd-in2.h: Regenerate.
1183 2001-08-27 Andreas Schwab <schwab@suse.de>
1185 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1186 reloc is against read-only section.
1187 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1188 looking up section names for DT_TEXTREL.
1189 (elf32_m68k_reloc_type_class): New function.
1190 (elf_backend_reloc_type_class): Define.
1192 2001-08-27 Andreas Jaeger <aj@suse.de>
1194 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1195 reloc is against read-only section.
1196 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1197 looking up section names for DT_TEXTREL.
1198 (elf_s390_reloc_type_class): New.
1199 (elf_backend_reloc_type_class): Define.
1201 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1202 reloc is against read-only section.
1203 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1204 looking up section names for DT_TEXTREL.
1205 (elf_s390_reloc_type_class): New.
1206 (elf_backend_reloc_type_class): Define.
1208 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1209 is against read-only section.
1210 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1211 looking up section names for DT_TEXTREL.
1212 (ppc_elf_reloc_type_class): New.
1213 (elf_backend_reloc_type_class): Define.
1215 2001-08-26 Andreas Jaeger <aj@suse.de>
1217 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1218 reloc is against read-only section.
1219 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1220 looking up section names for DT_TEXTREL.
1221 (elf_cris_reloc_type_class): New.
1222 (elf_backend_reloc_type_class): Define.
1224 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1225 against read-only section.
1226 (elf_backend_reloc_type_class): Define.
1227 (sh_elf_reloc_type_class): New.
1228 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1229 looking up section names for DT_TEXTREL.
1231 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1232 reloc is against read-only section.
1233 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1234 looking up section names for DT_TEXTREL.
1235 (elf32_arm_reloc_type_class): New.
1236 (elf_backend_reloc_type_class): Define.
1238 2001-08-25 Andreas Jaeger <aj@suse.de>
1240 * oasys.c: Add missing prototypes.
1242 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1243 attribute for parameter.
1244 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1246 * versados.c (get_4): Make static.
1247 (get_10): Make static.
1248 Add missing prototypes.
1249 (process_esd): Fix call to versados_new_symbol.
1251 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1253 * coff-a29k.c: Add missing prototypes.
1254 * coff-apollo.c: Add missing prototypes.
1255 * coff-arm.c: Add missing prototypes.
1256 * coff-i860.c: Add missing prototypes.
1257 * coff-rs6000.c: Add missing prototypes.
1258 * coff-tic80.c: Add missing prototypes.
1259 * elf-m10200.c: Add missing prototypes.
1260 * elf-m10300.c: Add missing prototypes.
1261 * elf32-arm.h: Add missing prototypes.
1262 * elf32-d10v.c: Add missing prototypes.
1263 * elf32-m32r.c: Add missing prototypes.
1264 * elf32-mcore.c: Add missing prototypes.
1265 * elf32-openrisc.c: Add missing prototypes.
1266 * elf32-sh.c: Add missing prototypes.
1267 * elf32-sparc.c: Add missing prototypes.
1268 * elf32-v850.c: Add missing prototypes.
1269 * elfarm-nabi.c: Add missing prototypes.
1270 * elfarm-oabi.c: Add missing prototypes.
1272 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1274 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1275 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1277 2001-08-24 H.J. Lu <hjl@gnu.org>
1279 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1282 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1284 * elf-bfd.h (elf_hash_table): Revert definition.
1285 (is_elf_hash_table): New macro.
1286 * elflink.h (elf_link_add_object_symbols): Test
1287 is_elf_hash_table before accessing ELF only fields in hash
1289 (elf_link_create_dynamic_sections): Fail if not using an ELF
1291 (elf_add_dynamic_entry): Fail if not using an ELF hash
1293 (elf_link_record_local_dynamic_symbol): Fail if not using an
1295 (size_dynamic_sections): Fail if not using an ELF hash
1297 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1299 (elf_bfd_final_link): Fail if not using an ELF hash
1302 2001-08-24 H.J. Lu <hjl@gnu.org>
1304 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1305 table is not an ELF linker hash table.
1307 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1308 table type to bfd_link_elf_hash_table.
1310 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1313 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1314 table type to bfd_link_generic_hash_table.
1316 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1318 * bfd.c (bfd_alt_mach_code): New function.
1319 * bfd-in2.h: Rebuilt.
1321 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1323 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1324 `type' field in the hash entry when deciding whether to follow a
1327 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1329 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1331 (elf_link_sort_relocs): Adjust accordingly.
1333 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1334 (elf64_alpha_check_relocs): Set it if section this reloc is against
1335 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1337 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1338 is is against read-only section.
1339 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1340 check section names.
1341 (elf64_alpha_reloc_type_class): New.
1342 (elf_backend_reloc_type_class): Define.
1344 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1346 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1349 2001-08-23 Andreas Jaeger <aj@suse.de>
1351 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1352 the reloc is against read-only section.
1353 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1354 of looking up section names for DT_TEXTREL.
1355 (elf64_x86_64_reloc_type_class): New.
1356 (elf_backend_reloc_type_class): Define.
1358 2001-08-23 H.J. Lu <hjl@gnu.org>
1360 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1361 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1363 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1364 bfd_print_symbol_vandf.
1365 * coffgen.c (coff_print_symbol): Likewise.
1366 * elf.c (bfd_elf_print_symbol): Likewise.
1367 * ieee.c (ieee_print_symbol): Likewise.
1368 * nlmcode.h (nlm_print_symbol): Likewise.
1369 * oasys.c (oasys_print_symbol): Likewise.
1370 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1371 * som.c (som_print_symbol): Likewise.
1372 * srec.c (srec_print_symbol): Likewise.
1373 * tekhex.c (tekhex_print_symbol): Likewise.
1374 * versados.c (versados_print_symbol): Likewise.
1375 * vms.c (vms_print_symbol): Likewise.
1377 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1378 with bfd_fprintf_vma.
1379 (bfd_elf_print_symbol): Likewise.
1380 * syms.c (bfd_print_symbol_vandf): Likewise.
1382 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1384 * aoutf1.h (sunos_write_object_contents): Silence compile time
1386 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1388 * bout.c: Add missing function prototypes. Fix formatting.
1389 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1390 * coff-w65.c: Add missing function prototypes. Fix formatting.
1391 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1392 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1393 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1394 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1395 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1396 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1397 * coff-sh.c: Add missing function prototypes. Fix formatting.
1399 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1401 * elf-bfd.h (enum elf_reloc_type_class): New.
1402 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1403 (_bfd_elf_reloc_type_class): New.
1404 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1405 (elfNN_bed): Add elf_backend_reloc_type_class.
1406 * elf.c (_bfd_elf_reloc_type_class): New.
1407 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1408 is against read-only section.
1409 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1410 looking up section names for DT_TEXTREL.
1411 (elf_i386_reloc_type_class): New.
1412 (elf_backend_reloc_type_class): Define.
1413 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1414 reloc is against read-only section.
1415 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1416 looking up section names for DT_TEXTREL.
1417 (elf32_sparc_reloc_type_class): New.
1418 (elf_backend_reloc_type_class): Define.
1419 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1420 reloc is against read-only section.
1421 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1422 looking up section names for DT_TEXTREL.
1423 (sparc64_elf_reloc_type_class): New.
1424 (elf_backend_reloc_type_class): Define.
1425 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1426 (elfNN_ia64_hash_table_create): Clear ia64_info.
1427 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1429 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1430 instead of looking up section names for DT_TEXTREL.
1431 (elfNN_ia64_reloc_type_class): New.
1432 (elf_backend_reloc_type_class): Define.
1433 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1434 (struct elf_link_sort_rela): New.
1435 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1436 (elf_bfd_final_link): Call elf_link_sort_relocs.
1437 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1440 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1442 * configure.in (x86-bsdi): No corefile support.
1443 * configure: Regenerate.
1445 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1447 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1450 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1452 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1453 the alignment of dwarf2 linkonce sections to 0.
1454 * coff-sto32.c: Likewise.
1456 2001-08-20 Andreas Jaeger <aj@suse.de>
1458 * coff-sparc.c: Add missing prototypes.
1459 * elf32-s390.c: Likewise.
1460 * elf32-i960.c: Likewise.
1461 * aout-target.h: Likewise.
1463 2001-08-20 H.J. Lu <hjl@gnu.org>
1465 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1466 (elf_num_section_syms): New for num_section_syms.
1468 * elf.c (elf_map_symbols): Set num_section_syms.
1469 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1470 the section symbol index.
1472 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1474 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1475 select the generic has table creator. All elf backends need elf
1476 specific fields in the hash table.
1478 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1480 * archive.c (offsetof): Remove define.
1483 * sysdep.h (offsetof): Define.
1485 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1487 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1488 (bfd_set_gp_size): Make param unsigned.
1489 * bfd-in2.h: Regenerate.
1490 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1491 than calling bfd_get_gp_size.
1492 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1493 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1495 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1497 * linker.c (default_fill_link_order): Handle four byte fill value.
1499 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1501 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1503 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1505 * elf64-mips.c (UNUSED_RELOC): Define.
1506 (mips_elf64_howto_table_rel): Use it.
1507 (mips_elf64_howto_table_rela): Here too.
1508 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1510 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1512 * coffgen.c (coff_print_symbol): Fix warnings.
1513 (coff_find_nearest_line): Likewise.
1514 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1515 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1516 * format.c (bfd_check_format_matches): Likewise.
1517 (bfd_set_format): Likewise.
1518 * coff-ia64.c: Add missing prototypes.
1519 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1520 signed to silence warnings.
1521 (elf64_alpha_relocate_section): Likewise.
1522 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1523 (elf64_alpha_add_symbol_hook): Likewise.
1524 (elf64_alpha_final_link): Likewise.
1525 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1526 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1527 (elf64_alpha_size_got_sections): Likewise.
1528 * elfxx-ia64.c: Add missing prototypes.
1529 (elfNN_ia64_relocate_section): Fix warning.
1530 (elfNN_ia64_unwind_entry_compare): Make params const.
1532 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1534 * config.bfd (targ64_selvecs): New.
1535 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1537 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1538 (BFD_DEFAULT_TARGET_SIZE): New.
1539 (BFD_ARCH_SIZE): Comment.
1540 * configure.in (target_size): New. Set instead of target64 in
1541 selvecs case statement. Set target64 from it.
1542 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1543 * bfd-in2.h: Regenerate.
1544 * configure: Regenerate.
1546 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1548 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1549 (bfd_errmsgs): Add corresponding message.
1550 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1551 finding an archive that contains different format object files.
1552 Return bfd_error_wrong_object_format for this case.
1553 * format.c: Formatting fixes. s/CONST/const/.
1554 (bfd_check_format_matches): Accept archives that give
1555 bfd_error_wrong_object_format if no full match is found. Tidy
1556 code handling matching_vector. Don't return a pointer to freed
1557 memory in `matching'. Handle ambiguous matches as for partial
1559 * bfd-in2.h: Regenerate.
1561 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1563 * libieee.h (common_header_type): Add last_byte field.
1565 * ieee.c: Add missing prototypes. Some format fixes.
1566 (struct output_buffer_struct): Move for availability to prototypes.
1567 (ieee_part_after): New function.
1568 (ieee_slurp_debug): Use it here.
1569 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1570 ieee_part_after to set last_byte to one past end of current part.
1572 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1574 (parse_expression): Don't go beyond the end of the current part.
1575 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1576 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1577 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1578 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1579 ieee_set_section_contents, ieee_write_object_contents,
1580 ieee_make_empty_symbol): Make static.
1581 (ieee_archive_p): Correct comments regarding bfd_read.
1582 (ieee_object_p): Similarly.
1583 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1584 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1585 input_bfd, output_bfd, output_buffer.
1586 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1587 do_with_relocs, ie. as a symbol for relocatable files.
1588 (ieee_vec): Add comments showing functions referenced by macros.
1590 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1592 * aout-tic30.c: Add missing prototypes. Fix formatting.
1593 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1594 * peXXigen.c: Add missining prototypes. Fix formatting.
1595 * aout-adobe.c: Add missining prototypes. Fix formatting.
1597 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1599 * elf32-v850.c: Add missing function prototypes.
1600 Fix some formatting.
1602 * cpu-v850.c: Add missing function prototype.
1603 Fix some formatting.
1605 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1607 * elf-bfd.h (struct elf_backend_data): Add new fields
1608 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1609 (bfd_elf_sprintf_vma): Rename function prototype to
1610 '_bfd_elf_sprintf_vma'.
1611 (bfd_elf_fprintf_vma): Rename function prototype to
1612 '_bfd_elf_fprintf_vma'.
1613 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1614 directly, instead indirect via the elf_backend_data structure.
1615 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1616 instead indirect via the elf_backend_data structure.
1617 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1618 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1619 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1621 (elf_backend_fprintf_vma): Initialise if not already defined.
1622 (struct elf_backend_data): Initialise the
1623 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1625 2001-08-10 Andreas Jaeger <aj@suse.de>
1627 * elf64-sparc.c: Add missing prototypes.
1628 * elf32-cris.c: Likewise.
1629 * elf32-i370.c: Likewise.
1630 * elf64-hppa.c: Likewise.
1631 * elf64-s390.c: Likewise.
1633 2001-08-10 Andreas Jaeger <aj@suse.de>
1635 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1636 Add prototypes where needed.
1638 2001-08-10 H.J. Lu <hjl@gnu.org>
1640 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1641 (bfd_fprintf_vma): Likewise.
1643 2001-08-10 H.J. Lu <hjl@gnu.org>
1645 * bfd.c (bfd_sprintf_vma): Don't return void.
1646 (bfd_fprintf_vma): Likewise.
1648 2001-08-10 Andreas Jaeger <aj@suse.de>
1650 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1652 * configure: Regenerate.
1654 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1656 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1657 warning if not BFD64. Add braces so emacs auto format works.
1658 (bfd_elf_fprintf_vma): Likewise.
1660 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1662 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1663 param to agree with libxcoff.h.
1664 (xcoff_swap_ldhdr_out): Likewise.
1665 (xcoff_swap_ldsym_in): Likewise.
1666 (xcoff_swap_ldsym_out): Likewise.
1667 (xcoff_swap_ldrel_in): Likewise.
1668 (xcoff_swap_ldrel_out): Likewise.
1669 (xcoff_create_csect_from_smclas): Likewise.
1670 * coff64-rs6000.c: Add missing prototypes.
1671 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1673 (xcoff64_swap_ldhdr_out): Likewise.
1674 (xcoff64_swap_ldsym_in): Likewise.
1675 (xcoff64_swap_ldsym_out): Likewise.
1676 (xcoff64_swap_ldrel_in): Likewise.
1677 (xcoff64_swap_ldrel_out): Likewise.
1678 (xcoff64_ppc_relocate_section): Make static.
1679 (xcoff64_slurp_armap): Likewise.
1680 (xcoff64_archive_p): Likewise.
1681 (xcoff64_openr_next_archived_file): Likewise.
1682 (xcoff64_sizeof_headers): Likewise.
1683 (xcoff64_is_lineno_count_overflow): Likewise.
1684 (xcoff64_is_reloc_count_overflow): Likewise.
1685 (xcoff64_loader_symbol_offset): Likewise.
1686 (xcoff64_loader_reloc_offset): Likewise.
1687 * elf64-gen.c: Add missing prototypes.
1689 2001-08-09 H.J. Lu <hjl@gnu.org>
1691 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1692 (bfd_elf_fprintf_vma): Likewise.
1694 2001-08-09 H.J. Lu <hjl@gnu.org>
1696 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1699 * bfd-in2.h: Regenerated.
1701 2001-08-09 H.J. Lu <hjl@gnu.org>
1703 * bfd-in.h (bfd_sprintf_vma): New prototype.
1704 (bfd_fprintf_vma): Likewise.
1705 (bfd_elf_sprintf_vma): Likewise.
1706 (bfd_elf_fprintf_vma): Likewise.
1707 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1708 * bfd-in2.h: Regenerated.
1710 * bfd.c (bfd_sprintf_vma): New. Defined.
1711 (bfd_fprintf_vma): Likewise.
1713 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1714 (bfd_elf_fprintf_vma): Likewise.
1716 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1718 * coff-rs6000.c: Add missing prototypes.
1719 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1720 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1721 xcoff_loader_reloc_offset): Make static.
1722 * dwarf1.c: Add missing prototypes.
1723 * dwarf2.c: Add missing prototypes.
1724 (struct abbrev_info): Move definition.
1725 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1726 * elf.c: Add missing prototypes.
1727 * elf32-gen.c: Likewise.
1728 * elf32-i386.c: Likewise.
1729 * elf32-ppc.c: Likewise.
1730 (ppc_elf_sort_rela): Use PTR instead of "void *".
1731 * elflink.h: Add missing prototypes. Formatting fixes.
1732 * merge.c: Add missing prototypes.
1733 (last4_eq): Use PTR instead of "void *".
1734 (last_eq): Likewise.
1735 * syms.c: Add missing prototypes.
1737 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1739 * bfd.c: Fix formatting.
1740 * bfd-in2.h: Regenerate.
1742 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1744 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1745 true (this target uses REL relocations) and 'pcrel_offset' to
1746 false (the PC is implied, not stored in the offset).
1748 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1750 1999-10-19 Linus Nordberg <linus@swox.se>
1751 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1752 * elfxx-target.h (elf_backend_want_got_sym): Define.
1753 (elfNN_bed): Add elf_backend_want_got_sym.
1754 * elflink.c (_bfd_elf_create_got_section): Define
1755 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1757 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1759 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1760 (find_rela_addend): New function.
1761 (parse_comp_unit): Call it to find the abbrev offset addend.
1762 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1763 members of dwarf2_debug as debugging information is read.
1765 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1767 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1768 targets as well as sh-pe.
1770 2001-08-03 Ben Harris <bjh21@netbsd.org>
1772 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1773 reloc from start of section when computing value for R_ARM_REL32
1776 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1778 From H.J. Lu <hjl@gnu.org>
1779 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1780 keep relocs for undefined syms if there are no dynamic sections in
1782 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1784 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1786 * cofflink.c (coff_link_check_ar_symbols): also search for
1787 __imp__symbol as well as _symbol.
1788 * linker.c (_bfd_generic_link_add_archive_symbols): also
1789 search for __imp__symbol as well as _symbol.
1791 2001-08-01 Adam Nemet <anemet@lnxw.com>
1793 * elf.c (elf_sort_sections): Return zero only as the last step.
1795 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1797 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1799 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1800 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1803 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1805 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1806 to match corresponding bfd_coff_backend data member.
1808 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1810 * Makefile.am: Update dependencies with "make dep-am".
1811 * Makefile.in: Regenerate
1813 2001-07-15 H.J. Lu <hjl@gnu.org>
1815 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1816 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1817 * Makefile.in: Regenerate.
1819 2001-07-11 H.J. Lu <hjl@gnu.org>
1821 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1822 flags when creating the reloc section if the ALLOC flag in the
1823 source section is set.
1825 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1827 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1828 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1829 * bfd-in2.h: Regenerate.
1830 * libbfd.h: Regenerate.
1831 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1833 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1834 (elfNN_ia64_check_relocs): Likewise.
1835 (elfNN_ia64_install_value): Likewise.
1836 (elfNN_ia64_relocate_section): Likewise.
1838 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1840 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1842 (elf32_sparc_check_relocs): Likewise.
1843 Only create .rela section for alloced sections in shared libraries.
1844 (elf32_sparc_relocate_section): Likewise.
1845 Remove redundant check.
1846 Optimize unaligned reloc usage.
1847 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1850 2001-07-11 H.J. Lu <hjl@gnu.org>
1852 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1853 ALLOC|LOAD flags as the source section for debugging sections
1854 when creating the reloc section.
1856 2001-07-05 Jim Wilson <wilson@redhat.com>
1858 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1859 the section of the bigger symbol.
1861 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1863 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1865 * peicode.h (coff_swap_scnhdr_in): For sections containing
1866 uninitialised data, only set their size to s_paddr if this does
1867 not reset their size to zero. MS's latest compilers will set
1870 2001-07-04 H.J. Lu <hjl@gnu.org>
1872 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1873 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1876 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1878 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1880 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1881 sections being discarded.
1883 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1885 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1886 instead of _bfd_elfcore_section_from_phdr.
1887 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1888 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1889 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1890 (elfcore_grok_prstatus): Likewise.
1891 (elfcore_grok_lwpstatus): Likewise.
1892 (bfd_get_elf_phdr_upper_bound): Likewise.
1893 (elfcore_make_note_pseudosection): Formatting.
1894 (_bfd_elfcore_strndup): Formatting.
1895 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1896 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1898 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1900 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1901 and _bfd_elfcore_strndup.
1902 (struct elf_backend_data): Add elf_backend_grok_prstatus
1903 and elf_backend_grok_psinfo.
1904 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1905 (elfcore_grok_prstatus): Use it.
1906 (elfcore_make_note_pseudosection): Likewise.
1907 (elfcore_strndup): Rename to...
1908 (_bfd_elfcore_strndup): Here, and make global.
1909 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1910 (elfcore_grok_note): Call elf_backend_grok_prstatus
1911 and elf_backend_grok_psinfo if available.
1912 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1913 (_bfd_elf32_mips_grok_psinfo): New function.
1914 (elf_backend_grok_prstatus): Define.
1915 (elf_backend_grok_psinfo): Define.
1916 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1917 (elf_backend_grok_psinfo): Likewise.
1918 (elfNN_bed): Include elf_backend_grok_prstatus and
1919 elf_backend_grok_psinfo.
1921 2001-06-29 H.J. Lu <hjl@gnu.org>
1923 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1924 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1925 is NULL before filling PLT.
1927 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1929 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1931 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1933 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1935 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1936 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1939 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1940 (IS_ABSOLUTE_RELOC): Define.
1941 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1942 (hppa_link_hash_newfunc): Always init it.
1943 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1944 create COPY relocs only when the reloc is in a read-only section.
1945 Instead, allocate space for a dynamic reloc to reference the
1946 library symbol directly. Keep track of space we allocate using
1948 (hppa_discard_copies): Delete, and move code to..
1949 (allocate_plt_and_got): ..here. Rename to
1950 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1951 relocs for non-shared link.
1952 (elf32_hppa_size_dynamic_sections): Update calls to above.
1953 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1954 in lieu of COPY relocs.
1956 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1958 (elf_i386_adjust_dynamic_symbol): ..nor here..
1959 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1961 (elf_i386_size_dynamic_sections): Fix a comment.
1962 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1963 involved in writing reloc out.
1965 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1967 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1968 Ensure syms are dynamic if we might be emitting a reloc.
1969 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1970 for undefweak or undefined syms..
1971 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1973 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1974 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1975 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1976 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1978 2001-06-24 H.J. Lu <hjl@gnu.org>
1980 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1981 strncasecmp/strcasecmp instead of strncmp/strcmp.
1983 2001-06-23 H.J. Lu <hjl@gnu.org>
1985 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1986 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1987 in the regular object file and treat the weak definition as
1990 2001-06-23 Alan Modra <amodra@bigpond.net.au>
1992 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1993 unresolved_reloc test to exclude cases where we use "relocation"
1994 before setting it to point into the .got. Reinstate fudge for
1995 unresolved relocs in debugging sections.
1997 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1998 complicated tests for unresolvable relocs with a simple direct
1999 scheme using "unresolved_reloc" var.
2001 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2002 elf_i386_dyn_relocs. Update comment.
2003 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2005 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2007 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2009 (elf_i386_size_dynamic_sections): Likewise.
2010 (elf_i386_finish_dynamic_symbol): Likewise.
2011 (elf_i386_finish_dynamic_sections): Likewise.
2012 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2015 Avoid creating COPY relocs if possible.
2016 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2017 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2018 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2019 reloc is in a read-only section. Instead, allocate space for a
2020 dynamic reloc to reference the library symbol directly. Keep
2021 track of space we allocate using pcrel_relocs_copied.
2022 (discard_copies): Delete, and move code to ..
2023 (allocate_plt_and_got): ..here. Rename to
2024 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2025 relocs for non-shared link.
2026 (elf_i386_size_dynamic_sections): Update calls to above functions.
2027 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2028 more ugly logic to avoid "unresolvable relocation" error. Use
2029 htab shortcut in place of elf_hash_table macro.
2030 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2031 not always be created now.
2033 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2035 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2038 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2040 * configure.host (mips64-*-linux): Reformat.
2042 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2044 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2045 allocate local .got space. Use shortcuts from hash table for .got
2046 and .plt rather than comparing section names.
2047 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2048 adjusting index into local_got_refcounts to document what we are
2050 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2051 Tidy .got and .plt error checking.
2053 2001-06-20 Catherine Moore <clm@redhat.com>
2055 * elf-bfd.h (struct elf_backend_data):
2056 elf_backend_emit_relocs: New field: Function for emitting
2058 elf_backend_count_relocs: New field: Function for determining
2059 the number of relocs to be emitted.
2060 * elfxx-target.h: Provide default (NULL) values for
2061 elf_backend_emit_relocs and elf_backend_count_relocs.
2062 * elflink.h (elf_link_size_reloc_section): Make the hash table
2063 big enough to hold the relocs counted by either reloc_count or
2065 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2066 should be emitted, either because of a command line option
2067 stored in the info structure or because the target provides a
2068 special reloc emitting function.
2069 If the target provides a reloc counting function use it,
2070 unless performing a relocatable link or emitting all relocs.
2071 Also set the SEC_RELOC flag on any output section which will
2073 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2074 should be emitted, either because of a command line option
2075 stored in the info structure or because the target provides a
2076 special reloc emitting function.
2077 If the target provides a reloc emitting function, use it,
2078 unless performing a relocatable link or emitting all relocs.
2080 2001-06-20 H.J. Lu <hjl@gnu.org>
2082 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2083 allocate local .got space.
2085 2001-06-19 Andreas Jaeger <aj@suse.de>
2087 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2090 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2092 * elflink.h (struct elf_assign_sym_version_info): Remove member
2093 export_dynamic. All users changed to use info member.
2094 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2095 export_dynamic, instead use member in parameter info.
2096 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2097 bfd_elf64_size_dynamic_sections): Update prototype.
2098 * bfd-in2.h: Regenerate.
2100 2001-06-18 H.J. Lu <hjl@gnu.org>
2102 * elflink.h (elf_info_failed): Add a new field, verdefs.
2103 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2105 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2108 2001-06-17 H.J. Lu <hjl@gnu.org>
2110 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2111 readonly_reloc, to record if a relocation in the .rel.dyn
2112 section is against a read-only section.
2113 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2115 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2116 in the .rel.dyn section against a read-only section by setting
2117 DF_TEXTREL or readonly_reloc.
2118 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2120 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2121 there is a relocation in the .rel.dyn section against a
2123 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2126 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2128 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2129 function. Move flagword result into parameter list. Remove
2130 comment about setting bfd_error_handler to intercept failure
2132 * coffgen.c (make_a_section_from_file): Examine result of
2133 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2135 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2136 function. Move flagword result into parameter list.
2137 * libcoff.h: Regenerate.
2138 * libecoff.h: Regenerate.
2140 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2142 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2143 section is going to follow it.
2145 2001-06-12 Catherine Moore <clm@redhat.com>
2147 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2148 with the file_align entry from elf_backend_data.
2149 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2150 (elf_gc_record_vtentry): Likewise.
2152 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2154 * elflink.h: Whitespace changes.
2155 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2156 rather than "unsigned char".
2157 (elf_link_output_relocs): Likewise.
2158 (elf_link_input_bfd): Likewise.
2159 (elf_reloc_link_order): LIkewise.
2160 * elf.c: s/CONST/const/. Whitespace changes.
2161 * elf32-mips.c: Formatting fix.
2163 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2164 * Makefile.in: Regenerate.
2165 * po/Make-in: Remove trailing tab.
2167 2001-06-09 Philip Blundell <philb@gnu.org>
2169 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2171 (elf32_arm_plt_entry): Likewise.
2173 2001-06-08 H.J. Lu <hjl@gnu.org>
2175 * elf.c (swap_out_syms): Keep names for global section symbols.
2177 2001-06-07 H.J. Lu <hjl@gnu.org>
2179 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2180 MIPS-based machines need it.
2182 2001-06-07 H.J. Lu <hjl@gnu.org>
2184 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2187 * config.bfd: Remove ecoff from Linux/mips.
2189 2001-06-07 Andreas Jaeger <aj@suse.de>
2191 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2193 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2194 alignment of 8 for .rela sections; handle further relocations.
2196 2001-06-06 Christian Groessler <cpg@aladdin.de>
2198 * coff-z8k.c: Fix formatting.
2199 Fix howtos: howto->size was always 1.
2201 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2203 * configure.host (mips64*-*-linux*): Define.
2205 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2207 * elf32-i386.c (elf_i386_discard_copies): Rename to
2208 discard_copies, and use elf_link_hash_entry arg rather than
2209 elf_i386_link_hash_entry.
2210 (elf_i386_link_hash_traverse): Delete.
2211 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2212 Tidy sizing of dynamic sections.
2213 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2214 possible .plt entries.
2215 (elf_i386_gc_sweep_hook): Likewise.
2216 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2217 everything with plt.refcount <= 0.
2219 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2221 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2222 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2224 (allocate_plt_and_got): ..instead do it all here. New function.
2225 (elf_i386_size_dynamic_sections): Allocate local .got space and
2226 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2227 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2228 rather than gc variety).
2229 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2230 (elf_i386_relocate_section): Use it here and correct handling of
2231 R_386_GOT32. Provide section and offset for "unresolvable
2232 relocation" error message.
2233 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2235 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2236 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2237 (elf_i386_link_hash_table_create): Init them.
2238 (create_got_section): New function.
2239 (elf_i386_create_dynamic_sections): New function.
2240 (elf_backend_create_dynamic_sections): Set to above.
2241 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2242 calling bfd_get_section_by_name.
2243 (elf_i386_gc_sweep_hook): Likewise.
2244 (elf_i386_adjust_dynamic_symbol): Likewise.
2245 (elf_i386_size_dynamic_sections): Likewise.
2246 (elf_i386_relocate_section): Likewise.
2247 (elf_i386_finish_dynamic_sections): Likewise.
2249 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2251 2001-06-02 H.J. Lu <hjl@gnu.org>
2253 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2255 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2257 2001-06-02 H.J. Lu <hjl@gnu.org>
2259 * aout-cris.c (MACHTYPE_OK): New. Defined.
2261 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2263 * section.c (_bfd_strip_section_from_output): Handle NULL
2266 2001-06-02 H.J. Lu <hjl@gnu.org>
2268 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2269 rs6000coff64_vec only if BFD64 is defined.
2270 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2272 2001-06-02 H.J. Lu <hjl@gnu.org>
2274 * coff-ia64.c (ia64coff_object_p): Rewrite with
2275 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2277 2001-06-01 Andreas Jaeger <aj@suse.de>
2279 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2280 relocation, small reformatting.
2282 2001-05-29 Andreas Jaeger <aj@suse.de>
2284 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2285 (elf64_x86_64_relocate_section): Likewise.
2287 2001-05-30 Alan Modra <amodra@one.net.au>
2289 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2290 millicode. Don't allocate .got and .rela.got space here..
2291 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2292 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2294 (hppa_handle_PIC_calls): ..nor here..
2295 (allocate_plt_and_got): ..instead do it all here. New function.
2296 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2297 call allocate_plt_and_got. No need to zap .got if not dynamic.
2298 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2299 gc_common_final_link.
2300 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2301 (elf32_hppa_relocate_section): Use it here.
2302 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2303 dynamic_sections_created.
2304 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2306 2001-05-28 Andreas Jaeger <aj@suse.de>
2308 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2309 generic version since we want a hashsize of 4.
2310 (elf_backend_size_info): Likewise.
2312 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2314 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2316 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2317 (elf_link_input_bfd): Likewise.
2318 (elf_reloc_link_order): Likewise.
2319 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2320 relocations correctly.
2322 2001-05-28 Nicolas Pitre <nico@cam.org>
2324 * elf32-arm.h: fix PLT generation for big endian ARM
2326 2001-05-28 Alan Modra <amodra@one.net.au>
2328 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2329 for symbols forced local that need plabels.
2330 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2331 .plt.rela for local syms if non-shared.
2332 (hppa_build_one_stub): Mask lsb of plt.offset.
2333 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2334 (clobber_millicode_symbols): Correct comment.
2335 (elf32_hppa_relocate_section): Likewise.
2336 (elf32_hppa_finish_dynamic_symbol): Likewise.
2338 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2340 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2341 * bfd-in2.h: Regenerate.
2342 * libbfd.h: Regenerate.
2343 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2344 and BFD_RELOC_SPARC_UA64 mapping
2345 * elf64-sparc.c: Likewise.
2347 2001-05-25 H.J. Lu <hjl@gnu.org>
2349 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2350 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2351 (coff-rs6000.lo): Remove the old dependency.
2352 * Makefile.in: Rebuild.
2354 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2357 2001-05-25 H.J. Lu <hjl@gnu.org>
2359 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2360 rs6000coff_core_file_matches_executable_p,
2361 rs6000coff_core_file_failing_command and
2362 rs6000coff_core_file_failing_signal only if AIX_CORE is
2364 (pmac_xcoff_vec): Likewise.
2365 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2367 2001-05-25 Timothy Wall <twall@redhat.com>
2369 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2370 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2372 2001-05-25 H.J. Lu <hjl@gnu.org>
2374 * bfd-in2.h: Regenerated.
2375 * libcoff.h: Likewise.
2377 2001-05-25 Alan Modra <amodra@one.net.au>
2379 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2380 undefined millicode syms in shared libs.
2381 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2382 (elf32_hppa_check_relocs): Likewise.
2383 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2384 (elf32_hppa_size_dynamic_sections): Likewise.
2385 (elf32_hppa_relocate_section): Likewise.
2386 (elf32_hppa_finish_dynamic_symbol): Likewise.
2387 (elf32_hppa_finish_dynamic_sections): Likewise.
2389 2001-05-24 Tom Rix <trix@redhat.com>
2391 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2392 xcoff-target.h not used to define rs6000 or ppc bfd.
2395 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2398 * coff-rs6000.c : Many changes for 64 bit support. Move common
2399 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2402 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2403 linker now supported. Explictly define the rs6000coff64_vec.
2405 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2406 (coff_print_aux) same
2407 (coff_write_object_contents) same
2408 (coff_slurp_line_table) same
2410 * coffgen.c : (coff_fix_symbol_name) formatting
2411 (coff_mangle_symbols) xcoff 64 bit support
2412 (coff_write_symbol) same
2413 (coff_write_alien_symbol) same
2414 (coff_write_native_symbol) same
2415 (coff_write_symbols) same
2416 (coff_get_symbol_info) same
2417 (bfd_coff_get_syment) same
2418 (coff_print_symbol) same
2420 * config.bfd : add powerpc64-*-aix* target
2422 * libcoff-in.h : formatting
2424 * libcoff.h : move xcoff extern declarations to libxcoff.h
2426 * libxcoff.h : New file
2428 * xcofflink.c : Many changes for xcoff64 support. Move common
2429 structures to include/coff/xcoff.h. Move specific structure to
2430 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2431 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2433 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2436 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2438 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2440 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2443 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2445 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2446 * libbfd.h: Regenerate.
2447 * bfd-in2.h: Regenerate.
2449 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2450 * archures.c (bfd_mach_mips12000): Define.
2451 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2452 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2454 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2455 * bfd-in2.h: Regenerate.
2456 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2458 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2460 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2461 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2462 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2463 that is used by GCC.
2465 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2467 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2468 of entries in a structured section.
2469 * elf.c: Use new macro.
2470 * elf32-i386.c: Use new macro.
2471 * elf32-mips.c: Use new macro.
2472 * elf64-alpha.c: Use new macro.
2473 * elf64-sparc.c: Use new macro.
2474 * elfcode.h: Use new macro.
2475 * elflink.h: Use new macro.
2477 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2479 * bfdint.texi: Replace -oformat with --oformat.
2481 2001-05-21 Andreas Jaeger <aj@suse.de>
2483 * dwarf2.c (decode_line_info): Fix error message.
2484 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2485 adjust error message.
2487 2001-05-18 H.J. Lu <hjl@gnu.org>
2489 * elflink.h (elf_link_add_object_symbols): Revert the last
2492 2001-05-17 Alan Modra <amodra@one.net.au>
2494 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2495 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2496 (hppa_build_one_stub): Add an assert to check plt.offset.
2498 2001-05-17 H.J. Lu <hjl@gnu.org>
2500 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2501 version definition to basename of the output filename.
2503 2001-05-17 H.J. Lu <hjl@gnu.org>
2505 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2506 basename of the bfd filename.
2508 2001-05-16 Alan Modra <amodra@one.net.au>
2510 * section.c (asection): Add linker_has_input field.
2511 (STD_SECTION): Adjust initialization to suit.
2512 * ecoff.c (bfd_debug_section): Likewise.
2513 * bfd-in2.h: Regenerate.
2515 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2517 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2518 negative 32-bit operands to 16 operands when the operand is
2519 going to be zero-extended by the modified opcode.
2521 2001-05-12 Peter Targett <peter.targett@arccores.com>
2523 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2524 name for 'arc5' core versions.
2525 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2527 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2529 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2531 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2533 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2535 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2536 to .gnu.linkonce.t.FOO text section.
2538 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2540 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2541 fields, change sec into secinfo.
2542 (struct sec_merge_info): Add chain, remove last fields.
2543 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2544 (sec_merge_hash_lookup): If lookup could not use a string only
2545 because it has bad alignment, mark the old string for deletion.
2546 (sec_merge_add): Add secinfo argument. Don't compute entry's
2547 position, instead record the section.
2548 (sec_merge_emit): Update for the sec into secinfo change in
2549 struct sec_merge_hash_entry.
2550 (_bfd_merge_section): Only record the section for merging, defer
2551 putting strings into the hash table.
2552 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2553 _bfd_merge_sections): New functions.
2554 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2556 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2557 (_bfd_nolink_bfd_merge_sections): Define.
2558 * libbfd.h: Likewise.
2559 (bfd_generic_merge_sections): Add prototype.
2560 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2561 (struct bfd_target): Likewise.
2562 * bfd.c (bfd_merge_sections): Define.
2563 * bfd-in2.h: Rebuilt.
2564 * elf.c (_bfd_elf_merge_sections): New function.
2565 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2566 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2567 * reloc.c (bfd_generic_merge_sections): New function.
2568 * vms.c (vms_bfd_merge_sections): New function.
2569 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2570 * aout-target.h (MY_bfd_merge_sections): Define.
2571 * aout-tic30.c (MY_bfd_merge_sections): Define.
2572 * binary.c (binary_bfd_merge_sections): Define.
2573 * bout.c (b_out_bfd_merge_sections): Define.
2574 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2575 * coffcode.c (coff_bfd_merge_sections): Define.
2576 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2577 * i386msdos.c (msdos_bfd_merge_sections): Define.
2578 * i386os9k.c (os9k_bfd_merge_sections): Define.
2579 * ieee.c (ieee_bfd_merge_sections): Define.
2580 * ihex.c (ihex_bfd_merge_sections): Define.
2581 * nlm-target.h (nlm_bfd_merge_sections): Define.
2582 * oasys.c (oasys_bfd_merge_sections): Define.
2583 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2584 * som.c (som_bfd_merge_sections): Define.
2585 * srec.c (srec_bfd_merge_sections): Define.
2586 * tekhex.c (tekhex_bfd_merge_sections): Define.
2587 * versados.c (versados_bfd_merge_sections): Define.
2588 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2590 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2592 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2593 to be unsigned long, in order to match its use.
2595 2001-05-10 H.J. Lu <hjl@gnu.org>
2597 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2600 2001-05-09 H.J. Lu <hjl@gnu.org>
2602 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2603 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2604 Remove the unused veriable `dynver'.
2606 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2608 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2609 NULL or is not COFF.
2610 (coff_i386_rtype_to_howto): Don't dump core if output section
2613 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2615 * ecoff.c (bfd_debug_section): Fix initialization.
2616 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2617 is always a positive integer. Cast away sign mismatch.
2618 * elf32-mips.c: Fix misleading comment and typo.
2619 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2621 * elflink.c: Fix typo.
2622 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2623 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2625 2001-05-04 Richard Henderson <rth@redhat.com>
2627 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2629 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2631 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2632 EF_ARM_HASENTRY if the start address is set.
2634 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2636 * targets.c (_bfd_target_vector_entries): Compute value based on
2637 the size of the _bfd_target_vector and not bfd_target_vector.
2639 2001-05-03 H.J. Lu <hjl@gnu.org>
2641 * elfcode.h: Include "libiberty.h".
2643 * elflink.h (elf_link_add_object_symbols): Set
2644 elf_dt_name (abfd) to basename of the bfd filename.
2645 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2646 of the bfd filename.
2648 2001-05-03 Andreas Jaeger <aj@suse.de>
2650 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2651 (elf_generic_info_to_howto_rel): Likewise.
2652 * coff-alpha.c (reloc_nil): Likewise.
2653 (alpha_ecoff_bad_format_hook): Likewise.
2654 (alpha_adjust_reloc_out): Likewise.
2655 (alpha_bfd_reloc_type_lookup): Likewise.
2656 (alpha_convert_external_reloc): Likewise.
2657 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2658 (elf64_alpha_reloc_bad): Likewise.
2659 (elf64_alpha_reloc_gpdisp): Likewise.
2660 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2661 (elf64_alpha_info_to_howto): Likewise.
2662 (elf64_alpha_add_symbol_hook): Likewise.
2663 (elf64_alpha_create_got_section): Likewise.
2664 (elf64_alpha_is_local_label_name): Likewise.
2665 (elf64_alpha_merge_ind_symbols): Likewise.
2666 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2667 (mips_elf64_get_reloc_upper_bound): Likewise.
2668 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2669 (nlm_alpha_get_public_offset): Likewise.
2671 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2673 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2674 about overflow in R_OPENRISC_LO_16_IN_INSN and
2675 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2677 2001-04-30 H.J. Lu <hjl@gnu.org>
2679 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2680 only for ELF_LINK_FORCED_LOCAL.
2681 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2682 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2683 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2685 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2686 if the symbol has hidden or internal visibility.
2688 2001-04-30 Alan Modra <amodra@one.net.au>
2690 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2691 calls to undefined weak symbols.
2693 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2695 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2696 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2698 2001-04-27 Andreas Jaeger <aj@suse.de>
2700 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2701 out handled entries.
2702 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2703 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2704 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2707 2001-04-27 Sean McNeil <sean@mcneil.com>
2709 * config.bfd: Add arm-vxworks target.
2710 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2711 addend (fro VXworks targets).
2713 2001-04-26 H.J. Lu <hjl@gnu.org>
2715 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2718 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2720 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2721 * bfd-in2.h: Regenerated.
2723 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2725 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2726 (struct sec_merge_hash): Remove alignment_power.
2727 (sec_merge_hash_newfunc): Clear alignment.
2728 (sec_merge_hash_lookup): Pass alignment as argument.
2729 Use hashp->root.next, not hashp->next to walk the hash chain.
2730 If a string already in the hashtable does not have required
2731 alignment, create a new hashtable entry.
2732 (sec_merge_init): Remove alignment_power argument.
2733 (sec_merge_add): Add alignment argument.
2734 (sec_merge_emit): Alignment is now a per-entity thing, not per
2736 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2737 for proper alignment.
2738 Pass alignment information to sec_merge_add.
2740 2001-04-24 Christian Groessler <cpg@aladdin.de>
2742 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2743 and R_REL16 reloc types; accept odd values for R_REL16 type
2745 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2747 * cpu-openrisc.c: New file.
2748 * elf32-openrisc.c: Likewise.
2750 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2751 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2752 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2753 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2754 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2755 * Makefile.in: Regenerated.
2756 * config.bfd: (openrisc-*-elf): New target.
2757 * configure.in (bfd_elf32_openrisc_vec): New vector.
2758 * configure: Regenerated.
2759 * libbfd.h: Regenerated.
2760 * bfd-in2.h: Regenerated.
2761 * reloc.c: Add OpenRISC relocations.
2762 * targets.c (bfd_elf32_openrisc_vec): Declare.
2763 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2764 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2765 (bfd_openrisc_arch): Declare.
2766 (bfd_archures_list): Add bfd_openrisc_arch.
2767 * elf.c (prep_headers): Add bfd_arch_openrisc.
2769 2001-04-23 Bo Thorsen <bo@suse.de>
2771 * elf64-x86-64.c: Add c++ vtable hack.
2772 Small whitespace and comment changes.
2774 2001-04-19 Andreas Jaeger <aj@suse.de>
2776 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2777 (elf64_x86_64_plt_entry): Likewise.
2778 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2779 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2781 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2783 * elf32-cris.c: Tweak comments related to dynamic linking.
2784 (cris_elf_relocate_section): When not creating shared object, fill
2785 in the .got table for any symbol not in the dynamic symbol table.
2786 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2787 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2789 (cris_elf_check_relocs): Use variable r_type in all places rather
2790 than the original expression. Add default case in switch for
2792 (elf_cris_size_dynamic_sections): Iterate over
2793 elf_cris_discard_excess_program_dynamics when not creating shared
2795 (elf_cris_discard_excess_dso_dynamics): Renamed from
2796 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2797 (elf_cris_discard_excess_program_dynamics): New.
2799 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2801 * coffcode.h (coff_write_object_contents): Use
2802 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2804 2001-04-14 H.J. Lu <hjl@gnu.org>
2806 * bfd-in2.h: Regenerate.
2808 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2810 * section.c (STD_SECTION): Add entsize.
2812 2001-04-13 H.J. Lu <hjl@gnu.org>
2814 * section.c (SEC_MERGE): Define new flag for merging.
2815 (SEC_STRINGS): Likewise.
2816 (entsize): New field.
2818 2001-04-13 Roger Sayle <roger@metaphorics.com>
2820 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2821 flag on pe-i386 targets.
2823 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2825 * libbfd-in.h (_bfd_merge_section): New.
2826 (_bfd_write_merged_section): New.
2827 (_bfd_merged_section_offset): New.
2828 * libbfd.h: Rebuilt.
2829 * linker.c (_bfd_generic_link_output_symbols): Handle
2831 * aoutx.h (aout_link_write_symbols): Likewise.
2832 * pdp11.c (aout_link_write_symbols): Likewise.
2833 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2834 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2836 (elf_link_sec_merge_syms): New.
2837 (elf_link_input_bfd): Call _bfd_merged_section_offset
2838 and _bfd_write_merged_section.
2839 Handle discard_sec_merge.
2840 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2842 (struct bfd_elf_section_data): Likewise.
2843 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2844 SEC_STRINGS section flags and entsize from their ELF counterparts.
2845 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2846 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2847 from their BFD counterparts.
2848 * merge.c: New file.
2849 * Makefile.am: Add strtab.lo.
2850 * Makefile.in: Rebuilt.
2852 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2854 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2855 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2857 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2859 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2860 endian MIPS ELF target.
2861 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2864 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2865 64bit big endian MIPS ELF target.
2866 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2867 endian MIPS ELF target.
2868 * configure: Regenerated.
2870 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2871 little endian targets.
2872 (mips_elf_sym_is_global): Handle traditional targets.
2874 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2875 64bit big endian MIPS ELF target.
2876 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2877 endian MIPS ELF target.
2879 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2880 and bfd_elf64_tradlittlemips_vec.
2882 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2884 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2885 ordinary "progbits" section.
2887 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2889 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2890 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2892 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2894 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2896 2001-03-30 H.J. Lu <hjl@gnu.org>
2898 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2899 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2901 2001-03-26 H.J. Lu <hjl@gnu.org>
2903 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2904 if there are any relocations for generic ELF.
2905 (bfd_elf32_bfd_link_add_symbols): Defined to
2906 elf32_generic_link_add_symbols.
2907 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2908 if there are any relocations for generic ELF.
2909 (bfd_elf64_bfd_link_add_symbols): Defined to
2910 elf64_generic_link_add_symbols.
2912 2001-03-23 Nick Clifton <nickc@redhat.com>
2914 * Makefile.am (BUILD_CFILES): New variable: List of C source
2915 files created in build directory.
2916 (BUILD_HFILES): New variable: List of header files created in
2919 (po/POTFILES.in): Replace rule with empty entry.
2920 (po/SRC-POTFILES.in): New rule: Create a list of source files
2921 in the source directory.
2922 (po/BLD-POTFILES.in): New rule: Create a list of source files
2923 in the build directory.
2924 (MOSTLYCLEAN): Do not delete source files created in build
2926 * Makefile.in: Regenerate.
2927 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2929 * configure: Regenerate.
2931 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2933 Add .. to the search path when building bfd.pot.
2934 Delete POTFILES when performing distclean.
2935 Add comment describing why distclean is broken in maintainer mode.
2936 * po/POTFILES.in: Delete.
2937 * po/SRC-POTFILES.in: New file.
2938 * po/BLD-POTFILES.in: New file.
2939 * po/bfd.pot: Regenerate.
2941 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2943 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2944 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2945 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2946 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2947 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2948 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2950 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2951 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2952 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2953 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2954 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2955 New HOWTO members for new relocs.
2956 (cris_reloc_map): Map new relocs.
2957 (ELF_DYNAMIC_INTERPRETER): Define.
2958 (PLT_ENTRY_SIZE): Define.
2959 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2960 elf_cris_pic_plt_entry): New, PLT templates.
2961 (struct elf_cris_pcrel_relocs_copied, struct
2962 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2963 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2964 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2965 positive values. Adjust PCREL relocs to be relative to location
2967 (cris_elf_relocate_section): Handle relocations to dynamic
2968 objects. Handle new relocations. Call error handler when seeing
2969 non-PIC relocation for read-only sections while generating shared
2971 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2973 (bfd_elf32_bfd_link_hash_table_create,
2974 elf_backend_adjust_dynamic_symbol,
2975 elf_backend_size_dynamic_sections,
2976 elf_backend_finish_dynamic_symbol,
2977 elf_backend_finish_dynamic_sections,
2978 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2979 elf_backend_hide_symbol, elf_backend_want_got_plt,
2980 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2981 elf_backend_got_header_size, elf_backend_plt_header_size):
2984 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2985 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2986 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2987 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2988 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2989 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2990 * bfd-in2.h, libbfd.h: Regenerate.
2992 2001-03-21 Diego Novillo <dnovillo@redhat.com>
2994 (_bfd_mips_elf_relocate_section): Give a better error message when
2995 a relocation is not recognized.
2997 2001-03-21 Alan Modra <alan@linuxcare.com.au>
2999 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3000 non-NULL before attempting to dereference.
3002 2001-03-20 H.J. Lu <hjl@gnu.org>
3004 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3005 * configure: Rebuild.
3007 2001-03-20 Andreas Schwab <schwab@suse.de>
3009 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3010 relocation value when resolving a reference from a debugging
3013 2001-03-16 Scott Thomason <SThomaso@hii.com>
3015 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3016 (xcoff64_swap_sym_out): Fix syntax errors.
3018 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3020 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3022 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3024 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3025 (hppa_link_hash_newfunc): Init it.
3026 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3027 section appears to be non-PIC.
3028 (final_link_relocate): Likewise.
3029 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3030 possible candidate function, and set pic_call for those that will
3031 only have a .plt entry for the PIC call stub.
3032 (hppa_handle_PIC_calls): Set maybe_pic_call.
3034 2001-03-12 DJ Delorie <dj@redhat.com>
3036 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3037 R_SH_DIR8WP* relocs if they're against external symbols, else
3038 they're just for relaxing. Validate the reloc values.
3040 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3042 * binary.c (bfd_external_binary_architecture): Declare.
3043 (binary_object_p): If bfd_external_binary_architecture is defined,
3044 set the architecture to this string.
3046 2001-03-11 Philip Blundell <philb@gnu.org>
3048 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3049 entries that could serve as a definition for a weak symbol.
3051 2001-03-08 Nick Clifton <nickc@redhat.com>
3053 * Most files: Update copyright notices using Perl script created
3054 by Kevin Buettner <kevinb@redhat.com>.
3056 2001-03-07 Nick Clifton <nickc@redhat.com>
3058 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3059 prior patch on ! defined OLD_ARM_ABI.
3061 2001-03-07 Andreas Jaeger <aj@suse.de>
3063 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3064 some relocation values.
3066 2001-03-06 Nick Clifton <nickc@redhat.com>
3068 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3069 of offset in BLX(1) instruction.
3070 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3071 offset in BLX(1) instruction.
3074 2001-03-06 Nick Clifton <nickc@redhat.com>
3076 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3077 BFD_RELOC_THUMB_PCREL_BLX.
3079 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3081 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3082 * bfd-in2.h: Regenerate.
3083 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3084 * ieee.c (ieee_write_processor): Set proper id for
3087 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3089 * configure.in: Add s390 target.
3090 * configure: Regenerate.
3092 2001-02-28 Andreas Jaeger <aj@suse.de>
3094 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3097 2001-02-28 Philip Blundell <pb@futuretv.com>
3099 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3100 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3102 2001-02-27 H.J. Lu <hjl@gnu.org>
3104 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3105 abfd->tdata.aout_data == NULL.
3107 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3109 * elf32-hppa.c: Correct field selector in stub comments.
3110 (clobber_millicode_symbols): Formatting fix.
3112 * configure.in: Bump version to 2.11.90.
3113 * configure: Regenerate.
3114 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3115 (CFILES): $SOURCE_CFILES + generated C files.
3116 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3118 * Makefile.in: Regenerate.
3119 * doc/Makefile.in: This too.
3121 2001-02-26 Timothy Wall <twall@cygnus.com>
3123 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3126 2001-02-26 Nick Clifton <nickc@redhat.com>
3128 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3129 up, replacing multiple if statements with a switch.
3130 (handle_COMDAT): New function.
3132 2001-02-26 H.J. Lu <hjl@gnu.org>
3134 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3135 a warning for section flags we do not handle instead of
3138 2001-02-26 Andreas Jaeger <aj@suse.de>
3140 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3142 2001-02-22 Timothy Wall <twall@cygnus.com>
3144 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3145 * configure.in: Add objects for elf64_ia64_aix vectors.
3146 * configure: Regenerated.
3147 * configure.host: Recognize ia64-*-aix*.
3148 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3149 for AIX. AIX5 requires most relocations to be dynamic (*all*
3150 binaries are somewhat similar to shared libraries).
3151 * targets.c: Add elf64_ia64_aix vectors.
3153 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3155 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3156 C8 said "1" instead of "8". Clarify error string for IMM22:
3157 "signed integer" instead of just "integer".
3159 2001-02-20 Andreas Jaeger <aj@suse.de>
3161 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3162 PLT entries that could serve as a definition for a weak symbol.
3164 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3166 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3167 entries that could serve as a definition for a weak symbol.
3168 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3170 2001-02-18 David O'Brien <obrien@FreeBSD>
3172 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3173 FreeBSD/i386-CURRENT differently until I can figure out the needed
3175 * configure: Regenerate.
3176 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3177 FreeBSD/PowerPC, and FreeBSD/sparc64.
3179 2001-02-18 lars brinkhoff <lars@nocrew.org>
3181 * Makefile.am: Add PDP-11 a.out target.
3182 * config.bfd: Likewise.
3183 * configure.in: Likewise.
3184 * targets.c: Likewise.
3185 * archures.c: Likewise.
3186 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3187 * libbfd.h: Add PDP-11 relocations.
3188 * reloc.c: Likewise.
3189 * cpu-pdp11.c: New file.
3190 * pdp11.c: New file.
3192 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3193 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3194 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3195 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3196 (GET_MAGIC): New macro.
3197 (PUT_MAGIC): Likewise.
3198 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3200 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3202 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3203 multiarch needs it).
3205 2001-02-18 H.J. Lu <hjl@gnu.org>
3207 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3210 2001-02-18 Kazu Hirata <kazu@hxi.com>
3212 * vms-misc.c: Fix formatting.
3214 2001-02-16 Kazu Hirata <kazu@hxi.com>
3216 * vms.c: Fix formatting.
3218 2001-02-14 H.J. Lu <hjl@gnu.org>
3220 * elf.c (elf_find_function): New function.
3221 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3222 the file name and function name.
3224 2001-02-14 Nick Clifton <nickc@redhat.com>
3226 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3229 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3230 (BFD64_BACKENDS): Add pepigen.c
3231 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3233 * Makefile.in: Regenerate.
3234 * configure: Regenerate.
3235 * po/POTFILES.in: Regenerate.
3236 * po/bfd.pot: Regenerate.
3238 2001-02-14 H.J. Lu <hjl@gnu.org>
3240 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3241 force_minimum_alignment.
3243 2001-02-14 Bo Thorsen <bo@suse.de>
3245 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3246 (elf64_86_64_size_info): Struct added to fix a problem
3247 with the hashtable string entries.
3248 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3249 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3250 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3251 remove the FIXME for this.
3252 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3253 section. Also removed the FIXME for it.
3254 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3255 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3256 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3258 2001-02-13 Richard Henderson <rth@redhat.com>
3260 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3261 and not user provided.
3263 2001-02-13 Kazu Hirata <kazu@hxi.com>
3265 * vms.c (vms_print_symbol): Remove unreachable code.
3267 * rs6000-core.c: Fix formatting.
3269 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3271 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3272 as _bfd_XXi_only_swap_filehdr_out.
3273 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3274 pe->force_minimum_alignment to TRUE.
3275 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3276 PEI_TARGET_SUBSYSTEM.
3277 (pe_print_private_bfd_data): Call
3278 _bfd_XX_print_private_bfd_data_common() instead of
3279 _bfd_pe_print_private_bfd_data_common().
3280 (pe_bfd_copy_private_bfd_data): Call
3281 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3282 _bfd_pe_bfd_copy_private_bfd_data_common().
3283 (coff_bfd_copy_private_section_data): Define as
3284 _bfd_XX_bfd_copy_private_section_data instead of
3285 _bfd_pe_bfd_copy_private_section_data.
3286 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3287 of a _bfd_pe_get_symbol_info.
3291 * peXXigen.c: Renamed from peigen.c.
3292 (COFF_WITH_XX): Define this macro (will get expanded into
3293 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3294 compiled as peigen.c or pepigen.c.
3295 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3296 define the canonical PEP structures and definitions.
3297 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3298 effect, enforce minimum file and section alignments. If
3299 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3300 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3301 so, by default, this is a no-op).
3303 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3304 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3305 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3306 _bfd_pefoo if it's not defined. Use these macros to define
3309 * libcoff.h (pe_tdata): Add members target_subsystem and
3310 force_minimum_alignment.
3312 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3314 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3316 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3319 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3320 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3323 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3324 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3325 (peigen.c): Add rule to generate from peXXigen.c.
3327 (pepigen.lo): List dependencies for pepigen.lo.
3329 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3331 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3332 $global$ referenced but not defined, set its value here.
3334 2001-02-09 Bo Thorsen <bo@suse.de>
3336 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3338 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3340 (elf64_x86_64_relocate_section): Fix formatting.
3341 (elf64_x86_64_relocate_section): Fix addend for relocation of
3342 R_X86_64_(8|16|32|PC8|PC16|PC32).
3344 2001-02-12 Jan Hubicka <jh@suse.cz>
3346 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3348 2001-02-11 H.J. Lu <hjl@gnu.org>
3350 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3353 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3355 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3356 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3357 relocations against dynsym symbols.
3359 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3360 the R_MIPS_26 relocation.
3361 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3362 the R_MIPS_26 relocation.
3363 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3365 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3366 the R_MIPS_26 relocation.
3367 (mips_elf64_howto_table_rela): Likewise.
3369 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3370 member to mark symbols that have non-CALL relocations against
3372 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3373 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3375 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3376 non-CALL relocation against it is encountered.
3377 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3378 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3379 no_fn_stub is not set.
3381 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3382 information from the real symbol for indirect ones.
3383 Check no_fn_stub to find out if a symbol has a function stub
3386 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3388 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3389 * Makefile.in: Regenerate.
3391 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3393 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3394 true if section name is an unwind table section name.
3395 (elfNN_ia64_additional_program_headers): Count each unwind section
3397 (elfNN_ia64_modify_segment_map): Install one unwind program header
3398 for each unwind separate section. Note: normally the linker
3399 script merges the unwind sections that go into a single segment,
3400 so this still generates at most one unwind program header per
3403 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3404 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3405 (elfNN_ia64_fake_sections): Mark sections with names that start
3406 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3409 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3410 Use it to make sh_info in unwind section point to the text section
3413 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3415 * Makefile.am: Add linux target for S/390.
3416 * archures.c: Likewise.
3417 * bfd-in2.h: Likewise.
3418 * config.bfd: Likewise.
3419 * configure.in: Likewise.
3421 * libbfd.h: Likewise.
3422 * targets.c: Likewise.
3423 * cpu-s390.c: New file.
3424 * elf32-s390.c: New file.
3425 * elf64-s390.c: New file.
3427 2001-02-09 Nick Clifton <nickc@redhat.com>
3429 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3430 ImageBase. This has already been done by coff_swap_hdr_in.
3432 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3434 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3436 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3438 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3439 (sparc64_elf_relocate_section): Likewise.
3441 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3443 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3444 similar to R_SPARC_32.
3445 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3447 2001-02-08 H.J. Lu <hjl@gnu.org>
3449 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3450 relocation entries for weak definitions when building DSO with
3453 2001-02-08 Richard Henderson <rth@redhat.com>
3455 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3456 before visibility. Locally defined protected symbols are not
3459 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3461 * config.bfd: Enable coff64 for rs6000-*. Patch from
3462 <hzoli@austin.ibm.com>.
3464 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3466 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3467 found, do not attempt to find dwarf2 info before returning.
3469 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3471 * elflink.h (is_global_symbol_definition): Rename to
3472 is_global_data_symbol_definition and have it reject function
3474 (elf_link_is_defined_archive_symbol): Use renamed function.
3476 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3478 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3479 * libbfd.h (bfd_target_vector): Likewise.
3480 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3481 make static; create pointer reference named bfd_target_vector.
3482 (_bfd_target_vector_entries): Calculate this based on the array
3483 typed _bfd_target_vector.
3485 2001-02-06 H.J. Lu <hjl@gnu.org>
3487 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3488 internal symbols are not dynamic.
3489 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3491 2001-02-06 Nick Clifton <nickc@redhat.com>
3493 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3494 that it will not be pulled into the list of files that make up
3496 * Makefile.in: Regenerate.
3497 * po/bfd.pot: Regenerate.
3499 2001-02-06 H.J. Lu <hjl@gnu.org>
3501 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3503 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3504 external_PEI_IMAGE_hdr.
3506 2001-02-06 Kazu Hirata <kazu@hxi.com>
3508 * elf-m10200.c: Fix formatting.
3510 2001-02-04 Nick Clifton <nickc@redhat.com>
3512 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3513 rel, it will be handled later on.
3515 2001-02-02 Fred Fish <fnf@ninemoons.com>
3517 * Makefile.in: Fix typo.
3519 2001-02-01 Kazu Hirata <kazu@hxi.com>
3521 * elf-m10300.c: Fix formatting.
3523 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3525 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3526 (elf_backend_get_symbol_type): Define.
3527 (elf64_hppa_object_p): Set architecture and machine from elf
3530 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3532 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3535 2001-01-26 Richard Henderson <rth@redhat.com>
3537 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3538 for non-default visibility.
3539 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3540 delete ugly macro and replace with pretty function.
3542 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3544 * coff-go32.c: Update copyright.
3545 * coff-stgo32.c: Likewise.
3546 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3547 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3548 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3549 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3551 2001-01-25 Kazu Hirata <kazu@hxi.com>
3553 * bfd-in2.h: Rebuild.
3554 * libbfd.h: Likewise.
3556 2001-01-23 H.J. Lu <hjl@gnu.org>
3558 * bfd-in2.h: Rebuild.
3560 2001-01-23 H.J. Lu <hjl@gnu.org>
3562 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3563 is NULL or PRIV(vms_rec) is outside of the buffer.
3565 2001-01-23 Kazu Hirata <kazu@hxi.com>
3567 * coff64-rs6000.c: Fix formatting.
3568 * coff-arm.c: Likewise.
3569 * coffgen.c: Likewise.
3570 * cofflink.c: Likewise.
3571 * coff-mcore.c: Likewise.
3572 * coff-mips.c: Likewise.
3573 * coff-pmac.c: Likewise.
3574 * coff-ppc.c: Likewise.
3575 * coff-rs6000.c: Likewise.
3576 * elf32.c: Likewise.
3577 * elf32-fr30.c: Likewise.
3578 * elf32-i370.c: Likewise.
3579 * elf32-i860.c: Likewise.
3580 * elf32-m32r.c: Likewise.
3581 * elf32-m68k.c: Likewise.
3582 * elf32-mcore.c: Likewise.
3583 * elf32-ppc.c: Likewise.
3584 * elf32-sh.c: Likewise.
3585 * elf32-v850.c: Likewise.
3586 * elf64-alpha.c: Likewise.
3587 * elf64-sparc.c: Likewise.
3588 * elflink.c: Likewise.
3589 * elflink.h: Likewise.
3590 * elf-m10200.c: Likewise.
3591 * elf-m10300.c: Likewise.
3592 * elfxx-ia64.c: Likewise.
3594 * aoutx.h: Fix formatting.
3596 * bfd-in2.h: Likewise.
3597 * bfd-in.h: Likewise.
3598 * cpu-i386.c: Likewise.
3599 * cpu-m68hc11.c: Likewise.
3600 * dwarf2.c: Likewise.
3601 * elf64-x86-64.c: Likewise.
3602 * format.c: Likewise.
3603 * freebsd.h: Likewise.
3605 * hp300hpux.c: Likewise.
3606 * hppabsd-core.c: Likewise.
3607 * hpux-core.c: Likewise.
3609 2001-01-22 Bo Thorsen <bo@suse.de>
3611 * elf64-x86-64.c: Added PIC support for X86-64.
3612 (elf64_x86_64_link_hash_newfunc): Function added.
3613 (elf64_x86_64_link_hash_table_create): Likewise.
3614 (elf64_x86_64_check_relocs): Likewise.
3615 (elf64_x86_64_gc_mark_hook): Likewise.
3616 (elf64_x86_64_gc_sweep_hook): Likewise.
3617 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3618 (elf64_x86_64_size_dynamic_sections): Likewise.
3619 (elf64_x86_64_discard_copies): Likewise.
3620 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3621 (elf64_x86_64_finish_dynamic_sections): Likewise.
3622 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3624 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3626 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3627 * Makefile.in: Regenerate.
3629 2001-01-21 Kazu Hirata <kazu@hxi.com>
3631 * coff-a29k.c: Fix formatting.
3633 2001-01-19 H.J. Lu <hjl@gnu.org>
3635 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3636 relocation section names.
3637 (elf_i386_relocate_section): Report files with bad relocation
3638 section names and return false.
3640 2001-01-17 Bo Thorsen <bo@suse.de>
3642 * targets.c: Alphabetize list of xvecs.
3644 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3646 * config.bfd: Add linux target variant for elfxx-hppa.
3647 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3648 bfd_elf64_hppa_linux_vec.
3649 * configure: Regenerate.
3650 * elf64-hppa.c: Include elf64-target.h again to support linux
3652 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3653 * elf32-hppa.c: Include elf32-target.h again to support linux
3655 (elf32_hppa_post_process_headers): New function.
3656 (elf_backend_post_process_headers): Define.
3657 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3658 bfd_elf32_hppa_linux_vec.
3660 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3661 and data_segment_base fields.
3662 (elf32_hppa_link_hash_table_create ): Init them.
3663 (elf32_hppa_check_relocs): Update comments.
3664 (hppa_record_segment_addr): New function.
3665 (elf32_hppa_relocate_section): Call it.
3666 (final_link_relocate): Handle R_PARISC_SEGREL32.
3667 (elf32_hppa_final_link): New function.
3668 (bfd_elf32_bfd_final_link): Define to call it.
3669 (hppa_unwind_entry_compare): New function.
3670 * cache.c (bfd_open_file): Create files in write+read mode.
3672 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3673 SEGREL32 and numerous other relocs. Change duplicate
3674 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3676 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3679 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3680 .plt entries for DT_INIT and DT_FINI.
3681 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3682 DT_INIT and DT_FINI.
3684 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3685 offsets for stub .plt access if wide mode. Check offset in range.
3687 2001-01-13 Nick Clifton <nickc@redhat.com>
3689 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3692 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3695 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3697 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3698 * configure: Regenerate.
3700 2001-01-11 Peter Targett <peter.targett@arccores.com>
3702 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3703 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3704 * cpu-arc.c (arch_info_struct): Add entries for variants.
3705 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3706 (arc_get_mach) Don't assume machine names prefixed arc- before
3708 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3710 (arc_elf_final_write_processing) Likewise.
3711 (ELF_MACHINE_CODE) Use EM_ARC.
3713 2001-01-10 Nick Clifton <nickc@redhat.com>
3715 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3717 2001-01-07 Philip Blundell <philb@gnu.org>
3719 * README: Replace `bug-gnu-utils@gnu.org' with
3720 `bug-binutils@gnu.org'.
3722 2001-01-04 Kazu Hirata <kazu@hxi.com>
3724 * som.c: Fix formatting.
3726 2001-01-03 Kazu Hirata <kazu@hxi.com>
3728 * ecoffswap.h: Fix formatting.
3729 * elf-bfd.h: Likewise.
3730 * elfarm-nabi.c: Likewise.
3731 * elfarm-oabi.c: Likewise.
3732 * elfcode.h: Likewise.
3733 * elfcore.h: Likewise.
3734 * elflink.c: Likewise.
3735 * elflink.h: Likewise.
3736 * elfxx-ia64.c: Likewise.
3737 * elfxx-target.h: Likewise.
3738 * libbfd.c: Likewise
3739 * linker.c: Likewise.
3740 * lynx-core.c: Likewise.
3742 2001-01-02 Kazu Hirata <kazu@hxi.com>
3744 * pc532-mach.c: Fix formatting.
3745 * pe-arm.c: Likewise.
3746 * pe-i386.c: Likewise.
3747 * pe-mips.c: Likewise.
3748 * pe-ppc.c: Likewise.
3749 * pe-sh.c: Likewise.
3750 * pei-mips.c: Likewise.
3751 * pei-sh.c: Likewise.
3752 * peicode.h: Likewise.
3753 * ppcboot.c: Likewise.
3754 * ptrace-core.c: Likewise.
3756 2001-01-01 Kazu Hirata <kazu@hxi.com>
3758 * reloc.c: Fix formatting.
3759 * riscix.c: Likewise.
3760 * rs6000-core.c: Likewise.
3761 * xcoff-target.h: Likewise.
3763 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3765 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3766 error, by calling bfd_default_set_arch_mach with incoming
3769 2000-12-26 Kazu Hirata <kazu@hxi.com>
3771 * vaxnetbsd.c: Fix formatting.
3772 * versados.c: Likewise.
3773 * vms-gsd.c: Likewise.
3774 * vms-hdr.c: Likewise.
3775 * vms-misc.c: Likewise.
3777 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3779 * archive.c (coff_write_armap): Don't write more than symbol_count
3780 `archive_member_file_ptr's.
3782 2000-12-25 Kazu Hirata <kazu@hxi.com>
3784 * vms-tir.c: Fix formatting.
3786 2000-12-23 Kazu Hirata <kazu@hxi.com>
3788 * vms.c: Fix formatting.
3791 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3793 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3795 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3797 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3800 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3802 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3804 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3806 * libbfd.c (bfd_get_bits): Added
3807 (bfd_put_bits): Likewise
3808 * bfd-in.h: Declared the above.
3809 * bfd-in2.h: Regenerated.
3811 2000-12-20 Kazu Hirata <kazu@hxi.com>
3813 * targets.c: Fix formatting.
3814 * tekhex.c: Likewise.
3815 * trad-core.c: Likewise.
3817 2000-12-19 Kazu Hirata <kazu@hxi.com>
3819 * sco5-core.c: Fix formatting.
3820 * section.c: Likewise.
3821 * sparclinux.c: Likewise.
3822 * sparclynx.c: Likewise.
3823 * sparcnetbsd.c: Likewise.
3825 * stabs.c: Likewise.
3826 * stab-syms.c: Likewise.
3827 * sunos.c: Likewise.
3829 * sysdep.h: Likewise.
3831 2000-12-18 Nick Clifton <nickc@redhat.com>
3833 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3835 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3836 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3838 2000-12-18 Nick Clifton <nickc@redhat.com>
3840 * vms-misc.c (_bfd_vms_get_record): Add default case to
3843 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3845 * elfcore.h (elf_core_file_p): Move to the start of the program
3846 headers before attempting to read them.
3848 2000-12-14 Kazu Hirata <kazu@hxi.com>
3850 * peigen.c: Fix formatting.
3854 2000-12-13 Kazu Hirata <kazu@hxi.com>
3856 * peigen.c: Fix formatting.
3858 2000-12-12 Jim Wilson <wilson@redhat.com>
3860 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3862 2000-12-08 Mark Salter <msalter@redhat.com>
3864 * binary.c (binary_set_section_contents): Ignore sections
3867 2000-12-12 Kazu Hirata <kazu@hxi.com>
3869 * m68klinux.c: Fix formatting.
3870 * m68knetbsd.c: Likewise.
3871 * mipsbsd.c: Likewise.
3872 * netbsd-core.c: Likewise.
3873 * netbsd.h: Likewise.
3874 * newsos3.c: Likewise.
3875 * nlm32-alpha.c: Likewise.
3876 * nlm32-i386.c: Likewise.
3877 * nlm32-ppc.c: Likewise.
3878 * nlm32-sparc.c: Likewise.
3879 * nlmcode.h: Likewise.
3880 * nlmswap.h: Likewise.
3881 * nlm-target.h: Likewise.
3882 * ns32knetbsd.c: Likewise.
3884 2000-12-10 Fred Fish <fnf@be.com>
3886 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3887 symbols in shared objects if allow_shlib_undefined is true.
3889 2000-12-12 Nick Clifton <nickc@redhat.com>
3891 * cpu-sh.c: Fix formattng.
3892 * elf.c: Fix formattng.
3893 * elf32-mips.c: Fix formattng.
3894 * elf32-sh.c: Fix formattng.
3895 * elf64-alpha.c: Fix formattng.
3897 2000-12-09 Nick Clifton <nickc@redhat.com>
3899 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3900 dwarf2_find_line_info as last parameter to invocation of
3901 _bfd_dwarf2_find_nearest_line.
3902 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3903 dwarf2_find_line_info as last parameter to invocation of
3904 _bfd_dwarf2_find_nearest_line.
3906 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3908 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3909 (BFD_LIBS): ...to here.
3910 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3911 (BFD_LIBS_CFILES): ...to here.
3912 * Makefile.in: Regenerate.
3913 * configure.in: Remove dwarf.lo from the elf shell variable.
3914 * configure: Regenerate.
3915 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3916 * libcoff.h: Regenerate.
3917 * coffgen.c (coff_find_nearest_line): Call
3918 _bfd_dwarf2_find_nearest_line.
3919 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3921 (read_abbrevs): Likewise
3922 (decode_line_info): Likewise.
3923 (parse_comp_unit): Likewise.
3924 (comp_unit_find_nearest_line): Likewise.
3925 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3926 * libbfd.h: Regenerate.
3927 * elf.c (_bfd_elf_find_nearest_line): Update call.
3928 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3929 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3930 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3931 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3932 (styp_to_sec_flags): Handle DWARF2 sections.
3933 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3934 to _bfd_find_nearest_line.
3935 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3936 call to _bfd_find_nearest_line.
3938 2000-12-08 Kazu Hirata <kazu@hxi.com>
3940 * coffgen.c: Fix formatting.
3941 * elf-m10300.c: Likewise.
3942 * elf32-i386.c: Likewise.
3943 * elf32-i960.c: Likewise.
3944 * elf32-m68k.c: Likewise.
3945 * elf32-mcore.c: Likewise.
3946 * elf32-ppc.c: Likewise.
3947 * elf32-sh.c: Likewise.
3948 * elf32-sparc.c: Likewise.
3949 * elf32-v850.c: Likewise.
3950 * elf64-alpha.c: Likewise.
3951 * elf64-hppa.c: Likewise.
3952 * elf64-mips.c: Likewise.
3953 * elf64-sparc.c: Likewise.
3955 2000-12-07 Kazu Hirata <kazu@hxi.com>
3957 * elf32-ppc.c: Fix formatting.
3958 * elf64-x86-64.c: Likewise.
3960 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3962 From Ralf Baechle <ralf@gnu.org>
3964 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3965 BFDs containing no sections or empty .text, .data or .bss sections
3966 to be merged, regardless of their flags.
3968 2000-12-06 Kazu Hirata <kazu@hxi.com>
3970 * elf32-m32r.c: Fix formatting.
3971 * elf32-m68hc11.c: Likewise.
3972 * elf32-m68hc12.c: Likewise.
3973 * elf32-m68k.c: Likewise.
3974 * elf32-mcore.c: Likewise.
3975 * elf32-pj.c: Likewise.
3976 * elf32-ppc.c: Likewise.
3978 2000-12-05 Kazu Hirata <kazu@hxi.com>
3980 * elf32-fr30.c: Fix formatting.
3981 * elf32-hppa.c: Likewise.
3982 * elf32-i370.c: Likewise.
3983 * elf32-i386.c: Likewise.
3984 * elf32-i860.c: Likewise.
3985 * elf32-i960.c: Likewise.
3987 2000-12-03 Kazu Hirata <kazu@hxi.com>
3989 * elf32-arm.h: Fix formatting.
3990 * elf32-avr.c: Likewise.
3991 * elf32-cris.c: Likewise.
3992 * elf32-d10v.c: Likewise.
3993 * elf32-d30v.c: Likewise.
3994 * elf-hppa.h: Likewise.
3995 * elf-m10200.c: Likewise.
3996 * elf-m10300.c: Likewise.
3998 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4000 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4001 bfd_mach_mips32_4k. Update FIXME comment.
4002 * archures.c (bfd_mach_mips32): New constant.
4003 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4004 the latter, renumber it.
4005 * bfd-in2.h (bfd_mach_mips32): New constant.
4006 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4007 the latter, renumber it.
4008 * cpu-mips.c (I_mips32): New constant.
4009 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4010 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4011 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4012 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4013 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4014 with E_MIPS_MACH_MIPS32_4K.
4015 (_bfd_mips_elf_final_write_processing): Replace
4016 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4017 bfd_mach_mips32 case.
4018 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4019 comparison with support for MIPS32.
4020 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4023 * aoutx.h (NAME(aout,machine_type)): Add cases for
4024 bfd_mach_mips5 and bfd_mach_mips64.
4025 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4026 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4027 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4028 (arch_info_struct): Add entries for bfd_mach_mips5 and
4030 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4031 _bfd_mips_elf_print_private_bfd_data): Add cases for
4032 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4033 (_bfd_mips_elf_final_write_processing): Add cases for
4034 bfd_mach_mips5 and bfd_mach_mips64.
4036 * aoutx.h (NAME(aout,machine_type)): Add a
4037 bfd_mach_mips_sb1 case.
4038 * archures.c (bfd_mach_mips_sb1): New constant.
4039 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4040 * cpu-mips.c (I_sb1): New constant.
4041 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4042 * elf32-mips.c (elf_mips_mach): Add case for
4044 (_bfd_mips_elf_final_write_processing): Add case for
4047 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4049 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4050 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4051 (sparc*-*-rtems*): Switched from a.out to ELF.
4053 2000-11-30 Jan Hubicka <jh@suse.cz>
4055 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4056 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4057 (elf64-x86-64.lo): Add dependencies.
4058 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4059 bfd_mach_x86_64_intel_syntax.
4060 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4061 * config.bfd (x86_64): Add.
4062 * configure.in: Add support for bfd_elf64_x86_64_vec.
4063 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4064 (bfd_i386_arch, i8086_ar): Link in.
4065 * elf64-x86-64.c: New file.
4066 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4067 * targets.c (bfd_elf64_x86_64_vec): Add.
4068 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4070 2000-11-30 Kazu Hirata <kazu@hxi.com>
4072 * xcofflink.c: Fix formatting.
4074 2000-11-28 Kazu Hirata <kazu@hxi.com>
4076 * aoutx.h: Fix formatting.
4077 * bfd-in.h: Likewise.
4078 * bfd-in2.h: Likewise.
4079 * cache.c: Likewise.
4080 * cisco-core.c: Likewise.
4081 * coff64-rs6000.c: Likewise.
4082 * coffcode.h: Likewise.
4083 * coffswap.h: Likewise.
4084 * corefile.c: Likewise.
4085 * elf32-mips.c: Likewise.
4087 2000-11-27 Kazu Hirata <kazu@hxi.com>
4089 * aout-adobe.c: Fix formatting.
4090 * coff64-rs6000.c: Likewise.
4091 * coffgen.c: Likewise.
4092 * cofflink.c: Likewise.
4094 2000-11-27 Philip Blundell <pb@futuretv.com>
4096 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4097 (obj_coff_strings_written): New accessor macro for above.
4098 * libcoff.h: Regenerate.
4099 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4101 * coffcode.h (coff_write_object_contents): No need to write out
4102 the string table if it's already been done.
4104 2000-11-22 Philip Blundell <pb@futuretv.com>
4106 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4107 weak undefined symbols.
4109 2000-11-24 Nick Clifton <nickc@redhat.com>
4111 * archures.c (bfd_mach_arm_5TE): Define.
4112 (bfd_mach_arm+XScale): Define.
4113 * bfd-in2.h: Regenerate.
4115 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4116 BFD_RELOC_ARM_PCREL_BLX.
4118 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4119 XScale machine numbers.
4121 * config.bfd (xscale-elf): Add target.
4122 (xscale-coff): Add target.
4124 * cpu-arm.c: Add xscale machine name.
4125 Add v5t, v5te and XScale machine numbers.
4127 2000-11-23 Kazu Hirata <kazu@hxi.com>
4129 * aix386-core.c: Fix formatting.
4131 2000-11-22 Jim Wilson <wilson@redhat.com>
4133 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4134 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4135 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4136 (ins_imms_scaled): Initialize sign_bit at function entry.
4137 (elf64_ia64_operands): Add missing initializers.
4138 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4139 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4140 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4141 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4142 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4144 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4145 and free_extsyms at function entry.
4146 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4147 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4148 (get_got): Delete unused local srel.
4149 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4150 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4152 2000-11-21 Kazu Hirata <kazu@hxi.com>
4154 * coff-a29k.c: Fix formatting.
4155 * coff-h8500.c: Likewise.
4156 * coff-i960.c: Likewise.
4157 * coff-ppc.c: Likewise.
4158 * coff-rs6000.c: Likewise.
4159 * coff-stgo32.c: Likewise.
4160 * coff-tic54x.c: Likewise.
4161 * coff-w65.c: Likewise.
4162 * cpu-h8500.c: Likewise.
4163 * cpu-hppa.c: Likewise.
4164 * cpu-ns32k.c: Likewise.
4165 * ecoff.c: Likewise.
4166 * ecofflink.c: Likewise.
4168 2000-11-21 Nick Clifton <nickc@redhat.com>
4170 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4171 remove possibility of infinite loop.
4173 2000-11-20 Kazu Hirata <kazu@hxi.com>
4175 * aix386-core.c: Fix formatting.
4176 * aout-adobe.c: Likewise.
4177 * aout-arm.c: Likewise.
4178 * aout-encap.c: Likewise.
4179 * aout-ns32k.c: Likewise.
4180 * aout-target.h: Likewise.
4181 * aout-tic30.c: Likewise.
4182 * aoutf1.h: Likewise.
4183 * aoutx.h: Likewise.
4184 * archive.c: Likewise.
4185 * bfd-in.h: Likewise.
4186 * bfd-in2.h: Likewise.
4190 2000-11-17 H.J. Lu <hjl@gnu.org>
4192 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4193 pltoff entries for DT_INIT and DT_FINI.
4194 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4195 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4198 2000-11-16 Richard Henderson <rth@redhat.com>
4200 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4201 (allocate_dynrel_entries): Likewise.
4202 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4203 (set_pltoff_entry): Likewise.
4204 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4205 (elfNN_ia64_reloc_type_lookup): Likewise.
4206 (elfNN_ia64_install_value): Likewise.
4207 (elfNN_ia64_relocate_section): Likewise.
4208 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4209 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4211 2000-11-16 Kazu Hirata <kazu@hxi.com>
4213 * cpu-a29k.c: Fix formatting.
4214 * cpu-alpha.c: Likewise.
4215 * cpu-arm.c: Likewise.
4216 * cpu-avr.c: Likewise.
4217 * cpu-d10v.c: Likewise.
4218 * cpu-h8500.c: Likewise.
4219 * cpu-hppa.c: Likewise.
4220 * cpu-i370.c: Likewise.
4221 * cpu-i386.c: Likewise.
4222 * cpu-i960.c: Likewise.
4223 * cpu-ia64-opc.c: Likewise.
4224 * cpu-ia64.c: Likewise.
4225 * cpu-m32r.c: Likewise.
4226 * cpu-m68hc11.c: Likewise.
4227 * cpu-m68hc12.c: Likewise.
4228 * cpu-m68k.c: Likewise.
4229 * cpu-m88k.c: Likewise.
4230 * cpu-mips.c: Likewise.
4231 * cpu-ns32k.c: Likewise.
4232 * cpu-pj.c: Likewise.
4233 * cpu-powerpc.c: Likewise.
4234 * cpu-sh.c: Likewise.
4235 * cpu-sparc.c: Likewise.
4236 * cpu-tic54x.c: Likewise.
4237 * cpu-v850.c: Likewise.
4238 * cpu-vax.c: Likewise.
4239 * cpu-w65.c: Likewise.
4240 * cpu-we32k.c: Likewise.
4241 * cpu-z8k.c: Likewise.
4242 * dwarf1.c: Likewise.
4243 * dwarf2.c: Likewise.
4245 2000-11-15 Kazu Hirata <kazu@hxi.com>
4247 * coff-arm.c: Fix formatting.
4248 * coff-ppc.c: Likewise.
4249 * coff-rs6000.c: Likewise.
4250 * coff-sh.c: Likewise.
4251 * coff-sparc.c: Likewise.
4252 * coff-tic30.c: Likewise.
4253 * coff-tic54x.c: Likewise.
4254 * coff-tic80.c: Likewise.
4255 * coff-w65.c: Likewise.
4256 * coff-we32k.c: Likewise.
4257 * coff-z8k.c: Likewise.
4259 2000-11-15 Richard Henderson <rth@redhat.com>
4261 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4262 section with the same ALLOC|LOAD flags as the source section.
4264 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4266 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4267 by STO_ALPHA constants.
4269 2000-11-14 Kazu Hirata <kazu@hxi.com>
4271 * coff-pmac.c: Fix formatting.
4272 * coff-ppc.c: Likewise.
4274 2000-11-13 H.J. Lu <hjl@gnu.org>
4276 * elflink.h (elf_link_add_object_symbols): Also add indirect
4277 symbols for common symbols with the default version.
4279 2000-11-09 Philip Blundell <pb@futuretv.com>
4281 * section.c (STD_SECTION): Set gc_mark flag.
4283 2000-11-11 Kazu Hirata <kazu@hxi.com>
4285 * coff-i960.c: Likewise.
4286 * coff-m68k.c: Likewise.
4287 * coff-m88k.c: Likewise.
4288 * coff-mcore.c: Likewise.
4289 * coff-mips.c: Likewise.
4291 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4293 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4295 2000-11-10 Kazu Hirata <kazu@hxi.com>
4297 * coff-h8300.c: Fix formatting.
4298 * coff-h8500.c: Likewise.
4299 * coff-i386.c: Likewise.
4300 * coff-i860.c: Likewise.
4301 * coff-i960.c: Likewise.
4302 * coff-ia64.c: Likewise.
4304 2000-11-09 Kazu Hirata <kazu@hxi.com>
4306 * archive.c: Fix formatting.
4307 * archures.c: Likewise.
4309 2000-11-07 Richard Henderson <rth@redhat.com>
4311 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4312 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4313 * section.c (bfd_set_section_contents): Call memcpy if
4314 section->contents set and location not equal to contents plus offset.
4316 2000-11-08 Kazu Hirata <kazu@hxi.com>
4318 * bfd-in.h: Fix formatting.
4319 * bfd-in2.h: Likewise.
4321 * binary.c: Likewise.
4323 * coff-a29k.c: Likewise.
4324 * coff-alpha.c: Likewise.
4325 * coff-apollo.c: Likewise.
4326 * coff-aux.c: Likewise.
4328 2000-11-07 Kazu Hirata <kazu@hxi.com>
4330 * aix386-core.c: Fix formatting.
4331 * aoutf1.h: Likewise.
4332 * aoutx.h: Likewise.
4333 * archures.c: Likewise.
4334 * armnetbsd.c: Likewise.
4336 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4338 * coff-h8300.c (special): Adjust reloc address.
4340 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4342 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4343 to differentiate elf32 and elf64 on ia64.
4344 * bfd-in2.h: Regenerate.
4345 * config.bfd: Add target for "ia64*-*-hpux*".
4346 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4347 * configure: Regenerate.
4348 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4349 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4351 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4352 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4353 * Makefile.in: Regnerate.
4354 * elf64-ia64.c: Deleted.
4355 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4357 2000-11-06 Kazu Hirata <kazu@hxi.com>
4359 * aout-adobe.c: Fix formatting.
4360 * aout-arm.c: Likewise.
4361 * aout-cris.c: Likewise.
4362 * aout-encap.c: Likewise.
4363 * aout-ns32k.c: Likewise.
4364 * aout-target.h: Likewise.
4365 * aout-tic30.c: Likewise.
4367 2000-11-05 Philip Blundell <philb@gnu.org>
4369 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4370 BFDs containing no sections to be merged, regardless of their flags.
4372 2000-11-04 Philip Blundell <philb@gnu.org>
4374 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4375 if a relocation for an undefined symbol also results in an
4378 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4380 * config.bfd: Add support for Sun Chorus.
4382 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4384 * configure.in: Recognize alpha-*-freebsd*.
4385 * configure: Regenerate.
4387 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4389 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4390 (Chunk): New global variable set by a parameter in objcopy.c.
4391 (S3Forced): New global variable set by a parameter in
4393 (srec_set_section_contents): If S3Forced is true, always generate
4395 (srec_write_section): Use 'Chunk' to limit maximum length of S
4398 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4400 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4401 * Makefile.in: Regenerate.
4402 * bfd-in2.h: Regenerate.
4403 * po/bfd.pot: Regenerate.
4405 2000-10-31 Philip Blundell <philb@gnu.org>
4407 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4408 EF_SOFT_FLOAT if it is defined.
4410 2000-10-27 Philip Blundell <philb@gnu.org>
4412 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4413 attempts to mix PIC code with non-PIC, just mark the output as
4414 being position dependent.
4415 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4416 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4417 all mismatches, not just the first one.
4419 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4421 * ieee.c (ieee_archive_p): Plug one of many possible
4422 memory leaks in error handling.
4424 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4426 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4427 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4429 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4430 sparc64_elf_object_p): Support v9b.
4431 * archures.c: Declare v8plusb and v9b machines.
4433 * cpu-sparc.c: Ditto.
4435 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4437 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4440 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4441 (SYMBOL_CALLS_LOCAL): New macro.
4442 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4443 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4444 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4445 (ppc_elf_relocate_section): Use flag variable to determine
4446 whether the relocation refers to a local symbol.
4447 Test whether a PLTREL24 reloc will produce a reloc by looking
4448 to see whether a PLT entry was made.
4450 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4452 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4453 entries that could serve as a definition for a weak symbol.
4455 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4457 From Ralf Baechle <ralf@gnu.org>
4459 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4460 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4461 against local symbols.
4462 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4464 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4466 * section.c (struct sec): Add kept_section.
4467 (struct bfd_comdat_info): Remove sec, we can use above.
4468 (STD_SECTION): Add initializer.
4469 (bfd_make_section_anyway): Init here too.
4471 * bfd-in2.h: Regenerate.
4473 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4475 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4476 fudge values for discarded link-once section symbols.
4478 * elf64-hppa.c: Include alloca-conf.h
4480 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4482 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4484 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4486 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4488 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4490 2000-10-10 Tom Rix <trix@redhat.com>
4492 * section.c (bfd_make_section_anyway): Release newsect ptr when
4493 newsect->symbol fails to alloc. Use bfd_release instead of free.
4495 2000-10-09 Richard Henderson <rth@cygnus.com
4497 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4498 (elf64_ia64_unwind_entry_compare): New.
4499 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4501 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4503 * elflink.h (size_dynamic_sections): Don't create various tags if
4504 .dynstr is excluded from the link. Don't set first dynsym entry
4505 if dynsymcount is zero.
4506 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4507 .dynsym excluded from the link. Don't try to write any dynamic
4508 sections excluded from the link.
4510 * elf.c (swap_out_syms): Handle global section symbols.
4512 2000-10-05 DJ Delorie <dj@redhat.com>
4514 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4515 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4516 (coff_write_relocs): write extended reloc count
4517 (coff_write_object_contents): account for extended relocs
4519 2000-10-05 Jim Wilson <wilson@cygnus.com>
4521 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4523 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4524 elf_backend_section_flags function.
4525 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4527 (elf64_ia64_section_flags): New function containing flag conversion
4529 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4530 * elfxx-target.h (elf_backend_section_flags): Define.
4531 (elfNN_bed): Initialize elf_backend_section_flags field.
4533 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4535 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4536 _bfd_elf32_gc_record_vtable. Correct a comment.
4538 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4540 From Ralf Baechle <ralf@gnu.org>
4542 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4543 produces binaries with got[1] = 0x80000001 to differenciate them
4544 for the dynamic linker from the broken binaries produced by old
4547 2000-09-30 Petr Sorfa <petrs@sco.com>
4549 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4550 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4551 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4552 * configure: Regenerate.
4554 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4556 Define two bfd_targets for absence and presence of leading
4557 underscore on symbols. Make sure to only link same kind.
4558 * elf32-cris.c (cris_elf_object_p,
4559 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4560 cris_elf_merge_private_bfd_data): New.
4561 (elf_backend_object_p, elf_backend_final_write_processing,
4562 bfd_elf32_bfd_print_private_bfd_data,
4563 bfd_elf32_bfd_merge_private_bfd_data): Define.
4564 <Target vector definition>: Include elf32-target.h twice with
4565 different macro settings:
4566 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4567 bfd_elf32_us_cris_vec.
4568 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4569 (elf_symbol_leading_char): First as 0, then '_'.
4570 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4571 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4572 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4573 * configure: Regenerate.
4574 * targets.c: Declare bfd_elf32_us_cris_vec.
4575 * po/bfd.pot: Regenerate.
4577 2000-09-29 Momchil Velikov <velco@fadata.bg>
4579 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4580 R_ARM_THM_PC22 relocations.
4582 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4584 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4586 2000-09-29 Momchil Velikov <velco@fadata.bg>
4588 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4589 is has the SEC_HAS_CONTENTS flag set.
4591 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4592 Hans-Peter Nilsson <hp@axis.com>
4594 * aout-cris.c (N_TXTADDR): Define.
4596 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4598 * som.c: Include alloca-conf.h.
4599 * Makefile.am: "make dep-am"
4600 * Makefile.in: Regenerate.
4602 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4604 * elf32-hppa.c (plt_stub): New.
4605 (PLT_STUB_ENTRY): Define.
4606 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4607 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4608 (elf32_hppa_link_hash_table_create): Init to suit.
4609 (elf32_hppa_check_relocs): Set has_12bit_branch and
4610 has_17bit_branch as appropriate.
4611 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4612 non-local functions.
4613 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4614 Add space for plt_stub as needed.
4615 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4616 functions at plt_stub.
4617 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4618 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4620 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4621 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4622 of fixed size, and if negative, disable handling of input sections
4623 before stub section. Set up default stub group size depending
4624 on detected branch relocs.
4625 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4626 ensure different offsets from sym_value aren't rounded to
4627 different 2k blocks. Use lrsel and rrsel for other stubs too for
4628 consistency rather than necessity.
4629 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4630 (final_link_relocate): Likewise.
4631 (elf32_hppa_relocate_section): Likewise.
4633 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4634 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4635 (elf_hppa_final_link_relocate): Handle them.
4636 (elf_hppa_relocate_insn): Likewise.
4637 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4639 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4641 * elfcode.h (elf_object_p): Preserve and clear abfd section
4642 information. Restore at error.
4644 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4646 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4647 is empty, make sure that its rva also 0. NT loader dislikes
4650 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4652 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4655 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4657 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4658 currently unused RELATIVE_DYNAMIC_RELOCS code.
4659 (hppa_discard_copies): Likewise.
4660 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4661 comments. Don't check non-code output sections for stub grouping.
4663 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4665 * section.c (bfd_get_unique_section_name): Return NULL if
4668 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4670 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4671 instruction sequence to actually work.
4672 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4675 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4677 * elf32-sh.c (sh_elf_relocate_section): Use
4678 _bfd_final_link_relocate to apply the relocation against a section
4679 symbol, when doing relocatable links.
4681 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4683 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4685 (stub_hash_newfunc): Here too.
4686 (hppa_add_stub): And here.
4687 (elf32_hppa_link_hash_table): Remove stub_section_created,
4688 reloc_section_created, first_init_sec and first_fini_sec. Add
4690 (elf32_hppa_link_hash_table_create): Init to suit.
4691 (hppa_get_stub_entry): Add support for grouping stub sections.
4692 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4693 section code. Index stub vars by section->id.
4694 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4695 exit paths. Zap allocation of above removed vars. Refine
4698 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4699 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4700 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4701 rather than pointer to bfd_link_info.
4702 (hppa_add_stub): Likewise.
4703 (final_link_relocate): Likewise.
4705 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4707 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4710 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4712 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4713 ld/emulparams/shelf.sh.
4715 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4717 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4718 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4719 * bfd-in2.h: Regenerate.
4721 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4723 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4724 LITUSE relocations incorrectly if -relax is specified on the ld
4725 command line and the displacement field of the load or store
4726 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4728 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4730 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4731 first_fini_sec here.
4732 (elf32_hppa_size_stubs): Instead correctly find the first .init
4733 and .fini section here.
4735 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4737 * elf32-hppa.c (clobber_millicode_symbols): New function.
4738 (elf32_hppa_size_dynamic_sections): Call it.
4740 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4742 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4743 packed. Add plabel, plt_abs packed booleans.
4744 (hppa_link_hash_newfunc): Init new fields.
4745 (PLABEL_PLT_ENTRY_SIZE): Define.
4746 (hppa_stub_name): Use size_t len vars.
4747 (hppa_add_stub): Likewise.
4748 (elf32_hppa_build_stubs): Likewise.
4749 (hppa_build_one_stub): Kill some compiler warnings.
4750 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4751 if dynamic linking. Munge the local plt offsets into
4752 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4753 size_t len vars. Add assert for plabel addend.
4754 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4755 (elf32_hppa_hide_symbol): New function.
4756 (elf_backend_hide_symbol): Define.
4757 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4758 with h->plabel set. Don't make plt entries to have dynamic syms
4759 when they have been forced local. If plt entry is used by a
4760 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4761 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4762 Set up .plt offsets for local syms.
4763 (elf32_hppa_relocate_section): Initialise plt entries for local
4764 syms. Leave weak undefined plabels zero. Make global plabel
4765 relocs against function symbol, and leave the addend zero.
4766 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4767 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4768 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4769 relocs instead of SEGREL32 for dynamic got relocs.
4770 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4771 (elf_backend_got_header_size): Adjust.
4772 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4774 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4775 (hppa_type_of_stub): Use it instead of #if 0
4776 (hppa_discard_copies): Use it here too.
4777 (elf32_hppa_size_dynamic_sections): And here.
4779 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4780 (elf32_hppa_link_hash_table_create): And here.
4781 (hppa_build_one_stub): And here. Instead keep track of stub
4782 offset using _raw_size.
4783 (elf32_hppa_size_stubs): Likewise.
4784 (elf32_hppa_build_stubs): Likewise.
4785 (hppa_size_one_stub): Likewise. Resize reloc section too.
4787 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4788 first_fini_sec handling. Don't search for reloc section or set
4789 hplink->reloc_section_created here.
4790 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4791 set reloc_section_created here.
4792 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4793 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4795 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4797 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4798 with `hplink->root.'.
4799 (elf32_hppa_check_relocs): Likewise.
4800 (elf32_hppa_gc_sweep_hook): Likewise.
4801 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4802 (hppa_handle_PIC_calls): Likewise.
4803 (elf32_hppa_size_dynamic_sections): Likewise.
4804 (elf32_hppa_set_gp): Likewise.
4805 (elf32_hppa_relocate_section): Likewise.
4806 (elf32_hppa_finish_dynamic_symbol): Likewise.
4807 (elf32_hppa_finish_dynamic_sections): Likewise.
4809 From David Huggins-Daines <dhd@linuxcare.com>
4810 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4811 defined weak symbols in shared links.
4812 (final_link_relocate): Calls to defined weak symbols in shared
4813 objects must go via import stubs, as the target might not be known
4816 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4818 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4819 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4820 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4821 the original entries with EMPTY_HOWTOs, and added new ones to fill
4823 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4824 (sh_elf_relocate_section): Likewise.
4826 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4828 * cpu-mips.c (arch_info_struct): Add mips:4K
4829 * bfd-in2.h (bfd_mach_mips4K): New define.
4830 * archures.c: Add bfd_mach_mips4K to comment.
4831 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4832 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4834 2000-09-13 Marco Franzen <marcof@thyron.com>
4836 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4837 use size_t as a counter.
4838 (som_write_space_strings): Similarly.
4840 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4842 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4844 (elf32_i860_relocate_section): Invoke new function from here.
4846 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4848 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4851 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4853 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4854 target section name instead of dumping core when the target symbol is
4857 2000-09-09 Kazu Hirata <kazu@hxi.com>
4859 * riscix.c: Remove DEFUN.
4861 2000-09-08 Nick Clifton <nickc@redhat.com>
4863 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4864 initialise flags in output bfd if the input bfd is the default
4865 architecture with the default flags.
4867 2000-09-08 Kazu Hirata <kazu@hxi.com>
4869 * archive.c: Fix formatting.
4870 * coff-arm.c: Likewise.
4871 * doc/chew.c: Likewise.
4873 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4875 * section.c (bfd_get_unique_section_name): Put a dot before the
4878 2000-09-07 Kazu Hirata <kazu@hxi.com>
4880 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4881 * elf.c: Fix formatting.
4883 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4885 * config.bfd (sh-*-linux*): Added.
4886 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4887 * targets.c: Declare them.
4888 * elf32-sh-lin.c: New file.
4889 * Makefile.am: Compile it.
4890 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4891 * configure, Makefile.in: Rebuilt.
4893 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4895 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4896 pseduo-section when determining where the TOC ends.
4898 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4899 output x_tvndx as it is only two bytes wide.
4901 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4902 reloc is 26 or 32 bits wide.
4904 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4905 for relocs that don't change anything. Also look at the full
4908 2000-09-06 Philip Blundell <philb@gnu.org>
4910 * config.bfd (arm*-*-uclinux*): New target.
4912 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4914 * configure: Rebuilt with new libtool.m4.
4916 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4918 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4919 word for variable name.
4920 * bfd-in2.h: Regenerate.
4922 2000-09-05 Nick Clifton <nickc@redhat.com>
4924 * config.in: Regenerate.
4925 * libbfd.h: Regenerate.
4926 * po/bfd.pot: Regenerate.
4927 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4930 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4932 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4934 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4936 Shared library and PIC support.
4937 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4938 (GOT_ENTRY_SIZE): New.
4939 (ELF_DYNAMIC_INTERPRETER): New.
4940 (STUB_SUFFIX): Define.
4941 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4942 (RELATIVE_DYNAMIC_RELOCS): Define.
4943 (enum elf32_hppa_stub_type): New.
4944 (struct elf32_hppa_stub_hash_entry): Rename offset to
4945 stub_offset. Add a number of new fields.
4946 (struct elf32_hppa_link_hash_entry): New.
4947 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4949 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4950 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4951 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4953 (hppa_link_hash_newfunc): New function.
4954 (elf32_hppa_link_hash_table_create): Use above function. Init new
4956 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4957 instead of addend, and remove sym_name from args. Don't use
4958 symbol name for local syms, instead use sym index.
4959 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4960 stub type rather than size. Pass in hash and handle import stub
4961 case. Also pass in reloc instead of offset so we can calculate
4962 PCREL22F and PCREL12F branches properly.
4963 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4964 import and export stubs too.
4965 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4966 import and export stub sizing.
4967 (elf32_hppa_check_relocs): New function.
4968 (elf32_hppa_adjust_dynamic_symbol): New function.
4969 (hppa_discard_copies): New function.
4970 (elf32_hppa_size_dynamic_sections): New function.
4971 (elf_backend_size_dynamic_sections): Define.
4972 (elf32_hppa_finish_dynamic_symbol): New function.
4973 (elf_backend_finish_dynamic_symbol): Define.
4974 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4975 some local vars into the link hash table too. For shared links,
4976 trundle over function syms, generating export stubs. Handle
4977 PCREL22F branches. Break out stub creation code from here..
4978 (hppa_add_stub): .. to here. New function.
4979 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4980 call the bfd linker. Use elf_gp to record global pointer.
4981 Calculate a value from sections if $global$ is missing.
4982 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4983 (elf32_hppa_gc_mark_hook): New function.
4984 (elf_backend_gc_mark_hook): Define.
4985 (elf32_hppa_gc_sweep_hook): New function.
4986 (elf_backend_gc_sweep_hook): Define.
4987 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4988 Add rel to args, and remove howto, input_bfd, offset, addend,
4989 sym_name as we can recalculate these locally. Handle calls to
4990 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4991 handling of undefined weak syms. Check that stubs are in range.
4992 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4993 message on hitting a DPREL21L reloc that needs fixing. Subtract
4994 off PC for PCREL14F. Break out code that does a stub lookup from
4996 (hppa_get_stub_entry): ..to here. New function.
4997 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4998 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5000 (elf32_hppa_finish_dynamic_sections): New function.
5001 (elf_backend_finish_dynamic_sections): Define.
5002 (elf_backend_final_write_processing) Define.
5003 (hppa_handle_PIC_calls): New function.
5004 (elf32_hppa_build_stubs): Call it. Pass link_info to
5005 hppa_build_one_stub.
5006 (elf32_hppa_create_dynamic_sections): New function
5007 to create .plt and .got then set .plt flags correctly.
5008 (elf_backend_create_dynamic_sections): Define.
5009 (elf32_hppa_object_p): New function.
5010 (elf_backend_object_p): Define.
5011 (elf32_hppa_elf_get_symbol_type): New function.
5012 (elf_backend_get_symbol_type): Define.
5013 (elf_backend_can_gc_sections): Define.
5014 (elf_backend_want_got_plt): Define.
5015 (elf_backend_plt_alignment): Set to 2.
5016 (elf_backend_plt_readonly): Define.
5017 (elf_backend_want_plt_sym): Define.
5018 (elf_backend_got_header_size): Reserve one entry.
5020 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5021 (elf32_hppa_size_stubs): Pass in multi_subspace.
5022 (elf32_hppa_set_gp): Declare.
5024 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5025 (bfd_get_unique_section_name): New function.
5026 * bfd-in2.h: Regenerate.
5028 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5029 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5032 From David Huggins-Daines <dhd@linuxcare.com>
5033 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5034 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5035 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5036 been updated in finish_dynamic_symbol before modifying function
5039 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5040 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5041 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5042 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5043 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5044 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5045 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5046 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5048 From David Huggins-Daines <dhd@linuxcare.com>
5049 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5050 style of local labels as well.
5052 2000-09-03 Philip Blundell <philb@gnu.org>
5054 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5055 references to undefined symbols in debugging sections.
5057 2000-09-02 H.J. Lu <hjl@gnu.org>
5059 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5060 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5061 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5064 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5066 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5067 (elf32_i860_is_local_label_name): New function and prototype.
5069 2000-09-02 Nick Clifton <nickc@redhat.com>
5071 * configure.in: Increase version number to 2.10.91.
5072 * configure: Regenerate.
5073 * aclocal.m4: Regenerate.
5074 * config.in: Regenerate.
5075 * po/bfd.pot: Regenerate.
5077 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5079 * elf.c (_bfd_elf_make_section_from_shdr): Add
5080 .gnu.linkobce.wi. to the list of debug section names.
5082 2000-09-02 Nick Clifton <nickc@redhat.com>
5084 * dwarf2.c (find_debug_info): New function: Locate a section
5085 containing dwarf2 debug information.
5086 (bfd_dwarf2_find_nearest_line): Find all sections containing
5087 debug information and include them in the stash.
5089 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5091 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5092 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5093 (sh_reloc_map): Add new relocs.
5094 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5095 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5096 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5097 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5099 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5100 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5101 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5102 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5103 New array constants.
5104 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5106 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5107 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5108 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5109 elf_sh_plt_reloc_offset): Define.
5110 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5111 elf_sh_link_hash_table): New structs.
5112 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5113 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5115 (elf_backend_create_dynamic_sections,
5116 bfd_elf32_bfd_link_hash_table_create,
5117 elf_backend_adjust_dynamic_symbol,
5118 elf_backend_size_dynamic_sections,
5119 elf_backend_finish_dynamic_symbol,
5120 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5121 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5122 elf_backend_got_header_size, elf_backend_plt_header_size):
5124 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5125 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5127 * bfd-in2.h, libbfd.h: Rebuilt.
5129 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5131 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5134 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5136 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5137 not initialized, set them to indicate the SH1 instruction set.
5139 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5141 * acinclude.m4: Include libtool and gettext macros from the
5143 * aclocal.m4, configure: Rebuilt.
5145 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5147 * elf.c: Eliminate references to __sparcv9 macro; replace with
5148 autoconf variables HAVE_PSINFO32_T etc.
5149 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5150 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5152 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5153 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5154 * aclocal.m4: Ditto.
5155 * configure: Regenerate.
5157 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5159 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5160 for any shared link, not just shared -Bsymbolic.
5161 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5162 any shared link, and pass link info to it.
5163 (elf_i386_size_dynamic_sections): Update comment.
5164 (elf_i386_discard_copies): Modify to discard relocs for symbols
5165 that have been forced local.
5166 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5167 that have been forced local.
5169 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5171 * elflink.h (elf_link_add_object_symbols): Allow common
5172 symbols to have an alignment of 1 if explicitly requested, and
5173 not overridden by other definitions.
5175 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5177 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5178 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5180 2000-08-22 H.J. Lu <hjl@gnu.org>
5182 * elf-bfd.h (elf_link_hash_table): Add runpath.
5184 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5185 * bfd-in2.h: Rebuilt.
5187 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5188 "runpath" field to NULL.
5189 (bfd_elf_get_runpath_list): New function.
5191 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5194 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5196 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5197 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5198 explicitly. Improve validation of r_type.
5200 2000-08-21 H.J. Lu <hjl@gnu.org>
5202 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5203 dynamic allocated content space. Add a comment to remind us that
5204 one day this ought to be fixed.
5205 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5206 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5207 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5209 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5211 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5212 field with the newly relocated value instead of adding it to the
5213 existing immediate field.
5214 (elf32_i860_relocate_splitn): Likewise.
5215 (elf32_i860_relocate_highadj): Likewise.
5217 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5219 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5220 was previously just a stub).
5222 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5224 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5226 (_bfd_elf_create_dynamic_sections): Likewise.
5228 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5230 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5231 for undefined symbols to be the beginning of the section.
5233 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5234 four extra entries at the beginning of the .rela.plt section.
5235 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5236 section to account for the four reserved entries in the .plt section.
5238 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5240 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5241 to the list of NOPs we recognize after a branch-and-link.
5242 Use the ori NOP when one is needed.
5244 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5247 2000-08-14 Jim Wilson <wilson@cygnus.com>
5249 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5250 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5251 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5254 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5256 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5258 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5260 * elf32-i860.c (elf32_i860_relocate_section): New function.
5261 (i860_final_link_relocate): New function.
5262 (elf32_i860_relocate_splitn): New function.
5263 (elf32_i860_relocate_pc16): New function.
5264 (elf32_i860_relocate_highadj): New function.
5265 (elf32_i860_howto): Minor adjustments to some relocations.
5266 (elf_info_to_howto_rel): Define.
5267 (elf_backend_relocate_section): Define.
5269 2000-08-10 Nick Clifton <nickc@cygnus.com>
5271 * elf32-arm.h: Fix formatting.
5273 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5275 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5277 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5279 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5281 2000-08-07 Kazu Hirata <kazu@hxi.com>
5283 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5284 * elf64-ia64.c: Fix a typo.
5286 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5288 * elf32-i860.c (elf32_i860_howto_table): New structure.
5289 (lookup_howto): New function.
5290 (elf32_i860_reloc_type_lookup): New function.
5291 (elf32_i860_info_to_howto_rela): New function.
5292 (elf_code_to_howto_index): New structure.
5293 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5294 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5295 elf32_i860_reloc_type_lookup.
5297 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5299 * som.c (struct fixup_format): Constify `format'.
5300 (som_hppa_howto_table): Use SOM_HOWTO macro.
5301 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5302 (som_bfd_reloc_type_lookup): Likewise.
5303 (compare_subspaces): Remove unused `count1', `count2'.
5304 (som_begin_writing): Remove unused `total_reloc_size'.
5305 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5306 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5307 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5308 (som_find_nearest_line): Decorate unused parameter(s).
5309 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5310 (som_bfd_link_split_section): Likewise.
5312 2000-08-03 Nick Clifton <nickc@cygnus.com>
5314 * section.c: Restore backed out code.
5315 * elf.c: Restore backed out code.
5316 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5317 binaries from working.
5318 * bfd-in2.h: Regenerate.
5320 2000-08-03 H.J. Lu <hjl@gnu.org>
5322 * section.c: Back out the change made by Nick Clifton
5323 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5325 * bfd-in2.h: Likewise.
5328 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5330 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5332 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5334 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5335 * bfd-in2.h, libbfd.h: Regenerate.
5337 2000-07-31 Nick Clifton <nickc@cygnus.com>
5339 * section.c (struct sec): Add new boolean field 'segment_mark'.
5340 (STD_SECTION): Initialise new field to zero.
5342 * bfd-in2.h: Regenerate.
5344 * elf.c (copy_private_bfd_data): Reorganise section to segment
5345 mapping to cope with moved sections requiring new segments,
5346 and overlapping segments.
5347 (SEGMENT_END): New macro: Return the end address of a segment.
5348 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5349 contains a section by comparing their VMA addresses.
5350 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5351 contains a section by comparing their LMA addresses.
5352 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5353 section should be included in a segment.
5354 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5355 follows another in memory.
5356 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5359 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5361 * cpu-i860.c: Added comments.
5363 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5364 bfd_elf32_i860_little_vec.
5365 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5366 (ELF_MAXPAGESIZE): Changed to 4096.
5368 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5370 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5372 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5373 config for little endian elf32 i860.
5374 (targ_defvec): Define for the new config above
5375 as "bfd_elf32_i860_little_vec".
5376 (targ_selvecs): Define for the new config above
5377 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5379 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5382 * configure: Regenerated.
5384 2000-07-27 H.J. Lu <hjl@gnu.org>
5386 * elflink.h (elf_merge_symbol): Take one more argument,
5387 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5388 entry. Don't overide the existing weak definition if dt_needed
5390 (elf_link_add_object_symbols): Pass dt_needed to
5391 elf_merge_symbol ().
5393 2000-07-27 Nick Clifton <nickc@cygnus.com>
5395 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5398 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5400 * configure.host (*-*-aix*): AIX has 'long long' always.
5402 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5403 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5404 (xcoff_write_archive_contents_big): Don't update the offset
5405 of the symbol table, xcoff_write_armap will do it.
5407 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5409 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5410 of dynobj for SGI_COMPAT checks.
5412 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5414 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5415 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5416 * bfd-in2.h: Regenerate.
5418 2000-07-21 Nick Clifton <nickc@cygnus.com>
5420 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5421 range symbol indices in relocs and issue an error message.
5423 2000-07-20 H.J. Lu <hjl@gnu.org>
5425 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5426 info->new_dtags when setting DT_FLAGS_1. It will only be set
5427 by the new linker options. It shouldn't break anything.
5429 2000-07-20 H.J. Lu <hjl@gnu.org>
5431 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5432 only if info->new_dtags is true.
5434 2000-07-20 H.J. Lu <hjl@gnu.org>
5436 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5437 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5439 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5441 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5442 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5443 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5444 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5445 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5446 * Makefile.in: Rebuild.
5447 * aclocal.m4: Rebuild.
5448 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5449 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5450 (bfd_cris_arch): Declare.
5451 (bfd_archures_list): Add bfd_cris_arch.
5452 * bfd-in2.h: Rebuild.
5453 * config.bfd: (cris-*-*): New target.
5454 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5455 * configure: Rebuild.
5456 * elf.c (prep_headers): Add bfd_arch_cris.
5457 * libbfd.h: Rebuild.
5458 * libaout.h (enum machine_type): Add M_CRIS.
5459 * reloc.c: Add CRIS relocations.
5460 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5461 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5462 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5463 * po/POTFILES.in, po/bfd.pot: Regenerate.
5465 2000-07-19 H.J. Lu <hjl@gnu.org>
5467 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5468 DF_TEXTREL if DT_TEXTREL is set.
5469 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5470 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5471 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5472 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5473 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5474 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5475 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5476 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5477 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5478 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5480 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5481 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5483 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5485 2000-07-19 H.J. Lu <hjl@gnu.org>
5487 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5488 * bfd-in2.h: Rebuild.
5490 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5491 (elf_dt_soname): New.
5493 * elf.c (bfd_elf_set_dt_needed_soname): New.
5495 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5496 entry if the shared object loaded by DT_NEEDED is used to
5497 resolve the reference in a regular object.
5499 2000-07-19 H.J. Lu <hjl@gnu.org>
5501 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5502 DT_DEPAUDIT and DT_AUDIT as strings.
5504 2000-07-19 Nick Clifton <nickc@cygnus.com>
5506 * format.c: Fix formatting.
5508 2000-07-19 H.J. Lu <hjl@gnu.org>
5510 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5512 2000-07-19 H.J. Lu <hjl@gnu.org>
5514 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5515 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5516 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5517 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5518 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5519 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5520 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5522 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5524 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5525 renamed functions from here...
5526 (assign_section_numbers): Use renamed functions.
5527 (prep_headers): Use renamed functions.
5529 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5530 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5531 * bfd-in2.h: Regenerate.
5533 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5535 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5536 parenthesis in if statement.
5538 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5540 Enable the support for Traditional MIPS.
5541 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5542 return ict_none appropriately for traditional mips targets.
5543 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5544 (STUB_MOVE): Conditionalize for traditonal mips.
5545 (STUB_LI16): Likewise.
5546 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5547 room for RTPROC header.
5548 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5549 the permission for the PT_DYNAMIC as read, write and execute.
5550 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5551 for traditonal mips.
5552 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5553 _DYNAMIC_LINKING for traditonal mips.
5554 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5555 in case of traditonal mips.
5556 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5557 entry is required. For a function if PLT is not required then set the
5558 corresponding hash table entry to 0.
5559 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5561 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5562 shared object set the value to 0.
5563 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5564 _DYNAMIC_LINKING for traditonal mips.
5565 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5566 for traditonal mips.
5568 2000-07-15 H.J. Lu <hjl@gnu.org>
5570 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5572 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5574 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5575 out a structure that is BFD_IN_MEMORY.
5577 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5579 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5580 bfd pointer. Print section id instead of bfd pointer for local
5581 syms. Prefix addend with `+' for global syms as well as local.
5582 Correct calculation of name component lengths.
5583 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5585 From David Huggins-Daines <dhd@linuxcare.com>
5586 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5587 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5588 (elf64_hppa_modify_segment_map): Likewise.
5590 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5592 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5593 addresses to be "naturally" sign extended. Return -1 if unknown.
5594 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5595 * bfd-in2.h: Regenerate.
5597 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5599 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5600 and ECOF_SIGNED_64 to list ways to extract an offset.
5601 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5602 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5604 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5605 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5607 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5609 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5610 bfd_get_start_address.
5611 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5612 (elf_swap_ehdr_out): Ditto.
5614 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5616 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5617 compatibility with older binutils.
5619 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5621 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5622 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5624 From Ryan Bradetich <rbradetich@uswest.net>
5625 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5626 (parse_line_table): Ditto.
5627 (_bfd_dwarf1_find_nearest_line): Ditto.
5628 * syms.c (cmpindexentry): Remove extra `*' from params.
5630 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5632 * elf32-mips.c (sort_dynamic_relocs): New Function.
5633 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5634 via qsort to sort the dynamic relocations in increasing r_symndx
5637 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5639 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5640 ATTRIBUTE_UNUSED to unused args.
5641 (get_opd): Likewise.
5642 (get_plt): Likewise.
5643 (get_dlt): Likewise.
5644 (get_stub): Likewise.
5645 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5646 (elf64_hppa_link_output_symbol_hook): Likewise.
5647 (elf64_hppa_check_relocs): Delete unused var.
5648 (elf64_hppa_size_dynamic_sections): Likewise.
5649 (elf64_hppa_finalize_opd): Likewise.
5650 (elf64_hppa_finalize_dynreloc): Likewise.
5651 (elf64_hppa_modify_segment_map): Likewise.
5652 (elf64_hppa_finish_dynamic_sections): Likewise.
5654 * elf-hppa.h (elf_hppa_final_write_processing): Add
5655 ATTRIBUTE_UNUSED to unused args.
5656 (elf_hppa_final_link_relocate): Likewise.
5657 (elf_hppa_record_segment_addrs): Add paretheses.
5658 (elf_hppa_relocate_section): Constify dyn_name.
5660 From David Huggins-Daines <dhd@linuxcare.com>
5661 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5662 rearrange case statement so that it gets preferred to 32-bit ones.
5664 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5665 asection->id instead of address of asection structure.
5666 (elf32_hppa_size_stubs): Likewise.
5668 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5669 for .init* and .fini*.
5671 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5672 and addends used in stub names to 32 bits.
5673 (elf32_hppa_size_stubs): Likewise.
5675 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5676 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5677 not bfd_put_64. Fix minor comment typo and formatting.
5679 Changes to create multiple linker stubs, positioned immediately
5680 before the section where they are required.
5681 * elf32-hppa.c: Don't include hppa_stubs.h.
5682 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5683 (elf32_hppa_stub_hash_table): Delete.
5684 (elf32_hppa_link_hash_entry): Delete.
5685 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5686 stub_hash_table, and store the struct here rather than a pointer.
5687 Delete output_symbol_count. Add offset array. Change
5688 global_value to a bfd_vma.
5689 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5690 (elf32_hppa_stub_hash_traverse): Delete.
5691 (elf32_hppa_name_of_stub): Delete.
5692 (elf32_hppa_link_hash_lookup): Delete.
5693 (elf32_hppa_link_hash_traverse): Delete.
5694 (elf32_hppa_stub_hash_table_init): Delete.
5695 (elf32_hppa_size_of_stub): Pass input section and offset rather
5696 than location and calculate location here. Don't pass name as all
5697 stubs are now the same size.
5698 (elf32_hppa_stub_hash_newfunc): Init new fields.
5699 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5701 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5702 comparing against ints. Rewrite stub handling code.
5703 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5704 Case enums to int before comparing against ints. Remove
5705 bfd_reloc_dangerous case.
5706 (elf32_hppa_build_one_stub): Rewrite.
5707 (elf32_hppa_size_one_stub): New function.
5708 (elf32_hppa_build_stubs): Rewrite.
5709 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5710 Rewrite stub-handling specific code.
5712 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5714 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5716 * hppa_stubs.h: Delete.
5717 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5718 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5719 * Makefile.in: Regenerate.
5721 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5724 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5726 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5727 and section name for bfd_reloc_notsupported error message.
5728 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5729 bfd_reloc_notsupported.
5730 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5732 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5733 undefined weak symbols for all relocs.
5734 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5735 offsets are relative to one past the delay slot.
5736 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5737 branch destination. Put addend into stub name too.
5738 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5739 adjust by 8 when deciding whether a linker stub is needed. Put
5740 addend into stub name as for above.
5742 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5743 various args and vars.
5744 (elf32_hppa_bfd_final_link_relocate): Here too.
5745 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5746 inner block var to avoid shadowing.
5748 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5750 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5751 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5752 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5754 * libhppa.h: Change practically all unsigned ints to plain ints.
5755 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5758 From Ryan Bradetich <rbradetich@uswest.net>
5759 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5760 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5762 From David Huggins-Daines <dhd@linuxcare.com>
5763 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5764 to the new OP_* ones.
5766 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5767 error exit. Bail out earlier on plabel relocs that we aren't
5768 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5769 string, and then don't free our copy.
5770 (elf32_hppa_build_one_stub): Make insn unsigned int.
5772 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5773 available with BL, not BE and BLE.
5775 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5776 code for elf arg relocs.
5777 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5778 argument with elf_link_hash_entry h. Handle undefined weak
5779 symbols. Move $global$ lookup from here...
5780 (elf32_hppa_relocate_section): ...to here. Return correct error
5781 message for non-handled relocs.
5782 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5783 wrong test was -0x3ffff to +0x40000.
5785 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5786 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5787 Handle them as such.
5788 (elf_hppa_relocate_insn): Fix a typo.
5790 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5791 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5792 assemble_17, assemble_21): Delete.
5793 Supply defines for all 64 possible opcodes.
5794 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5795 formats. Handle COMICLR.
5796 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5799 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5800 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5801 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5803 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5804 the local syms - did this code get deleted accidentally? Ignore
5805 undefined and undefweak syms.
5807 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5808 block. Use it instead of elf64_hppa_hash_table (info).
5809 (elf_hppa_final_link_relocate): Use hppa_info instead of
5810 elf64_hppa_hash_table (info).
5812 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5813 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5814 (hppa_rebuild_insn): Mask immediate bits here instead.
5815 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5817 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5819 * section.c (struct sec): Add id field. Tidy comment formatting.
5820 (bfd_make_section_anyway): Set id.
5821 (STD_SECTION): Init id too.
5822 Change CONST to const throughout.
5823 * archures.c (bfd_arch_info): Tidy comment.
5824 (bfd_arch_list): Change a CONST to const.
5825 * libbfd-in.h: Tidy comments and replace CONST with const.
5826 * elf-bfd.h: Likewise.
5827 * libbfd.h: Regenerate.
5828 * bfd-in2.h: Regenerate.
5829 * libcoff.h: Regenerate.
5831 2000-07-07 DJ Delorie <dj@redhat.com>
5833 * archive.c (_bfd_write_archive_contents): Add an informative
5836 2000-07-06 Kazu Hirata <kazu@hxi.com>
5838 * srec.c: Fix formatting.
5840 2000-06-05 DJ Delorie <dj@redhat.com>
5844 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5846 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5847 value of PC-relative offsets.
5849 2000-07-03 Jim Wilson <wilson@cygnus.com>
5851 * elf64-alpha.c (alpha_elf_size_info): New.
5852 (elf_backend_size_info): Define to alpha_elf_size_info.
5853 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5855 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5857 * elf32-mips.c: Include elf32-target.h again for the traditional
5860 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5862 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5863 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5864 (avr_info_to_howto_rela): Likewise.
5865 (elf32_avr_gc_mark_hook): Likewise.
5866 (elf32_avr_gc_sweep_hook): Likewise.
5867 (elf32_avr_relocate_section): Likewise.
5869 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5871 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5872 an external symbol for a non-shared, non-relocatable link.
5874 2000-07-03 Nick Clifton <nickc@redhat.com>
5876 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5877 is an external symbol.
5878 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5881 2000-07-03 Kazu Hirata <kazu@hxi.com>
5883 * reloc16.c: Fix formatting.
5885 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5887 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5888 to add a new target for traditional mips i.e
5889 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5890 * configure.in: Likewise.
5891 * configure: Rebuild.
5892 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5894 (bfd_elf32_tradlittlemips_vec): Likewise.
5895 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5896 to see that elfNN_bed does not get redefined even if the target file
5897 is included twice for a chip. See elf32-mips.c.
5899 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5901 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5902 (CLEANFILES): Add DEPA.
5903 * Makefile.in: Regenerate.
5905 2000-06-30 DJ Delorie <dj@cygnus.com>
5907 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5908 can't assume the PE header is at 0x80.
5910 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5912 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5914 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5916 * go32stub.h: Update stub.
5918 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5920 * archures.c (bfd_mach_avr5): Define.
5921 * bfd-in2.h (bfd_mach_avr5): Define.
5922 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5923 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5924 (compatible): Update comment. Add missing test.
5925 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5926 for avr2 and avr4. Simplify 8K wrap code.
5927 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5928 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5930 2000-06-26 Kazu Hirata <kazu@hxi.com>
5932 * coff-h8300.c: Fix formatting.
5933 * cpu-h8300.c: Likewise.
5935 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5937 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5938 for local symbols whose names are unknown.
5940 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5942 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5944 * Makefile.in: Regenerate.
5945 * doc/Makefile.in: Regenerate.
5947 2000-06-20 H.J. Lu <hjl@gnu.org>
5949 * Makefile.am: Rebuild dependency.
5950 * Makefile.in: Rebuild.
5952 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5954 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5955 (elf_backend_copy_indirect_symbol): Map to the new function.
5957 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5959 * archive.c (normalize): Correct pointer comparison when checking
5961 (bfd_bsd_truncate_arname): Likewise.
5962 (bfd_gnu_truncate_arname): Likewise.
5964 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5966 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5967 sections elf_{text,data}_{section,symbol}.
5968 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5969 (_bfd_mips_elf_hide_symbol): New function.
5970 (elf_backend_hide_symbol): Map to the new function.
5971 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5972 definitions of mips_elf_{text,data}_{section,symbol}.
5973 (mips_elf_local_relocation_p): Try to find the direct symbol
5974 based on new check_forced argument.
5975 (mips_elf_calculate_relocation): Use new version of
5976 mips_elf_local_relocation_p.
5977 (mips_elf_relocate_section): Likewise.
5978 (_bfd_mips_elf_relocate_section): Likewise.
5979 (mips_elf_sort_hash_table): Only assert that have enough GOT
5981 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5982 entry if the relocation based on the new external argument.
5983 (mips_elf_create_dynamic_relocation): Assert that we have a
5984 section contents allocated where we can swap out the dynamic
5986 (mips_elf_calculate_relocation): Find the real hash-table entry
5987 correctly by using h->root.root.type. Only create a dynamic
5988 relocation entry if the symbol is defined in a shared library.
5989 Create an external GOT entry for the GOT16 relocation if the
5990 symbol was forced local.
5991 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5992 dynamic index if the symbol was forced local.
5994 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5996 * elf32-mips.c: Fix typos in comments.
5998 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6000 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6003 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6005 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6006 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6007 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6008 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6009 (bfd_elf32_m68hc11_vec): Likewise.
6010 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6011 Supports 68hc11 & 68hc12 at the same time.
6012 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6014 (bfd_elf32_m68hc11_vec): Likewise.
6015 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6016 * archures.c (bfd_m68hc12_arch): Define and register in global list
6017 (bfd_m68hc11_arch): Likewise.
6018 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6019 BFD_RELOC_M68HC11_3B): Define.
6020 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6021 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6023 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6025 * elf_bfd.h (struct elf_backend_data): Add info argument to
6026 elf_backend_hide_symbol.
6027 (_bfd_elf_link_hash_hide_symbol): Likewise.
6028 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6029 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6030 * elflink.h (elf_link_add_object_symbols): Likewise.
6031 (elf_link_assign_sym_version): Likewise.
6033 2000-06-18 H.J. Lu <hjl@gnu.org>
6035 * coff-i386.c (coff_i386_reloc): Don't return in case of
6036 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6037 Compensate PE relocations when linking with non-PE object
6038 files to generate a non-PE executable.
6040 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6042 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6043 GOT entries if we're doing a static link or -Bsymbolic link.
6045 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6047 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6048 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6050 (elf_link_output_relocs): Likewise.
6051 (elf_reloc_link_order): Likewise.
6053 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6055 * archures.c (enum bfd_architecture): #define constants for
6056 PowerPc and RS6000 machine numbers.
6057 * bfd-in2.h: Regenerate.
6058 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6059 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6060 and RS6000 machine numbers using #defined constants from
6062 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6063 machine numbers using #defined constants from archures.c. Add
6064 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6065 64-bit words in 620 entry.
6066 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6068 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6070 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6072 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6073 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6074 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6076 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6078 * bfd-in.h (bfd_family_coff): Define.
6079 * bfd-in2.h: Regenerate.
6080 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6081 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6082 instead of bfd_target_coff_flavour.
6083 * cofflink.c (_bfd_coff_final_link): Likewise.
6084 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6085 exclude XCOFF files.
6086 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6088 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6089 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6090 * xcofflink.c (XCOFF_XVECP): Delete.
6091 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6092 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6093 bfd_xcoff_record_link_assignment,
6094 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6095 check for bfd_target_xcoff_flavour.
6097 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6099 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6101 (read_hdr): New function.
6102 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6103 of trying to extract individual registers. Set abfd->arch_info
6104 to match the architecture that created the core file.
6105 (rs6000coff_get_section_contents): Delete.
6106 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6108 2000-06-14 H.J. Lu <hjl@gnu.org>
6110 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6113 2000-06-13 H.J. Lu <hjl@gnu.org>
6115 * configure: Regenerate.
6117 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6119 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6122 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6124 * configure.in (VERSION): Update to show this is the CVS mainline.
6126 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6128 * elf32-d10v.c: Include elf/d10v.h
6129 (enum reloc_type): Delete.
6130 * elf32-d30v.c: Include elf/d30v.h
6131 (enum reloc_type): Delete.
6133 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6134 * Makefile.in: Regenerate.
6136 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6137 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6138 move HOWTOs into elf_howto_table.
6139 (R_386_standard, R_386_ext_offset): Define.
6140 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6141 (elf_i386_reloc_type_lookup): Modify calculation of index into
6142 elf_howto_table since we've removed the padding.
6143 (elf_i386_info_to_howto_rel): Likewise.
6144 (elf_i386_relocate_section): Likewise.
6146 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6148 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6150 2000-06-05 H.J. Lu <hjl@gnu.org>
6152 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6153 an error when seeing an undefined symbol with hidden/internal
6154 attribute. It is handled in *_relocate_section ().
6156 2000-06-05 H.J. Lu <hjl@gnu.org>
6158 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6159 indirect symbol for the ELF_LINK_NON_ELF bit.
6160 (elf_link_output_extsym): Don't output the indirect symbol even
6161 if the ELF_LINK_NON_ELF bit is set.
6163 2000-06-01 J.T. Conklin <jtc@redback.com>
6165 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6166 (i[3456]86-*-netbsdaout*): New target.
6167 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6168 (i[3456]86-*-openbsd*): Likewise.
6170 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6172 * trad-core.c: From hpux-core.c, include <dirent.h> or
6173 <sys/ndir.h> when possible.
6175 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6177 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6178 definitions. We must not assume they are sorted in the file
6179 according to their index numbers.
6181 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6183 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6184 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6185 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6187 2000-05-30 Nick Clifton <nickc@cygnus.com>
6189 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6190 80960CA, 80960MC as valid machine names.
6192 2000-05-30 H.J. Lu <hjl@gnu.org>
6194 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6195 visibility bits if the symbol is undefined. Correctly handle
6196 weak undefined symbols with hidden and internal attributes.
6198 * elflink.h (elf_link_add_object_symbols): Always turn the
6199 symbol into local if it has the hidden or internal attribute.
6201 2000-05-29 Philip Blundell <philb@gnu.org>
6203 * ppcboot.c: Add packed attribute if compiling with GCC.
6205 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6207 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6209 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6211 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6212 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6213 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6216 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6218 * Makefile.am: Update dependencies with "make dep-am"
6219 * Makefile.in: Regenerate.
6221 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6222 bindtextdomain): Replace defines with those from intl/libgettext.h
6223 to quieten gcc warnings.
6225 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6227 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6229 * archive.c (normalize, bfd_bsd_truncate_arname,
6230 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6231 file names with backslashes.
6233 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6236 * sysdep.h: Include filenames.h.
6238 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6240 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6242 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6244 * elf64-sparc.c (sparc64_elf_relax_section): New.
6245 (sparc64_elf_relocate_section): Optimize tail call into branch always
6247 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6248 (elf32_sparc_relax_section): New.
6250 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6252 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6253 Remove unusued variables.
6254 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6255 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6256 previous fix, so that shared libs really don't influence targets
6257 extension mask and memory model.
6259 2000-05-23 H.J. Lu <hjl@gnu.org>
6261 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6262 h->root.other not h->other.
6263 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6265 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6267 2000-05-23 H.J. Lu <hjl@gnu.org>
6269 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6270 undefined symbol with the non-default visibility attributes.
6271 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6272 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6273 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6274 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6275 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6276 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6277 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6278 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6279 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6280 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6281 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6283 2000-05-22 Richard Henderson <rth@cygnus.com>
6285 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6286 PCREL22, PCREL64I. Zero size of special relocs.
6287 (elf64_ia64_reloc_type_lookup): Likewise.
6288 (USE_BRL, oor_brl, oor_ip): New.
6289 (elf64_ia64_relax_section): New.
6290 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6291 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6292 (elf64_ia64_relocate_section): Likewise.
6293 (bfd_elf64_bfd_relax_section): New.
6294 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6295 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6296 * bfd-in2.h, libbfd.h: Regenerate.
6298 2000-05-22 Nick Clifton <nickc@cygnus.com>
6300 * configure.in : Add peigen.lo to MIPS PE targets.
6301 * configure: Regenerate.
6303 2000-05-22 Momchil Velikov <velco@fadata.bg>
6305 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6306 only if it is known for both input and output bfds. Separate
6307 error message strings as in some languages, it may be necessary
6308 to change more than one place in the string to change between
6311 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6312 endianess checks, call _bfd_generic_verify_endian_match() instead.
6314 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6316 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6318 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6319 endianess before checking bfd flavours.
6321 2000-05-22 H.J. Lu <hjl@gnu.org>
6323 * elflink.h (elf_link_output_extsym): Clear the visibility
6324 field for symbols not defined locally.
6326 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6328 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6329 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6330 (hppa_rebuild_insn): Mask immediate bits here instead.
6331 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6333 2000-05-18 Momchil Velikov <velco@fadata.bg>
6335 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6336 relocs for an executable, ensure that they are virtual addresses.
6338 2000-05-18 Jeffrey A Law (law@cygnus.com)
6340 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6342 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6343 Rick Gorton <gorton@scrugs.lkg.dec.com>
6345 * elflink.h: Add emitrelocations support: when enabled, relocation
6346 information and relocation sections are put into final output
6347 executables. If the emitrelocations flag is set, do the following:
6348 (elf_bfd_final_link): Emit relocation sections.
6349 (elf_link_input_bfd): Compute relocation section contents.
6350 (elf_gc_sections): Don't clean relocation sections.
6352 2000-05-16 Catherine Moore <clm@cygnus.com>
6354 * som.c (som_decode_symclass): Recognize weak symbols.
6356 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6358 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6359 read idata section only from dataoff.
6360 (pe_print_edata): Correctly check for valid eat_member.
6362 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6364 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6366 2000-05-14 Philip Blundell <philb@gnu.org>
6368 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6370 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6372 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6374 * peigen.c (pe_print_idata): Look for .idata section and print
6375 info even if data directory has zero entries. Read idata section
6376 starting from dataoff, and adjust all data offsets to suit. Cast
6377 all bfd_vma vars to unsigned long before passing to fprintf.
6378 * peigen.c (pe_print_edata): Similarly, look for .edata section
6379 and print info even if data directory has zero entries. Cast
6380 all bfd_vma vars to unsigned long before passing to fprintf.
6382 From Szabolcs Szakacsits <szaka@F-Secure.com>
6383 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6384 directory size which may be bogus.
6385 * peigen.c (pe_print_edata): Similarly.
6387 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6389 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6391 (copy_private_bfd_data): Allow for space possibly taken up by elf
6392 headers when calculating segment physical address from lma.
6394 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6396 * versados.c (versados_scan): Init stringlen and pass_2_done.
6398 * trad-core.c (trad_unix_core_file_p): Return
6399 bfd_error_wrong_format rather than bfd_error_file_truncated.
6401 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6402 add_data_entry. DataDirectory virtual address is relative.
6403 (pe_print_idata): Account for relative DataDirectory virtual
6404 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6405 (pe_print_edata): Similarly.
6407 From Szabolcs Szakacsits <szaka@F-Secure.com>
6408 * peigen.c (dir_names): Add Delay Import Directory.
6409 (pe_print_idata): Always search for bfd section containing
6410 idata address rather than looking up section name. Print this
6411 section name rather than .idata.
6412 (pe_print_edata): Similarly. Also print some fields as %08lx.
6413 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6416 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6418 * xcoff.h: Rename to xcoff-target.h
6419 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6420 * coff-rs6000.c: Ditto.
6421 * coff64-rs6000.c: Ditto.
6422 * coff-pmac.c: Ditto.
6423 * Makefile.in: Regenerate.
6425 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6427 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6428 Change U802TOC64MAGIC to U803XTOCMAGIC.
6430 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6432 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6433 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6434 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6436 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6438 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6440 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6442 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6443 hidden and internal symbols.
6444 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6446 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6447 assign a PLT or GOT entry to symbols with hidden and
6448 internal visibility.
6450 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6452 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6454 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6456 2000-05-02 H.J. Lu <hjl@gnu.org>
6458 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6461 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6463 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6464 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6466 * Makefile.in: Regenerate.
6468 2000-05-01 Jim Wilson <wilson@cygnus.com>
6470 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6471 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6472 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6473 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6474 * Makefile.in: Rebuild.
6476 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6478 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6479 doesn't work very well.
6481 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6482 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6483 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6484 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6485 (elf_hppa_info_to_howto): Likewise.
6486 (elf_hppa_info_to_howto_rel): Likewise.
6487 (elf_hppa_reloc_type_lookup): Likewise.
6488 (elf_hppa_is_local_label_name): Likewise.
6489 (elf_hppa_fake_sections): Likewise.
6490 (elf_hppa_final_write_processing): Likewise.
6491 (elf_hppa_howto_table): Fully initialise all entries.
6492 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6493 (elf_hppa_info_to_howto): Likewise.
6494 (elf_hppa_info_to_howto_rel): Likewise.
6495 (elf_hppa_reloc_type_lookup): Likewise.
6496 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6497 elf_hppa_unmark_useless_dynamic_symbols,
6498 elf_hppa_remark_useless_dynamic_symbols,
6499 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6500 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6501 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6502 elf32-hppa.c mess is cleaned up.
6503 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6504 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6505 r_field then call hppa_field_adjust inline func with variable
6506 r_field arg, instead call hppa_field_adjust with fixed arg.
6507 In case R_PARISC_PCREL22F, don't set r_field.
6508 (elf_hppa_relocate_insn): Change args and return type to unsigned
6509 int. Call re_assemble_* funcs to do the work.
6511 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6514 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6516 (sign_extend): Mask first before sign extending.
6517 (low_sign_extend): Rewrite without condition expression.
6518 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6519 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6520 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6521 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6522 result as function return value rather than through pointer arg.
6523 Accept unsigned int args, and return unsigned int.
6524 (re_assemble_3): New. Combines function of dis_assemble_3 with
6525 re-assembly of opcode and immediate.
6526 (re_assemble_12): Likewise.
6527 (re_assemble_16): Likewise.
6528 (re_assemble_17): Likewise.
6529 (re_assemble_21): Likewise.
6530 (re_assemble_22): Likewise.
6531 (hppa_field_adjust): Rewrite and document, paying attention to
6532 size of types and signed/unsigned issues.
6533 (get_opcode): Shift before masking.
6534 (FDLW): Rename to FLDW.
6535 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6536 (hppa_rebuild_insn): Change args and return value to unsigned
6537 int. Make use of re_assemble_*. Correct case 11.
6539 * dep-in.sed: Handle ../opcodes/.
6540 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6541 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6542 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6543 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6544 elfarm-nabi.lo dependencies outside of auto-dependency area.
6545 Regenerate dependencies.
6546 * Makefile.in: Regenerate.
6548 * configure.in (TRAD_HEADER): Test non-null before
6550 * configure: Regenerate.
6552 * reloc.c: Fix mis-spelling in comment.
6554 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6556 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6557 * vms.c (vms_openr_next_archived_file): Return NULL.
6559 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6561 * coffcode.h Copy changes mistakenly done to libcoff.h in
6564 2000-04-29 Andreas Jaeger <aj@suse.de>
6566 * libbfd-in.h: Correctly check GCC version.
6567 * bfd-in.h: Likewise.
6568 * libhppa.h: Likewise.
6569 * libbfd.h: Regenerate.
6570 * bfd-in2.h: Regenerate.
6572 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6574 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6575 coffdu-rs6000.{lo,c}.
6576 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6578 * Makefile.in: Regenerate.
6579 * xcoff.h: New file.
6580 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6581 * coff-rs6000.c: Move all declarations and defines that are
6582 common to the xcoff backends into xcoff.h
6583 * coff64-rs6000.c: Ditto,
6585 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6587 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6588 _bfd_coff_force_symnames in strings and
6589 _bfd_coff_debug_string_prefix_length to their default values.
6590 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6592 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6594 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6595 _bfd_coff_force_symnames in strings and
6596 _bfd_coff_debug_string_prefix_length to their default values.
6598 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6600 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6601 Check local_got_refcounts before dereferencing.
6603 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6604 before deciding we don't need R_PPC_PLT32 relocation.
6605 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6608 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6610 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6612 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6613 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6614 (elf_i386_relocate_section): Allow for .plt to go missing.
6615 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6616 can use a relative reloc for got as elf_i386_relocate_section.
6617 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6619 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6621 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6623 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6625 * Makefile.am (coff64-rs6000.lo): New rule.
6626 * Makefile.in: Regenerate.
6627 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6628 xcoff_is_local_label_name, xcoff_rtype2howto,
6629 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6630 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6631 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6632 (NO_COFF_SYMBOLS): Define.
6633 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6634 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6636 (MINUS_ONE): New macro.
6637 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6639 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6640 coff_SWAP_aux_out): Map to the new functions.
6641 * coff64-rs6000.c: New file.
6642 * libcoff.h (bfd_coff_backend_data): Add new fields
6643 _bfd_coff_force_symnames_in_strings and
6644 _bfd_coff_debug_string_prefix_length.
6645 (bfd_coff_force_symnames_in_strings,
6646 bfd_coff_debug_string_prefix_length): New macros for above fields.
6647 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6648 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6649 of using coff_swap_sym_in directly.
6650 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6651 (coff_set_flags) Set magic for XCOFF64.
6652 (coff_compute_section_file_positions): Add symbol name length to
6653 string section length if bfd_coff_debug_string_prefix_length is
6655 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6656 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6657 using coff_swap_lineno_in directly.
6658 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6659 and _bfd_coff_debug_string_prefix_length fields.
6660 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6661 symbol names into strings table when
6662 bfd_coff_force_symnames_in_strings is true.
6663 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6664 SET_RELOC_VADDR): New macros.
6665 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6666 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6668 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6669 changes within RS6000COFF_C specific code.
6670 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6671 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6672 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6673 Extend existing hack on target name.
6674 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6676 * coff-tic54x.c (ticof): Keep up to date with new fields
6677 in bfd_coff_backend_data.
6678 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6679 targ_selvecs to include rs6000coff64_vec for rs6000.
6680 * configure.in: Add rs6000coff64_vec case.
6681 * cpu-powerpc.c: New bfd_arch_info_type.
6683 2000-04-24 Jeffrey A Law (law@cygnus.com)
6685 * config.bfd: Only disable elf32-hppa vectors, not all of the
6686 BSD and OSF configuration support. Provide (disabled) clauses
6688 * configure.in: Add clause for PA64 support.
6689 * configure: Rebuilt.
6691 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6692 (bfd_elf64_hppa_vec): Declare.
6694 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6695 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6696 (elf64-hppa.lo): Add dependencies.
6697 * Makefile.in: Rebuilt.
6699 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6701 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6703 * libhppa.h (dis_assemble_16): New function.
6704 (pa_arch): Added pa20w element.
6706 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6708 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6709 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6710 bfd_elf64_slurp_reloc_table.
6712 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6713 definitions to get external names.
6714 (elf_write_relocs): Renamed from write_relocs and make global.
6715 (elf_slurp_reloc_table): Make global.
6716 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6718 * archive.c (hpux_uid_gid_encode): New function.
6719 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6720 defined and the ID is greater than 99999.
6721 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6722 special uid/gid fields into 32 bit values.
6724 2000-04-21 Matthew Green <mrg@cygnus.com>
6726 * config.bfd: Add NetBSD/sparc64 support.
6728 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6729 David Mosberger <davidm@hpl.hp.com>
6730 Timothy Wall <twall@cygnus.com>
6731 Jim Wilson <wilson@cygnus.com>
6733 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6734 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6735 (BFD64_BACKENDS): Add elf64-ia64.lo.
6736 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6737 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6738 * Makefile.in: Rebuild.
6739 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6740 (bfd_ia64_arch): Declare.
6741 (bfd_archures_list): Add bfd_ia64_arch.
6742 * bfd-in2.h: Rebuild.
6743 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6744 * configure: Rebuild.
6745 * configure.host: (ia64-*-linux*): New host.
6746 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6747 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6748 * elf.c (prep_headers): Add bfd_arch_ia64.
6749 * libbfd.h: Rebuild.
6750 * reloc.c: Add IA-64 relocations.
6751 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6753 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6754 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6756 2000-04-21 Richard Henderson <rth@cygnus.com>
6758 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6759 contents when performing a partial link.
6760 (bfd_elf_d30v_reloc_21): Likewise.
6762 2000-04-20 H.J. Lu <hjl@gnu.org>
6764 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6765 patch to symbols defined by a shared object.
6766 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6768 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6771 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6772 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6774 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6776 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6777 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6778 (coff-ia64.lo): Add dependency.
6779 * Makefile.in: Regenerate.
6780 * coff-ia64.c: New file.
6781 * efi-app-ia32.c: Ditto.
6782 * efi-app-ia64.c: Ditto.
6783 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6784 (coff_set_flags): Ditto.
6785 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6786 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6787 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6788 * configure: Regenerate.
6789 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6790 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6791 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6792 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6793 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6794 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6795 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6796 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6797 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6798 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6799 (GET_PDATA_ENTRY): Ditto.
6800 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6801 data_start. Use above macros to read fields that are 64 bit wide for
6802 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6803 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6804 FileAlignment and SectionAlignment to minimum alignment if they
6806 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6807 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6808 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6809 Use above macros to write fields that are 64 bit wide for
6811 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6812 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6813 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6814 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6815 begin address, end address, and unwind info address only. Use
6816 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6818 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6819 HIGH3ADJ relocation names.
6820 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6821 * targets.c: Declare bfd_efi_app_ia32_vec and
6822 bfd_efi_app_ia64_vec.
6823 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6824 bfd_efi_app_ia64_vec.
6826 2000-04-17 Timothy Wall <twall@cygnus.com>
6828 * bfd-in2.h: Add prototypes for tic54x load page access.
6829 * bfd-in.h: Regenerate.
6830 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6831 in customized _set_arch_mach function.
6832 * coffcode.h (coff_set_alignment_hook): Set section load page if
6833 the appropriate macro is defined.
6834 (write_object_contents): Read section load page.
6836 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6838 * elf32-hppa.h: Update copyright date.
6840 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6841 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6843 * elf32-d30v.c (MAX32): Don't use LL suffix.
6844 (MIN32): Define in terms of MAX32.
6845 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6847 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6850 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6852 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6854 * dep-in.sed: Match space before file name, not after.
6855 * Makefile.am: Regenerate dependencies.
6856 * Makefile.in: Regenerate.
6858 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6859 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6860 extend without an if statement.
6862 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6864 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6866 * elf32-mips.c (gprel16_with_gp): Likewise.
6867 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6868 here using -0x40000, not (int)0xfffc0000.
6869 (elf32_hppa_size_of_stub): Likewise.
6871 2000-04-11 Timothy Wall <twall@cygnus.com>
6873 * coff-tic54x.c: Now builds with all targets.
6874 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6875 * Makefile.in: Regenerate.
6876 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6877 unitialized variable.
6879 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6881 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6882 --enable-build-warnings option.
6883 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6884 * Makefile.in, configure: Re-generate.
6886 2000-04-07 Nick Clifton <nickc@cygnus.com>
6888 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6889 BFD_RELOC_THUMB_PCREL_BLX.
6891 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6892 R_ARM_XPC25 and R_ARM_THM_PC22.
6894 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6895 R_ARM_XPC25 and R_ARM_THM_XPC22.
6896 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6897 R_ARM_[XPC25|THM_XPC22].
6899 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6900 elf/arm-oabi.h to elf/arm.h
6902 * Makefile.am: Fix dependency for elfarm-oabi.c
6903 * Makefile.in: Regenerate.
6905 * bfd-in2.h: Regenerate.
6906 * libbfd.h: Regenerate.
6908 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6910 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6911 and restore it on failure. Release newly allocated tdata on
6914 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6916 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6917 (decode_line_info): Set it. Report error if unit->line_offset is
6918 equal to or larger than it.
6920 2000-04-07 Timothy Wall <twall@cygnus.com>
6922 * targets.c: Added vecs for tic54x.
6923 * reloc.c: Added relocs for tic54x.
6924 * libbfd.h: Regenerated.
6925 * configure: Add TI COFF vecs for tic54x.
6926 * configure.in: Ditto.
6927 * config.bfd (targ_cpu): Recognize new tic54x target.
6928 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6929 * bfd-in2.h: Add tic54x target and relocations.
6930 * Makefile.am, Makefile.in: Add tic54x target.
6931 * archures.c (bfd_archures_list): Add tic54x target.
6932 * coff-tic54x.c: New.
6933 * cpu-tic54x.c: New.
6935 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6937 * elfcore.h (elf_core_file_p): call backend_object_p which
6938 thereby gets an opportunity to update the arch/machine type.
6940 2000-04-06 Timothy Wall <twall@cygnus.com>
6942 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6943 class. Handle SEC_CLINK and SEC_BLOCK flags.
6944 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6945 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6947 2000-04-06 Nick Clifton <nickc@cygnus.com>
6949 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6950 EF_INTERWORK if this is an unknown EABI.
6951 (elf32_arm_merge_private_bfd_data): Check EABI version
6952 numbers. Only check EF_xxx flags if the EABI version number
6954 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6955 if the EABI version number is unknown.
6956 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6957 if the EABI version number is unknown.
6959 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6961 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6962 BFD_RELOC_SH_LOOP_END.
6963 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6964 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6965 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6966 (sh_elf_reloc_loop): New function.
6967 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6969 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6970 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6971 * bfd-in2.h, libbfd.h: Regenerate.
6973 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6975 * po/bfd.pot: Regenerate.
6977 * Makefile.am: Remove extraneous mkdep comment.
6978 (MKDEP): Use gcc -MM rather than mkdep.
6979 (DEP): Quote when passing vars to sub-make. Add warning
6981 (DEP1): Rewrite for "gcc -MM".
6982 (CLEANFILES): Add DEP2.
6983 Update dependencies.
6984 * Makefile.in: Regenerate.
6986 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6988 * configure.in: Added corefile support for AIX 4.3. In particular,
6989 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6990 compiling rs6000-core.c.
6991 * configure: Regenerated.
6993 2000-04-03 H.J. Lu <hjl@gnu.org>
6995 * cache.c (bfd_open_file): Unlink the output file only if
6996 it has non-zero size.
6998 2000-04-01 Ken Block USG <block@zk3.dec.com>
7000 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7001 relative relocations for non-loaded sections in shared objects.
7002 (elf64_alpha_check_relocs): Similarly.
7004 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7006 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7007 BFD_RELOC_16 to switch for extended relocs.
7008 (MY_swap_ext_reloc_in): New.
7009 (MY_swap_ext_reloc_out): New.
7010 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7011 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7012 (NAME(aout,squirt_out_relocs)): Similarly use
7013 MY_swap_ext_reloc_out.
7014 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7016 2000-04-03 Kazu Hirata <kazu@hxi.com>
7018 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7019 the R_PCRWORD_B case.
7021 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7023 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7027 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7029 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7030 HOWTO references to bfd_elf_generic_reloc, that have
7031 partial_inplace == true, now use the new function. The function
7032 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7033 extends its fixes to the R_M32R_{16,24,32} relocs.
7034 The new logic in m32r_elf_lo16_reloc() has been removed, and
7035 it instead calls the new routine to obtain that functionality.
7037 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7039 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7040 elf32_avr_check_relocs, avr_final_link_relocate,
7041 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7042 elf32_avr_object_p): Add prototypes.
7043 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7044 (bfd_elf_avr_final_write_processing): Make static.
7046 2000-03-27 Denis Chertykov <denisc@overta.ru>
7048 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7049 * archures.c (bfd_architecture): Add AVR architecture.
7050 (bfd_archures_list): Add reference to AVR architecture info.
7051 * elf.c (prep_headers): Handle bfd_arch_avr.
7052 * reloc.c: Add various AVR relocation enums.
7053 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7055 * Makefile.am: Add support for AVR elf.
7056 * configure.in: Likewise.
7057 * config.bfd: Likewise.
7058 * Makefile.in: Regenerate.
7059 * configure: This too.
7060 * bfd-in2.h: And this.
7061 * libbfd.h: And this.
7063 2000-03-24 H.J. Lu <hjl@gnu.org>
7065 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7066 (elf64_alpha_find_reloc_at_ofs): Likewise.
7068 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7070 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7071 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7072 allowable range used to be -2**(n-1) to 2**n-1.
7073 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7074 "boolean overflow" with "bfd_reloc_status_type flag".
7076 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7078 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7080 2000-03-14 Kazu Hirata <kazu@hxi.com>
7082 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7083 of shrinks properly, including the last reloc.
7085 2000-03-13 Kazu Hirata <kazu@hxi.com>
7087 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7090 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7092 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7093 a format mismatch rather than an "error" from bfd_read such as
7094 bfd_error_file_truncated.
7096 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7098 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7099 sign-extension and big-endian compensation for
7100 R_MIPS_64 even in ld -r.
7102 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7104 * elf32-mips.c (mips_elf_next_relocation): Rename from
7105 mips_elf_next_lo16_relocation, and generalize to look
7106 for any relocation type.
7107 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7108 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7109 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7110 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7111 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7112 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7113 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7114 (mips_rtype_to_howto): Likewise.
7115 (mips_elf_calculate_relocation): Handle new relocs.
7116 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7117 are paired. The addend for R_MIPS_GNU_REL16_S2
7118 is shifted right two bits.
7120 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7122 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7123 comment, and ensure it doesn't happen again.
7124 (bfd_install_relocation): Same here.
7125 (_bfd_relocate_contents): Don't bother assigning unused signmask
7126 shift result. Fix typos in comments.
7127 Remove trailing whitespace throughout file.
7129 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7131 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7132 * bfd-in2.h: Rebuild.
7134 2000-03-06 Nick Clifton <nickc@cygnus.com>
7136 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7138 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7139 (SIZEOF_ILF_STRINGS): Redefine.
7140 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7141 relative reloc, as opposed to a section relative reloc.
7142 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7144 Add length of symbol's prefix to string pointer.
7145 Store a pointer to the symbol in the symbol pointer table.
7146 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7147 Initialise the symbol pointer table.
7148 Store the hint in the Hint/Name table.
7149 Make the jump reloc be symbol realtive, not section relative.
7150 Create an import symbol for imported code.
7152 2000-03-06 Catherine Moore <clm@cygnus.com>
7154 * elf.c (swap_out_syms): Check for null type_ptr.
7156 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7158 * aout-target.h (MY(write_object_contents)): Remove unused
7159 and unusable "#if CHOOSE_RELOC_SIZE".
7160 * pc532-mach.c (MY(write_object_contents)): Ditto.
7161 * netbsd.h (MY(write_object_contents)): Ditto.
7162 * hp300hpux.c (MY(write_object_contents)): Ditto.
7163 * freebsd.h (MY(write_object_contents)): Ditto.
7164 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7166 2000-02-29 H.J. Lu <hjl@gnu.org>
7168 * peicode.h (jtab): Make it static.
7170 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7171 defined and COFF_IMAGE_WITH_PE is not defined.
7172 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7173 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7175 2000-03-01 Nick Clifton <nickc@cygnus.com>
7177 * coff-arm.c (bfd_arm_process_before_allocation): Make
7178 'symndx' signed to prevent compile time warning.
7180 * coff-mcore.c: Remove unused prototype for pe_object_p.
7182 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7183 functions that are not used when COFF_IMAGE_WITH_PE is
7185 (struct sh_opcode): Change type of 'flags' field to unsigned
7186 long so that it can hold the USESAS flag.
7188 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7190 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7193 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7195 Remove unusued variables and code.
7196 (elf_backend_add_symbol_hook): Fix prototype.
7198 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7201 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7204 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7206 Remove unusued variables and code.
7207 (elf_backend_add_symbol_hook): Fix prototype.
7209 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7211 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7212 to unused function parameter.
7214 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7216 Use EMPTY_HOWTO to initialise empty howto slots.
7217 Remove unused variables.
7219 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7221 2000-03-01 H.J. Lu <hjl@gnu.org>
7223 * aoutx.h (aout_link_input_section_std): Pass "true" to
7224 the undefined_symbol callback.
7225 (aout_link_input_section_ext): Likewise.
7226 * bout.c (get_value): Likewise.
7227 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7228 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7230 (alpha_relocate_section): Likewise.
7231 * coff-arm.c (coff_arm_relocate_section): Likewise.
7232 * coff-i960.c (coff_i960_relocate_section): Likewise.
7233 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7234 * coff-mips.c (mips_relocate_section): Likewise.
7235 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7236 * coff-sh.c (sh_relocate_section): Likewise.
7237 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7238 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7239 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7240 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7241 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7242 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7243 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7244 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7245 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7246 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7247 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7248 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7249 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7250 * elflink.h (elf_link_output_extsym): Likewise.
7251 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7252 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7253 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7255 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7256 undefined_symbol callback when building shared library with
7257 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7259 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7260 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7261 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7262 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7263 (elf32_mips_get_relocated_section_content): Likewise.
7264 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7265 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7266 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7267 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7269 2000-02-28 Nick Clifton <nickc@cygnus.com>
7271 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7272 * Makefile.in: Regenerate.
7274 * configure.in: Add support for mips and sh pe vectors.
7275 * configure: regenerate.
7277 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7280 * targets.c: Add mips and sh pe vectors.
7282 * libpei.h (coff_final_link_postscript): Only define if not
7285 * coffcode.h: Add support for WinCE magic numbers.
7287 * peigen.c (pe_print_reloc): Update comment and rearrange
7288 appending of newline character.
7290 * peicode.h: Add support for Image Library Format.
7291 (pe_ILF_vars): Structure containing data used by ILF code.
7292 (pe_ILF_make_a_section): New function. Create a section based
7294 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7296 (pe_ILF_make_a_symbol): New function. Create a symbol based
7298 (pe_ILF_save_relocs): New function. Store the relocs created
7299 by pe_ILF_make_a_reloc in a section.
7300 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7302 (pe_ILF_object_p): New function. Return a bfd_target pointer
7304 (pe_bfd_object_p): If an ILF object is detected call
7305 pe_ILF_object_p on it.
7307 * coff-arm.c: Add support for WinCE relocs which are different
7308 from normal ARM COFF relocs.
7309 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7311 * coff-sh.c: Add support for sh-pe target.
7312 * pe-sh.c: New file. Support code for sh-pe target.
7313 * pei-sh.c: New file. Support code for sh-pe target.
7315 * pe-mips.c: New file. Support code for mips-pe target.
7316 * pei-mips.c: New file. Support code for mips-pe target.
7318 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7320 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7321 architecture if the object causing the bump is dynamic.
7322 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7323 and also don't it for memory ordering.
7324 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7326 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7328 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7329 calling bfd_get_section_size_before_reloc.
7330 (decode_line_info): Likewise.
7331 (_bfd_dwarf2_find_nearest_line): Likewise.
7333 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7335 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7336 name of the libtool directory.
7337 * Makefile.in: Rebuild.
7339 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7341 * som.c (SOM_HOWTO): Define.
7342 (som_hppa_howto_table): Use it.
7344 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7346 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7348 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7350 2000-02-24 Catherine Moore <clm@cygnus.com>
7352 * som.c (som_misc_symbol_info): Add field
7354 (som_bfd_derive_misc_symbol_info): Initialize
7356 (som_build_and_write_symbol_table): Keep track
7357 of secondary_def field.
7358 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7359 if secondary_def field is set.
7360 (som_bfd_ar_write_symbol_stuff): Initialize
7363 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7365 * dwarf2.c (read_address): Read 16-bits addresses.
7366 (parse_comp_unit): Accept addr_size == 2.
7368 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7370 * bfd-in.h: Update copyright date.
7372 2000-02-23 Linas Vepstas <linas@linas.org>
7374 * cpu-i370.c: New file.
7375 * elf32-i370.c: New file.
7376 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7377 (bfd_i370_arch): New.
7378 (bfd_archures_list): Add bfd_i370_arch.
7379 * elf.c (prep_headers): Add bfd_arch_i370.
7380 * Makefile.am: Add support for IBM 370 elf.
7381 * config.bfd: Likewise.
7382 * configure.in: Likewise.
7383 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7384 * reloc.c (bfd_reloc_code_type): Likewise.
7385 * targets.c: Likewise.
7387 * Makefile.in: Regenerate.
7388 * configure: Regenerate.
7389 * bfd-in2.h: Regenerate.
7391 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7393 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7394 invalid relocation types, and change them to R_386_NONE.
7396 2000-02-22 H.J. Lu <hjl@gnu.org>
7398 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7399 not defined, don't add a second ELF_VER_CHR.
7401 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7402 symbols converted to local symbols even when stripping all
7404 (elf_link_output_extsym): Process global symbols converted to
7405 local symbols even if they are being stripped.
7407 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7409 * archures.c (bfd_octets_per_byte): Return unsigned int.
7410 (bfd_arch_mach_octets_per_byte): Ditto.
7411 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7413 * section.c (bfd_get_section_size_before_reloc): Quell signed
7414 vs. unsigned comparison warning.
7415 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7416 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7417 change. What was I thinking?
7418 * bfd-in2.h: Regenerate.
7420 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7421 (elf_gc_sections): Same here.
7422 (elf_gc_common_finalize_got_offsets): And here.
7424 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7426 ELF HPPA doesn't work at present; remove it until it does.
7427 * config.bfd: Comment out setting targ_defvec to
7429 * Makefile.am: Rebuild dependencies.
7430 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7431 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7432 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7433 * Makefile.in: Rebuild.
7434 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7436 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7438 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7439 is no bfd_free(). Revert bfd_free part of previous change.
7441 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7443 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7445 (coff_compute_section_file_positions): Use bfd_free to pair
7447 (coff_write_object_contents): Likewise.
7449 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7450 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7452 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7454 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7455 (xcoff_ar_file_hdr_big): New structure.
7456 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7457 (xcoff_ar_hdr_big): New structure.
7458 (SIZEOF_AR_HDR_BIG): New macro.
7459 (xcoff_big_format_p): New macro.
7460 (xcoff_ardata_big): New macro.
7461 (arch_xhdr_big): New macro.
7462 (xcoff_slurp_armap): Handle large archives.
7463 (xcoff_archive_p): Detect large archives.
7464 (xcoff_read_ar_hdr): Handle large archives.
7465 (xcoff_openr_next_archived_file): Handle large archives.
7466 (xcoff_generic_stat_arch_elt): Handle large archives.
7467 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7468 (xcoff_write_armap_big): New function.
7469 (xcoff_write_armap): New function, dispatch to _old or _big.
7470 (xcoff_write_archive_contents_old): Rename from
7471 xcoff_write_archive_contents.
7472 (xcoff_write_archive_contents_big): New function.
7473 (xcoff_write_archive_contents): New function, dispatch to _old or
7476 2000-02-18 Richard Henderson <rth@cygnus.com>
7478 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7479 and hide_symbol members.
7480 (elf_link_hash_copy_indirect): Remove.
7481 (elf_link_hash_hide_symbol): Remove.
7482 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7483 and elf_backend_hide_symbol.
7484 (_bfd_elf_link_hash_copy_indirect): Declare.
7485 (_bfd_elf_link_hash_hide_symbol): Declare.
7486 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7487 (_bfd_elf_link_hash_hide_symbol): Likewise.
7488 (_bfd_elf_link_hash_table_init): Don't init killed members.
7489 * elflink.h (elf_link_add_object_symbols): Use the bed function
7490 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7491 (elf_link_assign_sym_version): Likewise.
7492 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7493 (elf_backend_hide_symbol): Likewise.
7494 (elfNN_bed): Update for new members.
7496 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7498 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7499 STACK_END_ADDR): Define for new core file format.
7500 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7501 for handling the vagaries of the various core file structures used
7502 by AIX over the years.
7503 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7504 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7505 core_dumpx structure.
7507 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7509 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7510 (bfd_mach_sh3_dsp): Likewise.
7511 (bfd_mach_sh4): Reinstate.
7512 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7513 * bfd-in2.h: Regenerate.
7514 * coff-sh.c (struct sh_opcode): flags is no longer short.
7515 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7516 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7517 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7518 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7519 (sh_opcodes): No longer const.
7520 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7521 (sh_insn_uses_reg): Check for USESAS and USESR8.
7522 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7523 (_bfd_sh_align_load_span): Return early for SH4.
7524 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7525 Take into account that field b of a parallel processing insn
7526 could be mistaken for a separate insn.
7527 * cpu-sh.c (arch_info_struct): New array elements for
7528 sh2, sh-dsp and sh3-dsp.
7529 Reinstate element for sh4.
7530 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7531 (SH4_NEXT): Reinstate.
7532 (SH3_NEXT, SH3E_NEXT): Adjust.
7533 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7534 * elf32-sh.c (sh_elf_set_private_flags): New function.
7535 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7536 (sh_elf_merge_private_data): New function.
7537 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7538 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7539 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7540 sh_elf_merge_private_data.
7542 2000-02-13 Richard Henderson <rth@cygnus.com>
7544 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7545 hide_symbol members.
7546 (elf_link_hash_copy_indirect): New.
7547 (elf_link_hash_hide_symbol): New.
7548 * elflink.h (elf_link_add_object_symbols): Break out copy from
7549 indirect new new symbol to elf.c.
7550 (elf_link_assign_sym_version): Break out privatization of
7551 non-exported symbol to elf.c.
7552 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7553 (_bfd_elf_link_hash_hide_symbol): New.
7554 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7556 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7558 * section.c (_bfd_strip_section_from_output): Add info parameter.
7559 If it passed as non-NULL, use it to check whether any input BFD
7560 has an input section which uses this output section. Change all
7562 * bfd-in2.h: Rebuild.
7564 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7565 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7567 * bfd-in2.h: Rebuild.
7569 2000-02-10 Timothy Wall <twall@cygnus.com>
7571 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7572 allow final modifications of swapped-in symbol.
7573 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7574 * coffcode.h (coff_write_relocs): Use macro
7575 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7576 symbol index should be set to -1.
7578 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7580 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7581 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7582 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7583 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7584 sh_insns_uses_or_sets_freg): New functions.
7585 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7586 * (sh_insns_conflict): Use new functions and new macros to
7587 detect conflicts when two instructions both set same integer registers,
7588 both set same fp register, and both set special register.
7590 2000-02-09 Timothy Wall <twall@cygnus.com>
7592 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7593 swapping in sections, so that the swapping routines have access to
7596 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7598 * coff-go32.c: Update comment. Update copyright.
7600 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7602 * syms.c (bfd_decode_symclass)
7603 Two new class characters were added - 'V' and 'v'. The
7604 meaning of 'W' is now restricted to just weak non-object
7605 symbols. This allows differentiation between, for example,
7606 weak functions vs weak objects. nm for example now dumps:
7608 'w' = weak unresolved
7609 'V' = weak global object
7610 'v' = weak unresolved object
7612 (bfd_is_undefined_symclass): New function. Return true if the
7613 given symbol class represents and undefined/unresolved symbol.
7615 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7618 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7620 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7621 STT_ARM_16BIT flag set, but it is not attached to a data object
7622 return STT_ARM_16BIT so that it will be treated as code by the
7625 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7627 * coff-i386.c (i3coff_object_p): Remove prototype.
7630 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7631 to name. Update copyright.
7633 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7634 assignment to avoid warning. Update copyright.
7636 2000-01-24 Robert Lipe (robertl@sco.com)
7638 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7639 instead of using GNU C extension.
7641 2000-01-21 Nick Clifton <nickc@cygnus.com>
7643 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7644 amount from a bfd_in_memory structure.
7645 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7648 2000-01-14 Nick Clifton <nickc@cygnus.com>
7650 * linker.c (default_indirect_link_order): oops - fix incorrectly
7651 applied patch from Tim Wall.
7653 2000-01-13 Timothy Wall (twall@tiac.net>
7655 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7656 = scnhsz, filhsz, relsz, aoutsz, etc)
7658 * coffswap.h: Ditto.
7660 2000-01-13 Nick Clifton <nickc@cygnus.com>
7662 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7663 interwork thumb to arm stub.
7665 2000-01-13 Timothy Wall (twall@tiac.net>
7667 * archures.c (bfd_octets_per_byte): New function: Return
7669 (bfd_arch_mach_octets_per_byte): New function: Return target
7672 * section.c: Distinguish between octets and bytes for usage of
7673 _cooked_size, _raw_size, and output_offset. Clarify
7674 description of bfd_set_section_contents.
7676 * bfd-in2.h: Regenerate.
7678 * coffgen.c: Indicate that the offset parameter is in bytes, not
7681 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7682 where appropriate to get the octet offset when calling
7683 bfd_set_section_contents.
7684 (bfd_coff_reloc_link_order): Ditto.
7686 * linker.c (bfd_generic_reloc_link_order): Ditto.
7687 (_bfd_default_link_order): Ditto.
7689 * reloc.c (bfd_perform_relocation): Distinguish between octets
7690 and bytes. Use octets when indexing into octet data; use bytes
7691 when calculating target addresses.
7692 (bfd_install_relocation): Ditto.
7694 * srec.c (srec_write_section): Ditto.
7696 2000-01-13 Nick Clifton <nickc@cygnus.com>
7698 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7699 3 to 2. This allows 4 byte sized sections, which is necessary for
7700 dlltool to build functioning DLLs.
7702 2000-01-10 Philip Blundell <pb@futuretv.com>
7704 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7705 (arm*-*-conix*): New target.
7707 2000-01-10 Egor Duda <deo@logos-m.ru>
7709 * config.bfd: Include elf32_i386 vector to target list for cygwin
7712 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7713 * configure.in: Test for structure win32_pstatus_t in
7715 * configure: Regenerate.
7717 * elf.c (elfcore_grok_win32pstatus): New function: process
7718 win32_pstatus_t notes in elf core file.
7719 (elfcore_grok_note): Detect win32_pstatus notes.
7721 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7723 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7725 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7726 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7728 For older changes see ChangeLog-9899
7734 version-control: never