1 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
3 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
4 conflicting float flags.
6 2001-09-26 Alan Modra <amodra@bigpond.net.au>
8 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
9 (elf_backend_copy_indirect_symbol): Define.
10 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
11 (struct elf_i386_link_hash_table): Likewise.
12 (link_hash_newfunc): Get rid of unnecessary casts.
13 (elf_i386_link_hash_table_create): Likewise.
14 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
15 Don't test input section SEC_READONLY here to try to avoid copy
16 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
17 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
18 here to properly test whether we need copy relocs. Do so for weak
21 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
22 (elf_backend_copy_indirect_symbol): Define.
23 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
24 (stub_hash_newfunc): Get rid of unnecessary casts.
25 (hppa_link_hash_newfunc): Likewise.
26 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
27 Don't test input section SEC_READONLY here to try to avoid copy
28 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
29 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
30 here to properly test whether we need copy relocs. Do so for weak
33 2001-09-26 Alan Modra <amodra@bigpond.net.au>
35 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
36 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
37 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
39 2001-09-25 Jakub Jelinek <jakub@redhat.com>
41 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
44 2001-09-25 H.J. Lu <hjl@gnu.org>
46 * bfd-in2.h: Regenerated.
48 2001-09-25 Alan Modra <amodra@bigpond.net.au>
50 * elf32-i386.c: Add comment re linker function names and ordering.
51 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
52 (elf_i386_grok_prstatus): Move before linker functions.
53 (elf_i386_grok_psinfo): Likewise.
54 (elf_i386_fake_sections): Move so that functions are ordered.
55 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
57 2001-09-25 Alan Modra <amodra@bigpond.net.au>
59 * elf32-hppa.c: Rename all occurrences of "hplink" to "htab"
62 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
63 code handling this option.
64 (LONG_BRANCH_VIA_PLT): Likewise.
65 (RELATIVE_DYNRELOCS): Define as zero.
66 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
67 "pc_count" fields. Remove "section" field.
68 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
69 (elf32_hppa_check_relocs): Don't allocate space for dynamic
70 relocs here. Instead, record all needed dynamic relocs via
71 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
73 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
74 (allocate_plt_and_got_and_discard_relocs): Rename to
75 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
76 (readonly_dynrelocs): New function.
77 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
78 Call readonly_dynrelocs to determine need for DT_TEXTREL.
79 Rename "i" to "ibfd". Allocate space for local dyn relocs.
80 (elf32_hppa_relocate_section): Make use of cached sreloc.
81 (elf32_hppa_reloc_type_class): New function.
82 (elf_backend_reloc_type_class): Define.
84 2001-09-25 Alan Modra <amodra@bigpond.net.au>
86 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
88 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
89 "pc_count" fields. Remove "section" field.
90 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
91 allocate space for dynamic relocs here. Instead, record all
92 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
93 pointer to "sreloc" section in elf_section_data.
94 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
95 (allocate_plt_and_got_and_discard_relocs): Rename to
96 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
97 (readonly_dynrelocs): New function.
98 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
99 Rename "i" to "ibfd". Allocate space for local dyn relocs.
100 (elf_i386_relocate_section): Make use of cached sreloc.
102 2001-09-24 Alan Modra <amodra@bigpond.net.au>
104 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
105 reloc rather than just the type.
106 (_bfd_elf_reloc_type_class): Likewise.
107 * elf.c (_bfd_elf_reloc_type_class): Likewise.
108 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
109 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
110 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
111 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
112 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
113 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
114 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
115 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
116 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
117 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
118 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
119 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
120 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
121 * elflink.h: Formatting fixes.
122 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
123 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
124 o->contents to PTR. Update call to elf_backend_reloc_type_class.
126 2001-09-22 John Reiser <jreiser@BitWagon.com>
128 * elfcode.h (elf_object_p): Allow for no section header at all in
129 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
131 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
133 * elfxx-ia64.c: Fix compile time warning messages.
134 * coff-mcore.c: Fix compile time warning messages.
135 * coff-ppc.c: Fix compile time warning messages.
136 * coffcode.h: Fix compile time warning messages.
137 * elf32-mips.c: Fix compile time warning messages.
138 * elf64-alpha.c: Fix compile time warning messages.
139 * libbfd.c: Fix compile time warning messages.
140 * bfd-in2.h: Regenerate.
142 2001-09-21 Alan Modra <amodra@bigpond.net.au>
144 * Makefile.am: Run "make dep-am".
145 * Makefile.in: Regenerate.
147 * aoutx.h: Formatting fixes.
148 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
150 * linker.c: Replace bfd_get_filename with bfd_archive_filename
153 2001-09-21 Alan Modra <amodra@bigpond.net.au>
155 * bfd.c (bfd_archive_filename): New function.
156 * bfd-in2.h: Regenerate.
157 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
158 in error messages where the bfd is an input bfd.
159 * aout-cris.c: Likewise.
160 * coff-arm.c: Likewise.
161 * coff-mcore.c: Likewise.
162 * coff-ppc.c: Likewise.
163 * coff-rs6000.c: Likewise.
164 * coff-sh.c: Likewise.
165 * coff-tic54x.c: Likewise.
166 * coff-tic80.c: Likewise.
167 * coff64-rs6000.c: Likewise.
168 * coffcode.h: Likewise.
169 * coffgen.c: Likewise.
170 * cofflink.c: Likewise.
171 * ecofflink.c: Likewise.
172 * elf-hppa.h: Likewise.
174 * elf32-arm.h: Likewise.
175 * elf32-cris.c: Likewise.
176 * elf32-gen.c: Likewise.
177 * elf32-hppa.c: Likewise.
178 * elf32-i370.c: Likewise.
179 * elf32-i386.c: Likewise.
180 * elf32-m32r.c: Likewise.
181 * elf32-mcore.c: Likewise.
182 * elf32-mips.c: Likewise.
183 * elf32-ppc.c: Likewise.
184 * elf32-s390.c: Likewise.
185 * elf32-sh.c: Likewise.
186 * elf32-sparc.c: Likewise.
187 * elf32-v850.c: Likewise.
188 * elf64-alpha.c: Likewise.
189 * elf64-gen.c: Likewise.
190 * elf64-ppc.c: Likewise.
191 * elf64-s390.c: Likewise.
192 * elf64-sparc.c: Likewise.
193 * elf64-x86-64.c: Likewise.
194 * elflink.h: Likewise.
195 * elfxx-ia64.c: Likewise.
198 * libbfd.c: Likewise.
200 * pe-mips.c: Likewise.
201 * peicode.h: Likewise.
203 * xcofflink.c: Likewise.
205 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
207 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
210 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
213 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
214 Consolidate error messages, and split long messages to two lines.
216 2001-09-20 John Reiser <jreiser@BitWagon.com>
218 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
219 and info->allow_shlib_undefined.
220 * elf32-cris.c: Likewise.
221 * elf32-hppa.c: Likewise.
222 * elf32-m68k.c: Likewise.
223 * elf32-mips.c: Likewise.
224 * elf32-ppc.c: Likewise.
225 * elf32-s390.c: Likewise.
226 * elf32-sh.c: Likewise.
227 * elf32-sparc.c: Likewise.
228 * elf64-alpha.c: Likewise.
229 * elf64-hppa.c: Likewise.
230 * elf64-ppc.c: Likewise.
231 * elf64-s390.c: Likewise.
232 * elf64-sparc.c: Likewise.
233 * elf64-x86-64.c: Likewise.
234 * elfxx-ia64.c: Likewise.
236 2001-09-18 Bruno Haible <haible@clisp.cons.org>
238 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
239 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
240 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
241 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
242 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
243 (bfd_default_scan): Use ISDIGIT instead of isdigit.
244 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
245 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
246 isxdigit/isdigit/islower.
247 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
248 (mangle_name): Use ISALNUM instead of isalnum.
249 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
250 (scan): Use ISDIGIT instead of isdigit.
251 * hosts/alphavms.h: Don't include <ctype.h>.
252 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
253 (ieee_object_p): Use TOUPPER instead of toupper.
254 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
255 (ihex_bad_byte): Use ISPRINT instead of isprint.
256 * merge.c: Don't include <ctype.h>.
257 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
258 (oasys_write_sections): Use ISDIGIT instead of isdigit.
259 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
260 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
261 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
262 (mangle_name): Use ISALNUM instead of isalnum.
263 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
264 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
265 isupper/islower/isdigit.
266 (som_decode_symclass): Use TOUPPER instead of toupper.
267 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
268 (srec_bad_byte): Use ISPRINT instead of isprint.
269 (srec_scan): Use ISSPACE instead of isspace.
270 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
271 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
272 * syms.c: Include "safe-ctype.h"
273 (islower, toupper): Remove macro definitions.
274 (bfd_decode_symclass): Use TOUPPER instead of toupper.
275 * vms-gsd.c: Don't include <ctype.h>.
276 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
277 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
279 * vms-tir.c: Don't include <ctype.h>.
281 2001-09-18 Alan Modra <amodra@bigpond.net.au>
283 * libbfd.c (bfd_bread): New function replacing bfd_read without
284 redundant params. Allow reads up to (size_t) -2 in length.
285 (bfd_bwrite): Similarly for bfd_write.
286 (real_read): Return a size_t.
287 (bfd_read): Call bfd_bread.
288 (bfd_write): Call bfd_bwrite.
289 (warn_deprecated): New function to annoy everybody.
290 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
291 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
292 (bfd_read, bfd_write): Define as macro.
293 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
294 likewise for bfd_write. Ensure function args are correct size by
295 using casts or local vars. In some cases, remove unnecessary
296 casts. Formatting fixes, in some cases removing a large expression
297 from function args by using a local var. Replace CONST with const.
298 Modify variable types to avoid warings. Use casts to avoid
299 warnings when using negative numbers in unsigned expressions.
300 * aout-adobe.c: Likewise.
301 * aout-arm.c: Likewise.
302 * aout-cris.c: Likewise.
303 * aout-encap.c: Likewise.
304 * aout-ns32k.c: Likewise.
305 * aout-target.h: Likewise.
306 * aout-tic30.c: Likewise.
307 * aoutf1.h: Likewise.
309 * archive.c: Likewise.
310 * archures.c: Likewise.
311 * bfd-in.h: Likewise.
313 * binary.c: Likewise.
316 * cisco-core.c: Likewise.
317 * coff-a29k.c: Likewise.
318 * coff-alpha.c: Likewise.
319 * coff-arm.c: Likewise.
320 * coff-h8300.c: Likewise.
321 * coff-h8500.c: Likewise.
322 * coff-i386.c: Likewise.
323 * coff-i860.c: Likewise.
324 * coff-i960.c: Likewise.
325 * coff-ia64.c: Likewise.
326 * coff-m68k.c: Likewise.
327 * coff-m88k.c: Likewise.
328 * coff-mcore.c: Likewise.
329 * coff-mips.c: Likewise.
330 * coff-ppc.c: Likewise.
331 * coff-rs6000.c: Likewise.
332 * coff-sh.c: Likewise.
333 * coff-sparc.c: Likewise.
334 * coff-stgo32.c: Likewise.
335 * coff-tic30.c: Likewise.
336 * coff-tic54x.c: Likewise.
337 * coff-tic80.c: Likewise.
338 * coff-w65.c: Likewise.
339 * coff-z8k.c: Likewise.
340 * coff64-rs6000.c: Likewise.
341 * coffcode.h: Likewise.
342 * coffgen.c: Likewise.
343 * cofflink.c: Likewise.
344 * coffswap.h: Likewise.
345 * corefile.c: Likewise.
346 * cpu-arc.c: Likewise.
347 * cpu-h8300.c: Likewise.
348 * cpu-h8500.c: Likewise.
349 * cpu-i960.c: Likewise.
350 * cpu-ia64-opc.c: Likewise.
351 * cpu-ns32k.c: Likewise.
352 * cpu-pdp11.c: Likewise.
353 * cpu-pj.c: Likewise.
354 * cpu-sh.c: Likewise.
355 * cpu-w65.c: Likewise.
356 * cpu-z8k.c: Likewise.
357 * dwarf1.c: Likewise.
358 * dwarf2.c: Likewise.
360 * ecofflink.c: Likewise.
361 * ecoffswap.h: Likewise.
362 * elf-bfd.h: Likewise.
363 * elf-hppa.h: Likewise.
364 * elf-m10200.c: Likewise.
365 * elf-m10300.c: Likewise.
367 * elf32-arc.c: Likewise.
368 * elf32-arm.h: Likewise.
369 * elf32-avr.c: Likewise.
370 * elf32-cris.c: Likewise.
371 * elf32-fr30.c: Likewise.
372 * elf32-gen.c: Likewise.
373 * elf32-h8300.c: Likewise.
374 * elf32-hppa.c: Likewise.
375 * elf32-i370.c: Likewise.
376 * elf32-i386.c: Likewise.
377 * elf32-i860.c: Likewise.
378 * elf32-m32r.c: Likewise.
379 * elf32-m68k.c: Likewise.
380 * elf32-mcore.c: Likewise.
381 * elf32-mips.c: Likewise.
382 * elf32-openrisc.c: Likewise.
383 * elf32-pj.c: Likewise.
384 * elf32-ppc.c: Likewise.
385 * elf32-s390.c: Likewise.
386 * elf32-sh-lin.c: Likewise.
387 * elf32-sh.c: Likewise.
388 * elf32-sparc.c: Likewise.
389 * elf32-v850.c: Likewise.
390 * elf64-alpha.c: Likewise.
391 * elf64-hppa.c: Likewise.
392 * elf64-mips.c: Likewise.
393 * elf64-ppc.c: Likewise.
394 * elf64-s390.c: Likewise.
395 * elf64-sparc.c: Likewise.
396 * elf64-x86-64.c: Likewise.
397 * elfarm-nabi.c: Likewise.
398 * elfcode.h: Likewise.
399 * elfcore.h: Likewise.
400 * elflink.c: Likewise.
401 * elflink.h: Likewise.
402 * elfxx-ia64.c: Likewise.
403 * elfxx-target.h: Likewise.
404 * format.c: Likewise.
406 * hp300hpux.c: Likewise.
407 * hppabsd-core.c: Likewise.
408 * hpux-core.c: Likewise.
409 * i386aout.c: Likewise.
410 * i386dynix.c: Likewise.
411 * i386linux.c: Likewise.
412 * i386lynx.c: Likewise.
413 * i386mach3.c: Likewise.
414 * i386msdos.c: Likewise.
415 * i386os9k.c: Likewise.
418 * irix-core.c: Likewise.
419 * libaout.h: Likewise.
420 * libbfd-in.h: Likewise.
421 * libbfd.c: Likewise.
422 * libcoff-in.h: Likewise.
423 * libecoff.h: Likewise.
424 * libieee.h: Likewise.
425 * libnlm.h: Likewise.
426 * libpei.h: Likewise.
427 * libxcoff.h: Likewise.
428 * linker.c: Likewise.
429 * lynx-core.c: Likewise.
430 * m68klinux.c: Likewise.
432 * mipsbsd.c: Likewise.
433 * netbsd-core.c: Likewise.
435 * nlm32-alpha.c: Likewise.
436 * nlm32-i386.c: Likewise.
437 * nlm32-ppc.c: Likewise.
438 * nlm32-sparc.c: Likewise.
439 * nlmcode.h: Likewise.
440 * nlmswap.h: Likewise.
443 * opncls.c: Likewise.
444 * osf-core.c: Likewise.
445 * pc532-mach.c: Likewise.
447 * pe-mips.c: Likewise.
448 * peXXigen.c: Likewise.
449 * peicode.h: Likewise.
450 * ppcboot.c: Likewise.
451 * ptrace-core.c: Likewise.
453 * reloc16.c: Likewise.
454 * riscix.c: Likewise.
455 * rs6000-core.c: Likewise.
456 * sco5-core.c: Likewise.
457 * section.c: Likewise.
459 * sparclinux.c: Likewise.
460 * sparclynx.c: Likewise.
465 * targets.c: Likewise.
466 * tekhex.c: Likewise.
467 * trad-core.c: Likewise.
468 * versados.c: Likewise.
469 * vms-gsd.c: Likewise.
470 * vms-hdr.c: Likewise.
471 * vms-misc.c: Likewise.
472 * vms-tir.c: Likewise.
475 * xcofflink.c: Likewise.
476 * bfd-in2.h: Regenerate.
477 * libbfd.h: Regenerate.
478 * libcoff.h: Regenerate.
480 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
481 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
483 (bfd_tell): Return a ufile_ptr.
484 * libbfd.c (bfd_tell): Likewise.
485 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
487 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
488 * aoutf1.h: Likewise.
490 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
491 larger than unsigned long can represent.
493 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
494 size overflows size_t.
495 (bfd_realloc): Likewise.
496 (bfd_zmalloc): Likewise.
497 * opncls.c (bfd_alloc): Likewise.
498 (bfd_zalloc): Likewise.
499 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
500 (bfd_alloc, bfd_zalloc): Update.
502 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
504 (bfd_get_signed_8): Likewise.
505 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
506 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
507 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
508 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
509 * libaout.h: Likewise define and use here.
510 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
511 * aout-arm.c: Likewise.
512 * aout-encap.c: Likewise.
513 * aout-ns32k.c: Likewise.
514 * aout-tic30.c: Likewise.
515 * aoutf1.h: Likewise.
518 * coff-alpha.c: Likewise.
519 * coff-h8300.c: Likewise.
520 * coff-h8500.c: Likewise.
521 * coff-i960.c: Likewise.
522 * coff-ia64.c: Likewise.
523 * coff-m88k.c: Likewise.
524 * coff-mips.c: Likewise.
525 * coff-ppc.c: Likewise.
526 * coff-rs6000.c: Likewise.
527 * coff-sh.c: Likewise.
528 * coff-sparc.c: Likewise.
529 * coff-stgo32.c: Likewise.
530 * coff-tic30.c: Likewise.
531 * coff-tic80.c: Likewise.
532 * coff-w65.c: Likewise.
533 * coff-z8k.c: Likewise.
534 * coff64-rs6000.c: Likewise.
535 * coffgen.c: Likewise.
536 * cofflink.c: Likewise.
537 * coffswap.h: Likewise.
539 * ecoffswap.h: Likewise.
541 * elf32-mips.c: Likewise.
542 * elf64-mips.c: Likewise.
543 * hp300hpux.c: Likewise.
544 * i386dynix.c: Likewise.
545 * i386lynx.c: Likewise.
546 * i386msdos.c: Likewise.
547 * i386os9k.c: Likewise.
548 * libpei.h: Likewise.
549 * nlm32-alpha.c: Likewise.
550 * nlm32-i386.c: Likewise.
551 * nlm32-ppc.c: Likewise.
552 * nlmcode.h: Likewise.
553 * nlmswap.h: Likewise.
556 * pe-mips.c: Likewise.
557 * peXXigen.c: Likewise.
558 * peicode.h: Likewise.
559 * riscix.c: Likewise.
561 * xcofflink.c: Likewise.
562 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
563 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
564 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
565 equivalent H_PUT_* macro instead.
566 (GETWORD, GETHALF, GETBYTE): Similarly.
567 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
568 (GETWORD, GETHALF, GETBYTE): Likewise.
569 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
571 * bfd-in.h (struct orl): Change "pos" to a union.
572 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
573 (bsd_write_armap): Here too.
574 (coff_write_armap): And here.
575 * coff-rs6000.c (xcoff_write_armap_old): And here.
576 (xcoff_write_one_armap_big): And here.
577 (xcoff_write_armap_big): And here.
578 * ecoff.c (_bfd_ecoff_write_armap): And here.
579 * elf64-mips.c (mips_elf64_write_armap): And here.
581 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
582 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
583 * elf32-h8300.c (elf32_h8_mach): Likewise.
584 * elf32-mips.c (elf_mips_mach): Likewise.
585 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
587 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
589 (aix386_core_vec): Typo fix.
591 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
592 etc. to avoid redefined macro warning.
593 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
594 (MY(fix_pcrel_26)): Likewise.
595 * aout-ns32k.c (MY(put_reloc)): Likewise.
596 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
597 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
598 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
600 * aout-encap.c: Include "file", not <file> for binutils headers.
601 (encap_object_p): Half baked attempt to fix compile errors in
602 code dealing with "magic".
604 * aout-ns32k.c: Include "file", not <file> for binutils headers.
605 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
606 bfd_vma's rather than longs.
607 * cpu-ns32k.c (ns32k_sign_extend): Delete.
608 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
609 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
611 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
612 Use unsigned comparisons.
613 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
614 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
615 (_bfd_do_ns32k_reloc_contents): Likewise.
616 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
617 (_bfd_ns32k_get_immediate): Likewise.
618 (_bfd_ns32k_put_displacement): Likewise.
619 (_bfd_ns32k_put_immediate): Likewise.
620 (bfd_reloc_status_type): Likewise.
622 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
624 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
625 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
626 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
628 (record_toc): Use a bfd_signed_vma for our_toc_offset.
629 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
630 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
632 (_bfd_elfcore_strndup): Likewise for "dup".
633 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
634 "name" to avoid shadowing.
635 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
637 * elf32-i386.c (elf_i386_relocate_section): Likewise.
638 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
640 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
642 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
644 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
646 (elf_link_input_bfd): Likewise.
647 (elf_bfd_final_link): Remove duplicate innermost "off" var.
648 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
649 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
651 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
652 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
653 (sunos_write_dynamic_symbol): Remove unused vars.
654 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
655 innermost "directory_name" and "file_name" vars.
656 * tekhex.c (first_phase): Rename local var "type" to "stype".
657 (tekhex_write_object_contents): Rename innermost "s" to "sym".
658 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
659 doing comparison at caller.
660 (vms_esecflag_by_name): Likewise.
661 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
662 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
663 (xcoff_write_global_symbol): Rename "p" param to "inf".
665 * cisco-core.c: Add missing prototypes.
666 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
667 (cisco_core_file_failing_signal): Likewise.
668 (cisco_core_file_matches_executable_p): Likewise.
669 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
670 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
671 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
672 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
674 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
675 thumb_glue_size and arm_glue_size.
676 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
678 * coff64-rs6000.c: Group prototypes together.
680 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
681 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
683 * cpu-arc.c: Add missing prototypes.
684 * cpu-h8500.c: Likewise.
685 * cpu-i960.c: Likewise.
686 * cpu-pj.c: Likewise.
687 * cpu-sh.c: Likewise.
688 * cpu-w65.c: Likewise.
689 * cpu-z8k.c: Likewise.
690 * elf32-fr30.c: Likewise.
691 * elf32-h8300.c: Likewise.
692 * elf32-i370.c: Likewise.
693 * hpux-core.c: Likewise.
694 * versados.c: Likewise.
696 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
697 * cpu-h8500.c: Likewise.
698 * cpu-i960.c: Likewise.
699 * cpu-z8k.c: Likewise.
701 * cpu-ia64-opc.c: Correct comment.
703 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
705 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
707 (bfd_elf32_write_out_phdrs): Likewise.
708 (bfd_elf64_write_out_phdrs): Likewise.
709 (elf_linker_section_pointers): Change addend to bfd_vma.
710 (_bfd_elf_find_pointer_linker_section): Likewise.
711 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
712 filepos to unsigned file_ptr.
713 (_bfd_elfcore_strndup): Change max param to size_t.
714 * elf.c (_bfd_elfcore_make_pseudosection): As above.
715 (_bfd_elfcore_strndup): Likewise.
716 (_bfd_elf_find_pointer_linker_section): Likewise.
718 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
719 insn and sym_value to ints.
721 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
723 (elfcore_read_notes): Likewise.
725 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
726 param from unsigned char to int.
727 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
728 for info_to_howto call.
729 (add_dynamic_entry): Define macro.
730 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
732 * elf32-cris.c (add_dynamic_entry): Define macro.
733 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
735 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
736 (elf32_h8_object_p): Likewise.
737 (elf32_h8_merge_private_bfd_data): Likewise.
738 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
740 * elf32-hppa.c (add_dynamic_entry): Define macro.
741 (elf32_hppa_size_dynamic_sections): Use it.
742 * elf32-i370.c (add_dynamic_entry): Define macro.
743 (i370_elf_size_dynamic_sections): Use it.
744 (i370_noop): Make static.
745 * elf32-i386.c (add_dynamic_entry): Define macro.
746 (elf_i386_size_dynamic_sections): Use it.
747 * elf32-m68k.c (add_dynamic_entry): Define macro.
748 (elf_m68k_size_dynamic_sections): Use it.
749 * elf32-ppc.c (add_dynamic_entry): Define macro.
750 (ppc_elf_size_dynamic_sections): Use it.
751 * elf32-s390.c (add_dynamic_entry): Define macro.
752 (elf_s390_size_dynamic_sections): Use it.
753 * elf64-alpha.c (add_dynamic_entry): Define macro.
754 (elf64_alpha_size_dynamic_sections): Use it.
755 * elf64-hppa.c (add_dynamic_entry): Define macro.
756 (elf64_hppa_size_dynamic_sections): Use it.
757 * elf64-ppc.c (add_dynamic_entry): Define macro.
758 (ppc64_elf_size_dynamic_sections): Use it.
759 * elf64-s390.c (add_dynamic_entry): Define macro.
760 (elf_s390_size_dynamic_sections): Use it.
761 * elf64-sparc.c (add_dynamic_entry): Define macro.
762 (sparc64_elf_size_dynamic_sections): Use it.
763 * elf64-x86-64.c (add_dynamic_entry): Define macro.
764 (elf64_x86_64_size_dynamic_sections): Use it.
765 * elfxx-ia64.c (add_dynamic_entry): Define macro.
766 (elfNN_ia64_size_dynamic_sections): Use it.
768 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
769 (v850_elf_perform_relocation): Make "r_type" param unsigned.
771 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
772 false if the first malloc fails rather than going via error_return.
774 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
776 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
778 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
780 * elfxx-ia64.c (global_sym_index): Return a long.
782 * ieee.c (get_symbol): Use int rather than char param.
783 (ieee_slurp_sections): Move "section" var to inner blocks.
784 (copy_expression): Don't init "value" to zero or worry about
785 clearing to zero after using.
786 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
789 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
792 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
793 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
795 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
797 * pc532-mach.c (MYNSX): Delete.
798 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
799 (write_object_contents): Correct prototype.
801 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
804 * section.c (bfd_set_section_contents): Remove redundant
805 "offset < 0" test. Check that "count" doesn't overflow size_t.
806 (bfd_get_section_contents): Likewise.
808 * som.c (som_fixup_formats): Add missing braces.
809 (som_reloc_addend): Pass a bfd_vma for "addend".
811 * srec.c (srec_write_record): Pass "type" as an unsigned int.
812 (srec_write_symbols): Remove an unnecessary var.
814 * targets.c (_bfd_target_vector): Sort entries. Sort externs
816 * configure.in: Sort to match. Bump version number.
817 * configure: Regenerate.
819 * tekhex.c (move_section_contents): Assert offset == 0.
821 * versados.c (new_symbol_string): Constify arg.
822 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
823 (versados_get_symbol_info): Make static.
824 (versados_print_symbol): Likewise.
825 (versados_get_reloc_upper_bound): Likewise.
826 (versados_canonicalize_reloc): Likewise.
828 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
830 * elflink.h (elf_link_input_bfd): Fix typo in error message.
832 2001-09-17 H.J. Lu <hjl@gnu.org>
834 * dwarf1.c (parse_die): Take a new arg for the end of the
835 section. Return false if die is beyond the section.
836 (parse_functions_in_unit): Pass the end of the section to
838 (_bfd_dwarf1_find_nearest_line): Likewise.
840 2001-09-14 Michael Rauch <mrauch@netbsd.org>
842 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
843 just like R_SPARC_32.
845 2001-09-14 Kevin Lo <kevlo@openbsd.org>
847 * configure.bfd: Add arm-openbsd target.
849 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
851 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
852 Add support for mips64.
854 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
856 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
858 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
860 * elf.c (prep_headers): Get the machine code from the elf
862 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
863 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
864 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
865 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
866 * elf-arc.c (arc_elf_final_write_processing): Don't override
867 e_machine, it's now properly set in prep_headers.
868 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
870 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
871 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
872 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
873 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
874 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
875 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
876 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
877 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
878 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
879 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
880 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
881 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
883 2001-09-11 Richard Henderson <rth@redhat.com>
885 * elf64-alpha.c (elf64_alpha_section_flags): New.
886 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
888 2001-09-11 Richard Henderson <rth@redhat.com>
890 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
891 apply HINT relocations against dynamic symbols.
893 2001-09-11 H.J. Lu <hjl@gnu.org>
895 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
897 2001-09-09 Richard Henderson <rth@redhat.com>
899 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
901 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
902 following a call to a near function.
904 2001-09-08 Richard Henderson <rth@redhat.com>
906 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
907 relocation errors. Fail gp-relative relocations against
910 2001-09-08 Alan Modra <amodra@bigpond.net.au>
912 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
913 as well as DEF_DYNAMIC in test for avoided copy relocs.
914 (allocate_plt_and_got_and_discard_relocs): Likewise.
915 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
916 (allocate_plt_and_got_and_discard_relocs): Likewise.
918 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
920 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
923 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
925 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
927 (mips_elf64_howto_table_rel): Likewise.
929 2001-09-05 Tom Rix <trix@redhat.com>
931 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
933 (write_global_symbol) : Same.
934 (bfd_xcoff_export_symbol): Remove unused syscall param.
935 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
936 bfd_xcoff_import_symbol.
938 * bfd-in2.h : Regenerate.
940 2001-09-04 Richard Henderson <rth@redhat.com>
942 * elf64-alpha.c (SKIP_HOWTO): New.
943 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
944 Fix sizes of 16-bit mem format relocs.
945 (elf64_alpha_reloc_map): Update to match.
946 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
947 (elf64_alpha_relax_without_lituse): Likewise.
948 (elf64_alpha_check_relocs): Handle GPREL16.
949 (elf64_alpha_relocate_section): Likewise.
950 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
951 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
952 * bfd-in2.h, libbfd.h: Rebuild.
954 2001-09-04 Jeff Law <law@redhat.com>
956 * elf32-h8300.c (elf32_h8_relax_section): New function.
957 (elf32_h8_relax_delete_bytes): Likewise.
958 (elf32_h8_symbol_address_p): Likewise.
959 (elf32_h8_get_relocated_section_contents): Likewise.
960 (bfd_elf32_bfd_relax_section): Define.
961 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
963 * elf32-h8300.c (special): New function.
964 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
966 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
967 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
968 Fix minor problems with 8bit and 16bit PC relative relocations.
970 2001-09-01 Andreas Jaeger <aj@suse.de>
972 * vms-tir.c: Add missing prototypes.
973 * vms-hdr.c: Likewise.
974 * vms-gsd.c: Likewise.
975 * vms-misc.c: Likewise.
977 2001-08-31 H.J. Lu <hjl@gnu.org>
979 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
982 2001-08-31 Eric Christopher <echristo@redhat.com>
983 Jason Eckhardt <jle@redhat.com>
985 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
986 mips32_4k and mips64.
987 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
988 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
989 * bfd/cpu-mips.c: Ditto.
990 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
991 * bfd/bfd-in2.h: Regenerate.
993 2001-08-31 Jakub Jelinek <jakub@redhat.com>
995 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
996 value into R_ALPHA_RELATIVE's addend.
997 (elf64_alpha_finish_dynamic_symbol): Likewise.
999 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1001 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1002 recomputed addend during relocatable link if not USE_REL.
1004 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1007 2001-08-30 H.J. Lu <hjl@gnu.org>
1009 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1011 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1012 relocations for weak definitions.
1014 2001-08-30 H.J. Lu <hjl@gnu.org>
1016 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1017 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1018 * Makefile.in: Rebuild.
1020 2001-08-30 H.J. Lu <hjl@gnu.org>
1022 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1023 dynamic relocation for undefined weak symbols when creating
1024 executables. Check h->root.root.type, instead of h->root.type.
1026 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1028 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1029 default from coff to elf.
1031 2001-08-29 Jeff Law <law@redhat.com>
1033 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1035 (h8_reloc_map): Similarly.
1036 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1037 Add support for PC relative relocations.
1039 * elf32-h8300.c: Put all prototypes together.
1040 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1041 (elf32_h8_final_link_relocate): New function for linker.
1042 (elf32_h8_relocate_section): Similarly.
1043 (elf_backend_relocate_section): Define.
1045 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1046 (h8300_scan): Handle architecture:machine encodings typically
1047 found in linker scripts.
1048 * elf.c (prep_headers): Do not try to do H8 machine recognition
1050 * elf32-h8300.c: Add some missing prototypes.
1051 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1052 (elf32_h8_object_p): Similarly.
1054 2001-08-29 Tom Rix <trix@redhat.com>
1056 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1057 does not follow a XTY_SD.
1059 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1061 * targmatch.sed: Delete case statements.
1062 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1065 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1067 * Makefile.am (elf32-h8300.lo): New target.
1068 * config.bfd (h8300*-*-elf): New case.
1069 * configure.in (bfd_elf32_h8300_vec): New case.
1070 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1071 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1072 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1073 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1074 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1075 * elf32-h8300.c: New file.
1076 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1078 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1080 * sparclynx.c: Add missing prototypes.
1081 * coff-mcore.c: Add missing prototypes.
1082 * elf32-pj.c: Add missing prototypes.
1083 * nlm32-sparc.c: Add missing prototypes.
1084 * oasys.c: Add missing prototypes.
1085 * pdp11.c: Add missing prototypes.
1086 * pe-mips.c: Add missing prototypes.
1087 * riscix.c: Add missing prototypes.
1089 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1091 * elf32-i386.c: Add missing prototypes.
1092 * elf32-ppc.c: Likewise.
1093 * elf32-sh-lin.c: Likewise.
1094 * elfarm-nabi.c: Likewise.
1096 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1098 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1099 (elf_i386_grok_psinfo): New function.
1100 (elf_backend_grok_prstatus): Define.
1101 (elf_backend_grok_psinfo): Likewise.
1102 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1103 (ppc_elf_grok_psinfo): New function.
1104 (elf_backend_grok_prstatus): Define.
1105 (elf_backend_grok_psinfo): Likewise.
1106 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1107 (elf32_shlin_grok_psinfo): New function.
1108 (elf_backend_grok_prstatus): Define.
1109 (elf_backend_grok_psinfo): Likewise.
1110 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1111 (elf32_arm_nabi_grok_psinfo): New function.
1112 (elf_backend_grok_prstatus): Define.
1113 (elf_backend_grok_psinfo): Likewise.
1115 2001-08-27 H.J. Lu <hjl@gnu.org>
1117 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1119 (mips_elf_calculate_relocation): Create dynamic relocation for
1120 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1123 2001-08-27 H.J. Lu <hjl@gnu.org>
1125 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1126 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1127 (_bfd_elf32_mips_grok_prstatus): Likewise.
1128 (_bfd_elf32_mips_grok_psinfo): Likewise.
1129 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1130 `struct mips_elf_link_hash_entry *'.
1131 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1133 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1135 * mipsbsd.c: Add missing prototypes.
1136 * hp300hpux.c: Add missing prototypes.
1137 * i386aout.c: Add missing prototypes.
1138 * i386lynx.c: Add missing prototypes.
1139 * i386mach3.c: Add missing prototypes.
1140 * i386msdos.c: Add missing prototypes.
1141 * i386os9k.c: Add missing prototypes.
1143 2001-08-27 Linus Nordberg <linus@swox.se>
1144 Torbjorn Granlund <tege@swox.com>
1145 Staffan Ulfberg <staffanu@swox.se>
1146 Alan Modra <amodra@bigpond.net.au>
1148 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1149 targ64_selvecs for 32 bit powerpc targets.
1150 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1151 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1153 * Makefile.in: Regenerate.
1154 * configure.in: Add elf64_powerpc vecs.
1155 * configure: Regenerate.
1156 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1157 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1158 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1159 * elf64-ppc.c: New file.
1160 * reloc.c: Add powerpc64 relocs.
1161 * libbfd.h: Regenerate.
1162 * bfd-in2.h: Regenerate.
1164 2001-08-27 Andreas Schwab <schwab@suse.de>
1166 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1167 reloc is against read-only section.
1168 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1169 looking up section names for DT_TEXTREL.
1170 (elf32_m68k_reloc_type_class): New function.
1171 (elf_backend_reloc_type_class): Define.
1173 2001-08-27 Andreas Jaeger <aj@suse.de>
1175 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1176 reloc is against read-only section.
1177 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1178 looking up section names for DT_TEXTREL.
1179 (elf_s390_reloc_type_class): New.
1180 (elf_backend_reloc_type_class): Define.
1182 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1183 reloc is against read-only section.
1184 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1185 looking up section names for DT_TEXTREL.
1186 (elf_s390_reloc_type_class): New.
1187 (elf_backend_reloc_type_class): Define.
1189 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1190 is against read-only section.
1191 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1192 looking up section names for DT_TEXTREL.
1193 (ppc_elf_reloc_type_class): New.
1194 (elf_backend_reloc_type_class): Define.
1196 2001-08-26 Andreas Jaeger <aj@suse.de>
1198 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1199 reloc is against read-only section.
1200 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1201 looking up section names for DT_TEXTREL.
1202 (elf_cris_reloc_type_class): New.
1203 (elf_backend_reloc_type_class): Define.
1205 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1206 against read-only section.
1207 (elf_backend_reloc_type_class): Define.
1208 (sh_elf_reloc_type_class): New.
1209 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1210 looking up section names for DT_TEXTREL.
1212 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1213 reloc is against read-only section.
1214 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1215 looking up section names for DT_TEXTREL.
1216 (elf32_arm_reloc_type_class): New.
1217 (elf_backend_reloc_type_class): Define.
1219 2001-08-25 Andreas Jaeger <aj@suse.de>
1221 * oasys.c: Add missing prototypes.
1223 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1224 attribute for parameter.
1225 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1227 * versados.c (get_4): Make static.
1228 (get_10): Make static.
1229 Add missing prototypes.
1230 (process_esd): Fix call to versados_new_symbol.
1232 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1234 * coff-a29k.c: Add missing prototypes.
1235 * coff-apollo.c: Add missing prototypes.
1236 * coff-arm.c: Add missing prototypes.
1237 * coff-i860.c: Add missing prototypes.
1238 * coff-rs6000.c: Add missing prototypes.
1239 * coff-tic80.c: Add missing prototypes.
1240 * elf-m10200.c: Add missing prototypes.
1241 * elf-m10300.c: Add missing prototypes.
1242 * elf32-arm.h: Add missing prototypes.
1243 * elf32-d10v.c: Add missing prototypes.
1244 * elf32-m32r.c: Add missing prototypes.
1245 * elf32-mcore.c: Add missing prototypes.
1246 * elf32-openrisc.c: Add missing prototypes.
1247 * elf32-sh.c: Add missing prototypes.
1248 * elf32-sparc.c: Add missing prototypes.
1249 * elf32-v850.c: Add missing prototypes.
1250 * elfarm-nabi.c: Add missing prototypes.
1251 * elfarm-oabi.c: Add missing prototypes.
1253 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1255 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1256 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1258 2001-08-24 H.J. Lu <hjl@gnu.org>
1260 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1263 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1265 * elf-bfd.h (elf_hash_table): Revert definition.
1266 (is_elf_hash_table): New macro.
1267 * elflink.h (elf_link_add_object_symbols): Test
1268 is_elf_hash_table before accessing ELF only fields in hash
1270 (elf_link_create_dynamic_sections): Fail if not using an ELF
1272 (elf_add_dynamic_entry): Fail if not using an ELF hash
1274 (elf_link_record_local_dynamic_symbol): Fail if not using an
1276 (size_dynamic_sections): Fail if not using an ELF hash
1278 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1280 (elf_bfd_final_link): Fail if not using an ELF hash
1283 2001-08-24 H.J. Lu <hjl@gnu.org>
1285 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1286 table is not an ELF linker hash table.
1288 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1289 table type to bfd_link_elf_hash_table.
1291 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1294 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1295 table type to bfd_link_generic_hash_table.
1297 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1299 * bfd.c (bfd_alt_mach_code): New function.
1300 * bfd-in2.h: Rebuilt.
1302 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1304 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1305 `type' field in the hash entry when deciding whether to follow a
1308 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1310 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1312 (elf_link_sort_relocs): Adjust accordingly.
1314 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1315 (elf64_alpha_check_relocs): Set it if section this reloc is against
1316 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1318 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1319 is is against read-only section.
1320 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1321 check section names.
1322 (elf64_alpha_reloc_type_class): New.
1323 (elf_backend_reloc_type_class): Define.
1325 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1327 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1330 2001-08-23 Andreas Jaeger <aj@suse.de>
1332 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1333 the reloc is against read-only section.
1334 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1335 of looking up section names for DT_TEXTREL.
1336 (elf64_x86_64_reloc_type_class): New.
1337 (elf_backend_reloc_type_class): Define.
1339 2001-08-23 H.J. Lu <hjl@gnu.org>
1341 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1342 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1344 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1345 bfd_print_symbol_vandf.
1346 * coffgen.c (coff_print_symbol): Likewise.
1347 * elf.c (bfd_elf_print_symbol): Likewise.
1348 * ieee.c (ieee_print_symbol): Likewise.
1349 * nlmcode.h (nlm_print_symbol): Likewise.
1350 * oasys.c (oasys_print_symbol): Likewise.
1351 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1352 * som.c (som_print_symbol): Likewise.
1353 * srec.c (srec_print_symbol): Likewise.
1354 * tekhex.c (tekhex_print_symbol): Likewise.
1355 * versados.c (versados_print_symbol): Likewise.
1356 * vms.c (vms_print_symbol): Likewise.
1358 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1359 with bfd_fprintf_vma.
1360 (bfd_elf_print_symbol): Likewise.
1361 * syms.c (bfd_print_symbol_vandf): Likewise.
1363 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1365 * aoutf1.h (sunos_write_object_contents): Silence compile time
1367 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1369 * bout.c: Add missing function prototypes. Fix formatting.
1370 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1371 * coff-w65.c: Add missing function prototypes. Fix formatting.
1372 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1373 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1374 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1375 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1376 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1377 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1378 * coff-sh.c: Add missing function prototypes. Fix formatting.
1380 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1382 * elf-bfd.h (enum elf_reloc_type_class): New.
1383 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1384 (_bfd_elf_reloc_type_class): New.
1385 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1386 (elfNN_bed): Add elf_backend_reloc_type_class.
1387 * elf.c (_bfd_elf_reloc_type_class): New.
1388 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1389 is against read-only section.
1390 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1391 looking up section names for DT_TEXTREL.
1392 (elf_i386_reloc_type_class): New.
1393 (elf_backend_reloc_type_class): Define.
1394 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1395 reloc is against read-only section.
1396 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1397 looking up section names for DT_TEXTREL.
1398 (elf32_sparc_reloc_type_class): New.
1399 (elf_backend_reloc_type_class): Define.
1400 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1401 reloc is against read-only section.
1402 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1403 looking up section names for DT_TEXTREL.
1404 (sparc64_elf_reloc_type_class): New.
1405 (elf_backend_reloc_type_class): Define.
1406 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1407 (elfNN_ia64_hash_table_create): Clear ia64_info.
1408 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1410 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1411 instead of looking up section names for DT_TEXTREL.
1412 (elfNN_ia64_reloc_type_class): New.
1413 (elf_backend_reloc_type_class): Define.
1414 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1415 (struct elf_link_sort_rela): New.
1416 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1417 (elf_bfd_final_link): Call elf_link_sort_relocs.
1418 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1421 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1423 * configure.in (x86-bsdi): No corefile support.
1424 * configure: Regenerate.
1426 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1428 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1431 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1433 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1434 the alignment of dwarf2 linkonce sections to 0.
1435 * coff-sto32.c: Likewise.
1437 2001-08-20 Andreas Jaeger <aj@suse.de>
1439 * coff-sparc.c: Add missing prototypes.
1440 * elf32-s390.c: Likewise.
1441 * elf32-i960.c: Likewise.
1442 * aout-target.h: Likewise.
1444 2001-08-20 H.J. Lu <hjl@gnu.org>
1446 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1447 (elf_num_section_syms): New for num_section_syms.
1449 * elf.c (elf_map_symbols): Set num_section_syms.
1450 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1451 the section symbol index.
1453 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1455 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1456 select the generic has table creator. All elf backends need elf
1457 specific fields in the hash table.
1459 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1461 * archive.c (offsetof): Remove define.
1464 * sysdep.h (offsetof): Define.
1466 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1468 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1469 (bfd_set_gp_size): Make param unsigned.
1470 * bfd-in2.h: Regenerate.
1471 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1472 than calling bfd_get_gp_size.
1473 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1474 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1476 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1478 * linker.c (default_fill_link_order): Handle four byte fill value.
1480 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1482 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1484 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1486 * elf64-mips.c (UNUSED_RELOC): Define.
1487 (mips_elf64_howto_table_rel): Use it.
1488 (mips_elf64_howto_table_rela): Here too.
1489 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1491 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1493 * coffgen.c (coff_print_symbol): Fix warnings.
1494 (coff_find_nearest_line): Likewise.
1495 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1496 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1497 * format.c (bfd_check_format_matches): Likewise.
1498 (bfd_set_format): Likewise.
1499 * coff-ia64.c: Add missing prototypes.
1500 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1501 signed to silence warnings.
1502 (elf64_alpha_relocate_section): Likewise.
1503 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1504 (elf64_alpha_add_symbol_hook): Likewise.
1505 (elf64_alpha_final_link): Likewise.
1506 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1507 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1508 (elf64_alpha_size_got_sections): Likewise.
1509 * elfxx-ia64.c: Add missing prototypes.
1510 (elfNN_ia64_relocate_section): Fix warning.
1511 (elfNN_ia64_unwind_entry_compare): Make params const.
1513 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1515 * config.bfd (targ64_selvecs): New.
1516 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1518 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1519 (BFD_DEFAULT_TARGET_SIZE): New.
1520 (BFD_ARCH_SIZE): Comment.
1521 * configure.in (target_size): New. Set instead of target64 in
1522 selvecs case statement. Set target64 from it.
1523 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1524 * bfd-in2.h: Regenerate.
1525 * configure: Regenerate.
1527 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1529 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1530 (bfd_errmsgs): Add corresponding message.
1531 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1532 finding an archive that contains different format object files.
1533 Return bfd_error_wrong_object_format for this case.
1534 * format.c: Formatting fixes. s/CONST/const/.
1535 (bfd_check_format_matches): Accept archives that give
1536 bfd_error_wrong_object_format if no full match is found. Tidy
1537 code handling matching_vector. Don't return a pointer to freed
1538 memory in `matching'. Handle ambiguous matches as for partial
1540 * bfd-in2.h: Regenerate.
1542 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1544 * libieee.h (common_header_type): Add last_byte field.
1546 * ieee.c: Add missing prototypes. Some format fixes.
1547 (struct output_buffer_struct): Move for availability to prototypes.
1548 (ieee_part_after): New function.
1549 (ieee_slurp_debug): Use it here.
1550 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1551 ieee_part_after to set last_byte to one past end of current part.
1553 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1555 (parse_expression): Don't go beyond the end of the current part.
1556 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1557 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1558 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1559 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1560 ieee_set_section_contents, ieee_write_object_contents,
1561 ieee_make_empty_symbol): Make static.
1562 (ieee_archive_p): Correct comments regarding bfd_read.
1563 (ieee_object_p): Similarly.
1564 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1565 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1566 input_bfd, output_bfd, output_buffer.
1567 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1568 do_with_relocs, ie. as a symbol for relocatable files.
1569 (ieee_vec): Add comments showing functions referenced by macros.
1571 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1573 * aout-tic30.c: Add missing prototypes. Fix formatting.
1574 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1575 * peXXigen.c: Add missining prototypes. Fix formatting.
1576 * aout-adobe.c: Add missining prototypes. Fix formatting.
1578 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1580 * elf32-v850.c: Add missing function prototypes.
1581 Fix some formatting.
1583 * cpu-v850.c: Add missing function prototype.
1584 Fix some formatting.
1586 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1588 * elf-bfd.h (struct elf_backend_data): Add new fields
1589 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1590 (bfd_elf_sprintf_vma): Rename function prototype to
1591 '_bfd_elf_sprintf_vma'.
1592 (bfd_elf_fprintf_vma): Rename function prototype to
1593 '_bfd_elf_fprintf_vma'.
1594 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1595 directly, instead indirect via the elf_backend_data structure.
1596 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1597 instead indirect via the elf_backend_data structure.
1598 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1599 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1600 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1602 (elf_backend_fprintf_vma): Initialise if not already defined.
1603 (struct elf_backend_data): Initialise the
1604 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1606 2001-08-10 Andreas Jaeger <aj@suse.de>
1608 * elf64-sparc.c: Add missing prototypes.
1609 * elf32-cris.c: Likewise.
1610 * elf32-i370.c: Likewise.
1611 * elf64-hppa.c: Likewise.
1612 * elf64-s390.c: Likewise.
1614 2001-08-10 Andreas Jaeger <aj@suse.de>
1616 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1617 Add prototypes where needed.
1619 2001-08-10 H.J. Lu <hjl@gnu.org>
1621 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1622 (bfd_fprintf_vma): Likewise.
1624 2001-08-10 H.J. Lu <hjl@gnu.org>
1626 * bfd.c (bfd_sprintf_vma): Don't return void.
1627 (bfd_fprintf_vma): Likewise.
1629 2001-08-10 Andreas Jaeger <aj@suse.de>
1631 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1633 * configure: Regenerate.
1635 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1637 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1638 warning if not BFD64. Add braces so emacs auto format works.
1639 (bfd_elf_fprintf_vma): Likewise.
1641 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1643 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1644 param to agree with libxcoff.h.
1645 (xcoff_swap_ldhdr_out): Likewise.
1646 (xcoff_swap_ldsym_in): Likewise.
1647 (xcoff_swap_ldsym_out): Likewise.
1648 (xcoff_swap_ldrel_in): Likewise.
1649 (xcoff_swap_ldrel_out): Likewise.
1650 (xcoff_create_csect_from_smclas): Likewise.
1651 * coff64-rs6000.c: Add missing prototypes.
1652 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1654 (xcoff64_swap_ldhdr_out): Likewise.
1655 (xcoff64_swap_ldsym_in): Likewise.
1656 (xcoff64_swap_ldsym_out): Likewise.
1657 (xcoff64_swap_ldrel_in): Likewise.
1658 (xcoff64_swap_ldrel_out): Likewise.
1659 (xcoff64_ppc_relocate_section): Make static.
1660 (xcoff64_slurp_armap): Likewise.
1661 (xcoff64_archive_p): Likewise.
1662 (xcoff64_openr_next_archived_file): Likewise.
1663 (xcoff64_sizeof_headers): Likewise.
1664 (xcoff64_is_lineno_count_overflow): Likewise.
1665 (xcoff64_is_reloc_count_overflow): Likewise.
1666 (xcoff64_loader_symbol_offset): Likewise.
1667 (xcoff64_loader_reloc_offset): Likewise.
1668 * elf64-gen.c: Add missing prototypes.
1670 2001-08-09 H.J. Lu <hjl@gnu.org>
1672 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1673 (bfd_elf_fprintf_vma): Likewise.
1675 2001-08-09 H.J. Lu <hjl@gnu.org>
1677 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1680 * bfd-in2.h: Regenerated.
1682 2001-08-09 H.J. Lu <hjl@gnu.org>
1684 * bfd-in.h (bfd_sprintf_vma): New prototype.
1685 (bfd_fprintf_vma): Likewise.
1686 (bfd_elf_sprintf_vma): Likewise.
1687 (bfd_elf_fprintf_vma): Likewise.
1688 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1689 * bfd-in2.h: Regenerated.
1691 * bfd.c (bfd_sprintf_vma): New. Defined.
1692 (bfd_fprintf_vma): Likewise.
1694 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1695 (bfd_elf_fprintf_vma): Likewise.
1697 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1699 * coff-rs6000.c: Add missing prototypes.
1700 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1701 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1702 xcoff_loader_reloc_offset): Make static.
1703 * dwarf1.c: Add missing prototypes.
1704 * dwarf2.c: Add missing prototypes.
1705 (struct abbrev_info): Move definition.
1706 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1707 * elf.c: Add missing prototypes.
1708 * elf32-gen.c: Likewise.
1709 * elf32-i386.c: Likewise.
1710 * elf32-ppc.c: Likewise.
1711 (ppc_elf_sort_rela): Use PTR instead of "void *".
1712 * elflink.h: Add missing prototypes. Formatting fixes.
1713 * merge.c: Add missing prototypes.
1714 (last4_eq): Use PTR instead of "void *".
1715 (last_eq): Likewise.
1716 * syms.c: Add missing prototypes.
1718 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1720 * bfd.c: Fix formatting.
1721 * bfd-in2.h: Regenerate.
1723 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1725 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1726 true (this target uses REL relocations) and 'pcrel_offset' to
1727 false (the PC is implied, not stored in the offset).
1729 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1731 1999-10-19 Linus Nordberg <linus@swox.se>
1732 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1733 * elfxx-target.h (elf_backend_want_got_sym): Define.
1734 (elfNN_bed): Add elf_backend_want_got_sym.
1735 * elflink.c (_bfd_elf_create_got_section): Define
1736 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1738 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1740 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1741 (find_rela_addend): New function.
1742 (parse_comp_unit): Call it to find the abbrev offset addend.
1743 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1744 members of dwarf2_debug as debugging information is read.
1746 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1748 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1749 targets as well as sh-pe.
1751 2001-08-03 Ben Harris <bjh21@netbsd.org>
1753 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1754 reloc from start of section when computing value for R_ARM_REL32
1757 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1759 From H.J. Lu <hjl@gnu.org>
1760 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1761 keep relocs for undefined syms if there are no dynamic sections in
1763 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1765 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1767 * cofflink.c (coff_link_check_ar_symbols): also search for
1768 __imp__symbol as well as _symbol.
1769 * linker.c (_bfd_generic_link_add_archive_symbols): also
1770 search for __imp__symbol as well as _symbol.
1772 2001-08-01 Adam Nemet <anemet@lnxw.com>
1774 * elf.c (elf_sort_sections): Return zero only as the last step.
1776 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1778 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1780 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1781 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1784 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1786 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1787 to match corresponding bfd_coff_backend data member.
1789 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1791 * Makefile.am: Update dependencies with "make dep-am".
1792 * Makefile.in: Regenerate
1794 2001-07-15 H.J. Lu <hjl@gnu.org>
1796 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1797 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1798 * Makefile.in: Regenerate.
1800 2001-07-11 H.J. Lu <hjl@gnu.org>
1802 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1803 flags when creating the reloc section if the ALLOC flag in the
1804 source section is set.
1806 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1808 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1809 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1810 * bfd-in2.h: Regenerate.
1811 * libbfd.h: Regenerate.
1812 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1814 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1815 (elfNN_ia64_check_relocs): Likewise.
1816 (elfNN_ia64_install_value): Likewise.
1817 (elfNN_ia64_relocate_section): Likewise.
1819 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1821 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1823 (elf32_sparc_check_relocs): Likewise.
1824 Only create .rela section for alloced sections in shared libraries.
1825 (elf32_sparc_relocate_section): Likewise.
1826 Remove redundant check.
1827 Optimize unaligned reloc usage.
1828 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1831 2001-07-11 H.J. Lu <hjl@gnu.org>
1833 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1834 ALLOC|LOAD flags as the source section for debugging sections
1835 when creating the reloc section.
1837 2001-07-05 Jim Wilson <wilson@redhat.com>
1839 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1840 the section of the bigger symbol.
1842 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1844 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1846 * peicode.h (coff_swap_scnhdr_in): For sections containing
1847 uninitialised data, only set their size to s_paddr if this does
1848 not reset their size to zero. MS's latest compilers will set
1851 2001-07-04 H.J. Lu <hjl@gnu.org>
1853 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1854 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1857 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1859 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1861 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1862 sections being discarded.
1864 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1866 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1867 instead of _bfd_elfcore_section_from_phdr.
1868 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1869 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1870 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1871 (elfcore_grok_prstatus): Likewise.
1872 (elfcore_grok_lwpstatus): Likewise.
1873 (bfd_get_elf_phdr_upper_bound): Likewise.
1874 (elfcore_make_note_pseudosection): Formatting.
1875 (_bfd_elfcore_strndup): Formatting.
1876 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1877 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1879 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1881 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1882 and _bfd_elfcore_strndup.
1883 (struct elf_backend_data): Add elf_backend_grok_prstatus
1884 and elf_backend_grok_psinfo.
1885 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1886 (elfcore_grok_prstatus): Use it.
1887 (elfcore_make_note_pseudosection): Likewise.
1888 (elfcore_strndup): Rename to...
1889 (_bfd_elfcore_strndup): Here, and make global.
1890 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1891 (elfcore_grok_note): Call elf_backend_grok_prstatus
1892 and elf_backend_grok_psinfo if available.
1893 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1894 (_bfd_elf32_mips_grok_psinfo): New function.
1895 (elf_backend_grok_prstatus): Define.
1896 (elf_backend_grok_psinfo): Define.
1897 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1898 (elf_backend_grok_psinfo): Likewise.
1899 (elfNN_bed): Include elf_backend_grok_prstatus and
1900 elf_backend_grok_psinfo.
1902 2001-06-29 H.J. Lu <hjl@gnu.org>
1904 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1905 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1906 is NULL before filling PLT.
1908 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1910 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1912 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1914 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1916 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1917 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1920 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1921 (IS_ABSOLUTE_RELOC): Define.
1922 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1923 (hppa_link_hash_newfunc): Always init it.
1924 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1925 create COPY relocs only when the reloc is in a read-only section.
1926 Instead, allocate space for a dynamic reloc to reference the
1927 library symbol directly. Keep track of space we allocate using
1929 (hppa_discard_copies): Delete, and move code to..
1930 (allocate_plt_and_got): ..here. Rename to
1931 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1932 relocs for non-shared link.
1933 (elf32_hppa_size_dynamic_sections): Update calls to above.
1934 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1935 in lieu of COPY relocs.
1937 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1939 (elf_i386_adjust_dynamic_symbol): ..nor here..
1940 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1942 (elf_i386_size_dynamic_sections): Fix a comment.
1943 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1944 involved in writing reloc out.
1946 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1948 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1949 Ensure syms are dynamic if we might be emitting a reloc.
1950 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1951 for undefweak or undefined syms..
1952 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1954 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1955 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1956 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1957 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1959 2001-06-24 H.J. Lu <hjl@gnu.org>
1961 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1962 strncasecmp/strcasecmp instead of strncmp/strcmp.
1964 2001-06-23 H.J. Lu <hjl@gnu.org>
1966 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1967 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
1968 in the regular object file and treat the weak definition as
1971 2001-06-23 Alan Modra <amodra@bigpond.net.au>
1973 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
1974 unresolved_reloc test to exclude cases where we use "relocation"
1975 before setting it to point into the .got. Reinstate fudge for
1976 unresolved relocs in debugging sections.
1978 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
1979 complicated tests for unresolvable relocs with a simple direct
1980 scheme using "unresolved_reloc" var.
1982 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
1983 elf_i386_dyn_relocs. Update comment.
1984 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
1986 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
1988 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
1990 (elf_i386_size_dynamic_sections): Likewise.
1991 (elf_i386_finish_dynamic_symbol): Likewise.
1992 (elf_i386_finish_dynamic_sections): Likewise.
1993 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
1996 Avoid creating COPY relocs if possible.
1997 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
1998 which .got created. Mark symbols used by R_386_32 and R_386_PC32
1999 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2000 reloc is in a read-only section. Instead, allocate space for a
2001 dynamic reloc to reference the library symbol directly. Keep
2002 track of space we allocate using pcrel_relocs_copied.
2003 (discard_copies): Delete, and move code to ..
2004 (allocate_plt_and_got): ..here. Rename to
2005 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2006 relocs for non-shared link.
2007 (elf_i386_size_dynamic_sections): Update calls to above functions.
2008 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2009 more ugly logic to avoid "unresolvable relocation" error. Use
2010 htab shortcut in place of elf_hash_table macro.
2011 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2012 not always be created now.
2014 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2016 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2019 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2021 * configure.host (mips64-*-linux): Reformat.
2023 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2025 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2026 allocate local .got space. Use shortcuts from hash table for .got
2027 and .plt rather than comparing section names.
2028 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2029 adjusting index into local_got_refcounts to document what we are
2031 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2032 Tidy .got and .plt error checking.
2034 2001-06-20 Catherine Moore <clm@redhat.com>
2036 * elf-bfd.h (struct elf_backend_data):
2037 elf_backend_emit_relocs: New field: Function for emitting
2039 elf_backend_count_relocs: New field: Function for determining
2040 the number of relocs to be emitted.
2041 * elfxx-target.h: Provide default (NULL) values for
2042 elf_backend_emit_relocs and elf_backend_count_relocs.
2043 * elflink.h (elf_link_size_reloc_section): Make the hash table
2044 big enough to hold the relocs counted by either reloc_count or
2046 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2047 should be emitted, either because of a command line option
2048 stored in the info structure or because the target provides a
2049 special reloc emitting function.
2050 If the target provides a reloc counting function use it,
2051 unless performing a relocatable link or emitting all relocs.
2052 Also set the SEC_RELOC flag on any output section which will
2054 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2055 should be emitted, either because of a command line option
2056 stored in the info structure or because the target provides a
2057 special reloc emitting function.
2058 If the target provides a reloc emitting function, use it,
2059 unless performing a relocatable link or emitting all relocs.
2061 2001-06-20 H.J. Lu <hjl@gnu.org>
2063 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2064 allocate local .got space.
2066 2001-06-19 Andreas Jaeger <aj@suse.de>
2068 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2071 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2073 * elflink.h (struct elf_assign_sym_version_info): Remove member
2074 export_dynamic. All users changed to use info member.
2075 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2076 export_dynamic, instead use member in parameter info.
2077 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2078 bfd_elf64_size_dynamic_sections): Update prototype.
2079 * bfd-in2.h: Regenerate.
2081 2001-06-18 H.J. Lu <hjl@gnu.org>
2083 * elflink.h (elf_info_failed): Add a new field, verdefs.
2084 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2086 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2089 2001-06-17 H.J. Lu <hjl@gnu.org>
2091 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2092 readonly_reloc, to record if a relocation in the .rel.dyn
2093 section is against a read-only section.
2094 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2096 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2097 in the .rel.dyn section against a read-only section by setting
2098 DF_TEXTREL or readonly_reloc.
2099 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2101 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2102 there is a relocation in the .rel.dyn section against a
2104 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2107 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2109 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2110 function. Move flagword result into parameter list. Remove
2111 comment about setting bfd_error_handler to intercept failure
2113 * coffgen.c (make_a_section_from_file): Examine result of
2114 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2116 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2117 function. Move flagword result into parameter list.
2118 * libcoff.h: Regenerate.
2119 * libecoff.h: Regenerate.
2121 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2123 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2124 section is going to follow it.
2126 2001-06-12 Catherine Moore <clm@redhat.com>
2128 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2129 with the file_align entry from elf_backend_data.
2130 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2131 (elf_gc_record_vtentry): Likewise.
2133 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2135 * elflink.h: Whitespace changes.
2136 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2137 rather than "unsigned char".
2138 (elf_link_output_relocs): Likewise.
2139 (elf_link_input_bfd): Likewise.
2140 (elf_reloc_link_order): LIkewise.
2141 * elf.c: s/CONST/const/. Whitespace changes.
2142 * elf32-mips.c: Formatting fix.
2144 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2145 * Makefile.in: Regenerate.
2146 * po/Make-in: Remove trailing tab.
2148 2001-06-09 Philip Blundell <philb@gnu.org>
2150 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2152 (elf32_arm_plt_entry): Likewise.
2154 2001-06-08 H.J. Lu <hjl@gnu.org>
2156 * elf.c (swap_out_syms): Keep names for global section symbols.
2158 2001-06-07 H.J. Lu <hjl@gnu.org>
2160 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2161 MIPS-based machines need it.
2163 2001-06-07 H.J. Lu <hjl@gnu.org>
2165 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2168 * config.bfd: Remove ecoff from Linux/mips.
2170 2001-06-07 Andreas Jaeger <aj@suse.de>
2172 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2174 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2175 alignment of 8 for .rela sections; handle further relocations.
2177 2001-06-06 Christian Groessler <cpg@aladdin.de>
2179 * coff-z8k.c: Fix formatting.
2180 Fix howtos: howto->size was always 1.
2182 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2184 * configure.host (mips64*-*-linux*): Define.
2186 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2188 * elf32-i386.c (elf_i386_discard_copies): Rename to
2189 discard_copies, and use elf_link_hash_entry arg rather than
2190 elf_i386_link_hash_entry.
2191 (elf_i386_link_hash_traverse): Delete.
2192 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2193 Tidy sizing of dynamic sections.
2194 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2195 possible .plt entries.
2196 (elf_i386_gc_sweep_hook): Likewise.
2197 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2198 everything with plt.refcount <= 0.
2200 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2202 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2203 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2205 (allocate_plt_and_got): ..instead do it all here. New function.
2206 (elf_i386_size_dynamic_sections): Allocate local .got space and
2207 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2208 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2209 rather than gc variety).
2210 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2211 (elf_i386_relocate_section): Use it here and correct handling of
2212 R_386_GOT32. Provide section and offset for "unresolvable
2213 relocation" error message.
2214 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2216 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2217 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2218 (elf_i386_link_hash_table_create): Init them.
2219 (create_got_section): New function.
2220 (elf_i386_create_dynamic_sections): New function.
2221 (elf_backend_create_dynamic_sections): Set to above.
2222 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2223 calling bfd_get_section_by_name.
2224 (elf_i386_gc_sweep_hook): Likewise.
2225 (elf_i386_adjust_dynamic_symbol): Likewise.
2226 (elf_i386_size_dynamic_sections): Likewise.
2227 (elf_i386_relocate_section): Likewise.
2228 (elf_i386_finish_dynamic_sections): Likewise.
2230 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2232 2001-06-02 H.J. Lu <hjl@gnu.org>
2234 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2236 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2238 2001-06-02 H.J. Lu <hjl@gnu.org>
2240 * aout-cris.c (MACHTYPE_OK): New. Defined.
2242 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2244 * section.c (_bfd_strip_section_from_output): Handle NULL
2247 2001-06-02 H.J. Lu <hjl@gnu.org>
2249 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2250 rs6000coff64_vec only if BFD64 is defined.
2251 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2253 2001-06-02 H.J. Lu <hjl@gnu.org>
2255 * coff-ia64.c (ia64coff_object_p): Rewrite with
2256 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2258 2001-06-01 Andreas Jaeger <aj@suse.de>
2260 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2261 relocation, small reformatting.
2263 2001-05-29 Andreas Jaeger <aj@suse.de>
2265 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2266 (elf64_x86_64_relocate_section): Likewise.
2268 2001-05-30 Alan Modra <amodra@one.net.au>
2270 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2271 millicode. Don't allocate .got and .rela.got space here..
2272 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2273 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2275 (hppa_handle_PIC_calls): ..nor here..
2276 (allocate_plt_and_got): ..instead do it all here. New function.
2277 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2278 call allocate_plt_and_got. No need to zap .got if not dynamic.
2279 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2280 gc_common_final_link.
2281 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2282 (elf32_hppa_relocate_section): Use it here.
2283 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2284 dynamic_sections_created.
2285 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2287 2001-05-28 Andreas Jaeger <aj@suse.de>
2289 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2290 generic version since we want a hashsize of 4.
2291 (elf_backend_size_info): Likewise.
2293 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2295 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2297 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2298 (elf_link_input_bfd): Likewise.
2299 (elf_reloc_link_order): Likewise.
2300 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2301 relocations correctly.
2303 2001-05-28 Nicolas Pitre <nico@cam.org>
2305 * elf32-arm.h: fix PLT generation for big endian ARM
2307 2001-05-28 Alan Modra <amodra@one.net.au>
2309 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2310 for symbols forced local that need plabels.
2311 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2312 .plt.rela for local syms if non-shared.
2313 (hppa_build_one_stub): Mask lsb of plt.offset.
2314 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2315 (clobber_millicode_symbols): Correct comment.
2316 (elf32_hppa_relocate_section): Likewise.
2317 (elf32_hppa_finish_dynamic_symbol): Likewise.
2319 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2321 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2322 * bfd-in2.h: Regenerate.
2323 * libbfd.h: Regenerate.
2324 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2325 and BFD_RELOC_SPARC_UA64 mapping
2326 * elf64-sparc.c: Likewise.
2328 2001-05-25 H.J. Lu <hjl@gnu.org>
2330 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2331 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2332 (coff-rs6000.lo): Remove the old dependency.
2333 * Makefile.in: Rebuild.
2335 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2338 2001-05-25 H.J. Lu <hjl@gnu.org>
2340 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2341 rs6000coff_core_file_matches_executable_p,
2342 rs6000coff_core_file_failing_command and
2343 rs6000coff_core_file_failing_signal only if AIX_CORE is
2345 (pmac_xcoff_vec): Likewise.
2346 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2348 2001-05-25 Timothy Wall <twall@redhat.com>
2350 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2351 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2353 2001-05-25 H.J. Lu <hjl@gnu.org>
2355 * bfd-in2.h: Regenerated.
2356 * libcoff.h: Likewise.
2358 2001-05-25 Alan Modra <amodra@one.net.au>
2360 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2361 undefined millicode syms in shared libs.
2362 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2363 (elf32_hppa_check_relocs): Likewise.
2364 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2365 (elf32_hppa_size_dynamic_sections): Likewise.
2366 (elf32_hppa_relocate_section): Likewise.
2367 (elf32_hppa_finish_dynamic_symbol): Likewise.
2368 (elf32_hppa_finish_dynamic_sections): Likewise.
2370 2001-05-24 Tom Rix <trix@redhat.com>
2372 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2373 xcoff-target.h not used to define rs6000 or ppc bfd.
2376 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2379 * coff-rs6000.c : Many changes for 64 bit support. Move common
2380 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2383 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2384 linker now supported. Explictly define the rs6000coff64_vec.
2386 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2387 (coff_print_aux) same
2388 (coff_write_object_contents) same
2389 (coff_slurp_line_table) same
2391 * coffgen.c : (coff_fix_symbol_name) formatting
2392 (coff_mangle_symbols) xcoff 64 bit support
2393 (coff_write_symbol) same
2394 (coff_write_alien_symbol) same
2395 (coff_write_native_symbol) same
2396 (coff_write_symbols) same
2397 (coff_get_symbol_info) same
2398 (bfd_coff_get_syment) same
2399 (coff_print_symbol) same
2401 * config.bfd : add powerpc64-*-aix* target
2403 * libcoff-in.h : formatting
2405 * libcoff.h : move xcoff extern declarations to libxcoff.h
2407 * libxcoff.h : New file
2409 * xcofflink.c : Many changes for xcoff64 support. Move common
2410 structures to include/coff/xcoff.h. Move specific structure to
2411 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2412 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2414 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2417 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2419 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2421 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2424 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2426 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2427 * libbfd.h: Regenerate.
2428 * bfd-in2.h: Regenerate.
2430 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2431 * archures.c (bfd_mach_mips12000): Define.
2432 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2433 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2435 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2436 * bfd-in2.h: Regenerate.
2437 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2439 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2441 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2442 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2443 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2444 that is used by GCC.
2446 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2448 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2449 of entries in a structured section.
2450 * elf.c: Use new macro.
2451 * elf32-i386.c: Use new macro.
2452 * elf32-mips.c: Use new macro.
2453 * elf64-alpha.c: Use new macro.
2454 * elf64-sparc.c: Use new macro.
2455 * elfcode.h: Use new macro.
2456 * elflink.h: Use new macro.
2458 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2460 * bfdint.texi: Replace -oformat with --oformat.
2462 2001-05-21 Andreas Jaeger <aj@suse.de>
2464 * dwarf2.c (decode_line_info): Fix error message.
2465 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2466 adjust error message.
2468 2001-05-18 H.J. Lu <hjl@gnu.org>
2470 * elflink.h (elf_link_add_object_symbols): Revert the last
2473 2001-05-17 Alan Modra <amodra@one.net.au>
2475 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2476 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2477 (hppa_build_one_stub): Add an assert to check plt.offset.
2479 2001-05-17 H.J. Lu <hjl@gnu.org>
2481 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2482 version definition to basename of the output filename.
2484 2001-05-17 H.J. Lu <hjl@gnu.org>
2486 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2487 basename of the bfd filename.
2489 2001-05-16 Alan Modra <amodra@one.net.au>
2491 * section.c (asection): Add linker_has_input field.
2492 (STD_SECTION): Adjust initialization to suit.
2493 * ecoff.c (bfd_debug_section): Likewise.
2494 * bfd-in2.h: Regenerate.
2496 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2498 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2499 negative 32-bit operands to 16 operands when the operand is
2500 going to be zero-extended by the modified opcode.
2502 2001-05-12 Peter Targett <peter.targett@arccores.com>
2504 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2505 name for 'arc5' core versions.
2506 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2508 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2510 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2512 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2514 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2516 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2517 to .gnu.linkonce.t.FOO text section.
2519 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2521 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2522 fields, change sec into secinfo.
2523 (struct sec_merge_info): Add chain, remove last fields.
2524 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2525 (sec_merge_hash_lookup): If lookup could not use a string only
2526 because it has bad alignment, mark the old string for deletion.
2527 (sec_merge_add): Add secinfo argument. Don't compute entry's
2528 position, instead record the section.
2529 (sec_merge_emit): Update for the sec into secinfo change in
2530 struct sec_merge_hash_entry.
2531 (_bfd_merge_section): Only record the section for merging, defer
2532 putting strings into the hash table.
2533 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2534 _bfd_merge_sections): New functions.
2535 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2537 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2538 (_bfd_nolink_bfd_merge_sections): Define.
2539 * libbfd.h: Likewise.
2540 (bfd_generic_merge_sections): Add prototype.
2541 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2542 (struct bfd_target): Likewise.
2543 * bfd.c (bfd_merge_sections): Define.
2544 * bfd-in2.h: Rebuilt.
2545 * elf.c (_bfd_elf_merge_sections): New function.
2546 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2547 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2548 * reloc.c (bfd_generic_merge_sections): New function.
2549 * vms.c (vms_bfd_merge_sections): New function.
2550 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2551 * aout-target.h (MY_bfd_merge_sections): Define.
2552 * aout-tic30.c (MY_bfd_merge_sections): Define.
2553 * binary.c (binary_bfd_merge_sections): Define.
2554 * bout.c (b_out_bfd_merge_sections): Define.
2555 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2556 * coffcode.c (coff_bfd_merge_sections): Define.
2557 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2558 * i386msdos.c (msdos_bfd_merge_sections): Define.
2559 * i386os9k.c (os9k_bfd_merge_sections): Define.
2560 * ieee.c (ieee_bfd_merge_sections): Define.
2561 * ihex.c (ihex_bfd_merge_sections): Define.
2562 * nlm-target.h (nlm_bfd_merge_sections): Define.
2563 * oasys.c (oasys_bfd_merge_sections): Define.
2564 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2565 * som.c (som_bfd_merge_sections): Define.
2566 * srec.c (srec_bfd_merge_sections): Define.
2567 * tekhex.c (tekhex_bfd_merge_sections): Define.
2568 * versados.c (versados_bfd_merge_sections): Define.
2569 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2571 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2573 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2574 to be unsigned long, in order to match its use.
2576 2001-05-10 H.J. Lu <hjl@gnu.org>
2578 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2581 2001-05-09 H.J. Lu <hjl@gnu.org>
2583 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2584 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2585 Remove the unused veriable `dynver'.
2587 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2589 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2590 NULL or is not COFF.
2591 (coff_i386_rtype_to_howto): Don't dump core if output section
2594 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2596 * ecoff.c (bfd_debug_section): Fix initialization.
2597 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2598 is always a positive integer. Cast away sign mismatch.
2599 * elf32-mips.c: Fix misleading comment and typo.
2600 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2602 * elflink.c: Fix typo.
2603 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2604 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2606 2001-05-04 Richard Henderson <rth@redhat.com>
2608 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2610 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2612 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2613 EF_ARM_HASENTRY if the start address is set.
2615 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2617 * targets.c (_bfd_target_vector_entries): Compute value based on
2618 the size of the _bfd_target_vector and not bfd_target_vector.
2620 2001-05-03 H.J. Lu <hjl@gnu.org>
2622 * elfcode.h: Include "libiberty.h".
2624 * elflink.h (elf_link_add_object_symbols): Set
2625 elf_dt_name (abfd) to basename of the bfd filename.
2626 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2627 of the bfd filename.
2629 2001-05-03 Andreas Jaeger <aj@suse.de>
2631 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2632 (elf_generic_info_to_howto_rel): Likewise.
2633 * coff-alpha.c (reloc_nil): Likewise.
2634 (alpha_ecoff_bad_format_hook): Likewise.
2635 (alpha_adjust_reloc_out): Likewise.
2636 (alpha_bfd_reloc_type_lookup): Likewise.
2637 (alpha_convert_external_reloc): Likewise.
2638 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2639 (elf64_alpha_reloc_bad): Likewise.
2640 (elf64_alpha_reloc_gpdisp): Likewise.
2641 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2642 (elf64_alpha_info_to_howto): Likewise.
2643 (elf64_alpha_add_symbol_hook): Likewise.
2644 (elf64_alpha_create_got_section): Likewise.
2645 (elf64_alpha_is_local_label_name): Likewise.
2646 (elf64_alpha_merge_ind_symbols): Likewise.
2647 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2648 (mips_elf64_get_reloc_upper_bound): Likewise.
2649 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2650 (nlm_alpha_get_public_offset): Likewise.
2652 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2654 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2655 about overflow in R_OPENRISC_LO_16_IN_INSN and
2656 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2658 2001-04-30 H.J. Lu <hjl@gnu.org>
2660 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2661 only for ELF_LINK_FORCED_LOCAL.
2662 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2663 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2664 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2666 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2667 if the symbol has hidden or internal visibility.
2669 2001-04-30 Alan Modra <amodra@one.net.au>
2671 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2672 calls to undefined weak symbols.
2674 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2676 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2677 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2679 2001-04-27 Andreas Jaeger <aj@suse.de>
2681 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2682 out handled entries.
2683 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2684 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2685 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2688 2001-04-27 Sean McNeil <sean@mcneil.com>
2690 * config.bfd: Add arm-vxworks target.
2691 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2692 addend (fro VXworks targets).
2694 2001-04-26 H.J. Lu <hjl@gnu.org>
2696 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2699 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2701 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2702 * bfd-in2.h: Regenerated.
2704 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2706 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2707 (struct sec_merge_hash): Remove alignment_power.
2708 (sec_merge_hash_newfunc): Clear alignment.
2709 (sec_merge_hash_lookup): Pass alignment as argument.
2710 Use hashp->root.next, not hashp->next to walk the hash chain.
2711 If a string already in the hashtable does not have required
2712 alignment, create a new hashtable entry.
2713 (sec_merge_init): Remove alignment_power argument.
2714 (sec_merge_add): Add alignment argument.
2715 (sec_merge_emit): Alignment is now a per-entity thing, not per
2717 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2718 for proper alignment.
2719 Pass alignment information to sec_merge_add.
2721 2001-04-24 Christian Groessler <cpg@aladdin.de>
2723 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2724 and R_REL16 reloc types; accept odd values for R_REL16 type
2726 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2728 * cpu-openrisc.c: New file.
2729 * elf32-openrisc.c: Likewise.
2731 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2732 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2733 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2734 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2735 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2736 * Makefile.in: Regenerated.
2737 * config.bfd: (openrisc-*-elf): New target.
2738 * configure.in (bfd_elf32_openrisc_vec): New vector.
2739 * configure: Regenerated.
2740 * libbfd.h: Regenerated.
2741 * bfd-in2.h: Regenerated.
2742 * reloc.c: Add OpenRISC relocations.
2743 * targets.c (bfd_elf32_openrisc_vec): Declare.
2744 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2745 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2746 (bfd_openrisc_arch): Declare.
2747 (bfd_archures_list): Add bfd_openrisc_arch.
2748 * elf.c (prep_headers): Add bfd_arch_openrisc.
2750 2001-04-23 Bo Thorsen <bo@suse.de>
2752 * elf64-x86-64.c: Add c++ vtable hack.
2753 Small whitespace and comment changes.
2755 2001-04-19 Andreas Jaeger <aj@suse.de>
2757 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2758 (elf64_x86_64_plt_entry): Likewise.
2759 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2760 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2762 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2764 * elf32-cris.c: Tweak comments related to dynamic linking.
2765 (cris_elf_relocate_section): When not creating shared object, fill
2766 in the .got table for any symbol not in the dynamic symbol table.
2767 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2768 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2770 (cris_elf_check_relocs): Use variable r_type in all places rather
2771 than the original expression. Add default case in switch for
2773 (elf_cris_size_dynamic_sections): Iterate over
2774 elf_cris_discard_excess_program_dynamics when not creating shared
2776 (elf_cris_discard_excess_dso_dynamics): Renamed from
2777 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2778 (elf_cris_discard_excess_program_dynamics): New.
2780 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2782 * coffcode.h (coff_write_object_contents): Use
2783 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2785 2001-04-14 H.J. Lu <hjl@gnu.org>
2787 * bfd-in2.h: Regenerate.
2789 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2791 * section.c (STD_SECTION): Add entsize.
2793 2001-04-13 H.J. Lu <hjl@gnu.org>
2795 * section.c (SEC_MERGE): Define new flag for merging.
2796 (SEC_STRINGS): Likewise.
2797 (entsize): New field.
2799 2001-04-13 Roger Sayle <roger@metaphorics.com>
2801 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2802 flag on pe-i386 targets.
2804 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2806 * libbfd-in.h (_bfd_merge_section): New.
2807 (_bfd_write_merged_section): New.
2808 (_bfd_merged_section_offset): New.
2809 * libbfd.h: Rebuilt.
2810 * linker.c (_bfd_generic_link_output_symbols): Handle
2812 * aoutx.h (aout_link_write_symbols): Likewise.
2813 * pdp11.c (aout_link_write_symbols): Likewise.
2814 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2815 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2817 (elf_link_sec_merge_syms): New.
2818 (elf_link_input_bfd): Call _bfd_merged_section_offset
2819 and _bfd_write_merged_section.
2820 Handle discard_sec_merge.
2821 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2823 (struct bfd_elf_section_data): Likewise.
2824 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2825 SEC_STRINGS section flags and entsize from their ELF counterparts.
2826 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2827 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2828 from their BFD counterparts.
2829 * merge.c: New file.
2830 * Makefile.am: Add strtab.lo.
2831 * Makefile.in: Rebuilt.
2833 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2835 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2836 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2838 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2840 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2841 endian MIPS ELF target.
2842 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2845 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2846 64bit big endian MIPS ELF target.
2847 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2848 endian MIPS ELF target.
2849 * configure: Regenerated.
2851 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2852 little endian targets.
2853 (mips_elf_sym_is_global): Handle traditional targets.
2855 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2856 64bit big endian MIPS ELF target.
2857 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2858 endian MIPS ELF target.
2860 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2861 and bfd_elf64_tradlittlemips_vec.
2863 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2865 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2866 ordinary "progbits" section.
2868 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2870 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2871 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2873 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2875 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2877 2001-03-30 H.J. Lu <hjl@gnu.org>
2879 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2880 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2882 2001-03-26 H.J. Lu <hjl@gnu.org>
2884 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2885 if there are any relocations for generic ELF.
2886 (bfd_elf32_bfd_link_add_symbols): Defined to
2887 elf32_generic_link_add_symbols.
2888 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2889 if there are any relocations for generic ELF.
2890 (bfd_elf64_bfd_link_add_symbols): Defined to
2891 elf64_generic_link_add_symbols.
2893 2001-03-23 Nick Clifton <nickc@redhat.com>
2895 * Makefile.am (BUILD_CFILES): New variable: List of C source
2896 files created in build directory.
2897 (BUILD_HFILES): New variable: List of header files created in
2900 (po/POTFILES.in): Replace rule with empty entry.
2901 (po/SRC-POTFILES.in): New rule: Create a list of source files
2902 in the source directory.
2903 (po/BLD-POTFILES.in): New rule: Create a list of source files
2904 in the build directory.
2905 (MOSTLYCLEAN): Do not delete source files created in build
2907 * Makefile.in: Regenerate.
2908 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2910 * configure: Regenerate.
2912 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2914 Add .. to the search path when building bfd.pot.
2915 Delete POTFILES when performing distclean.
2916 Add comment describing why distclean is broken in maintainer mode.
2917 * po/POTFILES.in: Delete.
2918 * po/SRC-POTFILES.in: New file.
2919 * po/BLD-POTFILES.in: New file.
2920 * po/bfd.pot: Regenerate.
2922 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2924 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2925 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2926 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2927 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2928 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2929 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2931 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2932 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2933 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2934 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2935 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2936 New HOWTO members for new relocs.
2937 (cris_reloc_map): Map new relocs.
2938 (ELF_DYNAMIC_INTERPRETER): Define.
2939 (PLT_ENTRY_SIZE): Define.
2940 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2941 elf_cris_pic_plt_entry): New, PLT templates.
2942 (struct elf_cris_pcrel_relocs_copied, struct
2943 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2944 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2945 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2946 positive values. Adjust PCREL relocs to be relative to location
2948 (cris_elf_relocate_section): Handle relocations to dynamic
2949 objects. Handle new relocations. Call error handler when seeing
2950 non-PIC relocation for read-only sections while generating shared
2952 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2954 (bfd_elf32_bfd_link_hash_table_create,
2955 elf_backend_adjust_dynamic_symbol,
2956 elf_backend_size_dynamic_sections,
2957 elf_backend_finish_dynamic_symbol,
2958 elf_backend_finish_dynamic_sections,
2959 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2960 elf_backend_hide_symbol, elf_backend_want_got_plt,
2961 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2962 elf_backend_got_header_size, elf_backend_plt_header_size):
2965 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2966 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2967 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
2968 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
2969 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
2970 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
2971 * bfd-in2.h, libbfd.h: Regenerate.
2973 2001-03-21 Diego Novillo <dnovillo@redhat.com>
2975 (_bfd_mips_elf_relocate_section): Give a better error message when
2976 a relocation is not recognized.
2978 2001-03-21 Alan Modra <alan@linuxcare.com.au>
2980 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
2981 non-NULL before attempting to dereference.
2983 2001-03-20 H.J. Lu <hjl@gnu.org>
2985 * configure.in: Remove the redundent AC_ARG_PROGRAM.
2986 * configure: Rebuild.
2988 2001-03-20 Andreas Schwab <schwab@suse.de>
2990 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
2991 relocation value when resolving a reference from a debugging
2994 2001-03-16 Scott Thomason <SThomaso@hii.com>
2996 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
2997 (xcoff64_swap_sym_out): Fix syntax errors.
2999 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3001 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3003 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3005 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3006 (hppa_link_hash_newfunc): Init it.
3007 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3008 section appears to be non-PIC.
3009 (final_link_relocate): Likewise.
3010 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3011 possible candidate function, and set pic_call for those that will
3012 only have a .plt entry for the PIC call stub.
3013 (hppa_handle_PIC_calls): Set maybe_pic_call.
3015 2001-03-12 DJ Delorie <dj@redhat.com>
3017 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3018 R_SH_DIR8WP* relocs if they're against external symbols, else
3019 they're just for relaxing. Validate the reloc values.
3021 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3023 * binary.c (bfd_external_binary_architecture): Declare.
3024 (binary_object_p): If bfd_external_binary_architecture is defined,
3025 set the architecture to this string.
3027 2001-03-11 Philip Blundell <philb@gnu.org>
3029 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3030 entries that could serve as a definition for a weak symbol.
3032 2001-03-08 Nick Clifton <nickc@redhat.com>
3034 * Most files: Update copyright notices using Perl script created
3035 by Kevin Buettner <kevinb@redhat.com>.
3037 2001-03-07 Nick Clifton <nickc@redhat.com>
3039 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3040 prior patch on ! defined OLD_ARM_ABI.
3042 2001-03-07 Andreas Jaeger <aj@suse.de>
3044 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3045 some relocation values.
3047 2001-03-06 Nick Clifton <nickc@redhat.com>
3049 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3050 of offset in BLX(1) instruction.
3051 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3052 offset in BLX(1) instruction.
3055 2001-03-06 Nick Clifton <nickc@redhat.com>
3057 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3058 BFD_RELOC_THUMB_PCREL_BLX.
3060 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3062 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3063 * bfd-in2.h: Regenerate.
3064 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3065 * ieee.c (ieee_write_processor): Set proper id for
3068 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3070 * configure.in: Add s390 target.
3071 * configure: Regenerate.
3073 2001-02-28 Andreas Jaeger <aj@suse.de>
3075 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3078 2001-02-28 Philip Blundell <pb@futuretv.com>
3080 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3081 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3083 2001-02-27 H.J. Lu <hjl@gnu.org>
3085 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3086 abfd->tdata.aout_data == NULL.
3088 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3090 * elf32-hppa.c: Correct field selector in stub comments.
3091 (clobber_millicode_symbols): Formatting fix.
3093 * configure.in: Bump version to 2.11.90.
3094 * configure: Regenerate.
3095 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3096 (CFILES): $SOURCE_CFILES + generated C files.
3097 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3099 * Makefile.in: Regenerate.
3100 * doc/Makefile.in: This too.
3102 2001-02-26 Timothy Wall <twall@cygnus.com>
3104 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3107 2001-02-26 Nick Clifton <nickc@redhat.com>
3109 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3110 up, replacing multiple if statements with a switch.
3111 (handle_COMDAT): New function.
3113 2001-02-26 H.J. Lu <hjl@gnu.org>
3115 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3116 a warning for section flags we do not handle instead of
3119 2001-02-26 Andreas Jaeger <aj@suse.de>
3121 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3123 2001-02-22 Timothy Wall <twall@cygnus.com>
3125 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3126 * configure.in: Add objects for elf64_ia64_aix vectors.
3127 * configure: Regenerated.
3128 * configure.host: Recognize ia64-*-aix*.
3129 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3130 for AIX. AIX5 requires most relocations to be dynamic (*all*
3131 binaries are somewhat similar to shared libraries).
3132 * targets.c: Add elf64_ia64_aix vectors.
3134 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3136 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3137 C8 said "1" instead of "8". Clarify error string for IMM22:
3138 "signed integer" instead of just "integer".
3140 2001-02-20 Andreas Jaeger <aj@suse.de>
3142 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3143 PLT entries that could serve as a definition for a weak symbol.
3145 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3147 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3148 entries that could serve as a definition for a weak symbol.
3149 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3151 2001-02-18 David O'Brien <obrien@FreeBSD>
3153 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3154 FreeBSD/i386-CURRENT differently until I can figure out the needed
3156 * configure: Regenerate.
3157 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3158 FreeBSD/PowerPC, and FreeBSD/sparc64.
3160 2001-02-18 lars brinkhoff <lars@nocrew.org>
3162 * Makefile.am: Add PDP-11 a.out target.
3163 * config.bfd: Likewise.
3164 * configure.in: Likewise.
3165 * targets.c: Likewise.
3166 * archures.c: Likewise.
3167 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3168 * libbfd.h: Add PDP-11 relocations.
3169 * reloc.c: Likewise.
3170 * cpu-pdp11.c: New file.
3171 * pdp11.c: New file.
3173 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3174 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3175 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3176 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3177 (GET_MAGIC): New macro.
3178 (PUT_MAGIC): Likewise.
3179 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3181 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3183 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3184 multiarch needs it).
3186 2001-02-18 H.J. Lu <hjl@gnu.org>
3188 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3191 2001-02-18 Kazu Hirata <kazu@hxi.com>
3193 * vms-misc.c: Fix formatting.
3195 2001-02-16 Kazu Hirata <kazu@hxi.com>
3197 * vms.c: Fix formatting.
3199 2001-02-14 H.J. Lu <hjl@gnu.org>
3201 * elf.c (elf_find_function): New function.
3202 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3203 the file name and function name.
3205 2001-02-14 Nick Clifton <nickc@redhat.com>
3207 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3210 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3211 (BFD64_BACKENDS): Add pepigen.c
3212 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3214 * Makefile.in: Regenerate.
3215 * configure: Regenerate.
3216 * po/POTFILES.in: Regenerate.
3217 * po/bfd.pot: Regenerate.
3219 2001-02-14 H.J. Lu <hjl@gnu.org>
3221 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3222 force_minimum_alignment.
3224 2001-02-14 Bo Thorsen <bo@suse.de>
3226 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3227 (elf64_86_64_size_info): Struct added to fix a problem
3228 with the hashtable string entries.
3229 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3230 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3231 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3232 remove the FIXME for this.
3233 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3234 section. Also removed the FIXME for it.
3235 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3236 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3237 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3239 2001-02-13 Richard Henderson <rth@redhat.com>
3241 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3242 and not user provided.
3244 2001-02-13 Kazu Hirata <kazu@hxi.com>
3246 * vms.c (vms_print_symbol): Remove unreachable code.
3248 * rs6000-core.c: Fix formatting.
3250 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3252 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3253 as _bfd_XXi_only_swap_filehdr_out.
3254 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3255 pe->force_minimum_alignment to TRUE.
3256 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3257 PEI_TARGET_SUBSYSTEM.
3258 (pe_print_private_bfd_data): Call
3259 _bfd_XX_print_private_bfd_data_common() instead of
3260 _bfd_pe_print_private_bfd_data_common().
3261 (pe_bfd_copy_private_bfd_data): Call
3262 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3263 _bfd_pe_bfd_copy_private_bfd_data_common().
3264 (coff_bfd_copy_private_section_data): Define as
3265 _bfd_XX_bfd_copy_private_section_data instead of
3266 _bfd_pe_bfd_copy_private_section_data.
3267 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3268 of a _bfd_pe_get_symbol_info.
3272 * peXXigen.c: Renamed from peigen.c.
3273 (COFF_WITH_XX): Define this macro (will get expanded into
3274 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3275 compiled as peigen.c or pepigen.c.
3276 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3277 define the canonical PEP structures and definitions.
3278 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3279 effect, enforce minimum file and section alignments. If
3280 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3281 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3282 so, by default, this is a no-op).
3284 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3285 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3286 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3287 _bfd_pefoo if it's not defined. Use these macros to define
3290 * libcoff.h (pe_tdata): Add members target_subsystem and
3291 force_minimum_alignment.
3293 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3295 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3297 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3300 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3301 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3304 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3305 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3306 (peigen.c): Add rule to generate from peXXigen.c.
3308 (pepigen.lo): List dependencies for pepigen.lo.
3310 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3312 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3313 $global$ referenced but not defined, set its value here.
3315 2001-02-09 Bo Thorsen <bo@suse.de>
3317 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3319 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3321 (elf64_x86_64_relocate_section): Fix formatting.
3322 (elf64_x86_64_relocate_section): Fix addend for relocation of
3323 R_X86_64_(8|16|32|PC8|PC16|PC32).
3325 2001-02-12 Jan Hubicka <jh@suse.cz>
3327 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3329 2001-02-11 H.J. Lu <hjl@gnu.org>
3331 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3334 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3336 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3337 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3338 relocations against dynsym symbols.
3340 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3341 the R_MIPS_26 relocation.
3342 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3343 the R_MIPS_26 relocation.
3344 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3346 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3347 the R_MIPS_26 relocation.
3348 (mips_elf64_howto_table_rela): Likewise.
3350 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3351 member to mark symbols that have non-CALL relocations against
3353 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3354 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3356 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3357 non-CALL relocation against it is encountered.
3358 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3359 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3360 no_fn_stub is not set.
3362 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3363 information from the real symbol for indirect ones.
3364 Check no_fn_stub to find out if a symbol has a function stub
3367 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3369 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3370 * Makefile.in: Regenerate.
3372 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3374 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3375 true if section name is an unwind table section name.
3376 (elfNN_ia64_additional_program_headers): Count each unwind section
3378 (elfNN_ia64_modify_segment_map): Install one unwind program header
3379 for each unwind separate section. Note: normally the linker
3380 script merges the unwind sections that go into a single segment,
3381 so this still generates at most one unwind program header per
3384 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3385 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3386 (elfNN_ia64_fake_sections): Mark sections with names that start
3387 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3390 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3391 Use it to make sh_info in unwind section point to the text section
3394 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3396 * Makefile.am: Add linux target for S/390.
3397 * archures.c: Likewise.
3398 * bfd-in2.h: Likewise.
3399 * config.bfd: Likewise.
3400 * configure.in: Likewise.
3402 * libbfd.h: Likewise.
3403 * targets.c: Likewise.
3404 * cpu-s390.c: New file.
3405 * elf32-s390.c: New file.
3406 * elf64-s390.c: New file.
3408 2001-02-09 Nick Clifton <nickc@redhat.com>
3410 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3411 ImageBase. This has already been done by coff_swap_hdr_in.
3413 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3415 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3417 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3419 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3420 (sparc64_elf_relocate_section): Likewise.
3422 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3424 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3425 similar to R_SPARC_32.
3426 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3428 2001-02-08 H.J. Lu <hjl@gnu.org>
3430 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3431 relocation entries for weak definitions when building DSO with
3434 2001-02-08 Richard Henderson <rth@redhat.com>
3436 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3437 before visibility. Locally defined protected symbols are not
3440 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3442 * config.bfd: Enable coff64 for rs6000-*. Patch from
3443 <hzoli@austin.ibm.com>.
3445 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3447 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3448 found, do not attempt to find dwarf2 info before returning.
3450 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3452 * elflink.h (is_global_symbol_definition): Rename to
3453 is_global_data_symbol_definition and have it reject function
3455 (elf_link_is_defined_archive_symbol): Use renamed function.
3457 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3459 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3460 * libbfd.h (bfd_target_vector): Likewise.
3461 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3462 make static; create pointer reference named bfd_target_vector.
3463 (_bfd_target_vector_entries): Calculate this based on the array
3464 typed _bfd_target_vector.
3466 2001-02-06 H.J. Lu <hjl@gnu.org>
3468 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3469 internal symbols are not dynamic.
3470 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3472 2001-02-06 Nick Clifton <nickc@redhat.com>
3474 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3475 that it will not be pulled into the list of files that make up
3477 * Makefile.in: Regenerate.
3478 * po/bfd.pot: Regenerate.
3480 2001-02-06 H.J. Lu <hjl@gnu.org>
3482 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3484 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3485 external_PEI_IMAGE_hdr.
3487 2001-02-06 Kazu Hirata <kazu@hxi.com>
3489 * elf-m10200.c: Fix formatting.
3491 2001-02-04 Nick Clifton <nickc@redhat.com>
3493 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3494 rel, it will be handled later on.
3496 2001-02-02 Fred Fish <fnf@ninemoons.com>
3498 * Makefile.in: Fix typo.
3500 2001-02-01 Kazu Hirata <kazu@hxi.com>
3502 * elf-m10300.c: Fix formatting.
3504 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3506 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3507 (elf_backend_get_symbol_type): Define.
3508 (elf64_hppa_object_p): Set architecture and machine from elf
3511 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3513 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3516 2001-01-26 Richard Henderson <rth@redhat.com>
3518 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3519 for non-default visibility.
3520 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3521 delete ugly macro and replace with pretty function.
3523 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3525 * coff-go32.c: Update copyright.
3526 * coff-stgo32.c: Likewise.
3527 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3528 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3529 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3530 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3532 2001-01-25 Kazu Hirata <kazu@hxi.com>
3534 * bfd-in2.h: Rebuild.
3535 * libbfd.h: Likewise.
3537 2001-01-23 H.J. Lu <hjl@gnu.org>
3539 * bfd-in2.h: Rebuild.
3541 2001-01-23 H.J. Lu <hjl@gnu.org>
3543 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3544 is NULL or PRIV(vms_rec) is outside of the buffer.
3546 2001-01-23 Kazu Hirata <kazu@hxi.com>
3548 * coff64-rs6000.c: Fix formatting.
3549 * coff-arm.c: Likewise.
3550 * coffgen.c: Likewise.
3551 * cofflink.c: Likewise.
3552 * coff-mcore.c: Likewise.
3553 * coff-mips.c: Likewise.
3554 * coff-pmac.c: Likewise.
3555 * coff-ppc.c: Likewise.
3556 * coff-rs6000.c: Likewise.
3557 * elf32.c: Likewise.
3558 * elf32-fr30.c: Likewise.
3559 * elf32-i370.c: Likewise.
3560 * elf32-i860.c: Likewise.
3561 * elf32-m32r.c: Likewise.
3562 * elf32-m68k.c: Likewise.
3563 * elf32-mcore.c: Likewise.
3564 * elf32-ppc.c: Likewise.
3565 * elf32-sh.c: Likewise.
3566 * elf32-v850.c: Likewise.
3567 * elf64-alpha.c: Likewise.
3568 * elf64-sparc.c: Likewise.
3569 * elflink.c: Likewise.
3570 * elflink.h: Likewise.
3571 * elf-m10200.c: Likewise.
3572 * elf-m10300.c: Likewise.
3573 * elfxx-ia64.c: Likewise.
3575 * aoutx.h: Fix formatting.
3577 * bfd-in2.h: Likewise.
3578 * bfd-in.h: Likewise.
3579 * cpu-i386.c: Likewise.
3580 * cpu-m68hc11.c: Likewise.
3581 * dwarf2.c: Likewise.
3582 * elf64-x86-64.c: Likewise.
3583 * format.c: Likewise.
3584 * freebsd.h: Likewise.
3586 * hp300hpux.c: Likewise.
3587 * hppabsd-core.c: Likewise.
3588 * hpux-core.c: Likewise.
3590 2001-01-22 Bo Thorsen <bo@suse.de>
3592 * elf64-x86-64.c: Added PIC support for X86-64.
3593 (elf64_x86_64_link_hash_newfunc): Function added.
3594 (elf64_x86_64_link_hash_table_create): Likewise.
3595 (elf64_x86_64_check_relocs): Likewise.
3596 (elf64_x86_64_gc_mark_hook): Likewise.
3597 (elf64_x86_64_gc_sweep_hook): Likewise.
3598 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3599 (elf64_x86_64_size_dynamic_sections): Likewise.
3600 (elf64_x86_64_discard_copies): Likewise.
3601 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3602 (elf64_x86_64_finish_dynamic_sections): Likewise.
3603 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3605 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3607 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3608 * Makefile.in: Regenerate.
3610 2001-01-21 Kazu Hirata <kazu@hxi.com>
3612 * coff-a29k.c: Fix formatting.
3614 2001-01-19 H.J. Lu <hjl@gnu.org>
3616 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3617 relocation section names.
3618 (elf_i386_relocate_section): Report files with bad relocation
3619 section names and return false.
3621 2001-01-17 Bo Thorsen <bo@suse.de>
3623 * targets.c: Alphabetize list of xvecs.
3625 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3627 * config.bfd: Add linux target variant for elfxx-hppa.
3628 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3629 bfd_elf64_hppa_linux_vec.
3630 * configure: Regenerate.
3631 * elf64-hppa.c: Include elf64-target.h again to support linux
3633 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3634 * elf32-hppa.c: Include elf32-target.h again to support linux
3636 (elf32_hppa_post_process_headers): New function.
3637 (elf_backend_post_process_headers): Define.
3638 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3639 bfd_elf32_hppa_linux_vec.
3641 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3642 and data_segment_base fields.
3643 (elf32_hppa_link_hash_table_create ): Init them.
3644 (elf32_hppa_check_relocs): Update comments.
3645 (hppa_record_segment_addr): New function.
3646 (elf32_hppa_relocate_section): Call it.
3647 (final_link_relocate): Handle R_PARISC_SEGREL32.
3648 (elf32_hppa_final_link): New function.
3649 (bfd_elf32_bfd_final_link): Define to call it.
3650 (hppa_unwind_entry_compare): New function.
3651 * cache.c (bfd_open_file): Create files in write+read mode.
3653 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3654 SEGREL32 and numerous other relocs. Change duplicate
3655 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3657 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3660 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3661 .plt entries for DT_INIT and DT_FINI.
3662 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3663 DT_INIT and DT_FINI.
3665 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3666 offsets for stub .plt access if wide mode. Check offset in range.
3668 2001-01-13 Nick Clifton <nickc@redhat.com>
3670 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3673 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3676 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3678 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3679 * configure: Regenerate.
3681 2001-01-11 Peter Targett <peter.targett@arccores.com>
3683 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3684 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3685 * cpu-arc.c (arch_info_struct): Add entries for variants.
3686 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3687 (arc_get_mach) Don't assume machine names prefixed arc- before
3689 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3691 (arc_elf_final_write_processing) Likewise.
3692 (ELF_MACHINE_CODE) Use EM_ARC.
3694 2001-01-10 Nick Clifton <nickc@redhat.com>
3696 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3698 2001-01-07 Philip Blundell <philb@gnu.org>
3700 * README: Replace `bug-gnu-utils@gnu.org' with
3701 `bug-binutils@gnu.org'.
3703 2001-01-04 Kazu Hirata <kazu@hxi.com>
3705 * som.c: Fix formatting.
3707 2001-01-03 Kazu Hirata <kazu@hxi.com>
3709 * ecoffswap.h: Fix formatting.
3710 * elf-bfd.h: Likewise.
3711 * elfarm-nabi.c: Likewise.
3712 * elfarm-oabi.c: Likewise.
3713 * elfcode.h: Likewise.
3714 * elfcore.h: Likewise.
3715 * elflink.c: Likewise.
3716 * elflink.h: Likewise.
3717 * elfxx-ia64.c: Likewise.
3718 * elfxx-target.h: Likewise.
3719 * libbfd.c: Likewise
3720 * linker.c: Likewise.
3721 * lynx-core.c: Likewise.
3723 2001-01-02 Kazu Hirata <kazu@hxi.com>
3725 * pc532-mach.c: Fix formatting.
3726 * pe-arm.c: Likewise.
3727 * pe-i386.c: Likewise.
3728 * pe-mips.c: Likewise.
3729 * pe-ppc.c: Likewise.
3730 * pe-sh.c: Likewise.
3731 * pei-mips.c: Likewise.
3732 * pei-sh.c: Likewise.
3733 * peicode.h: Likewise.
3734 * ppcboot.c: Likewise.
3735 * ptrace-core.c: Likewise.
3737 2001-01-01 Kazu Hirata <kazu@hxi.com>
3739 * reloc.c: Fix formatting.
3740 * riscix.c: Likewise.
3741 * rs6000-core.c: Likewise.
3742 * xcoff-target.h: Likewise.
3744 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3746 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3747 error, by calling bfd_default_set_arch_mach with incoming
3750 2000-12-26 Kazu Hirata <kazu@hxi.com>
3752 * vaxnetbsd.c: Fix formatting.
3753 * versados.c: Likewise.
3754 * vms-gsd.c: Likewise.
3755 * vms-hdr.c: Likewise.
3756 * vms-misc.c: Likewise.
3758 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3760 * archive.c (coff_write_armap): Don't write more than symbol_count
3761 `archive_member_file_ptr's.
3763 2000-12-25 Kazu Hirata <kazu@hxi.com>
3765 * vms-tir.c: Fix formatting.
3767 2000-12-23 Kazu Hirata <kazu@hxi.com>
3769 * vms.c: Fix formatting.
3772 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3774 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3776 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3778 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3781 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3783 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3785 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3787 * libbfd.c (bfd_get_bits): Added
3788 (bfd_put_bits): Likewise
3789 * bfd-in.h: Declared the above.
3790 * bfd-in2.h: Regenerated.
3792 2000-12-20 Kazu Hirata <kazu@hxi.com>
3794 * targets.c: Fix formatting.
3795 * tekhex.c: Likewise.
3796 * trad-core.c: Likewise.
3798 2000-12-19 Kazu Hirata <kazu@hxi.com>
3800 * sco5-core.c: Fix formatting.
3801 * section.c: Likewise.
3802 * sparclinux.c: Likewise.
3803 * sparclynx.c: Likewise.
3804 * sparcnetbsd.c: Likewise.
3806 * stabs.c: Likewise.
3807 * stab-syms.c: Likewise.
3808 * sunos.c: Likewise.
3810 * sysdep.h: Likewise.
3812 2000-12-18 Nick Clifton <nickc@redhat.com>
3814 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3816 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3817 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3819 2000-12-18 Nick Clifton <nickc@redhat.com>
3821 * vms-misc.c (_bfd_vms_get_record): Add default case to
3824 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3826 * elfcore.h (elf_core_file_p): Move to the start of the program
3827 headers before attempting to read them.
3829 2000-12-14 Kazu Hirata <kazu@hxi.com>
3831 * peigen.c: Fix formatting.
3835 2000-12-13 Kazu Hirata <kazu@hxi.com>
3837 * peigen.c: Fix formatting.
3839 2000-12-12 Jim Wilson <wilson@redhat.com>
3841 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3843 2000-12-08 Mark Salter <msalter@redhat.com>
3845 * binary.c (binary_set_section_contents): Ignore sections
3848 2000-12-12 Kazu Hirata <kazu@hxi.com>
3850 * m68klinux.c: Fix formatting.
3851 * m68knetbsd.c: Likewise.
3852 * mipsbsd.c: Likewise.
3853 * netbsd-core.c: Likewise.
3854 * netbsd.h: Likewise.
3855 * newsos3.c: Likewise.
3856 * nlm32-alpha.c: Likewise.
3857 * nlm32-i386.c: Likewise.
3858 * nlm32-ppc.c: Likewise.
3859 * nlm32-sparc.c: Likewise.
3860 * nlmcode.h: Likewise.
3861 * nlmswap.h: Likewise.
3862 * nlm-target.h: Likewise.
3863 * ns32knetbsd.c: Likewise.
3865 2000-12-10 Fred Fish <fnf@be.com>
3867 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3868 symbols in shared objects if allow_shlib_undefined is true.
3870 2000-12-12 Nick Clifton <nickc@redhat.com>
3872 * cpu-sh.c: Fix formattng.
3873 * elf.c: Fix formattng.
3874 * elf32-mips.c: Fix formattng.
3875 * elf32-sh.c: Fix formattng.
3876 * elf64-alpha.c: Fix formattng.
3878 2000-12-09 Nick Clifton <nickc@redhat.com>
3880 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3881 dwarf2_find_line_info as last parameter to invocation of
3882 _bfd_dwarf2_find_nearest_line.
3883 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3884 dwarf2_find_line_info as last parameter to invocation of
3885 _bfd_dwarf2_find_nearest_line.
3887 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3889 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3890 (BFD_LIBS): ...to here.
3891 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3892 (BFD_LIBS_CFILES): ...to here.
3893 * Makefile.in: Regenerate.
3894 * configure.in: Remove dwarf.lo from the elf shell variable.
3895 * configure: Regenerate.
3896 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3897 * libcoff.h: Regenerate.
3898 * coffgen.c (coff_find_nearest_line): Call
3899 _bfd_dwarf2_find_nearest_line.
3900 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3902 (read_abbrevs): Likewise
3903 (decode_line_info): Likewise.
3904 (parse_comp_unit): Likewise.
3905 (comp_unit_find_nearest_line): Likewise.
3906 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3907 * libbfd.h: Regenerate.
3908 * elf.c (_bfd_elf_find_nearest_line): Update call.
3909 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3910 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3911 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3912 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3913 (styp_to_sec_flags): Handle DWARF2 sections.
3914 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3915 to _bfd_find_nearest_line.
3916 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3917 call to _bfd_find_nearest_line.
3919 2000-12-08 Kazu Hirata <kazu@hxi.com>
3921 * coffgen.c: Fix formatting.
3922 * elf-m10300.c: Likewise.
3923 * elf32-i386.c: Likewise.
3924 * elf32-i960.c: Likewise.
3925 * elf32-m68k.c: Likewise.
3926 * elf32-mcore.c: Likewise.
3927 * elf32-ppc.c: Likewise.
3928 * elf32-sh.c: Likewise.
3929 * elf32-sparc.c: Likewise.
3930 * elf32-v850.c: Likewise.
3931 * elf64-alpha.c: Likewise.
3932 * elf64-hppa.c: Likewise.
3933 * elf64-mips.c: Likewise.
3934 * elf64-sparc.c: Likewise.
3936 2000-12-07 Kazu Hirata <kazu@hxi.com>
3938 * elf32-ppc.c: Fix formatting.
3939 * elf64-x86-64.c: Likewise.
3941 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3943 From Ralf Baechle <ralf@gnu.org>
3945 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3946 BFDs containing no sections or empty .text, .data or .bss sections
3947 to be merged, regardless of their flags.
3949 2000-12-06 Kazu Hirata <kazu@hxi.com>
3951 * elf32-m32r.c: Fix formatting.
3952 * elf32-m68hc11.c: Likewise.
3953 * elf32-m68hc12.c: Likewise.
3954 * elf32-m68k.c: Likewise.
3955 * elf32-mcore.c: Likewise.
3956 * elf32-pj.c: Likewise.
3957 * elf32-ppc.c: Likewise.
3959 2000-12-05 Kazu Hirata <kazu@hxi.com>
3961 * elf32-fr30.c: Fix formatting.
3962 * elf32-hppa.c: Likewise.
3963 * elf32-i370.c: Likewise.
3964 * elf32-i386.c: Likewise.
3965 * elf32-i860.c: Likewise.
3966 * elf32-i960.c: Likewise.
3968 2000-12-03 Kazu Hirata <kazu@hxi.com>
3970 * elf32-arm.h: Fix formatting.
3971 * elf32-avr.c: Likewise.
3972 * elf32-cris.c: Likewise.
3973 * elf32-d10v.c: Likewise.
3974 * elf32-d30v.c: Likewise.
3975 * elf-hppa.h: Likewise.
3976 * elf-m10200.c: Likewise.
3977 * elf-m10300.c: Likewise.
3979 2000-12-01 Chris Demetriou <cgd@sibyte.com>
3981 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
3982 bfd_mach_mips32_4k. Update FIXME comment.
3983 * archures.c (bfd_mach_mips32): New constant.
3984 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3985 the latter, renumber it.
3986 * bfd-in2.h (bfd_mach_mips32): New constant.
3987 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
3988 the latter, renumber it.
3989 * cpu-mips.c (I_mips32): New constant.
3990 (I_mips4K, I_mips32_4k): Rename the former to the latter.
3991 (arch_info_struct): Add bfd_mach_mips32 entry, replace
3992 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
3993 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
3994 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
3995 with E_MIPS_MACH_MIPS32_4K.
3996 (_bfd_mips_elf_final_write_processing): Replace
3997 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
3998 bfd_mach_mips32 case.
3999 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4000 comparison with support for MIPS32.
4001 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4004 * aoutx.h (NAME(aout,machine_type)): Add cases for
4005 bfd_mach_mips5 and bfd_mach_mips64.
4006 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4007 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4008 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4009 (arch_info_struct): Add entries for bfd_mach_mips5 and
4011 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4012 _bfd_mips_elf_print_private_bfd_data): Add cases for
4013 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4014 (_bfd_mips_elf_final_write_processing): Add cases for
4015 bfd_mach_mips5 and bfd_mach_mips64.
4017 * aoutx.h (NAME(aout,machine_type)): Add a
4018 bfd_mach_mips_sb1 case.
4019 * archures.c (bfd_mach_mips_sb1): New constant.
4020 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4021 * cpu-mips.c (I_sb1): New constant.
4022 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4023 * elf32-mips.c (elf_mips_mach): Add case for
4025 (_bfd_mips_elf_final_write_processing): Add case for
4028 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4030 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4031 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4032 (sparc*-*-rtems*): Switched from a.out to ELF.
4034 2000-11-30 Jan Hubicka <jh@suse.cz>
4036 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4037 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4038 (elf64-x86-64.lo): Add dependencies.
4039 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4040 bfd_mach_x86_64_intel_syntax.
4041 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4042 * config.bfd (x86_64): Add.
4043 * configure.in: Add support for bfd_elf64_x86_64_vec.
4044 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4045 (bfd_i386_arch, i8086_ar): Link in.
4046 * elf64-x86-64.c: New file.
4047 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4048 * targets.c (bfd_elf64_x86_64_vec): Add.
4049 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4051 2000-11-30 Kazu Hirata <kazu@hxi.com>
4053 * xcofflink.c: Fix formatting.
4055 2000-11-28 Kazu Hirata <kazu@hxi.com>
4057 * aoutx.h: Fix formatting.
4058 * bfd-in.h: Likewise.
4059 * bfd-in2.h: Likewise.
4060 * cache.c: Likewise.
4061 * cisco-core.c: Likewise.
4062 * coff64-rs6000.c: Likewise.
4063 * coffcode.h: Likewise.
4064 * coffswap.h: Likewise.
4065 * corefile.c: Likewise.
4066 * elf32-mips.c: Likewise.
4068 2000-11-27 Kazu Hirata <kazu@hxi.com>
4070 * aout-adobe.c: Fix formatting.
4071 * coff64-rs6000.c: Likewise.
4072 * coffgen.c: Likewise.
4073 * cofflink.c: Likewise.
4075 2000-11-27 Philip Blundell <pb@futuretv.com>
4077 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4078 (obj_coff_strings_written): New accessor macro for above.
4079 * libcoff.h: Regenerate.
4080 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4082 * coffcode.h (coff_write_object_contents): No need to write out
4083 the string table if it's already been done.
4085 2000-11-22 Philip Blundell <pb@futuretv.com>
4087 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4088 weak undefined symbols.
4090 2000-11-24 Nick Clifton <nickc@redhat.com>
4092 * archures.c (bfd_mach_arm_5TE): Define.
4093 (bfd_mach_arm+XScale): Define.
4094 * bfd-in2.h: Regenerate.
4096 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4097 BFD_RELOC_ARM_PCREL_BLX.
4099 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4100 XScale machine numbers.
4102 * config.bfd (xscale-elf): Add target.
4103 (xscale-coff): Add target.
4105 * cpu-arm.c: Add xscale machine name.
4106 Add v5t, v5te and XScale machine numbers.
4108 2000-11-23 Kazu Hirata <kazu@hxi.com>
4110 * aix386-core.c: Fix formatting.
4112 2000-11-22 Jim Wilson <wilson@redhat.com>
4114 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4115 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4116 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4117 (ins_imms_scaled): Initialize sign_bit at function entry.
4118 (elf64_ia64_operands): Add missing initializers.
4119 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4120 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4121 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4122 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4123 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4125 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4126 and free_extsyms at function entry.
4127 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4128 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4129 (get_got): Delete unused local srel.
4130 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4131 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4133 2000-11-21 Kazu Hirata <kazu@hxi.com>
4135 * coff-a29k.c: Fix formatting.
4136 * coff-h8500.c: Likewise.
4137 * coff-i960.c: Likewise.
4138 * coff-ppc.c: Likewise.
4139 * coff-rs6000.c: Likewise.
4140 * coff-stgo32.c: Likewise.
4141 * coff-tic54x.c: Likewise.
4142 * coff-w65.c: Likewise.
4143 * cpu-h8500.c: Likewise.
4144 * cpu-hppa.c: Likewise.
4145 * cpu-ns32k.c: Likewise.
4146 * ecoff.c: Likewise.
4147 * ecofflink.c: Likewise.
4149 2000-11-21 Nick Clifton <nickc@redhat.com>
4151 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4152 remove possibility of infinite loop.
4154 2000-11-20 Kazu Hirata <kazu@hxi.com>
4156 * aix386-core.c: Fix formatting.
4157 * aout-adobe.c: Likewise.
4158 * aout-arm.c: Likewise.
4159 * aout-encap.c: Likewise.
4160 * aout-ns32k.c: Likewise.
4161 * aout-target.h: Likewise.
4162 * aout-tic30.c: Likewise.
4163 * aoutf1.h: Likewise.
4164 * aoutx.h: Likewise.
4165 * archive.c: Likewise.
4166 * bfd-in.h: Likewise.
4167 * bfd-in2.h: Likewise.
4171 2000-11-17 H.J. Lu <hjl@gnu.org>
4173 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4174 pltoff entries for DT_INIT and DT_FINI.
4175 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4176 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4179 2000-11-16 Richard Henderson <rth@redhat.com>
4181 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4182 (allocate_dynrel_entries): Likewise.
4183 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4184 (set_pltoff_entry): Likewise.
4185 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4186 (elfNN_ia64_reloc_type_lookup): Likewise.
4187 (elfNN_ia64_install_value): Likewise.
4188 (elfNN_ia64_relocate_section): Likewise.
4189 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4190 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4192 2000-11-16 Kazu Hirata <kazu@hxi.com>
4194 * cpu-a29k.c: Fix formatting.
4195 * cpu-alpha.c: Likewise.
4196 * cpu-arm.c: Likewise.
4197 * cpu-avr.c: Likewise.
4198 * cpu-d10v.c: Likewise.
4199 * cpu-h8500.c: Likewise.
4200 * cpu-hppa.c: Likewise.
4201 * cpu-i370.c: Likewise.
4202 * cpu-i386.c: Likewise.
4203 * cpu-i960.c: Likewise.
4204 * cpu-ia64-opc.c: Likewise.
4205 * cpu-ia64.c: Likewise.
4206 * cpu-m32r.c: Likewise.
4207 * cpu-m68hc11.c: Likewise.
4208 * cpu-m68hc12.c: Likewise.
4209 * cpu-m68k.c: Likewise.
4210 * cpu-m88k.c: Likewise.
4211 * cpu-mips.c: Likewise.
4212 * cpu-ns32k.c: Likewise.
4213 * cpu-pj.c: Likewise.
4214 * cpu-powerpc.c: Likewise.
4215 * cpu-sh.c: Likewise.
4216 * cpu-sparc.c: Likewise.
4217 * cpu-tic54x.c: Likewise.
4218 * cpu-v850.c: Likewise.
4219 * cpu-vax.c: Likewise.
4220 * cpu-w65.c: Likewise.
4221 * cpu-we32k.c: Likewise.
4222 * cpu-z8k.c: Likewise.
4223 * dwarf1.c: Likewise.
4224 * dwarf2.c: Likewise.
4226 2000-11-15 Kazu Hirata <kazu@hxi.com>
4228 * coff-arm.c: Fix formatting.
4229 * coff-ppc.c: Likewise.
4230 * coff-rs6000.c: Likewise.
4231 * coff-sh.c: Likewise.
4232 * coff-sparc.c: Likewise.
4233 * coff-tic30.c: Likewise.
4234 * coff-tic54x.c: Likewise.
4235 * coff-tic80.c: Likewise.
4236 * coff-w65.c: Likewise.
4237 * coff-we32k.c: Likewise.
4238 * coff-z8k.c: Likewise.
4240 2000-11-15 Richard Henderson <rth@redhat.com>
4242 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4243 section with the same ALLOC|LOAD flags as the source section.
4245 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4247 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4248 by STO_ALPHA constants.
4250 2000-11-14 Kazu Hirata <kazu@hxi.com>
4252 * coff-pmac.c: Fix formatting.
4253 * coff-ppc.c: Likewise.
4255 2000-11-13 H.J. Lu <hjl@gnu.org>
4257 * elflink.h (elf_link_add_object_symbols): Also add indirect
4258 symbols for common symbols with the default version.
4260 2000-11-09 Philip Blundell <pb@futuretv.com>
4262 * section.c (STD_SECTION): Set gc_mark flag.
4264 2000-11-11 Kazu Hirata <kazu@hxi.com>
4266 * coff-i960.c: Likewise.
4267 * coff-m68k.c: Likewise.
4268 * coff-m88k.c: Likewise.
4269 * coff-mcore.c: Likewise.
4270 * coff-mips.c: Likewise.
4272 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4274 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4276 2000-11-10 Kazu Hirata <kazu@hxi.com>
4278 * coff-h8300.c: Fix formatting.
4279 * coff-h8500.c: Likewise.
4280 * coff-i386.c: Likewise.
4281 * coff-i860.c: Likewise.
4282 * coff-i960.c: Likewise.
4283 * coff-ia64.c: Likewise.
4285 2000-11-09 Kazu Hirata <kazu@hxi.com>
4287 * archive.c: Fix formatting.
4288 * archures.c: Likewise.
4290 2000-11-07 Richard Henderson <rth@redhat.com>
4292 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4293 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4294 * section.c (bfd_set_section_contents): Call memcpy if
4295 section->contents set and location not equal to contents plus offset.
4297 2000-11-08 Kazu Hirata <kazu@hxi.com>
4299 * bfd-in.h: Fix formatting.
4300 * bfd-in2.h: Likewise.
4302 * binary.c: Likewise.
4304 * coff-a29k.c: Likewise.
4305 * coff-alpha.c: Likewise.
4306 * coff-apollo.c: Likewise.
4307 * coff-aux.c: Likewise.
4309 2000-11-07 Kazu Hirata <kazu@hxi.com>
4311 * aix386-core.c: Fix formatting.
4312 * aoutf1.h: Likewise.
4313 * aoutx.h: Likewise.
4314 * archures.c: Likewise.
4315 * armnetbsd.c: Likewise.
4317 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4319 * coff-h8300.c (special): Adjust reloc address.
4321 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4323 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4324 to differentiate elf32 and elf64 on ia64.
4325 * bfd-in2.h: Regenerate.
4326 * config.bfd: Add target for "ia64*-*-hpux*".
4327 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4328 * configure: Regenerate.
4329 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4330 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4332 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4333 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4334 * Makefile.in: Regnerate.
4335 * elf64-ia64.c: Deleted.
4336 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4338 2000-11-06 Kazu Hirata <kazu@hxi.com>
4340 * aout-adobe.c: Fix formatting.
4341 * aout-arm.c: Likewise.
4342 * aout-cris.c: Likewise.
4343 * aout-encap.c: Likewise.
4344 * aout-ns32k.c: Likewise.
4345 * aout-target.h: Likewise.
4346 * aout-tic30.c: Likewise.
4348 2000-11-05 Philip Blundell <philb@gnu.org>
4350 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4351 BFDs containing no sections to be merged, regardless of their flags.
4353 2000-11-04 Philip Blundell <philb@gnu.org>
4355 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4356 if a relocation for an undefined symbol also results in an
4359 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4361 * config.bfd: Add support for Sun Chorus.
4363 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4365 * configure.in: Recognize alpha-*-freebsd*.
4366 * configure: Regenerate.
4368 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4370 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4371 (Chunk): New global variable set by a parameter in objcopy.c.
4372 (S3Forced): New global variable set by a parameter in
4374 (srec_set_section_contents): If S3Forced is true, always generate
4376 (srec_write_section): Use 'Chunk' to limit maximum length of S
4379 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4381 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4382 * Makefile.in: Regenerate.
4383 * bfd-in2.h: Regenerate.
4384 * po/bfd.pot: Regenerate.
4386 2000-10-31 Philip Blundell <philb@gnu.org>
4388 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4389 EF_SOFT_FLOAT if it is defined.
4391 2000-10-27 Philip Blundell <philb@gnu.org>
4393 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4394 attempts to mix PIC code with non-PIC, just mark the output as
4395 being position dependent.
4396 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4397 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4398 all mismatches, not just the first one.
4400 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4402 * ieee.c (ieee_archive_p): Plug one of many possible
4403 memory leaks in error handling.
4405 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4407 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4408 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4410 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4411 sparc64_elf_object_p): Support v9b.
4412 * archures.c: Declare v8plusb and v9b machines.
4414 * cpu-sparc.c: Ditto.
4416 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4418 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4421 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4422 (SYMBOL_CALLS_LOCAL): New macro.
4423 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4424 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4425 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4426 (ppc_elf_relocate_section): Use flag variable to determine
4427 whether the relocation refers to a local symbol.
4428 Test whether a PLTREL24 reloc will produce a reloc by looking
4429 to see whether a PLT entry was made.
4431 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4433 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4434 entries that could serve as a definition for a weak symbol.
4436 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4438 From Ralf Baechle <ralf@gnu.org>
4440 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4441 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4442 against local symbols.
4443 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4445 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4447 * section.c (struct sec): Add kept_section.
4448 (struct bfd_comdat_info): Remove sec, we can use above.
4449 (STD_SECTION): Add initializer.
4450 (bfd_make_section_anyway): Init here too.
4452 * bfd-in2.h: Regenerate.
4454 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4456 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4457 fudge values for discarded link-once section symbols.
4459 * elf64-hppa.c: Include alloca-conf.h
4461 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4463 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4465 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4467 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4469 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4471 2000-10-10 Tom Rix <trix@redhat.com>
4473 * section.c (bfd_make_section_anyway): Release newsect ptr when
4474 newsect->symbol fails to alloc. Use bfd_release instead of free.
4476 2000-10-09 Richard Henderson <rth@cygnus.com
4478 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4479 (elf64_ia64_unwind_entry_compare): New.
4480 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4482 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4484 * elflink.h (size_dynamic_sections): Don't create various tags if
4485 .dynstr is excluded from the link. Don't set first dynsym entry
4486 if dynsymcount is zero.
4487 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4488 .dynsym excluded from the link. Don't try to write any dynamic
4489 sections excluded from the link.
4491 * elf.c (swap_out_syms): Handle global section symbols.
4493 2000-10-05 DJ Delorie <dj@redhat.com>
4495 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4496 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4497 (coff_write_relocs): write extended reloc count
4498 (coff_write_object_contents): account for extended relocs
4500 2000-10-05 Jim Wilson <wilson@cygnus.com>
4502 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4504 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4505 elf_backend_section_flags function.
4506 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4508 (elf64_ia64_section_flags): New function containing flag conversion
4510 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4511 * elfxx-target.h (elf_backend_section_flags): Define.
4512 (elfNN_bed): Initialize elf_backend_section_flags field.
4514 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4516 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4517 _bfd_elf32_gc_record_vtable. Correct a comment.
4519 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4521 From Ralf Baechle <ralf@gnu.org>
4523 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4524 produces binaries with got[1] = 0x80000001 to differenciate them
4525 for the dynamic linker from the broken binaries produced by old
4528 2000-09-30 Petr Sorfa <petrs@sco.com>
4530 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4531 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4532 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4533 * configure: Regenerate.
4535 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4537 Define two bfd_targets for absence and presence of leading
4538 underscore on symbols. Make sure to only link same kind.
4539 * elf32-cris.c (cris_elf_object_p,
4540 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4541 cris_elf_merge_private_bfd_data): New.
4542 (elf_backend_object_p, elf_backend_final_write_processing,
4543 bfd_elf32_bfd_print_private_bfd_data,
4544 bfd_elf32_bfd_merge_private_bfd_data): Define.
4545 <Target vector definition>: Include elf32-target.h twice with
4546 different macro settings:
4547 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4548 bfd_elf32_us_cris_vec.
4549 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4550 (elf_symbol_leading_char): First as 0, then '_'.
4551 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4552 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4553 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4554 * configure: Regenerate.
4555 * targets.c: Declare bfd_elf32_us_cris_vec.
4556 * po/bfd.pot: Regenerate.
4558 2000-09-29 Momchil Velikov <velco@fadata.bg>
4560 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4561 R_ARM_THM_PC22 relocations.
4563 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4565 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4567 2000-09-29 Momchil Velikov <velco@fadata.bg>
4569 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4570 is has the SEC_HAS_CONTENTS flag set.
4572 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4573 Hans-Peter Nilsson <hp@axis.com>
4575 * aout-cris.c (N_TXTADDR): Define.
4577 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4579 * som.c: Include alloca-conf.h.
4580 * Makefile.am: "make dep-am"
4581 * Makefile.in: Regenerate.
4583 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4585 * elf32-hppa.c (plt_stub): New.
4586 (PLT_STUB_ENTRY): Define.
4587 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4588 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4589 (elf32_hppa_link_hash_table_create): Init to suit.
4590 (elf32_hppa_check_relocs): Set has_12bit_branch and
4591 has_17bit_branch as appropriate.
4592 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4593 non-local functions.
4594 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4595 Add space for plt_stub as needed.
4596 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4597 functions at plt_stub.
4598 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4599 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4601 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4602 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4603 of fixed size, and if negative, disable handling of input sections
4604 before stub section. Set up default stub group size depending
4605 on detected branch relocs.
4606 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4607 ensure different offsets from sym_value aren't rounded to
4608 different 2k blocks. Use lrsel and rrsel for other stubs too for
4609 consistency rather than necessity.
4610 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4611 (final_link_relocate): Likewise.
4612 (elf32_hppa_relocate_section): Likewise.
4614 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4615 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4616 (elf_hppa_final_link_relocate): Handle them.
4617 (elf_hppa_relocate_insn): Likewise.
4618 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4620 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4622 * elfcode.h (elf_object_p): Preserve and clear abfd section
4623 information. Restore at error.
4625 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4627 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4628 is empty, make sure that its rva also 0. NT loader dislikes
4631 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4633 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4636 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4638 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4639 currently unused RELATIVE_DYNAMIC_RELOCS code.
4640 (hppa_discard_copies): Likewise.
4641 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4642 comments. Don't check non-code output sections for stub grouping.
4644 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4646 * section.c (bfd_get_unique_section_name): Return NULL if
4649 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4651 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4652 instruction sequence to actually work.
4653 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4656 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4658 * elf32-sh.c (sh_elf_relocate_section): Use
4659 _bfd_final_link_relocate to apply the relocation against a section
4660 symbol, when doing relocatable links.
4662 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4664 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4666 (stub_hash_newfunc): Here too.
4667 (hppa_add_stub): And here.
4668 (elf32_hppa_link_hash_table): Remove stub_section_created,
4669 reloc_section_created, first_init_sec and first_fini_sec. Add
4671 (elf32_hppa_link_hash_table_create): Init to suit.
4672 (hppa_get_stub_entry): Add support for grouping stub sections.
4673 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4674 section code. Index stub vars by section->id.
4675 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4676 exit paths. Zap allocation of above removed vars. Refine
4679 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4680 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4681 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4682 rather than pointer to bfd_link_info.
4683 (hppa_add_stub): Likewise.
4684 (final_link_relocate): Likewise.
4686 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4688 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4691 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4693 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4694 ld/emulparams/shelf.sh.
4696 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4698 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4699 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4700 * bfd-in2.h: Regenerate.
4702 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4704 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4705 LITUSE relocations incorrectly if -relax is specified on the ld
4706 command line and the displacement field of the load or store
4707 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4709 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4711 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4712 first_fini_sec here.
4713 (elf32_hppa_size_stubs): Instead correctly find the first .init
4714 and .fini section here.
4716 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4718 * elf32-hppa.c (clobber_millicode_symbols): New function.
4719 (elf32_hppa_size_dynamic_sections): Call it.
4721 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4723 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4724 packed. Add plabel, plt_abs packed booleans.
4725 (hppa_link_hash_newfunc): Init new fields.
4726 (PLABEL_PLT_ENTRY_SIZE): Define.
4727 (hppa_stub_name): Use size_t len vars.
4728 (hppa_add_stub): Likewise.
4729 (elf32_hppa_build_stubs): Likewise.
4730 (hppa_build_one_stub): Kill some compiler warnings.
4731 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4732 if dynamic linking. Munge the local plt offsets into
4733 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4734 size_t len vars. Add assert for plabel addend.
4735 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4736 (elf32_hppa_hide_symbol): New function.
4737 (elf_backend_hide_symbol): Define.
4738 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4739 with h->plabel set. Don't make plt entries to have dynamic syms
4740 when they have been forced local. If plt entry is used by a
4741 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4742 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4743 Set up .plt offsets for local syms.
4744 (elf32_hppa_relocate_section): Initialise plt entries for local
4745 syms. Leave weak undefined plabels zero. Make global plabel
4746 relocs against function symbol, and leave the addend zero.
4747 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4748 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4749 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4750 relocs instead of SEGREL32 for dynamic got relocs.
4751 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4752 (elf_backend_got_header_size): Adjust.
4753 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4755 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4756 (hppa_type_of_stub): Use it instead of #if 0
4757 (hppa_discard_copies): Use it here too.
4758 (elf32_hppa_size_dynamic_sections): And here.
4760 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4761 (elf32_hppa_link_hash_table_create): And here.
4762 (hppa_build_one_stub): And here. Instead keep track of stub
4763 offset using _raw_size.
4764 (elf32_hppa_size_stubs): Likewise.
4765 (elf32_hppa_build_stubs): Likewise.
4766 (hppa_size_one_stub): Likewise. Resize reloc section too.
4768 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4769 first_fini_sec handling. Don't search for reloc section or set
4770 hplink->reloc_section_created here.
4771 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4772 set reloc_section_created here.
4773 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4774 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4776 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4778 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4779 with `hplink->root.'.
4780 (elf32_hppa_check_relocs): Likewise.
4781 (elf32_hppa_gc_sweep_hook): Likewise.
4782 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4783 (hppa_handle_PIC_calls): Likewise.
4784 (elf32_hppa_size_dynamic_sections): Likewise.
4785 (elf32_hppa_set_gp): Likewise.
4786 (elf32_hppa_relocate_section): Likewise.
4787 (elf32_hppa_finish_dynamic_symbol): Likewise.
4788 (elf32_hppa_finish_dynamic_sections): Likewise.
4790 From David Huggins-Daines <dhd@linuxcare.com>
4791 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4792 defined weak symbols in shared links.
4793 (final_link_relocate): Calls to defined weak symbols in shared
4794 objects must go via import stubs, as the target might not be known
4797 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4799 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4800 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4801 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4802 the original entries with EMPTY_HOWTOs, and added new ones to fill
4804 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4805 (sh_elf_relocate_section): Likewise.
4807 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4809 * cpu-mips.c (arch_info_struct): Add mips:4K
4810 * bfd-in2.h (bfd_mach_mips4K): New define.
4811 * archures.c: Add bfd_mach_mips4K to comment.
4812 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4813 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4815 2000-09-13 Marco Franzen <marcof@thyron.com>
4817 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4818 use size_t as a counter.
4819 (som_write_space_strings): Similarly.
4821 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4823 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4825 (elf32_i860_relocate_section): Invoke new function from here.
4827 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4829 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4832 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4834 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4835 target section name instead of dumping core when the target symbol is
4838 2000-09-09 Kazu Hirata <kazu@hxi.com>
4840 * riscix.c: Remove DEFUN.
4842 2000-09-08 Nick Clifton <nickc@redhat.com>
4844 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4845 initialise flags in output bfd if the input bfd is the default
4846 architecture with the default flags.
4848 2000-09-08 Kazu Hirata <kazu@hxi.com>
4850 * archive.c: Fix formatting.
4851 * coff-arm.c: Likewise.
4852 * doc/chew.c: Likewise.
4854 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4856 * section.c (bfd_get_unique_section_name): Put a dot before the
4859 2000-09-07 Kazu Hirata <kazu@hxi.com>
4861 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4862 * elf.c: Fix formatting.
4864 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4866 * config.bfd (sh-*-linux*): Added.
4867 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4868 * targets.c: Declare them.
4869 * elf32-sh-lin.c: New file.
4870 * Makefile.am: Compile it.
4871 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4872 * configure, Makefile.in: Rebuilt.
4874 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4876 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4877 pseduo-section when determining where the TOC ends.
4879 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4880 output x_tvndx as it is only two bytes wide.
4882 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4883 reloc is 26 or 32 bits wide.
4885 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4886 for relocs that don't change anything. Also look at the full
4889 2000-09-06 Philip Blundell <philb@gnu.org>
4891 * config.bfd (arm*-*-uclinux*): New target.
4893 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4895 * configure: Rebuilt with new libtool.m4.
4897 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4899 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4900 word for variable name.
4901 * bfd-in2.h: Regenerate.
4903 2000-09-05 Nick Clifton <nickc@redhat.com>
4905 * config.in: Regenerate.
4906 * libbfd.h: Regenerate.
4907 * po/bfd.pot: Regenerate.
4908 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4911 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4913 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4915 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4917 Shared library and PIC support.
4918 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4919 (GOT_ENTRY_SIZE): New.
4920 (ELF_DYNAMIC_INTERPRETER): New.
4921 (STUB_SUFFIX): Define.
4922 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4923 (RELATIVE_DYNAMIC_RELOCS): Define.
4924 (enum elf32_hppa_stub_type): New.
4925 (struct elf32_hppa_stub_hash_entry): Rename offset to
4926 stub_offset. Add a number of new fields.
4927 (struct elf32_hppa_link_hash_entry): New.
4928 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4930 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4931 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4932 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4934 (hppa_link_hash_newfunc): New function.
4935 (elf32_hppa_link_hash_table_create): Use above function. Init new
4937 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4938 instead of addend, and remove sym_name from args. Don't use
4939 symbol name for local syms, instead use sym index.
4940 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4941 stub type rather than size. Pass in hash and handle import stub
4942 case. Also pass in reloc instead of offset so we can calculate
4943 PCREL22F and PCREL12F branches properly.
4944 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4945 import and export stubs too.
4946 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4947 import and export stub sizing.
4948 (elf32_hppa_check_relocs): New function.
4949 (elf32_hppa_adjust_dynamic_symbol): New function.
4950 (hppa_discard_copies): New function.
4951 (elf32_hppa_size_dynamic_sections): New function.
4952 (elf_backend_size_dynamic_sections): Define.
4953 (elf32_hppa_finish_dynamic_symbol): New function.
4954 (elf_backend_finish_dynamic_symbol): Define.
4955 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4956 some local vars into the link hash table too. For shared links,
4957 trundle over function syms, generating export stubs. Handle
4958 PCREL22F branches. Break out stub creation code from here..
4959 (hppa_add_stub): .. to here. New function.
4960 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4961 call the bfd linker. Use elf_gp to record global pointer.
4962 Calculate a value from sections if $global$ is missing.
4963 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4964 (elf32_hppa_gc_mark_hook): New function.
4965 (elf_backend_gc_mark_hook): Define.
4966 (elf32_hppa_gc_sweep_hook): New function.
4967 (elf_backend_gc_sweep_hook): Define.
4968 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
4969 Add rel to args, and remove howto, input_bfd, offset, addend,
4970 sym_name as we can recalculate these locally. Handle calls to
4971 dynamic objects, extra PIC relocs, PCREL22F branches. Change
4972 handling of undefined weak syms. Check that stubs are in range.
4973 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
4974 message on hitting a DPREL21L reloc that needs fixing. Subtract
4975 off PC for PCREL14F. Break out code that does a stub lookup from
4977 (hppa_get_stub_entry): ..to here. New function.
4978 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
4979 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
4981 (elf32_hppa_finish_dynamic_sections): New function.
4982 (elf_backend_finish_dynamic_sections): Define.
4983 (elf_backend_final_write_processing) Define.
4984 (hppa_handle_PIC_calls): New function.
4985 (elf32_hppa_build_stubs): Call it. Pass link_info to
4986 hppa_build_one_stub.
4987 (elf32_hppa_create_dynamic_sections): New function
4988 to create .plt and .got then set .plt flags correctly.
4989 (elf_backend_create_dynamic_sections): Define.
4990 (elf32_hppa_object_p): New function.
4991 (elf_backend_object_p): Define.
4992 (elf32_hppa_elf_get_symbol_type): New function.
4993 (elf_backend_get_symbol_type): Define.
4994 (elf_backend_can_gc_sections): Define.
4995 (elf_backend_want_got_plt): Define.
4996 (elf_backend_plt_alignment): Set to 2.
4997 (elf_backend_plt_readonly): Define.
4998 (elf_backend_want_plt_sym): Define.
4999 (elf_backend_got_header_size): Reserve one entry.
5001 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5002 (elf32_hppa_size_stubs): Pass in multi_subspace.
5003 (elf32_hppa_set_gp): Declare.
5005 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5006 (bfd_get_unique_section_name): New function.
5007 * bfd-in2.h: Regenerate.
5009 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5010 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5013 From David Huggins-Daines <dhd@linuxcare.com>
5014 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5015 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5016 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5017 been updated in finish_dynamic_symbol before modifying function
5020 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5021 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5022 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5023 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5024 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5025 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5026 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5027 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5029 From David Huggins-Daines <dhd@linuxcare.com>
5030 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5031 style of local labels as well.
5033 2000-09-03 Philip Blundell <philb@gnu.org>
5035 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5036 references to undefined symbols in debugging sections.
5038 2000-09-02 H.J. Lu <hjl@gnu.org>
5040 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5041 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5042 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5045 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5047 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5048 (elf32_i860_is_local_label_name): New function and prototype.
5050 2000-09-02 Nick Clifton <nickc@redhat.com>
5052 * configure.in: Increase version number to 2.10.91.
5053 * configure: Regenerate.
5054 * aclocal.m4: Regenerate.
5055 * config.in: Regenerate.
5056 * po/bfd.pot: Regenerate.
5058 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5060 * elf.c (_bfd_elf_make_section_from_shdr): Add
5061 .gnu.linkobce.wi. to the list of debug section names.
5063 2000-09-02 Nick Clifton <nickc@redhat.com>
5065 * dwarf2.c (find_debug_info): New function: Locate a section
5066 containing dwarf2 debug information.
5067 (bfd_dwarf2_find_nearest_line): Find all sections containing
5068 debug information and include them in the stash.
5070 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5072 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5073 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5074 (sh_reloc_map): Add new relocs.
5075 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5076 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5077 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5078 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5080 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5081 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5082 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5083 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5084 New array constants.
5085 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5087 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5088 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5089 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5090 elf_sh_plt_reloc_offset): Define.
5091 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5092 elf_sh_link_hash_table): New structs.
5093 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5094 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5096 (elf_backend_create_dynamic_sections,
5097 bfd_elf32_bfd_link_hash_table_create,
5098 elf_backend_adjust_dynamic_symbol,
5099 elf_backend_size_dynamic_sections,
5100 elf_backend_finish_dynamic_symbol,
5101 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5102 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5103 elf_backend_got_header_size, elf_backend_plt_header_size):
5105 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5106 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5108 * bfd-in2.h, libbfd.h: Rebuilt.
5110 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5112 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5115 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5117 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5118 not initialized, set them to indicate the SH1 instruction set.
5120 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5122 * acinclude.m4: Include libtool and gettext macros from the
5124 * aclocal.m4, configure: Rebuilt.
5126 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5128 * elf.c: Eliminate references to __sparcv9 macro; replace with
5129 autoconf variables HAVE_PSINFO32_T etc.
5130 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5131 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5133 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5134 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5135 * aclocal.m4: Ditto.
5136 * configure: Regenerate.
5138 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5140 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5141 for any shared link, not just shared -Bsymbolic.
5142 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5143 any shared link, and pass link info to it.
5144 (elf_i386_size_dynamic_sections): Update comment.
5145 (elf_i386_discard_copies): Modify to discard relocs for symbols
5146 that have been forced local.
5147 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5148 that have been forced local.
5150 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5152 * elflink.h (elf_link_add_object_symbols): Allow common
5153 symbols to have an alignment of 1 if explicitly requested, and
5154 not overridden by other definitions.
5156 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5158 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5159 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5161 2000-08-22 H.J. Lu <hjl@gnu.org>
5163 * elf-bfd.h (elf_link_hash_table): Add runpath.
5165 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5166 * bfd-in2.h: Rebuilt.
5168 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5169 "runpath" field to NULL.
5170 (bfd_elf_get_runpath_list): New function.
5172 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5175 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5177 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5178 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5179 explicitly. Improve validation of r_type.
5181 2000-08-21 H.J. Lu <hjl@gnu.org>
5183 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5184 dynamic allocated content space. Add a comment to remind us that
5185 one day this ought to be fixed.
5186 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5187 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5188 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5190 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5192 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5193 field with the newly relocated value instead of adding it to the
5194 existing immediate field.
5195 (elf32_i860_relocate_splitn): Likewise.
5196 (elf32_i860_relocate_highadj): Likewise.
5198 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5200 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5201 was previously just a stub).
5203 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5205 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5207 (_bfd_elf_create_dynamic_sections): Likewise.
5209 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5211 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5212 for undefined symbols to be the beginning of the section.
5214 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5215 four extra entries at the beginning of the .rela.plt section.
5216 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5217 section to account for the four reserved entries in the .plt section.
5219 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5221 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5222 to the list of NOPs we recognize after a branch-and-link.
5223 Use the ori NOP when one is needed.
5225 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5228 2000-08-14 Jim Wilson <wilson@cygnus.com>
5230 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5231 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5232 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5235 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5237 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5239 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5241 * elf32-i860.c (elf32_i860_relocate_section): New function.
5242 (i860_final_link_relocate): New function.
5243 (elf32_i860_relocate_splitn): New function.
5244 (elf32_i860_relocate_pc16): New function.
5245 (elf32_i860_relocate_highadj): New function.
5246 (elf32_i860_howto): Minor adjustments to some relocations.
5247 (elf_info_to_howto_rel): Define.
5248 (elf_backend_relocate_section): Define.
5250 2000-08-10 Nick Clifton <nickc@cygnus.com>
5252 * elf32-arm.h: Fix formatting.
5254 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5256 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5258 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5260 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5262 2000-08-07 Kazu Hirata <kazu@hxi.com>
5264 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5265 * elf64-ia64.c: Fix a typo.
5267 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5269 * elf32-i860.c (elf32_i860_howto_table): New structure.
5270 (lookup_howto): New function.
5271 (elf32_i860_reloc_type_lookup): New function.
5272 (elf32_i860_info_to_howto_rela): New function.
5273 (elf_code_to_howto_index): New structure.
5274 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5275 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5276 elf32_i860_reloc_type_lookup.
5278 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5280 * som.c (struct fixup_format): Constify `format'.
5281 (som_hppa_howto_table): Use SOM_HOWTO macro.
5282 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5283 (som_bfd_reloc_type_lookup): Likewise.
5284 (compare_subspaces): Remove unused `count1', `count2'.
5285 (som_begin_writing): Remove unused `total_reloc_size'.
5286 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5287 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5288 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5289 (som_find_nearest_line): Decorate unused parameter(s).
5290 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5291 (som_bfd_link_split_section): Likewise.
5293 2000-08-03 Nick Clifton <nickc@cygnus.com>
5295 * section.c: Restore backed out code.
5296 * elf.c: Restore backed out code.
5297 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5298 binaries from working.
5299 * bfd-in2.h: Regenerate.
5301 2000-08-03 H.J. Lu <hjl@gnu.org>
5303 * section.c: Back out the change made by Nick Clifton
5304 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5306 * bfd-in2.h: Likewise.
5309 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5311 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5313 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5315 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5316 * bfd-in2.h, libbfd.h: Regenerate.
5318 2000-07-31 Nick Clifton <nickc@cygnus.com>
5320 * section.c (struct sec): Add new boolean field 'segment_mark'.
5321 (STD_SECTION): Initialise new field to zero.
5323 * bfd-in2.h: Regenerate.
5325 * elf.c (copy_private_bfd_data): Reorganise section to segment
5326 mapping to cope with moved sections requiring new segments,
5327 and overlapping segments.
5328 (SEGMENT_END): New macro: Return the end address of a segment.
5329 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5330 contains a section by comparing their VMA addresses.
5331 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5332 contains a section by comparing their LMA addresses.
5333 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5334 section should be included in a segment.
5335 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5336 follows another in memory.
5337 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5340 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5342 * cpu-i860.c: Added comments.
5344 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5345 bfd_elf32_i860_little_vec.
5346 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5347 (ELF_MAXPAGESIZE): Changed to 4096.
5349 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5351 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5353 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5354 config for little endian elf32 i860.
5355 (targ_defvec): Define for the new config above
5356 as "bfd_elf32_i860_little_vec".
5357 (targ_selvecs): Define for the new config above
5358 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5360 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5363 * configure: Regenerated.
5365 2000-07-27 H.J. Lu <hjl@gnu.org>
5367 * elflink.h (elf_merge_symbol): Take one more argument,
5368 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5369 entry. Don't overide the existing weak definition if dt_needed
5371 (elf_link_add_object_symbols): Pass dt_needed to
5372 elf_merge_symbol ().
5374 2000-07-27 Nick Clifton <nickc@cygnus.com>
5376 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5379 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5381 * configure.host (*-*-aix*): AIX has 'long long' always.
5383 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5384 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5385 (xcoff_write_archive_contents_big): Don't update the offset
5386 of the symbol table, xcoff_write_armap will do it.
5388 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5390 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5391 of dynobj for SGI_COMPAT checks.
5393 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5395 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5396 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5397 * bfd-in2.h: Regenerate.
5399 2000-07-21 Nick Clifton <nickc@cygnus.com>
5401 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5402 range symbol indices in relocs and issue an error message.
5404 2000-07-20 H.J. Lu <hjl@gnu.org>
5406 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5407 info->new_dtags when setting DT_FLAGS_1. It will only be set
5408 by the new linker options. It shouldn't break anything.
5410 2000-07-20 H.J. Lu <hjl@gnu.org>
5412 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5413 only if info->new_dtags is true.
5415 2000-07-20 H.J. Lu <hjl@gnu.org>
5417 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5418 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5420 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5422 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5423 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5424 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5425 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5426 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5427 * Makefile.in: Rebuild.
5428 * aclocal.m4: Rebuild.
5429 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5430 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5431 (bfd_cris_arch): Declare.
5432 (bfd_archures_list): Add bfd_cris_arch.
5433 * bfd-in2.h: Rebuild.
5434 * config.bfd: (cris-*-*): New target.
5435 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5436 * configure: Rebuild.
5437 * elf.c (prep_headers): Add bfd_arch_cris.
5438 * libbfd.h: Rebuild.
5439 * libaout.h (enum machine_type): Add M_CRIS.
5440 * reloc.c: Add CRIS relocations.
5441 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5442 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5443 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5444 * po/POTFILES.in, po/bfd.pot: Regenerate.
5446 2000-07-19 H.J. Lu <hjl@gnu.org>
5448 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5449 DF_TEXTREL if DT_TEXTREL is set.
5450 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5451 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5452 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5453 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5454 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5455 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5456 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5457 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5458 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5459 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5461 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5462 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5464 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5466 2000-07-19 H.J. Lu <hjl@gnu.org>
5468 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5469 * bfd-in2.h: Rebuild.
5471 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5472 (elf_dt_soname): New.
5474 * elf.c (bfd_elf_set_dt_needed_soname): New.
5476 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5477 entry if the shared object loaded by DT_NEEDED is used to
5478 resolve the reference in a regular object.
5480 2000-07-19 H.J. Lu <hjl@gnu.org>
5482 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5483 DT_DEPAUDIT and DT_AUDIT as strings.
5485 2000-07-19 Nick Clifton <nickc@cygnus.com>
5487 * format.c: Fix formatting.
5489 2000-07-19 H.J. Lu <hjl@gnu.org>
5491 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5493 2000-07-19 H.J. Lu <hjl@gnu.org>
5495 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5496 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5497 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5498 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5499 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5500 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5501 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5503 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5505 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5506 renamed functions from here...
5507 (assign_section_numbers): Use renamed functions.
5508 (prep_headers): Use renamed functions.
5510 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5511 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5512 * bfd-in2.h: Regenerate.
5514 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5516 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5517 parenthesis in if statement.
5519 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5521 Enable the support for Traditional MIPS.
5522 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5523 return ict_none appropriately for traditional mips targets.
5524 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5525 (STUB_MOVE): Conditionalize for traditonal mips.
5526 (STUB_LI16): Likewise.
5527 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5528 room for RTPROC header.
5529 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5530 the permission for the PT_DYNAMIC as read, write and execute.
5531 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5532 for traditonal mips.
5533 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5534 _DYNAMIC_LINKING for traditonal mips.
5535 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5536 in case of traditonal mips.
5537 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5538 entry is required. For a function if PLT is not required then set the
5539 corresponding hash table entry to 0.
5540 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5542 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5543 shared object set the value to 0.
5544 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5545 _DYNAMIC_LINKING for traditonal mips.
5546 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5547 for traditonal mips.
5549 2000-07-15 H.J. Lu <hjl@gnu.org>
5551 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5553 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5555 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5556 out a structure that is BFD_IN_MEMORY.
5558 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5560 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5561 bfd pointer. Print section id instead of bfd pointer for local
5562 syms. Prefix addend with `+' for global syms as well as local.
5563 Correct calculation of name component lengths.
5564 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5566 From David Huggins-Daines <dhd@linuxcare.com>
5567 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5568 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5569 (elf64_hppa_modify_segment_map): Likewise.
5571 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5573 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5574 addresses to be "naturally" sign extended. Return -1 if unknown.
5575 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5576 * bfd-in2.h: Regenerate.
5578 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5580 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5581 and ECOF_SIGNED_64 to list ways to extract an offset.
5582 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5583 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5585 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5586 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5588 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5590 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5591 bfd_get_start_address.
5592 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5593 (elf_swap_ehdr_out): Ditto.
5595 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5597 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5598 compatibility with older binutils.
5600 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5602 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5603 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5605 From Ryan Bradetich <rbradetich@uswest.net>
5606 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5607 (parse_line_table): Ditto.
5608 (_bfd_dwarf1_find_nearest_line): Ditto.
5609 * syms.c (cmpindexentry): Remove extra `*' from params.
5611 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5613 * elf32-mips.c (sort_dynamic_relocs): New Function.
5614 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5615 via qsort to sort the dynamic relocations in increasing r_symndx
5618 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5620 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5621 ATTRIBUTE_UNUSED to unused args.
5622 (get_opd): Likewise.
5623 (get_plt): Likewise.
5624 (get_dlt): Likewise.
5625 (get_stub): Likewise.
5626 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5627 (elf64_hppa_link_output_symbol_hook): Likewise.
5628 (elf64_hppa_check_relocs): Delete unused var.
5629 (elf64_hppa_size_dynamic_sections): Likewise.
5630 (elf64_hppa_finalize_opd): Likewise.
5631 (elf64_hppa_finalize_dynreloc): Likewise.
5632 (elf64_hppa_modify_segment_map): Likewise.
5633 (elf64_hppa_finish_dynamic_sections): Likewise.
5635 * elf-hppa.h (elf_hppa_final_write_processing): Add
5636 ATTRIBUTE_UNUSED to unused args.
5637 (elf_hppa_final_link_relocate): Likewise.
5638 (elf_hppa_record_segment_addrs): Add paretheses.
5639 (elf_hppa_relocate_section): Constify dyn_name.
5641 From David Huggins-Daines <dhd@linuxcare.com>
5642 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5643 rearrange case statement so that it gets preferred to 32-bit ones.
5645 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5646 asection->id instead of address of asection structure.
5647 (elf32_hppa_size_stubs): Likewise.
5649 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5650 for .init* and .fini*.
5652 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5653 and addends used in stub names to 32 bits.
5654 (elf32_hppa_size_stubs): Likewise.
5656 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5657 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5658 not bfd_put_64. Fix minor comment typo and formatting.
5660 Changes to create multiple linker stubs, positioned immediately
5661 before the section where they are required.
5662 * elf32-hppa.c: Don't include hppa_stubs.h.
5663 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5664 (elf32_hppa_stub_hash_table): Delete.
5665 (elf32_hppa_link_hash_entry): Delete.
5666 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5667 stub_hash_table, and store the struct here rather than a pointer.
5668 Delete output_symbol_count. Add offset array. Change
5669 global_value to a bfd_vma.
5670 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5671 (elf32_hppa_stub_hash_traverse): Delete.
5672 (elf32_hppa_name_of_stub): Delete.
5673 (elf32_hppa_link_hash_lookup): Delete.
5674 (elf32_hppa_link_hash_traverse): Delete.
5675 (elf32_hppa_stub_hash_table_init): Delete.
5676 (elf32_hppa_size_of_stub): Pass input section and offset rather
5677 than location and calculate location here. Don't pass name as all
5678 stubs are now the same size.
5679 (elf32_hppa_stub_hash_newfunc): Init new fields.
5680 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5682 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5683 comparing against ints. Rewrite stub handling code.
5684 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5685 Case enums to int before comparing against ints. Remove
5686 bfd_reloc_dangerous case.
5687 (elf32_hppa_build_one_stub): Rewrite.
5688 (elf32_hppa_size_one_stub): New function.
5689 (elf32_hppa_build_stubs): Rewrite.
5690 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5691 Rewrite stub-handling specific code.
5693 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5695 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5697 * hppa_stubs.h: Delete.
5698 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5699 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5700 * Makefile.in: Regenerate.
5702 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5705 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5707 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5708 and section name for bfd_reloc_notsupported error message.
5709 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5710 bfd_reloc_notsupported.
5711 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5713 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5714 undefined weak symbols for all relocs.
5715 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5716 offsets are relative to one past the delay slot.
5717 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5718 branch destination. Put addend into stub name too.
5719 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5720 adjust by 8 when deciding whether a linker stub is needed. Put
5721 addend into stub name as for above.
5723 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5724 various args and vars.
5725 (elf32_hppa_bfd_final_link_relocate): Here too.
5726 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5727 inner block var to avoid shadowing.
5729 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5731 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5732 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5733 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5735 * libhppa.h: Change practically all unsigned ints to plain ints.
5736 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5739 From Ryan Bradetich <rbradetich@uswest.net>
5740 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5741 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5743 From David Huggins-Daines <dhd@linuxcare.com>
5744 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5745 to the new OP_* ones.
5747 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5748 error exit. Bail out earlier on plabel relocs that we aren't
5749 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5750 string, and then don't free our copy.
5751 (elf32_hppa_build_one_stub): Make insn unsigned int.
5753 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5754 available with BL, not BE and BLE.
5756 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5757 code for elf arg relocs.
5758 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5759 argument with elf_link_hash_entry h. Handle undefined weak
5760 symbols. Move $global$ lookup from here...
5761 (elf32_hppa_relocate_section): ...to here. Return correct error
5762 message for non-handled relocs.
5763 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5764 wrong test was -0x3ffff to +0x40000.
5766 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5767 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5768 Handle them as such.
5769 (elf_hppa_relocate_insn): Fix a typo.
5771 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5772 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5773 assemble_17, assemble_21): Delete.
5774 Supply defines for all 64 possible opcodes.
5775 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5776 formats. Handle COMICLR.
5777 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5780 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5781 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5782 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5784 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5785 the local syms - did this code get deleted accidentally? Ignore
5786 undefined and undefweak syms.
5788 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5789 block. Use it instead of elf64_hppa_hash_table (info).
5790 (elf_hppa_final_link_relocate): Use hppa_info instead of
5791 elf64_hppa_hash_table (info).
5793 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5794 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5795 (hppa_rebuild_insn): Mask immediate bits here instead.
5796 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5798 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5800 * section.c (struct sec): Add id field. Tidy comment formatting.
5801 (bfd_make_section_anyway): Set id.
5802 (STD_SECTION): Init id too.
5803 Change CONST to const throughout.
5804 * archures.c (bfd_arch_info): Tidy comment.
5805 (bfd_arch_list): Change a CONST to const.
5806 * libbfd-in.h: Tidy comments and replace CONST with const.
5807 * elf-bfd.h: Likewise.
5808 * libbfd.h: Regenerate.
5809 * bfd-in2.h: Regenerate.
5810 * libcoff.h: Regenerate.
5812 2000-07-07 DJ Delorie <dj@redhat.com>
5814 * archive.c (_bfd_write_archive_contents): Add an informative
5817 2000-07-06 Kazu Hirata <kazu@hxi.com>
5819 * srec.c: Fix formatting.
5821 2000-06-05 DJ Delorie <dj@redhat.com>
5825 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5827 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5828 value of PC-relative offsets.
5830 2000-07-03 Jim Wilson <wilson@cygnus.com>
5832 * elf64-alpha.c (alpha_elf_size_info): New.
5833 (elf_backend_size_info): Define to alpha_elf_size_info.
5834 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5836 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5838 * elf32-mips.c: Include elf32-target.h again for the traditional
5841 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5843 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5844 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5845 (avr_info_to_howto_rela): Likewise.
5846 (elf32_avr_gc_mark_hook): Likewise.
5847 (elf32_avr_gc_sweep_hook): Likewise.
5848 (elf32_avr_relocate_section): Likewise.
5850 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5852 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5853 an external symbol for a non-shared, non-relocatable link.
5855 2000-07-03 Nick Clifton <nickc@redhat.com>
5857 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5858 is an external symbol.
5859 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5862 2000-07-03 Kazu Hirata <kazu@hxi.com>
5864 * reloc16.c: Fix formatting.
5866 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5868 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5869 to add a new target for traditional mips i.e
5870 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5871 * configure.in: Likewise.
5872 * configure: Rebuild.
5873 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5875 (bfd_elf32_tradlittlemips_vec): Likewise.
5876 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5877 to see that elfNN_bed does not get redefined even if the target file
5878 is included twice for a chip. See elf32-mips.c.
5880 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5882 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5883 (CLEANFILES): Add DEPA.
5884 * Makefile.in: Regenerate.
5886 2000-06-30 DJ Delorie <dj@cygnus.com>
5888 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5889 can't assume the PE header is at 0x80.
5891 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5893 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5895 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5897 * go32stub.h: Update stub.
5899 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5901 * archures.c (bfd_mach_avr5): Define.
5902 * bfd-in2.h (bfd_mach_avr5): Define.
5903 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5904 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5905 (compatible): Update comment. Add missing test.
5906 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5907 for avr2 and avr4. Simplify 8K wrap code.
5908 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5909 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5911 2000-06-26 Kazu Hirata <kazu@hxi.com>
5913 * coff-h8300.c: Fix formatting.
5914 * cpu-h8300.c: Likewise.
5916 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5918 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5919 for local symbols whose names are unknown.
5921 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5923 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5925 * Makefile.in: Regenerate.
5926 * doc/Makefile.in: Regenerate.
5928 2000-06-20 H.J. Lu <hjl@gnu.org>
5930 * Makefile.am: Rebuild dependency.
5931 * Makefile.in: Rebuild.
5933 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5935 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5936 (elf_backend_copy_indirect_symbol): Map to the new function.
5938 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5940 * archive.c (normalize): Correct pointer comparison when checking
5942 (bfd_bsd_truncate_arname): Likewise.
5943 (bfd_gnu_truncate_arname): Likewise.
5945 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5947 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5948 sections elf_{text,data}_{section,symbol}.
5949 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5950 (_bfd_mips_elf_hide_symbol): New function.
5951 (elf_backend_hide_symbol): Map to the new function.
5952 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5953 definitions of mips_elf_{text,data}_{section,symbol}.
5954 (mips_elf_local_relocation_p): Try to find the direct symbol
5955 based on new check_forced argument.
5956 (mips_elf_calculate_relocation): Use new version of
5957 mips_elf_local_relocation_p.
5958 (mips_elf_relocate_section): Likewise.
5959 (_bfd_mips_elf_relocate_section): Likewise.
5960 (mips_elf_sort_hash_table): Only assert that have enough GOT
5962 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5963 entry if the relocation based on the new external argument.
5964 (mips_elf_create_dynamic_relocation): Assert that we have a
5965 section contents allocated where we can swap out the dynamic
5967 (mips_elf_calculate_relocation): Find the real hash-table entry
5968 correctly by using h->root.root.type. Only create a dynamic
5969 relocation entry if the symbol is defined in a shared library.
5970 Create an external GOT entry for the GOT16 relocation if the
5971 symbol was forced local.
5972 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
5973 dynamic index if the symbol was forced local.
5975 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5977 * elf32-mips.c: Fix typos in comments.
5979 2000-06-19 Mark Kettenis <kettenis@gnu.org>
5981 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
5984 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
5986 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
5987 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
5988 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
5989 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
5990 (bfd_elf32_m68hc11_vec): Likewise.
5991 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
5992 Supports 68hc11 & 68hc12 at the same time.
5993 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
5995 (bfd_elf32_m68hc11_vec): Likewise.
5996 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
5997 * archures.c (bfd_m68hc12_arch): Define and register in global list
5998 (bfd_m68hc11_arch): Likewise.
5999 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6000 BFD_RELOC_M68HC11_3B): Define.
6001 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6002 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6004 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6006 * elf_bfd.h (struct elf_backend_data): Add info argument to
6007 elf_backend_hide_symbol.
6008 (_bfd_elf_link_hash_hide_symbol): Likewise.
6009 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6010 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6011 * elflink.h (elf_link_add_object_symbols): Likewise.
6012 (elf_link_assign_sym_version): Likewise.
6014 2000-06-18 H.J. Lu <hjl@gnu.org>
6016 * coff-i386.c (coff_i386_reloc): Don't return in case of
6017 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6018 Compensate PE relocations when linking with non-PE object
6019 files to generate a non-PE executable.
6021 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6023 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6024 GOT entries if we're doing a static link or -Bsymbolic link.
6026 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6028 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6029 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6031 (elf_link_output_relocs): Likewise.
6032 (elf_reloc_link_order): Likewise.
6034 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6036 * archures.c (enum bfd_architecture): #define constants for
6037 PowerPc and RS6000 machine numbers.
6038 * bfd-in2.h: Regenerate.
6039 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6040 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6041 and RS6000 machine numbers using #defined constants from
6043 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6044 machine numbers using #defined constants from archures.c. Add
6045 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6046 64-bit words in 620 entry.
6047 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6049 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6051 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6053 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6054 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6055 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6057 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6059 * bfd-in.h (bfd_family_coff): Define.
6060 * bfd-in2.h: Regenerate.
6061 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6062 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6063 instead of bfd_target_coff_flavour.
6064 * cofflink.c (_bfd_coff_final_link): Likewise.
6065 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6066 exclude XCOFF files.
6067 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6069 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6070 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6071 * xcofflink.c (XCOFF_XVECP): Delete.
6072 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6073 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6074 bfd_xcoff_record_link_assignment,
6075 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6076 check for bfd_target_xcoff_flavour.
6078 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6080 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6082 (read_hdr): New function.
6083 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6084 of trying to extract individual registers. Set abfd->arch_info
6085 to match the architecture that created the core file.
6086 (rs6000coff_get_section_contents): Delete.
6087 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6089 2000-06-14 H.J. Lu <hjl@gnu.org>
6091 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6094 2000-06-13 H.J. Lu <hjl@gnu.org>
6096 * configure: Regenerate.
6098 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6100 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6103 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6105 * configure.in (VERSION): Update to show this is the CVS mainline.
6107 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6109 * elf32-d10v.c: Include elf/d10v.h
6110 (enum reloc_type): Delete.
6111 * elf32-d30v.c: Include elf/d30v.h
6112 (enum reloc_type): Delete.
6114 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6115 * Makefile.in: Regenerate.
6117 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6118 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6119 move HOWTOs into elf_howto_table.
6120 (R_386_standard, R_386_ext_offset): Define.
6121 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6122 (elf_i386_reloc_type_lookup): Modify calculation of index into
6123 elf_howto_table since we've removed the padding.
6124 (elf_i386_info_to_howto_rel): Likewise.
6125 (elf_i386_relocate_section): Likewise.
6127 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6129 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6131 2000-06-05 H.J. Lu <hjl@gnu.org>
6133 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6134 an error when seeing an undefined symbol with hidden/internal
6135 attribute. It is handled in *_relocate_section ().
6137 2000-06-05 H.J. Lu <hjl@gnu.org>
6139 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6140 indirect symbol for the ELF_LINK_NON_ELF bit.
6141 (elf_link_output_extsym): Don't output the indirect symbol even
6142 if the ELF_LINK_NON_ELF bit is set.
6144 2000-06-01 J.T. Conklin <jtc@redback.com>
6146 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6147 (i[3456]86-*-netbsdaout*): New target.
6148 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6149 (i[3456]86-*-openbsd*): Likewise.
6151 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6153 * trad-core.c: From hpux-core.c, include <dirent.h> or
6154 <sys/ndir.h> when possible.
6156 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6158 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6159 definitions. We must not assume they are sorted in the file
6160 according to their index numbers.
6162 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6164 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6165 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6166 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6168 2000-05-30 Nick Clifton <nickc@cygnus.com>
6170 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6171 80960CA, 80960MC as valid machine names.
6173 2000-05-30 H.J. Lu <hjl@gnu.org>
6175 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6176 visibility bits if the symbol is undefined. Correctly handle
6177 weak undefined symbols with hidden and internal attributes.
6179 * elflink.h (elf_link_add_object_symbols): Always turn the
6180 symbol into local if it has the hidden or internal attribute.
6182 2000-05-29 Philip Blundell <philb@gnu.org>
6184 * ppcboot.c: Add packed attribute if compiling with GCC.
6186 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6188 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6190 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6192 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6193 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6194 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6197 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6199 * Makefile.am: Update dependencies with "make dep-am"
6200 * Makefile.in: Regenerate.
6202 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6203 bindtextdomain): Replace defines with those from intl/libgettext.h
6204 to quieten gcc warnings.
6206 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6208 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6210 * archive.c (normalize, bfd_bsd_truncate_arname,
6211 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6212 file names with backslashes.
6214 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6217 * sysdep.h: Include filenames.h.
6219 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6221 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6223 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6225 * elf64-sparc.c (sparc64_elf_relax_section): New.
6226 (sparc64_elf_relocate_section): Optimize tail call into branch always
6228 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6229 (elf32_sparc_relax_section): New.
6231 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6233 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6234 Remove unusued variables.
6235 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6236 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6237 previous fix, so that shared libs really don't influence targets
6238 extension mask and memory model.
6240 2000-05-23 H.J. Lu <hjl@gnu.org>
6242 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6243 h->root.other not h->other.
6244 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6246 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6248 2000-05-23 H.J. Lu <hjl@gnu.org>
6250 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6251 undefined symbol with the non-default visibility attributes.
6252 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6253 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6254 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6255 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6256 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6257 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6258 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6259 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6260 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6261 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6262 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6264 2000-05-22 Richard Henderson <rth@cygnus.com>
6266 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6267 PCREL22, PCREL64I. Zero size of special relocs.
6268 (elf64_ia64_reloc_type_lookup): Likewise.
6269 (USE_BRL, oor_brl, oor_ip): New.
6270 (elf64_ia64_relax_section): New.
6271 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6272 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6273 (elf64_ia64_relocate_section): Likewise.
6274 (bfd_elf64_bfd_relax_section): New.
6275 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6276 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6277 * bfd-in2.h, libbfd.h: Regenerate.
6279 2000-05-22 Nick Clifton <nickc@cygnus.com>
6281 * configure.in : Add peigen.lo to MIPS PE targets.
6282 * configure: Regenerate.
6284 2000-05-22 Momchil Velikov <velco@fadata.bg>
6286 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6287 only if it is known for both input and output bfds. Separate
6288 error message strings as in some languages, it may be necessary
6289 to change more than one place in the string to change between
6292 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6293 endianess checks, call _bfd_generic_verify_endian_match() instead.
6295 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6297 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6299 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6300 endianess before checking bfd flavours.
6302 2000-05-22 H.J. Lu <hjl@gnu.org>
6304 * elflink.h (elf_link_output_extsym): Clear the visibility
6305 field for symbols not defined locally.
6307 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6309 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6310 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6311 (hppa_rebuild_insn): Mask immediate bits here instead.
6312 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6314 2000-05-18 Momchil Velikov <velco@fadata.bg>
6316 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6317 relocs for an executable, ensure that they are virtual addresses.
6319 2000-05-18 Jeffrey A Law (law@cygnus.com)
6321 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6323 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6324 Rick Gorton <gorton@scrugs.lkg.dec.com>
6326 * elflink.h: Add emitrelocations support: when enabled, relocation
6327 information and relocation sections are put into final output
6328 executables. If the emitrelocations flag is set, do the following:
6329 (elf_bfd_final_link): Emit relocation sections.
6330 (elf_link_input_bfd): Compute relocation section contents.
6331 (elf_gc_sections): Don't clean relocation sections.
6333 2000-05-16 Catherine Moore <clm@cygnus.com>
6335 * som.c (som_decode_symclass): Recognize weak symbols.
6337 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6339 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6340 read idata section only from dataoff.
6341 (pe_print_edata): Correctly check for valid eat_member.
6343 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6345 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6347 2000-05-14 Philip Blundell <philb@gnu.org>
6349 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6351 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6353 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6355 * peigen.c (pe_print_idata): Look for .idata section and print
6356 info even if data directory has zero entries. Read idata section
6357 starting from dataoff, and adjust all data offsets to suit. Cast
6358 all bfd_vma vars to unsigned long before passing to fprintf.
6359 * peigen.c (pe_print_edata): Similarly, look for .edata section
6360 and print info even if data directory has zero entries. Cast
6361 all bfd_vma vars to unsigned long before passing to fprintf.
6363 From Szabolcs Szakacsits <szaka@F-Secure.com>
6364 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6365 directory size which may be bogus.
6366 * peigen.c (pe_print_edata): Similarly.
6368 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6370 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6372 (copy_private_bfd_data): Allow for space possibly taken up by elf
6373 headers when calculating segment physical address from lma.
6375 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6377 * versados.c (versados_scan): Init stringlen and pass_2_done.
6379 * trad-core.c (trad_unix_core_file_p): Return
6380 bfd_error_wrong_format rather than bfd_error_file_truncated.
6382 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6383 add_data_entry. DataDirectory virtual address is relative.
6384 (pe_print_idata): Account for relative DataDirectory virtual
6385 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6386 (pe_print_edata): Similarly.
6388 From Szabolcs Szakacsits <szaka@F-Secure.com>
6389 * peigen.c (dir_names): Add Delay Import Directory.
6390 (pe_print_idata): Always search for bfd section containing
6391 idata address rather than looking up section name. Print this
6392 section name rather than .idata.
6393 (pe_print_edata): Similarly. Also print some fields as %08lx.
6394 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6397 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6399 * xcoff.h: Rename to xcoff-target.h
6400 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6401 * coff-rs6000.c: Ditto.
6402 * coff64-rs6000.c: Ditto.
6403 * coff-pmac.c: Ditto.
6404 * Makefile.in: Regenerate.
6406 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6408 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6409 Change U802TOC64MAGIC to U803XTOCMAGIC.
6411 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6413 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6414 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6415 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6417 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6419 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6421 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6423 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6424 hidden and internal symbols.
6425 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6427 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6428 assign a PLT or GOT entry to symbols with hidden and
6429 internal visibility.
6431 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6433 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6435 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6437 2000-05-02 H.J. Lu <hjl@gnu.org>
6439 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6442 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6444 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6445 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6447 * Makefile.in: Regenerate.
6449 2000-05-01 Jim Wilson <wilson@cygnus.com>
6451 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6452 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6453 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6454 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6455 * Makefile.in: Rebuild.
6457 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6459 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6460 doesn't work very well.
6462 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6463 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6464 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6465 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6466 (elf_hppa_info_to_howto): Likewise.
6467 (elf_hppa_info_to_howto_rel): Likewise.
6468 (elf_hppa_reloc_type_lookup): Likewise.
6469 (elf_hppa_is_local_label_name): Likewise.
6470 (elf_hppa_fake_sections): Likewise.
6471 (elf_hppa_final_write_processing): Likewise.
6472 (elf_hppa_howto_table): Fully initialise all entries.
6473 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6474 (elf_hppa_info_to_howto): Likewise.
6475 (elf_hppa_info_to_howto_rel): Likewise.
6476 (elf_hppa_reloc_type_lookup): Likewise.
6477 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6478 elf_hppa_unmark_useless_dynamic_symbols,
6479 elf_hppa_remark_useless_dynamic_symbols,
6480 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6481 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6482 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6483 elf32-hppa.c mess is cleaned up.
6484 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6485 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6486 r_field then call hppa_field_adjust inline func with variable
6487 r_field arg, instead call hppa_field_adjust with fixed arg.
6488 In case R_PARISC_PCREL22F, don't set r_field.
6489 (elf_hppa_relocate_insn): Change args and return type to unsigned
6490 int. Call re_assemble_* funcs to do the work.
6492 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6495 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6497 (sign_extend): Mask first before sign extending.
6498 (low_sign_extend): Rewrite without condition expression.
6499 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6500 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6501 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6502 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6503 result as function return value rather than through pointer arg.
6504 Accept unsigned int args, and return unsigned int.
6505 (re_assemble_3): New. Combines function of dis_assemble_3 with
6506 re-assembly of opcode and immediate.
6507 (re_assemble_12): Likewise.
6508 (re_assemble_16): Likewise.
6509 (re_assemble_17): Likewise.
6510 (re_assemble_21): Likewise.
6511 (re_assemble_22): Likewise.
6512 (hppa_field_adjust): Rewrite and document, paying attention to
6513 size of types and signed/unsigned issues.
6514 (get_opcode): Shift before masking.
6515 (FDLW): Rename to FLDW.
6516 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6517 (hppa_rebuild_insn): Change args and return value to unsigned
6518 int. Make use of re_assemble_*. Correct case 11.
6520 * dep-in.sed: Handle ../opcodes/.
6521 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6522 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6523 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6524 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6525 elfarm-nabi.lo dependencies outside of auto-dependency area.
6526 Regenerate dependencies.
6527 * Makefile.in: Regenerate.
6529 * configure.in (TRAD_HEADER): Test non-null before
6531 * configure: Regenerate.
6533 * reloc.c: Fix mis-spelling in comment.
6535 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6537 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6538 * vms.c (vms_openr_next_archived_file): Return NULL.
6540 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6542 * coffcode.h Copy changes mistakenly done to libcoff.h in
6545 2000-04-29 Andreas Jaeger <aj@suse.de>
6547 * libbfd-in.h: Correctly check GCC version.
6548 * bfd-in.h: Likewise.
6549 * libhppa.h: Likewise.
6550 * libbfd.h: Regenerate.
6551 * bfd-in2.h: Regenerate.
6553 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6555 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6556 coffdu-rs6000.{lo,c}.
6557 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6559 * Makefile.in: Regenerate.
6560 * xcoff.h: New file.
6561 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6562 * coff-rs6000.c: Move all declarations and defines that are
6563 common to the xcoff backends into xcoff.h
6564 * coff64-rs6000.c: Ditto,
6566 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6568 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6569 _bfd_coff_force_symnames in strings and
6570 _bfd_coff_debug_string_prefix_length to their default values.
6571 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6573 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6575 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6576 _bfd_coff_force_symnames in strings and
6577 _bfd_coff_debug_string_prefix_length to their default values.
6579 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6581 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6582 Check local_got_refcounts before dereferencing.
6584 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6585 before deciding we don't need R_PPC_PLT32 relocation.
6586 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6589 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6591 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6593 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6594 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6595 (elf_i386_relocate_section): Allow for .plt to go missing.
6596 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6597 can use a relative reloc for got as elf_i386_relocate_section.
6598 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6600 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6602 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6604 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6606 * Makefile.am (coff64-rs6000.lo): New rule.
6607 * Makefile.in: Regenerate.
6608 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6609 xcoff_is_local_label_name, xcoff_rtype2howto,
6610 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6611 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6612 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6613 (NO_COFF_SYMBOLS): Define.
6614 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6615 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6617 (MINUS_ONE): New macro.
6618 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6620 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6621 coff_SWAP_aux_out): Map to the new functions.
6622 * coff64-rs6000.c: New file.
6623 * libcoff.h (bfd_coff_backend_data): Add new fields
6624 _bfd_coff_force_symnames_in_strings and
6625 _bfd_coff_debug_string_prefix_length.
6626 (bfd_coff_force_symnames_in_strings,
6627 bfd_coff_debug_string_prefix_length): New macros for above fields.
6628 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6629 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6630 of using coff_swap_sym_in directly.
6631 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6632 (coff_set_flags) Set magic for XCOFF64.
6633 (coff_compute_section_file_positions): Add symbol name length to
6634 string section length if bfd_coff_debug_string_prefix_length is
6636 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6637 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6638 using coff_swap_lineno_in directly.
6639 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6640 and _bfd_coff_debug_string_prefix_length fields.
6641 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6642 symbol names into strings table when
6643 bfd_coff_force_symnames_in_strings is true.
6644 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6645 SET_RELOC_VADDR): New macros.
6646 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6647 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6649 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6650 changes within RS6000COFF_C specific code.
6651 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6652 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6653 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6654 Extend existing hack on target name.
6655 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6657 * coff-tic54x.c (ticof): Keep up to date with new fields
6658 in bfd_coff_backend_data.
6659 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6660 targ_selvecs to include rs6000coff64_vec for rs6000.
6661 * configure.in: Add rs6000coff64_vec case.
6662 * cpu-powerpc.c: New bfd_arch_info_type.
6664 2000-04-24 Jeffrey A Law (law@cygnus.com)
6666 * config.bfd: Only disable elf32-hppa vectors, not all of the
6667 BSD and OSF configuration support. Provide (disabled) clauses
6669 * configure.in: Add clause for PA64 support.
6670 * configure: Rebuilt.
6672 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6673 (bfd_elf64_hppa_vec): Declare.
6675 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6676 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6677 (elf64-hppa.lo): Add dependencies.
6678 * Makefile.in: Rebuilt.
6680 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6682 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6684 * libhppa.h (dis_assemble_16): New function.
6685 (pa_arch): Added pa20w element.
6687 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6689 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6690 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6691 bfd_elf64_slurp_reloc_table.
6693 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6694 definitions to get external names.
6695 (elf_write_relocs): Renamed from write_relocs and make global.
6696 (elf_slurp_reloc_table): Make global.
6697 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6699 * archive.c (hpux_uid_gid_encode): New function.
6700 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6701 defined and the ID is greater than 99999.
6702 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6703 special uid/gid fields into 32 bit values.
6705 2000-04-21 Matthew Green <mrg@cygnus.com>
6707 * config.bfd: Add NetBSD/sparc64 support.
6709 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6710 David Mosberger <davidm@hpl.hp.com>
6711 Timothy Wall <twall@cygnus.com>
6712 Jim Wilson <wilson@cygnus.com>
6714 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6715 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6716 (BFD64_BACKENDS): Add elf64-ia64.lo.
6717 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6718 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6719 * Makefile.in: Rebuild.
6720 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6721 (bfd_ia64_arch): Declare.
6722 (bfd_archures_list): Add bfd_ia64_arch.
6723 * bfd-in2.h: Rebuild.
6724 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6725 * configure: Rebuild.
6726 * configure.host: (ia64-*-linux*): New host.
6727 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6728 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6729 * elf.c (prep_headers): Add bfd_arch_ia64.
6730 * libbfd.h: Rebuild.
6731 * reloc.c: Add IA-64 relocations.
6732 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6734 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6735 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6737 2000-04-21 Richard Henderson <rth@cygnus.com>
6739 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6740 contents when performing a partial link.
6741 (bfd_elf_d30v_reloc_21): Likewise.
6743 2000-04-20 H.J. Lu <hjl@gnu.org>
6745 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6746 patch to symbols defined by a shared object.
6747 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6749 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6752 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6753 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6755 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6757 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6758 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6759 (coff-ia64.lo): Add dependency.
6760 * Makefile.in: Regenerate.
6761 * coff-ia64.c: New file.
6762 * efi-app-ia32.c: Ditto.
6763 * efi-app-ia64.c: Ditto.
6764 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6765 (coff_set_flags): Ditto.
6766 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6767 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6768 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6769 * configure: Regenerate.
6770 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6771 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6772 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6773 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6774 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6775 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6776 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6777 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6778 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6779 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6780 (GET_PDATA_ENTRY): Ditto.
6781 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6782 data_start. Use above macros to read fields that are 64 bit wide for
6783 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6784 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6785 FileAlignment and SectionAlignment to minimum alignment if they
6787 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6788 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6789 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6790 Use above macros to write fields that are 64 bit wide for
6792 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6793 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6794 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6795 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6796 begin address, end address, and unwind info address only. Use
6797 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6799 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6800 HIGH3ADJ relocation names.
6801 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6802 * targets.c: Declare bfd_efi_app_ia32_vec and
6803 bfd_efi_app_ia64_vec.
6804 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6805 bfd_efi_app_ia64_vec.
6807 2000-04-17 Timothy Wall <twall@cygnus.com>
6809 * bfd-in2.h: Add prototypes for tic54x load page access.
6810 * bfd-in.h: Regenerate.
6811 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6812 in customized _set_arch_mach function.
6813 * coffcode.h (coff_set_alignment_hook): Set section load page if
6814 the appropriate macro is defined.
6815 (write_object_contents): Read section load page.
6817 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6819 * elf32-hppa.h: Update copyright date.
6821 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6822 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6824 * elf32-d30v.c (MAX32): Don't use LL suffix.
6825 (MIN32): Define in terms of MAX32.
6826 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6828 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6831 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6833 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6835 * dep-in.sed: Match space before file name, not after.
6836 * Makefile.am: Regenerate dependencies.
6837 * Makefile.in: Regenerate.
6839 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6840 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6841 extend without an if statement.
6843 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6845 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6847 * elf32-mips.c (gprel16_with_gp): Likewise.
6848 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6849 here using -0x40000, not (int)0xfffc0000.
6850 (elf32_hppa_size_of_stub): Likewise.
6852 2000-04-11 Timothy Wall <twall@cygnus.com>
6854 * coff-tic54x.c: Now builds with all targets.
6855 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6856 * Makefile.in: Regenerate.
6857 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6858 unitialized variable.
6860 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6862 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6863 --enable-build-warnings option.
6864 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6865 * Makefile.in, configure: Re-generate.
6867 2000-04-07 Nick Clifton <nickc@cygnus.com>
6869 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6870 BFD_RELOC_THUMB_PCREL_BLX.
6872 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6873 R_ARM_XPC25 and R_ARM_THM_PC22.
6875 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6876 R_ARM_XPC25 and R_ARM_THM_XPC22.
6877 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6878 R_ARM_[XPC25|THM_XPC22].
6880 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6881 elf/arm-oabi.h to elf/arm.h
6883 * Makefile.am: Fix dependency for elfarm-oabi.c
6884 * Makefile.in: Regenerate.
6886 * bfd-in2.h: Regenerate.
6887 * libbfd.h: Regenerate.
6889 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6891 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6892 and restore it on failure. Release newly allocated tdata on
6895 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6897 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6898 (decode_line_info): Set it. Report error if unit->line_offset is
6899 equal to or larger than it.
6901 2000-04-07 Timothy Wall <twall@cygnus.com>
6903 * targets.c: Added vecs for tic54x.
6904 * reloc.c: Added relocs for tic54x.
6905 * libbfd.h: Regenerated.
6906 * configure: Add TI COFF vecs for tic54x.
6907 * configure.in: Ditto.
6908 * config.bfd (targ_cpu): Recognize new tic54x target.
6909 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6910 * bfd-in2.h: Add tic54x target and relocations.
6911 * Makefile.am, Makefile.in: Add tic54x target.
6912 * archures.c (bfd_archures_list): Add tic54x target.
6913 * coff-tic54x.c: New.
6914 * cpu-tic54x.c: New.
6916 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6918 * elfcore.h (elf_core_file_p): call backend_object_p which
6919 thereby gets an opportunity to update the arch/machine type.
6921 2000-04-06 Timothy Wall <twall@cygnus.com>
6923 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6924 class. Handle SEC_CLINK and SEC_BLOCK flags.
6925 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6926 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6928 2000-04-06 Nick Clifton <nickc@cygnus.com>
6930 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6931 EF_INTERWORK if this is an unknown EABI.
6932 (elf32_arm_merge_private_bfd_data): Check EABI version
6933 numbers. Only check EF_xxx flags if the EABI version number
6935 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6936 if the EABI version number is unknown.
6937 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6938 if the EABI version number is unknown.
6940 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6942 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6943 BFD_RELOC_SH_LOOP_END.
6944 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6945 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6946 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6947 (sh_elf_reloc_loop): New function.
6948 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6950 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6951 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6952 * bfd-in2.h, libbfd.h: Regenerate.
6954 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6956 * po/bfd.pot: Regenerate.
6958 * Makefile.am: Remove extraneous mkdep comment.
6959 (MKDEP): Use gcc -MM rather than mkdep.
6960 (DEP): Quote when passing vars to sub-make. Add warning
6962 (DEP1): Rewrite for "gcc -MM".
6963 (CLEANFILES): Add DEP2.
6964 Update dependencies.
6965 * Makefile.in: Regenerate.
6967 2000-04-03 Kevin Buettner <kevinb@redhat.com>
6969 * configure.in: Added corefile support for AIX 4.3. In particular,
6970 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
6971 compiling rs6000-core.c.
6972 * configure: Regenerated.
6974 2000-04-03 H.J. Lu <hjl@gnu.org>
6976 * cache.c (bfd_open_file): Unlink the output file only if
6977 it has non-zero size.
6979 2000-04-01 Ken Block USG <block@zk3.dec.com>
6981 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
6982 relative relocations for non-loaded sections in shared objects.
6983 (elf64_alpha_check_relocs): Similarly.
6985 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
6987 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
6988 BFD_RELOC_16 to switch for extended relocs.
6989 (MY_swap_ext_reloc_in): New.
6990 (MY_swap_ext_reloc_out): New.
6991 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
6992 than NAME(aout,swap_ext_reloc_in) for extended relocs.
6993 (NAME(aout,squirt_out_relocs)): Similarly use
6994 MY_swap_ext_reloc_out.
6995 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
6997 2000-04-03 Kazu Hirata <kazu@hxi.com>
6999 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7000 the R_PCRWORD_B case.
7002 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7004 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7008 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7010 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7011 HOWTO references to bfd_elf_generic_reloc, that have
7012 partial_inplace == true, now use the new function. The function
7013 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7014 extends its fixes to the R_M32R_{16,24,32} relocs.
7015 The new logic in m32r_elf_lo16_reloc() has been removed, and
7016 it instead calls the new routine to obtain that functionality.
7018 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7020 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7021 elf32_avr_check_relocs, avr_final_link_relocate,
7022 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7023 elf32_avr_object_p): Add prototypes.
7024 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7025 (bfd_elf_avr_final_write_processing): Make static.
7027 2000-03-27 Denis Chertykov <denisc@overta.ru>
7029 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7030 * archures.c (bfd_architecture): Add AVR architecture.
7031 (bfd_archures_list): Add reference to AVR architecture info.
7032 * elf.c (prep_headers): Handle bfd_arch_avr.
7033 * reloc.c: Add various AVR relocation enums.
7034 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7036 * Makefile.am: Add support for AVR elf.
7037 * configure.in: Likewise.
7038 * config.bfd: Likewise.
7039 * Makefile.in: Regenerate.
7040 * configure: This too.
7041 * bfd-in2.h: And this.
7042 * libbfd.h: And this.
7044 2000-03-24 H.J. Lu <hjl@gnu.org>
7046 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7047 (elf64_alpha_find_reloc_at_ofs): Likewise.
7049 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7051 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7052 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7053 allowable range used to be -2**(n-1) to 2**n-1.
7054 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7055 "boolean overflow" with "bfd_reloc_status_type flag".
7057 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7059 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7061 2000-03-14 Kazu Hirata <kazu@hxi.com>
7063 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7064 of shrinks properly, including the last reloc.
7066 2000-03-13 Kazu Hirata <kazu@hxi.com>
7068 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7071 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7073 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7074 a format mismatch rather than an "error" from bfd_read such as
7075 bfd_error_file_truncated.
7077 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7079 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7080 sign-extension and big-endian compensation for
7081 R_MIPS_64 even in ld -r.
7083 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7085 * elf32-mips.c (mips_elf_next_relocation): Rename from
7086 mips_elf_next_lo16_relocation, and generalize to look
7087 for any relocation type.
7088 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7089 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7090 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7091 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7092 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7093 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7094 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7095 (mips_rtype_to_howto): Likewise.
7096 (mips_elf_calculate_relocation): Handle new relocs.
7097 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7098 are paired. The addend for R_MIPS_GNU_REL16_S2
7099 is shifted right two bits.
7101 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7103 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7104 comment, and ensure it doesn't happen again.
7105 (bfd_install_relocation): Same here.
7106 (_bfd_relocate_contents): Don't bother assigning unused signmask
7107 shift result. Fix typos in comments.
7108 Remove trailing whitespace throughout file.
7110 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7112 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7113 * bfd-in2.h: Rebuild.
7115 2000-03-06 Nick Clifton <nickc@cygnus.com>
7117 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7119 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7120 (SIZEOF_ILF_STRINGS): Redefine.
7121 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7122 relative reloc, as opposed to a section relative reloc.
7123 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7125 Add length of symbol's prefix to string pointer.
7126 Store a pointer to the symbol in the symbol pointer table.
7127 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7128 Initialise the symbol pointer table.
7129 Store the hint in the Hint/Name table.
7130 Make the jump reloc be symbol realtive, not section relative.
7131 Create an import symbol for imported code.
7133 2000-03-06 Catherine Moore <clm@cygnus.com>
7135 * elf.c (swap_out_syms): Check for null type_ptr.
7137 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7139 * aout-target.h (MY(write_object_contents)): Remove unused
7140 and unusable "#if CHOOSE_RELOC_SIZE".
7141 * pc532-mach.c (MY(write_object_contents)): Ditto.
7142 * netbsd.h (MY(write_object_contents)): Ditto.
7143 * hp300hpux.c (MY(write_object_contents)): Ditto.
7144 * freebsd.h (MY(write_object_contents)): Ditto.
7145 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7147 2000-02-29 H.J. Lu <hjl@gnu.org>
7149 * peicode.h (jtab): Make it static.
7151 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7152 defined and COFF_IMAGE_WITH_PE is not defined.
7153 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7154 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7156 2000-03-01 Nick Clifton <nickc@cygnus.com>
7158 * coff-arm.c (bfd_arm_process_before_allocation): Make
7159 'symndx' signed to prevent compile time warning.
7161 * coff-mcore.c: Remove unused prototype for pe_object_p.
7163 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7164 functions that are not used when COFF_IMAGE_WITH_PE is
7166 (struct sh_opcode): Change type of 'flags' field to unsigned
7167 long so that it can hold the USESAS flag.
7169 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7171 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7174 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7176 Remove unusued variables and code.
7177 (elf_backend_add_symbol_hook): Fix prototype.
7179 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7182 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7185 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7187 Remove unusued variables and code.
7188 (elf_backend_add_symbol_hook): Fix prototype.
7190 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7192 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7193 to unused function parameter.
7195 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7197 Use EMPTY_HOWTO to initialise empty howto slots.
7198 Remove unused variables.
7200 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7202 2000-03-01 H.J. Lu <hjl@gnu.org>
7204 * aoutx.h (aout_link_input_section_std): Pass "true" to
7205 the undefined_symbol callback.
7206 (aout_link_input_section_ext): Likewise.
7207 * bout.c (get_value): Likewise.
7208 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7209 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7211 (alpha_relocate_section): Likewise.
7212 * coff-arm.c (coff_arm_relocate_section): Likewise.
7213 * coff-i960.c (coff_i960_relocate_section): Likewise.
7214 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7215 * coff-mips.c (mips_relocate_section): Likewise.
7216 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7217 * coff-sh.c (sh_relocate_section): Likewise.
7218 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7219 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7220 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7221 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7222 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7223 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7224 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7225 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7226 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7227 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7228 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7229 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7230 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7231 * elflink.h (elf_link_output_extsym): Likewise.
7232 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7233 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7234 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7236 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7237 undefined_symbol callback when building shared library with
7238 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7240 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7241 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7242 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7243 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7244 (elf32_mips_get_relocated_section_content): Likewise.
7245 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7246 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7247 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7248 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7250 2000-02-28 Nick Clifton <nickc@cygnus.com>
7252 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7253 * Makefile.in: Regenerate.
7255 * configure.in: Add support for mips and sh pe vectors.
7256 * configure: regenerate.
7258 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7261 * targets.c: Add mips and sh pe vectors.
7263 * libpei.h (coff_final_link_postscript): Only define if not
7266 * coffcode.h: Add support for WinCE magic numbers.
7268 * peigen.c (pe_print_reloc): Update comment and rearrange
7269 appending of newline character.
7271 * peicode.h: Add support for Image Library Format.
7272 (pe_ILF_vars): Structure containing data used by ILF code.
7273 (pe_ILF_make_a_section): New function. Create a section based
7275 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7277 (pe_ILF_make_a_symbol): New function. Create a symbol based
7279 (pe_ILF_save_relocs): New function. Store the relocs created
7280 by pe_ILF_make_a_reloc in a section.
7281 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7283 (pe_ILF_object_p): New function. Return a bfd_target pointer
7285 (pe_bfd_object_p): If an ILF object is detected call
7286 pe_ILF_object_p on it.
7288 * coff-arm.c: Add support for WinCE relocs which are different
7289 from normal ARM COFF relocs.
7290 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7292 * coff-sh.c: Add support for sh-pe target.
7293 * pe-sh.c: New file. Support code for sh-pe target.
7294 * pei-sh.c: New file. Support code for sh-pe target.
7296 * pe-mips.c: New file. Support code for mips-pe target.
7297 * pei-mips.c: New file. Support code for mips-pe target.
7299 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7301 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7302 architecture if the object causing the bump is dynamic.
7303 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7304 and also don't it for memory ordering.
7305 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7307 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7309 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7310 calling bfd_get_section_size_before_reloc.
7311 (decode_line_info): Likewise.
7312 (_bfd_dwarf2_find_nearest_line): Likewise.
7314 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7316 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7317 name of the libtool directory.
7318 * Makefile.in: Rebuild.
7320 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7322 * som.c (SOM_HOWTO): Define.
7323 (som_hppa_howto_table): Use it.
7325 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7327 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7329 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7331 2000-02-24 Catherine Moore <clm@cygnus.com>
7333 * som.c (som_misc_symbol_info): Add field
7335 (som_bfd_derive_misc_symbol_info): Initialize
7337 (som_build_and_write_symbol_table): Keep track
7338 of secondary_def field.
7339 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7340 if secondary_def field is set.
7341 (som_bfd_ar_write_symbol_stuff): Initialize
7344 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7346 * dwarf2.c (read_address): Read 16-bits addresses.
7347 (parse_comp_unit): Accept addr_size == 2.
7349 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7351 * bfd-in.h: Update copyright date.
7353 2000-02-23 Linas Vepstas <linas@linas.org>
7355 * cpu-i370.c: New file.
7356 * elf32-i370.c: New file.
7357 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7358 (bfd_i370_arch): New.
7359 (bfd_archures_list): Add bfd_i370_arch.
7360 * elf.c (prep_headers): Add bfd_arch_i370.
7361 * Makefile.am: Add support for IBM 370 elf.
7362 * config.bfd: Likewise.
7363 * configure.in: Likewise.
7364 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7365 * reloc.c (bfd_reloc_code_type): Likewise.
7366 * targets.c: Likewise.
7368 * Makefile.in: Regenerate.
7369 * configure: Regenerate.
7370 * bfd-in2.h: Regenerate.
7372 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7374 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7375 invalid relocation types, and change them to R_386_NONE.
7377 2000-02-22 H.J. Lu <hjl@gnu.org>
7379 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7380 not defined, don't add a second ELF_VER_CHR.
7382 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7383 symbols converted to local symbols even when stripping all
7385 (elf_link_output_extsym): Process global symbols converted to
7386 local symbols even if they are being stripped.
7388 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7390 * archures.c (bfd_octets_per_byte): Return unsigned int.
7391 (bfd_arch_mach_octets_per_byte): Ditto.
7392 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7394 * section.c (bfd_get_section_size_before_reloc): Quell signed
7395 vs. unsigned comparison warning.
7396 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7397 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7398 change. What was I thinking?
7399 * bfd-in2.h: Regenerate.
7401 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7402 (elf_gc_sections): Same here.
7403 (elf_gc_common_finalize_got_offsets): And here.
7405 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7407 ELF HPPA doesn't work at present; remove it until it does.
7408 * config.bfd: Comment out setting targ_defvec to
7410 * Makefile.am: Rebuild dependencies.
7411 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7412 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7413 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7414 * Makefile.in: Rebuild.
7415 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7417 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7419 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7420 is no bfd_free(). Revert bfd_free part of previous change.
7422 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7424 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7426 (coff_compute_section_file_positions): Use bfd_free to pair
7428 (coff_write_object_contents): Likewise.
7430 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7431 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7433 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7435 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7436 (xcoff_ar_file_hdr_big): New structure.
7437 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7438 (xcoff_ar_hdr_big): New structure.
7439 (SIZEOF_AR_HDR_BIG): New macro.
7440 (xcoff_big_format_p): New macro.
7441 (xcoff_ardata_big): New macro.
7442 (arch_xhdr_big): New macro.
7443 (xcoff_slurp_armap): Handle large archives.
7444 (xcoff_archive_p): Detect large archives.
7445 (xcoff_read_ar_hdr): Handle large archives.
7446 (xcoff_openr_next_archived_file): Handle large archives.
7447 (xcoff_generic_stat_arch_elt): Handle large archives.
7448 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7449 (xcoff_write_armap_big): New function.
7450 (xcoff_write_armap): New function, dispatch to _old or _big.
7451 (xcoff_write_archive_contents_old): Rename from
7452 xcoff_write_archive_contents.
7453 (xcoff_write_archive_contents_big): New function.
7454 (xcoff_write_archive_contents): New function, dispatch to _old or
7457 2000-02-18 Richard Henderson <rth@cygnus.com>
7459 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7460 and hide_symbol members.
7461 (elf_link_hash_copy_indirect): Remove.
7462 (elf_link_hash_hide_symbol): Remove.
7463 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7464 and elf_backend_hide_symbol.
7465 (_bfd_elf_link_hash_copy_indirect): Declare.
7466 (_bfd_elf_link_hash_hide_symbol): Declare.
7467 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7468 (_bfd_elf_link_hash_hide_symbol): Likewise.
7469 (_bfd_elf_link_hash_table_init): Don't init killed members.
7470 * elflink.h (elf_link_add_object_symbols): Use the bed function
7471 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7472 (elf_link_assign_sym_version): Likewise.
7473 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7474 (elf_backend_hide_symbol): Likewise.
7475 (elfNN_bed): Update for new members.
7477 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7479 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7480 STACK_END_ADDR): Define for new core file format.
7481 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7482 for handling the vagaries of the various core file structures used
7483 by AIX over the years.
7484 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7485 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7486 core_dumpx structure.
7488 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7490 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7491 (bfd_mach_sh3_dsp): Likewise.
7492 (bfd_mach_sh4): Reinstate.
7493 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7494 * bfd-in2.h: Regenerate.
7495 * coff-sh.c (struct sh_opcode): flags is no longer short.
7496 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7497 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7498 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7499 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7500 (sh_opcodes): No longer const.
7501 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7502 (sh_insn_uses_reg): Check for USESAS and USESR8.
7503 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7504 (_bfd_sh_align_load_span): Return early for SH4.
7505 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7506 Take into account that field b of a parallel processing insn
7507 could be mistaken for a separate insn.
7508 * cpu-sh.c (arch_info_struct): New array elements for
7509 sh2, sh-dsp and sh3-dsp.
7510 Reinstate element for sh4.
7511 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7512 (SH4_NEXT): Reinstate.
7513 (SH3_NEXT, SH3E_NEXT): Adjust.
7514 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7515 * elf32-sh.c (sh_elf_set_private_flags): New function.
7516 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7517 (sh_elf_merge_private_data): New function.
7518 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7519 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7520 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7521 sh_elf_merge_private_data.
7523 2000-02-13 Richard Henderson <rth@cygnus.com>
7525 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7526 hide_symbol members.
7527 (elf_link_hash_copy_indirect): New.
7528 (elf_link_hash_hide_symbol): New.
7529 * elflink.h (elf_link_add_object_symbols): Break out copy from
7530 indirect new new symbol to elf.c.
7531 (elf_link_assign_sym_version): Break out privatization of
7532 non-exported symbol to elf.c.
7533 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7534 (_bfd_elf_link_hash_hide_symbol): New.
7535 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7537 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7539 * section.c (_bfd_strip_section_from_output): Add info parameter.
7540 If it passed as non-NULL, use it to check whether any input BFD
7541 has an input section which uses this output section. Change all
7543 * bfd-in2.h: Rebuild.
7545 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7546 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7548 * bfd-in2.h: Rebuild.
7550 2000-02-10 Timothy Wall <twall@cygnus.com>
7552 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7553 allow final modifications of swapped-in symbol.
7554 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7555 * coffcode.h (coff_write_relocs): Use macro
7556 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7557 symbol index should be set to -1.
7559 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7561 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7562 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7563 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7564 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7565 sh_insns_uses_or_sets_freg): New functions.
7566 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7567 * (sh_insns_conflict): Use new functions and new macros to
7568 detect conflicts when two instructions both set same integer registers,
7569 both set same fp register, and both set special register.
7571 2000-02-09 Timothy Wall <twall@cygnus.com>
7573 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7574 swapping in sections, so that the swapping routines have access to
7577 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7579 * coff-go32.c: Update comment. Update copyright.
7581 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7583 * syms.c (bfd_decode_symclass)
7584 Two new class characters were added - 'V' and 'v'. The
7585 meaning of 'W' is now restricted to just weak non-object
7586 symbols. This allows differentiation between, for example,
7587 weak functions vs weak objects. nm for example now dumps:
7589 'w' = weak unresolved
7590 'V' = weak global object
7591 'v' = weak unresolved object
7593 (bfd_is_undefined_symclass): New function. Return true if the
7594 given symbol class represents and undefined/unresolved symbol.
7596 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7599 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7601 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7602 STT_ARM_16BIT flag set, but it is not attached to a data object
7603 return STT_ARM_16BIT so that it will be treated as code by the
7606 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7608 * coff-i386.c (i3coff_object_p): Remove prototype.
7611 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7612 to name. Update copyright.
7614 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7615 assignment to avoid warning. Update copyright.
7617 2000-01-24 Robert Lipe (robertl@sco.com)
7619 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7620 instead of using GNU C extension.
7622 2000-01-21 Nick Clifton <nickc@cygnus.com>
7624 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7625 amount from a bfd_in_memory structure.
7626 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7629 2000-01-14 Nick Clifton <nickc@cygnus.com>
7631 * linker.c (default_indirect_link_order): oops - fix incorrectly
7632 applied patch from Tim Wall.
7634 2000-01-13 Timothy Wall (twall@tiac.net>
7636 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7637 = scnhsz, filhsz, relsz, aoutsz, etc)
7639 * coffswap.h: Ditto.
7641 2000-01-13 Nick Clifton <nickc@cygnus.com>
7643 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7644 interwork thumb to arm stub.
7646 2000-01-13 Timothy Wall (twall@tiac.net>
7648 * archures.c (bfd_octets_per_byte): New function: Return
7650 (bfd_arch_mach_octets_per_byte): New function: Return target
7653 * section.c: Distinguish between octets and bytes for usage of
7654 _cooked_size, _raw_size, and output_offset. Clarify
7655 description of bfd_set_section_contents.
7657 * bfd-in2.h: Regenerate.
7659 * coffgen.c: Indicate that the offset parameter is in bytes, not
7662 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7663 where appropriate to get the octet offset when calling
7664 bfd_set_section_contents.
7665 (bfd_coff_reloc_link_order): Ditto.
7667 * linker.c (bfd_generic_reloc_link_order): Ditto.
7668 (_bfd_default_link_order): Ditto.
7670 * reloc.c (bfd_perform_relocation): Distinguish between octets
7671 and bytes. Use octets when indexing into octet data; use bytes
7672 when calculating target addresses.
7673 (bfd_install_relocation): Ditto.
7675 * srec.c (srec_write_section): Ditto.
7677 2000-01-13 Nick Clifton <nickc@cygnus.com>
7679 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7680 3 to 2. This allows 4 byte sized sections, which is necessary for
7681 dlltool to build functioning DLLs.
7683 2000-01-10 Philip Blundell <pb@futuretv.com>
7685 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7686 (arm*-*-conix*): New target.
7688 2000-01-10 Egor Duda <deo@logos-m.ru>
7690 * config.bfd: Include elf32_i386 vector to target list for cygwin
7693 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7694 * configure.in: Test for structure win32_pstatus_t in
7696 * configure: Regenerate.
7698 * elf.c (elfcore_grok_win32pstatus): New function: process
7699 win32_pstatus_t notes in elf core file.
7700 (elfcore_grok_note): Detect win32_pstatus notes.
7702 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7704 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7706 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7707 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7709 For older changes see ChangeLog-9899
7715 version-control: never