1 2001-09-26 Alan Modra <amodra@bigpond.net.au>
3 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
4 (elf_backend_copy_indirect_symbol): Define.
5 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
6 (struct elf_i386_link_hash_table): Likewise.
7 (link_hash_newfunc): Get rid of unnecessary casts.
8 (elf_i386_link_hash_table_create): Likewise.
9 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
10 Don't test input section SEC_READONLY here to try to avoid copy
11 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
12 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
13 here to properly test whether we need copy relocs. Do so for weak
16 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
17 (elf_backend_copy_indirect_symbol): Define.
18 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
19 (stub_hash_newfunc): Get rid of unnecessary casts.
20 (hppa_link_hash_newfunc): Likewise.
21 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
22 Don't test input section SEC_READONLY here to try to avoid copy
23 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
24 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
25 here to properly test whether we need copy relocs. Do so for weak
28 2001-09-26 Alan Modra <amodra@bigpond.net.au>
30 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
31 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
32 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
34 2001-09-25 Jakub Jelinek <jakub@redhat.com>
36 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
39 2001-09-25 H.J. Lu <hjl@gnu.org>
41 * bfd-in2.h: Regenerated.
43 2001-09-25 Alan Modra <amodra@bigpond.net.au>
45 * elf32-i386.c: Add comment re linker function names and ordering.
46 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
47 (elf_i386_grok_prstatus): Move before linker functions.
48 (elf_i386_grok_psinfo): Likewise.
49 (elf_i386_fake_sections): Move so that functions are ordered.
50 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
52 2001-09-25 Alan Modra <amodra@bigpond.net.au>
54 * elf32-hppa.c: Rename all occurrences of "hplink" to "htab"
57 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
58 code handling this option.
59 (LONG_BRANCH_VIA_PLT): Likewise.
60 (RELATIVE_DYNRELOCS): Define as zero.
61 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
62 "pc_count" fields. Remove "section" field.
63 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
64 (elf32_hppa_check_relocs): Don't allocate space for dynamic
65 relocs here. Instead, record all needed dynamic relocs via
66 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
68 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
69 (allocate_plt_and_got_and_discard_relocs): Rename to
70 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
71 (readonly_dynrelocs): New function.
72 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
73 Call readonly_dynrelocs to determine need for DT_TEXTREL.
74 Rename "i" to "ibfd". Allocate space for local dyn relocs.
75 (elf32_hppa_relocate_section): Make use of cached sreloc.
76 (elf32_hppa_reloc_type_class): New function.
77 (elf_backend_reloc_type_class): Define.
79 2001-09-25 Alan Modra <amodra@bigpond.net.au>
81 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
83 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
84 "pc_count" fields. Remove "section" field.
85 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
86 allocate space for dynamic relocs here. Instead, record all
87 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
88 pointer to "sreloc" section in elf_section_data.
89 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
90 (allocate_plt_and_got_and_discard_relocs): Rename to
91 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
92 (readonly_dynrelocs): New function.
93 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
94 Rename "i" to "ibfd". Allocate space for local dyn relocs.
95 (elf_i386_relocate_section): Make use of cached sreloc.
97 2001-09-24 Alan Modra <amodra@bigpond.net.au>
99 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
100 reloc rather than just the type.
101 (_bfd_elf_reloc_type_class): Likewise.
102 * elf.c (_bfd_elf_reloc_type_class): Likewise.
103 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
104 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
105 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
106 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
107 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
108 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
109 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
110 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
111 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
112 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
113 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
114 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
115 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
116 * elflink.h: Formatting fixes.
117 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
118 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
119 o->contents to PTR. Update call to elf_backend_reloc_type_class.
121 2001-09-22 John Reiser <jreiser@BitWagon.com>
123 * elfcode.h (elf_object_p): Allow for no section header at all in
124 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
126 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
128 * elfxx-ia64.c: Fix compile time warning messages.
129 * coff-mcore.c: Fix compile time warning messages.
130 * coff-ppc.c: Fix compile time warning messages.
131 * coffcode.h: Fix compile time warning messages.
132 * elf32-mips.c: Fix compile time warning messages.
133 * elf64-alpha.c: Fix compile time warning messages.
134 * libbfd.c: Fix compile time warning messages.
135 * bfd-in2.h: Regenerate.
137 2001-09-21 Alan Modra <amodra@bigpond.net.au>
139 * Makefile.am: Run "make dep-am".
140 * Makefile.in: Regenerate.
142 * aoutx.h: Formatting fixes.
143 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
145 * linker.c: Replace bfd_get_filename with bfd_archive_filename
148 2001-09-21 Alan Modra <amodra@bigpond.net.au>
150 * bfd.c (bfd_archive_filename): New function.
151 * bfd-in2.h: Regenerate.
152 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
153 in error messages where the bfd is an input bfd.
154 * aout-cris.c: Likewise.
155 * coff-arm.c: Likewise.
156 * coff-mcore.c: Likewise.
157 * coff-ppc.c: Likewise.
158 * coff-rs6000.c: Likewise.
159 * coff-sh.c: Likewise.
160 * coff-tic54x.c: Likewise.
161 * coff-tic80.c: Likewise.
162 * coff64-rs6000.c: Likewise.
163 * coffcode.h: Likewise.
164 * coffgen.c: Likewise.
165 * cofflink.c: Likewise.
166 * ecofflink.c: Likewise.
167 * elf-hppa.h: Likewise.
169 * elf32-arm.h: Likewise.
170 * elf32-cris.c: Likewise.
171 * elf32-gen.c: Likewise.
172 * elf32-hppa.c: Likewise.
173 * elf32-i370.c: Likewise.
174 * elf32-i386.c: Likewise.
175 * elf32-m32r.c: Likewise.
176 * elf32-mcore.c: Likewise.
177 * elf32-mips.c: Likewise.
178 * elf32-ppc.c: Likewise.
179 * elf32-s390.c: Likewise.
180 * elf32-sh.c: Likewise.
181 * elf32-sparc.c: Likewise.
182 * elf32-v850.c: Likewise.
183 * elf64-alpha.c: Likewise.
184 * elf64-gen.c: Likewise.
185 * elf64-ppc.c: Likewise.
186 * elf64-s390.c: Likewise.
187 * elf64-sparc.c: Likewise.
188 * elf64-x86-64.c: Likewise.
189 * elflink.h: Likewise.
190 * elfxx-ia64.c: Likewise.
193 * libbfd.c: Likewise.
195 * pe-mips.c: Likewise.
196 * peicode.h: Likewise.
198 * xcofflink.c: Likewise.
200 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
202 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
205 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
208 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
209 Consolidate error messages, and split long messages to two lines.
211 2001-09-20 John Reiser <jreiser@BitWagon.com>
213 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
214 and info->allow_shlib_undefined.
215 * elf32-cris.c: Likewise.
216 * elf32-hppa.c: Likewise.
217 * elf32-m68k.c: Likewise.
218 * elf32-mips.c: Likewise.
219 * elf32-ppc.c: Likewise.
220 * elf32-s390.c: Likewise.
221 * elf32-sh.c: Likewise.
222 * elf32-sparc.c: Likewise.
223 * elf64-alpha.c: Likewise.
224 * elf64-hppa.c: Likewise.
225 * elf64-ppc.c: Likewise.
226 * elf64-s390.c: Likewise.
227 * elf64-sparc.c: Likewise.
228 * elf64-x86-64.c: Likewise.
229 * elfxx-ia64.c: Likewise.
231 2001-09-18 Bruno Haible <haible@clisp.cons.org>
233 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
234 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
235 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
236 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
237 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
238 (bfd_default_scan): Use ISDIGIT instead of isdigit.
239 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
240 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
241 isxdigit/isdigit/islower.
242 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
243 (mangle_name): Use ISALNUM instead of isalnum.
244 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
245 (scan): Use ISDIGIT instead of isdigit.
246 * hosts/alphavms.h: Don't include <ctype.h>.
247 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
248 (ieee_object_p): Use TOUPPER instead of toupper.
249 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
250 (ihex_bad_byte): Use ISPRINT instead of isprint.
251 * merge.c: Don't include <ctype.h>.
252 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
253 (oasys_write_sections): Use ISDIGIT instead of isdigit.
254 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
255 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
256 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
257 (mangle_name): Use ISALNUM instead of isalnum.
258 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
259 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
260 isupper/islower/isdigit.
261 (som_decode_symclass): Use TOUPPER instead of toupper.
262 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
263 (srec_bad_byte): Use ISPRINT instead of isprint.
264 (srec_scan): Use ISSPACE instead of isspace.
265 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
266 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
267 * syms.c: Include "safe-ctype.h"
268 (islower, toupper): Remove macro definitions.
269 (bfd_decode_symclass): Use TOUPPER instead of toupper.
270 * vms-gsd.c: Don't include <ctype.h>.
271 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
272 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
274 * vms-tir.c: Don't include <ctype.h>.
276 2001-09-18 Alan Modra <amodra@bigpond.net.au>
278 * libbfd.c (bfd_bread): New function replacing bfd_read without
279 redundant params. Allow reads up to (size_t) -2 in length.
280 (bfd_bwrite): Similarly for bfd_write.
281 (real_read): Return a size_t.
282 (bfd_read): Call bfd_bread.
283 (bfd_write): Call bfd_bwrite.
284 (warn_deprecated): New function to annoy everybody.
285 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
286 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
287 (bfd_read, bfd_write): Define as macro.
288 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
289 likewise for bfd_write. Ensure function args are correct size by
290 using casts or local vars. In some cases, remove unnecessary
291 casts. Formatting fixes, in some cases removing a large expression
292 from function args by using a local var. Replace CONST with const.
293 Modify variable types to avoid warings. Use casts to avoid
294 warnings when using negative numbers in unsigned expressions.
295 * aout-adobe.c: Likewise.
296 * aout-arm.c: Likewise.
297 * aout-cris.c: Likewise.
298 * aout-encap.c: Likewise.
299 * aout-ns32k.c: Likewise.
300 * aout-target.h: Likewise.
301 * aout-tic30.c: Likewise.
302 * aoutf1.h: Likewise.
304 * archive.c: Likewise.
305 * archures.c: Likewise.
306 * bfd-in.h: Likewise.
308 * binary.c: Likewise.
311 * cisco-core.c: Likewise.
312 * coff-a29k.c: Likewise.
313 * coff-alpha.c: Likewise.
314 * coff-arm.c: Likewise.
315 * coff-h8300.c: Likewise.
316 * coff-h8500.c: Likewise.
317 * coff-i386.c: Likewise.
318 * coff-i860.c: Likewise.
319 * coff-i960.c: Likewise.
320 * coff-ia64.c: Likewise.
321 * coff-m68k.c: Likewise.
322 * coff-m88k.c: Likewise.
323 * coff-mcore.c: Likewise.
324 * coff-mips.c: Likewise.
325 * coff-ppc.c: Likewise.
326 * coff-rs6000.c: Likewise.
327 * coff-sh.c: Likewise.
328 * coff-sparc.c: Likewise.
329 * coff-stgo32.c: Likewise.
330 * coff-tic30.c: Likewise.
331 * coff-tic54x.c: Likewise.
332 * coff-tic80.c: Likewise.
333 * coff-w65.c: Likewise.
334 * coff-z8k.c: Likewise.
335 * coff64-rs6000.c: Likewise.
336 * coffcode.h: Likewise.
337 * coffgen.c: Likewise.
338 * cofflink.c: Likewise.
339 * coffswap.h: Likewise.
340 * corefile.c: Likewise.
341 * cpu-arc.c: Likewise.
342 * cpu-h8300.c: Likewise.
343 * cpu-h8500.c: Likewise.
344 * cpu-i960.c: Likewise.
345 * cpu-ia64-opc.c: Likewise.
346 * cpu-ns32k.c: Likewise.
347 * cpu-pdp11.c: Likewise.
348 * cpu-pj.c: Likewise.
349 * cpu-sh.c: Likewise.
350 * cpu-w65.c: Likewise.
351 * cpu-z8k.c: Likewise.
352 * dwarf1.c: Likewise.
353 * dwarf2.c: Likewise.
355 * ecofflink.c: Likewise.
356 * ecoffswap.h: Likewise.
357 * elf-bfd.h: Likewise.
358 * elf-hppa.h: Likewise.
359 * elf-m10200.c: Likewise.
360 * elf-m10300.c: Likewise.
362 * elf32-arc.c: Likewise.
363 * elf32-arm.h: Likewise.
364 * elf32-avr.c: Likewise.
365 * elf32-cris.c: Likewise.
366 * elf32-fr30.c: Likewise.
367 * elf32-gen.c: Likewise.
368 * elf32-h8300.c: Likewise.
369 * elf32-hppa.c: Likewise.
370 * elf32-i370.c: Likewise.
371 * elf32-i386.c: Likewise.
372 * elf32-i860.c: Likewise.
373 * elf32-m32r.c: Likewise.
374 * elf32-m68k.c: Likewise.
375 * elf32-mcore.c: Likewise.
376 * elf32-mips.c: Likewise.
377 * elf32-openrisc.c: Likewise.
378 * elf32-pj.c: Likewise.
379 * elf32-ppc.c: Likewise.
380 * elf32-s390.c: Likewise.
381 * elf32-sh-lin.c: Likewise.
382 * elf32-sh.c: Likewise.
383 * elf32-sparc.c: Likewise.
384 * elf32-v850.c: Likewise.
385 * elf64-alpha.c: Likewise.
386 * elf64-hppa.c: Likewise.
387 * elf64-mips.c: Likewise.
388 * elf64-ppc.c: Likewise.
389 * elf64-s390.c: Likewise.
390 * elf64-sparc.c: Likewise.
391 * elf64-x86-64.c: Likewise.
392 * elfarm-nabi.c: Likewise.
393 * elfcode.h: Likewise.
394 * elfcore.h: Likewise.
395 * elflink.c: Likewise.
396 * elflink.h: Likewise.
397 * elfxx-ia64.c: Likewise.
398 * elfxx-target.h: Likewise.
399 * format.c: Likewise.
401 * hp300hpux.c: Likewise.
402 * hppabsd-core.c: Likewise.
403 * hpux-core.c: Likewise.
404 * i386aout.c: Likewise.
405 * i386dynix.c: Likewise.
406 * i386linux.c: Likewise.
407 * i386lynx.c: Likewise.
408 * i386mach3.c: Likewise.
409 * i386msdos.c: Likewise.
410 * i386os9k.c: Likewise.
413 * irix-core.c: Likewise.
414 * libaout.h: Likewise.
415 * libbfd-in.h: Likewise.
416 * libbfd.c: Likewise.
417 * libcoff-in.h: Likewise.
418 * libecoff.h: Likewise.
419 * libieee.h: Likewise.
420 * libnlm.h: Likewise.
421 * libpei.h: Likewise.
422 * libxcoff.h: Likewise.
423 * linker.c: Likewise.
424 * lynx-core.c: Likewise.
425 * m68klinux.c: Likewise.
427 * mipsbsd.c: Likewise.
428 * netbsd-core.c: Likewise.
430 * nlm32-alpha.c: Likewise.
431 * nlm32-i386.c: Likewise.
432 * nlm32-ppc.c: Likewise.
433 * nlm32-sparc.c: Likewise.
434 * nlmcode.h: Likewise.
435 * nlmswap.h: Likewise.
438 * opncls.c: Likewise.
439 * osf-core.c: Likewise.
440 * pc532-mach.c: Likewise.
442 * pe-mips.c: Likewise.
443 * peXXigen.c: Likewise.
444 * peicode.h: Likewise.
445 * ppcboot.c: Likewise.
446 * ptrace-core.c: Likewise.
448 * reloc16.c: Likewise.
449 * riscix.c: Likewise.
450 * rs6000-core.c: Likewise.
451 * sco5-core.c: Likewise.
452 * section.c: Likewise.
454 * sparclinux.c: Likewise.
455 * sparclynx.c: Likewise.
460 * targets.c: Likewise.
461 * tekhex.c: Likewise.
462 * trad-core.c: Likewise.
463 * versados.c: Likewise.
464 * vms-gsd.c: Likewise.
465 * vms-hdr.c: Likewise.
466 * vms-misc.c: Likewise.
467 * vms-tir.c: Likewise.
470 * xcofflink.c: Likewise.
471 * bfd-in2.h: Regenerate.
472 * libbfd.h: Regenerate.
473 * libcoff.h: Regenerate.
475 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
476 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
478 (bfd_tell): Return a ufile_ptr.
479 * libbfd.c (bfd_tell): Likewise.
480 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
482 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
483 * aoutf1.h: Likewise.
485 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
486 larger than unsigned long can represent.
488 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
489 size overflows size_t.
490 (bfd_realloc): Likewise.
491 (bfd_zmalloc): Likewise.
492 * opncls.c (bfd_alloc): Likewise.
493 (bfd_zalloc): Likewise.
494 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
495 (bfd_alloc, bfd_zalloc): Update.
497 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
499 (bfd_get_signed_8): Likewise.
500 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
501 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
502 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
503 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
504 * libaout.h: Likewise define and use here.
505 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
506 * aout-arm.c: Likewise.
507 * aout-encap.c: Likewise.
508 * aout-ns32k.c: Likewise.
509 * aout-tic30.c: Likewise.
510 * aoutf1.h: Likewise.
513 * coff-alpha.c: Likewise.
514 * coff-h8300.c: Likewise.
515 * coff-h8500.c: Likewise.
516 * coff-i960.c: Likewise.
517 * coff-ia64.c: Likewise.
518 * coff-m88k.c: Likewise.
519 * coff-mips.c: Likewise.
520 * coff-ppc.c: Likewise.
521 * coff-rs6000.c: Likewise.
522 * coff-sh.c: Likewise.
523 * coff-sparc.c: Likewise.
524 * coff-stgo32.c: Likewise.
525 * coff-tic30.c: Likewise.
526 * coff-tic80.c: Likewise.
527 * coff-w65.c: Likewise.
528 * coff-z8k.c: Likewise.
529 * coff64-rs6000.c: Likewise.
530 * coffgen.c: Likewise.
531 * cofflink.c: Likewise.
532 * coffswap.h: Likewise.
534 * ecoffswap.h: Likewise.
536 * elf32-mips.c: Likewise.
537 * elf64-mips.c: Likewise.
538 * hp300hpux.c: Likewise.
539 * i386dynix.c: Likewise.
540 * i386lynx.c: Likewise.
541 * i386msdos.c: Likewise.
542 * i386os9k.c: Likewise.
543 * libpei.h: Likewise.
544 * nlm32-alpha.c: Likewise.
545 * nlm32-i386.c: Likewise.
546 * nlm32-ppc.c: Likewise.
547 * nlmcode.h: Likewise.
548 * nlmswap.h: Likewise.
551 * pe-mips.c: Likewise.
552 * peXXigen.c: Likewise.
553 * peicode.h: Likewise.
554 * riscix.c: Likewise.
556 * xcofflink.c: Likewise.
557 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
558 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
559 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
560 equivalent H_PUT_* macro instead.
561 (GETWORD, GETHALF, GETBYTE): Similarly.
562 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
563 (GETWORD, GETHALF, GETBYTE): Likewise.
564 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
566 * bfd-in.h (struct orl): Change "pos" to a union.
567 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
568 (bsd_write_armap): Here too.
569 (coff_write_armap): And here.
570 * coff-rs6000.c (xcoff_write_armap_old): And here.
571 (xcoff_write_one_armap_big): And here.
572 (xcoff_write_armap_big): And here.
573 * ecoff.c (_bfd_ecoff_write_armap): And here.
574 * elf64-mips.c (mips_elf64_write_armap): And here.
576 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
577 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
578 * elf32-h8300.c (elf32_h8_mach): Likewise.
579 * elf32-mips.c (elf_mips_mach): Likewise.
580 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
582 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
584 (aix386_core_vec): Typo fix.
586 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
587 etc. to avoid redefined macro warning.
588 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
589 (MY(fix_pcrel_26)): Likewise.
590 * aout-ns32k.c (MY(put_reloc)): Likewise.
591 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
592 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
593 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
595 * aout-encap.c: Include "file", not <file> for binutils headers.
596 (encap_object_p): Half baked attempt to fix compile errors in
597 code dealing with "magic".
599 * aout-ns32k.c: Include "file", not <file> for binutils headers.
600 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
601 bfd_vma's rather than longs.
602 * cpu-ns32k.c (ns32k_sign_extend): Delete.
603 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
604 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
606 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
607 Use unsigned comparisons.
608 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
609 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
610 (_bfd_do_ns32k_reloc_contents): Likewise.
611 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
612 (_bfd_ns32k_get_immediate): Likewise.
613 (_bfd_ns32k_put_displacement): Likewise.
614 (_bfd_ns32k_put_immediate): Likewise.
615 (bfd_reloc_status_type): Likewise.
617 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
619 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
620 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
621 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
623 (record_toc): Use a bfd_signed_vma for our_toc_offset.
624 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
625 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
627 (_bfd_elfcore_strndup): Likewise for "dup".
628 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
629 "name" to avoid shadowing.
630 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
632 * elf32-i386.c (elf_i386_relocate_section): Likewise.
633 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
635 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
637 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
639 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
641 (elf_link_input_bfd): Likewise.
642 (elf_bfd_final_link): Remove duplicate innermost "off" var.
643 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
644 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
646 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
647 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
648 (sunos_write_dynamic_symbol): Remove unused vars.
649 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
650 innermost "directory_name" and "file_name" vars.
651 * tekhex.c (first_phase): Rename local var "type" to "stype".
652 (tekhex_write_object_contents): Rename innermost "s" to "sym".
653 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
654 doing comparison at caller.
655 (vms_esecflag_by_name): Likewise.
656 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
657 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
658 (xcoff_write_global_symbol): Rename "p" param to "inf".
660 * cisco-core.c: Add missing prototypes.
661 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
662 (cisco_core_file_failing_signal): Likewise.
663 (cisco_core_file_matches_executable_p): Likewise.
664 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
665 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
666 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
667 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
669 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
670 thumb_glue_size and arm_glue_size.
671 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
673 * coff64-rs6000.c: Group prototypes together.
675 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
676 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
678 * cpu-arc.c: Add missing prototypes.
679 * cpu-h8500.c: Likewise.
680 * cpu-i960.c: Likewise.
681 * cpu-pj.c: Likewise.
682 * cpu-sh.c: Likewise.
683 * cpu-w65.c: Likewise.
684 * cpu-z8k.c: Likewise.
685 * elf32-fr30.c: Likewise.
686 * elf32-h8300.c: Likewise.
687 * elf32-i370.c: Likewise.
688 * hpux-core.c: Likewise.
689 * versados.c: Likewise.
691 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
692 * cpu-h8500.c: Likewise.
693 * cpu-i960.c: Likewise.
694 * cpu-z8k.c: Likewise.
696 * cpu-ia64-opc.c: Correct comment.
698 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
700 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
702 (bfd_elf32_write_out_phdrs): Likewise.
703 (bfd_elf64_write_out_phdrs): Likewise.
704 (elf_linker_section_pointers): Change addend to bfd_vma.
705 (_bfd_elf_find_pointer_linker_section): Likewise.
706 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
707 filepos to unsigned file_ptr.
708 (_bfd_elfcore_strndup): Change max param to size_t.
709 * elf.c (_bfd_elfcore_make_pseudosection): As above.
710 (_bfd_elfcore_strndup): Likewise.
711 (_bfd_elf_find_pointer_linker_section): Likewise.
713 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
714 insn and sym_value to ints.
716 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
718 (elfcore_read_notes): Likewise.
720 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
721 param from unsigned char to int.
722 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
723 for info_to_howto call.
724 (add_dynamic_entry): Define macro.
725 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
727 * elf32-cris.c (add_dynamic_entry): Define macro.
728 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
730 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
731 (elf32_h8_object_p): Likewise.
732 (elf32_h8_merge_private_bfd_data): Likewise.
733 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
735 * elf32-hppa.c (add_dynamic_entry): Define macro.
736 (elf32_hppa_size_dynamic_sections): Use it.
737 * elf32-i370.c (add_dynamic_entry): Define macro.
738 (i370_elf_size_dynamic_sections): Use it.
739 (i370_noop): Make static.
740 * elf32-i386.c (add_dynamic_entry): Define macro.
741 (elf_i386_size_dynamic_sections): Use it.
742 * elf32-m68k.c (add_dynamic_entry): Define macro.
743 (elf_m68k_size_dynamic_sections): Use it.
744 * elf32-ppc.c (add_dynamic_entry): Define macro.
745 (ppc_elf_size_dynamic_sections): Use it.
746 * elf32-s390.c (add_dynamic_entry): Define macro.
747 (elf_s390_size_dynamic_sections): Use it.
748 * elf64-alpha.c (add_dynamic_entry): Define macro.
749 (elf64_alpha_size_dynamic_sections): Use it.
750 * elf64-hppa.c (add_dynamic_entry): Define macro.
751 (elf64_hppa_size_dynamic_sections): Use it.
752 * elf64-ppc.c (add_dynamic_entry): Define macro.
753 (ppc64_elf_size_dynamic_sections): Use it.
754 * elf64-s390.c (add_dynamic_entry): Define macro.
755 (elf_s390_size_dynamic_sections): Use it.
756 * elf64-sparc.c (add_dynamic_entry): Define macro.
757 (sparc64_elf_size_dynamic_sections): Use it.
758 * elf64-x86-64.c (add_dynamic_entry): Define macro.
759 (elf64_x86_64_size_dynamic_sections): Use it.
760 * elfxx-ia64.c (add_dynamic_entry): Define macro.
761 (elfNN_ia64_size_dynamic_sections): Use it.
763 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
764 (v850_elf_perform_relocation): Make "r_type" param unsigned.
766 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
767 false if the first malloc fails rather than going via error_return.
769 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
771 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
773 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
775 * elfxx-ia64.c (global_sym_index): Return a long.
777 * ieee.c (get_symbol): Use int rather than char param.
778 (ieee_slurp_sections): Move "section" var to inner blocks.
779 (copy_expression): Don't init "value" to zero or worry about
780 clearing to zero after using.
781 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
784 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
787 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
788 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
790 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
792 * pc532-mach.c (MYNSX): Delete.
793 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
794 (write_object_contents): Correct prototype.
796 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
799 * section.c (bfd_set_section_contents): Remove redundant
800 "offset < 0" test. Check that "count" doesn't overflow size_t.
801 (bfd_get_section_contents): Likewise.
803 * som.c (som_fixup_formats): Add missing braces.
804 (som_reloc_addend): Pass a bfd_vma for "addend".
806 * srec.c (srec_write_record): Pass "type" as an unsigned int.
807 (srec_write_symbols): Remove an unnecessary var.
809 * targets.c (_bfd_target_vector): Sort entries. Sort externs
811 * configure.in: Sort to match. Bump version number.
812 * configure: Regenerate.
814 * tekhex.c (move_section_contents): Assert offset == 0.
816 * versados.c (new_symbol_string): Constify arg.
817 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
818 (versados_get_symbol_info): Make static.
819 (versados_print_symbol): Likewise.
820 (versados_get_reloc_upper_bound): Likewise.
821 (versados_canonicalize_reloc): Likewise.
823 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
825 * elflink.h (elf_link_input_bfd): Fix typo in error message.
827 2001-09-17 H.J. Lu <hjl@gnu.org>
829 * dwarf1.c (parse_die): Take a new arg for the end of the
830 section. Return false if die is beyond the section.
831 (parse_functions_in_unit): Pass the end of the section to
833 (_bfd_dwarf1_find_nearest_line): Likewise.
835 2001-09-14 Michael Rauch <mrauch@netbsd.org>
837 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
838 just like R_SPARC_32.
840 2001-09-14 Kevin Lo <kevlo@openbsd.org>
842 * configure.bfd: Add arm-openbsd target.
844 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
846 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
847 Add support for mips64.
849 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
851 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
853 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
855 * elf.c (prep_headers): Get the machine code from the elf
857 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
858 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
859 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
860 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
861 * elf-arc.c (arc_elf_final_write_processing): Don't override
862 e_machine, it's now properly set in prep_headers.
863 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
865 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
866 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
867 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
868 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
869 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
870 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
871 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
872 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
873 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
874 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
875 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
876 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
878 2001-09-11 Richard Henderson <rth@redhat.com>
880 * elf64-alpha.c (elf64_alpha_section_flags): New.
881 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
883 2001-09-11 Richard Henderson <rth@redhat.com>
885 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
886 apply HINT relocations against dynamic symbols.
888 2001-09-11 H.J. Lu <hjl@gnu.org>
890 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
892 2001-09-09 Richard Henderson <rth@redhat.com>
894 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
896 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
897 following a call to a near function.
899 2001-09-08 Richard Henderson <rth@redhat.com>
901 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
902 relocation errors. Fail gp-relative relocations against
905 2001-09-08 Alan Modra <amodra@bigpond.net.au>
907 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
908 as well as DEF_DYNAMIC in test for avoided copy relocs.
909 (allocate_plt_and_got_and_discard_relocs): Likewise.
910 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
911 (allocate_plt_and_got_and_discard_relocs): Likewise.
913 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
915 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
918 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
920 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
922 (mips_elf64_howto_table_rel): Likewise.
924 2001-09-05 Tom Rix <trix@redhat.com>
926 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
928 (write_global_symbol) : Same.
929 (bfd_xcoff_export_symbol): Remove unused syscall param.
930 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
931 bfd_xcoff_import_symbol.
933 * bfd-in2.h : Regenerate.
935 2001-09-04 Richard Henderson <rth@redhat.com>
937 * elf64-alpha.c (SKIP_HOWTO): New.
938 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
939 Fix sizes of 16-bit mem format relocs.
940 (elf64_alpha_reloc_map): Update to match.
941 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
942 (elf64_alpha_relax_without_lituse): Likewise.
943 (elf64_alpha_check_relocs): Handle GPREL16.
944 (elf64_alpha_relocate_section): Likewise.
945 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
946 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
947 * bfd-in2.h, libbfd.h: Rebuild.
949 2001-09-04 Jeff Law <law@redhat.com>
951 * elf32-h8300.c (elf32_h8_relax_section): New function.
952 (elf32_h8_relax_delete_bytes): Likewise.
953 (elf32_h8_symbol_address_p): Likewise.
954 (elf32_h8_get_relocated_section_contents): Likewise.
955 (bfd_elf32_bfd_relax_section): Define.
956 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
958 * elf32-h8300.c (special): New function.
959 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
961 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
962 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
963 Fix minor problems with 8bit and 16bit PC relative relocations.
965 2001-09-01 Andreas Jaeger <aj@suse.de>
967 * vms-tir.c: Add missing prototypes.
968 * vms-hdr.c: Likewise.
969 * vms-gsd.c: Likewise.
970 * vms-misc.c: Likewise.
972 2001-08-31 H.J. Lu <hjl@gnu.org>
974 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
977 2001-08-31 Eric Christopher <echristo@redhat.com>
978 Jason Eckhardt <jle@redhat.com>
980 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
981 mips32_4k and mips64.
982 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
983 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
984 * bfd/cpu-mips.c: Ditto.
985 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
986 * bfd/bfd-in2.h: Regenerate.
988 2001-08-31 Jakub Jelinek <jakub@redhat.com>
990 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
991 value into R_ALPHA_RELATIVE's addend.
992 (elf64_alpha_finish_dynamic_symbol): Likewise.
994 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
996 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
997 recomputed addend during relocatable link if not USE_REL.
999 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1002 2001-08-30 H.J. Lu <hjl@gnu.org>
1004 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1006 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1007 relocations for weak definitions.
1009 2001-08-30 H.J. Lu <hjl@gnu.org>
1011 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1012 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1013 * Makefile.in: Rebuild.
1015 2001-08-30 H.J. Lu <hjl@gnu.org>
1017 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1018 dynamic relocation for undefined weak symbols when creating
1019 executables. Check h->root.root.type, instead of h->root.type.
1021 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1023 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1024 default from coff to elf.
1026 2001-08-29 Jeff Law <law@redhat.com>
1028 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1030 (h8_reloc_map): Similarly.
1031 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1032 Add support for PC relative relocations.
1034 * elf32-h8300.c: Put all prototypes together.
1035 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1036 (elf32_h8_final_link_relocate): New function for linker.
1037 (elf32_h8_relocate_section): Similarly.
1038 (elf_backend_relocate_section): Define.
1040 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1041 (h8300_scan): Handle architecture:machine encodings typically
1042 found in linker scripts.
1043 * elf.c (prep_headers): Do not try to do H8 machine recognition
1045 * elf32-h8300.c: Add some missing prototypes.
1046 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1047 (elf32_h8_object_p): Similarly.
1049 2001-08-29 Tom Rix <trix@redhat.com>
1051 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1052 does not follow a XTY_SD.
1054 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1056 * targmatch.sed: Delete case statements.
1057 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1060 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1062 * Makefile.am (elf32-h8300.lo): New target.
1063 * config.bfd (h8300*-*-elf): New case.
1064 * configure.in (bfd_elf32_h8300_vec): New case.
1065 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1066 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1067 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1068 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1069 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1070 * elf32-h8300.c: New file.
1071 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1073 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1075 * sparclynx.c: Add missing prototypes.
1076 * coff-mcore.c: Add missing prototypes.
1077 * elf32-pj.c: Add missing prototypes.
1078 * nlm32-sparc.c: Add missing prototypes.
1079 * oasys.c: Add missing prototypes.
1080 * pdp11.c: Add missing prototypes.
1081 * pe-mips.c: Add missing prototypes.
1082 * riscix.c: Add missing prototypes.
1084 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1086 * elf32-i386.c: Add missing prototypes.
1087 * elf32-ppc.c: Likewise.
1088 * elf32-sh-lin.c: Likewise.
1089 * elfarm-nabi.c: Likewise.
1091 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1093 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1094 (elf_i386_grok_psinfo): New function.
1095 (elf_backend_grok_prstatus): Define.
1096 (elf_backend_grok_psinfo): Likewise.
1097 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1098 (ppc_elf_grok_psinfo): New function.
1099 (elf_backend_grok_prstatus): Define.
1100 (elf_backend_grok_psinfo): Likewise.
1101 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1102 (elf32_shlin_grok_psinfo): New function.
1103 (elf_backend_grok_prstatus): Define.
1104 (elf_backend_grok_psinfo): Likewise.
1105 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1106 (elf32_arm_nabi_grok_psinfo): New function.
1107 (elf_backend_grok_prstatus): Define.
1108 (elf_backend_grok_psinfo): Likewise.
1110 2001-08-27 H.J. Lu <hjl@gnu.org>
1112 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1114 (mips_elf_calculate_relocation): Create dynamic relocation for
1115 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1118 2001-08-27 H.J. Lu <hjl@gnu.org>
1120 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1121 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1122 (_bfd_elf32_mips_grok_prstatus): Likewise.
1123 (_bfd_elf32_mips_grok_psinfo): Likewise.
1124 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1125 `struct mips_elf_link_hash_entry *'.
1126 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1128 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1130 * mipsbsd.c: Add missing prototypes.
1131 * hp300hpux.c: Add missing prototypes.
1132 * i386aout.c: Add missing prototypes.
1133 * i386lynx.c: Add missing prototypes.
1134 * i386mach3.c: Add missing prototypes.
1135 * i386msdos.c: Add missing prototypes.
1136 * i386os9k.c: Add missing prototypes.
1138 2001-08-27 Linus Nordberg <linus@swox.se>
1139 Torbjorn Granlund <tege@swox.com>
1140 Staffan Ulfberg <staffanu@swox.se>
1141 Alan Modra <amodra@bigpond.net.au>
1143 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1144 targ64_selvecs for 32 bit powerpc targets.
1145 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1146 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1148 * Makefile.in: Regenerate.
1149 * configure.in: Add elf64_powerpc vecs.
1150 * configure: Regenerate.
1151 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1152 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1153 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1154 * elf64-ppc.c: New file.
1155 * reloc.c: Add powerpc64 relocs.
1156 * libbfd.h: Regenerate.
1157 * bfd-in2.h: Regenerate.
1159 2001-08-27 Andreas Schwab <schwab@suse.de>
1161 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1162 reloc is against read-only section.
1163 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1164 looking up section names for DT_TEXTREL.
1165 (elf32_m68k_reloc_type_class): New function.
1166 (elf_backend_reloc_type_class): Define.
1168 2001-08-27 Andreas Jaeger <aj@suse.de>
1170 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1171 reloc is against read-only section.
1172 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1173 looking up section names for DT_TEXTREL.
1174 (elf_s390_reloc_type_class): New.
1175 (elf_backend_reloc_type_class): Define.
1177 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1178 reloc is against read-only section.
1179 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1180 looking up section names for DT_TEXTREL.
1181 (elf_s390_reloc_type_class): New.
1182 (elf_backend_reloc_type_class): Define.
1184 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1185 is against read-only section.
1186 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1187 looking up section names for DT_TEXTREL.
1188 (ppc_elf_reloc_type_class): New.
1189 (elf_backend_reloc_type_class): Define.
1191 2001-08-26 Andreas Jaeger <aj@suse.de>
1193 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1194 reloc is against read-only section.
1195 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1196 looking up section names for DT_TEXTREL.
1197 (elf_cris_reloc_type_class): New.
1198 (elf_backend_reloc_type_class): Define.
1200 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1201 against read-only section.
1202 (elf_backend_reloc_type_class): Define.
1203 (sh_elf_reloc_type_class): New.
1204 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1205 looking up section names for DT_TEXTREL.
1207 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1208 reloc is against read-only section.
1209 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1210 looking up section names for DT_TEXTREL.
1211 (elf32_arm_reloc_type_class): New.
1212 (elf_backend_reloc_type_class): Define.
1214 2001-08-25 Andreas Jaeger <aj@suse.de>
1216 * oasys.c: Add missing prototypes.
1218 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1219 attribute for parameter.
1220 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1222 * versados.c (get_4): Make static.
1223 (get_10): Make static.
1224 Add missing prototypes.
1225 (process_esd): Fix call to versados_new_symbol.
1227 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1229 * coff-a29k.c: Add missing prototypes.
1230 * coff-apollo.c: Add missing prototypes.
1231 * coff-arm.c: Add missing prototypes.
1232 * coff-i860.c: Add missing prototypes.
1233 * coff-rs6000.c: Add missing prototypes.
1234 * coff-tic80.c: Add missing prototypes.
1235 * elf-m10200.c: Add missing prototypes.
1236 * elf-m10300.c: Add missing prototypes.
1237 * elf32-arm.h: Add missing prototypes.
1238 * elf32-d10v.c: Add missing prototypes.
1239 * elf32-m32r.c: Add missing prototypes.
1240 * elf32-mcore.c: Add missing prototypes.
1241 * elf32-openrisc.c: Add missing prototypes.
1242 * elf32-sh.c: Add missing prototypes.
1243 * elf32-sparc.c: Add missing prototypes.
1244 * elf32-v850.c: Add missing prototypes.
1245 * elfarm-nabi.c: Add missing prototypes.
1246 * elfarm-oabi.c: Add missing prototypes.
1248 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1250 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1251 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1253 2001-08-24 H.J. Lu <hjl@gnu.org>
1255 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1258 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1260 * elf-bfd.h (elf_hash_table): Revert definition.
1261 (is_elf_hash_table): New macro.
1262 * elflink.h (elf_link_add_object_symbols): Test
1263 is_elf_hash_table before accessing ELF only fields in hash
1265 (elf_link_create_dynamic_sections): Fail if not using an ELF
1267 (elf_add_dynamic_entry): Fail if not using an ELF hash
1269 (elf_link_record_local_dynamic_symbol): Fail if not using an
1271 (size_dynamic_sections): Fail if not using an ELF hash
1273 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1275 (elf_bfd_final_link): Fail if not using an ELF hash
1278 2001-08-24 H.J. Lu <hjl@gnu.org>
1280 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1281 table is not an ELF linker hash table.
1283 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1284 table type to bfd_link_elf_hash_table.
1286 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1289 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1290 table type to bfd_link_generic_hash_table.
1292 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1294 * bfd.c (bfd_alt_mach_code): New function.
1295 * bfd-in2.h: Rebuilt.
1297 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1299 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1300 `type' field in the hash entry when deciding whether to follow a
1303 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1305 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1307 (elf_link_sort_relocs): Adjust accordingly.
1309 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1310 (elf64_alpha_check_relocs): Set it if section this reloc is against
1311 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1313 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1314 is is against read-only section.
1315 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1316 check section names.
1317 (elf64_alpha_reloc_type_class): New.
1318 (elf_backend_reloc_type_class): Define.
1320 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1322 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1325 2001-08-23 Andreas Jaeger <aj@suse.de>
1327 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1328 the reloc is against read-only section.
1329 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1330 of looking up section names for DT_TEXTREL.
1331 (elf64_x86_64_reloc_type_class): New.
1332 (elf_backend_reloc_type_class): Define.
1334 2001-08-23 H.J. Lu <hjl@gnu.org>
1336 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1337 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1339 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1340 bfd_print_symbol_vandf.
1341 * coffgen.c (coff_print_symbol): Likewise.
1342 * elf.c (bfd_elf_print_symbol): Likewise.
1343 * ieee.c (ieee_print_symbol): Likewise.
1344 * nlmcode.h (nlm_print_symbol): Likewise.
1345 * oasys.c (oasys_print_symbol): Likewise.
1346 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1347 * som.c (som_print_symbol): Likewise.
1348 * srec.c (srec_print_symbol): Likewise.
1349 * tekhex.c (tekhex_print_symbol): Likewise.
1350 * versados.c (versados_print_symbol): Likewise.
1351 * vms.c (vms_print_symbol): Likewise.
1353 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1354 with bfd_fprintf_vma.
1355 (bfd_elf_print_symbol): Likewise.
1356 * syms.c (bfd_print_symbol_vandf): Likewise.
1358 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1360 * aoutf1.h (sunos_write_object_contents): Silence compile time
1362 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1364 * bout.c: Add missing function prototypes. Fix formatting.
1365 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1366 * coff-w65.c: Add missing function prototypes. Fix formatting.
1367 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1368 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1369 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1370 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1371 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1372 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1373 * coff-sh.c: Add missing function prototypes. Fix formatting.
1375 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1377 * elf-bfd.h (enum elf_reloc_type_class): New.
1378 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1379 (_bfd_elf_reloc_type_class): New.
1380 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1381 (elfNN_bed): Add elf_backend_reloc_type_class.
1382 * elf.c (_bfd_elf_reloc_type_class): New.
1383 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1384 is against read-only section.
1385 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1386 looking up section names for DT_TEXTREL.
1387 (elf_i386_reloc_type_class): New.
1388 (elf_backend_reloc_type_class): Define.
1389 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1390 reloc is against read-only section.
1391 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1392 looking up section names for DT_TEXTREL.
1393 (elf32_sparc_reloc_type_class): New.
1394 (elf_backend_reloc_type_class): Define.
1395 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1396 reloc is against read-only section.
1397 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1398 looking up section names for DT_TEXTREL.
1399 (sparc64_elf_reloc_type_class): New.
1400 (elf_backend_reloc_type_class): Define.
1401 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1402 (elfNN_ia64_hash_table_create): Clear ia64_info.
1403 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1405 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1406 instead of looking up section names for DT_TEXTREL.
1407 (elfNN_ia64_reloc_type_class): New.
1408 (elf_backend_reloc_type_class): Define.
1409 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1410 (struct elf_link_sort_rela): New.
1411 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1412 (elf_bfd_final_link): Call elf_link_sort_relocs.
1413 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1416 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1418 * configure.in (x86-bsdi): No corefile support.
1419 * configure: Regenerate.
1421 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1423 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1426 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1428 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1429 the alignment of dwarf2 linkonce sections to 0.
1430 * coff-sto32.c: Likewise.
1432 2001-08-20 Andreas Jaeger <aj@suse.de>
1434 * coff-sparc.c: Add missing prototypes.
1435 * elf32-s390.c: Likewise.
1436 * elf32-i960.c: Likewise.
1437 * aout-target.h: Likewise.
1439 2001-08-20 H.J. Lu <hjl@gnu.org>
1441 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1442 (elf_num_section_syms): New for num_section_syms.
1444 * elf.c (elf_map_symbols): Set num_section_syms.
1445 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1446 the section symbol index.
1448 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1450 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1451 select the generic has table creator. All elf backends need elf
1452 specific fields in the hash table.
1454 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1456 * archive.c (offsetof): Remove define.
1459 * sysdep.h (offsetof): Define.
1461 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1463 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1464 (bfd_set_gp_size): Make param unsigned.
1465 * bfd-in2.h: Regenerate.
1466 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1467 than calling bfd_get_gp_size.
1468 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1469 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1471 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1473 * linker.c (default_fill_link_order): Handle four byte fill value.
1475 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1477 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1479 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1481 * elf64-mips.c (UNUSED_RELOC): Define.
1482 (mips_elf64_howto_table_rel): Use it.
1483 (mips_elf64_howto_table_rela): Here too.
1484 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1486 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1488 * coffgen.c (coff_print_symbol): Fix warnings.
1489 (coff_find_nearest_line): Likewise.
1490 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1491 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1492 * format.c (bfd_check_format_matches): Likewise.
1493 (bfd_set_format): Likewise.
1494 * coff-ia64.c: Add missing prototypes.
1495 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1496 signed to silence warnings.
1497 (elf64_alpha_relocate_section): Likewise.
1498 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1499 (elf64_alpha_add_symbol_hook): Likewise.
1500 (elf64_alpha_final_link): Likewise.
1501 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1502 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1503 (elf64_alpha_size_got_sections): Likewise.
1504 * elfxx-ia64.c: Add missing prototypes.
1505 (elfNN_ia64_relocate_section): Fix warning.
1506 (elfNN_ia64_unwind_entry_compare): Make params const.
1508 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1510 * config.bfd (targ64_selvecs): New.
1511 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1513 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1514 (BFD_DEFAULT_TARGET_SIZE): New.
1515 (BFD_ARCH_SIZE): Comment.
1516 * configure.in (target_size): New. Set instead of target64 in
1517 selvecs case statement. Set target64 from it.
1518 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1519 * bfd-in2.h: Regenerate.
1520 * configure: Regenerate.
1522 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1524 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1525 (bfd_errmsgs): Add corresponding message.
1526 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1527 finding an archive that contains different format object files.
1528 Return bfd_error_wrong_object_format for this case.
1529 * format.c: Formatting fixes. s/CONST/const/.
1530 (bfd_check_format_matches): Accept archives that give
1531 bfd_error_wrong_object_format if no full match is found. Tidy
1532 code handling matching_vector. Don't return a pointer to freed
1533 memory in `matching'. Handle ambiguous matches as for partial
1535 * bfd-in2.h: Regenerate.
1537 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1539 * libieee.h (common_header_type): Add last_byte field.
1541 * ieee.c: Add missing prototypes. Some format fixes.
1542 (struct output_buffer_struct): Move for availability to prototypes.
1543 (ieee_part_after): New function.
1544 (ieee_slurp_debug): Use it here.
1545 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1546 ieee_part_after to set last_byte to one past end of current part.
1548 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1550 (parse_expression): Don't go beyond the end of the current part.
1551 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1552 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1553 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1554 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1555 ieee_set_section_contents, ieee_write_object_contents,
1556 ieee_make_empty_symbol): Make static.
1557 (ieee_archive_p): Correct comments regarding bfd_read.
1558 (ieee_object_p): Similarly.
1559 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1560 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1561 input_bfd, output_bfd, output_buffer.
1562 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1563 do_with_relocs, ie. as a symbol for relocatable files.
1564 (ieee_vec): Add comments showing functions referenced by macros.
1566 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1568 * aout-tic30.c: Add missing prototypes. Fix formatting.
1569 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1570 * peXXigen.c: Add missining prototypes. Fix formatting.
1571 * aout-adobe.c: Add missining prototypes. Fix formatting.
1573 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1575 * elf32-v850.c: Add missing function prototypes.
1576 Fix some formatting.
1578 * cpu-v850.c: Add missing function prototype.
1579 Fix some formatting.
1581 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1583 * elf-bfd.h (struct elf_backend_data): Add new fields
1584 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1585 (bfd_elf_sprintf_vma): Rename function prototype to
1586 '_bfd_elf_sprintf_vma'.
1587 (bfd_elf_fprintf_vma): Rename function prototype to
1588 '_bfd_elf_fprintf_vma'.
1589 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1590 directly, instead indirect via the elf_backend_data structure.
1591 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1592 instead indirect via the elf_backend_data structure.
1593 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1594 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1595 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1597 (elf_backend_fprintf_vma): Initialise if not already defined.
1598 (struct elf_backend_data): Initialise the
1599 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1601 2001-08-10 Andreas Jaeger <aj@suse.de>
1603 * elf64-sparc.c: Add missing prototypes.
1604 * elf32-cris.c: Likewise.
1605 * elf32-i370.c: Likewise.
1606 * elf64-hppa.c: Likewise.
1607 * elf64-s390.c: Likewise.
1609 2001-08-10 Andreas Jaeger <aj@suse.de>
1611 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1612 Add prototypes where needed.
1614 2001-08-10 H.J. Lu <hjl@gnu.org>
1616 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1617 (bfd_fprintf_vma): Likewise.
1619 2001-08-10 H.J. Lu <hjl@gnu.org>
1621 * bfd.c (bfd_sprintf_vma): Don't return void.
1622 (bfd_fprintf_vma): Likewise.
1624 2001-08-10 Andreas Jaeger <aj@suse.de>
1626 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1628 * configure: Regenerate.
1630 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1632 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1633 warning if not BFD64. Add braces so emacs auto format works.
1634 (bfd_elf_fprintf_vma): Likewise.
1636 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1638 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1639 param to agree with libxcoff.h.
1640 (xcoff_swap_ldhdr_out): Likewise.
1641 (xcoff_swap_ldsym_in): Likewise.
1642 (xcoff_swap_ldsym_out): Likewise.
1643 (xcoff_swap_ldrel_in): Likewise.
1644 (xcoff_swap_ldrel_out): Likewise.
1645 (xcoff_create_csect_from_smclas): Likewise.
1646 * coff64-rs6000.c: Add missing prototypes.
1647 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1649 (xcoff64_swap_ldhdr_out): Likewise.
1650 (xcoff64_swap_ldsym_in): Likewise.
1651 (xcoff64_swap_ldsym_out): Likewise.
1652 (xcoff64_swap_ldrel_in): Likewise.
1653 (xcoff64_swap_ldrel_out): Likewise.
1654 (xcoff64_ppc_relocate_section): Make static.
1655 (xcoff64_slurp_armap): Likewise.
1656 (xcoff64_archive_p): Likewise.
1657 (xcoff64_openr_next_archived_file): Likewise.
1658 (xcoff64_sizeof_headers): Likewise.
1659 (xcoff64_is_lineno_count_overflow): Likewise.
1660 (xcoff64_is_reloc_count_overflow): Likewise.
1661 (xcoff64_loader_symbol_offset): Likewise.
1662 (xcoff64_loader_reloc_offset): Likewise.
1663 * elf64-gen.c: Add missing prototypes.
1665 2001-08-09 H.J. Lu <hjl@gnu.org>
1667 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1668 (bfd_elf_fprintf_vma): Likewise.
1670 2001-08-09 H.J. Lu <hjl@gnu.org>
1672 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1675 * bfd-in2.h: Regenerated.
1677 2001-08-09 H.J. Lu <hjl@gnu.org>
1679 * bfd-in.h (bfd_sprintf_vma): New prototype.
1680 (bfd_fprintf_vma): Likewise.
1681 (bfd_elf_sprintf_vma): Likewise.
1682 (bfd_elf_fprintf_vma): Likewise.
1683 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1684 * bfd-in2.h: Regenerated.
1686 * bfd.c (bfd_sprintf_vma): New. Defined.
1687 (bfd_fprintf_vma): Likewise.
1689 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1690 (bfd_elf_fprintf_vma): Likewise.
1692 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1694 * coff-rs6000.c: Add missing prototypes.
1695 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1696 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1697 xcoff_loader_reloc_offset): Make static.
1698 * dwarf1.c: Add missing prototypes.
1699 * dwarf2.c: Add missing prototypes.
1700 (struct abbrev_info): Move definition.
1701 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1702 * elf.c: Add missing prototypes.
1703 * elf32-gen.c: Likewise.
1704 * elf32-i386.c: Likewise.
1705 * elf32-ppc.c: Likewise.
1706 (ppc_elf_sort_rela): Use PTR instead of "void *".
1707 * elflink.h: Add missing prototypes. Formatting fixes.
1708 * merge.c: Add missing prototypes.
1709 (last4_eq): Use PTR instead of "void *".
1710 (last_eq): Likewise.
1711 * syms.c: Add missing prototypes.
1713 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1715 * bfd.c: Fix formatting.
1716 * bfd-in2.h: Regenerate.
1718 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1720 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1721 true (this target uses REL relocations) and 'pcrel_offset' to
1722 false (the PC is implied, not stored in the offset).
1724 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1726 1999-10-19 Linus Nordberg <linus@swox.se>
1727 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1728 * elfxx-target.h (elf_backend_want_got_sym): Define.
1729 (elfNN_bed): Add elf_backend_want_got_sym.
1730 * elflink.c (_bfd_elf_create_got_section): Define
1731 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1733 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1735 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1736 (find_rela_addend): New function.
1737 (parse_comp_unit): Call it to find the abbrev offset addend.
1738 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1739 members of dwarf2_debug as debugging information is read.
1741 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1743 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1744 targets as well as sh-pe.
1746 2001-08-03 Ben Harris <bjh21@netbsd.org>
1748 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1749 reloc from start of section when computing value for R_ARM_REL32
1752 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1754 From H.J. Lu <hjl@gnu.org>
1755 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1756 keep relocs for undefined syms if there are no dynamic sections in
1758 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1760 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1762 * cofflink.c (coff_link_check_ar_symbols): also search for
1763 __imp__symbol as well as _symbol.
1764 * linker.c (_bfd_generic_link_add_archive_symbols): also
1765 search for __imp__symbol as well as _symbol.
1767 2001-08-01 Adam Nemet <anemet@lnxw.com>
1769 * elf.c (elf_sort_sections): Return zero only as the last step.
1771 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1773 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1775 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1776 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1779 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1781 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1782 to match corresponding bfd_coff_backend data member.
1784 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1786 * Makefile.am: Update dependencies with "make dep-am".
1787 * Makefile.in: Regenerate
1789 2001-07-15 H.J. Lu <hjl@gnu.org>
1791 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1792 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1793 * Makefile.in: Regenerate.
1795 2001-07-11 H.J. Lu <hjl@gnu.org>
1797 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1798 flags when creating the reloc section if the ALLOC flag in the
1799 source section is set.
1801 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1803 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1804 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1805 * bfd-in2.h: Regenerate.
1806 * libbfd.h: Regenerate.
1807 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1809 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1810 (elfNN_ia64_check_relocs): Likewise.
1811 (elfNN_ia64_install_value): Likewise.
1812 (elfNN_ia64_relocate_section): Likewise.
1814 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1816 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1818 (elf32_sparc_check_relocs): Likewise.
1819 Only create .rela section for alloced sections in shared libraries.
1820 (elf32_sparc_relocate_section): Likewise.
1821 Remove redundant check.
1822 Optimize unaligned reloc usage.
1823 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1826 2001-07-11 H.J. Lu <hjl@gnu.org>
1828 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1829 ALLOC|LOAD flags as the source section for debugging sections
1830 when creating the reloc section.
1832 2001-07-05 Jim Wilson <wilson@redhat.com>
1834 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1835 the section of the bigger symbol.
1837 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1839 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1841 * peicode.h (coff_swap_scnhdr_in): For sections containing
1842 uninitialised data, only set their size to s_paddr if this does
1843 not reset their size to zero. MS's latest compilers will set
1846 2001-07-04 H.J. Lu <hjl@gnu.org>
1848 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1849 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1852 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1854 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1856 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1857 sections being discarded.
1859 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1861 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1862 instead of _bfd_elfcore_section_from_phdr.
1863 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1864 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1865 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1866 (elfcore_grok_prstatus): Likewise.
1867 (elfcore_grok_lwpstatus): Likewise.
1868 (bfd_get_elf_phdr_upper_bound): Likewise.
1869 (elfcore_make_note_pseudosection): Formatting.
1870 (_bfd_elfcore_strndup): Formatting.
1871 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1872 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1874 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1876 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1877 and _bfd_elfcore_strndup.
1878 (struct elf_backend_data): Add elf_backend_grok_prstatus
1879 and elf_backend_grok_psinfo.
1880 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1881 (elfcore_grok_prstatus): Use it.
1882 (elfcore_make_note_pseudosection): Likewise.
1883 (elfcore_strndup): Rename to...
1884 (_bfd_elfcore_strndup): Here, and make global.
1885 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1886 (elfcore_grok_note): Call elf_backend_grok_prstatus
1887 and elf_backend_grok_psinfo if available.
1888 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1889 (_bfd_elf32_mips_grok_psinfo): New function.
1890 (elf_backend_grok_prstatus): Define.
1891 (elf_backend_grok_psinfo): Define.
1892 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1893 (elf_backend_grok_psinfo): Likewise.
1894 (elfNN_bed): Include elf_backend_grok_prstatus and
1895 elf_backend_grok_psinfo.
1897 2001-06-29 H.J. Lu <hjl@gnu.org>
1899 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1900 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1901 is NULL before filling PLT.
1903 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1905 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1907 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1909 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1911 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1912 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1915 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1916 (IS_ABSOLUTE_RELOC): Define.
1917 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1918 (hppa_link_hash_newfunc): Always init it.
1919 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1920 create COPY relocs only when the reloc is in a read-only section.
1921 Instead, allocate space for a dynamic reloc to reference the
1922 library symbol directly. Keep track of space we allocate using
1924 (hppa_discard_copies): Delete, and move code to..
1925 (allocate_plt_and_got): ..here. Rename to
1926 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1927 relocs for non-shared link.
1928 (elf32_hppa_size_dynamic_sections): Update calls to above.
1929 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1930 in lieu of COPY relocs.
1932 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1934 (elf_i386_adjust_dynamic_symbol): ..nor here..
1935 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1937 (elf_i386_size_dynamic_sections): Fix a comment.
1938 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1939 involved in writing reloc out.
1941 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1943 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1944 Ensure syms are dynamic if we might be emitting a reloc.
1945 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1946 for undefweak or undefined syms..
1947 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1949 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1950 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1951 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1952 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1954 2001-06-24 H.J. Lu <hjl@gnu.org>
1956 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1957 strncasecmp/strcasecmp instead of strncmp/strcmp.
1959 2001-06-23 H.J. Lu <hjl@gnu.org>
1961 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1962 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1963 in the regular object file and treat the weak definition as
1966 2001-06-23 Alan Modra <amodra@bigpond.net.au>
1968 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1969 unresolved_reloc test to exclude cases where we use "relocation"
1970 before setting it to point into the .got. Reinstate fudge for
1971 unresolved relocs in debugging sections.
1973 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1974 complicated tests for unresolvable relocs with a simple direct
1975 scheme using "unresolved_reloc" var.
1977 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1978 elf_i386_dyn_relocs. Update comment.
1979 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1981 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1983 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1985 (elf_i386_size_dynamic_sections): Likewise.
1986 (elf_i386_finish_dynamic_symbol): Likewise.
1987 (elf_i386_finish_dynamic_sections): Likewise.
1988 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1991 Avoid creating COPY relocs if possible.
1992 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1993 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1994 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
1995 reloc is in a read-only section. Instead, allocate space for a
1996 dynamic reloc to reference the library symbol directly. Keep
1997 track of space we allocate using pcrel_relocs_copied.
1998 (discard_copies): Delete, and move code to ..
1999 (allocate_plt_and_got): ..here. Rename to
2000 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2001 relocs for non-shared link.
2002 (elf_i386_size_dynamic_sections): Update calls to above functions.
2003 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2004 more ugly logic to avoid "unresolvable relocation" error. Use
2005 htab shortcut in place of elf_hash_table macro.
2006 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2007 not always be created now.
2009 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2011 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2014 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2016 * configure.host (mips64-*-linux): Reformat.
2018 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2020 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2021 allocate local .got space. Use shortcuts from hash table for .got
2022 and .plt rather than comparing section names.
2023 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2024 adjusting index into local_got_refcounts to document what we are
2026 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2027 Tidy .got and .plt error checking.
2029 2001-06-20 Catherine Moore <clm@redhat.com>
2031 * elf-bfd.h (struct elf_backend_data):
2032 elf_backend_emit_relocs: New field: Function for emitting
2034 elf_backend_count_relocs: New field: Function for determining
2035 the number of relocs to be emitted.
2036 * elfxx-target.h: Provide default (NULL) values for
2037 elf_backend_emit_relocs and elf_backend_count_relocs.
2038 * elflink.h (elf_link_size_reloc_section): Make the hash table
2039 big enough to hold the relocs counted by either reloc_count or
2041 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2042 should be emitted, either because of a command line option
2043 stored in the info structure or because the target provides a
2044 special reloc emitting function.
2045 If the target provides a reloc counting function use it,
2046 unless performing a relocatable link or emitting all relocs.
2047 Also set the SEC_RELOC flag on any output section which will
2049 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2050 should be emitted, either because of a command line option
2051 stored in the info structure or because the target provides a
2052 special reloc emitting function.
2053 If the target provides a reloc emitting function, use it,
2054 unless performing a relocatable link or emitting all relocs.
2056 2001-06-20 H.J. Lu <hjl@gnu.org>
2058 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2059 allocate local .got space.
2061 2001-06-19 Andreas Jaeger <aj@suse.de>
2063 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2066 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2068 * elflink.h (struct elf_assign_sym_version_info): Remove member
2069 export_dynamic. All users changed to use info member.
2070 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2071 export_dynamic, instead use member in parameter info.
2072 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2073 bfd_elf64_size_dynamic_sections): Update prototype.
2074 * bfd-in2.h: Regenerate.
2076 2001-06-18 H.J. Lu <hjl@gnu.org>
2078 * elflink.h (elf_info_failed): Add a new field, verdefs.
2079 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2081 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2084 2001-06-17 H.J. Lu <hjl@gnu.org>
2086 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2087 readonly_reloc, to record if a relocation in the .rel.dyn
2088 section is against a read-only section.
2089 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2091 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2092 in the .rel.dyn section against a read-only section by setting
2093 DF_TEXTREL or readonly_reloc.
2094 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2096 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2097 there is a relocation in the .rel.dyn section against a
2099 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2102 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2104 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2105 function. Move flagword result into parameter list. Remove
2106 comment about setting bfd_error_handler to intercept failure
2108 * coffgen.c (make_a_section_from_file): Examine result of
2109 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2111 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2112 function. Move flagword result into parameter list.
2113 * libcoff.h: Regenerate.
2114 * libecoff.h: Regenerate.
2116 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2118 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2119 section is going to follow it.
2121 2001-06-12 Catherine Moore <clm@redhat.com>
2123 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2124 with the file_align entry from elf_backend_data.
2125 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2126 (elf_gc_record_vtentry): Likewise.
2128 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2130 * elflink.h: Whitespace changes.
2131 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2132 rather than "unsigned char".
2133 (elf_link_output_relocs): Likewise.
2134 (elf_link_input_bfd): Likewise.
2135 (elf_reloc_link_order): LIkewise.
2136 * elf.c: s/CONST/const/. Whitespace changes.
2137 * elf32-mips.c: Formatting fix.
2139 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2140 * Makefile.in: Regenerate.
2141 * po/Make-in: Remove trailing tab.
2143 2001-06-09 Philip Blundell <philb@gnu.org>
2145 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2147 (elf32_arm_plt_entry): Likewise.
2149 2001-06-08 H.J. Lu <hjl@gnu.org>
2151 * elf.c (swap_out_syms): Keep names for global section symbols.
2153 2001-06-07 H.J. Lu <hjl@gnu.org>
2155 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2156 MIPS-based machines need it.
2158 2001-06-07 H.J. Lu <hjl@gnu.org>
2160 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2163 * config.bfd: Remove ecoff from Linux/mips.
2165 2001-06-07 Andreas Jaeger <aj@suse.de>
2167 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2169 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2170 alignment of 8 for .rela sections; handle further relocations.
2172 2001-06-06 Christian Groessler <cpg@aladdin.de>
2174 * coff-z8k.c: Fix formatting.
2175 Fix howtos: howto->size was always 1.
2177 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2179 * configure.host (mips64*-*-linux*): Define.
2181 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2183 * elf32-i386.c (elf_i386_discard_copies): Rename to
2184 discard_copies, and use elf_link_hash_entry arg rather than
2185 elf_i386_link_hash_entry.
2186 (elf_i386_link_hash_traverse): Delete.
2187 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2188 Tidy sizing of dynamic sections.
2189 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2190 possible .plt entries.
2191 (elf_i386_gc_sweep_hook): Likewise.
2192 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2193 everything with plt.refcount <= 0.
2195 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2197 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2198 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2200 (allocate_plt_and_got): ..instead do it all here. New function.
2201 (elf_i386_size_dynamic_sections): Allocate local .got space and
2202 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2203 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2204 rather than gc variety).
2205 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2206 (elf_i386_relocate_section): Use it here and correct handling of
2207 R_386_GOT32. Provide section and offset for "unresolvable
2208 relocation" error message.
2209 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2211 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2212 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2213 (elf_i386_link_hash_table_create): Init them.
2214 (create_got_section): New function.
2215 (elf_i386_create_dynamic_sections): New function.
2216 (elf_backend_create_dynamic_sections): Set to above.
2217 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2218 calling bfd_get_section_by_name.
2219 (elf_i386_gc_sweep_hook): Likewise.
2220 (elf_i386_adjust_dynamic_symbol): Likewise.
2221 (elf_i386_size_dynamic_sections): Likewise.
2222 (elf_i386_relocate_section): Likewise.
2223 (elf_i386_finish_dynamic_sections): Likewise.
2225 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2227 2001-06-02 H.J. Lu <hjl@gnu.org>
2229 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2231 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2233 2001-06-02 H.J. Lu <hjl@gnu.org>
2235 * aout-cris.c (MACHTYPE_OK): New. Defined.
2237 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2239 * section.c (_bfd_strip_section_from_output): Handle NULL
2242 2001-06-02 H.J. Lu <hjl@gnu.org>
2244 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2245 rs6000coff64_vec only if BFD64 is defined.
2246 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2248 2001-06-02 H.J. Lu <hjl@gnu.org>
2250 * coff-ia64.c (ia64coff_object_p): Rewrite with
2251 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2253 2001-06-01 Andreas Jaeger <aj@suse.de>
2255 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2256 relocation, small reformatting.
2258 2001-05-29 Andreas Jaeger <aj@suse.de>
2260 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2261 (elf64_x86_64_relocate_section): Likewise.
2263 2001-05-30 Alan Modra <amodra@one.net.au>
2265 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2266 millicode. Don't allocate .got and .rela.got space here..
2267 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2268 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2270 (hppa_handle_PIC_calls): ..nor here..
2271 (allocate_plt_and_got): ..instead do it all here. New function.
2272 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2273 call allocate_plt_and_got. No need to zap .got if not dynamic.
2274 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2275 gc_common_final_link.
2276 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2277 (elf32_hppa_relocate_section): Use it here.
2278 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2279 dynamic_sections_created.
2280 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2282 2001-05-28 Andreas Jaeger <aj@suse.de>
2284 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2285 generic version since we want a hashsize of 4.
2286 (elf_backend_size_info): Likewise.
2288 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2290 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2292 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2293 (elf_link_input_bfd): Likewise.
2294 (elf_reloc_link_order): Likewise.
2295 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2296 relocations correctly.
2298 2001-05-28 Nicolas Pitre <nico@cam.org>
2300 * elf32-arm.h: fix PLT generation for big endian ARM
2302 2001-05-28 Alan Modra <amodra@one.net.au>
2304 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2305 for symbols forced local that need plabels.
2306 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2307 .plt.rela for local syms if non-shared.
2308 (hppa_build_one_stub): Mask lsb of plt.offset.
2309 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2310 (clobber_millicode_symbols): Correct comment.
2311 (elf32_hppa_relocate_section): Likewise.
2312 (elf32_hppa_finish_dynamic_symbol): Likewise.
2314 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2316 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2317 * bfd-in2.h: Regenerate.
2318 * libbfd.h: Regenerate.
2319 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2320 and BFD_RELOC_SPARC_UA64 mapping
2321 * elf64-sparc.c: Likewise.
2323 2001-05-25 H.J. Lu <hjl@gnu.org>
2325 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2326 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2327 (coff-rs6000.lo): Remove the old dependency.
2328 * Makefile.in: Rebuild.
2330 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2333 2001-05-25 H.J. Lu <hjl@gnu.org>
2335 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2336 rs6000coff_core_file_matches_executable_p,
2337 rs6000coff_core_file_failing_command and
2338 rs6000coff_core_file_failing_signal only if AIX_CORE is
2340 (pmac_xcoff_vec): Likewise.
2341 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2343 2001-05-25 Timothy Wall <twall@redhat.com>
2345 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2346 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2348 2001-05-25 H.J. Lu <hjl@gnu.org>
2350 * bfd-in2.h: Regenerated.
2351 * libcoff.h: Likewise.
2353 2001-05-25 Alan Modra <amodra@one.net.au>
2355 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2356 undefined millicode syms in shared libs.
2357 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2358 (elf32_hppa_check_relocs): Likewise.
2359 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2360 (elf32_hppa_size_dynamic_sections): Likewise.
2361 (elf32_hppa_relocate_section): Likewise.
2362 (elf32_hppa_finish_dynamic_symbol): Likewise.
2363 (elf32_hppa_finish_dynamic_sections): Likewise.
2365 2001-05-24 Tom Rix <trix@redhat.com>
2367 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2368 xcoff-target.h not used to define rs6000 or ppc bfd.
2371 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2374 * coff-rs6000.c : Many changes for 64 bit support. Move common
2375 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2378 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2379 linker now supported. Explictly define the rs6000coff64_vec.
2381 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2382 (coff_print_aux) same
2383 (coff_write_object_contents) same
2384 (coff_slurp_line_table) same
2386 * coffgen.c : (coff_fix_symbol_name) formatting
2387 (coff_mangle_symbols) xcoff 64 bit support
2388 (coff_write_symbol) same
2389 (coff_write_alien_symbol) same
2390 (coff_write_native_symbol) same
2391 (coff_write_symbols) same
2392 (coff_get_symbol_info) same
2393 (bfd_coff_get_syment) same
2394 (coff_print_symbol) same
2396 * config.bfd : add powerpc64-*-aix* target
2398 * libcoff-in.h : formatting
2400 * libcoff.h : move xcoff extern declarations to libxcoff.h
2402 * libxcoff.h : New file
2404 * xcofflink.c : Many changes for xcoff64 support. Move common
2405 structures to include/coff/xcoff.h. Move specific structure to
2406 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2407 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2409 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2412 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2414 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2416 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2419 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2421 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2422 * libbfd.h: Regenerate.
2423 * bfd-in2.h: Regenerate.
2425 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2426 * archures.c (bfd_mach_mips12000): Define.
2427 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2428 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2430 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2431 * bfd-in2.h: Regenerate.
2432 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2434 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2436 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2437 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2438 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2439 that is used by GCC.
2441 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2443 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2444 of entries in a structured section.
2445 * elf.c: Use new macro.
2446 * elf32-i386.c: Use new macro.
2447 * elf32-mips.c: Use new macro.
2448 * elf64-alpha.c: Use new macro.
2449 * elf64-sparc.c: Use new macro.
2450 * elfcode.h: Use new macro.
2451 * elflink.h: Use new macro.
2453 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2455 * bfdint.texi: Replace -oformat with --oformat.
2457 2001-05-21 Andreas Jaeger <aj@suse.de>
2459 * dwarf2.c (decode_line_info): Fix error message.
2460 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2461 adjust error message.
2463 2001-05-18 H.J. Lu <hjl@gnu.org>
2465 * elflink.h (elf_link_add_object_symbols): Revert the last
2468 2001-05-17 Alan Modra <amodra@one.net.au>
2470 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2471 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2472 (hppa_build_one_stub): Add an assert to check plt.offset.
2474 2001-05-17 H.J. Lu <hjl@gnu.org>
2476 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2477 version definition to basename of the output filename.
2479 2001-05-17 H.J. Lu <hjl@gnu.org>
2481 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2482 basename of the bfd filename.
2484 2001-05-16 Alan Modra <amodra@one.net.au>
2486 * section.c (asection): Add linker_has_input field.
2487 (STD_SECTION): Adjust initialization to suit.
2488 * ecoff.c (bfd_debug_section): Likewise.
2489 * bfd-in2.h: Regenerate.
2491 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2493 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2494 negative 32-bit operands to 16 operands when the operand is
2495 going to be zero-extended by the modified opcode.
2497 2001-05-12 Peter Targett <peter.targett@arccores.com>
2499 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2500 name for 'arc5' core versions.
2501 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2503 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2505 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2507 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2509 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2511 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2512 to .gnu.linkonce.t.FOO text section.
2514 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2516 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2517 fields, change sec into secinfo.
2518 (struct sec_merge_info): Add chain, remove last fields.
2519 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2520 (sec_merge_hash_lookup): If lookup could not use a string only
2521 because it has bad alignment, mark the old string for deletion.
2522 (sec_merge_add): Add secinfo argument. Don't compute entry's
2523 position, instead record the section.
2524 (sec_merge_emit): Update for the sec into secinfo change in
2525 struct sec_merge_hash_entry.
2526 (_bfd_merge_section): Only record the section for merging, defer
2527 putting strings into the hash table.
2528 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2529 _bfd_merge_sections): New functions.
2530 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2532 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2533 (_bfd_nolink_bfd_merge_sections): Define.
2534 * libbfd.h: Likewise.
2535 (bfd_generic_merge_sections): Add prototype.
2536 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2537 (struct bfd_target): Likewise.
2538 * bfd.c (bfd_merge_sections): Define.
2539 * bfd-in2.h: Rebuilt.
2540 * elf.c (_bfd_elf_merge_sections): New function.
2541 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2542 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2543 * reloc.c (bfd_generic_merge_sections): New function.
2544 * vms.c (vms_bfd_merge_sections): New function.
2545 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2546 * aout-target.h (MY_bfd_merge_sections): Define.
2547 * aout-tic30.c (MY_bfd_merge_sections): Define.
2548 * binary.c (binary_bfd_merge_sections): Define.
2549 * bout.c (b_out_bfd_merge_sections): Define.
2550 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2551 * coffcode.c (coff_bfd_merge_sections): Define.
2552 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2553 * i386msdos.c (msdos_bfd_merge_sections): Define.
2554 * i386os9k.c (os9k_bfd_merge_sections): Define.
2555 * ieee.c (ieee_bfd_merge_sections): Define.
2556 * ihex.c (ihex_bfd_merge_sections): Define.
2557 * nlm-target.h (nlm_bfd_merge_sections): Define.
2558 * oasys.c (oasys_bfd_merge_sections): Define.
2559 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2560 * som.c (som_bfd_merge_sections): Define.
2561 * srec.c (srec_bfd_merge_sections): Define.
2562 * tekhex.c (tekhex_bfd_merge_sections): Define.
2563 * versados.c (versados_bfd_merge_sections): Define.
2564 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2566 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2568 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2569 to be unsigned long, in order to match its use.
2571 2001-05-10 H.J. Lu <hjl@gnu.org>
2573 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2576 2001-05-09 H.J. Lu <hjl@gnu.org>
2578 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2579 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2580 Remove the unused veriable `dynver'.
2582 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2584 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2585 NULL or is not COFF.
2586 (coff_i386_rtype_to_howto): Don't dump core if output section
2589 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2591 * ecoff.c (bfd_debug_section): Fix initialization.
2592 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2593 is always a positive integer. Cast away sign mismatch.
2594 * elf32-mips.c: Fix misleading comment and typo.
2595 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2597 * elflink.c: Fix typo.
2598 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2599 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2601 2001-05-04 Richard Henderson <rth@redhat.com>
2603 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2605 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2607 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2608 EF_ARM_HASENTRY if the start address is set.
2610 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2612 * targets.c (_bfd_target_vector_entries): Compute value based on
2613 the size of the _bfd_target_vector and not bfd_target_vector.
2615 2001-05-03 H.J. Lu <hjl@gnu.org>
2617 * elfcode.h: Include "libiberty.h".
2619 * elflink.h (elf_link_add_object_symbols): Set
2620 elf_dt_name (abfd) to basename of the bfd filename.
2621 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2622 of the bfd filename.
2624 2001-05-03 Andreas Jaeger <aj@suse.de>
2626 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2627 (elf_generic_info_to_howto_rel): Likewise.
2628 * coff-alpha.c (reloc_nil): Likewise.
2629 (alpha_ecoff_bad_format_hook): Likewise.
2630 (alpha_adjust_reloc_out): Likewise.
2631 (alpha_bfd_reloc_type_lookup): Likewise.
2632 (alpha_convert_external_reloc): Likewise.
2633 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2634 (elf64_alpha_reloc_bad): Likewise.
2635 (elf64_alpha_reloc_gpdisp): Likewise.
2636 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2637 (elf64_alpha_info_to_howto): Likewise.
2638 (elf64_alpha_add_symbol_hook): Likewise.
2639 (elf64_alpha_create_got_section): Likewise.
2640 (elf64_alpha_is_local_label_name): Likewise.
2641 (elf64_alpha_merge_ind_symbols): Likewise.
2642 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2643 (mips_elf64_get_reloc_upper_bound): Likewise.
2644 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2645 (nlm_alpha_get_public_offset): Likewise.
2647 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2649 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2650 about overflow in R_OPENRISC_LO_16_IN_INSN and
2651 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2653 2001-04-30 H.J. Lu <hjl@gnu.org>
2655 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2656 only for ELF_LINK_FORCED_LOCAL.
2657 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2658 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2659 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2661 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2662 if the symbol has hidden or internal visibility.
2664 2001-04-30 Alan Modra <amodra@one.net.au>
2666 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2667 calls to undefined weak symbols.
2669 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2671 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2672 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2674 2001-04-27 Andreas Jaeger <aj@suse.de>
2676 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2677 out handled entries.
2678 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2679 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2680 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2683 2001-04-27 Sean McNeil <sean@mcneil.com>
2685 * config.bfd: Add arm-vxworks target.
2686 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2687 addend (fro VXworks targets).
2689 2001-04-26 H.J. Lu <hjl@gnu.org>
2691 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2694 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2696 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2697 * bfd-in2.h: Regenerated.
2699 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2701 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2702 (struct sec_merge_hash): Remove alignment_power.
2703 (sec_merge_hash_newfunc): Clear alignment.
2704 (sec_merge_hash_lookup): Pass alignment as argument.
2705 Use hashp->root.next, not hashp->next to walk the hash chain.
2706 If a string already in the hashtable does not have required
2707 alignment, create a new hashtable entry.
2708 (sec_merge_init): Remove alignment_power argument.
2709 (sec_merge_add): Add alignment argument.
2710 (sec_merge_emit): Alignment is now a per-entity thing, not per
2712 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2713 for proper alignment.
2714 Pass alignment information to sec_merge_add.
2716 2001-04-24 Christian Groessler <cpg@aladdin.de>
2718 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2719 and R_REL16 reloc types; accept odd values for R_REL16 type
2721 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2723 * cpu-openrisc.c: New file.
2724 * elf32-openrisc.c: Likewise.
2726 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2727 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2728 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2729 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2730 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2731 * Makefile.in: Regenerated.
2732 * config.bfd: (openrisc-*-elf): New target.
2733 * configure.in (bfd_elf32_openrisc_vec): New vector.
2734 * configure: Regenerated.
2735 * libbfd.h: Regenerated.
2736 * bfd-in2.h: Regenerated.
2737 * reloc.c: Add OpenRISC relocations.
2738 * targets.c (bfd_elf32_openrisc_vec): Declare.
2739 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2740 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2741 (bfd_openrisc_arch): Declare.
2742 (bfd_archures_list): Add bfd_openrisc_arch.
2743 * elf.c (prep_headers): Add bfd_arch_openrisc.
2745 2001-04-23 Bo Thorsen <bo@suse.de>
2747 * elf64-x86-64.c: Add c++ vtable hack.
2748 Small whitespace and comment changes.
2750 2001-04-19 Andreas Jaeger <aj@suse.de>
2752 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2753 (elf64_x86_64_plt_entry): Likewise.
2754 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2755 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2757 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2759 * elf32-cris.c: Tweak comments related to dynamic linking.
2760 (cris_elf_relocate_section): When not creating shared object, fill
2761 in the .got table for any symbol not in the dynamic symbol table.
2762 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2763 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2765 (cris_elf_check_relocs): Use variable r_type in all places rather
2766 than the original expression. Add default case in switch for
2768 (elf_cris_size_dynamic_sections): Iterate over
2769 elf_cris_discard_excess_program_dynamics when not creating shared
2771 (elf_cris_discard_excess_dso_dynamics): Renamed from
2772 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2773 (elf_cris_discard_excess_program_dynamics): New.
2775 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2777 * coffcode.h (coff_write_object_contents): Use
2778 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2780 2001-04-14 H.J. Lu <hjl@gnu.org>
2782 * bfd-in2.h: Regenerate.
2784 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2786 * section.c (STD_SECTION): Add entsize.
2788 2001-04-13 H.J. Lu <hjl@gnu.org>
2790 * section.c (SEC_MERGE): Define new flag for merging.
2791 (SEC_STRINGS): Likewise.
2792 (entsize): New field.
2794 2001-04-13 Roger Sayle <roger@metaphorics.com>
2796 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2797 flag on pe-i386 targets.
2799 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2801 * libbfd-in.h (_bfd_merge_section): New.
2802 (_bfd_write_merged_section): New.
2803 (_bfd_merged_section_offset): New.
2804 * libbfd.h: Rebuilt.
2805 * linker.c (_bfd_generic_link_output_symbols): Handle
2807 * aoutx.h (aout_link_write_symbols): Likewise.
2808 * pdp11.c (aout_link_write_symbols): Likewise.
2809 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2810 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2812 (elf_link_sec_merge_syms): New.
2813 (elf_link_input_bfd): Call _bfd_merged_section_offset
2814 and _bfd_write_merged_section.
2815 Handle discard_sec_merge.
2816 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2818 (struct bfd_elf_section_data): Likewise.
2819 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2820 SEC_STRINGS section flags and entsize from their ELF counterparts.
2821 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2822 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2823 from their BFD counterparts.
2824 * merge.c: New file.
2825 * Makefile.am: Add strtab.lo.
2826 * Makefile.in: Rebuilt.
2828 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2830 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2831 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2833 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2835 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2836 endian MIPS ELF target.
2837 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2840 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2841 64bit big endian MIPS ELF target.
2842 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2843 endian MIPS ELF target.
2844 * configure: Regenerated.
2846 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2847 little endian targets.
2848 (mips_elf_sym_is_global): Handle traditional targets.
2850 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2851 64bit big endian MIPS ELF target.
2852 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2853 endian MIPS ELF target.
2855 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2856 and bfd_elf64_tradlittlemips_vec.
2858 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2860 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2861 ordinary "progbits" section.
2863 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2865 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2866 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2868 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2870 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2872 2001-03-30 H.J. Lu <hjl@gnu.org>
2874 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2875 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2877 2001-03-26 H.J. Lu <hjl@gnu.org>
2879 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2880 if there are any relocations for generic ELF.
2881 (bfd_elf32_bfd_link_add_symbols): Defined to
2882 elf32_generic_link_add_symbols.
2883 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2884 if there are any relocations for generic ELF.
2885 (bfd_elf64_bfd_link_add_symbols): Defined to
2886 elf64_generic_link_add_symbols.
2888 2001-03-23 Nick Clifton <nickc@redhat.com>
2890 * Makefile.am (BUILD_CFILES): New variable: List of C source
2891 files created in build directory.
2892 (BUILD_HFILES): New variable: List of header files created in
2895 (po/POTFILES.in): Replace rule with empty entry.
2896 (po/SRC-POTFILES.in): New rule: Create a list of source files
2897 in the source directory.
2898 (po/BLD-POTFILES.in): New rule: Create a list of source files
2899 in the build directory.
2900 (MOSTLYCLEAN): Do not delete source files created in build
2902 * Makefile.in: Regenerate.
2903 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2905 * configure: Regenerate.
2907 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2909 Add .. to the search path when building bfd.pot.
2910 Delete POTFILES when performing distclean.
2911 Add comment describing why distclean is broken in maintainer mode.
2912 * po/POTFILES.in: Delete.
2913 * po/SRC-POTFILES.in: New file.
2914 * po/BLD-POTFILES.in: New file.
2915 * po/bfd.pot: Regenerate.
2917 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2919 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2920 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2921 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2922 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2923 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2924 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2926 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2927 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2928 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2929 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2930 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2931 New HOWTO members for new relocs.
2932 (cris_reloc_map): Map new relocs.
2933 (ELF_DYNAMIC_INTERPRETER): Define.
2934 (PLT_ENTRY_SIZE): Define.
2935 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2936 elf_cris_pic_plt_entry): New, PLT templates.
2937 (struct elf_cris_pcrel_relocs_copied, struct
2938 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2939 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2940 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2941 positive values. Adjust PCREL relocs to be relative to location
2943 (cris_elf_relocate_section): Handle relocations to dynamic
2944 objects. Handle new relocations. Call error handler when seeing
2945 non-PIC relocation for read-only sections while generating shared
2947 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2949 (bfd_elf32_bfd_link_hash_table_create,
2950 elf_backend_adjust_dynamic_symbol,
2951 elf_backend_size_dynamic_sections,
2952 elf_backend_finish_dynamic_symbol,
2953 elf_backend_finish_dynamic_sections,
2954 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2955 elf_backend_hide_symbol, elf_backend_want_got_plt,
2956 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2957 elf_backend_got_header_size, elf_backend_plt_header_size):
2960 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2961 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2962 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2963 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2964 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2965 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2966 * bfd-in2.h, libbfd.h: Regenerate.
2968 2001-03-21 Diego Novillo <dnovillo@redhat.com>
2970 (_bfd_mips_elf_relocate_section): Give a better error message when
2971 a relocation is not recognized.
2973 2001-03-21 Alan Modra <alan@linuxcare.com.au>
2975 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2976 non-NULL before attempting to dereference.
2978 2001-03-20 H.J. Lu <hjl@gnu.org>
2980 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2981 * configure: Rebuild.
2983 2001-03-20 Andreas Schwab <schwab@suse.de>
2985 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2986 relocation value when resolving a reference from a debugging
2989 2001-03-16 Scott Thomason <SThomaso@hii.com>
2991 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2992 (xcoff64_swap_sym_out): Fix syntax errors.
2994 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
2996 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
2998 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3000 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3001 (hppa_link_hash_newfunc): Init it.
3002 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3003 section appears to be non-PIC.
3004 (final_link_relocate): Likewise.
3005 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3006 possible candidate function, and set pic_call for those that will
3007 only have a .plt entry for the PIC call stub.
3008 (hppa_handle_PIC_calls): Set maybe_pic_call.
3010 2001-03-12 DJ Delorie <dj@redhat.com>
3012 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3013 R_SH_DIR8WP* relocs if they're against external symbols, else
3014 they're just for relaxing. Validate the reloc values.
3016 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3018 * binary.c (bfd_external_binary_architecture): Declare.
3019 (binary_object_p): If bfd_external_binary_architecture is defined,
3020 set the architecture to this string.
3022 2001-03-11 Philip Blundell <philb@gnu.org>
3024 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3025 entries that could serve as a definition for a weak symbol.
3027 2001-03-08 Nick Clifton <nickc@redhat.com>
3029 * Most files: Update copyright notices using Perl script created
3030 by Kevin Buettner <kevinb@redhat.com>.
3032 2001-03-07 Nick Clifton <nickc@redhat.com>
3034 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3035 prior patch on ! defined OLD_ARM_ABI.
3037 2001-03-07 Andreas Jaeger <aj@suse.de>
3039 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3040 some relocation values.
3042 2001-03-06 Nick Clifton <nickc@redhat.com>
3044 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3045 of offset in BLX(1) instruction.
3046 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3047 offset in BLX(1) instruction.
3050 2001-03-06 Nick Clifton <nickc@redhat.com>
3052 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3053 BFD_RELOC_THUMB_PCREL_BLX.
3055 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3057 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3058 * bfd-in2.h: Regenerate.
3059 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3060 * ieee.c (ieee_write_processor): Set proper id for
3063 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3065 * configure.in: Add s390 target.
3066 * configure: Regenerate.
3068 2001-02-28 Andreas Jaeger <aj@suse.de>
3070 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3073 2001-02-28 Philip Blundell <pb@futuretv.com>
3075 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3076 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3078 2001-02-27 H.J. Lu <hjl@gnu.org>
3080 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3081 abfd->tdata.aout_data == NULL.
3083 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3085 * elf32-hppa.c: Correct field selector in stub comments.
3086 (clobber_millicode_symbols): Formatting fix.
3088 * configure.in: Bump version to 2.11.90.
3089 * configure: Regenerate.
3090 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3091 (CFILES): $SOURCE_CFILES + generated C files.
3092 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3094 * Makefile.in: Regenerate.
3095 * doc/Makefile.in: This too.
3097 2001-02-26 Timothy Wall <twall@cygnus.com>
3099 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3102 2001-02-26 Nick Clifton <nickc@redhat.com>
3104 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3105 up, replacing multiple if statements with a switch.
3106 (handle_COMDAT): New function.
3108 2001-02-26 H.J. Lu <hjl@gnu.org>
3110 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3111 a warning for section flags we do not handle instead of
3114 2001-02-26 Andreas Jaeger <aj@suse.de>
3116 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3118 2001-02-22 Timothy Wall <twall@cygnus.com>
3120 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3121 * configure.in: Add objects for elf64_ia64_aix vectors.
3122 * configure: Regenerated.
3123 * configure.host: Recognize ia64-*-aix*.
3124 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3125 for AIX. AIX5 requires most relocations to be dynamic (*all*
3126 binaries are somewhat similar to shared libraries).
3127 * targets.c: Add elf64_ia64_aix vectors.
3129 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3131 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3132 C8 said "1" instead of "8". Clarify error string for IMM22:
3133 "signed integer" instead of just "integer".
3135 2001-02-20 Andreas Jaeger <aj@suse.de>
3137 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3138 PLT entries that could serve as a definition for a weak symbol.
3140 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3142 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3143 entries that could serve as a definition for a weak symbol.
3144 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3146 2001-02-18 David O'Brien <obrien@FreeBSD>
3148 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3149 FreeBSD/i386-CURRENT differently until I can figure out the needed
3151 * configure: Regenerate.
3152 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3153 FreeBSD/PowerPC, and FreeBSD/sparc64.
3155 2001-02-18 lars brinkhoff <lars@nocrew.org>
3157 * Makefile.am: Add PDP-11 a.out target.
3158 * config.bfd: Likewise.
3159 * configure.in: Likewise.
3160 * targets.c: Likewise.
3161 * archures.c: Likewise.
3162 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3163 * libbfd.h: Add PDP-11 relocations.
3164 * reloc.c: Likewise.
3165 * cpu-pdp11.c: New file.
3166 * pdp11.c: New file.
3168 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3169 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3170 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3171 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3172 (GET_MAGIC): New macro.
3173 (PUT_MAGIC): Likewise.
3174 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3176 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3178 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3179 multiarch needs it).
3181 2001-02-18 H.J. Lu <hjl@gnu.org>
3183 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3186 2001-02-18 Kazu Hirata <kazu@hxi.com>
3188 * vms-misc.c: Fix formatting.
3190 2001-02-16 Kazu Hirata <kazu@hxi.com>
3192 * vms.c: Fix formatting.
3194 2001-02-14 H.J. Lu <hjl@gnu.org>
3196 * elf.c (elf_find_function): New function.
3197 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3198 the file name and function name.
3200 2001-02-14 Nick Clifton <nickc@redhat.com>
3202 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3205 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3206 (BFD64_BACKENDS): Add pepigen.c
3207 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3209 * Makefile.in: Regenerate.
3210 * configure: Regenerate.
3211 * po/POTFILES.in: Regenerate.
3212 * po/bfd.pot: Regenerate.
3214 2001-02-14 H.J. Lu <hjl@gnu.org>
3216 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3217 force_minimum_alignment.
3219 2001-02-14 Bo Thorsen <bo@suse.de>
3221 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3222 (elf64_86_64_size_info): Struct added to fix a problem
3223 with the hashtable string entries.
3224 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3225 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3226 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3227 remove the FIXME for this.
3228 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3229 section. Also removed the FIXME for it.
3230 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3231 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3232 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3234 2001-02-13 Richard Henderson <rth@redhat.com>
3236 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3237 and not user provided.
3239 2001-02-13 Kazu Hirata <kazu@hxi.com>
3241 * vms.c (vms_print_symbol): Remove unreachable code.
3243 * rs6000-core.c: Fix formatting.
3245 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3247 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3248 as _bfd_XXi_only_swap_filehdr_out.
3249 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3250 pe->force_minimum_alignment to TRUE.
3251 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3252 PEI_TARGET_SUBSYSTEM.
3253 (pe_print_private_bfd_data): Call
3254 _bfd_XX_print_private_bfd_data_common() instead of
3255 _bfd_pe_print_private_bfd_data_common().
3256 (pe_bfd_copy_private_bfd_data): Call
3257 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3258 _bfd_pe_bfd_copy_private_bfd_data_common().
3259 (coff_bfd_copy_private_section_data): Define as
3260 _bfd_XX_bfd_copy_private_section_data instead of
3261 _bfd_pe_bfd_copy_private_section_data.
3262 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3263 of a _bfd_pe_get_symbol_info.
3267 * peXXigen.c: Renamed from peigen.c.
3268 (COFF_WITH_XX): Define this macro (will get expanded into
3269 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3270 compiled as peigen.c or pepigen.c.
3271 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3272 define the canonical PEP structures and definitions.
3273 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3274 effect, enforce minimum file and section alignments. If
3275 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3276 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3277 so, by default, this is a no-op).
3279 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3280 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3281 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3282 _bfd_pefoo if it's not defined. Use these macros to define
3285 * libcoff.h (pe_tdata): Add members target_subsystem and
3286 force_minimum_alignment.
3288 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3290 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3292 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3295 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3296 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3299 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3300 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3301 (peigen.c): Add rule to generate from peXXigen.c.
3303 (pepigen.lo): List dependencies for pepigen.lo.
3305 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3307 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3308 $global$ referenced but not defined, set its value here.
3310 2001-02-09 Bo Thorsen <bo@suse.de>
3312 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3314 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3316 (elf64_x86_64_relocate_section): Fix formatting.
3317 (elf64_x86_64_relocate_section): Fix addend for relocation of
3318 R_X86_64_(8|16|32|PC8|PC16|PC32).
3320 2001-02-12 Jan Hubicka <jh@suse.cz>
3322 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3324 2001-02-11 H.J. Lu <hjl@gnu.org>
3326 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3329 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3331 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3332 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3333 relocations against dynsym symbols.
3335 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3336 the R_MIPS_26 relocation.
3337 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3338 the R_MIPS_26 relocation.
3339 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3341 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3342 the R_MIPS_26 relocation.
3343 (mips_elf64_howto_table_rela): Likewise.
3345 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3346 member to mark symbols that have non-CALL relocations against
3348 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3349 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3351 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3352 non-CALL relocation against it is encountered.
3353 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3354 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3355 no_fn_stub is not set.
3357 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3358 information from the real symbol for indirect ones.
3359 Check no_fn_stub to find out if a symbol has a function stub
3362 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3364 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3365 * Makefile.in: Regenerate.
3367 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3369 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3370 true if section name is an unwind table section name.
3371 (elfNN_ia64_additional_program_headers): Count each unwind section
3373 (elfNN_ia64_modify_segment_map): Install one unwind program header
3374 for each unwind separate section. Note: normally the linker
3375 script merges the unwind sections that go into a single segment,
3376 so this still generates at most one unwind program header per
3379 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3380 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3381 (elfNN_ia64_fake_sections): Mark sections with names that start
3382 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3385 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3386 Use it to make sh_info in unwind section point to the text section
3389 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3391 * Makefile.am: Add linux target for S/390.
3392 * archures.c: Likewise.
3393 * bfd-in2.h: Likewise.
3394 * config.bfd: Likewise.
3395 * configure.in: Likewise.
3397 * libbfd.h: Likewise.
3398 * targets.c: Likewise.
3399 * cpu-s390.c: New file.
3400 * elf32-s390.c: New file.
3401 * elf64-s390.c: New file.
3403 2001-02-09 Nick Clifton <nickc@redhat.com>
3405 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3406 ImageBase. This has already been done by coff_swap_hdr_in.
3408 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3410 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3412 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3414 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3415 (sparc64_elf_relocate_section): Likewise.
3417 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3419 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3420 similar to R_SPARC_32.
3421 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3423 2001-02-08 H.J. Lu <hjl@gnu.org>
3425 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3426 relocation entries for weak definitions when building DSO with
3429 2001-02-08 Richard Henderson <rth@redhat.com>
3431 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3432 before visibility. Locally defined protected symbols are not
3435 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3437 * config.bfd: Enable coff64 for rs6000-*. Patch from
3438 <hzoli@austin.ibm.com>.
3440 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3442 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3443 found, do not attempt to find dwarf2 info before returning.
3445 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3447 * elflink.h (is_global_symbol_definition): Rename to
3448 is_global_data_symbol_definition and have it reject function
3450 (elf_link_is_defined_archive_symbol): Use renamed function.
3452 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3454 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3455 * libbfd.h (bfd_target_vector): Likewise.
3456 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3457 make static; create pointer reference named bfd_target_vector.
3458 (_bfd_target_vector_entries): Calculate this based on the array
3459 typed _bfd_target_vector.
3461 2001-02-06 H.J. Lu <hjl@gnu.org>
3463 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3464 internal symbols are not dynamic.
3465 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3467 2001-02-06 Nick Clifton <nickc@redhat.com>
3469 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3470 that it will not be pulled into the list of files that make up
3472 * Makefile.in: Regenerate.
3473 * po/bfd.pot: Regenerate.
3475 2001-02-06 H.J. Lu <hjl@gnu.org>
3477 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3479 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3480 external_PEI_IMAGE_hdr.
3482 2001-02-06 Kazu Hirata <kazu@hxi.com>
3484 * elf-m10200.c: Fix formatting.
3486 2001-02-04 Nick Clifton <nickc@redhat.com>
3488 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3489 rel, it will be handled later on.
3491 2001-02-02 Fred Fish <fnf@ninemoons.com>
3493 * Makefile.in: Fix typo.
3495 2001-02-01 Kazu Hirata <kazu@hxi.com>
3497 * elf-m10300.c: Fix formatting.
3499 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3501 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3502 (elf_backend_get_symbol_type): Define.
3503 (elf64_hppa_object_p): Set architecture and machine from elf
3506 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3508 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3511 2001-01-26 Richard Henderson <rth@redhat.com>
3513 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3514 for non-default visibility.
3515 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3516 delete ugly macro and replace with pretty function.
3518 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3520 * coff-go32.c: Update copyright.
3521 * coff-stgo32.c: Likewise.
3522 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3523 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3524 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3525 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3527 2001-01-25 Kazu Hirata <kazu@hxi.com>
3529 * bfd-in2.h: Rebuild.
3530 * libbfd.h: Likewise.
3532 2001-01-23 H.J. Lu <hjl@gnu.org>
3534 * bfd-in2.h: Rebuild.
3536 2001-01-23 H.J. Lu <hjl@gnu.org>
3538 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3539 is NULL or PRIV(vms_rec) is outside of the buffer.
3541 2001-01-23 Kazu Hirata <kazu@hxi.com>
3543 * coff64-rs6000.c: Fix formatting.
3544 * coff-arm.c: Likewise.
3545 * coffgen.c: Likewise.
3546 * cofflink.c: Likewise.
3547 * coff-mcore.c: Likewise.
3548 * coff-mips.c: Likewise.
3549 * coff-pmac.c: Likewise.
3550 * coff-ppc.c: Likewise.
3551 * coff-rs6000.c: Likewise.
3552 * elf32.c: Likewise.
3553 * elf32-fr30.c: Likewise.
3554 * elf32-i370.c: Likewise.
3555 * elf32-i860.c: Likewise.
3556 * elf32-m32r.c: Likewise.
3557 * elf32-m68k.c: Likewise.
3558 * elf32-mcore.c: Likewise.
3559 * elf32-ppc.c: Likewise.
3560 * elf32-sh.c: Likewise.
3561 * elf32-v850.c: Likewise.
3562 * elf64-alpha.c: Likewise.
3563 * elf64-sparc.c: Likewise.
3564 * elflink.c: Likewise.
3565 * elflink.h: Likewise.
3566 * elf-m10200.c: Likewise.
3567 * elf-m10300.c: Likewise.
3568 * elfxx-ia64.c: Likewise.
3570 * aoutx.h: Fix formatting.
3572 * bfd-in2.h: Likewise.
3573 * bfd-in.h: Likewise.
3574 * cpu-i386.c: Likewise.
3575 * cpu-m68hc11.c: Likewise.
3576 * dwarf2.c: Likewise.
3577 * elf64-x86-64.c: Likewise.
3578 * format.c: Likewise.
3579 * freebsd.h: Likewise.
3581 * hp300hpux.c: Likewise.
3582 * hppabsd-core.c: Likewise.
3583 * hpux-core.c: Likewise.
3585 2001-01-22 Bo Thorsen <bo@suse.de>
3587 * elf64-x86-64.c: Added PIC support for X86-64.
3588 (elf64_x86_64_link_hash_newfunc): Function added.
3589 (elf64_x86_64_link_hash_table_create): Likewise.
3590 (elf64_x86_64_check_relocs): Likewise.
3591 (elf64_x86_64_gc_mark_hook): Likewise.
3592 (elf64_x86_64_gc_sweep_hook): Likewise.
3593 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3594 (elf64_x86_64_size_dynamic_sections): Likewise.
3595 (elf64_x86_64_discard_copies): Likewise.
3596 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3597 (elf64_x86_64_finish_dynamic_sections): Likewise.
3598 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3600 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3602 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3603 * Makefile.in: Regenerate.
3605 2001-01-21 Kazu Hirata <kazu@hxi.com>
3607 * coff-a29k.c: Fix formatting.
3609 2001-01-19 H.J. Lu <hjl@gnu.org>
3611 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3612 relocation section names.
3613 (elf_i386_relocate_section): Report files with bad relocation
3614 section names and return false.
3616 2001-01-17 Bo Thorsen <bo@suse.de>
3618 * targets.c: Alphabetize list of xvecs.
3620 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3622 * config.bfd: Add linux target variant for elfxx-hppa.
3623 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3624 bfd_elf64_hppa_linux_vec.
3625 * configure: Regenerate.
3626 * elf64-hppa.c: Include elf64-target.h again to support linux
3628 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3629 * elf32-hppa.c: Include elf32-target.h again to support linux
3631 (elf32_hppa_post_process_headers): New function.
3632 (elf_backend_post_process_headers): Define.
3633 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3634 bfd_elf32_hppa_linux_vec.
3636 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3637 and data_segment_base fields.
3638 (elf32_hppa_link_hash_table_create ): Init them.
3639 (elf32_hppa_check_relocs): Update comments.
3640 (hppa_record_segment_addr): New function.
3641 (elf32_hppa_relocate_section): Call it.
3642 (final_link_relocate): Handle R_PARISC_SEGREL32.
3643 (elf32_hppa_final_link): New function.
3644 (bfd_elf32_bfd_final_link): Define to call it.
3645 (hppa_unwind_entry_compare): New function.
3646 * cache.c (bfd_open_file): Create files in write+read mode.
3648 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3649 SEGREL32 and numerous other relocs. Change duplicate
3650 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3652 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3655 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3656 .plt entries for DT_INIT and DT_FINI.
3657 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3658 DT_INIT and DT_FINI.
3660 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3661 offsets for stub .plt access if wide mode. Check offset in range.
3663 2001-01-13 Nick Clifton <nickc@redhat.com>
3665 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3668 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3671 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3673 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3674 * configure: Regenerate.
3676 2001-01-11 Peter Targett <peter.targett@arccores.com>
3678 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3679 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3680 * cpu-arc.c (arch_info_struct): Add entries for variants.
3681 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3682 (arc_get_mach) Don't assume machine names prefixed arc- before
3684 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3686 (arc_elf_final_write_processing) Likewise.
3687 (ELF_MACHINE_CODE) Use EM_ARC.
3689 2001-01-10 Nick Clifton <nickc@redhat.com>
3691 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3693 2001-01-07 Philip Blundell <philb@gnu.org>
3695 * README: Replace `bug-gnu-utils@gnu.org' with
3696 `bug-binutils@gnu.org'.
3698 2001-01-04 Kazu Hirata <kazu@hxi.com>
3700 * som.c: Fix formatting.
3702 2001-01-03 Kazu Hirata <kazu@hxi.com>
3704 * ecoffswap.h: Fix formatting.
3705 * elf-bfd.h: Likewise.
3706 * elfarm-nabi.c: Likewise.
3707 * elfarm-oabi.c: Likewise.
3708 * elfcode.h: Likewise.
3709 * elfcore.h: Likewise.
3710 * elflink.c: Likewise.
3711 * elflink.h: Likewise.
3712 * elfxx-ia64.c: Likewise.
3713 * elfxx-target.h: Likewise.
3714 * libbfd.c: Likewise
3715 * linker.c: Likewise.
3716 * lynx-core.c: Likewise.
3718 2001-01-02 Kazu Hirata <kazu@hxi.com>
3720 * pc532-mach.c: Fix formatting.
3721 * pe-arm.c: Likewise.
3722 * pe-i386.c: Likewise.
3723 * pe-mips.c: Likewise.
3724 * pe-ppc.c: Likewise.
3725 * pe-sh.c: Likewise.
3726 * pei-mips.c: Likewise.
3727 * pei-sh.c: Likewise.
3728 * peicode.h: Likewise.
3729 * ppcboot.c: Likewise.
3730 * ptrace-core.c: Likewise.
3732 2001-01-01 Kazu Hirata <kazu@hxi.com>
3734 * reloc.c: Fix formatting.
3735 * riscix.c: Likewise.
3736 * rs6000-core.c: Likewise.
3737 * xcoff-target.h: Likewise.
3739 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3741 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3742 error, by calling bfd_default_set_arch_mach with incoming
3745 2000-12-26 Kazu Hirata <kazu@hxi.com>
3747 * vaxnetbsd.c: Fix formatting.
3748 * versados.c: Likewise.
3749 * vms-gsd.c: Likewise.
3750 * vms-hdr.c: Likewise.
3751 * vms-misc.c: Likewise.
3753 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3755 * archive.c (coff_write_armap): Don't write more than symbol_count
3756 `archive_member_file_ptr's.
3758 2000-12-25 Kazu Hirata <kazu@hxi.com>
3760 * vms-tir.c: Fix formatting.
3762 2000-12-23 Kazu Hirata <kazu@hxi.com>
3764 * vms.c: Fix formatting.
3767 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3769 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3771 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3773 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3776 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3778 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3780 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3782 * libbfd.c (bfd_get_bits): Added
3783 (bfd_put_bits): Likewise
3784 * bfd-in.h: Declared the above.
3785 * bfd-in2.h: Regenerated.
3787 2000-12-20 Kazu Hirata <kazu@hxi.com>
3789 * targets.c: Fix formatting.
3790 * tekhex.c: Likewise.
3791 * trad-core.c: Likewise.
3793 2000-12-19 Kazu Hirata <kazu@hxi.com>
3795 * sco5-core.c: Fix formatting.
3796 * section.c: Likewise.
3797 * sparclinux.c: Likewise.
3798 * sparclynx.c: Likewise.
3799 * sparcnetbsd.c: Likewise.
3801 * stabs.c: Likewise.
3802 * stab-syms.c: Likewise.
3803 * sunos.c: Likewise.
3805 * sysdep.h: Likewise.
3807 2000-12-18 Nick Clifton <nickc@redhat.com>
3809 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3811 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3812 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3814 2000-12-18 Nick Clifton <nickc@redhat.com>
3816 * vms-misc.c (_bfd_vms_get_record): Add default case to
3819 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3821 * elfcore.h (elf_core_file_p): Move to the start of the program
3822 headers before attempting to read them.
3824 2000-12-14 Kazu Hirata <kazu@hxi.com>
3826 * peigen.c: Fix formatting.
3830 2000-12-13 Kazu Hirata <kazu@hxi.com>
3832 * peigen.c: Fix formatting.
3834 2000-12-12 Jim Wilson <wilson@redhat.com>
3836 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3838 2000-12-08 Mark Salter <msalter@redhat.com>
3840 * binary.c (binary_set_section_contents): Ignore sections
3843 2000-12-12 Kazu Hirata <kazu@hxi.com>
3845 * m68klinux.c: Fix formatting.
3846 * m68knetbsd.c: Likewise.
3847 * mipsbsd.c: Likewise.
3848 * netbsd-core.c: Likewise.
3849 * netbsd.h: Likewise.
3850 * newsos3.c: Likewise.
3851 * nlm32-alpha.c: Likewise.
3852 * nlm32-i386.c: Likewise.
3853 * nlm32-ppc.c: Likewise.
3854 * nlm32-sparc.c: Likewise.
3855 * nlmcode.h: Likewise.
3856 * nlmswap.h: Likewise.
3857 * nlm-target.h: Likewise.
3858 * ns32knetbsd.c: Likewise.
3860 2000-12-10 Fred Fish <fnf@be.com>
3862 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3863 symbols in shared objects if allow_shlib_undefined is true.
3865 2000-12-12 Nick Clifton <nickc@redhat.com>
3867 * cpu-sh.c: Fix formattng.
3868 * elf.c: Fix formattng.
3869 * elf32-mips.c: Fix formattng.
3870 * elf32-sh.c: Fix formattng.
3871 * elf64-alpha.c: Fix formattng.
3873 2000-12-09 Nick Clifton <nickc@redhat.com>
3875 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3876 dwarf2_find_line_info as last parameter to invocation of
3877 _bfd_dwarf2_find_nearest_line.
3878 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3879 dwarf2_find_line_info as last parameter to invocation of
3880 _bfd_dwarf2_find_nearest_line.
3882 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3884 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3885 (BFD_LIBS): ...to here.
3886 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3887 (BFD_LIBS_CFILES): ...to here.
3888 * Makefile.in: Regenerate.
3889 * configure.in: Remove dwarf.lo from the elf shell variable.
3890 * configure: Regenerate.
3891 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3892 * libcoff.h: Regenerate.
3893 * coffgen.c (coff_find_nearest_line): Call
3894 _bfd_dwarf2_find_nearest_line.
3895 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3897 (read_abbrevs): Likewise
3898 (decode_line_info): Likewise.
3899 (parse_comp_unit): Likewise.
3900 (comp_unit_find_nearest_line): Likewise.
3901 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3902 * libbfd.h: Regenerate.
3903 * elf.c (_bfd_elf_find_nearest_line): Update call.
3904 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3905 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3906 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3907 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3908 (styp_to_sec_flags): Handle DWARF2 sections.
3909 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3910 to _bfd_find_nearest_line.
3911 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3912 call to _bfd_find_nearest_line.
3914 2000-12-08 Kazu Hirata <kazu@hxi.com>
3916 * coffgen.c: Fix formatting.
3917 * elf-m10300.c: Likewise.
3918 * elf32-i386.c: Likewise.
3919 * elf32-i960.c: Likewise.
3920 * elf32-m68k.c: Likewise.
3921 * elf32-mcore.c: Likewise.
3922 * elf32-ppc.c: Likewise.
3923 * elf32-sh.c: Likewise.
3924 * elf32-sparc.c: Likewise.
3925 * elf32-v850.c: Likewise.
3926 * elf64-alpha.c: Likewise.
3927 * elf64-hppa.c: Likewise.
3928 * elf64-mips.c: Likewise.
3929 * elf64-sparc.c: Likewise.
3931 2000-12-07 Kazu Hirata <kazu@hxi.com>
3933 * elf32-ppc.c: Fix formatting.
3934 * elf64-x86-64.c: Likewise.
3936 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3938 From Ralf Baechle <ralf@gnu.org>
3940 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3941 BFDs containing no sections or empty .text, .data or .bss sections
3942 to be merged, regardless of their flags.
3944 2000-12-06 Kazu Hirata <kazu@hxi.com>
3946 * elf32-m32r.c: Fix formatting.
3947 * elf32-m68hc11.c: Likewise.
3948 * elf32-m68hc12.c: Likewise.
3949 * elf32-m68k.c: Likewise.
3950 * elf32-mcore.c: Likewise.
3951 * elf32-pj.c: Likewise.
3952 * elf32-ppc.c: Likewise.
3954 2000-12-05 Kazu Hirata <kazu@hxi.com>
3956 * elf32-fr30.c: Fix formatting.
3957 * elf32-hppa.c: Likewise.
3958 * elf32-i370.c: Likewise.
3959 * elf32-i386.c: Likewise.
3960 * elf32-i860.c: Likewise.
3961 * elf32-i960.c: Likewise.
3963 2000-12-03 Kazu Hirata <kazu@hxi.com>
3965 * elf32-arm.h: Fix formatting.
3966 * elf32-avr.c: Likewise.
3967 * elf32-cris.c: Likewise.
3968 * elf32-d10v.c: Likewise.
3969 * elf32-d30v.c: Likewise.
3970 * elf-hppa.h: Likewise.
3971 * elf-m10200.c: Likewise.
3972 * elf-m10300.c: Likewise.
3974 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3976 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3977 bfd_mach_mips32_4k. Update FIXME comment.
3978 * archures.c (bfd_mach_mips32): New constant.
3979 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3980 the latter, renumber it.
3981 * bfd-in2.h (bfd_mach_mips32): New constant.
3982 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3983 the latter, renumber it.
3984 * cpu-mips.c (I_mips32): New constant.
3985 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3986 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3987 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3988 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3989 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3990 with E_MIPS_MACH_MIPS32_4K.
3991 (_bfd_mips_elf_final_write_processing): Replace
3992 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3993 bfd_mach_mips32 case.
3994 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
3995 comparison with support for MIPS32.
3996 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
3999 * aoutx.h (NAME(aout,machine_type)): Add cases for
4000 bfd_mach_mips5 and bfd_mach_mips64.
4001 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4002 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4003 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4004 (arch_info_struct): Add entries for bfd_mach_mips5 and
4006 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4007 _bfd_mips_elf_print_private_bfd_data): Add cases for
4008 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4009 (_bfd_mips_elf_final_write_processing): Add cases for
4010 bfd_mach_mips5 and bfd_mach_mips64.
4012 * aoutx.h (NAME(aout,machine_type)): Add a
4013 bfd_mach_mips_sb1 case.
4014 * archures.c (bfd_mach_mips_sb1): New constant.
4015 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4016 * cpu-mips.c (I_sb1): New constant.
4017 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4018 * elf32-mips.c (elf_mips_mach): Add case for
4020 (_bfd_mips_elf_final_write_processing): Add case for
4023 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4025 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4026 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4027 (sparc*-*-rtems*): Switched from a.out to ELF.
4029 2000-11-30 Jan Hubicka <jh@suse.cz>
4031 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4032 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4033 (elf64-x86-64.lo): Add dependencies.
4034 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4035 bfd_mach_x86_64_intel_syntax.
4036 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4037 * config.bfd (x86_64): Add.
4038 * configure.in: Add support for bfd_elf64_x86_64_vec.
4039 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4040 (bfd_i386_arch, i8086_ar): Link in.
4041 * elf64-x86-64.c: New file.
4042 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4043 * targets.c (bfd_elf64_x86_64_vec): Add.
4044 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4046 2000-11-30 Kazu Hirata <kazu@hxi.com>
4048 * xcofflink.c: Fix formatting.
4050 2000-11-28 Kazu Hirata <kazu@hxi.com>
4052 * aoutx.h: Fix formatting.
4053 * bfd-in.h: Likewise.
4054 * bfd-in2.h: Likewise.
4055 * cache.c: Likewise.
4056 * cisco-core.c: Likewise.
4057 * coff64-rs6000.c: Likewise.
4058 * coffcode.h: Likewise.
4059 * coffswap.h: Likewise.
4060 * corefile.c: Likewise.
4061 * elf32-mips.c: Likewise.
4063 2000-11-27 Kazu Hirata <kazu@hxi.com>
4065 * aout-adobe.c: Fix formatting.
4066 * coff64-rs6000.c: Likewise.
4067 * coffgen.c: Likewise.
4068 * cofflink.c: Likewise.
4070 2000-11-27 Philip Blundell <pb@futuretv.com>
4072 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4073 (obj_coff_strings_written): New accessor macro for above.
4074 * libcoff.h: Regenerate.
4075 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4077 * coffcode.h (coff_write_object_contents): No need to write out
4078 the string table if it's already been done.
4080 2000-11-22 Philip Blundell <pb@futuretv.com>
4082 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4083 weak undefined symbols.
4085 2000-11-24 Nick Clifton <nickc@redhat.com>
4087 * archures.c (bfd_mach_arm_5TE): Define.
4088 (bfd_mach_arm+XScale): Define.
4089 * bfd-in2.h: Regenerate.
4091 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4092 BFD_RELOC_ARM_PCREL_BLX.
4094 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4095 XScale machine numbers.
4097 * config.bfd (xscale-elf): Add target.
4098 (xscale-coff): Add target.
4100 * cpu-arm.c: Add xscale machine name.
4101 Add v5t, v5te and XScale machine numbers.
4103 2000-11-23 Kazu Hirata <kazu@hxi.com>
4105 * aix386-core.c: Fix formatting.
4107 2000-11-22 Jim Wilson <wilson@redhat.com>
4109 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4110 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4111 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4112 (ins_imms_scaled): Initialize sign_bit at function entry.
4113 (elf64_ia64_operands): Add missing initializers.
4114 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4115 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4116 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4117 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4118 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4120 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4121 and free_extsyms at function entry.
4122 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4123 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4124 (get_got): Delete unused local srel.
4125 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4126 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4128 2000-11-21 Kazu Hirata <kazu@hxi.com>
4130 * coff-a29k.c: Fix formatting.
4131 * coff-h8500.c: Likewise.
4132 * coff-i960.c: Likewise.
4133 * coff-ppc.c: Likewise.
4134 * coff-rs6000.c: Likewise.
4135 * coff-stgo32.c: Likewise.
4136 * coff-tic54x.c: Likewise.
4137 * coff-w65.c: Likewise.
4138 * cpu-h8500.c: Likewise.
4139 * cpu-hppa.c: Likewise.
4140 * cpu-ns32k.c: Likewise.
4141 * ecoff.c: Likewise.
4142 * ecofflink.c: Likewise.
4144 2000-11-21 Nick Clifton <nickc@redhat.com>
4146 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4147 remove possibility of infinite loop.
4149 2000-11-20 Kazu Hirata <kazu@hxi.com>
4151 * aix386-core.c: Fix formatting.
4152 * aout-adobe.c: Likewise.
4153 * aout-arm.c: Likewise.
4154 * aout-encap.c: Likewise.
4155 * aout-ns32k.c: Likewise.
4156 * aout-target.h: Likewise.
4157 * aout-tic30.c: Likewise.
4158 * aoutf1.h: Likewise.
4159 * aoutx.h: Likewise.
4160 * archive.c: Likewise.
4161 * bfd-in.h: Likewise.
4162 * bfd-in2.h: Likewise.
4166 2000-11-17 H.J. Lu <hjl@gnu.org>
4168 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4169 pltoff entries for DT_INIT and DT_FINI.
4170 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4171 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4174 2000-11-16 Richard Henderson <rth@redhat.com>
4176 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4177 (allocate_dynrel_entries): Likewise.
4178 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4179 (set_pltoff_entry): Likewise.
4180 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4181 (elfNN_ia64_reloc_type_lookup): Likewise.
4182 (elfNN_ia64_install_value): Likewise.
4183 (elfNN_ia64_relocate_section): Likewise.
4184 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4185 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4187 2000-11-16 Kazu Hirata <kazu@hxi.com>
4189 * cpu-a29k.c: Fix formatting.
4190 * cpu-alpha.c: Likewise.
4191 * cpu-arm.c: Likewise.
4192 * cpu-avr.c: Likewise.
4193 * cpu-d10v.c: Likewise.
4194 * cpu-h8500.c: Likewise.
4195 * cpu-hppa.c: Likewise.
4196 * cpu-i370.c: Likewise.
4197 * cpu-i386.c: Likewise.
4198 * cpu-i960.c: Likewise.
4199 * cpu-ia64-opc.c: Likewise.
4200 * cpu-ia64.c: Likewise.
4201 * cpu-m32r.c: Likewise.
4202 * cpu-m68hc11.c: Likewise.
4203 * cpu-m68hc12.c: Likewise.
4204 * cpu-m68k.c: Likewise.
4205 * cpu-m88k.c: Likewise.
4206 * cpu-mips.c: Likewise.
4207 * cpu-ns32k.c: Likewise.
4208 * cpu-pj.c: Likewise.
4209 * cpu-powerpc.c: Likewise.
4210 * cpu-sh.c: Likewise.
4211 * cpu-sparc.c: Likewise.
4212 * cpu-tic54x.c: Likewise.
4213 * cpu-v850.c: Likewise.
4214 * cpu-vax.c: Likewise.
4215 * cpu-w65.c: Likewise.
4216 * cpu-we32k.c: Likewise.
4217 * cpu-z8k.c: Likewise.
4218 * dwarf1.c: Likewise.
4219 * dwarf2.c: Likewise.
4221 2000-11-15 Kazu Hirata <kazu@hxi.com>
4223 * coff-arm.c: Fix formatting.
4224 * coff-ppc.c: Likewise.
4225 * coff-rs6000.c: Likewise.
4226 * coff-sh.c: Likewise.
4227 * coff-sparc.c: Likewise.
4228 * coff-tic30.c: Likewise.
4229 * coff-tic54x.c: Likewise.
4230 * coff-tic80.c: Likewise.
4231 * coff-w65.c: Likewise.
4232 * coff-we32k.c: Likewise.
4233 * coff-z8k.c: Likewise.
4235 2000-11-15 Richard Henderson <rth@redhat.com>
4237 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4238 section with the same ALLOC|LOAD flags as the source section.
4240 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4242 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4243 by STO_ALPHA constants.
4245 2000-11-14 Kazu Hirata <kazu@hxi.com>
4247 * coff-pmac.c: Fix formatting.
4248 * coff-ppc.c: Likewise.
4250 2000-11-13 H.J. Lu <hjl@gnu.org>
4252 * elflink.h (elf_link_add_object_symbols): Also add indirect
4253 symbols for common symbols with the default version.
4255 2000-11-09 Philip Blundell <pb@futuretv.com>
4257 * section.c (STD_SECTION): Set gc_mark flag.
4259 2000-11-11 Kazu Hirata <kazu@hxi.com>
4261 * coff-i960.c: Likewise.
4262 * coff-m68k.c: Likewise.
4263 * coff-m88k.c: Likewise.
4264 * coff-mcore.c: Likewise.
4265 * coff-mips.c: Likewise.
4267 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4269 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4271 2000-11-10 Kazu Hirata <kazu@hxi.com>
4273 * coff-h8300.c: Fix formatting.
4274 * coff-h8500.c: Likewise.
4275 * coff-i386.c: Likewise.
4276 * coff-i860.c: Likewise.
4277 * coff-i960.c: Likewise.
4278 * coff-ia64.c: Likewise.
4280 2000-11-09 Kazu Hirata <kazu@hxi.com>
4282 * archive.c: Fix formatting.
4283 * archures.c: Likewise.
4285 2000-11-07 Richard Henderson <rth@redhat.com>
4287 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4288 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4289 * section.c (bfd_set_section_contents): Call memcpy if
4290 section->contents set and location not equal to contents plus offset.
4292 2000-11-08 Kazu Hirata <kazu@hxi.com>
4294 * bfd-in.h: Fix formatting.
4295 * bfd-in2.h: Likewise.
4297 * binary.c: Likewise.
4299 * coff-a29k.c: Likewise.
4300 * coff-alpha.c: Likewise.
4301 * coff-apollo.c: Likewise.
4302 * coff-aux.c: Likewise.
4304 2000-11-07 Kazu Hirata <kazu@hxi.com>
4306 * aix386-core.c: Fix formatting.
4307 * aoutf1.h: Likewise.
4308 * aoutx.h: Likewise.
4309 * archures.c: Likewise.
4310 * armnetbsd.c: Likewise.
4312 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4314 * coff-h8300.c (special): Adjust reloc address.
4316 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4318 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4319 to differentiate elf32 and elf64 on ia64.
4320 * bfd-in2.h: Regenerate.
4321 * config.bfd: Add target for "ia64*-*-hpux*".
4322 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4323 * configure: Regenerate.
4324 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4325 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4327 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4328 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4329 * Makefile.in: Regnerate.
4330 * elf64-ia64.c: Deleted.
4331 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4333 2000-11-06 Kazu Hirata <kazu@hxi.com>
4335 * aout-adobe.c: Fix formatting.
4336 * aout-arm.c: Likewise.
4337 * aout-cris.c: Likewise.
4338 * aout-encap.c: Likewise.
4339 * aout-ns32k.c: Likewise.
4340 * aout-target.h: Likewise.
4341 * aout-tic30.c: Likewise.
4343 2000-11-05 Philip Blundell <philb@gnu.org>
4345 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4346 BFDs containing no sections to be merged, regardless of their flags.
4348 2000-11-04 Philip Blundell <philb@gnu.org>
4350 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4351 if a relocation for an undefined symbol also results in an
4354 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4356 * config.bfd: Add support for Sun Chorus.
4358 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4360 * configure.in: Recognize alpha-*-freebsd*.
4361 * configure: Regenerate.
4363 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4365 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4366 (Chunk): New global variable set by a parameter in objcopy.c.
4367 (S3Forced): New global variable set by a parameter in
4369 (srec_set_section_contents): If S3Forced is true, always generate
4371 (srec_write_section): Use 'Chunk' to limit maximum length of S
4374 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4376 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4377 * Makefile.in: Regenerate.
4378 * bfd-in2.h: Regenerate.
4379 * po/bfd.pot: Regenerate.
4381 2000-10-31 Philip Blundell <philb@gnu.org>
4383 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4384 EF_SOFT_FLOAT if it is defined.
4386 2000-10-27 Philip Blundell <philb@gnu.org>
4388 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4389 attempts to mix PIC code with non-PIC, just mark the output as
4390 being position dependent.
4391 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4392 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4393 all mismatches, not just the first one.
4395 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4397 * ieee.c (ieee_archive_p): Plug one of many possible
4398 memory leaks in error handling.
4400 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4402 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4403 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4405 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4406 sparc64_elf_object_p): Support v9b.
4407 * archures.c: Declare v8plusb and v9b machines.
4409 * cpu-sparc.c: Ditto.
4411 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4413 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4416 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4417 (SYMBOL_CALLS_LOCAL): New macro.
4418 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4419 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4420 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4421 (ppc_elf_relocate_section): Use flag variable to determine
4422 whether the relocation refers to a local symbol.
4423 Test whether a PLTREL24 reloc will produce a reloc by looking
4424 to see whether a PLT entry was made.
4426 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4428 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4429 entries that could serve as a definition for a weak symbol.
4431 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4433 From Ralf Baechle <ralf@gnu.org>
4435 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4436 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4437 against local symbols.
4438 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4440 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4442 * section.c (struct sec): Add kept_section.
4443 (struct bfd_comdat_info): Remove sec, we can use above.
4444 (STD_SECTION): Add initializer.
4445 (bfd_make_section_anyway): Init here too.
4447 * bfd-in2.h: Regenerate.
4449 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4451 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4452 fudge values for discarded link-once section symbols.
4454 * elf64-hppa.c: Include alloca-conf.h
4456 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4458 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4460 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4462 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4464 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4466 2000-10-10 Tom Rix <trix@redhat.com>
4468 * section.c (bfd_make_section_anyway): Release newsect ptr when
4469 newsect->symbol fails to alloc. Use bfd_release instead of free.
4471 2000-10-09 Richard Henderson <rth@cygnus.com
4473 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4474 (elf64_ia64_unwind_entry_compare): New.
4475 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4477 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4479 * elflink.h (size_dynamic_sections): Don't create various tags if
4480 .dynstr is excluded from the link. Don't set first dynsym entry
4481 if dynsymcount is zero.
4482 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4483 .dynsym excluded from the link. Don't try to write any dynamic
4484 sections excluded from the link.
4486 * elf.c (swap_out_syms): Handle global section symbols.
4488 2000-10-05 DJ Delorie <dj@redhat.com>
4490 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4491 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4492 (coff_write_relocs): write extended reloc count
4493 (coff_write_object_contents): account for extended relocs
4495 2000-10-05 Jim Wilson <wilson@cygnus.com>
4497 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4499 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4500 elf_backend_section_flags function.
4501 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4503 (elf64_ia64_section_flags): New function containing flag conversion
4505 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4506 * elfxx-target.h (elf_backend_section_flags): Define.
4507 (elfNN_bed): Initialize elf_backend_section_flags field.
4509 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4511 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4512 _bfd_elf32_gc_record_vtable. Correct a comment.
4514 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4516 From Ralf Baechle <ralf@gnu.org>
4518 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4519 produces binaries with got[1] = 0x80000001 to differenciate them
4520 for the dynamic linker from the broken binaries produced by old
4523 2000-09-30 Petr Sorfa <petrs@sco.com>
4525 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4526 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4527 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4528 * configure: Regenerate.
4530 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4532 Define two bfd_targets for absence and presence of leading
4533 underscore on symbols. Make sure to only link same kind.
4534 * elf32-cris.c (cris_elf_object_p,
4535 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4536 cris_elf_merge_private_bfd_data): New.
4537 (elf_backend_object_p, elf_backend_final_write_processing,
4538 bfd_elf32_bfd_print_private_bfd_data,
4539 bfd_elf32_bfd_merge_private_bfd_data): Define.
4540 <Target vector definition>: Include elf32-target.h twice with
4541 different macro settings:
4542 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4543 bfd_elf32_us_cris_vec.
4544 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4545 (elf_symbol_leading_char): First as 0, then '_'.
4546 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4547 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4548 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4549 * configure: Regenerate.
4550 * targets.c: Declare bfd_elf32_us_cris_vec.
4551 * po/bfd.pot: Regenerate.
4553 2000-09-29 Momchil Velikov <velco@fadata.bg>
4555 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4556 R_ARM_THM_PC22 relocations.
4558 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4560 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4562 2000-09-29 Momchil Velikov <velco@fadata.bg>
4564 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4565 is has the SEC_HAS_CONTENTS flag set.
4567 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4568 Hans-Peter Nilsson <hp@axis.com>
4570 * aout-cris.c (N_TXTADDR): Define.
4572 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4574 * som.c: Include alloca-conf.h.
4575 * Makefile.am: "make dep-am"
4576 * Makefile.in: Regenerate.
4578 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4580 * elf32-hppa.c (plt_stub): New.
4581 (PLT_STUB_ENTRY): Define.
4582 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4583 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4584 (elf32_hppa_link_hash_table_create): Init to suit.
4585 (elf32_hppa_check_relocs): Set has_12bit_branch and
4586 has_17bit_branch as appropriate.
4587 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4588 non-local functions.
4589 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4590 Add space for plt_stub as needed.
4591 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4592 functions at plt_stub.
4593 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4594 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4596 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4597 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4598 of fixed size, and if negative, disable handling of input sections
4599 before stub section. Set up default stub group size depending
4600 on detected branch relocs.
4601 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4602 ensure different offsets from sym_value aren't rounded to
4603 different 2k blocks. Use lrsel and rrsel for other stubs too for
4604 consistency rather than necessity.
4605 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4606 (final_link_relocate): Likewise.
4607 (elf32_hppa_relocate_section): Likewise.
4609 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4610 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4611 (elf_hppa_final_link_relocate): Handle them.
4612 (elf_hppa_relocate_insn): Likewise.
4613 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4615 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4617 * elfcode.h (elf_object_p): Preserve and clear abfd section
4618 information. Restore at error.
4620 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4622 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4623 is empty, make sure that its rva also 0. NT loader dislikes
4626 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4628 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4631 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4633 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4634 currently unused RELATIVE_DYNAMIC_RELOCS code.
4635 (hppa_discard_copies): Likewise.
4636 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4637 comments. Don't check non-code output sections for stub grouping.
4639 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4641 * section.c (bfd_get_unique_section_name): Return NULL if
4644 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4646 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4647 instruction sequence to actually work.
4648 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4651 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4653 * elf32-sh.c (sh_elf_relocate_section): Use
4654 _bfd_final_link_relocate to apply the relocation against a section
4655 symbol, when doing relocatable links.
4657 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4659 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4661 (stub_hash_newfunc): Here too.
4662 (hppa_add_stub): And here.
4663 (elf32_hppa_link_hash_table): Remove stub_section_created,
4664 reloc_section_created, first_init_sec and first_fini_sec. Add
4666 (elf32_hppa_link_hash_table_create): Init to suit.
4667 (hppa_get_stub_entry): Add support for grouping stub sections.
4668 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4669 section code. Index stub vars by section->id.
4670 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4671 exit paths. Zap allocation of above removed vars. Refine
4674 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4675 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4676 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4677 rather than pointer to bfd_link_info.
4678 (hppa_add_stub): Likewise.
4679 (final_link_relocate): Likewise.
4681 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4683 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4686 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4688 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4689 ld/emulparams/shelf.sh.
4691 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4693 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4694 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4695 * bfd-in2.h: Regenerate.
4697 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4699 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4700 LITUSE relocations incorrectly if -relax is specified on the ld
4701 command line and the displacement field of the load or store
4702 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4704 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4706 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4707 first_fini_sec here.
4708 (elf32_hppa_size_stubs): Instead correctly find the first .init
4709 and .fini section here.
4711 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4713 * elf32-hppa.c (clobber_millicode_symbols): New function.
4714 (elf32_hppa_size_dynamic_sections): Call it.
4716 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4718 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4719 packed. Add plabel, plt_abs packed booleans.
4720 (hppa_link_hash_newfunc): Init new fields.
4721 (PLABEL_PLT_ENTRY_SIZE): Define.
4722 (hppa_stub_name): Use size_t len vars.
4723 (hppa_add_stub): Likewise.
4724 (elf32_hppa_build_stubs): Likewise.
4725 (hppa_build_one_stub): Kill some compiler warnings.
4726 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4727 if dynamic linking. Munge the local plt offsets into
4728 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4729 size_t len vars. Add assert for plabel addend.
4730 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4731 (elf32_hppa_hide_symbol): New function.
4732 (elf_backend_hide_symbol): Define.
4733 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4734 with h->plabel set. Don't make plt entries to have dynamic syms
4735 when they have been forced local. If plt entry is used by a
4736 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4737 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4738 Set up .plt offsets for local syms.
4739 (elf32_hppa_relocate_section): Initialise plt entries for local
4740 syms. Leave weak undefined plabels zero. Make global plabel
4741 relocs against function symbol, and leave the addend zero.
4742 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4743 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4744 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4745 relocs instead of SEGREL32 for dynamic got relocs.
4746 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4747 (elf_backend_got_header_size): Adjust.
4748 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4750 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4751 (hppa_type_of_stub): Use it instead of #if 0
4752 (hppa_discard_copies): Use it here too.
4753 (elf32_hppa_size_dynamic_sections): And here.
4755 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4756 (elf32_hppa_link_hash_table_create): And here.
4757 (hppa_build_one_stub): And here. Instead keep track of stub
4758 offset using _raw_size.
4759 (elf32_hppa_size_stubs): Likewise.
4760 (elf32_hppa_build_stubs): Likewise.
4761 (hppa_size_one_stub): Likewise. Resize reloc section too.
4763 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4764 first_fini_sec handling. Don't search for reloc section or set
4765 hplink->reloc_section_created here.
4766 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4767 set reloc_section_created here.
4768 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4769 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4771 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4773 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4774 with `hplink->root.'.
4775 (elf32_hppa_check_relocs): Likewise.
4776 (elf32_hppa_gc_sweep_hook): Likewise.
4777 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4778 (hppa_handle_PIC_calls): Likewise.
4779 (elf32_hppa_size_dynamic_sections): Likewise.
4780 (elf32_hppa_set_gp): Likewise.
4781 (elf32_hppa_relocate_section): Likewise.
4782 (elf32_hppa_finish_dynamic_symbol): Likewise.
4783 (elf32_hppa_finish_dynamic_sections): Likewise.
4785 From David Huggins-Daines <dhd@linuxcare.com>
4786 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4787 defined weak symbols in shared links.
4788 (final_link_relocate): Calls to defined weak symbols in shared
4789 objects must go via import stubs, as the target might not be known
4792 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4794 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4795 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4796 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4797 the original entries with EMPTY_HOWTOs, and added new ones to fill
4799 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4800 (sh_elf_relocate_section): Likewise.
4802 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4804 * cpu-mips.c (arch_info_struct): Add mips:4K
4805 * bfd-in2.h (bfd_mach_mips4K): New define.
4806 * archures.c: Add bfd_mach_mips4K to comment.
4807 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4808 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4810 2000-09-13 Marco Franzen <marcof@thyron.com>
4812 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4813 use size_t as a counter.
4814 (som_write_space_strings): Similarly.
4816 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4818 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4820 (elf32_i860_relocate_section): Invoke new function from here.
4822 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4824 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4827 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4829 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4830 target section name instead of dumping core when the target symbol is
4833 2000-09-09 Kazu Hirata <kazu@hxi.com>
4835 * riscix.c: Remove DEFUN.
4837 2000-09-08 Nick Clifton <nickc@redhat.com>
4839 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4840 initialise flags in output bfd if the input bfd is the default
4841 architecture with the default flags.
4843 2000-09-08 Kazu Hirata <kazu@hxi.com>
4845 * archive.c: Fix formatting.
4846 * coff-arm.c: Likewise.
4847 * doc/chew.c: Likewise.
4849 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4851 * section.c (bfd_get_unique_section_name): Put a dot before the
4854 2000-09-07 Kazu Hirata <kazu@hxi.com>
4856 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4857 * elf.c: Fix formatting.
4859 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4861 * config.bfd (sh-*-linux*): Added.
4862 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4863 * targets.c: Declare them.
4864 * elf32-sh-lin.c: New file.
4865 * Makefile.am: Compile it.
4866 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4867 * configure, Makefile.in: Rebuilt.
4869 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4871 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4872 pseduo-section when determining where the TOC ends.
4874 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4875 output x_tvndx as it is only two bytes wide.
4877 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4878 reloc is 26 or 32 bits wide.
4880 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4881 for relocs that don't change anything. Also look at the full
4884 2000-09-06 Philip Blundell <philb@gnu.org>
4886 * config.bfd (arm*-*-uclinux*): New target.
4888 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4890 * configure: Rebuilt with new libtool.m4.
4892 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4894 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4895 word for variable name.
4896 * bfd-in2.h: Regenerate.
4898 2000-09-05 Nick Clifton <nickc@redhat.com>
4900 * config.in: Regenerate.
4901 * libbfd.h: Regenerate.
4902 * po/bfd.pot: Regenerate.
4903 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4906 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4908 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4910 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4912 Shared library and PIC support.
4913 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4914 (GOT_ENTRY_SIZE): New.
4915 (ELF_DYNAMIC_INTERPRETER): New.
4916 (STUB_SUFFIX): Define.
4917 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4918 (RELATIVE_DYNAMIC_RELOCS): Define.
4919 (enum elf32_hppa_stub_type): New.
4920 (struct elf32_hppa_stub_hash_entry): Rename offset to
4921 stub_offset. Add a number of new fields.
4922 (struct elf32_hppa_link_hash_entry): New.
4923 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4925 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4926 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4927 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4929 (hppa_link_hash_newfunc): New function.
4930 (elf32_hppa_link_hash_table_create): Use above function. Init new
4932 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4933 instead of addend, and remove sym_name from args. Don't use
4934 symbol name for local syms, instead use sym index.
4935 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4936 stub type rather than size. Pass in hash and handle import stub
4937 case. Also pass in reloc instead of offset so we can calculate
4938 PCREL22F and PCREL12F branches properly.
4939 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4940 import and export stubs too.
4941 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4942 import and export stub sizing.
4943 (elf32_hppa_check_relocs): New function.
4944 (elf32_hppa_adjust_dynamic_symbol): New function.
4945 (hppa_discard_copies): New function.
4946 (elf32_hppa_size_dynamic_sections): New function.
4947 (elf_backend_size_dynamic_sections): Define.
4948 (elf32_hppa_finish_dynamic_symbol): New function.
4949 (elf_backend_finish_dynamic_symbol): Define.
4950 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4951 some local vars into the link hash table too. For shared links,
4952 trundle over function syms, generating export stubs. Handle
4953 PCREL22F branches. Break out stub creation code from here..
4954 (hppa_add_stub): .. to here. New function.
4955 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4956 call the bfd linker. Use elf_gp to record global pointer.
4957 Calculate a value from sections if $global$ is missing.
4958 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4959 (elf32_hppa_gc_mark_hook): New function.
4960 (elf_backend_gc_mark_hook): Define.
4961 (elf32_hppa_gc_sweep_hook): New function.
4962 (elf_backend_gc_sweep_hook): Define.
4963 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4964 Add rel to args, and remove howto, input_bfd, offset, addend,
4965 sym_name as we can recalculate these locally. Handle calls to
4966 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4967 handling of undefined weak syms. Check that stubs are in range.
4968 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4969 message on hitting a DPREL21L reloc that needs fixing. Subtract
4970 off PC for PCREL14F. Break out code that does a stub lookup from
4972 (hppa_get_stub_entry): ..to here. New function.
4973 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4974 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
4976 (elf32_hppa_finish_dynamic_sections): New function.
4977 (elf_backend_finish_dynamic_sections): Define.
4978 (elf_backend_final_write_processing) Define.
4979 (hppa_handle_PIC_calls): New function.
4980 (elf32_hppa_build_stubs): Call it. Pass link_info to
4981 hppa_build_one_stub.
4982 (elf32_hppa_create_dynamic_sections): New function
4983 to create .plt and .got then set .plt flags correctly.
4984 (elf_backend_create_dynamic_sections): Define.
4985 (elf32_hppa_object_p): New function.
4986 (elf_backend_object_p): Define.
4987 (elf32_hppa_elf_get_symbol_type): New function.
4988 (elf_backend_get_symbol_type): Define.
4989 (elf_backend_can_gc_sections): Define.
4990 (elf_backend_want_got_plt): Define.
4991 (elf_backend_plt_alignment): Set to 2.
4992 (elf_backend_plt_readonly): Define.
4993 (elf_backend_want_plt_sym): Define.
4994 (elf_backend_got_header_size): Reserve one entry.
4996 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
4997 (elf32_hppa_size_stubs): Pass in multi_subspace.
4998 (elf32_hppa_set_gp): Declare.
5000 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5001 (bfd_get_unique_section_name): New function.
5002 * bfd-in2.h: Regenerate.
5004 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5005 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5008 From David Huggins-Daines <dhd@linuxcare.com>
5009 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5010 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5011 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5012 been updated in finish_dynamic_symbol before modifying function
5015 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5016 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5017 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5018 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5019 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5020 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5021 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5022 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5024 From David Huggins-Daines <dhd@linuxcare.com>
5025 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5026 style of local labels as well.
5028 2000-09-03 Philip Blundell <philb@gnu.org>
5030 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5031 references to undefined symbols in debugging sections.
5033 2000-09-02 H.J. Lu <hjl@gnu.org>
5035 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5036 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5037 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5040 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5042 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5043 (elf32_i860_is_local_label_name): New function and prototype.
5045 2000-09-02 Nick Clifton <nickc@redhat.com>
5047 * configure.in: Increase version number to 2.10.91.
5048 * configure: Regenerate.
5049 * aclocal.m4: Regenerate.
5050 * config.in: Regenerate.
5051 * po/bfd.pot: Regenerate.
5053 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5055 * elf.c (_bfd_elf_make_section_from_shdr): Add
5056 .gnu.linkobce.wi. to the list of debug section names.
5058 2000-09-02 Nick Clifton <nickc@redhat.com>
5060 * dwarf2.c (find_debug_info): New function: Locate a section
5061 containing dwarf2 debug information.
5062 (bfd_dwarf2_find_nearest_line): Find all sections containing
5063 debug information and include them in the stash.
5065 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5067 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5068 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5069 (sh_reloc_map): Add new relocs.
5070 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5071 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5072 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5073 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5075 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5076 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5077 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5078 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5079 New array constants.
5080 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5082 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5083 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5084 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5085 elf_sh_plt_reloc_offset): Define.
5086 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5087 elf_sh_link_hash_table): New structs.
5088 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5089 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5091 (elf_backend_create_dynamic_sections,
5092 bfd_elf32_bfd_link_hash_table_create,
5093 elf_backend_adjust_dynamic_symbol,
5094 elf_backend_size_dynamic_sections,
5095 elf_backend_finish_dynamic_symbol,
5096 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5097 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5098 elf_backend_got_header_size, elf_backend_plt_header_size):
5100 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5101 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5103 * bfd-in2.h, libbfd.h: Rebuilt.
5105 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5107 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5110 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5112 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5113 not initialized, set them to indicate the SH1 instruction set.
5115 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5117 * acinclude.m4: Include libtool and gettext macros from the
5119 * aclocal.m4, configure: Rebuilt.
5121 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5123 * elf.c: Eliminate references to __sparcv9 macro; replace with
5124 autoconf variables HAVE_PSINFO32_T etc.
5125 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5126 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5128 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5129 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5130 * aclocal.m4: Ditto.
5131 * configure: Regenerate.
5133 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5135 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5136 for any shared link, not just shared -Bsymbolic.
5137 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5138 any shared link, and pass link info to it.
5139 (elf_i386_size_dynamic_sections): Update comment.
5140 (elf_i386_discard_copies): Modify to discard relocs for symbols
5141 that have been forced local.
5142 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5143 that have been forced local.
5145 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5147 * elflink.h (elf_link_add_object_symbols): Allow common
5148 symbols to have an alignment of 1 if explicitly requested, and
5149 not overridden by other definitions.
5151 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5153 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5154 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5156 2000-08-22 H.J. Lu <hjl@gnu.org>
5158 * elf-bfd.h (elf_link_hash_table): Add runpath.
5160 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5161 * bfd-in2.h: Rebuilt.
5163 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5164 "runpath" field to NULL.
5165 (bfd_elf_get_runpath_list): New function.
5167 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5170 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5172 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5173 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5174 explicitly. Improve validation of r_type.
5176 2000-08-21 H.J. Lu <hjl@gnu.org>
5178 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5179 dynamic allocated content space. Add a comment to remind us that
5180 one day this ought to be fixed.
5181 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5182 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5183 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5185 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5187 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5188 field with the newly relocated value instead of adding it to the
5189 existing immediate field.
5190 (elf32_i860_relocate_splitn): Likewise.
5191 (elf32_i860_relocate_highadj): Likewise.
5193 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5195 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5196 was previously just a stub).
5198 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5200 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5202 (_bfd_elf_create_dynamic_sections): Likewise.
5204 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5206 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5207 for undefined symbols to be the beginning of the section.
5209 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5210 four extra entries at the beginning of the .rela.plt section.
5211 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5212 section to account for the four reserved entries in the .plt section.
5214 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5216 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5217 to the list of NOPs we recognize after a branch-and-link.
5218 Use the ori NOP when one is needed.
5220 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5223 2000-08-14 Jim Wilson <wilson@cygnus.com>
5225 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5226 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5227 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5230 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5232 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5234 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5236 * elf32-i860.c (elf32_i860_relocate_section): New function.
5237 (i860_final_link_relocate): New function.
5238 (elf32_i860_relocate_splitn): New function.
5239 (elf32_i860_relocate_pc16): New function.
5240 (elf32_i860_relocate_highadj): New function.
5241 (elf32_i860_howto): Minor adjustments to some relocations.
5242 (elf_info_to_howto_rel): Define.
5243 (elf_backend_relocate_section): Define.
5245 2000-08-10 Nick Clifton <nickc@cygnus.com>
5247 * elf32-arm.h: Fix formatting.
5249 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5251 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5253 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5255 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5257 2000-08-07 Kazu Hirata <kazu@hxi.com>
5259 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5260 * elf64-ia64.c: Fix a typo.
5262 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5264 * elf32-i860.c (elf32_i860_howto_table): New structure.
5265 (lookup_howto): New function.
5266 (elf32_i860_reloc_type_lookup): New function.
5267 (elf32_i860_info_to_howto_rela): New function.
5268 (elf_code_to_howto_index): New structure.
5269 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5270 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5271 elf32_i860_reloc_type_lookup.
5273 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5275 * som.c (struct fixup_format): Constify `format'.
5276 (som_hppa_howto_table): Use SOM_HOWTO macro.
5277 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5278 (som_bfd_reloc_type_lookup): Likewise.
5279 (compare_subspaces): Remove unused `count1', `count2'.
5280 (som_begin_writing): Remove unused `total_reloc_size'.
5281 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5282 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5283 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5284 (som_find_nearest_line): Decorate unused parameter(s).
5285 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5286 (som_bfd_link_split_section): Likewise.
5288 2000-08-03 Nick Clifton <nickc@cygnus.com>
5290 * section.c: Restore backed out code.
5291 * elf.c: Restore backed out code.
5292 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5293 binaries from working.
5294 * bfd-in2.h: Regenerate.
5296 2000-08-03 H.J. Lu <hjl@gnu.org>
5298 * section.c: Back out the change made by Nick Clifton
5299 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5301 * bfd-in2.h: Likewise.
5304 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5306 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5308 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5310 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5311 * bfd-in2.h, libbfd.h: Regenerate.
5313 2000-07-31 Nick Clifton <nickc@cygnus.com>
5315 * section.c (struct sec): Add new boolean field 'segment_mark'.
5316 (STD_SECTION): Initialise new field to zero.
5318 * bfd-in2.h: Regenerate.
5320 * elf.c (copy_private_bfd_data): Reorganise section to segment
5321 mapping to cope with moved sections requiring new segments,
5322 and overlapping segments.
5323 (SEGMENT_END): New macro: Return the end address of a segment.
5324 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5325 contains a section by comparing their VMA addresses.
5326 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5327 contains a section by comparing their LMA addresses.
5328 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5329 section should be included in a segment.
5330 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5331 follows another in memory.
5332 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5335 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5337 * cpu-i860.c: Added comments.
5339 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5340 bfd_elf32_i860_little_vec.
5341 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5342 (ELF_MAXPAGESIZE): Changed to 4096.
5344 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5346 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5348 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5349 config for little endian elf32 i860.
5350 (targ_defvec): Define for the new config above
5351 as "bfd_elf32_i860_little_vec".
5352 (targ_selvecs): Define for the new config above
5353 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5355 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5358 * configure: Regenerated.
5360 2000-07-27 H.J. Lu <hjl@gnu.org>
5362 * elflink.h (elf_merge_symbol): Take one more argument,
5363 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5364 entry. Don't overide the existing weak definition if dt_needed
5366 (elf_link_add_object_symbols): Pass dt_needed to
5367 elf_merge_symbol ().
5369 2000-07-27 Nick Clifton <nickc@cygnus.com>
5371 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5374 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5376 * configure.host (*-*-aix*): AIX has 'long long' always.
5378 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5379 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5380 (xcoff_write_archive_contents_big): Don't update the offset
5381 of the symbol table, xcoff_write_armap will do it.
5383 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5385 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5386 of dynobj for SGI_COMPAT checks.
5388 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5390 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5391 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5392 * bfd-in2.h: Regenerate.
5394 2000-07-21 Nick Clifton <nickc@cygnus.com>
5396 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5397 range symbol indices in relocs and issue an error message.
5399 2000-07-20 H.J. Lu <hjl@gnu.org>
5401 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5402 info->new_dtags when setting DT_FLAGS_1. It will only be set
5403 by the new linker options. It shouldn't break anything.
5405 2000-07-20 H.J. Lu <hjl@gnu.org>
5407 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5408 only if info->new_dtags is true.
5410 2000-07-20 H.J. Lu <hjl@gnu.org>
5412 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5413 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5415 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5417 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5418 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5419 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5420 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5421 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5422 * Makefile.in: Rebuild.
5423 * aclocal.m4: Rebuild.
5424 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5425 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5426 (bfd_cris_arch): Declare.
5427 (bfd_archures_list): Add bfd_cris_arch.
5428 * bfd-in2.h: Rebuild.
5429 * config.bfd: (cris-*-*): New target.
5430 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5431 * configure: Rebuild.
5432 * elf.c (prep_headers): Add bfd_arch_cris.
5433 * libbfd.h: Rebuild.
5434 * libaout.h (enum machine_type): Add M_CRIS.
5435 * reloc.c: Add CRIS relocations.
5436 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5437 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5438 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5439 * po/POTFILES.in, po/bfd.pot: Regenerate.
5441 2000-07-19 H.J. Lu <hjl@gnu.org>
5443 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5444 DF_TEXTREL if DT_TEXTREL is set.
5445 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5446 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5447 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5448 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5449 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5450 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5451 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5452 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5453 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5454 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5456 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5457 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5459 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5461 2000-07-19 H.J. Lu <hjl@gnu.org>
5463 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5464 * bfd-in2.h: Rebuild.
5466 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5467 (elf_dt_soname): New.
5469 * elf.c (bfd_elf_set_dt_needed_soname): New.
5471 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5472 entry if the shared object loaded by DT_NEEDED is used to
5473 resolve the reference in a regular object.
5475 2000-07-19 H.J. Lu <hjl@gnu.org>
5477 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5478 DT_DEPAUDIT and DT_AUDIT as strings.
5480 2000-07-19 Nick Clifton <nickc@cygnus.com>
5482 * format.c: Fix formatting.
5484 2000-07-19 H.J. Lu <hjl@gnu.org>
5486 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5488 2000-07-19 H.J. Lu <hjl@gnu.org>
5490 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5491 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5492 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5493 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5494 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5495 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5496 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5498 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5500 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5501 renamed functions from here...
5502 (assign_section_numbers): Use renamed functions.
5503 (prep_headers): Use renamed functions.
5505 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5506 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5507 * bfd-in2.h: Regenerate.
5509 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5511 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5512 parenthesis in if statement.
5514 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5516 Enable the support for Traditional MIPS.
5517 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5518 return ict_none appropriately for traditional mips targets.
5519 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5520 (STUB_MOVE): Conditionalize for traditonal mips.
5521 (STUB_LI16): Likewise.
5522 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5523 room for RTPROC header.
5524 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5525 the permission for the PT_DYNAMIC as read, write and execute.
5526 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5527 for traditonal mips.
5528 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5529 _DYNAMIC_LINKING for traditonal mips.
5530 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5531 in case of traditonal mips.
5532 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5533 entry is required. For a function if PLT is not required then set the
5534 corresponding hash table entry to 0.
5535 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5537 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5538 shared object set the value to 0.
5539 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5540 _DYNAMIC_LINKING for traditonal mips.
5541 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5542 for traditonal mips.
5544 2000-07-15 H.J. Lu <hjl@gnu.org>
5546 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5548 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5550 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5551 out a structure that is BFD_IN_MEMORY.
5553 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5555 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5556 bfd pointer. Print section id instead of bfd pointer for local
5557 syms. Prefix addend with `+' for global syms as well as local.
5558 Correct calculation of name component lengths.
5559 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5561 From David Huggins-Daines <dhd@linuxcare.com>
5562 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5563 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5564 (elf64_hppa_modify_segment_map): Likewise.
5566 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5568 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5569 addresses to be "naturally" sign extended. Return -1 if unknown.
5570 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5571 * bfd-in2.h: Regenerate.
5573 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5575 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5576 and ECOF_SIGNED_64 to list ways to extract an offset.
5577 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5578 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5580 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5581 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5583 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5585 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5586 bfd_get_start_address.
5587 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5588 (elf_swap_ehdr_out): Ditto.
5590 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5592 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5593 compatibility with older binutils.
5595 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5597 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5598 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5600 From Ryan Bradetich <rbradetich@uswest.net>
5601 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5602 (parse_line_table): Ditto.
5603 (_bfd_dwarf1_find_nearest_line): Ditto.
5604 * syms.c (cmpindexentry): Remove extra `*' from params.
5606 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5608 * elf32-mips.c (sort_dynamic_relocs): New Function.
5609 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5610 via qsort to sort the dynamic relocations in increasing r_symndx
5613 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5615 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5616 ATTRIBUTE_UNUSED to unused args.
5617 (get_opd): Likewise.
5618 (get_plt): Likewise.
5619 (get_dlt): Likewise.
5620 (get_stub): Likewise.
5621 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5622 (elf64_hppa_link_output_symbol_hook): Likewise.
5623 (elf64_hppa_check_relocs): Delete unused var.
5624 (elf64_hppa_size_dynamic_sections): Likewise.
5625 (elf64_hppa_finalize_opd): Likewise.
5626 (elf64_hppa_finalize_dynreloc): Likewise.
5627 (elf64_hppa_modify_segment_map): Likewise.
5628 (elf64_hppa_finish_dynamic_sections): Likewise.
5630 * elf-hppa.h (elf_hppa_final_write_processing): Add
5631 ATTRIBUTE_UNUSED to unused args.
5632 (elf_hppa_final_link_relocate): Likewise.
5633 (elf_hppa_record_segment_addrs): Add paretheses.
5634 (elf_hppa_relocate_section): Constify dyn_name.
5636 From David Huggins-Daines <dhd@linuxcare.com>
5637 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5638 rearrange case statement so that it gets preferred to 32-bit ones.
5640 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5641 asection->id instead of address of asection structure.
5642 (elf32_hppa_size_stubs): Likewise.
5644 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5645 for .init* and .fini*.
5647 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5648 and addends used in stub names to 32 bits.
5649 (elf32_hppa_size_stubs): Likewise.
5651 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5652 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5653 not bfd_put_64. Fix minor comment typo and formatting.
5655 Changes to create multiple linker stubs, positioned immediately
5656 before the section where they are required.
5657 * elf32-hppa.c: Don't include hppa_stubs.h.
5658 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5659 (elf32_hppa_stub_hash_table): Delete.
5660 (elf32_hppa_link_hash_entry): Delete.
5661 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5662 stub_hash_table, and store the struct here rather than a pointer.
5663 Delete output_symbol_count. Add offset array. Change
5664 global_value to a bfd_vma.
5665 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5666 (elf32_hppa_stub_hash_traverse): Delete.
5667 (elf32_hppa_name_of_stub): Delete.
5668 (elf32_hppa_link_hash_lookup): Delete.
5669 (elf32_hppa_link_hash_traverse): Delete.
5670 (elf32_hppa_stub_hash_table_init): Delete.
5671 (elf32_hppa_size_of_stub): Pass input section and offset rather
5672 than location and calculate location here. Don't pass name as all
5673 stubs are now the same size.
5674 (elf32_hppa_stub_hash_newfunc): Init new fields.
5675 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5677 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5678 comparing against ints. Rewrite stub handling code.
5679 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5680 Case enums to int before comparing against ints. Remove
5681 bfd_reloc_dangerous case.
5682 (elf32_hppa_build_one_stub): Rewrite.
5683 (elf32_hppa_size_one_stub): New function.
5684 (elf32_hppa_build_stubs): Rewrite.
5685 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5686 Rewrite stub-handling specific code.
5688 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5690 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5692 * hppa_stubs.h: Delete.
5693 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5694 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5695 * Makefile.in: Regenerate.
5697 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5700 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5702 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5703 and section name for bfd_reloc_notsupported error message.
5704 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5705 bfd_reloc_notsupported.
5706 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5708 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5709 undefined weak symbols for all relocs.
5710 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5711 offsets are relative to one past the delay slot.
5712 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5713 branch destination. Put addend into stub name too.
5714 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5715 adjust by 8 when deciding whether a linker stub is needed. Put
5716 addend into stub name as for above.
5718 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5719 various args and vars.
5720 (elf32_hppa_bfd_final_link_relocate): Here too.
5721 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5722 inner block var to avoid shadowing.
5724 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5726 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5727 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5728 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5730 * libhppa.h: Change practically all unsigned ints to plain ints.
5731 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5734 From Ryan Bradetich <rbradetich@uswest.net>
5735 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5736 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5738 From David Huggins-Daines <dhd@linuxcare.com>
5739 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5740 to the new OP_* ones.
5742 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5743 error exit. Bail out earlier on plabel relocs that we aren't
5744 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5745 string, and then don't free our copy.
5746 (elf32_hppa_build_one_stub): Make insn unsigned int.
5748 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5749 available with BL, not BE and BLE.
5751 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5752 code for elf arg relocs.
5753 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5754 argument with elf_link_hash_entry h. Handle undefined weak
5755 symbols. Move $global$ lookup from here...
5756 (elf32_hppa_relocate_section): ...to here. Return correct error
5757 message for non-handled relocs.
5758 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5759 wrong test was -0x3ffff to +0x40000.
5761 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5762 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5763 Handle them as such.
5764 (elf_hppa_relocate_insn): Fix a typo.
5766 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5767 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5768 assemble_17, assemble_21): Delete.
5769 Supply defines for all 64 possible opcodes.
5770 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5771 formats. Handle COMICLR.
5772 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5775 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5776 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5777 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5779 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5780 the local syms - did this code get deleted accidentally? Ignore
5781 undefined and undefweak syms.
5783 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5784 block. Use it instead of elf64_hppa_hash_table (info).
5785 (elf_hppa_final_link_relocate): Use hppa_info instead of
5786 elf64_hppa_hash_table (info).
5788 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5789 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5790 (hppa_rebuild_insn): Mask immediate bits here instead.
5791 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5793 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5795 * section.c (struct sec): Add id field. Tidy comment formatting.
5796 (bfd_make_section_anyway): Set id.
5797 (STD_SECTION): Init id too.
5798 Change CONST to const throughout.
5799 * archures.c (bfd_arch_info): Tidy comment.
5800 (bfd_arch_list): Change a CONST to const.
5801 * libbfd-in.h: Tidy comments and replace CONST with const.
5802 * elf-bfd.h: Likewise.
5803 * libbfd.h: Regenerate.
5804 * bfd-in2.h: Regenerate.
5805 * libcoff.h: Regenerate.
5807 2000-07-07 DJ Delorie <dj@redhat.com>
5809 * archive.c (_bfd_write_archive_contents): Add an informative
5812 2000-07-06 Kazu Hirata <kazu@hxi.com>
5814 * srec.c: Fix formatting.
5816 2000-06-05 DJ Delorie <dj@redhat.com>
5820 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5822 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5823 value of PC-relative offsets.
5825 2000-07-03 Jim Wilson <wilson@cygnus.com>
5827 * elf64-alpha.c (alpha_elf_size_info): New.
5828 (elf_backend_size_info): Define to alpha_elf_size_info.
5829 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5831 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5833 * elf32-mips.c: Include elf32-target.h again for the traditional
5836 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5838 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5839 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5840 (avr_info_to_howto_rela): Likewise.
5841 (elf32_avr_gc_mark_hook): Likewise.
5842 (elf32_avr_gc_sweep_hook): Likewise.
5843 (elf32_avr_relocate_section): Likewise.
5845 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5847 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5848 an external symbol for a non-shared, non-relocatable link.
5850 2000-07-03 Nick Clifton <nickc@redhat.com>
5852 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5853 is an external symbol.
5854 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5857 2000-07-03 Kazu Hirata <kazu@hxi.com>
5859 * reloc16.c: Fix formatting.
5861 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5863 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5864 to add a new target for traditional mips i.e
5865 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5866 * configure.in: Likewise.
5867 * configure: Rebuild.
5868 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5870 (bfd_elf32_tradlittlemips_vec): Likewise.
5871 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5872 to see that elfNN_bed does not get redefined even if the target file
5873 is included twice for a chip. See elf32-mips.c.
5875 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5877 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5878 (CLEANFILES): Add DEPA.
5879 * Makefile.in: Regenerate.
5881 2000-06-30 DJ Delorie <dj@cygnus.com>
5883 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5884 can't assume the PE header is at 0x80.
5886 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5888 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5890 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5892 * go32stub.h: Update stub.
5894 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5896 * archures.c (bfd_mach_avr5): Define.
5897 * bfd-in2.h (bfd_mach_avr5): Define.
5898 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5899 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5900 (compatible): Update comment. Add missing test.
5901 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5902 for avr2 and avr4. Simplify 8K wrap code.
5903 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5904 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5906 2000-06-26 Kazu Hirata <kazu@hxi.com>
5908 * coff-h8300.c: Fix formatting.
5909 * cpu-h8300.c: Likewise.
5911 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5913 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5914 for local symbols whose names are unknown.
5916 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5918 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5920 * Makefile.in: Regenerate.
5921 * doc/Makefile.in: Regenerate.
5923 2000-06-20 H.J. Lu <hjl@gnu.org>
5925 * Makefile.am: Rebuild dependency.
5926 * Makefile.in: Rebuild.
5928 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5930 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5931 (elf_backend_copy_indirect_symbol): Map to the new function.
5933 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5935 * archive.c (normalize): Correct pointer comparison when checking
5937 (bfd_bsd_truncate_arname): Likewise.
5938 (bfd_gnu_truncate_arname): Likewise.
5940 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5942 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5943 sections elf_{text,data}_{section,symbol}.
5944 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5945 (_bfd_mips_elf_hide_symbol): New function.
5946 (elf_backend_hide_symbol): Map to the new function.
5947 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5948 definitions of mips_elf_{text,data}_{section,symbol}.
5949 (mips_elf_local_relocation_p): Try to find the direct symbol
5950 based on new check_forced argument.
5951 (mips_elf_calculate_relocation): Use new version of
5952 mips_elf_local_relocation_p.
5953 (mips_elf_relocate_section): Likewise.
5954 (_bfd_mips_elf_relocate_section): Likewise.
5955 (mips_elf_sort_hash_table): Only assert that have enough GOT
5957 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5958 entry if the relocation based on the new external argument.
5959 (mips_elf_create_dynamic_relocation): Assert that we have a
5960 section contents allocated where we can swap out the dynamic
5962 (mips_elf_calculate_relocation): Find the real hash-table entry
5963 correctly by using h->root.root.type. Only create a dynamic
5964 relocation entry if the symbol is defined in a shared library.
5965 Create an external GOT entry for the GOT16 relocation if the
5966 symbol was forced local.
5967 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5968 dynamic index if the symbol was forced local.
5970 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5972 * elf32-mips.c: Fix typos in comments.
5974 2000-06-19 Mark Kettenis <kettenis@gnu.org>
5976 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
5979 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5981 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
5982 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
5983 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
5984 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
5985 (bfd_elf32_m68hc11_vec): Likewise.
5986 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
5987 Supports 68hc11 & 68hc12 at the same time.
5988 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
5990 (bfd_elf32_m68hc11_vec): Likewise.
5991 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
5992 * archures.c (bfd_m68hc12_arch): Define and register in global list
5993 (bfd_m68hc11_arch): Likewise.
5994 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
5995 BFD_RELOC_M68HC11_3B): Define.
5996 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
5997 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
5999 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6001 * elf_bfd.h (struct elf_backend_data): Add info argument to
6002 elf_backend_hide_symbol.
6003 (_bfd_elf_link_hash_hide_symbol): Likewise.
6004 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6005 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6006 * elflink.h (elf_link_add_object_symbols): Likewise.
6007 (elf_link_assign_sym_version): Likewise.
6009 2000-06-18 H.J. Lu <hjl@gnu.org>
6011 * coff-i386.c (coff_i386_reloc): Don't return in case of
6012 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6013 Compensate PE relocations when linking with non-PE object
6014 files to generate a non-PE executable.
6016 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6018 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6019 GOT entries if we're doing a static link or -Bsymbolic link.
6021 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6023 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6024 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6026 (elf_link_output_relocs): Likewise.
6027 (elf_reloc_link_order): Likewise.
6029 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6031 * archures.c (enum bfd_architecture): #define constants for
6032 PowerPc and RS6000 machine numbers.
6033 * bfd-in2.h: Regenerate.
6034 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6035 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6036 and RS6000 machine numbers using #defined constants from
6038 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6039 machine numbers using #defined constants from archures.c. Add
6040 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6041 64-bit words in 620 entry.
6042 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6044 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6046 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6048 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6049 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6050 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6052 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6054 * bfd-in.h (bfd_family_coff): Define.
6055 * bfd-in2.h: Regenerate.
6056 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6057 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6058 instead of bfd_target_coff_flavour.
6059 * cofflink.c (_bfd_coff_final_link): Likewise.
6060 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6061 exclude XCOFF files.
6062 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6064 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6065 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6066 * xcofflink.c (XCOFF_XVECP): Delete.
6067 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6068 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6069 bfd_xcoff_record_link_assignment,
6070 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6071 check for bfd_target_xcoff_flavour.
6073 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6075 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6077 (read_hdr): New function.
6078 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6079 of trying to extract individual registers. Set abfd->arch_info
6080 to match the architecture that created the core file.
6081 (rs6000coff_get_section_contents): Delete.
6082 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6084 2000-06-14 H.J. Lu <hjl@gnu.org>
6086 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6089 2000-06-13 H.J. Lu <hjl@gnu.org>
6091 * configure: Regenerate.
6093 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6095 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6098 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6100 * configure.in (VERSION): Update to show this is the CVS mainline.
6102 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6104 * elf32-d10v.c: Include elf/d10v.h
6105 (enum reloc_type): Delete.
6106 * elf32-d30v.c: Include elf/d30v.h
6107 (enum reloc_type): Delete.
6109 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6110 * Makefile.in: Regenerate.
6112 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6113 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6114 move HOWTOs into elf_howto_table.
6115 (R_386_standard, R_386_ext_offset): Define.
6116 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6117 (elf_i386_reloc_type_lookup): Modify calculation of index into
6118 elf_howto_table since we've removed the padding.
6119 (elf_i386_info_to_howto_rel): Likewise.
6120 (elf_i386_relocate_section): Likewise.
6122 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6124 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6126 2000-06-05 H.J. Lu <hjl@gnu.org>
6128 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6129 an error when seeing an undefined symbol with hidden/internal
6130 attribute. It is handled in *_relocate_section ().
6132 2000-06-05 H.J. Lu <hjl@gnu.org>
6134 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6135 indirect symbol for the ELF_LINK_NON_ELF bit.
6136 (elf_link_output_extsym): Don't output the indirect symbol even
6137 if the ELF_LINK_NON_ELF bit is set.
6139 2000-06-01 J.T. Conklin <jtc@redback.com>
6141 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6142 (i[3456]86-*-netbsdaout*): New target.
6143 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6144 (i[3456]86-*-openbsd*): Likewise.
6146 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6148 * trad-core.c: From hpux-core.c, include <dirent.h> or
6149 <sys/ndir.h> when possible.
6151 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6153 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6154 definitions. We must not assume they are sorted in the file
6155 according to their index numbers.
6157 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6159 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6160 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6161 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6163 2000-05-30 Nick Clifton <nickc@cygnus.com>
6165 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6166 80960CA, 80960MC as valid machine names.
6168 2000-05-30 H.J. Lu <hjl@gnu.org>
6170 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6171 visibility bits if the symbol is undefined. Correctly handle
6172 weak undefined symbols with hidden and internal attributes.
6174 * elflink.h (elf_link_add_object_symbols): Always turn the
6175 symbol into local if it has the hidden or internal attribute.
6177 2000-05-29 Philip Blundell <philb@gnu.org>
6179 * ppcboot.c: Add packed attribute if compiling with GCC.
6181 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6183 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6185 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6187 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6188 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6189 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6192 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6194 * Makefile.am: Update dependencies with "make dep-am"
6195 * Makefile.in: Regenerate.
6197 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6198 bindtextdomain): Replace defines with those from intl/libgettext.h
6199 to quieten gcc warnings.
6201 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6203 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6205 * archive.c (normalize, bfd_bsd_truncate_arname,
6206 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6207 file names with backslashes.
6209 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6212 * sysdep.h: Include filenames.h.
6214 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6216 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6218 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6220 * elf64-sparc.c (sparc64_elf_relax_section): New.
6221 (sparc64_elf_relocate_section): Optimize tail call into branch always
6223 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6224 (elf32_sparc_relax_section): New.
6226 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6228 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6229 Remove unusued variables.
6230 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6231 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6232 previous fix, so that shared libs really don't influence targets
6233 extension mask and memory model.
6235 2000-05-23 H.J. Lu <hjl@gnu.org>
6237 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6238 h->root.other not h->other.
6239 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6241 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6243 2000-05-23 H.J. Lu <hjl@gnu.org>
6245 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6246 undefined symbol with the non-default visibility attributes.
6247 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6248 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6249 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6250 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6251 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6252 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6253 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6254 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6255 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6256 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6257 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6259 2000-05-22 Richard Henderson <rth@cygnus.com>
6261 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6262 PCREL22, PCREL64I. Zero size of special relocs.
6263 (elf64_ia64_reloc_type_lookup): Likewise.
6264 (USE_BRL, oor_brl, oor_ip): New.
6265 (elf64_ia64_relax_section): New.
6266 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6267 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6268 (elf64_ia64_relocate_section): Likewise.
6269 (bfd_elf64_bfd_relax_section): New.
6270 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6271 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6272 * bfd-in2.h, libbfd.h: Regenerate.
6274 2000-05-22 Nick Clifton <nickc@cygnus.com>
6276 * configure.in : Add peigen.lo to MIPS PE targets.
6277 * configure: Regenerate.
6279 2000-05-22 Momchil Velikov <velco@fadata.bg>
6281 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6282 only if it is known for both input and output bfds. Separate
6283 error message strings as in some languages, it may be necessary
6284 to change more than one place in the string to change between
6287 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6288 endianess checks, call _bfd_generic_verify_endian_match() instead.
6290 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6292 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6294 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6295 endianess before checking bfd flavours.
6297 2000-05-22 H.J. Lu <hjl@gnu.org>
6299 * elflink.h (elf_link_output_extsym): Clear the visibility
6300 field for symbols not defined locally.
6302 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6304 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6305 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6306 (hppa_rebuild_insn): Mask immediate bits here instead.
6307 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6309 2000-05-18 Momchil Velikov <velco@fadata.bg>
6311 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6312 relocs for an executable, ensure that they are virtual addresses.
6314 2000-05-18 Jeffrey A Law (law@cygnus.com)
6316 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6318 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6319 Rick Gorton <gorton@scrugs.lkg.dec.com>
6321 * elflink.h: Add emitrelocations support: when enabled, relocation
6322 information and relocation sections are put into final output
6323 executables. If the emitrelocations flag is set, do the following:
6324 (elf_bfd_final_link): Emit relocation sections.
6325 (elf_link_input_bfd): Compute relocation section contents.
6326 (elf_gc_sections): Don't clean relocation sections.
6328 2000-05-16 Catherine Moore <clm@cygnus.com>
6330 * som.c (som_decode_symclass): Recognize weak symbols.
6332 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6334 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6335 read idata section only from dataoff.
6336 (pe_print_edata): Correctly check for valid eat_member.
6338 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6340 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6342 2000-05-14 Philip Blundell <philb@gnu.org>
6344 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6346 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6348 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6350 * peigen.c (pe_print_idata): Look for .idata section and print
6351 info even if data directory has zero entries. Read idata section
6352 starting from dataoff, and adjust all data offsets to suit. Cast
6353 all bfd_vma vars to unsigned long before passing to fprintf.
6354 * peigen.c (pe_print_edata): Similarly, look for .edata section
6355 and print info even if data directory has zero entries. Cast
6356 all bfd_vma vars to unsigned long before passing to fprintf.
6358 From Szabolcs Szakacsits <szaka@F-Secure.com>
6359 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6360 directory size which may be bogus.
6361 * peigen.c (pe_print_edata): Similarly.
6363 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6365 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6367 (copy_private_bfd_data): Allow for space possibly taken up by elf
6368 headers when calculating segment physical address from lma.
6370 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6372 * versados.c (versados_scan): Init stringlen and pass_2_done.
6374 * trad-core.c (trad_unix_core_file_p): Return
6375 bfd_error_wrong_format rather than bfd_error_file_truncated.
6377 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6378 add_data_entry. DataDirectory virtual address is relative.
6379 (pe_print_idata): Account for relative DataDirectory virtual
6380 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6381 (pe_print_edata): Similarly.
6383 From Szabolcs Szakacsits <szaka@F-Secure.com>
6384 * peigen.c (dir_names): Add Delay Import Directory.
6385 (pe_print_idata): Always search for bfd section containing
6386 idata address rather than looking up section name. Print this
6387 section name rather than .idata.
6388 (pe_print_edata): Similarly. Also print some fields as %08lx.
6389 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6392 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6394 * xcoff.h: Rename to xcoff-target.h
6395 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6396 * coff-rs6000.c: Ditto.
6397 * coff64-rs6000.c: Ditto.
6398 * coff-pmac.c: Ditto.
6399 * Makefile.in: Regenerate.
6401 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6403 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6404 Change U802TOC64MAGIC to U803XTOCMAGIC.
6406 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6408 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6409 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6410 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6412 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6414 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6416 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6418 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6419 hidden and internal symbols.
6420 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6422 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6423 assign a PLT or GOT entry to symbols with hidden and
6424 internal visibility.
6426 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6428 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6430 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6432 2000-05-02 H.J. Lu <hjl@gnu.org>
6434 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6437 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6439 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6440 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6442 * Makefile.in: Regenerate.
6444 2000-05-01 Jim Wilson <wilson@cygnus.com>
6446 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6447 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6448 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6449 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6450 * Makefile.in: Rebuild.
6452 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6454 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6455 doesn't work very well.
6457 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6458 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6459 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6460 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6461 (elf_hppa_info_to_howto): Likewise.
6462 (elf_hppa_info_to_howto_rel): Likewise.
6463 (elf_hppa_reloc_type_lookup): Likewise.
6464 (elf_hppa_is_local_label_name): Likewise.
6465 (elf_hppa_fake_sections): Likewise.
6466 (elf_hppa_final_write_processing): Likewise.
6467 (elf_hppa_howto_table): Fully initialise all entries.
6468 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6469 (elf_hppa_info_to_howto): Likewise.
6470 (elf_hppa_info_to_howto_rel): Likewise.
6471 (elf_hppa_reloc_type_lookup): Likewise.
6472 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6473 elf_hppa_unmark_useless_dynamic_symbols,
6474 elf_hppa_remark_useless_dynamic_symbols,
6475 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6476 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6477 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6478 elf32-hppa.c mess is cleaned up.
6479 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6480 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6481 r_field then call hppa_field_adjust inline func with variable
6482 r_field arg, instead call hppa_field_adjust with fixed arg.
6483 In case R_PARISC_PCREL22F, don't set r_field.
6484 (elf_hppa_relocate_insn): Change args and return type to unsigned
6485 int. Call re_assemble_* funcs to do the work.
6487 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6490 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6492 (sign_extend): Mask first before sign extending.
6493 (low_sign_extend): Rewrite without condition expression.
6494 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6495 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6496 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6497 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6498 result as function return value rather than through pointer arg.
6499 Accept unsigned int args, and return unsigned int.
6500 (re_assemble_3): New. Combines function of dis_assemble_3 with
6501 re-assembly of opcode and immediate.
6502 (re_assemble_12): Likewise.
6503 (re_assemble_16): Likewise.
6504 (re_assemble_17): Likewise.
6505 (re_assemble_21): Likewise.
6506 (re_assemble_22): Likewise.
6507 (hppa_field_adjust): Rewrite and document, paying attention to
6508 size of types and signed/unsigned issues.
6509 (get_opcode): Shift before masking.
6510 (FDLW): Rename to FLDW.
6511 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6512 (hppa_rebuild_insn): Change args and return value to unsigned
6513 int. Make use of re_assemble_*. Correct case 11.
6515 * dep-in.sed: Handle ../opcodes/.
6516 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6517 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6518 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6519 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6520 elfarm-nabi.lo dependencies outside of auto-dependency area.
6521 Regenerate dependencies.
6522 * Makefile.in: Regenerate.
6524 * configure.in (TRAD_HEADER): Test non-null before
6526 * configure: Regenerate.
6528 * reloc.c: Fix mis-spelling in comment.
6530 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6532 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6533 * vms.c (vms_openr_next_archived_file): Return NULL.
6535 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6537 * coffcode.h Copy changes mistakenly done to libcoff.h in
6540 2000-04-29 Andreas Jaeger <aj@suse.de>
6542 * libbfd-in.h: Correctly check GCC version.
6543 * bfd-in.h: Likewise.
6544 * libhppa.h: Likewise.
6545 * libbfd.h: Regenerate.
6546 * bfd-in2.h: Regenerate.
6548 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6550 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6551 coffdu-rs6000.{lo,c}.
6552 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6554 * Makefile.in: Regenerate.
6555 * xcoff.h: New file.
6556 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6557 * coff-rs6000.c: Move all declarations and defines that are
6558 common to the xcoff backends into xcoff.h
6559 * coff64-rs6000.c: Ditto,
6561 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6563 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6564 _bfd_coff_force_symnames in strings and
6565 _bfd_coff_debug_string_prefix_length to their default values.
6566 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6568 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6570 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6571 _bfd_coff_force_symnames in strings and
6572 _bfd_coff_debug_string_prefix_length to their default values.
6574 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6576 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6577 Check local_got_refcounts before dereferencing.
6579 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6580 before deciding we don't need R_PPC_PLT32 relocation.
6581 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6584 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6586 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6588 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6589 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6590 (elf_i386_relocate_section): Allow for .plt to go missing.
6591 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6592 can use a relative reloc for got as elf_i386_relocate_section.
6593 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6595 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6597 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6599 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6601 * Makefile.am (coff64-rs6000.lo): New rule.
6602 * Makefile.in: Regenerate.
6603 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6604 xcoff_is_local_label_name, xcoff_rtype2howto,
6605 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6606 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6607 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6608 (NO_COFF_SYMBOLS): Define.
6609 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6610 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6612 (MINUS_ONE): New macro.
6613 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6615 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6616 coff_SWAP_aux_out): Map to the new functions.
6617 * coff64-rs6000.c: New file.
6618 * libcoff.h (bfd_coff_backend_data): Add new fields
6619 _bfd_coff_force_symnames_in_strings and
6620 _bfd_coff_debug_string_prefix_length.
6621 (bfd_coff_force_symnames_in_strings,
6622 bfd_coff_debug_string_prefix_length): New macros for above fields.
6623 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6624 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6625 of using coff_swap_sym_in directly.
6626 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6627 (coff_set_flags) Set magic for XCOFF64.
6628 (coff_compute_section_file_positions): Add symbol name length to
6629 string section length if bfd_coff_debug_string_prefix_length is
6631 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6632 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6633 using coff_swap_lineno_in directly.
6634 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6635 and _bfd_coff_debug_string_prefix_length fields.
6636 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6637 symbol names into strings table when
6638 bfd_coff_force_symnames_in_strings is true.
6639 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6640 SET_RELOC_VADDR): New macros.
6641 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6642 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6644 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6645 changes within RS6000COFF_C specific code.
6646 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6647 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6648 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6649 Extend existing hack on target name.
6650 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6652 * coff-tic54x.c (ticof): Keep up to date with new fields
6653 in bfd_coff_backend_data.
6654 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6655 targ_selvecs to include rs6000coff64_vec for rs6000.
6656 * configure.in: Add rs6000coff64_vec case.
6657 * cpu-powerpc.c: New bfd_arch_info_type.
6659 2000-04-24 Jeffrey A Law (law@cygnus.com)
6661 * config.bfd: Only disable elf32-hppa vectors, not all of the
6662 BSD and OSF configuration support. Provide (disabled) clauses
6664 * configure.in: Add clause for PA64 support.
6665 * configure: Rebuilt.
6667 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6668 (bfd_elf64_hppa_vec): Declare.
6670 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6671 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6672 (elf64-hppa.lo): Add dependencies.
6673 * Makefile.in: Rebuilt.
6675 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6677 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6679 * libhppa.h (dis_assemble_16): New function.
6680 (pa_arch): Added pa20w element.
6682 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6684 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6685 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6686 bfd_elf64_slurp_reloc_table.
6688 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6689 definitions to get external names.
6690 (elf_write_relocs): Renamed from write_relocs and make global.
6691 (elf_slurp_reloc_table): Make global.
6692 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6694 * archive.c (hpux_uid_gid_encode): New function.
6695 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6696 defined and the ID is greater than 99999.
6697 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6698 special uid/gid fields into 32 bit values.
6700 2000-04-21 Matthew Green <mrg@cygnus.com>
6702 * config.bfd: Add NetBSD/sparc64 support.
6704 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6705 David Mosberger <davidm@hpl.hp.com>
6706 Timothy Wall <twall@cygnus.com>
6707 Jim Wilson <wilson@cygnus.com>
6709 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6710 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6711 (BFD64_BACKENDS): Add elf64-ia64.lo.
6712 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6713 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6714 * Makefile.in: Rebuild.
6715 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6716 (bfd_ia64_arch): Declare.
6717 (bfd_archures_list): Add bfd_ia64_arch.
6718 * bfd-in2.h: Rebuild.
6719 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6720 * configure: Rebuild.
6721 * configure.host: (ia64-*-linux*): New host.
6722 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6723 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6724 * elf.c (prep_headers): Add bfd_arch_ia64.
6725 * libbfd.h: Rebuild.
6726 * reloc.c: Add IA-64 relocations.
6727 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6729 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6730 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6732 2000-04-21 Richard Henderson <rth@cygnus.com>
6734 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6735 contents when performing a partial link.
6736 (bfd_elf_d30v_reloc_21): Likewise.
6738 2000-04-20 H.J. Lu <hjl@gnu.org>
6740 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6741 patch to symbols defined by a shared object.
6742 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6744 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6747 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6748 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6750 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6752 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6753 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6754 (coff-ia64.lo): Add dependency.
6755 * Makefile.in: Regenerate.
6756 * coff-ia64.c: New file.
6757 * efi-app-ia32.c: Ditto.
6758 * efi-app-ia64.c: Ditto.
6759 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6760 (coff_set_flags): Ditto.
6761 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6762 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6763 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6764 * configure: Regenerate.
6765 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6766 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6767 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6768 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6769 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6770 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6771 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6772 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6773 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6774 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6775 (GET_PDATA_ENTRY): Ditto.
6776 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6777 data_start. Use above macros to read fields that are 64 bit wide for
6778 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6779 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6780 FileAlignment and SectionAlignment to minimum alignment if they
6782 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6783 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6784 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6785 Use above macros to write fields that are 64 bit wide for
6787 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6788 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6789 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6790 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6791 begin address, end address, and unwind info address only. Use
6792 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6794 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6795 HIGH3ADJ relocation names.
6796 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6797 * targets.c: Declare bfd_efi_app_ia32_vec and
6798 bfd_efi_app_ia64_vec.
6799 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6800 bfd_efi_app_ia64_vec.
6802 2000-04-17 Timothy Wall <twall@cygnus.com>
6804 * bfd-in2.h: Add prototypes for tic54x load page access.
6805 * bfd-in.h: Regenerate.
6806 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6807 in customized _set_arch_mach function.
6808 * coffcode.h (coff_set_alignment_hook): Set section load page if
6809 the appropriate macro is defined.
6810 (write_object_contents): Read section load page.
6812 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6814 * elf32-hppa.h: Update copyright date.
6816 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6817 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6819 * elf32-d30v.c (MAX32): Don't use LL suffix.
6820 (MIN32): Define in terms of MAX32.
6821 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6823 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6826 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6828 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6830 * dep-in.sed: Match space before file name, not after.
6831 * Makefile.am: Regenerate dependencies.
6832 * Makefile.in: Regenerate.
6834 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6835 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6836 extend without an if statement.
6838 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6840 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6842 * elf32-mips.c (gprel16_with_gp): Likewise.
6843 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6844 here using -0x40000, not (int)0xfffc0000.
6845 (elf32_hppa_size_of_stub): Likewise.
6847 2000-04-11 Timothy Wall <twall@cygnus.com>
6849 * coff-tic54x.c: Now builds with all targets.
6850 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6851 * Makefile.in: Regenerate.
6852 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6853 unitialized variable.
6855 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6857 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6858 --enable-build-warnings option.
6859 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6860 * Makefile.in, configure: Re-generate.
6862 2000-04-07 Nick Clifton <nickc@cygnus.com>
6864 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6865 BFD_RELOC_THUMB_PCREL_BLX.
6867 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6868 R_ARM_XPC25 and R_ARM_THM_PC22.
6870 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6871 R_ARM_XPC25 and R_ARM_THM_XPC22.
6872 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6873 R_ARM_[XPC25|THM_XPC22].
6875 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6876 elf/arm-oabi.h to elf/arm.h
6878 * Makefile.am: Fix dependency for elfarm-oabi.c
6879 * Makefile.in: Regenerate.
6881 * bfd-in2.h: Regenerate.
6882 * libbfd.h: Regenerate.
6884 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6886 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6887 and restore it on failure. Release newly allocated tdata on
6890 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6892 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6893 (decode_line_info): Set it. Report error if unit->line_offset is
6894 equal to or larger than it.
6896 2000-04-07 Timothy Wall <twall@cygnus.com>
6898 * targets.c: Added vecs for tic54x.
6899 * reloc.c: Added relocs for tic54x.
6900 * libbfd.h: Regenerated.
6901 * configure: Add TI COFF vecs for tic54x.
6902 * configure.in: Ditto.
6903 * config.bfd (targ_cpu): Recognize new tic54x target.
6904 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6905 * bfd-in2.h: Add tic54x target and relocations.
6906 * Makefile.am, Makefile.in: Add tic54x target.
6907 * archures.c (bfd_archures_list): Add tic54x target.
6908 * coff-tic54x.c: New.
6909 * cpu-tic54x.c: New.
6911 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6913 * elfcore.h (elf_core_file_p): call backend_object_p which
6914 thereby gets an opportunity to update the arch/machine type.
6916 2000-04-06 Timothy Wall <twall@cygnus.com>
6918 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6919 class. Handle SEC_CLINK and SEC_BLOCK flags.
6920 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6921 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6923 2000-04-06 Nick Clifton <nickc@cygnus.com>
6925 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6926 EF_INTERWORK if this is an unknown EABI.
6927 (elf32_arm_merge_private_bfd_data): Check EABI version
6928 numbers. Only check EF_xxx flags if the EABI version number
6930 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6931 if the EABI version number is unknown.
6932 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6933 if the EABI version number is unknown.
6935 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6937 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6938 BFD_RELOC_SH_LOOP_END.
6939 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6940 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6941 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6942 (sh_elf_reloc_loop): New function.
6943 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6945 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6946 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6947 * bfd-in2.h, libbfd.h: Regenerate.
6949 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6951 * po/bfd.pot: Regenerate.
6953 * Makefile.am: Remove extraneous mkdep comment.
6954 (MKDEP): Use gcc -MM rather than mkdep.
6955 (DEP): Quote when passing vars to sub-make. Add warning
6957 (DEP1): Rewrite for "gcc -MM".
6958 (CLEANFILES): Add DEP2.
6959 Update dependencies.
6960 * Makefile.in: Regenerate.
6962 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6964 * configure.in: Added corefile support for AIX 4.3. In particular,
6965 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6966 compiling rs6000-core.c.
6967 * configure: Regenerated.
6969 2000-04-03 H.J. Lu <hjl@gnu.org>
6971 * cache.c (bfd_open_file): Unlink the output file only if
6972 it has non-zero size.
6974 2000-04-01 Ken Block USG <block@zk3.dec.com>
6976 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
6977 relative relocations for non-loaded sections in shared objects.
6978 (elf64_alpha_check_relocs): Similarly.
6980 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
6982 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
6983 BFD_RELOC_16 to switch for extended relocs.
6984 (MY_swap_ext_reloc_in): New.
6985 (MY_swap_ext_reloc_out): New.
6986 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
6987 than NAME(aout,swap_ext_reloc_in) for extended relocs.
6988 (NAME(aout,squirt_out_relocs)): Similarly use
6989 MY_swap_ext_reloc_out.
6990 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
6992 2000-04-03 Kazu Hirata <kazu@hxi.com>
6994 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
6995 the R_PCRWORD_B case.
6997 2000-03-31 Thomas de Lellis <tdel@wrs.com>
6999 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7003 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7005 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7006 HOWTO references to bfd_elf_generic_reloc, that have
7007 partial_inplace == true, now use the new function. The function
7008 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7009 extends its fixes to the R_M32R_{16,24,32} relocs.
7010 The new logic in m32r_elf_lo16_reloc() has been removed, and
7011 it instead calls the new routine to obtain that functionality.
7013 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7015 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7016 elf32_avr_check_relocs, avr_final_link_relocate,
7017 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7018 elf32_avr_object_p): Add prototypes.
7019 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7020 (bfd_elf_avr_final_write_processing): Make static.
7022 2000-03-27 Denis Chertykov <denisc@overta.ru>
7024 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7025 * archures.c (bfd_architecture): Add AVR architecture.
7026 (bfd_archures_list): Add reference to AVR architecture info.
7027 * elf.c (prep_headers): Handle bfd_arch_avr.
7028 * reloc.c: Add various AVR relocation enums.
7029 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7031 * Makefile.am: Add support for AVR elf.
7032 * configure.in: Likewise.
7033 * config.bfd: Likewise.
7034 * Makefile.in: Regenerate.
7035 * configure: This too.
7036 * bfd-in2.h: And this.
7037 * libbfd.h: And this.
7039 2000-03-24 H.J. Lu <hjl@gnu.org>
7041 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7042 (elf64_alpha_find_reloc_at_ofs): Likewise.
7044 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7046 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7047 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7048 allowable range used to be -2**(n-1) to 2**n-1.
7049 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7050 "boolean overflow" with "bfd_reloc_status_type flag".
7052 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7054 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7056 2000-03-14 Kazu Hirata <kazu@hxi.com>
7058 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7059 of shrinks properly, including the last reloc.
7061 2000-03-13 Kazu Hirata <kazu@hxi.com>
7063 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7066 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7068 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7069 a format mismatch rather than an "error" from bfd_read such as
7070 bfd_error_file_truncated.
7072 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7074 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7075 sign-extension and big-endian compensation for
7076 R_MIPS_64 even in ld -r.
7078 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7080 * elf32-mips.c (mips_elf_next_relocation): Rename from
7081 mips_elf_next_lo16_relocation, and generalize to look
7082 for any relocation type.
7083 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7084 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7085 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7086 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7087 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7088 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7089 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7090 (mips_rtype_to_howto): Likewise.
7091 (mips_elf_calculate_relocation): Handle new relocs.
7092 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7093 are paired. The addend for R_MIPS_GNU_REL16_S2
7094 is shifted right two bits.
7096 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7098 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7099 comment, and ensure it doesn't happen again.
7100 (bfd_install_relocation): Same here.
7101 (_bfd_relocate_contents): Don't bother assigning unused signmask
7102 shift result. Fix typos in comments.
7103 Remove trailing whitespace throughout file.
7105 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7107 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7108 * bfd-in2.h: Rebuild.
7110 2000-03-06 Nick Clifton <nickc@cygnus.com>
7112 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7114 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7115 (SIZEOF_ILF_STRINGS): Redefine.
7116 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7117 relative reloc, as opposed to a section relative reloc.
7118 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7120 Add length of symbol's prefix to string pointer.
7121 Store a pointer to the symbol in the symbol pointer table.
7122 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7123 Initialise the symbol pointer table.
7124 Store the hint in the Hint/Name table.
7125 Make the jump reloc be symbol realtive, not section relative.
7126 Create an import symbol for imported code.
7128 2000-03-06 Catherine Moore <clm@cygnus.com>
7130 * elf.c (swap_out_syms): Check for null type_ptr.
7132 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7134 * aout-target.h (MY(write_object_contents)): Remove unused
7135 and unusable "#if CHOOSE_RELOC_SIZE".
7136 * pc532-mach.c (MY(write_object_contents)): Ditto.
7137 * netbsd.h (MY(write_object_contents)): Ditto.
7138 * hp300hpux.c (MY(write_object_contents)): Ditto.
7139 * freebsd.h (MY(write_object_contents)): Ditto.
7140 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7142 2000-02-29 H.J. Lu <hjl@gnu.org>
7144 * peicode.h (jtab): Make it static.
7146 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7147 defined and COFF_IMAGE_WITH_PE is not defined.
7148 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7149 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7151 2000-03-01 Nick Clifton <nickc@cygnus.com>
7153 * coff-arm.c (bfd_arm_process_before_allocation): Make
7154 'symndx' signed to prevent compile time warning.
7156 * coff-mcore.c: Remove unused prototype for pe_object_p.
7158 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7159 functions that are not used when COFF_IMAGE_WITH_PE is
7161 (struct sh_opcode): Change type of 'flags' field to unsigned
7162 long so that it can hold the USESAS flag.
7164 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7166 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7169 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7171 Remove unusued variables and code.
7172 (elf_backend_add_symbol_hook): Fix prototype.
7174 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7177 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7180 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7182 Remove unusued variables and code.
7183 (elf_backend_add_symbol_hook): Fix prototype.
7185 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7187 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7188 to unused function parameter.
7190 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7192 Use EMPTY_HOWTO to initialise empty howto slots.
7193 Remove unused variables.
7195 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7197 2000-03-01 H.J. Lu <hjl@gnu.org>
7199 * aoutx.h (aout_link_input_section_std): Pass "true" to
7200 the undefined_symbol callback.
7201 (aout_link_input_section_ext): Likewise.
7202 * bout.c (get_value): Likewise.
7203 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7204 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7206 (alpha_relocate_section): Likewise.
7207 * coff-arm.c (coff_arm_relocate_section): Likewise.
7208 * coff-i960.c (coff_i960_relocate_section): Likewise.
7209 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7210 * coff-mips.c (mips_relocate_section): Likewise.
7211 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7212 * coff-sh.c (sh_relocate_section): Likewise.
7213 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7214 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7215 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7216 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7217 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7218 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7219 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7220 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7221 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7222 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7223 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7224 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7225 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7226 * elflink.h (elf_link_output_extsym): Likewise.
7227 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7228 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7229 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7231 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7232 undefined_symbol callback when building shared library with
7233 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7235 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7236 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7237 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7238 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7239 (elf32_mips_get_relocated_section_content): Likewise.
7240 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7241 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7242 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7243 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7245 2000-02-28 Nick Clifton <nickc@cygnus.com>
7247 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7248 * Makefile.in: Regenerate.
7250 * configure.in: Add support for mips and sh pe vectors.
7251 * configure: regenerate.
7253 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7256 * targets.c: Add mips and sh pe vectors.
7258 * libpei.h (coff_final_link_postscript): Only define if not
7261 * coffcode.h: Add support for WinCE magic numbers.
7263 * peigen.c (pe_print_reloc): Update comment and rearrange
7264 appending of newline character.
7266 * peicode.h: Add support for Image Library Format.
7267 (pe_ILF_vars): Structure containing data used by ILF code.
7268 (pe_ILF_make_a_section): New function. Create a section based
7270 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7272 (pe_ILF_make_a_symbol): New function. Create a symbol based
7274 (pe_ILF_save_relocs): New function. Store the relocs created
7275 by pe_ILF_make_a_reloc in a section.
7276 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7278 (pe_ILF_object_p): New function. Return a bfd_target pointer
7280 (pe_bfd_object_p): If an ILF object is detected call
7281 pe_ILF_object_p on it.
7283 * coff-arm.c: Add support for WinCE relocs which are different
7284 from normal ARM COFF relocs.
7285 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7287 * coff-sh.c: Add support for sh-pe target.
7288 * pe-sh.c: New file. Support code for sh-pe target.
7289 * pei-sh.c: New file. Support code for sh-pe target.
7291 * pe-mips.c: New file. Support code for mips-pe target.
7292 * pei-mips.c: New file. Support code for mips-pe target.
7294 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7296 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7297 architecture if the object causing the bump is dynamic.
7298 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7299 and also don't it for memory ordering.
7300 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7302 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7304 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7305 calling bfd_get_section_size_before_reloc.
7306 (decode_line_info): Likewise.
7307 (_bfd_dwarf2_find_nearest_line): Likewise.
7309 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7311 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7312 name of the libtool directory.
7313 * Makefile.in: Rebuild.
7315 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7317 * som.c (SOM_HOWTO): Define.
7318 (som_hppa_howto_table): Use it.
7320 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7322 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7324 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7326 2000-02-24 Catherine Moore <clm@cygnus.com>
7328 * som.c (som_misc_symbol_info): Add field
7330 (som_bfd_derive_misc_symbol_info): Initialize
7332 (som_build_and_write_symbol_table): Keep track
7333 of secondary_def field.
7334 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7335 if secondary_def field is set.
7336 (som_bfd_ar_write_symbol_stuff): Initialize
7339 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7341 * dwarf2.c (read_address): Read 16-bits addresses.
7342 (parse_comp_unit): Accept addr_size == 2.
7344 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7346 * bfd-in.h: Update copyright date.
7348 2000-02-23 Linas Vepstas <linas@linas.org>
7350 * cpu-i370.c: New file.
7351 * elf32-i370.c: New file.
7352 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7353 (bfd_i370_arch): New.
7354 (bfd_archures_list): Add bfd_i370_arch.
7355 * elf.c (prep_headers): Add bfd_arch_i370.
7356 * Makefile.am: Add support for IBM 370 elf.
7357 * config.bfd: Likewise.
7358 * configure.in: Likewise.
7359 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7360 * reloc.c (bfd_reloc_code_type): Likewise.
7361 * targets.c: Likewise.
7363 * Makefile.in: Regenerate.
7364 * configure: Regenerate.
7365 * bfd-in2.h: Regenerate.
7367 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7369 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7370 invalid relocation types, and change them to R_386_NONE.
7372 2000-02-22 H.J. Lu <hjl@gnu.org>
7374 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7375 not defined, don't add a second ELF_VER_CHR.
7377 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7378 symbols converted to local symbols even when stripping all
7380 (elf_link_output_extsym): Process global symbols converted to
7381 local symbols even if they are being stripped.
7383 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7385 * archures.c (bfd_octets_per_byte): Return unsigned int.
7386 (bfd_arch_mach_octets_per_byte): Ditto.
7387 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7389 * section.c (bfd_get_section_size_before_reloc): Quell signed
7390 vs. unsigned comparison warning.
7391 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7392 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7393 change. What was I thinking?
7394 * bfd-in2.h: Regenerate.
7396 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7397 (elf_gc_sections): Same here.
7398 (elf_gc_common_finalize_got_offsets): And here.
7400 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7402 ELF HPPA doesn't work at present; remove it until it does.
7403 * config.bfd: Comment out setting targ_defvec to
7405 * Makefile.am: Rebuild dependencies.
7406 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7407 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7408 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7409 * Makefile.in: Rebuild.
7410 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7412 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7414 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7415 is no bfd_free(). Revert bfd_free part of previous change.
7417 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7419 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7421 (coff_compute_section_file_positions): Use bfd_free to pair
7423 (coff_write_object_contents): Likewise.
7425 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7426 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7428 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7430 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7431 (xcoff_ar_file_hdr_big): New structure.
7432 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7433 (xcoff_ar_hdr_big): New structure.
7434 (SIZEOF_AR_HDR_BIG): New macro.
7435 (xcoff_big_format_p): New macro.
7436 (xcoff_ardata_big): New macro.
7437 (arch_xhdr_big): New macro.
7438 (xcoff_slurp_armap): Handle large archives.
7439 (xcoff_archive_p): Detect large archives.
7440 (xcoff_read_ar_hdr): Handle large archives.
7441 (xcoff_openr_next_archived_file): Handle large archives.
7442 (xcoff_generic_stat_arch_elt): Handle large archives.
7443 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7444 (xcoff_write_armap_big): New function.
7445 (xcoff_write_armap): New function, dispatch to _old or _big.
7446 (xcoff_write_archive_contents_old): Rename from
7447 xcoff_write_archive_contents.
7448 (xcoff_write_archive_contents_big): New function.
7449 (xcoff_write_archive_contents): New function, dispatch to _old or
7452 2000-02-18 Richard Henderson <rth@cygnus.com>
7454 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7455 and hide_symbol members.
7456 (elf_link_hash_copy_indirect): Remove.
7457 (elf_link_hash_hide_symbol): Remove.
7458 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7459 and elf_backend_hide_symbol.
7460 (_bfd_elf_link_hash_copy_indirect): Declare.
7461 (_bfd_elf_link_hash_hide_symbol): Declare.
7462 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7463 (_bfd_elf_link_hash_hide_symbol): Likewise.
7464 (_bfd_elf_link_hash_table_init): Don't init killed members.
7465 * elflink.h (elf_link_add_object_symbols): Use the bed function
7466 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7467 (elf_link_assign_sym_version): Likewise.
7468 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7469 (elf_backend_hide_symbol): Likewise.
7470 (elfNN_bed): Update for new members.
7472 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7474 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7475 STACK_END_ADDR): Define for new core file format.
7476 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7477 for handling the vagaries of the various core file structures used
7478 by AIX over the years.
7479 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7480 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7481 core_dumpx structure.
7483 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7485 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7486 (bfd_mach_sh3_dsp): Likewise.
7487 (bfd_mach_sh4): Reinstate.
7488 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7489 * bfd-in2.h: Regenerate.
7490 * coff-sh.c (struct sh_opcode): flags is no longer short.
7491 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7492 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7493 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7494 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7495 (sh_opcodes): No longer const.
7496 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7497 (sh_insn_uses_reg): Check for USESAS and USESR8.
7498 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7499 (_bfd_sh_align_load_span): Return early for SH4.
7500 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7501 Take into account that field b of a parallel processing insn
7502 could be mistaken for a separate insn.
7503 * cpu-sh.c (arch_info_struct): New array elements for
7504 sh2, sh-dsp and sh3-dsp.
7505 Reinstate element for sh4.
7506 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7507 (SH4_NEXT): Reinstate.
7508 (SH3_NEXT, SH3E_NEXT): Adjust.
7509 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7510 * elf32-sh.c (sh_elf_set_private_flags): New function.
7511 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7512 (sh_elf_merge_private_data): New function.
7513 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7514 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7515 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7516 sh_elf_merge_private_data.
7518 2000-02-13 Richard Henderson <rth@cygnus.com>
7520 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7521 hide_symbol members.
7522 (elf_link_hash_copy_indirect): New.
7523 (elf_link_hash_hide_symbol): New.
7524 * elflink.h (elf_link_add_object_symbols): Break out copy from
7525 indirect new new symbol to elf.c.
7526 (elf_link_assign_sym_version): Break out privatization of
7527 non-exported symbol to elf.c.
7528 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7529 (_bfd_elf_link_hash_hide_symbol): New.
7530 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7532 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7534 * section.c (_bfd_strip_section_from_output): Add info parameter.
7535 If it passed as non-NULL, use it to check whether any input BFD
7536 has an input section which uses this output section. Change all
7538 * bfd-in2.h: Rebuild.
7540 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7541 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7543 * bfd-in2.h: Rebuild.
7545 2000-02-10 Timothy Wall <twall@cygnus.com>
7547 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7548 allow final modifications of swapped-in symbol.
7549 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7550 * coffcode.h (coff_write_relocs): Use macro
7551 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7552 symbol index should be set to -1.
7554 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7556 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7557 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7558 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7559 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7560 sh_insns_uses_or_sets_freg): New functions.
7561 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7562 * (sh_insns_conflict): Use new functions and new macros to
7563 detect conflicts when two instructions both set same integer registers,
7564 both set same fp register, and both set special register.
7566 2000-02-09 Timothy Wall <twall@cygnus.com>
7568 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7569 swapping in sections, so that the swapping routines have access to
7572 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7574 * coff-go32.c: Update comment. Update copyright.
7576 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7578 * syms.c (bfd_decode_symclass)
7579 Two new class characters were added - 'V' and 'v'. The
7580 meaning of 'W' is now restricted to just weak non-object
7581 symbols. This allows differentiation between, for example,
7582 weak functions vs weak objects. nm for example now dumps:
7584 'w' = weak unresolved
7585 'V' = weak global object
7586 'v' = weak unresolved object
7588 (bfd_is_undefined_symclass): New function. Return true if the
7589 given symbol class represents and undefined/unresolved symbol.
7591 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7594 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7596 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7597 STT_ARM_16BIT flag set, but it is not attached to a data object
7598 return STT_ARM_16BIT so that it will be treated as code by the
7601 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7603 * coff-i386.c (i3coff_object_p): Remove prototype.
7606 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7607 to name. Update copyright.
7609 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7610 assignment to avoid warning. Update copyright.
7612 2000-01-24 Robert Lipe (robertl@sco.com)
7614 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7615 instead of using GNU C extension.
7617 2000-01-21 Nick Clifton <nickc@cygnus.com>
7619 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7620 amount from a bfd_in_memory structure.
7621 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7624 2000-01-14 Nick Clifton <nickc@cygnus.com>
7626 * linker.c (default_indirect_link_order): oops - fix incorrectly
7627 applied patch from Tim Wall.
7629 2000-01-13 Timothy Wall (twall@tiac.net>
7631 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7632 = scnhsz, filhsz, relsz, aoutsz, etc)
7634 * coffswap.h: Ditto.
7636 2000-01-13 Nick Clifton <nickc@cygnus.com>
7638 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7639 interwork thumb to arm stub.
7641 2000-01-13 Timothy Wall (twall@tiac.net>
7643 * archures.c (bfd_octets_per_byte): New function: Return
7645 (bfd_arch_mach_octets_per_byte): New function: Return target
7648 * section.c: Distinguish between octets and bytes for usage of
7649 _cooked_size, _raw_size, and output_offset. Clarify
7650 description of bfd_set_section_contents.
7652 * bfd-in2.h: Regenerate.
7654 * coffgen.c: Indicate that the offset parameter is in bytes, not
7657 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7658 where appropriate to get the octet offset when calling
7659 bfd_set_section_contents.
7660 (bfd_coff_reloc_link_order): Ditto.
7662 * linker.c (bfd_generic_reloc_link_order): Ditto.
7663 (_bfd_default_link_order): Ditto.
7665 * reloc.c (bfd_perform_relocation): Distinguish between octets
7666 and bytes. Use octets when indexing into octet data; use bytes
7667 when calculating target addresses.
7668 (bfd_install_relocation): Ditto.
7670 * srec.c (srec_write_section): Ditto.
7672 2000-01-13 Nick Clifton <nickc@cygnus.com>
7674 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7675 3 to 2. This allows 4 byte sized sections, which is necessary for
7676 dlltool to build functioning DLLs.
7678 2000-01-10 Philip Blundell <pb@futuretv.com>
7680 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7681 (arm*-*-conix*): New target.
7683 2000-01-10 Egor Duda <deo@logos-m.ru>
7685 * config.bfd: Include elf32_i386 vector to target list for cygwin
7688 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7689 * configure.in: Test for structure win32_pstatus_t in
7691 * configure: Regenerate.
7693 * elf.c (elfcore_grok_win32pstatus): New function: process
7694 win32_pstatus_t notes in elf core file.
7695 (elfcore_grok_note): Detect win32_pstatus notes.
7697 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7699 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7701 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7702 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7704 For older changes see ChangeLog-9899
7710 version-control: never