1 2001-09-28 Alan Modra <amodra@bigpond.net.au>
3 * elf32-hppa.c (elf32_hppa_check_relocs): Update comment since we
4 no longer allocate here. Localise some vars to blocks where they
6 (elf32_hppa_adjust_dynamic_symbol): Correct a comment. Delay
7 setting of vars until needed.
8 (allocate_dynrelocs): Don't create a .plt entry without a reloc
9 when symbol visibilty makes a function local.
10 (elf32_hppa_finish_dynamic_symbol): Move expressions out of
11 swap_reloca_out function calls.
12 (elf32_hppa_relocate_section): Likewies. Comment typo fix.
13 (elf32_hppa_finish_dynamic_sections): Migrate common code out of
16 * elf32-i386.c (elf_i386_check_relocs): Update comment since we
17 no longer allocate here. Localise some vars to blocks where they
18 are used. Remove separate switch stmt for creating .got sec.
19 (elf_i386_adjust_dynamic_symbol): Correct a comment. Remove
20 redundant casts and aborts. Delay setting of vars until needed.
21 (allocate_dynrelocs): Remove redundant casts and aborts.
22 (elf_i386_size_dynamic_sections): Move comment.
23 (elf_i386_finish_dynamic_symbol): Move expressions out of function
25 (elf_i386_relocate_section): Likewise. Comment typo fix.
26 (elf_i386_finish_dynamic_sections): Migrate common code out of
28 (elf_backend_* defines): Sort.
30 * elf32-i386.c (allocate_dynrelocs): Don't create a .plt entry
31 without a reloc when symbol visibilty makes a function local.
33 2001-09-27 Nick Clifton <nickc@cambridge.redhat.com>
35 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix detection of
36 conflicting float flags.
38 2001-09-26 Alan Modra <amodra@bigpond.net.au>
40 * elf32-i386 (elf_i386_copy_indirect_symbol): New function.
41 (elf_backend_copy_indirect_symbol): Define.
42 (struct elf_i386_link_hash_entry): Rename "root" to "elf".
43 (struct elf_i386_link_hash_table): Likewise.
44 (link_hash_newfunc): Get rid of unnecessary casts.
45 (elf_i386_link_hash_table_create): Likewise.
46 (elf_i386_check_relocs): Initialise local_got_refcounts to 0.
47 Don't test input section SEC_READONLY here to try to avoid copy
48 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
49 (elf_i386_adjust_dynamic_symbol): Check output section SEC_READONLY
50 here to properly test whether we need copy relocs. Do so for weak
53 * elf32-hppa (elf32_hppa_copy_indirect_symbol): New function.
54 (elf_backend_copy_indirect_symbol): Define.
55 (struct elf32_hppa_link_hash_table): Rename "root" to "elf".
56 (stub_hash_newfunc): Get rid of unnecessary casts.
57 (hppa_link_hash_newfunc): Likewise.
58 (elf32_hppa_check_relocs): Initialise local_got_refcounts to 0.
59 Don't test input section SEC_READONLY here to try to avoid copy
60 relocs, and keep dyn_relocs regardleas of ELF_LINK_NON_GOT_REF.
61 (elf32_hppa_adjust_dynamic_symbol): Check output section SEC_READONLY
62 here to properly test whether we need copy relocs. Do so for weak
65 2001-09-26 Alan Modra <amodra@bigpond.net.au>
67 * bfd.c (_bfd_default_error_handlerl): Define using VPARAMS,
68 VA_OPEN, VA_FIXEDARG, VA_CLOSE.
69 (bfd_archive_filename): Cast bfd_malloc arg to the correct size.
71 2001-09-25 Jakub Jelinek <jakub@redhat.com>
73 * elf64-sparc.c (sparc64_elf_build_plt): Fix .plt[32768+] slot
76 2001-09-25 H.J. Lu <hjl@gnu.org>
78 * bfd-in2.h: Regenerated.
80 2001-09-25 Alan Modra <amodra@bigpond.net.au>
82 * elf32-i386.c: Add comment re linker function names and ordering.
83 (elf_i386_link_hash_newfunc): Rename to link_hash_newfunc.
84 (elf_i386_grok_prstatus): Move before linker functions.
85 (elf_i386_grok_psinfo): Likewise.
86 (elf_i386_fake_sections): Move so that functions are ordered.
87 (elf_i386_reloc_type_class): Likewise. Comment function purpose.
89 2001-09-25 Alan Modra <amodra@bigpond.net.au>
91 * elf32-hppa.c: Rename occurrences of "hplink" to "htab"
94 * elf32-hppa.c: (LONG_BRANCH_PIC_IN_SHLIB): Delete. Remove all
95 code handling this option.
96 (LONG_BRANCH_VIA_PLT): Likewise.
97 (RELATIVE_DYNRELOCS): Define as zero.
98 (struct elf32_hppa_dyn_reloc_entry): Add "sec", and
99 "pc_count" fields. Remove "section" field.
100 (elf32_hppa_link_hash_entry): Rename reloc_entries to dyn_relocs.
101 (elf32_hppa_check_relocs): Don't allocate space for dynamic
102 relocs here. Instead, record all needed dynamic relocs via
103 dyn_relocs and local_dynrel. Cache pointer to "sreloc" section
105 (elf32_hppa_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
106 (allocate_plt_and_got_and_discard_relocs): Rename to
107 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
108 (readonly_dynrelocs): New function.
109 (elf32_hppa_size_dynamic_sections): Mark output_bfd unused.
110 Call readonly_dynrelocs to determine need for DT_TEXTREL.
111 Rename "i" to "ibfd". Allocate space for local dyn relocs.
112 (elf32_hppa_relocate_section): Make use of cached sreloc.
113 (elf32_hppa_reloc_type_class): New function.
114 (elf_backend_reloc_type_class): Define.
116 2001-09-25 Alan Modra <amodra@bigpond.net.au>
118 * elf-bfd.h (struct bfd_elf_section_data): Add "local_dynrel"
120 * elf32-i386.c (struct elf_i386_dyn_relocs): Add "sec", and
121 "pc_count" fields. Remove "section" field.
122 (elf_i386_check_relocs): Don't set DF_TEXTREL here. Don't
123 allocate space for dynamic relocs here. Instead, record all
124 needed dynamic relocs via dyn_relocs and local_dynrel. Cache
125 pointer to "sreloc" section in elf_section_data.
126 (elf_i386_gc_sweep_hook): Sweep dyn_relocs and local_dynrel.
127 (allocate_plt_and_got_and_discard_relocs): Rename to
128 allocate_dynrelocs. Allocate rather than discarding dyn relocs.
129 (readonly_dynrelocs): New function.
130 (elf_i386_size_dynamic_sections): Call readonly_dynrelocs.
131 Rename "i" to "ibfd". Allocate space for local dyn relocs.
132 (elf_i386_relocate_section): Make use of cached sreloc.
134 2001-09-24 Alan Modra <amodra@bigpond.net.au>
136 * elf-bfd.h (elf_backend_reloc_type_class): Pass in the entire
137 reloc rather than just the type.
138 (_bfd_elf_reloc_type_class): Likewise.
139 * elf.c (_bfd_elf_reloc_type_class): Likewise.
140 * elf32-arm.h (elf32_arm_reloc_type_class): Likewise.
141 * elf32-cris.c (elf_cris_reloc_type_class): Likewise.
142 * elf32-i386.c (elf_i386_reloc_type_class): Likewise.
143 * elf32-m68k.c (elf32_m68k_reloc_type_class): Likewise.
144 * elf32-ppc.c (ppc_elf_reloc_type_class): Likewise.
145 * elf32-s390.c (elf_s390_reloc_type_class): Likewise.
146 * elf32-sh.c (sh_elf_reloc_type_class): Likewise.
147 * elf32-sparc.c (elf32_sparc_reloc_type_class): Likewise.
148 * elf64-alpha.c (elf64_alpha_reloc_type_class): Likewise.
149 * elf64-s390.c (elf_s390_reloc_type_class): Likewise.
150 * elf64-sparc.c (sparc64_elf_reloc_type_class): Likewise.
151 * elf64-x86-64.c (elf64_x86_64_reloc_type_class): Likewise.
152 * elfxx-ia64.c (elfNN_ia64_reloc_type_class): Likewise.
153 * elflink.h: Formatting fixes.
154 (elf_link_sort_relocs): Make "count" and "size" bfd_size_type.
155 Call bfd_zmalloc rather than calloc. Remove unnecessary cast of
156 o->contents to PTR. Update call to elf_backend_reloc_type_class.
158 2001-09-22 John Reiser <jreiser@BitWagon.com>
160 * elfcode.h (elf_object_p): Allow for no section header at all in
161 non-ET_REL files. Honor 0 for e_shnum, e_shstrndx, e_shoff.
163 2001-09-21 Nick Clifton <nickc@cambridge.redhat.com>
165 * elfxx-ia64.c: Fix compile time warning messages.
166 * coff-mcore.c: Fix compile time warning messages.
167 * coff-ppc.c: Fix compile time warning messages.
168 * coffcode.h: Fix compile time warning messages.
169 * elf32-mips.c: Fix compile time warning messages.
170 * elf64-alpha.c: Fix compile time warning messages.
171 * libbfd.c: Fix compile time warning messages.
172 * bfd-in2.h: Regenerate.
174 2001-09-21 Alan Modra <amodra@bigpond.net.au>
176 * Makefile.am: Run "make dep-am".
177 * Makefile.in: Regenerate.
179 * aoutx.h: Formatting fixes.
180 * merge.c (_bfd_merged_section_offset): Break line at 80 chars.
182 * linker.c: Replace bfd_get_filename with bfd_archive_filename
185 2001-09-21 Alan Modra <amodra@bigpond.net.au>
187 * bfd.c (bfd_archive_filename): New function.
188 * bfd-in2.h: Regenerate.
189 * aout-adobe.c: Replace bfd_get_filename with bfd_archive_filename
190 in error messages where the bfd is an input bfd.
191 * aout-cris.c: Likewise.
192 * coff-arm.c: Likewise.
193 * coff-mcore.c: Likewise.
194 * coff-ppc.c: Likewise.
195 * coff-rs6000.c: Likewise.
196 * coff-sh.c: Likewise.
197 * coff-tic54x.c: Likewise.
198 * coff-tic80.c: Likewise.
199 * coff64-rs6000.c: Likewise.
200 * coffcode.h: Likewise.
201 * coffgen.c: Likewise.
202 * cofflink.c: Likewise.
203 * ecofflink.c: Likewise.
204 * elf-hppa.h: Likewise.
206 * elf32-arm.h: Likewise.
207 * elf32-cris.c: Likewise.
208 * elf32-gen.c: Likewise.
209 * elf32-hppa.c: Likewise.
210 * elf32-i370.c: Likewise.
211 * elf32-i386.c: Likewise.
212 * elf32-m32r.c: Likewise.
213 * elf32-mcore.c: Likewise.
214 * elf32-mips.c: Likewise.
215 * elf32-ppc.c: Likewise.
216 * elf32-s390.c: Likewise.
217 * elf32-sh.c: Likewise.
218 * elf32-sparc.c: Likewise.
219 * elf32-v850.c: Likewise.
220 * elf64-alpha.c: Likewise.
221 * elf64-gen.c: Likewise.
222 * elf64-ppc.c: Likewise.
223 * elf64-s390.c: Likewise.
224 * elf64-sparc.c: Likewise.
225 * elf64-x86-64.c: Likewise.
226 * elflink.h: Likewise.
227 * elfxx-ia64.c: Likewise.
230 * libbfd.c: Likewise.
232 * pe-mips.c: Likewise.
233 * peicode.h: Likewise.
235 * xcofflink.c: Likewise.
237 * elf32-arm.h: Make _bfd_error_handler calls K&R compatible.
239 * elflink.c (_bfd_elf_create_linker_section): Better grammar for
242 * coff-mcore.c (coff_mcore_relocate_section): Internalionalise
245 * elf64-sparc.c (sparc64_elf_add_symbol_hook): Constify stt_types.
246 Consolidate error messages, and split long messages to two lines.
248 2001-09-20 John Reiser <jreiser@BitWagon.com>
250 * elf32-i386.c (elf_i386_relocate_section): Coordinate info->symbolic
251 and info->allow_shlib_undefined.
252 * elf32-cris.c: Likewise.
253 * elf32-hppa.c: Likewise.
254 * elf32-m68k.c: Likewise.
255 * elf32-mips.c: Likewise.
256 * elf32-ppc.c: Likewise.
257 * elf32-s390.c: Likewise.
258 * elf32-sh.c: Likewise.
259 * elf32-sparc.c: Likewise.
260 * elf64-alpha.c: Likewise.
261 * elf64-hppa.c: Likewise.
262 * elf64-ppc.c: Likewise.
263 * elf64-s390.c: Likewise.
264 * elf64-sparc.c: Likewise.
265 * elf64-x86-64.c: Likewise.
266 * elfxx-ia64.c: Likewise.
268 2001-09-18 Bruno Haible <haible@clisp.cons.org>
270 * aoutx.h: Include "safe-ctype.h" instead of <ctype.h>.
271 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
272 * archive.c: Include "safe-ctype.h" instead of <ctype.h>.
273 (_bfd_generic_read_ar_hdr_mag): Use ISDIGIT instead of isdigit.
274 * archures.c: Include "safe-ctype.h" instead of <ctype.h>.
275 (bfd_default_scan): Use ISDIGIT instead of isdigit.
276 * bfd.c: Include "safe-ctype.h" instead of <ctype.h>.
277 (bfd_scan_vma): Use ISXDIGIT/ISDIGIT/ISLOWER instead of
278 isxdigit/isdigit/islower.
279 * binary.c: Include "safe-ctype.h" instead of <ctype.h>.
280 (mangle_name): Use ISALNUM instead of isalnum.
281 * cpu-v850.c: Include "safe-ctype.h" instead of <ctype.h>.
282 (scan): Use ISDIGIT instead of isdigit.
283 * hosts/alphavms.h: Don't include <ctype.h>.
284 * ieee.c: Include "safe-ctype.h" instead of <ctype.h>.
285 (ieee_object_p): Use TOUPPER instead of toupper.
286 * ihex.c: Include "safe-ctype.h" instead of <ctype.h>.
287 (ihex_bad_byte): Use ISPRINT instead of isprint.
288 * merge.c: Don't include <ctype.h>.
289 * oasys.c: Include "safe-ctype.h" instead of <ctype.h>.
290 (oasys_write_sections): Use ISDIGIT instead of isdigit.
291 * pdp11.c: Include "safe-ctype.h" instead of <ctype.h>.
292 (aout_link_write_symbols): Use ISDIGIT instead of isdigit.
293 * ppcboot.c: Include "safe-ctype.h" instead of <ctype.h>.
294 (mangle_name): Use ISALNUM instead of isalnum.
295 * som.c: Include "safe-ctype.h" instead of <ctype.h>.
296 (som_set_reloc_info): Use ISUPPER/ISLOWER/ISDIGIT instead of
297 isupper/islower/isdigit.
298 (som_decode_symclass): Use TOUPPER instead of toupper.
299 * srec.c: Include "safe-ctype.h" instead of <ctype.h>.
300 (srec_bad_byte): Use ISPRINT instead of isprint.
301 (srec_scan): Use ISSPACE instead of isspace.
302 * stabs.c: Include "safe-ctype.h" instead of <ctype.h>.
303 (_bfd_link_section_stabs): Use ISDIGIT instead of isdigit.
304 * syms.c: Include "safe-ctype.h"
305 (islower, toupper): Remove macro definitions.
306 (bfd_decode_symclass): Use TOUPPER instead of toupper.
307 * vms-gsd.c: Don't include <ctype.h>.
308 * vms-hdr.c: Include "safe-ctype.h" instead of <ctype.h>.
309 (_bfd_vms_write_hdr): Use ISLOWER/TOUPPER instead of
311 * vms-tir.c: Don't include <ctype.h>.
313 2001-09-18 Alan Modra <amodra@bigpond.net.au>
315 * libbfd.c (bfd_bread): New function replacing bfd_read without
316 redundant params. Allow reads up to (size_t) -2 in length.
317 (bfd_bwrite): Similarly for bfd_write.
318 (real_read): Return a size_t.
319 (bfd_read): Call bfd_bread.
320 (bfd_write): Call bfd_bwrite.
321 (warn_deprecated): New function to annoy everybody.
322 (bfd_get_file_window): Don't call bfd_set_error unnecessarily.
323 * bfd-in.h (bfd_bread, bfd_bwrite, warn_deprecated): Declare.
324 (bfd_read, bfd_write): Define as macro.
325 * aix386-core.c: Replace calls to bfd_read with bfd_bread, and
326 likewise for bfd_write. Ensure function args are correct size by
327 using casts or local vars. In some cases, remove unnecessary
328 casts. Formatting fixes, in some cases removing a large expression
329 from function args by using a local var. Replace CONST with const.
330 Modify variable types to avoid warings. Use casts to avoid
331 warnings when using negative numbers in unsigned expressions.
332 * aout-adobe.c: Likewise.
333 * aout-arm.c: Likewise.
334 * aout-cris.c: Likewise.
335 * aout-encap.c: Likewise.
336 * aout-ns32k.c: Likewise.
337 * aout-target.h: Likewise.
338 * aout-tic30.c: Likewise.
339 * aoutf1.h: Likewise.
341 * archive.c: Likewise.
342 * archures.c: Likewise.
343 * bfd-in.h: Likewise.
345 * binary.c: Likewise.
348 * cisco-core.c: Likewise.
349 * coff-a29k.c: Likewise.
350 * coff-alpha.c: Likewise.
351 * coff-arm.c: Likewise.
352 * coff-h8300.c: Likewise.
353 * coff-h8500.c: Likewise.
354 * coff-i386.c: Likewise.
355 * coff-i860.c: Likewise.
356 * coff-i960.c: Likewise.
357 * coff-ia64.c: Likewise.
358 * coff-m68k.c: Likewise.
359 * coff-m88k.c: Likewise.
360 * coff-mcore.c: Likewise.
361 * coff-mips.c: Likewise.
362 * coff-ppc.c: Likewise.
363 * coff-rs6000.c: Likewise.
364 * coff-sh.c: Likewise.
365 * coff-sparc.c: Likewise.
366 * coff-stgo32.c: Likewise.
367 * coff-tic30.c: Likewise.
368 * coff-tic54x.c: Likewise.
369 * coff-tic80.c: Likewise.
370 * coff-w65.c: Likewise.
371 * coff-z8k.c: Likewise.
372 * coff64-rs6000.c: Likewise.
373 * coffcode.h: Likewise.
374 * coffgen.c: Likewise.
375 * cofflink.c: Likewise.
376 * coffswap.h: Likewise.
377 * corefile.c: Likewise.
378 * cpu-arc.c: Likewise.
379 * cpu-h8300.c: Likewise.
380 * cpu-h8500.c: Likewise.
381 * cpu-i960.c: Likewise.
382 * cpu-ia64-opc.c: Likewise.
383 * cpu-ns32k.c: Likewise.
384 * cpu-pdp11.c: Likewise.
385 * cpu-pj.c: Likewise.
386 * cpu-sh.c: Likewise.
387 * cpu-w65.c: Likewise.
388 * cpu-z8k.c: Likewise.
389 * dwarf1.c: Likewise.
390 * dwarf2.c: Likewise.
392 * ecofflink.c: Likewise.
393 * ecoffswap.h: Likewise.
394 * elf-bfd.h: Likewise.
395 * elf-hppa.h: Likewise.
396 * elf-m10200.c: Likewise.
397 * elf-m10300.c: Likewise.
399 * elf32-arc.c: Likewise.
400 * elf32-arm.h: Likewise.
401 * elf32-avr.c: Likewise.
402 * elf32-cris.c: Likewise.
403 * elf32-fr30.c: Likewise.
404 * elf32-gen.c: Likewise.
405 * elf32-h8300.c: Likewise.
406 * elf32-hppa.c: Likewise.
407 * elf32-i370.c: Likewise.
408 * elf32-i386.c: Likewise.
409 * elf32-i860.c: Likewise.
410 * elf32-m32r.c: Likewise.
411 * elf32-m68k.c: Likewise.
412 * elf32-mcore.c: Likewise.
413 * elf32-mips.c: Likewise.
414 * elf32-openrisc.c: Likewise.
415 * elf32-pj.c: Likewise.
416 * elf32-ppc.c: Likewise.
417 * elf32-s390.c: Likewise.
418 * elf32-sh-lin.c: Likewise.
419 * elf32-sh.c: Likewise.
420 * elf32-sparc.c: Likewise.
421 * elf32-v850.c: Likewise.
422 * elf64-alpha.c: Likewise.
423 * elf64-hppa.c: Likewise.
424 * elf64-mips.c: Likewise.
425 * elf64-ppc.c: Likewise.
426 * elf64-s390.c: Likewise.
427 * elf64-sparc.c: Likewise.
428 * elf64-x86-64.c: Likewise.
429 * elfarm-nabi.c: Likewise.
430 * elfcode.h: Likewise.
431 * elfcore.h: Likewise.
432 * elflink.c: Likewise.
433 * elflink.h: Likewise.
434 * elfxx-ia64.c: Likewise.
435 * elfxx-target.h: Likewise.
436 * format.c: Likewise.
438 * hp300hpux.c: Likewise.
439 * hppabsd-core.c: Likewise.
440 * hpux-core.c: Likewise.
441 * i386aout.c: Likewise.
442 * i386dynix.c: Likewise.
443 * i386linux.c: Likewise.
444 * i386lynx.c: Likewise.
445 * i386mach3.c: Likewise.
446 * i386msdos.c: Likewise.
447 * i386os9k.c: Likewise.
450 * irix-core.c: Likewise.
451 * libaout.h: Likewise.
452 * libbfd-in.h: Likewise.
453 * libbfd.c: Likewise.
454 * libcoff-in.h: Likewise.
455 * libecoff.h: Likewise.
456 * libieee.h: Likewise.
457 * libnlm.h: Likewise.
458 * libpei.h: Likewise.
459 * libxcoff.h: Likewise.
460 * linker.c: Likewise.
461 * lynx-core.c: Likewise.
462 * m68klinux.c: Likewise.
464 * mipsbsd.c: Likewise.
465 * netbsd-core.c: Likewise.
467 * nlm32-alpha.c: Likewise.
468 * nlm32-i386.c: Likewise.
469 * nlm32-ppc.c: Likewise.
470 * nlm32-sparc.c: Likewise.
471 * nlmcode.h: Likewise.
472 * nlmswap.h: Likewise.
475 * opncls.c: Likewise.
476 * osf-core.c: Likewise.
477 * pc532-mach.c: Likewise.
479 * pe-mips.c: Likewise.
480 * peXXigen.c: Likewise.
481 * peicode.h: Likewise.
482 * ppcboot.c: Likewise.
483 * ptrace-core.c: Likewise.
485 * reloc16.c: Likewise.
486 * riscix.c: Likewise.
487 * rs6000-core.c: Likewise.
488 * sco5-core.c: Likewise.
489 * section.c: Likewise.
491 * sparclinux.c: Likewise.
492 * sparclynx.c: Likewise.
497 * targets.c: Likewise.
498 * tekhex.c: Likewise.
499 * trad-core.c: Likewise.
500 * versados.c: Likewise.
501 * vms-gsd.c: Likewise.
502 * vms-hdr.c: Likewise.
503 * vms-misc.c: Likewise.
504 * vms-tir.c: Likewise.
507 * xcofflink.c: Likewise.
508 * bfd-in2.h: Regenerate.
509 * libbfd.h: Regenerate.
510 * libcoff.h: Regenerate.
512 * bfd.c (struct _bfd): Make "where" and "origin" unsigned.
513 * bfd-in.h (file_ptr): Change from a long int to a bfd_signed_vma.
515 (bfd_tell): Return a ufile_ptr.
516 * libbfd.c (bfd_tell): Likewise.
517 (bfd_seek): Use bfd_size_type locals. Don't call bfd_set_error
519 * aix386-core.c: Test != 0 for bfd_seek errors rather than < 0.
520 * aoutf1.h: Likewise.
522 * cache.c (bfd_cache_lookup_worker): Guard against abfd->where
523 larger than unsigned long can represent.
525 * libbfd.c (bfd_malloc): Take a bfd_size_type arg. Error if
526 size overflows size_t.
527 (bfd_realloc): Likewise.
528 (bfd_zmalloc): Likewise.
529 * opncls.c (bfd_alloc): Likewise.
530 (bfd_zalloc): Likewise.
531 * libbfd-in.h (bfd_malloc, bfd_realloc, bfd_zmalloc): Update.
532 (bfd_alloc, bfd_zalloc): Update.
534 * libbfd.c (bfd_get_8): Mask with 0xff in case char is more than
536 (bfd_get_signed_8): Likewise.
537 (H_PUT_64, H_PUT_32, H_PUT_16, H_PUT_8,
538 H_PUT_S64, H_PUT_S32, H_PUT_S16, H_PUT_S8,
539 H_GET_64, H_GET_32, H_GET_16, H_GET_8,
540 H_GET_S64, H_GET_S32, H_GET_S16, H_GET_S8): Define and use.
541 * libaout.h: Likewise define and use here.
542 * aout-adobe.c: Use H_GET_* and H_PUT_* macros.
543 * aout-arm.c: Likewise.
544 * aout-encap.c: Likewise.
545 * aout-ns32k.c: Likewise.
546 * aout-tic30.c: Likewise.
547 * aoutf1.h: Likewise.
550 * coff-alpha.c: Likewise.
551 * coff-h8300.c: Likewise.
552 * coff-h8500.c: Likewise.
553 * coff-i960.c: Likewise.
554 * coff-ia64.c: Likewise.
555 * coff-m88k.c: Likewise.
556 * coff-mips.c: Likewise.
557 * coff-ppc.c: Likewise.
558 * coff-rs6000.c: Likewise.
559 * coff-sh.c: Likewise.
560 * coff-sparc.c: Likewise.
561 * coff-stgo32.c: Likewise.
562 * coff-tic30.c: Likewise.
563 * coff-tic80.c: Likewise.
564 * coff-w65.c: Likewise.
565 * coff-z8k.c: Likewise.
566 * coff64-rs6000.c: Likewise.
567 * coffgen.c: Likewise.
568 * cofflink.c: Likewise.
569 * coffswap.h: Likewise.
571 * ecoffswap.h: Likewise.
573 * elf32-mips.c: Likewise.
574 * elf64-mips.c: Likewise.
575 * hp300hpux.c: Likewise.
576 * i386dynix.c: Likewise.
577 * i386lynx.c: Likewise.
578 * i386msdos.c: Likewise.
579 * i386os9k.c: Likewise.
580 * libpei.h: Likewise.
581 * nlm32-alpha.c: Likewise.
582 * nlm32-i386.c: Likewise.
583 * nlm32-ppc.c: Likewise.
584 * nlmcode.h: Likewise.
585 * nlmswap.h: Likewise.
588 * pe-mips.c: Likewise.
589 * peXXigen.c: Likewise.
590 * peicode.h: Likewise.
591 * riscix.c: Likewise.
593 * xcofflink.c: Likewise.
594 * elfcode.h: (put_word, get_word, put_signed_word, get_signed_word):
595 Rename to H_PUT_WORD, H_GET_WORD, H_PUT_SIGNED_WORD, H_GET_SIGNED_WORD.
596 * coff-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Don't define. Use
597 equivalent H_PUT_* macro instead.
598 (GETWORD, GETHALF, GETBYTE): Similarly.
599 * coff64-rs6000.c (PUTWORD, PUTHALF, PUTBYTE): Likewise.
600 (GETWORD, GETHALF, GETBYTE): Likewise.
601 * coffswap.h (PUTWORD, PUTHALF, PUTBYTE): Likewise.
603 * bfd-in.h (struct orl): Change "pos" to a union.
604 * archive.c (_bfd_compute_and_write_armap): Use it instead of casts.
605 (bsd_write_armap): Here too.
606 (coff_write_armap): And here.
607 * coff-rs6000.c (xcoff_write_armap_old): And here.
608 (xcoff_write_one_armap_big): And here.
609 (xcoff_write_armap_big): And here.
610 * ecoff.c (_bfd_ecoff_write_armap): And here.
611 * elf64-mips.c (mips_elf64_write_armap): And here.
613 * aoutf1.h (sunos_set_arch_mach): Make "mach" param an enum.
614 * elf-m10300.c (elf_mn10300_mach): Return an unsigned long.
615 * elf32-h8300.c (elf32_h8_mach): Likewise.
616 * elf32-mips.c (elf_mips_mach): Likewise.
617 * sparclynx.c (NAME(lynx,set_arch_mach)): Likewise.
619 * aix386-core.c (aix386_core_file_p): Remove redundant bfd_release
621 (aix386_core_vec): Typo fix.
623 * aout-arm.c: Include libaout.h and aout/aout64.h after N_TXTADDR
624 etc. to avoid redefined macro warning.
625 (MY(put_reloc)): Use bfd_vma for "value" rather than long.
626 (MY(fix_pcrel_26)): Likewise.
627 * aout-ns32k.c (MY(put_reloc)): Likewise.
628 * aout-cris.c (MY(swap_ext_reloc_out)): Likewise for r_addend.
629 * aoutx.h (NAME(aout,swap_ext_reloc_out)): Likewise.
630 * coff-arm.c (coff_arm_relocate_section): Likewise for my_offset.
632 * aout-encap.c: Include "file", not <file> for binutils headers.
633 (encap_object_p): Half baked attempt to fix compile errors in
634 code dealing with "magic".
636 * aout-ns32k.c: Include "file", not <file> for binutils headers.
637 (_bfd_ns32k_relocate_contents): get_data and put_data manipulate
638 bfd_vma's rather than longs.
639 * cpu-ns32k.c (ns32k_sign_extend): Delete.
640 (_bfd_ns32k_get_displacement): Return a bfd_vma, don't pass in offset.
641 (_bfd_ns32k_get_immediate): Likewise. Add code for 8 byte values,
643 (_bfd_ns32k_put_displacement): Accept a bfd_vma, don't pass in offset.
644 Use unsigned comparisons.
645 (bfd_ns32k_put_immediate): Likewise, and add code for 8 byte values.
646 (do_ns32k_reloc): get_data and put_data operate on bfd_vma's.
647 (_bfd_do_ns32k_reloc_contents): Likewise.
648 * ns32k.h (_bfd_ns32k_get_displacement): Update prototype.
649 (_bfd_ns32k_get_immediate): Likewise.
650 (_bfd_ns32k_put_displacement): Likewise.
651 (_bfd_ns32k_put_immediate): Likewise.
652 (bfd_reloc_status_type): Likewise.
654 * aoutx.h (NAME(aout,find_nearest_line)): Rename 'p' to 'colon'
656 * pdp11.c (NAME(aout,find_nearest_line)): Likewise.
657 * coff-h8300.c (h8300_reloc16_extra_cases): Remove shadowing "value".
658 * coff-ppc.c (enum ref_category): Rename "data" to "tocdata" to
660 (record_toc): Use a bfd_signed_vma for our_toc_offset.
661 * coffcode.h (coff_write_relocs): Rename "i" to avoid shadowing.
662 * elf.c (bfd_elf_get_bfd_needed_list): Rename "link" var to avoid
664 (_bfd_elfcore_strndup): Likewise for "dup".
665 * elf32-cris.c (cris_elf_relocate_section): "symname" instead of
666 "name" to avoid shadowing.
667 * elf32-hppa.c (elf32_hppa_relocate_section): Remove duplicate
669 * elf32-i386.c (elf_i386_relocate_section): Likewise.
670 * elf32-mips.c (_bfd_mips_elf_modify_segment_map): Remove duplicate
672 (_bfd_mips_elf_final_link): Rename "i" to "j". Remove duplicate
674 * elf64-x86-64.c (elf64_x86_64_relocate_section): Rename inner "indx"
676 * elflink.h (elf_link_add_object_symbols): Rename "link" to "shlink"
678 (elf_link_input_bfd): Likewise.
679 (elf_bfd_final_link): Remove duplicate innermost "off" var.
680 * oasys.c (oasys_write_data): Rename innermost "p" to "sym".
681 * reloc16.c (bfd_coff_reloc16_relax_section): Rename "i" param to
683 * som.c (som_prep_for_fixups): Rename inner "i" to "j".
684 * sunos.c (sunos_add_dynamic_symbols): Localise "s" var.
685 (sunos_write_dynamic_symbol): Remove unused vars.
686 * syms.c (_bfd_stab_section_find_nearest_line): Remove duplicate
687 innermost "directory_name" and "file_name" vars.
688 * tekhex.c (first_phase): Rename local var "type" to "stype".
689 (tekhex_write_object_contents): Rename innermost "s" to "sym".
690 * vms-gsd.c (vms_secflag_by_name): Change "size" param to "hassize",
691 doing comparison at caller.
692 (vms_esecflag_by_name): Likewise.
693 * vms-tir.c (etir_sto): Rename innermost "psect" to "psect1".
694 * xcofflink.c (xcoff_link_input_bfd): Delete duplicate innermost "o".
695 (xcoff_write_global_symbol): Rename "p" param to "inf".
697 * cisco-core.c: Add missing prototypes.
698 (cisco_core_file_failing_command): Add ATTRIBUTE_UNUSED.
699 (cisco_core_file_failing_signal): Likewise.
700 (cisco_core_file_matches_executable_p): Likewise.
701 * hpux-core.c (hpux_core_core_file_failing_signal): Likewise.
702 * netbsd-core.c (netbsd_core_file_matches_executable_p): Likewise.
703 * osf-core.c (osf_core_core_file_matches_executable_p): Likewise.
704 * sco5-core.c (sco5_core_file_matches_executable_p): Likewise.
706 * coff-arm.c (coff_arm_link_hash_table): Use bfd_size_type for
707 thumb_glue_size and arm_glue_size.
708 * elf32-arm.h (elf32_arm_link_hash_table): Likewise here.
710 * coff64-rs6000.c: Group prototypes together.
712 * coffcode.h (coff_set_arch_mach): Add ATTRIBUTE_UNUSED.
713 (buy_and_read): Remove "seek" param. Change "size" to bfd_size_type.
715 * cpu-arc.c: Add missing prototypes.
716 * cpu-h8500.c: Likewise.
717 * cpu-i960.c: Likewise.
718 * cpu-pj.c: Likewise.
719 * cpu-sh.c: Likewise.
720 * cpu-w65.c: Likewise.
721 * cpu-z8k.c: Likewise.
722 * elf32-fr30.c: Likewise.
723 * elf32-h8300.c: Likewise.
724 * elf32-i370.c: Likewise.
725 * hpux-core.c: Likewise.
726 * versados.c: Likewise.
728 * cpu-h8300.c (bfd_default_scan_num_mach): Don't declare.
729 * cpu-h8500.c: Likewise.
730 * cpu-i960.c: Likewise.
731 * cpu-z8k.c: Likewise.
733 * cpu-ia64-opc.c: Correct comment.
735 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Remove unused var.
737 * elf-bfd.h (elf_size_info): Change count param of write_out_phdrs
739 (bfd_elf32_write_out_phdrs): Likewise.
740 (bfd_elf64_write_out_phdrs): Likewise.
741 (elf_linker_section_pointers): Change addend to bfd_vma.
742 (_bfd_elf_find_pointer_linker_section): Likewise.
743 (_bfd_elfcore_make_pseudosection): Change size param to size_t and
744 filepos to unsigned file_ptr.
745 (_bfd_elfcore_strndup): Change max param to size_t.
746 * elf.c (_bfd_elfcore_make_pseudosection): As above.
747 (_bfd_elfcore_strndup): Likewise.
748 (_bfd_elf_find_pointer_linker_section): Likewise.
750 * elf-hppa.h (elf_hppa_relocate_insn): Return an int, and change
751 insn and sym_value to ints.
753 * elf.c (elf_read): Make "offset" param a file_ptr, "size" a
755 (elfcore_read_notes): Likewise.
757 * elf32-arm.h (elf32_arm_final_link_relocate): Change sym_flags
758 param from unsigned char to int.
759 (elf32_arm_relocate_section): If USE_REL, cast "rel" appropriately
760 for info_to_howto call.
761 (add_dynamic_entry): Define macro.
762 (elf32_arm_size_dynamic_sections): Use add_dynamic_entry.
764 * elf32-cris.c (add_dynamic_entry): Define macro.
765 (elf_cris_size_dynamic_sections): Use add_dynamic_entry.
767 * elf32-h8300.c (elf32_h8_final_write_processing): Make static.
768 (elf32_h8_object_p): Likewise.
769 (elf32_h8_merge_private_bfd_data): Likewise.
770 (elf32_h8_relax_section): Cast gap to int so signed comparisons work.
772 * elf32-hppa.c (add_dynamic_entry): Define macro.
773 (elf32_hppa_size_dynamic_sections): Use it.
774 * elf32-i370.c (add_dynamic_entry): Define macro.
775 (i370_elf_size_dynamic_sections): Use it.
776 (i370_noop): Make static.
777 * elf32-i386.c (add_dynamic_entry): Define macro.
778 (elf_i386_size_dynamic_sections): Use it.
779 * elf32-m68k.c (add_dynamic_entry): Define macro.
780 (elf_m68k_size_dynamic_sections): Use it.
781 * elf32-ppc.c (add_dynamic_entry): Define macro.
782 (ppc_elf_size_dynamic_sections): Use it.
783 * elf32-s390.c (add_dynamic_entry): Define macro.
784 (elf_s390_size_dynamic_sections): Use it.
785 * elf64-alpha.c (add_dynamic_entry): Define macro.
786 (elf64_alpha_size_dynamic_sections): Use it.
787 * elf64-hppa.c (add_dynamic_entry): Define macro.
788 (elf64_hppa_size_dynamic_sections): Use it.
789 * elf64-ppc.c (add_dynamic_entry): Define macro.
790 (ppc64_elf_size_dynamic_sections): Use it.
791 * elf64-s390.c (add_dynamic_entry): Define macro.
792 (elf_s390_size_dynamic_sections): Use it.
793 * elf64-sparc.c (add_dynamic_entry): Define macro.
794 (sparc64_elf_size_dynamic_sections): Use it.
795 * elf64-x86-64.c (add_dynamic_entry): Define macro.
796 (elf64_x86_64_size_dynamic_sections): Use it.
797 * elfxx-ia64.c (add_dynamic_entry): Define macro.
798 (elfNN_ia64_size_dynamic_sections): Use it.
800 * elf32-v850.c (SEXT24): Modify to avoid signed/unsigned warning.
801 (v850_elf_perform_relocation): Make "r_type" param unsigned.
803 * elf64-mips.c (mips_elf64_slurp_one_reloc_table): Just return
804 false if the first malloc fails rather than going via error_return.
806 * elf64-sparc.c (sparc64_elf_plt_entry_offset): Use a bfd_vma for
808 (sparc64_elf_plt_ptr_offset): Likewise, and for "max" param too.
810 * elflink.h (elf_link_input_bfd): s/ingored/ignored/ in error message.
812 * elfxx-ia64.c (global_sym_index): Return a long.
814 * ieee.c (get_symbol): Use int rather than char param.
815 (ieee_slurp_sections): Move "section" var to inner blocks.
816 (copy_expression): Don't init "value" to zero or worry about
817 clearing to zero after using.
818 (ieee_write_debug_part): Rename "output_buffer" to "obuff" to avoid
821 * ihex.c (ihex_write_record): Make "count" var a size_t, "addr" an
824 * libbfd-in.h (BFD_ALIGN): Add cast to avoid signed/unsigned warning.
825 (bfd_write_bigendian_4byte_int): Pass an unsigned int value param.
827 * mipsbsd.c (mips_fix_jmp_addr): Add "error_message" param.
829 * pc532-mach.c (MYNSX): Delete.
830 (ns32kaout_bfd_reloc_type_lookup): Define prototype without MYNSX.
831 (write_object_contents): Correct prototype.
833 * peicode.h (pe_ILF_build_a_bfd): Use an unsigned int param rather
836 * section.c (bfd_set_section_contents): Remove redundant
837 "offset < 0" test. Check that "count" doesn't overflow size_t.
838 (bfd_get_section_contents): Likewise.
840 * som.c (som_fixup_formats): Add missing braces.
841 (som_reloc_addend): Pass a bfd_vma for "addend".
843 * srec.c (srec_write_record): Pass "type" as an unsigned int.
844 (srec_write_symbols): Remove an unnecessary var.
846 * targets.c (_bfd_target_vector): Sort entries. Sort externs
848 * configure.in: Sort to match. Bump version number.
849 * configure: Regenerate.
851 * tekhex.c (move_section_contents): Assert offset == 0.
853 * versados.c (new_symbol_string): Constify arg.
854 (process_esd): Use bfd_und_section_ptr rather than &bfd_und_section.
855 (versados_get_symbol_info): Make static.
856 (versados_print_symbol): Likewise.
857 (versados_get_reloc_upper_bound): Likewise.
858 (versados_canonicalize_reloc): Likewise.
860 2001-09-18 Nick Clifton <nickc@cambridge.redhat.com>
862 * elflink.h (elf_link_input_bfd): Fix typo in error message.
864 2001-09-17 H.J. Lu <hjl@gnu.org>
866 * dwarf1.c (parse_die): Take a new arg for the end of the
867 section. Return false if die is beyond the section.
868 (parse_functions_in_unit): Pass the end of the section to
870 (_bfd_dwarf1_find_nearest_line): Likewise.
872 2001-09-14 Michael Rauch <mrauch@netbsd.org>
874 * elf32-sparc.c (elf32_sparc_relocate_section): Treat R_SPARC_UA32
875 just like R_SPARC_32.
877 2001-09-14 Kevin Lo <kevlo@openbsd.org>
879 * configure.bfd: Add arm-openbsd target.
881 2001-09-14 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
883 * config.bfd: Change machine triplets from mips*el*-* to mips*el-*.
884 Add support for mips64.
886 2001-09-13 Alexandre Oliva <aoliva@redhat.com>
888 * elf32-openrisc.c (ELF_MACHINE_ALT1): Define as EM_OPENRISC_OLD.
890 2001-09-12 Alexandre Oliva <aoliva@redhat.com>
892 * elf.c (prep_headers): Get the machine code from the elf
894 * elf-m10200.c (ELF_MACHINE_CODE): Redefine to EM_MN10200.
895 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10200.
896 * elf-m10300.c (ELF_MACHINE_CODE): Redefine to EM_MN10300.
897 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_MN10300.
898 * elf-arc.c (arc_elf_final_write_processing): Don't override
899 e_machine, it's now properly set in prep_headers.
900 * elf32-avr.c (elf32_avr_object_p): Accept both EM_AVR and
902 (ELF_MACHINE_ALT1): Define to EM_AVR_OLD.
903 * elf-d10v.c (ELF_MACHINE_CODE): Redefine to EM_D10V.
904 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D10V.
905 * elf-d30v.c (ELF_MACHINE_CODE): Redefine to EM_D30V.
906 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_D30V.
907 * elf-fr30.c (ELF_MACHINE_CODE): Redefine to EM_FR30.
908 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_FR30.
909 * elf-m32r.c (ELF_MACHINE_CODE): Redefine to EM_M32R.
910 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_M32R.
911 * elf32-pj.c (ELF_MACHINE_ALT1): DEfine to EM_PJ_OLD.
912 * elf-v850.c (ELF_MACHINE_CODE): Redefine to EM_V850.
913 (ELF_MACHINE_ALT1): Define to EM_CYGNUS_V850.
915 2001-09-11 Richard Henderson <rth@redhat.com>
917 * elf64-alpha.c (elf64_alpha_section_flags): New.
918 (elf64_alpha_fake_sections): Map SEC_SMALL_DATA to SHF_ALPHA_GPREL.
920 2001-09-11 Richard Henderson <rth@redhat.com>
922 * elf64-alpha.c (elf64_alpha_relocate_section): Do not
923 apply HINT relocations against dynamic symbols.
925 2001-09-11 H.J. Lu <hjl@gnu.org>
927 * linker.c (link_action): Change COMMON_ROW\defw from CREF to COM.
929 2001-09-09 Richard Henderson <rth@redhat.com>
931 * elf64-alpha.c: Delete all unused ERIC_neverdef and rth_notdef code.
933 * elf64-alpha.c (elf64_alpha_relax_with_lituse): Nop out gpdisp
934 following a call to a near function.
936 2001-09-08 Richard Henderson <rth@redhat.com>
938 * elf64-alpha.c (elf64_alpha_relocate_section): Soft fail
939 relocation errors. Fail gp-relative relocations against
942 2001-09-08 Alan Modra <amodra@bigpond.net.au>
944 * elf32-i386.c (elf_i386_relocate_section): Check !DEF_REGULAR
945 as well as DEF_DYNAMIC in test for avoided copy relocs.
946 (allocate_plt_and_got_and_discard_relocs): Likewise.
947 * elf32-hppa.c (elf_i386_relocate_section): Likewise.
948 (allocate_plt_and_got_and_discard_relocs): Likewise.
950 2001-09-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
952 * elf32-mips.c (mips_elf_calculate_relocation): Fix overflow handling
955 2001-09-06 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
957 * elf64-mips.c (mips_elf64_howto_table_rel): Fix relocation HOWTO
959 (mips_elf64_howto_table_rel): Likewise.
961 2001-09-05 Tom Rix <trix@redhat.com>
963 * xcofflink.c (bfd_xcoff_import_symbol): Handle import file XMC_XO
965 (write_global_symbol) : Same.
966 (bfd_xcoff_export_symbol): Remove unused syscall param.
967 * libxcoff.h: Change prototype of bfd_xcoff_export symbol and
968 bfd_xcoff_import_symbol.
970 * bfd-in2.h : Regenerate.
972 2001-09-04 Richard Henderson <rth@redhat.com>
974 * elf64-alpha.c (SKIP_HOWTO): New.
975 (elf64_alpha_howto_table): Use it to remove dead ECOFF relocs.
976 Fix sizes of 16-bit mem format relocs.
977 (elf64_alpha_reloc_map): Update to match.
978 (elf64_alpha_relax_with_lituse): Use GPREL16 as appropriate.
979 (elf64_alpha_relax_without_lituse): Likewise.
980 (elf64_alpha_check_relocs): Handle GPREL16.
981 (elf64_alpha_relocate_section): Likewise.
982 * reloc.c (BFD_RELOC_ALPHA_USER_*): Remove.
983 (BFD_RELOC_ALPHA_GPREL_HI16, BFD_RELOC_ALPHA_GPREL_LO16): New.
984 * bfd-in2.h, libbfd.h: Rebuild.
986 2001-09-04 Jeff Law <law@redhat.com>
988 * elf32-h8300.c (elf32_h8_relax_section): New function.
989 (elf32_h8_relax_delete_bytes): Likewise.
990 (elf32_h8_symbol_address_p): Likewise.
991 (elf32_h8_get_relocated_section_contents): Likewise.
992 (bfd_elf32_bfd_relax_section): Define.
993 (bfd_elf32_bfd_get_relocated_section_contents): Likewise.
995 * elf32-h8300.c (special): New function.
996 (h8_elf_howto_table): Use it for SPECIAL_FUNCTION field in
998 (elf32_h8_final_link_relocate): Treat R_H8_DIR24A8 like 32bit
999 relocations. Fix problems with the true 24bit reloc R_H8_DIR24R8.
1000 Fix minor problems with 8bit and 16bit PC relative relocations.
1002 2001-09-01 Andreas Jaeger <aj@suse.de>
1004 * vms-tir.c: Add missing prototypes.
1005 * vms-hdr.c: Likewise.
1006 * vms-gsd.c: Likewise.
1007 * vms-misc.c: Likewise.
1009 2001-08-31 H.J. Lu <hjl@gnu.org>
1011 * elf32-mips.c (_bfd_mips_elf_check_relocs): Report filename
1012 with bad relocation.
1014 2001-08-31 Eric Christopher <echristo@redhat.com>
1015 Jason Eckhardt <jle@redhat.com>
1017 * bfd/archures.c: Add mipsisa32 and mipsisa64. Remove mips32,
1018 mips32_4k and mips64.
1019 * bfd/aoutx.h: Remove bfd_mach_mips32, bfd_mach_mips32_4k,
1020 bfd_mach_mips64. Add bfd_mach_mipsisa32, bfd_mach_mipsisa64.
1021 * bfd/cpu-mips.c: Ditto.
1022 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing): Ditto.
1023 * bfd/bfd-in2.h: Regenerate.
1025 2001-08-31 Jakub Jelinek <jakub@redhat.com>
1027 * elf64-alpha.c (elf64_alpha_relocate_section): Duplicate memory
1028 value into R_ALPHA_RELATIVE's addend.
1029 (elf64_alpha_finish_dynamic_symbol): Likewise.
1031 2001-08-31 Nick Clifton <nickc@cambridge.redhat.com>
1033 * elf32-arm.h (elf32_arm_relocate_section): Do not rightshift
1034 recomputed addend during relocatable link if not USE_REL.
1036 * elflink.h (elf_gc_propagate_vtable_entries_used): Fix off-by-one
1039 2001-08-30 H.J. Lu <hjl@gnu.org>
1041 * elf32-mips.c (mips_elf_calculate_relocation): Revert the last
1043 (_bfd_mips_elf_adjust_dynamic_symbol): Allocate dynamic
1044 relocations for weak definitions.
1046 2001-08-30 H.J. Lu <hjl@gnu.org>
1048 * Makefile.am (BFD32_BACKENDS): Add elf32-h8300.lo.
1049 (BFD32_BACKENDS_CFILES): Add elf32-h8300.c.
1050 * Makefile.in: Rebuild.
1052 2001-08-30 H.J. Lu <hjl@gnu.org>
1054 * elf32-mips.c (mips_elf_calculate_relocation): Don't create
1055 dynamic relocation for undefined weak symbols when creating
1056 executables. Check h->root.root.type, instead of h->root.type.
1058 2001-08-29 Joel Sherrill <joel@OARcorp.com>
1060 * config.bfd (i[3456]86-*-rtems*, m68*-*-rtems*): Change
1061 default from coff to elf.
1063 2001-08-29 Jeff Law <law@redhat.com>
1065 * elf32-h8300.c (h8_elf_howto_table): Add new PC relative
1067 (h8_reloc_map): Similarly.
1068 (elf32_h8_final_link_relocate): Remove incorrect overflow tests.
1069 Add support for PC relative relocations.
1071 * elf32-h8300.c: Put all prototypes together.
1072 (elf32_h8_info_to_howto): Parameter elf_reloc is used.
1073 (elf32_h8_final_link_relocate): New function for linker.
1074 (elf32_h8_relocate_section): Similarly.
1075 (elf_backend_relocate_section): Define.
1077 * cpu-h8300.c (h8300_scan, compatible): Prototype.
1078 (h8300_scan): Handle architecture:machine encodings typically
1079 found in linker scripts.
1080 * elf.c (prep_headers): Do not try to do H8 machine recognition
1082 * elf32-h8300.c: Add some missing prototypes.
1083 (elf32_h8_mach, elf32_h8_final_write_processing): New functions.
1084 (elf32_h8_object_p): Similarly.
1086 2001-08-29 Tom Rix <trix@redhat.com>
1088 * xcofflink.c (xcoff_link_add_symbols): Fix XTY_LD symbol that
1089 does not follow a XTY_SD.
1091 2001-08-29 Alan Modra <amodra@bigpond.net.au>
1093 * targmatch.sed: Delete case statements.
1094 * config.bfd <powerpc-*-aix* entry>: Select 64 bit xcoff for
1097 Wed Aug 29 02:27:36 2001 J"orn Rennecke <amylaar@redhat.com>
1099 * Makefile.am (elf32-h8300.lo): New target.
1100 * config.bfd (h8300*-*-elf): New case.
1101 * configure.in (bfd_elf32_h8300_vec): New case.
1102 * elf.c (prep_headers): Add case for bfd_arch_h8300.
1103 * reloc.c (BFD_RELOC_H8_DIR16A8): New relocation.
1104 (BFD_RELOC_H8_DIR16R8, BFD_RELOC_H8_DIR24A8): Likewise.
1105 (BFD_RELOC_H8_DIR24R8, BFD_RELOC_H8_DIR32A16): Likewise.
1106 * targets.c (bfd_target bfd_elf32_h8300_vec): New extern declaration.
1107 * elf32-h8300.c: New file.
1108 * Makefile.in, bfd-in2.h, libbfd.h, configure: Regenerated.
1110 2001-08-28 Nick Clifton <nickc@cambridge.redhat.com>
1112 * sparclynx.c: Add missing prototypes.
1113 * coff-mcore.c: Add missing prototypes.
1114 * elf32-pj.c: Add missing prototypes.
1115 * nlm32-sparc.c: Add missing prototypes.
1116 * oasys.c: Add missing prototypes.
1117 * pdp11.c: Add missing prototypes.
1118 * pe-mips.c: Add missing prototypes.
1119 * riscix.c: Add missing prototypes.
1121 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1123 * elf32-i386.c: Add missing prototypes.
1124 * elf32-ppc.c: Likewise.
1125 * elf32-sh-lin.c: Likewise.
1126 * elfarm-nabi.c: Likewise.
1128 2001-08-27 Daniel Jacobowitz <drow@mvista.com>
1130 * elf32-i386.c (elf_i386_grok_prstatus): New function.
1131 (elf_i386_grok_psinfo): New function.
1132 (elf_backend_grok_prstatus): Define.
1133 (elf_backend_grok_psinfo): Likewise.
1134 * elf32-ppc.c (ppc_elf_grok_prstatus): New function.
1135 (ppc_elf_grok_psinfo): New function.
1136 (elf_backend_grok_prstatus): Define.
1137 (elf_backend_grok_psinfo): Likewise.
1138 * elf32-sh-lin.c (elf32_shlin_grok_prstatus): New function.
1139 (elf32_shlin_grok_psinfo): New function.
1140 (elf_backend_grok_prstatus): Define.
1141 (elf_backend_grok_psinfo): Likewise.
1142 * elfarm-nabi.c (elf32_arm_nabi_grok_prstatus): New function.
1143 (elf32_arm_nabi_grok_psinfo): New function.
1144 (elf_backend_grok_prstatus): Define.
1145 (elf_backend_grok_psinfo): Likewise.
1147 2001-08-27 H.J. Lu <hjl@gnu.org>
1149 * elf32-mips.c (mips_elf_create_dynamic_relocation): Add more
1151 (mips_elf_calculate_relocation): Create dynamic relocation for
1152 symbols with weak definition or the ELF_LINK_HASH_DEF_REGULAR
1155 2001-08-27 H.J. Lu <hjl@gnu.org>
1157 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Add prototype.
1158 (_bfd_mips_elf_copy_indirect_symbol): Likewise.
1159 (_bfd_elf32_mips_grok_prstatus): Likewise.
1160 (_bfd_elf32_mips_grok_psinfo): Likewise.
1161 (_bfd_mips_elf_hide_symbol): Make it static and cast to
1162 `struct mips_elf_link_hash_entry *'.
1163 (_bfd_mips_elf_copy_indirect_symbol): Make it static.
1165 2001-08-27 Nick Clifton <nickc@cambridge.redhat.com>
1167 * mipsbsd.c: Add missing prototypes.
1168 * hp300hpux.c: Add missing prototypes.
1169 * i386aout.c: Add missing prototypes.
1170 * i386lynx.c: Add missing prototypes.
1171 * i386mach3.c: Add missing prototypes.
1172 * i386msdos.c: Add missing prototypes.
1173 * i386os9k.c: Add missing prototypes.
1175 2001-08-27 Linus Nordberg <linus@swox.se>
1176 Torbjorn Granlund <tege@swox.com>
1177 Staffan Ulfberg <staffanu@swox.se>
1178 Alan Modra <amodra@bigpond.net.au>
1180 * config.bfd: Add powerpc64 target. Add powerpc64 vectors to
1181 targ64_selvecs for 32 bit powerpc targets.
1182 * Makefile.am (BFD64_BACKENDS): Add elf64-ppc.lo.
1183 (BFD64_BACKENDS_CFILES): Add elf64-ppc.c.
1185 * Makefile.in: Regenerate.
1186 * configure.in: Add elf64_powerpc vecs.
1187 * configure: Regenerate.
1188 * cpu-powerpc.c: Default to bfd_mach_ppc_620 entry for 64 bit.
1189 * elf.c (prep_headers): EM_PPC64 for 64 bit ppc elf target.
1190 * targets.c: Add bfd_elf64_powerpc_vec and bfd_elf64_powerpcle_vec.
1191 * elf64-ppc.c: New file.
1192 * reloc.c: Add powerpc64 relocs.
1193 * libbfd.h: Regenerate.
1194 * bfd-in2.h: Regenerate.
1196 2001-08-27 Andreas Schwab <schwab@suse.de>
1198 * elf32-m68k.c (elf32_m68k_check_relocs): Set DF_TEXTREL if the
1199 reloc is against read-only section.
1200 (elf32_m68k_size_dynamic_sections): Use DF_TEXTREL flag instead of
1201 looking up section names for DT_TEXTREL.
1202 (elf32_m68k_reloc_type_class): New function.
1203 (elf_backend_reloc_type_class): Define.
1205 2001-08-27 Andreas Jaeger <aj@suse.de>
1207 * elf64-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1208 reloc is against read-only section.
1209 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1210 looking up section names for DT_TEXTREL.
1211 (elf_s390_reloc_type_class): New.
1212 (elf_backend_reloc_type_class): Define.
1214 * elf32-s390.c (elf_s390_check_relocs): Set DF_TEXTREL if the
1215 reloc is against read-only section.
1216 (elf_s390_size_dynamic_sections): Use DF_TEXTREL flag instead of
1217 looking up section names for DT_TEXTREL.
1218 (elf_s390_reloc_type_class): New.
1219 (elf_backend_reloc_type_class): Define.
1221 * elf32-ppc.c (ppc_elf_check_relocs): Set DF_TEXTREL if the reloc
1222 is against read-only section.
1223 (ppc_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1224 looking up section names for DT_TEXTREL.
1225 (ppc_elf_reloc_type_class): New.
1226 (elf_backend_reloc_type_class): Define.
1228 2001-08-26 Andreas Jaeger <aj@suse.de>
1230 * elf32-cris.c (cris_elf_check_relocs): Set DF_TEXTREL if the
1231 reloc is against read-only section.
1232 (elf_cris_size_dynamic_sections): Use DF_TEXTREL flag instead of
1233 looking up section names for DT_TEXTREL.
1234 (elf_cris_reloc_type_class): New.
1235 (elf_backend_reloc_type_class): Define.
1237 * elf32-sh.c (sh_elf_check_relocs): Set DF_TEXTREL if the reloc is
1238 against read-only section.
1239 (elf_backend_reloc_type_class): Define.
1240 (sh_elf_reloc_type_class): New.
1241 (sh_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1242 looking up section names for DT_TEXTREL.
1244 * elf32-arm.h (elf32_arm_check_relocs): Set DF_TEXTREL if the
1245 reloc is against read-only section.
1246 (elf32_arm_size_dynamic_sections): Use DF_TEXTREL flag instead of
1247 looking up section names for DT_TEXTREL.
1248 (elf32_arm_reloc_type_class): New.
1249 (elf_backend_reloc_type_class): Define.
1251 2001-08-25 Andreas Jaeger <aj@suse.de>
1253 * oasys.c: Add missing prototypes.
1255 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Add unused
1256 attribute for parameter.
1257 * elf.c (_bfd_elf_reloc_type_class): Likewise.
1259 * versados.c (get_4): Make static.
1260 (get_10): Make static.
1261 Add missing prototypes.
1262 (process_esd): Fix call to versados_new_symbol.
1264 2001-08-25 Nick Clifton <nickc@cambridge.redhat.com>
1266 * coff-a29k.c: Add missing prototypes.
1267 * coff-apollo.c: Add missing prototypes.
1268 * coff-arm.c: Add missing prototypes.
1269 * coff-i860.c: Add missing prototypes.
1270 * coff-rs6000.c: Add missing prototypes.
1271 * coff-tic80.c: Add missing prototypes.
1272 * elf-m10200.c: Add missing prototypes.
1273 * elf-m10300.c: Add missing prototypes.
1274 * elf32-arm.h: Add missing prototypes.
1275 * elf32-d10v.c: Add missing prototypes.
1276 * elf32-m32r.c: Add missing prototypes.
1277 * elf32-mcore.c: Add missing prototypes.
1278 * elf32-openrisc.c: Add missing prototypes.
1279 * elf32-sh.c: Add missing prototypes.
1280 * elf32-sparc.c: Add missing prototypes.
1281 * elf32-v850.c: Add missing prototypes.
1282 * elfarm-nabi.c: Add missing prototypes.
1283 * elfarm-oabi.c: Add missing prototypes.
1285 2001-08-25 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1287 * elf32-mips.c (elf_mips_abi_name): Return the right ABI string for
1288 E_MIPS_ABI_O64 and E_MIPS_ABI_EABI64
1290 2001-08-24 H.J. Lu <hjl@gnu.org>
1292 * elf.c (_bfd_elf_merge_sections): Fail if not using an ELF
1295 2001-08-24 Nick Clifton <nickc@cambridge.redhat.com>
1297 * elf-bfd.h (elf_hash_table): Revert definition.
1298 (is_elf_hash_table): New macro.
1299 * elflink.h (elf_link_add_object_symbols): Test
1300 is_elf_hash_table before accessing ELF only fields in hash
1302 (elf_link_create_dynamic_sections): Fail if not using an ELF
1304 (elf_add_dynamic_entry): Fail if not using an ELF hash
1306 (elf_link_record_local_dynamic_symbol): Fail if not using an
1308 (size_dynamic_sections): Fail if not using an ELF hash
1310 (elf_adjust_dynamic_symbol): Fail if not using an ELF
1312 (elf_bfd_final_link): Fail if not using an ELF hash
1315 2001-08-24 H.J. Lu <hjl@gnu.org>
1317 * elf-bfd.h (elf_hash_table): Return NULL if the linker hash
1318 table is not an ELF linker hash table.
1320 * elf.c (_bfd_elf_link_hash_table_init): Set the linker hash
1321 table type to bfd_link_elf_hash_table.
1323 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Revert
1326 * linker.c (_bfd_link_hash_table_init): Set the linker hash
1327 table type to bfd_link_generic_hash_table.
1329 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1331 * bfd.c (bfd_alt_mach_code): New function.
1332 * bfd-in2.h: Rebuilt.
1334 2001-08-24 Alexandre Oliva <aoliva@redhat.com>
1336 * elf-m10300.c (mn10300_elf_relocate_section): Test the right
1337 `type' field in the hash entry when deciding whether to follow a
1340 2001-08-24 Jakub Jelinek <jakub@redhat.com>
1342 * elflink.h (elf_link_sort_cmp1): Sort RELATIVE relocs first, not
1344 (elf_link_sort_relocs): Adjust accordingly.
1346 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Add reltext flag.
1347 (elf64_alpha_check_relocs): Set it if section this reloc is against
1348 is read-only. Set DF_TEXTREL if a RELATIVE reloc is needed against
1350 (elf64_alpha_calc_dynrel_sizes): Set DF_TEXTREL flag if relocation
1351 is is against read-only section.
1352 (elf64_alpha_size_dynamic_sections): Use DF_TEXTREL flag, don't
1353 check section names.
1354 (elf64_alpha_reloc_type_class): New.
1355 (elf_backend_reloc_type_class): Define.
1357 2001-08-24 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
1359 * linker.c (_bfd_generic_link_add_archive_symbols): Replace alloca()
1362 2001-08-23 Andreas Jaeger <aj@suse.de>
1364 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set DF_TEXTREL if
1365 the reloc is against read-only section.
1366 (elf64_x86_64_size_dynamic_sections): Use DF_TEXTREL flag instead
1367 of looking up section names for DT_TEXTREL.
1368 (elf64_x86_64_reloc_type_class): New.
1369 (elf_backend_reloc_type_class): Define.
1371 2001-08-23 H.J. Lu <hjl@gnu.org>
1373 * syms.c (bfd_print_symbol_vandf): Add abfd to arg.
1374 * bfd-in2.h (bfd_print_symbol_vandf): Regenerated.
1376 * aoutx.h (NAME(aout,print_symbol)): Pass abfd to
1377 bfd_print_symbol_vandf.
1378 * coffgen.c (coff_print_symbol): Likewise.
1379 * elf.c (bfd_elf_print_symbol): Likewise.
1380 * ieee.c (ieee_print_symbol): Likewise.
1381 * nlmcode.h (nlm_print_symbol): Likewise.
1382 * oasys.c (oasys_print_symbol): Likewise.
1383 * pdp11.c (NAME(aout,print_symbol)): Likewise.
1384 * som.c (som_print_symbol): Likewise.
1385 * srec.c (srec_print_symbol): Likewise.
1386 * tekhex.c (tekhex_print_symbol): Likewise.
1387 * versados.c (versados_print_symbol): Likewise.
1388 * vms.c (vms_print_symbol): Likewise.
1390 * elf.c (_bfd_elf_print_private_bfd_data): Replace fprintf_vma
1391 with bfd_fprintf_vma.
1392 (bfd_elf_print_symbol): Likewise.
1393 * syms.c (bfd_print_symbol_vandf): Likewise.
1395 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1397 * aoutf1.h (sunos_write_object_contents): Silence compile time
1399 * libaout.h (N_SET_DYNAMIC): Silence compile time warning.
1401 * bout.c: Add missing function prototypes. Fix formatting.
1402 * coff-z8k.c: Add missing function prototypes. Fix formatting.
1403 * coff-w65.c: Add missing function prototypes. Fix formatting.
1404 * coff-h8500.c: Add missing function prototypes. Fix formatting.
1405 * coff-h8300.c: Add missing function prototypes. Fix formatting.
1406 * coff-tic54x.c: Add missing function prototypes. Fix formatting.
1407 * coff-tic30.c: Add missing function prototypes. Fix formatting.
1408 * coff-m68k.c: Add missing function prototypes. Fix formatting.
1409 * coff-rs6000.c: Add missing function prototypes. Fix formatting.
1410 * coff-sh.c: Add missing function prototypes. Fix formatting.
1412 2001-08-23 Jakub Jelinek <jakub@redhat.com>
1414 * elf-bfd.h (enum elf_reloc_type_class): New.
1415 (struct elf_backend_data): Add elf_backend_reloc_type_class.
1416 (_bfd_elf_reloc_type_class): New.
1417 * elfxx-target.h (elf_backend_reloc_type_class): Define.
1418 (elfNN_bed): Add elf_backend_reloc_type_class.
1419 * elf.c (_bfd_elf_reloc_type_class): New.
1420 * elf32-i386.c (elf_i386_check_relocs): Set DF_TEXTREL if the reloc
1421 is against read-only section.
1422 (elf_i386_size_dynamic_sections): Use DF_TEXTREL flag instead of
1423 looking up section names for DT_TEXTREL.
1424 (elf_i386_reloc_type_class): New.
1425 (elf_backend_reloc_type_class): Define.
1426 * elf32-sparc.c (elf32_sparc_check_relocs): Set DF_TEXTREL if the
1427 reloc is against read-only section.
1428 (elf32_sparc_size_dynamic_sections): Use DF_TEXTREL flag instead of
1429 looking up section names for DT_TEXTREL.
1430 (elf32_sparc_reloc_type_class): New.
1431 (elf_backend_reloc_type_class): Define.
1432 * elf64-sparc.c (sparc64_elf_check_relocs): Set DF_TEXTREL if the
1433 reloc is against read-only section.
1434 (sparc64_elf_size_dynamic_sections): Use DF_TEXTREL flag instead of
1435 looking up section names for DT_TEXTREL.
1436 (sparc64_elf_reloc_type_class): New.
1437 (elf_backend_reloc_type_class): Define.
1438 * elfxx-ia64.c (struct elfNN_ia64_link_hash_table): Add reltext field.
1439 (elfNN_ia64_hash_table_create): Clear ia64_info.
1440 (get_reloc_section): Set DF_TEXTREL if the reloc is against read-only
1442 (elfNN_ia64_size_dynamic_sections): Use ia64_info->reltext flag
1443 instead of looking up section names for DT_TEXTREL.
1444 (elfNN_ia64_reloc_type_class): New.
1445 (elf_backend_reloc_type_class): Define.
1446 * elflink.h (size_dynamic_sections): Add spare DT_NULL tags.
1447 (struct elf_link_sort_rela): New.
1448 (elf_link_sort_cmp1, elf_link_sort_cmp2, elf_link_sort_relocs): New.
1449 (elf_bfd_final_link): Call elf_link_sort_relocs.
1450 Convert one spare DT_NULL into DT_RELCOUNT resp. DT_RELACOUNT if
1453 2001-08-23 Nick Clifton <nickc@cambridge.redhat.com>
1455 * configure.in (x86-bsdi): No corefile support.
1456 * configure: Regenerate.
1458 2001-08-22 Nick Clifton <nickc@cambridge.redhat.com>
1460 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add missing
1463 2001-08-21 Mark Elbrecht <snowball3@bigfoot.com>
1465 * coff-go32.c: Make DWARF2 sections use an alignment of 0. Set
1466 the alignment of dwarf2 linkonce sections to 0.
1467 * coff-sto32.c: Likewise.
1469 2001-08-20 Andreas Jaeger <aj@suse.de>
1471 * coff-sparc.c: Add missing prototypes.
1472 * elf32-s390.c: Likewise.
1473 * elf32-i960.c: Likewise.
1474 * aout-target.h: Likewise.
1476 2001-08-20 H.J. Lu <hjl@gnu.org>
1478 * elf-bfd.h (elf_obj_tdata): Add num_section_syms.
1479 (elf_num_section_syms): New for num_section_syms.
1481 * elf.c (elf_map_symbols): Set num_section_syms.
1482 (_bfd_elf_symbol_from_bfd_symbol): Check num_section_syms for
1483 the section symbol index.
1485 2001-08-20 Nick Clifton <nickc@cambridge.redhat.com>
1487 * elfxx-target.h (bfd_elfNN_bfd_link_hash_table_create): Never
1488 select the generic has table creator. All elf backends need elf
1489 specific fields in the hash table.
1491 2001-08-20 Alan Modra <amodra@bigpond.net.au>
1493 * archive.c (offsetof): Remove define.
1496 * sysdep.h (offsetof): Define.
1498 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1500 * bfd.c (bfd_get_gp_size): Return an unsigned int.
1501 (bfd_set_gp_size): Make param unsigned.
1502 * bfd-in2.h: Regenerate.
1503 * elf32-ppc.c (ppc_elf_add_symbol_hook): Use elf_gp_size rather
1504 than calling bfd_get_gp_size.
1505 * elf64-alpha.c (elf64_alpha_add_symbol_hook): Likewise.
1506 * elfxx-ia64.c (elfNN_ia64_add_symbol_hook): Likewise.
1508 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1510 * linker.c (default_fill_link_order): Handle four byte fill value.
1512 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1514 * elf64-sparc.c (sparc64_elf_output_arch_syms): Add missing
1516 * nlm32-alpha.c (nlm_alpha_write_external): Fix warning.
1518 * elf64-mips.c (UNUSED_RELOC): Define.
1519 (mips_elf64_howto_table_rel): Use it.
1520 (mips_elf64_howto_table_rela): Here too.
1521 (mips_elf64_write_relocs): Fix signed/unsigned warning.
1523 * coffcode.h (coff_write_object_contents): Add ATTRIBUTE_UNUSED to
1525 * coffgen.c (coff_print_symbol): Fix warnings.
1526 (coff_find_nearest_line): Likewise.
1527 * cofflink.c (_bfd_coff_link_input_bfd): Likewise.
1528 * coff-alpha.c (alpha_convert_external_reloc): Likewise.
1529 * format.c (bfd_check_format_matches): Likewise.
1530 (bfd_set_format): Likewise.
1531 * coff-ia64.c: Add missing prototypes.
1532 * elf64-alpha.c (struct alpha_elf_link_hash_entry): Make addend
1533 signed to silence warnings.
1534 (elf64_alpha_relocate_section): Likewise.
1535 (elf64_alpha_find_reloc_at_ofs): Fix warnings.
1536 (elf64_alpha_add_symbol_hook): Likewise.
1537 (elf64_alpha_final_link): Likewise.
1538 (elf64_alpha_relax_section): Remove redundant assign to info.gotent.
1539 (elf64_alpha_merge_gots): Add ATTRIBUTE_UNUSED to unused args.
1540 (elf64_alpha_size_got_sections): Likewise.
1541 * elfxx-ia64.c: Add missing prototypes.
1542 (elfNN_ia64_relocate_section): Fix warning.
1543 (elfNN_ia64_unwind_entry_compare): Make params const.
1545 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1547 * config.bfd (targ64_selvecs): New.
1548 <powerpc-*-aix* entry>: Use it here instead of ineffectual #ifdef.
1550 * bfd-in.h (BFD_VERSION): Remove wrong comment.
1551 (BFD_DEFAULT_TARGET_SIZE): New.
1552 (BFD_ARCH_SIZE): Comment.
1553 * configure.in (target_size): New. Set instead of target64 in
1554 selvecs case statement. Set target64 from it.
1555 (bfd_default_target_size): New. Set from taget_size. AC_SUBST.
1556 * bfd-in2.h: Regenerate.
1557 * configure: Regenerate.
1559 2001-08-17 Alan Modra <amodra@bigpond.net.au>
1561 * bfd.c (enum bfd_error): Add bfd_error_wrong_object_format.
1562 (bfd_errmsgs): Add corresponding message.
1563 * archive.c (bfd_generic_archive_p): Don't release bfd_ardata when
1564 finding an archive that contains different format object files.
1565 Return bfd_error_wrong_object_format for this case.
1566 * format.c: Formatting fixes. s/CONST/const/.
1567 (bfd_check_format_matches): Accept archives that give
1568 bfd_error_wrong_object_format if no full match is found. Tidy
1569 code handling matching_vector. Don't return a pointer to freed
1570 memory in `matching'. Handle ambiguous matches as for partial
1572 * bfd-in2.h: Regenerate.
1574 2001-08-15 Alan Modra <amodra@bigpond.net.au>
1576 * libieee.h (common_header_type): Add last_byte field.
1578 * ieee.c: Add missing prototypes. Some format fixes.
1579 (struct output_buffer_struct): Move for availability to prototypes.
1580 (ieee_part_after): New function.
1581 (ieee_slurp_debug): Use it here.
1582 (ieee_seek): Pass in ieee_data_struct rather than bfd. Use
1583 ieee_part_after to set last_byte to one past end of current part.
1585 (ieee_pos): Pass in ieee_data_struct rather than bfd.
1587 (parse_expression): Don't go beyond the end of the current part.
1588 (ieee_slurp_external_symbols): Correct type passed to read_2bytes.
1589 (ieee_get_symtab_upper_bound, ieee_get_symtab,
1590 ieee_get_symbol_info, ieee_print_symbol, ieee_new_section_hook,
1591 ieee_get_reloc_upper_bound, ieee_canonicalize_reloc, block,
1592 ieee_set_section_contents, ieee_write_object_contents,
1593 ieee_make_empty_symbol): Make static.
1594 (ieee_archive_p): Correct comments regarding bfd_read.
1595 (ieee_object_p): Similarly.
1596 (ieee_mkobject): Move it. Clear output_ptr_start, output_ptr,
1597 output_ptr_end, input_ptr_start, input_ptr, input_ptr_end,
1598 input_bfd, output_bfd, output_buffer.
1599 (do_as_repeat): Write out ieee_set_current_pc_enum value as for
1600 do_with_relocs, ie. as a symbol for relocatable files.
1601 (ieee_vec): Add comments showing functions referenced by macros.
1603 2001-08-14 Nick Clifton <nickc@cambridge.redhat.com>
1605 * aout-tic30.c: Add missing prototypes. Fix formatting.
1606 * aout-ns32k.c: Add missing prototypes. Fix formatting.
1607 * peXXigen.c: Add missining prototypes. Fix formatting.
1608 * aout-adobe.c: Add missining prototypes. Fix formatting.
1610 2001-08-13 Nick Clifton <nickc@cambridge.redhat.com>
1612 * elf32-v850.c: Add missing function prototypes.
1613 Fix some formatting.
1615 * cpu-v850.c: Add missing function prototype.
1616 Fix some formatting.
1618 2001-08-11 Nick Clifton <nickc@cambridge.redhat.com>
1620 * elf-bfd.h (struct elf_backend_data): Add new fields
1621 'elf_backend_sprintf_vma' and 'elf_backend_fprintf_vma'.
1622 (bfd_elf_sprintf_vma): Rename function prototype to
1623 '_bfd_elf_sprintf_vma'.
1624 (bfd_elf_fprintf_vma): Rename function prototype to
1625 '_bfd_elf_fprintf_vma'.
1626 * bfd.c (bfd_sprintf_vma): Do not invoke bfd_elf_sprintf_vma
1627 directly, instead indirect via the elf_backend_data structure.
1628 (bfd_fprintf_vma): Do not invoke bfd_elf_fprintf_vma directly,
1629 instead indirect via the elf_backend_data structure.
1630 * elf.c (bfd_elf_sprintf_vma): Rename to _bfd_elf_sprintf_vma.
1631 (bfd_elf_fprintf_vma): Rename to _bfd_elf_fprintf_vma.
1632 * elfxx-target.h (elf_backend_sprintf_vma): Initialise if not
1634 (elf_backend_fprintf_vma): Initialise if not already defined.
1635 (struct elf_backend_data): Initialise the
1636 elf_backend_sprintf_vma and elf_backend_fprintf_vma fields.
1638 2001-08-10 Andreas Jaeger <aj@suse.de>
1640 * elf64-sparc.c: Add missing prototypes.
1641 * elf32-cris.c: Likewise.
1642 * elf32-i370.c: Likewise.
1643 * elf64-hppa.c: Likewise.
1644 * elf64-s390.c: Likewise.
1646 2001-08-10 Andreas Jaeger <aj@suse.de>
1648 * elf64-x86-64.c (elf64_x86_64_elf_object_p): Make static.
1649 Add prototypes where needed.
1651 2001-08-10 H.J. Lu <hjl@gnu.org>
1653 * bfd.c (bfd_sprintf_vma): Fix a typo in the last change.
1654 (bfd_fprintf_vma): Likewise.
1656 2001-08-10 H.J. Lu <hjl@gnu.org>
1658 * bfd.c (bfd_sprintf_vma): Don't return void.
1659 (bfd_fprintf_vma): Likewise.
1661 2001-08-10 Andreas Jaeger <aj@suse.de>
1663 * configure.in: Add -Wstrict-prototypes and -Wmissing-prototypes
1665 * configure: Regenerate.
1667 2001-08-10 Alan Modra <amodra@bigpond.net.au>
1669 * elf.c (bfd_elf_sprintf_vma): Add ATTRIBUTE_UNUSED to quiet
1670 warning if not BFD64. Add braces so emacs auto format works.
1671 (bfd_elf_fprintf_vma): Likewise.
1673 * libxcoff.h (struct xcoff_backend_data_rec): Constify src param
1675 * coff-rs6000.c (xcoff_swap_ldhdr_in): Modify type of external
1676 param to agree with libxcoff.h.
1677 (xcoff_swap_ldhdr_out): Likewise.
1678 (xcoff_swap_ldsym_in): Likewise.
1679 (xcoff_swap_ldsym_out): Likewise.
1680 (xcoff_swap_ldrel_in): Likewise.
1681 (xcoff_swap_ldrel_out): Likewise.
1682 (xcoff_create_csect_from_smclas): Likewise.
1683 * coff64-rs6000.c: Add missing prototypes.
1684 (xcoff64_swap_ldhdr_in): Modify type of external param to agree
1686 (xcoff64_swap_ldhdr_out): Likewise.
1687 (xcoff64_swap_ldsym_in): Likewise.
1688 (xcoff64_swap_ldsym_out): Likewise.
1689 (xcoff64_swap_ldrel_in): Likewise.
1690 (xcoff64_swap_ldrel_out): Likewise.
1691 (xcoff64_ppc_relocate_section): Make static.
1692 (xcoff64_slurp_armap): Likewise.
1693 (xcoff64_archive_p): Likewise.
1694 (xcoff64_openr_next_archived_file): Likewise.
1695 (xcoff64_sizeof_headers): Likewise.
1696 (xcoff64_is_lineno_count_overflow): Likewise.
1697 (xcoff64_is_reloc_count_overflow): Likewise.
1698 (xcoff64_loader_symbol_offset): Likewise.
1699 (xcoff64_loader_reloc_offset): Likewise.
1700 * elf64-gen.c: Add missing prototypes.
1702 2001-08-09 H.J. Lu <hjl@gnu.org>
1704 * elf.c (bfd_elf_sprintf_vma): Check ELFCLASS64 only in BFD64.
1705 (bfd_elf_fprintf_vma): Likewise.
1707 2001-08-09 H.J. Lu <hjl@gnu.org>
1709 * bfd-in.h (bfd_elf_sprintf_vma, bfd_elf_fprintf_vma): Moved
1712 * bfd-in2.h: Regenerated.
1714 2001-08-09 H.J. Lu <hjl@gnu.org>
1716 * bfd-in.h (bfd_sprintf_vma): New prototype.
1717 (bfd_fprintf_vma): Likewise.
1718 (bfd_elf_sprintf_vma): Likewise.
1719 (bfd_elf_fprintf_vma): Likewise.
1720 (bfd_printf_vma): New. Defined with bfd_fprintf_vma.
1721 * bfd-in2.h: Regenerated.
1723 * bfd.c (bfd_sprintf_vma): New. Defined.
1724 (bfd_fprintf_vma): Likewise.
1726 * elf.c (bfd_elf_sprintf_vma): New. Defined.
1727 (bfd_elf_fprintf_vma): Likewise.
1729 2001-08-09 Alan Modra <amodra@bigpond.net.au>
1731 * coff-rs6000.c: Add missing prototypes.
1732 (xcoff_ppc_relocate_section, xcoff_is_lineno_count_overflow,
1733 xcoff_is_reloc_count_overflow, xcoff_loader_symbol_offset,
1734 xcoff_loader_reloc_offset): Make static.
1735 * dwarf1.c: Add missing prototypes.
1736 * dwarf2.c: Add missing prototypes.
1737 (struct abbrev_info): Move definition.
1738 (struct attr_abbrev, ABBREV_HASH_SIZE, ATTR_ALLOC_CHUNK): Likewise.
1739 * elf.c: Add missing prototypes.
1740 * elf32-gen.c: Likewise.
1741 * elf32-i386.c: Likewise.
1742 * elf32-ppc.c: Likewise.
1743 (ppc_elf_sort_rela): Use PTR instead of "void *".
1744 * elflink.h: Add missing prototypes. Formatting fixes.
1745 * merge.c: Add missing prototypes.
1746 (last4_eq): Use PTR instead of "void *".
1747 (last_eq): Likewise.
1748 * syms.c: Add missing prototypes.
1750 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1752 * bfd.c: Fix formatting.
1753 * bfd-in2.h: Regenerate.
1755 2001-08-09 Nick Clifton <nickc@cambridge.redhat.com>
1757 * elf32-arc.c (R_ARC_B22_PCREL): Change 'partial_inplace' to
1758 true (this target uses REL relocations) and 'pcrel_offset' to
1759 false (the PC is implied, not stored in the offset).
1761 2001-08-08 Alan Modra <amodra@bigpond.net.au>
1763 1999-10-19 Linus Nordberg <linus@swox.se>
1764 * elf-bfd.h (struct elf_backend_data): Add want_got_sym.
1765 * elfxx-target.h (elf_backend_want_got_sym): Define.
1766 (elfNN_bed): Add elf_backend_want_got_sym.
1767 * elflink.c (_bfd_elf_create_got_section): Define
1768 _GLOBAL_OFFSET_TABLE_ only if bed->want_got_sym.
1770 2001-08-08 Alexandre Oliva <aoliva@redhat.com>
1772 * dwarf2.c (struct dwarf2_debug): Add sec, sec_info_ptr and syms.
1773 (find_rela_addend): New function.
1774 (parse_comp_unit): Call it to find the abbrev offset addend.
1775 (_bfd_dwarf2_find_nearest_line): Initialize and maintain the new
1776 members of dwarf2_debug as debugging information is read.
1778 2001-08-07 Nick Clifton <nickc@cambridge.redhat.com>
1780 * coff-sh.c (sh_coff_reloc_type_lookup): Provide for sh-coff
1781 targets as well as sh-pe.
1783 2001-08-03 Ben Harris <bjh21@netbsd.org>
1785 * elf32-arm.h (elf32_arm_final_link_relocate): Include offset of
1786 reloc from start of section when computing value for R_ARM_REL32
1789 2001-08-03 Alan Modra <amodra@bigpond.net.au>
1791 From H.J. Lu <hjl@gnu.org>
1792 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Don't
1793 keep relocs for undefined syms if there are no dynamic sections in
1795 * elf32-hppa.c (allocate_plt_and_got_and_discard_relocs): Likewise.
1797 2001-08-02 Paul Sokolovsky <paul.sokolovsky@technologist.com>
1799 * cofflink.c (coff_link_check_ar_symbols): also search for
1800 __imp__symbol as well as _symbol.
1801 * linker.c (_bfd_generic_link_add_archive_symbols): also
1802 search for __imp__symbol as well as _symbol.
1804 2001-08-01 Adam Nemet <anemet@lnxw.com>
1806 * elf.c (elf_sort_sections): Return zero only as the last step.
1808 2001-08-01 Nick Clifton <nickc@cambridge.redhat.com>
1810 * config.bfd (arm-vxworks): Change name of define from VXWORKS to
1812 (arm-epoc-pe): Define ARM_COFF_BUGFIX.
1813 coff-arm.c (coff_arm_relocate_section): Replace VXWORKS with
1816 2001-07-30 Rainer Orth <ro@TechFak.Uni-Bielefeld.DE>
1818 * libecoff.h (_bfd_ecoff_styp_to_sec_flags): Changed return type
1819 to match corresponding bfd_coff_backend data member.
1821 2001-07-24 Alan Modra <amodra@bigpond.net.au>
1823 * Makefile.am: Update dependencies with "make dep-am".
1824 * Makefile.in: Regenerate
1826 2001-07-15 H.J. Lu <hjl@gnu.org>
1828 * Makefile.am (po/SRC-POTFILES.in): Use tmp.src instead of tmp.
1829 (po/BLD-POTFILES.in): Use tmp.bld instead of tmp.
1830 * Makefile.in: Regenerate.
1832 2001-07-11 H.J. Lu <hjl@gnu.org>
1834 * elf64-alpha.c (elf64_alpha_check_relocs): Set the ALLOC|LOAD
1835 flags when creating the reloc section if the ALLOC flag in the
1836 source section is set.
1838 2001-07-11 Steve Ellcey <sje@cup.hp.com>
1840 * reloc.c (bfd_reloc_code_type): Add IA64 relocs
1841 BFD_RELOC_IA64_LTOFF_FPTR32MSB and BFD_RELOC_IA64_LTOFF_FPTR32LSB
1842 * bfd-in2.h: Regenerate.
1843 * libbfd.h: Regenerate.
1844 * elfxx-ia64.c (ia64_howto_table): Define how to handle
1846 (elfNN_ia64_reloc_type_lookup): Handle new relocations.
1847 (elfNN_ia64_check_relocs): Likewise.
1848 (elfNN_ia64_install_value): Likewise.
1849 (elfNN_ia64_relocate_section): Likewise.
1851 2001-07-11 Jakub Jelinek <jakub@redhat.com>
1853 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Remove support for
1855 (elf32_sparc_check_relocs): Likewise.
1856 Only create .rela section for alloced sections in shared libraries.
1857 (elf32_sparc_relocate_section): Likewise.
1858 Remove redundant check.
1859 Optimize unaligned reloc usage.
1860 * elf64-sparc.c (sparc64_elf_relocate_section): Remove redundant
1863 2001-07-11 H.J. Lu <hjl@gnu.org>
1865 * elf64-alpha.c (elf64_alpha_check_relocs): Only use the same
1866 ALLOC|LOAD flags as the source section for debugging sections
1867 when creating the reloc section.
1869 2001-07-05 Jim Wilson <wilson@redhat.com>
1871 * linker.c (_bfd_generic_link_add_one_symbol, case BIG): Use
1872 the section of the bigger symbol.
1874 * syms.c (bfd_is_local_label): Return false if BSF_SECTION_SYM.
1876 2001-07-05 Nick Clifton <nickc@cambridge.redhat.com>
1878 * peicode.h (coff_swap_scnhdr_in): For sections containing
1879 uninitialised data, only set their size to s_paddr if this does
1880 not reset their size to zero. MS's latest compilers will set
1883 2001-07-04 H.J. Lu <hjl@gnu.org>
1885 * bfd/elf32-mips.c (_bfd_mips_elf_final_write_processing):
1886 Handle bfd_mach_mips4400, bfd_mach_mips4600 and
1889 2001-07-03 Mark Elbrecht <snowball3@softhome.net>
1891 * bfd.c (bfd_get_sign_extend_vma): Support DJGPP COFF targets.
1893 * cofflink.c (_bfd_coff_link_input_bfd): Skip section symbols from
1894 sections being discarded.
1896 2001-06-30 Alan Modra <amodra@bigpond.net.au>
1898 * elfcore.h (elf_core_file_p): Call bfd_section_from_phdr directly
1899 instead of _bfd_elfcore_section_from_phdr.
1900 * elf-bfd.h (_bfd_elfcore_section_from_phdr): Remove.
1901 * elf.c (_bfd_elfcore_section_from_phdr): Remove.
1902 (_bfd_elfcore_make_pseudosection): Expedite tail-call.
1903 (elfcore_grok_prstatus): Likewise.
1904 (elfcore_grok_lwpstatus): Likewise.
1905 (bfd_get_elf_phdr_upper_bound): Likewise.
1906 (elfcore_make_note_pseudosection): Formatting.
1907 (_bfd_elfcore_strndup): Formatting.
1908 * elf32-mips.c (mips_elf_sym_is_global): Formatting.
1909 (_bfd_elf32_mips_grok_prstatus): Expedite tail-call.
1911 2001-06-29 Daniel Jacobowitz <drow@mvista.com>
1913 * elf-bfd.h: Add prototypes for _bfd_elfcore_make_pseudosection
1914 and _bfd_elfcore_strndup.
1915 (struct elf_backend_data): Add elf_backend_grok_prstatus
1916 and elf_backend_grok_psinfo.
1917 * elf.c (_bfd_elfcore_make_pseudosection): New function.
1918 (elfcore_grok_prstatus): Use it.
1919 (elfcore_make_note_pseudosection): Likewise.
1920 (elfcore_strndup): Rename to...
1921 (_bfd_elfcore_strndup): Here, and make global.
1922 (elfcore_grok_psinfo): Use _bfd_elfcore_strndup.
1923 (elfcore_grok_note): Call elf_backend_grok_prstatus
1924 and elf_backend_grok_psinfo if available.
1925 * elf32-mips.c (_bfd_elf32_mips_grok_prstatus): New function.
1926 (_bfd_elf32_mips_grok_psinfo): New function.
1927 (elf_backend_grok_prstatus): Define.
1928 (elf_backend_grok_psinfo): Define.
1929 * elfxx-target.h (elf_backend_grok_prstatus): Default to NULL.
1930 (elf_backend_grok_psinfo): Likewise.
1931 (elfNN_bed): Include elf_backend_grok_prstatus and
1932 elf_backend_grok_psinfo.
1934 2001-06-29 H.J. Lu <hjl@gnu.org>
1936 * elf32-hppa.c (elf32_hppa_finish_dynamic_sections): Check if
1937 hplink->sgot is NULL before filling GOT. Check if hplink->splt
1938 is NULL before filling PLT.
1940 2001-06-29 Alan Modra <amodra@bigpond.net.au>
1942 * elflink.h (elf_link_output_extsym): Revert 1999-04-10.
1944 2001-06-27 Alan Modra <amodra@bigpond.net.au>
1946 * elf32-hppa.c (elf32_hppa_check_relocs): Don't make syms dynamic
1948 (elf32_hppa_adjust_dynamic_symbol): ..nor here..
1949 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1952 * elf32-hppa.c (RELATIVE_DYNAMIC_RELOCS): Delete.
1953 (IS_ABSOLUTE_RELOC): Define.
1954 (elf32_hppa_link_hash_entry): Always include reloc_entries field.
1955 (hppa_link_hash_newfunc): Always init it.
1956 (elf32_hppa_check_relocs): Mark symbols as ELF_LINK_NON_GOT_REF to
1957 create COPY relocs only when the reloc is in a read-only section.
1958 Instead, allocate space for a dynamic reloc to reference the
1959 library symbol directly. Keep track of space we allocate using
1961 (hppa_discard_copies): Delete, and move code to..
1962 (allocate_plt_and_got): ..here. Rename to
1963 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
1964 relocs for non-shared link.
1965 (elf32_hppa_size_dynamic_sections): Update calls to above.
1966 (elf32_hppa_relocate_section): Write out the dynamic relocs used
1967 in lieu of COPY relocs.
1969 * elf32-i386.c (elf_i386_check_relocs): Don't make syms dynamic
1971 (elf_i386_adjust_dynamic_symbol): ..nor here..
1972 (allocate_plt_and_got_and_discard_relocs): .. instead do so here
1974 (elf_i386_size_dynamic_sections): Fix a comment.
1975 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Rearrange code
1976 involved in writing reloc out.
1978 2001-06-25 Alan Modra <amodra@bigpond.net.au>
1980 * elf32-i386.c (elf_i386_check_relocs <R_386_32, R_386_PC32>):
1981 Ensure syms are dynamic if we might be emitting a reloc.
1982 (allocate_plt_and_got_and_discard_relocs): Don't discard relocs
1983 for undefweak or undefined syms..
1984 (elf_i386_relocate_section <R_386_32, R_386_PC32>): .. and emit.
1986 * elf32-i386.c (allocate_plt_and_got_and_discard_relocs): Discard
1987 relocs without ELF_LINK_HASH_DEF_DYNAMIC set.
1988 (elf_i386_relocate_section <R_386_32, R_386_PC32>): Remove
1989 redundant bfd_link_hash_defined, bfd_link_hash_defweak test.
1991 2001-06-24 H.J. Lu <hjl@gnu.org>
1993 * cpu-i960.c (scan_960_mach): Don't modify const char *. Use
1994 strncasecmp/strcasecmp instead of strncmp/strcmp.
1996 2001-06-23 H.J. Lu <hjl@gnu.org>
1998 * elf32-i386.c (elf_i386_relocate_section <R_386_32, R_386_PC32>):
1999 Check ELF_LINK_HASH_DEF_DYNAMIC to see if a symbol is not defined
2000 in the regular object file and treat the weak definition as
2003 2001-06-23 Alan Modra <amodra@bigpond.net.au>
2005 * elf32-i386.c (elf_i386_relocate_section <R_386_GOT32>): Tighten
2006 unresolved_reloc test to exclude cases where we use "relocation"
2007 before setting it to point into the .got. Reinstate fudge for
2008 unresolved relocs in debugging sections.
2010 * elf32-i386.c (elf_i386_relocate_section): Replace ugly
2011 complicated tests for unresolvable relocs with a simple direct
2012 scheme using "unresolved_reloc" var.
2014 * elf32-i386.c (struct elf_i386_pcrel_relocs_copied): Rename to
2015 elf_i386_dyn_relocs. Update comment.
2016 (struct elf_i386_link_hash_entry): Rename pcrel_relocs_copied to
2018 (elf_i386_adjust_dynamic_symbol): Remove a BFD_ASSERT, change
2020 (allocate_plt_and_got_and_discard_relocs): Replace BFD_ASSERT with
2022 (elf_i386_size_dynamic_sections): Likewise.
2023 (elf_i386_finish_dynamic_symbol): Likewise.
2024 (elf_i386_finish_dynamic_sections): Likewise.
2025 (elf_i386_relocate_section): Likewise. Tidy R_386_GOT32 and error
2028 Avoid creating COPY relocs if possible.
2029 * elf32-i386.c (elf_i386_check_relocs): Tweak condition under
2030 which .got created. Mark symbols used by R_386_32 and R_386_PC32
2031 relocs as ELF_LINK_NON_GOT_REF to create COPY relocs only when the
2032 reloc is in a read-only section. Instead, allocate space for a
2033 dynamic reloc to reference the library symbol directly. Keep
2034 track of space we allocate using pcrel_relocs_copied.
2035 (discard_copies): Delete, and move code to ..
2036 (allocate_plt_and_got): ..here. Rename to
2037 allocate_plt_and_got_and_discard_relocs. Remove unneeded dynamic
2038 relocs for non-shared link.
2039 (elf_i386_size_dynamic_sections): Update calls to above functions.
2040 (elf_i386_relocate_section): Write out the dynamic relocs. Add
2041 more ugly logic to avoid "unresolvable relocation" error. Use
2042 htab shortcut in place of elf_hash_table macro.
2043 (elf_i386_finish_dynamic_sections): Allow that dynamic .got may
2044 not always be created now.
2046 2001-06-20 Bo Thorsen <bo@suse.co.uk>
2048 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix linking of
2051 2001-06-18 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2053 * configure.host (mips64-*-linux): Reformat.
2055 2001-06-21 Alan Modra <amodra@bigpond.net.au>
2057 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Always
2058 allocate local .got space. Use shortcuts from hash table for .got
2059 and .plt rather than comparing section names.
2060 (elf32_hppa_check_relocs): Use local_plt_refcounts var rather than
2061 adjusting index into local_got_refcounts to document what we are
2063 (elf32_hppa_relocate_section): Similarly for local_plt_offsets.
2064 Tidy .got and .plt error checking.
2066 2001-06-20 Catherine Moore <clm@redhat.com>
2068 * elf-bfd.h (struct elf_backend_data):
2069 elf_backend_emit_relocs: New field: Function for emitting
2071 elf_backend_count_relocs: New field: Function for determining
2072 the number of relocs to be emitted.
2073 * elfxx-target.h: Provide default (NULL) values for
2074 elf_backend_emit_relocs and elf_backend_count_relocs.
2075 * elflink.h (elf_link_size_reloc_section): Make the hash table
2076 big enough to hold the relocs counted by either reloc_count or
2078 (elf_bfd_final_link) emit_relocs: New boolean, set if relocs
2079 should be emitted, either because of a command line option
2080 stored in the info structure or because the target provides a
2081 special reloc emitting function.
2082 If the target provides a reloc counting function use it,
2083 unless performing a relocatable link or emitting all relocs.
2084 Also set the SEC_RELOC flag on any output section which will
2086 (elf_link_input_bfd): emit_relocs: New boolean, set if relocs
2087 should be emitted, either because of a command line option
2088 stored in the info structure or because the target provides a
2089 special reloc emitting function.
2090 If the target provides a reloc emitting function, use it,
2091 unless performing a relocatable link or emitting all relocs.
2093 2001-06-20 H.J. Lu <hjl@gnu.org>
2095 * elf32-i386.c (elf_i386_size_dynamic_sections): Always
2096 allocate local .got space.
2098 2001-06-19 Andreas Jaeger <aj@suse.de>
2100 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix creation of
2103 2001-06-18 Hans-Peter Nilsson <hp@axis.com>
2105 * elflink.h (struct elf_assign_sym_version_info): Remove member
2106 export_dynamic. All users changed to use info member.
2107 NAME(bfd_elf,size_dynamic_sections)): Remove parameter
2108 export_dynamic, instead use member in parameter info.
2109 * bfd-in.h (bfd_elf32_size_dynamic_sections,
2110 bfd_elf64_size_dynamic_sections): Update prototype.
2111 * bfd-in2.h: Regenerate.
2113 2001-06-18 H.J. Lu <hjl@gnu.org>
2115 * elflink.h (elf_info_failed): Add a new field, verdefs.
2116 (NAME(bfd_elf,size_dynamic_sections): Pass verdefs to
2118 (elf_export_symbol): Check eif->verdefs to decide if a symbol
2121 2001-06-17 H.J. Lu <hjl@gnu.org>
2123 * elf32-mips.c (mips_elf_link_hash_entry): Add a new field,
2124 readonly_reloc, to record if a relocation in the .rel.dyn
2125 section is against a read-only section.
2126 (mips_elf_link_hash_newfunc): Initialize the readonly_reloc
2128 (_bfd_mips_elf_check_relocs): Record if there is a relocation
2129 in the .rel.dyn section against a read-only section by setting
2130 DF_TEXTREL or readonly_reloc.
2131 (_bfd_mips_elf_copy_indirect_symbol): Copy readonly_reloc if
2133 (_bfd_mips_elf_adjust_dynamic_symbol): Record DF_TEXTREL if
2134 there is a relocation in the .rel.dyn section against a
2136 (_bfd_mips_elf_size_dynamic_sections): Set DT_TEXTREL if
2139 2001-06-12 Nick Clifton <nickc@cambridge.redhat.com>
2141 * coffcode.h (styp_flags_to_sec_flags): Change to a boolean
2142 function. Move flagword result into parameter list. Remove
2143 comment about setting bfd_error_handler to intercept failure
2145 * coffgen.c (make_a_section_from_file): Examine result of
2146 calling bfd_coff_styp_to_sec_flags and pass a failure back to
2148 * ecoff.h (styp_flags_to_sec_flags): Change to a boolean
2149 function. Move flagword result into parameter list.
2150 * libcoff.h: Regenerate.
2151 * libecoff.h: Regenerate.
2153 2001-06-13 Nick Clifton <nickc@cambridge.redhat.com>
2155 * aoutx.h (adjust_z_magic): Only pad the tesxt section if the data
2156 section is going to follow it.
2158 2001-06-12 Catherine Moore <clm@redhat.com>
2160 * elflink.h (elf_gc_propagate_vtable_entries): Replace FILE_ALIGN
2161 with the file_align entry from elf_backend_data.
2162 (elf_gc_smash_unused_vtentry_relocs): Likewise.
2163 (elf_gc_record_vtentry): Likewise.
2165 2001-06-10 Alan Modra <amodra@bigpond.net.au>
2167 * elflink.h: Whitespace changes.
2168 (elf_link_read_relocs_from_section): Use "unsigned int" iterator
2169 rather than "unsigned char".
2170 (elf_link_output_relocs): Likewise.
2171 (elf_link_input_bfd): Likewise.
2172 (elf_reloc_link_order): LIkewise.
2173 * elf.c: s/CONST/const/. Whitespace changes.
2174 * elf32-mips.c: Formatting fix.
2176 * Makefile.am (SOURCE_HFILES): Include xcoff-target.h, remove xcoff.h.
2177 * Makefile.in: Regenerate.
2178 * po/Make-in: Remove trailing tab.
2180 2001-06-09 Philip Blundell <philb@gnu.org>
2182 * elf32-arm.h (elf32_arm_plt0_entry): Correct error in last
2184 (elf32_arm_plt_entry): Likewise.
2186 2001-06-08 H.J. Lu <hjl@gnu.org>
2188 * elf.c (swap_out_syms): Keep names for global section symbols.
2190 2001-06-07 H.J. Lu <hjl@gnu.org>
2192 * config.bfd: Put back ecoff for Linux/mips. Firmwares on some
2193 MIPS-based machines need it.
2195 2001-06-07 H.J. Lu <hjl@gnu.org>
2197 * elf32-mips.c (_bfd_mips_elf_object_p): Set the bad symtab
2200 * config.bfd: Remove ecoff from Linux/mips.
2202 2001-06-07 Andreas Jaeger <aj@suse.de>
2204 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Add an
2206 (elf64_x86_64_check_relocs): Fix VTENTRY relocation; set an
2207 alignment of 8 for .rela sections; handle further relocations.
2209 2001-06-06 Christian Groessler <cpg@aladdin.de>
2211 * coff-z8k.c: Fix formatting.
2212 Fix howtos: howto->size was always 1.
2214 2001-06-05 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2216 * configure.host (mips64*-*-linux*): Define.
2218 2001-06-05 Alan Modra <amodra@bigpond.net.au>
2220 * elf32-i386.c (elf_i386_discard_copies): Rename to
2221 discard_copies, and use elf_link_hash_entry arg rather than
2222 elf_i386_link_hash_entry.
2223 (elf_i386_link_hash_traverse): Delete.
2224 (elf_i386_size_dynamic_sections): Adjust call to discard_copies.
2225 Tidy sizing of dynamic sections.
2226 (elf_i386_check_relocs <R_386_32, R_386_PC32>): Reference count
2227 possible .plt entries.
2228 (elf_i386_gc_sweep_hook): Likewise.
2229 (elf_i386_adjust_dynamic_symbol): Discard .plt entries for
2230 everything with plt.refcount <= 0.
2232 * elf32-i386.c (elf_i386_check_relocs): Don't allocate .got and
2234 (elf_i386_gc_sweep_hook): ..and no need to deallocate here..
2235 (elf_i386_adjust_dynamic_symbol): ..and don't allocate .plt and
2237 (allocate_plt_and_got): ..instead do it all here. New function.
2238 (elf_i386_size_dynamic_sections): Allocate local .got space and
2239 call allocate_plt_and_got. No need to zap .relgot if not dynamic.
2240 (bfd_elf32_bfd_final_link): Delete. (ie. use regular final link
2241 rather than gc variety).
2242 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2243 (elf_i386_relocate_section): Use it here and correct handling of
2244 R_386_GOT32. Provide section and offset for "unresolvable
2245 relocation" error message.
2246 (elf_i386_finish_dynamic_symbol): Correct handling of R_386_GOT32.
2248 * elf32-i386.c (struct elf_i386_link_hash_table): Add sgot,
2249 sgotplt, srelgot, splt, srelplt, sdynbss, srelbss fields.
2250 (elf_i386_link_hash_table_create): Init them.
2251 (create_got_section): New function.
2252 (elf_i386_create_dynamic_sections): New function.
2253 (elf_backend_create_dynamic_sections): Set to above.
2254 (elf_i386_check_relocs): Use shortcuts from hash table rather than
2255 calling bfd_get_section_by_name.
2256 (elf_i386_gc_sweep_hook): Likewise.
2257 (elf_i386_adjust_dynamic_symbol): Likewise.
2258 (elf_i386_size_dynamic_sections): Likewise.
2259 (elf_i386_relocate_section): Likewise.
2260 (elf_i386_finish_dynamic_sections): Likewise.
2262 * elf32-hppa.c (allocate_plt_and_got): Skip indirect and warning syms.
2264 2001-06-02 H.J. Lu <hjl@gnu.org>
2266 * elf32-hppa.c (elf32_hppa_object_p): Check ELFOSABI_LINUX
2268 * elf64-hppa.c (elf64_hppa_object_p): Likewise.
2270 2001-06-02 H.J. Lu <hjl@gnu.org>
2272 * aout-cris.c (MACHTYPE_OK): New. Defined.
2274 2001-06-02 Hans-Peter Nilsson <hp@axis.com>
2276 * section.c (_bfd_strip_section_from_output): Handle NULL
2279 2001-06-02 H.J. Lu <hjl@gnu.org>
2281 * config.bfd (powerpc-*-aix*, powerpc-*-beos*, rs6000-*-*): Add
2282 rs6000coff64_vec only if BFD64 is defined.
2283 (powerpc64-*-aix*): Enable only if BFD64 is defined.
2285 2001-06-02 H.J. Lu <hjl@gnu.org>
2287 * coff-ia64.c (ia64coff_object_p): Rewrite with
2288 external_PEI_DOS_hdr and external_PEI_IMAGE_hdr.
2290 2001-06-01 Andreas Jaeger <aj@suse.de>
2292 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add PC8
2293 relocation, small reformatting.
2295 2001-05-29 Andreas Jaeger <aj@suse.de>
2297 * elf64-x86-64.c (elf64_x86_64_check_relocs): Handle R_X86_64_64.
2298 (elf64_x86_64_relocate_section): Likewise.
2300 2001-05-30 Alan Modra <amodra@one.net.au>
2302 * elf32-hppa.c (elf32_hppa_check_relocs): Don't NEED_PLT for
2303 millicode. Don't allocate .got and .rela.got space here..
2304 (elf32_hppa_gc_sweep_hook): ..and no need to deallocate here..
2305 (elf32_hppa_adjust_dynamic_symbol): ..and don't allocate .plt and
2307 (hppa_handle_PIC_calls): ..nor here..
2308 (allocate_plt_and_got): ..instead do it all here. New function.
2309 (elf32_hppa_size_dynamic_sections): Allocate local .got space and
2310 call allocate_plt_and_got. No need to zap .got if not dynamic.
2311 (elf32_hppa_final_link): Call regular bfd_final_link instead of
2312 gc_common_final_link.
2313 (WILL_CALL_FINISH_DYNAMIC_SYMBOL): Define.
2314 (elf32_hppa_relocate_section): Use it here.
2315 (elf32_hppa_finish_dynamic_symbol): Remove superfluous test of
2316 dynamic_sections_created.
2317 (hppa_type_of_stub): Don't LONG_BRANCH_VIA_PLT if millicode sym.
2319 2001-05-28 Andreas Jaeger <aj@suse.de>
2321 * elf64-x86-64.c (elf64_86_64_size_info): Remove, we can use the
2322 generic version since we want a hashsize of 4.
2323 (elf_backend_size_info): Likewise.
2325 2001-05-28 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2327 * elflink.h (elf_link_size_reloc_section): Use bfd_zmalloc instead of
2329 (elf_link_output_relocs): Handle MIPS ELF64 relocations correctly.
2330 (elf_link_input_bfd): Likewise.
2331 (elf_reloc_link_order): Likewise.
2332 (elf_finish_pointer_linker_section): Typo. Handle MIPS ELF64
2333 relocations correctly.
2335 2001-05-28 Nicolas Pitre <nico@cam.org>
2337 * elf32-arm.h: fix PLT generation for big endian ARM
2339 2001-05-28 Alan Modra <amodra@one.net.au>
2341 * elf32-hppa.c (elf32_hppa_relocate_section): Set up .plt entries
2342 for symbols forced local that need plabels.
2343 (elf32_hppa_adjust_dynamic_symbol): Don't allocate space in
2344 .plt.rela for local syms if non-shared.
2345 (hppa_build_one_stub): Mask lsb of plt.offset.
2346 (elf32_hppa_finish_dynamic_symbol): Abort if lsb of plt.offset set.
2347 (clobber_millicode_symbols): Correct comment.
2348 (elf32_hppa_relocate_section): Likewise.
2349 (elf32_hppa_finish_dynamic_symbol): Likewise.
2351 2001-05-28 Jeff Sturm <jsturm@one-point.com>
2353 * reloc.c: Add BFD_RELOC_SPARC_UA16 and BFD_RELOC_SPARC_UA64.
2354 * bfd-in2.h: Regenerate.
2355 * libbfd.h: Regenerate.
2356 * elf32-sparc.c: Enable BFD_RELOC_SPARC_UA16, BFD_RELOC_SPARC_UA32
2357 and BFD_RELOC_SPARC_UA64 mapping
2358 * elf64-sparc.c: Likewise.
2360 2001-05-25 H.J. Lu <hjl@gnu.org>
2362 * Makefile.am (BFD32_BACKENDS): Remove coff-pmac.lo.
2363 (BFD32_BACKENDS_CFILES): Remove coff-pmac.c.
2364 (coff-rs6000.lo): Remove the old dependency.
2365 * Makefile.in: Rebuild.
2367 * configure.in (pmac_xcoff_vec): Replace coff-pmac.lo with
2370 2001-05-25 H.J. Lu <hjl@gnu.org>
2372 * coff-rs6000.c (rs6000coff_vec): Use rs6000coff_core_p,
2373 rs6000coff_core_file_matches_executable_p,
2374 rs6000coff_core_file_failing_command and
2375 rs6000coff_core_file_failing_signal only if AIX_CORE is
2377 (pmac_xcoff_vec): Likewise.
2378 * coff64-rs6000.c (rs6000coff64_vec): Likewise.
2380 2001-05-25 Timothy Wall <twall@redhat.com>
2382 * elfxx-ia64.c (allocate_dynrel_entries): Don't allocate an entry
2383 for __GLOB_DATA_PTR on AIX5. Clean up some relocation bugs.
2385 2001-05-25 H.J. Lu <hjl@gnu.org>
2387 * bfd-in2.h: Regenerated.
2388 * libcoff.h: Likewise.
2390 2001-05-25 Alan Modra <amodra@one.net.au>
2392 * elf32-hppa.c (elf32_hppa_relocate_section): Don't allow
2393 undefined millicode syms in shared libs.
2394 (hppa_build_one_stub): Turn BFD_ASSERTs into aborts.
2395 (elf32_hppa_check_relocs): Likewise.
2396 (elf32_hppa_adjust_dynamic_symbol): Likewise.
2397 (elf32_hppa_size_dynamic_sections): Likewise.
2398 (elf32_hppa_relocate_section): Likewise.
2399 (elf32_hppa_finish_dynamic_symbol): Likewise.
2400 (elf32_hppa_finish_dynamic_sections): Likewise.
2402 2001-05-24 Tom Rix <trix@redhat.com>
2404 * Makefile.am coff-pmac bfd now defined in coff-rs6000.c
2405 xcoff-target.h not used to define rs6000 or ppc bfd.
2408 * bfd-in.h : (struct lineno_cache_entry) promote element "offset"
2411 * coff-rs6000.c : Many changes for 64 bit support. Move common
2412 32/64 code to xcofflink.c. Explictly define the rs6000coff_vec
2415 * coff64-rs6000.c : Many changes for 64 bit support. 64 bit
2416 linker now supported. Explictly define the rs6000coff64_vec.
2418 * coffcode.h : (coff_set_arch_mach_hook) xcoff 64 bit support
2419 (coff_print_aux) same
2420 (coff_write_object_contents) same
2421 (coff_slurp_line_table) same
2423 * coffgen.c : (coff_fix_symbol_name) formatting
2424 (coff_mangle_symbols) xcoff 64 bit support
2425 (coff_write_symbol) same
2426 (coff_write_alien_symbol) same
2427 (coff_write_native_symbol) same
2428 (coff_write_symbols) same
2429 (coff_get_symbol_info) same
2430 (bfd_coff_get_syment) same
2431 (coff_print_symbol) same
2433 * config.bfd : add powerpc64-*-aix* target
2435 * libcoff-in.h : formatting
2437 * libcoff.h : move xcoff extern declarations to libxcoff.h
2439 * libxcoff.h : New file
2441 * xcofflink.c : Many changes for xcoff64 support. Move common
2442 structures to include/coff/xcoff.h. Move specific structure to
2443 backends coff-rs6000.c and coff64-rs6000.c. Use new backend
2444 functions, defined in libxcoff.h, to isolate 32/64 dependencies.
2446 (bfd_xcoff_size_dynamic_sections) : special __rtinit symbol for
2449 (xcoff_build_ldsyms) : handle special __rtinit symbol.
2451 2001-05-23 Alexandre Oliva <aoliva@redhat.com>
2453 * elf64-sparc.c (sparc64_elf_slurp_reloc_table): Fix typo
2456 2001-05-23 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2458 * reloc.c (bfd_reloc_code_real): Add MIPS ELF64 relocations.
2459 * libbfd.h: Regenerate.
2460 * bfd-in2.h: Regenerate.
2462 * aoutx.h (aout_@var{size}_machine_type): Add MIPS r12k support.
2463 * archures.c (bfd_mach_mips12000): Define.
2464 * cpu-mips.c (arch_info_struct): Add MIPS r12k support.
2465 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Add MIPS r12k
2467 (_bfd_mips_elf_size_dynamic_sections): Use official bfd typedef.
2468 * bfd-in2.h: Regenerate.
2469 * elfxx-target.h: Do not redefine bfd_elfNN_bfd_make_debug_symbol.
2471 2001-05-23 kaz Kojima <kkojima@rr.iij4u.or.jp>
2473 * elf32-sh.c (elf_sh_plt0_entry_be, elf_sh_plt0_entry,
2474 elf_sh_plt_entry_be, elf_sh_plt_entry, elf_sh_pic_plt_entry_be,
2475 elf_sh_pic_plt_entry): New PLT code, that does not use r2, since
2476 that is used by GCC.
2478 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2480 * elf-bfd.h (NUM_SHDR_ENTRIES): New macro: compute the number
2481 of entries in a structured section.
2482 * elf.c: Use new macro.
2483 * elf32-i386.c: Use new macro.
2484 * elf32-mips.c: Use new macro.
2485 * elf64-alpha.c: Use new macro.
2486 * elf64-sparc.c: Use new macro.
2487 * elfcode.h: Use new macro.
2488 * elflink.h: Use new macro.
2490 2001-05-23 Nick Clifton <nickc@cambridge.redhat.com>
2492 * bfdint.texi: Replace -oformat with --oformat.
2494 2001-05-21 Andreas Jaeger <aj@suse.de>
2496 * dwarf2.c (decode_line_info): Fix error message.
2497 (read_abbrevs): Fix test for offset as suggested by Alan Modra and
2498 adjust error message.
2500 2001-05-18 H.J. Lu <hjl@gnu.org>
2502 * elflink.h (elf_link_add_object_symbols): Revert the last
2505 2001-05-17 Alan Modra <amodra@one.net.au>
2507 * elf32-hppa.c (clobber_millicode_symbols): Temporarily set
2508 ELF_LINK_FORCED_LOCAL to suit 2001-04-30 change.
2509 (hppa_build_one_stub): Add an assert to check plt.offset.
2511 2001-05-17 H.J. Lu <hjl@gnu.org>
2513 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set the
2514 version definition to basename of the output filename.
2516 2001-05-17 H.J. Lu <hjl@gnu.org>
2518 * elflink.h (elf_link_add_object_symbols): Set DT_NEEDED to
2519 basename of the bfd filename.
2521 2001-05-16 Alan Modra <amodra@one.net.au>
2523 * section.c (asection): Add linker_has_input field.
2524 (STD_SECTION): Adjust initialization to suit.
2525 * ecoff.c (bfd_debug_section): Likewise.
2526 * bfd-in2.h: Regenerate.
2528 2001-05-15 Alexandre Oliva <aoliva@redhat.com>
2530 * elf-m10300.c (mn10300_elf_relax_section): Don't relax
2531 negative 32-bit operands to 16 operands when the operand is
2532 going to be zero-extended by the modified opcode.
2534 2001-05-12 Peter Targett <peter.targett@arccores.com>
2536 * cpu-arc.c (arch_info_struct): Add entry 'base' representing old
2537 name for 'arc5' core versions.
2538 (bfd_arc_arch): Make bfd_mach_arc_6 default.
2540 * elf32-arc.c (arc_elf_object_p): Make E_ARC_MACH_ARC6 default
2542 (arc_elf_final_write_processing): Make bfd_mach_arc_6 default.
2544 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2546 * elfxx-ia64.c (is_unwind_section_name): Consider linkonce unwind
2548 (elfNN_ia64_final_write_processing): Map .gnu.linkonce.ia64unw.FOO
2549 to .gnu.linkonce.t.FOO text section.
2551 2001-05-11 Jakub Jelinek <jakub@redhat.com>
2553 * merge.c (struct sec_merge_hash_entry): Add u.entsize and u.suffix
2554 fields, change sec into secinfo.
2555 (struct sec_merge_info): Add chain, remove last fields.
2556 (struct sec_merge_sec_info): Add next, sec, psecinfo fields.
2557 (sec_merge_hash_lookup): If lookup could not use a string only
2558 because it has bad alignment, mark the old string for deletion.
2559 (sec_merge_add): Add secinfo argument. Don't compute entry's
2560 position, instead record the section.
2561 (sec_merge_emit): Update for the sec into secinfo change in
2562 struct sec_merge_hash_entry.
2563 (_bfd_merge_section): Only record the section for merging, defer
2564 putting strings into the hash table.
2565 (cmplengthentry, last4_eq, last_eq, record_section, merge_strings,
2566 _bfd_merge_sections): New functions.
2567 (_bfd_merged_section_offset): Update for the sec_merge_hash_entry
2569 * libbfd-in.h (_bfd_merge_sections): Add prototype.
2570 (_bfd_nolink_bfd_merge_sections): Define.
2571 * libbfd.h: Likewise.
2572 (bfd_generic_merge_sections): Add prototype.
2573 * targets.c (BFD_JUMP_TABLE_LINK): Add _bfd_merge_sections.
2574 (struct bfd_target): Likewise.
2575 * bfd.c (bfd_merge_sections): Define.
2576 * bfd-in2.h: Rebuilt.
2577 * elf.c (_bfd_elf_merge_sections): New function.
2578 * elf-bfd.h (_bfd_elf_merge_sections): Add prototype.
2579 * elfxx-target.h (bfd_elfNN_bfd_merge_sections): Define.
2580 * reloc.c (bfd_generic_merge_sections): New function.
2581 * vms.c (vms_bfd_merge_sections): New function.
2582 * aout-adobe.c (aout_32_bfd_merge_sections): Define.
2583 * aout-target.h (MY_bfd_merge_sections): Define.
2584 * aout-tic30.c (MY_bfd_merge_sections): Define.
2585 * binary.c (binary_bfd_merge_sections): Define.
2586 * bout.c (b_out_bfd_merge_sections): Define.
2587 * coff-alpha.c (_bfd_ecoff_bfd_merge_sections): Define.
2588 * coffcode.c (coff_bfd_merge_sections): Define.
2589 * coff-mips.c (_bfd_ecoff_bfd_merge_sections): Define.
2590 * i386msdos.c (msdos_bfd_merge_sections): Define.
2591 * i386os9k.c (os9k_bfd_merge_sections): Define.
2592 * ieee.c (ieee_bfd_merge_sections): Define.
2593 * ihex.c (ihex_bfd_merge_sections): Define.
2594 * nlm-target.h (nlm_bfd_merge_sections): Define.
2595 * oasys.c (oasys_bfd_merge_sections): Define.
2596 * ppcboot.c (ppcboot_bfd_merge_sections): Define.
2597 * som.c (som_bfd_merge_sections): Define.
2598 * srec.c (srec_bfd_merge_sections): Define.
2599 * tekhex.c (tekhex_bfd_merge_sections): Define.
2600 * versados.c (versados_bfd_merge_sections): Define.
2601 * xcoff-target.h (_bfd_xcoff_bfd_merge_sections): Define.
2603 2001-05-11 Nick Clifton <nickc@cambridge.redhat.com>
2605 * dwarf1.c (_bfd_dwarf1_find_nearest_line): Change type of 'addr'
2606 to be unsigned long, in order to match its use.
2608 2001-05-10 H.J. Lu <hjl@gnu.org>
2610 * linker.c (_bfd_generic_link_add_one_symbol): Check loop on
2613 2001-05-09 H.J. Lu <hjl@gnu.org>
2615 * elflink.h (elf_link_add_object_symbols): Fix a typo. Allocate
2616 versymhdr->sh_size bytes for extversym instead of hdr->sh_size.
2617 Remove the unused veriable `dynver'.
2619 2001-05-08 Ian Lance Taylor <ian@zembu.com>
2621 * coff-i386.c (coff_i386_reloc): Don't dump core if output_bfd is
2622 NULL or is not COFF.
2623 (coff_i386_rtype_to_howto): Don't dump core if output section
2626 2001-05-07 Thiemo Seufer <seufer@csv.ica.uni-stuttgart.de>
2628 * ecoff.c (bfd_debug_section): Fix initialization.
2629 * elf.c (_bfd_elf_slurp_version_tables): Change maxidx to unsigned, it
2630 is always a positive integer. Cast away sign mismatch.
2631 * elf32-mips.c: Fix misleading comment and typo.
2632 (_bfd_mips_elf_section_from_bfd_section): Remove unused attribute, use
2634 * elflink.c: Fix typo.
2635 (_bfd_elf_create_dynamic_sections): Remove superfluous initialization.
2636 * ecoffswap.h (ecoff_swap_fdr_in): Cast away sign mismatch.
2638 2001-05-04 Richard Henderson <rth@redhat.com>
2640 * elf64-alpha.c (SREL16, SREL32, SREL64): Set pcrel_offset true.
2642 2001-05-04 Nick Clifton <nickc@cambridge.redhat.com>
2644 * elf32-arm.h (elf32_arm_final_link_relocate): Set
2645 EF_ARM_HASENTRY if the start address is set.
2647 2001-05-03 Nick Clifton <nickc@cambridge.redhat.com>
2649 * targets.c (_bfd_target_vector_entries): Compute value based on
2650 the size of the _bfd_target_vector and not bfd_target_vector.
2652 2001-05-03 H.J. Lu <hjl@gnu.org>
2654 * elfcode.h: Include "libiberty.h".
2656 * elflink.h (elf_link_add_object_symbols): Set
2657 elf_dt_name (abfd) to basename of the bfd filename.
2658 (NAME(bfd_elf,size_dynamic_sections)): Set vn_file to basename
2659 of the bfd filename.
2661 2001-05-03 Andreas Jaeger <aj@suse.de>
2663 * elf64-gen.c (elf_generic_info_to_howto): Add unused attribute.
2664 (elf_generic_info_to_howto_rel): Likewise.
2665 * coff-alpha.c (reloc_nil): Likewise.
2666 (alpha_ecoff_bad_format_hook): Likewise.
2667 (alpha_adjust_reloc_out): Likewise.
2668 (alpha_bfd_reloc_type_lookup): Likewise.
2669 (alpha_convert_external_reloc): Likewise.
2670 * elf64-alpha.c (elf64_alpha_reloc_nil): Likewise.
2671 (elf64_alpha_reloc_bad): Likewise.
2672 (elf64_alpha_reloc_gpdisp): Likewise.
2673 (elf64_alpha_bfd_reloc_type_lookup): Likewise.
2674 (elf64_alpha_info_to_howto): Likewise.
2675 (elf64_alpha_add_symbol_hook): Likewise.
2676 (elf64_alpha_create_got_section): Likewise.
2677 (elf64_alpha_is_local_label_name): Likewise.
2678 (elf64_alpha_merge_ind_symbols): Likewise.
2679 * elf64-mips.c (mips_elf64_reloc_type_lookup): Likewise.
2680 (mips_elf64_get_reloc_upper_bound): Likewise.
2681 * nlm32-alpha.c (nlm_alpha_mangle_relocs): Likewise.
2682 (nlm_alpha_get_public_offset): Likewise.
2684 2001-05-02 Johan Rydberg <jrydberg@opencores.org>
2686 * elf32-openrisc.c (openrisc_elf_howto_table): Do not complain
2687 about overflow in R_OPENRISC_LO_16_IN_INSN and
2688 R_OPENRISC_HI_16_IN_INSN.Index: bfd/elf32-openrisc.c
2690 2001-04-30 H.J. Lu <hjl@gnu.org>
2692 * elf.c (_bfd_elf_link_hash_hide_symbol): Set dynindx to -1
2693 only for ELF_LINK_FORCED_LOCAL.
2694 * elf32-hppa.c (elf32_hppa_hide_symbol): Likewise.
2695 * elf32-mips.c (_bfd_mips_elf_hide_symbol): Likewise.
2696 * elfxx-ia64.c (elfNN_ia64_hash_hide_symbol): Likewise.
2698 * elflink.h (elf_fix_symbol_flags): Set ELF_LINK_FORCED_LOCAL
2699 if the symbol has hidden or internal visibility.
2701 2001-04-30 Alan Modra <amodra@one.net.au>
2703 * elf32-hppa.c (final_link_relocate): Branch to .+8 for
2704 calls to undefined weak symbols.
2706 2001-04-30 Andreas Jaeger <aj@suse.de>, Andreas Schwab <schwab@suse.de>
2708 * elf64-x86-64.c (elf64_x86_64_relocate_section): Correct test for
2709 R_X86_64_GOTPCREL, don't use assignments instead of comparisons.
2711 2001-04-27 Andreas Jaeger <aj@suse.de>
2713 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_sections): Only swap
2714 out handled entries.
2715 (elf64_x86_64_finish_dynamic_symbol): Set up GOT entries.
2716 (elf64_x86_64_relocate_section): Fix GOTPCREL calculation.
2717 (elf64_x86_64_relocate_section): Merge entries for GOTPCREL and
2720 2001-04-27 Sean McNeil <sean@mcneil.com>
2722 * config.bfd: Add arm-vxworks target.
2723 * coff-arm (coff_arm_relocate_section): Add in symbol value to
2724 addend (fro VXworks targets).
2726 2001-04-26 H.J. Lu <hjl@gnu.org>
2728 * elf32-i386.c (elf_i386_check_relocs): Verify if r_symndx is
2731 2001-04-25 Frank Ch. Eigler <fche@redhat.com>
2733 * bfd-in.h (bfd_cache_close): Declare newly exported function.
2734 * bfd-in2.h: Regenerated.
2736 2001-04-24 Jakub Jelinek <jakub@redhat.com>
2738 * merge.c (struct sec_merge_hash_entry): Add alignment field.
2739 (struct sec_merge_hash): Remove alignment_power.
2740 (sec_merge_hash_newfunc): Clear alignment.
2741 (sec_merge_hash_lookup): Pass alignment as argument.
2742 Use hashp->root.next, not hashp->next to walk the hash chain.
2743 If a string already in the hashtable does not have required
2744 alignment, create a new hashtable entry.
2745 (sec_merge_init): Remove alignment_power argument.
2746 (sec_merge_add): Add alignment argument.
2747 (sec_merge_emit): Alignment is now a per-entity thing, not per
2749 (_bfd_merge_section): Sanity check even non-SEC_STRINGS sections
2750 for proper alignment.
2751 Pass alignment information to sec_merge_add.
2753 2001-04-24 Christian Groessler <cpg@aladdin.de>
2755 * coff-z8k.c (extra_case): added handler for R_DISP7, R_CALLR
2756 and R_REL16 reloc types; accept odd values for R_REL16 type
2758 2001-04-24 Johan Rydberg <jrydberg@opencores.org>
2760 * cpu-openrisc.c: New file.
2761 * elf32-openrisc.c: Likewise.
2763 * Makefile.am (ALL_MACHINES): Add cpu-openrisc.lo.
2764 (ALL_MACHINES_CFILES): Add cpu-openrisc.c.
2765 (BFD32_BACKENDS): Add elf32-openrisc.lo.
2766 (BFD32_BACKENDS_CFILES): Add elf32-openrisc.c.
2767 (cpu-openrisc.lo, elf32-openrisc.lo): New rules.
2768 * Makefile.in: Regenerated.
2769 * config.bfd: (openrisc-*-elf): New target.
2770 * configure.in (bfd_elf32_openrisc_vec): New vector.
2771 * configure: Regenerated.
2772 * libbfd.h: Regenerated.
2773 * bfd-in2.h: Regenerated.
2774 * reloc.c: Add OpenRISC relocations.
2775 * targets.c (bfd_elf32_openrisc_vec): Declare.
2776 (bfd_target_vect): Add bfd_elf32_openrisc_vec.
2777 * archures.c (enum bfd_architecture): Add bfd_arch_openrisc.
2778 (bfd_openrisc_arch): Declare.
2779 (bfd_archures_list): Add bfd_openrisc_arch.
2780 * elf.c (prep_headers): Add bfd_arch_openrisc.
2782 2001-04-23 Bo Thorsen <bo@suse.de>
2784 * elf64-x86-64.c: Add c++ vtable hack.
2785 Small whitespace and comment changes.
2787 2001-04-19 Andreas Jaeger <aj@suse.de>
2789 * elf64-x86-64.c (elf64_x86_64_plt0_entry): Fix instructions.
2790 (elf64_x86_64_plt_entry): Likewise.
2791 (elf64_x86_64_finish_dynamic_sections): Fix PLT0 generation.
2792 (elf64_x86_64_finish_dynamic_symbol): Fix PLT generation.
2794 2001-04-17 Hans-Peter Nilsson <hp@axis.com>
2796 * elf32-cris.c: Tweak comments related to dynamic linking.
2797 (cris_elf_relocate_section): When not creating shared object, fill
2798 in the .got table for any symbol not in the dynamic symbol table.
2799 (elf_cris_finish_dynamic_symbol): When not creating shared object,
2800 only emit a .got.rela reloc if the symbol is in the dynamic symbol
2802 (cris_elf_check_relocs): Use variable r_type in all places rather
2803 than the original expression. Add default case in switch for
2805 (elf_cris_size_dynamic_sections): Iterate over
2806 elf_cris_discard_excess_program_dynamics when not creating shared
2808 (elf_cris_discard_excess_dso_dynamics): Renamed from
2809 elf_cris_discard_copies. Correct typo, s/Rel/Rela/.
2810 (elf_cris_discard_excess_program_dynamics): New.
2812 2001-04-14 Mark Elbrecht <snowball3@bigfoot.com>
2814 * coffcode.h (coff_write_object_contents): Use
2815 bfd_coff_swap_filehdr_out instead of coff_swap_filehdr_out.
2817 2001-04-14 H.J. Lu <hjl@gnu.org>
2819 * bfd-in2.h: Regenerate.
2821 2001-04-14 Jakub Jelinek <jakub@redhat.com>
2823 * section.c (STD_SECTION): Add entsize.
2825 2001-04-13 H.J. Lu <hjl@gnu.org>
2827 * section.c (SEC_MERGE): Define new flag for merging.
2828 (SEC_STRINGS): Likewise.
2829 (entsize): New field.
2831 2001-04-13 Roger Sayle <roger@metaphorics.com>
2833 * coff-i386.c (TARGET_SYM): SEC_READONLY is an applicable section
2834 flag on pe-i386 targets.
2836 2001-04-13 Jakub Jelinek <jakub@redhat.com>
2838 * libbfd-in.h (_bfd_merge_section): New.
2839 (_bfd_write_merged_section): New.
2840 (_bfd_merged_section_offset): New.
2841 * libbfd.h: Rebuilt.
2842 * linker.c (_bfd_generic_link_output_symbols): Handle
2844 * aoutx.h (aout_link_write_symbols): Likewise.
2845 * pdp11.c (aout_link_write_symbols): Likewise.
2846 * elflink.h (elf_link_add_object_symbols): Call _bfd_merge_section.
2847 (elf_bfd_final_link): Adjust global symbols pointing into SEC_MERGE
2849 (elf_link_sec_merge_syms): New.
2850 (elf_link_input_bfd): Call _bfd_merged_section_offset
2851 and _bfd_write_merged_section.
2852 Handle discard_sec_merge.
2853 * elf-bfd.h (struct elf_link_hash_table): Add merge_info
2855 (struct bfd_elf_section_data): Likewise.
2856 * elf.c (_bfd_elf_make_section_from_shdr): Set SEC_MERGE and
2857 SEC_STRINGS section flags and entsize from their ELF counterparts.
2858 (_bfd_elf_link_hash_table_init): Initialize merge_info.
2859 (elf_fake_sections): Set SHF_MERGE, SHF_STRINGS and sh_entsize
2860 from their BFD counterparts.
2861 * merge.c: New file.
2862 * Makefile.am: Add strtab.lo.
2863 * Makefile.in: Rebuilt.
2865 2001-04-09 Hans-Peter Nilsson <hp@axis.com>
2867 * elflink.h (elf_fix_symbol_flags): For non-default visibilities,
2868 only hide symbols marked STV_INTERNAL or STV_HIDDEN.
2870 2001-04-05 Steven J. Hill <sjhill@cotw.com>
2872 * config.bfd (mips*el*-*-linux-gnu*): Use traditional little
2873 endian MIPS ELF target.
2874 * config.bfd (mips*-*-linux-gnu*): Use traditional big endian
2877 * configure.in (bfd_elf64_tradbigmips_vec): New. Traditional
2878 64bit big endian MIPS ELF target.
2879 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2880 endian MIPS ELF target.
2881 * configure: Regenerated.
2883 * elf32-mips.c (IRIX_COMPAT): Handle traditional 64bit and
2884 little endian targets.
2885 (mips_elf_sym_is_global): Handle traditional targets.
2887 * elf64-mips.c (bfd_elf64_tradbigmips_vec): New. Traditional
2888 64bit big endian MIPS ELF target.
2889 (bfd_elf64_tradlittlemips_vec): New. Traditional 64bit little
2890 endian MIPS ELF target.
2892 * targets.c: (_bfd_target_vector): Add bfd_elf64_tradbigmips_vec
2893 and bfd_elf64_tradlittlemips_vec.
2895 2001-04-05 David Mosberger <davidm@hpl.hp.com>
2897 * elf32-i386.c (elf_i386_fake_sections): Treat ".reloc" as an
2898 ordinary "progbits" section.
2900 2001-04-04 Alan Modra <alan@linuxcare.com.au>
2902 * elflink.h (elf_fix_symbol_flags): Call elf_backend_hide_symbol
2903 when -Bsymbolic causes a symbol to no longer need a .plt entry.
2905 2001-04-03 David Mosberger <davidm@hpl.hp.com>
2907 * efi-app-ia32.c (ALIGN_SECTIONS_IN_FILE): Deleted.
2909 2001-03-30 H.J. Lu <hjl@gnu.org>
2911 * efi-app-ia32.c (PEI_TARGET_SUBSYSTEM): Rename from ...
2912 (PEI_DEFAULT_TARGET_SUBSYSTEM): This.
2914 2001-03-26 H.J. Lu <hjl@gnu.org>
2916 * elf32-gen.c (elf32_generic_link_add_symbols): New. Check
2917 if there are any relocations for generic ELF.
2918 (bfd_elf32_bfd_link_add_symbols): Defined to
2919 elf32_generic_link_add_symbols.
2920 * elf64-gen.c (elf64_generic_link_add_symbols): New. Check
2921 if there are any relocations for generic ELF.
2922 (bfd_elf64_bfd_link_add_symbols): Defined to
2923 elf64_generic_link_add_symbols.
2925 2001-03-23 Nick Clifton <nickc@redhat.com>
2927 * Makefile.am (BUILD_CFILES): New variable: List of C source
2928 files created in build directory.
2929 (BUILD_HFILES): New variable: List of header files created in
2932 (po/POTFILES.in): Replace rule with empty entry.
2933 (po/SRC-POTFILES.in): New rule: Create a list of source files
2934 in the source directory.
2935 (po/BLD-POTFILES.in): New rule: Create a list of source files
2936 in the build directory.
2937 (MOSTLYCLEAN): Do not delete source files created in build
2939 * Makefile.in: Regenerate.
2940 * configure.in: Insert SRC-POTFILES.in and BLD-POTFILES.in
2942 * configure: Regenerate.
2944 * po/Make-in: Replace occurrences of POTFILES with SRC-POTFILES
2946 Add .. to the search path when building bfd.pot.
2947 Delete POTFILES when performing distclean.
2948 Add comment describing why distclean is broken in maintainer mode.
2949 * po/POTFILES.in: Delete.
2950 * po/SRC-POTFILES.in: New file.
2951 * po/BLD-POTFILES.in: New file.
2952 * po/bfd.pot: Regenerate.
2954 2001-03-22 Hans-Peter Nilsson <hp@axis.com>
2956 * elf32-cris.c: Shlib and PIC support. PCREL tweaks.
2957 (elf_cris_discard_copies, elf_cris_adjust_gotplt_to_got,
2958 elf_cris_try_fold_plt_to_got, elf_cris_link_hash_newfunc,
2959 elf_cris_link_hash_table_create, elf_cris_adjust_dynamic_symbol,
2960 elf_cris_size_dynamic_sections, elf_cris_finish_dynamic_symbol,
2961 elf_cris_finish_dynamic_sections,elf_cris_hide_symbol): New
2963 (cris_elf_howto_table) <R_CRIS_8_PCREL, R_CRIS_16_PCREL,
2964 R_CRIS_32_PCREL>: Correct comments. Set pcrel_offset to false.
2965 <R_CRIS_COPY, R_CRIS_GLOB_DAT, R_CRIS_JUMP_SLOT, R_CRIS_RELATIVE,
2966 R_CRIS_16_GOT, R_CRIS_32_GOT, R_CRIS_16_GOTPLT, R_CRIS_32_GOTPLT,
2967 R_CRIS_32_GOTREL, R_CRIS_32_PLT_GOTREL, R_CRIS_32_PLT_PCREL>:
2968 New HOWTO members for new relocs.
2969 (cris_reloc_map): Map new relocs.
2970 (ELF_DYNAMIC_INTERPRETER): Define.
2971 (PLT_ENTRY_SIZE): Define.
2972 (elf_cris_plt0_entry, elf_cris_plt_entry, elf_cris_pic_plt0_entry,
2973 elf_cris_pic_plt_entry): New, PLT templates.
2974 (struct elf_cris_pcrel_relocs_copied, struct
2975 elf_cris_link_hash_entry, struct elf_cris_link_hash_table): New.
2976 (elf_cris_link_hash_traverse, elf_cris_hash_table): Define.
2977 (cris_final_link_relocate): Check that 16-bit GOT relocs have
2978 positive values. Adjust PCREL relocs to be relative to location
2980 (cris_elf_relocate_section): Handle relocations to dynamic
2981 objects. Handle new relocations. Call error handler when seeing
2982 non-PIC relocation for read-only sections while generating shared
2984 (cris_elf_check_relocs): Set reference counts for GOT and PLT
2986 (bfd_elf32_bfd_link_hash_table_create,
2987 elf_backend_adjust_dynamic_symbol,
2988 elf_backend_size_dynamic_sections,
2989 elf_backend_finish_dynamic_symbol,
2990 elf_backend_finish_dynamic_sections,
2991 elf_backend_create_dynamic_sections, bfd_elf32_bfd_final_link,
2992 elf_backend_hide_symbol, elf_backend_want_got_plt,
2993 elf_backend_plt_readonly, elf_backend_want_plt_sym,
2994 elf_backend_got_header_size, elf_backend_plt_header_size):
2997 * reloc.c: (BFD_RELOC_CRIS_COPY, BFD_RELOC_CRIS_GLOB_DAT,
2998 BFD_RELOC_CRIS_JUMP_SLOT, BFD_RELOC_CRIS_RELATIVE,
2999 BFD_RELOC_CRIS_32_GOT, BFD_RELOC_CRIS_16_GOT,
3000 BFD_RELOC_CRIS_32_GOTPLT, BFD_RELOC_CRIS_16_GOTPLT,
3001 BFD_RELOC_CRIS_32_GOTREL, BFD_RELOC_CRIS_32_PLT_GOTREL,
3002 BFD_RELOC_CRIS_32_PLT_PCREL): New relocs.
3003 * bfd-in2.h, libbfd.h: Regenerate.
3005 2001-03-21 Diego Novillo <dnovillo@redhat.com>
3007 (_bfd_mips_elf_relocate_section): Give a better error message when
3008 a relocation is not recognized.
3010 2001-03-21 Alan Modra <alan@linuxcare.com.au>
3012 * elf32-hppa.c (elf32_hppa_set_gp): Check sec->output_section
3013 non-NULL before attempting to dereference.
3015 2001-03-20 H.J. Lu <hjl@gnu.org>
3017 * configure.in: Remove the redundent AC_ARG_PROGRAM.
3018 * configure: Rebuild.
3020 2001-03-20 Andreas Schwab <schwab@suse.de>
3022 * elf32-m68k.c (elf_m68k_relocate_section): Don't need the
3023 relocation value when resolving a reference from a debugging
3026 2001-03-16 Scott Thomason <SThomaso@hii.com>
3028 * coff64-rs6000.c (xcoff64_swap_sym_out): Fix syntax errors.
3029 (xcoff64_swap_sym_out): Fix syntax errors.
3031 2001-03-16 Richard Sandiford <rsandifo@redhat.com>
3033 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Fix warning.
3035 2001-03-15 Alan Modra <alan@linuxcare.com.au>
3037 * elf32-hppa.c (elf32_hppa_link_hash_entry): Add maybe_pic_call.
3038 (hppa_link_hash_newfunc): Init it.
3039 (hppa_type_of_stub): Only use non-PIC to PIC call stub if caller
3040 section appears to be non-PIC.
3041 (final_link_relocate): Likewise.
3042 (elf32_hppa_adjust_dynamic_symbol): Set maybe_pic_call for any
3043 possible candidate function, and set pic_call for those that will
3044 only have a .plt entry for the PIC call stub.
3045 (hppa_handle_PIC_calls): Set maybe_pic_call.
3047 2001-03-12 DJ Delorie <dj@redhat.com>
3049 * elf32-sh.c (sh_elf_relocate_section): Only relocation
3050 R_SH_DIR8WP* relocs if they're against external symbols, else
3051 they're just for relaxing. Validate the reloc values.
3053 2001-03-12 Stefan Geuken <mail@stefan-geuken.de>
3055 * binary.c (bfd_external_binary_architecture): Declare.
3056 (binary_object_p): If bfd_external_binary_architecture is defined,
3057 set the architecture to this string.
3059 2001-03-11 Philip Blundell <philb@gnu.org>
3061 * elf32-arm.h (elf32_arm_finish_dynamic_symbol): Don't make PLT
3062 entries that could serve as a definition for a weak symbol.
3064 2001-03-08 Nick Clifton <nickc@redhat.com>
3066 * Most files: Update copyright notices using Perl script created
3067 by Kevin Buettner <kevinb@redhat.com>.
3069 2001-03-07 Nick Clifton <nickc@redhat.com>
3071 * elf32-arm.h (elf32_arm_final_link_relocate): Conditionalise
3072 prior patch on ! defined OLD_ARM_ABI.
3074 2001-03-07 Andreas Jaeger <aj@suse.de>
3076 * elf64-x86-64.c (elf64_x86_64_relocate_section): Fix handling of
3077 some relocation values.
3079 2001-03-06 Nick Clifton <nickc@redhat.com>
3081 * elf32-arm.h (elf32_arm_final_link_relocate): Clear bit zero
3082 of offset in BLX(1) instruction.
3083 * coff-arm.c (coff_arm_relocate_section): Clear bit zero of
3084 offset in BLX(1) instruction.
3087 2001-03-06 Nick Clifton <nickc@redhat.com>
3089 * coff-arm.c (coff_arm_reloc_type_lookup): Add
3090 BFD_RELOC_THUMB_PCREL_BLX.
3092 2001-03-06 Igor Shevlyakov <igor@windriver.com>
3094 * archures.c (bfd_default_scan): Add Coldfire CPUs.
3095 * bfd-in2.h: Regenerate.
3096 * cpu-m68k.c: Add Coldfire CPUs for arch table.
3097 * ieee.c (ieee_write_processor): Set proper id for
3100 2001-03-01 D.J. Barrow <djbarrow@de.ibm.com,barrow_dj@yahoo.com>
3102 * configure.in: Add s390 target.
3103 * configure: Regenerate.
3105 2001-02-28 Andreas Jaeger <aj@suse.de>
3107 * elf64-x86-64.c (elf64_x86_64_relocate_section): Add relocation
3110 2001-02-28 Philip Blundell <pb@futuretv.com>
3112 * elf32-arm.h: Update mentions of renamed EF_xx constants.
3113 (elf32_arm_print_private_bfd_data): Handle ARM EABI version 2.
3115 2001-02-27 H.J. Lu <hjl@gnu.org>
3117 * aoutx.h (NAME(aout,bfd_free_cached_info)): Return true if
3118 abfd->tdata.aout_data == NULL.
3120 2001-02-27 Alan Modra <alan@linuxcare.com.au>
3122 * elf32-hppa.c: Correct field selector in stub comments.
3123 (clobber_millicode_symbols): Formatting fix.
3125 * configure.in: Bump version to 2.11.90.
3126 * configure: Regenerate.
3127 * Makefile.am (CFILES): Rename to SOURCE_CFILES.
3128 (CFILES): $SOURCE_CFILES + generated C files.
3129 (POTFILES): Include $HFILES not $SOURCE_HFILES.
3131 * Makefile.in: Regenerate.
3132 * doc/Makefile.in: This too.
3134 2001-02-26 Timothy Wall <twall@cygnus.com>
3136 * elfxx-ia64.c (elfNN_ia64_aix_add_symbol_hook): Remove obsolete
3139 2001-02-26 Nick Clifton <nickc@redhat.com>
3141 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Tidy
3142 up, replacing multiple if statements with a switch.
3143 (handle_COMDAT): New function.
3145 2001-02-26 H.J. Lu <hjl@gnu.org>
3147 * coffcode.h (styp_to_sec_flags) [COFF_WITH_PE version]: Issue
3148 a warning for section flags we do not handle instead of
3151 2001-02-26 Andreas Jaeger <aj@suse.de>
3153 * elf64-x86-64.c (x86_64_elf_howto_table): Fix order of entries.
3155 2001-02-22 Timothy Wall <twall@cygnus.com>
3157 * config.bfd (targ_cpu): Add vectors for ia64-*-aix* (aka Monterey).
3158 * configure.in: Add objects for elf64_ia64_aix vectors.
3159 * configure: Regenerated.
3160 * configure.host: Recognize ia64-*-aix*.
3161 * elfxx-ia64.c: Add hooks for ELF64 on AIX5. Define new vectors
3162 for AIX. AIX5 requires most relocations to be dynamic (*all*
3163 binaries are somewhat similar to shared libraries).
3164 * targets.c: Add elf64_ia64_aix vectors.
3166 2001-02-21 David Mosberger <davidm@hpl.hp.com>
3168 * cpu-ia64-opc.c (elf64_ia64_operands}: Fix typo: error string for
3169 C8 said "1" instead of "8". Clarify error string for IMM22:
3170 "signed integer" instead of just "integer".
3172 2001-02-20 Andreas Jaeger <aj@suse.de>
3174 * elf64-x86-64.c (elf64_x86_64_finish_dynamic_symbol): Don't make
3175 PLT entries that could serve as a definition for a weak symbol.
3177 2001-02-19 Jakub Jelinek <jakub@redhat.com>
3179 * elf32-sparc.c (elf32_sparc_finish_dynamic_symbol): Don't make PLT
3180 entries that could serve as a definition for a weak symbol.
3181 * elf64-sparc.c (sparc64_elf_finish_dynamic_symbol): Likewise.
3183 2001-02-18 David O'Brien <obrien@FreeBSD>
3185 * configure.in: Recognize FreeBSD/arm, FreeBSD/PowerPC, and treat
3186 FreeBSD/i386-CURRENT differently until I can figure out the needed
3188 * configure: Regenerate.
3189 * config.bfd: Recognize FreeBSD/x86-64, FreeBSD/ia64, FreeBSD/arm,
3190 FreeBSD/PowerPC, and FreeBSD/sparc64.
3192 2001-02-18 lars brinkhoff <lars@nocrew.org>
3194 * Makefile.am: Add PDP-11 a.out target.
3195 * config.bfd: Likewise.
3196 * configure.in: Likewise.
3197 * targets.c: Likewise.
3198 * archures.c: Likewise.
3199 * bfd-in2.h: Likewise. Add PDP-11 relocations.
3200 * libbfd.h: Add PDP-11 relocations.
3201 * reloc.c: Likewise.
3202 * cpu-pdp11.c: New file.
3203 * pdp11.c: New file.
3205 * libaout.h (GET_WORD) [ARCH_SIZE==16]: Define.
3206 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3207 (GET_SWORD) [ARCH_SIZE==16]: Likewise.
3208 (PUT_WORD) [ARCH_SIZE==16]: Likewise.
3209 (GET_MAGIC): New macro.
3210 (PUT_MAGIC): Likewise.
3211 * aout-target.h (MY(object_p)): Use GET_MAGIC to read magic word.
3213 2001-02-18 Jim Kingdon <jkingdon@engr.sgi.com>
3215 * irix-core.c (irix_core_core_file_p): Set the architecture (GDB
3216 multiarch needs it).
3218 2001-02-18 H.J. Lu <hjl@gnu.org>
3220 * elflink.h (elf_link_input_bfd): Ignore invalid section symbol
3223 2001-02-18 Kazu Hirata <kazu@hxi.com>
3225 * vms-misc.c: Fix formatting.
3227 2001-02-16 Kazu Hirata <kazu@hxi.com>
3229 * vms.c: Fix formatting.
3231 2001-02-14 H.J. Lu <hjl@gnu.org>
3233 * elf.c (elf_find_function): New function.
3234 (_bfd_elf_find_nearest_line): Call elf_find_function () to find
3235 the file name and function name.
3237 2001-02-14 Nick Clifton <nickc@redhat.com>
3239 * ecoff.c (bfd_debug_section): Update to initialise new fields in
3242 * Makefile.am (BFD32_BACKENDS_CFILES): Remove peigen.c
3243 (BFD64_BACKENDS): Add pepigen.c
3244 Add rules to create peigen.c and pepigen.c from peXXigen.c.
3246 * Makefile.in: Regenerate.
3247 * configure: Regenerate.
3248 * po/POTFILES.in: Regenerate.
3249 * po/bfd.pot: Regenerate.
3251 2001-02-14 H.J. Lu <hjl@gnu.org>
3253 * libcoff-in.h (pe_tdata): Add members target_subsystem and
3254 force_minimum_alignment.
3256 2001-02-14 Bo Thorsen <bo@suse.de>
3258 * elf64-x86-64.c: Small formatting fixes and rearrangements of code.
3259 (elf64_86_64_size_info): Struct added to fix a problem
3260 with the hashtable string entries.
3261 (elf64_x86_64_adjust_dynamic_symbol): Add generation of .got.plt.
3262 (elf64_x86_64_size_dynamic_sections): A FIXME removed.
3263 (elf64_x86_64_size_dynamic_sections): Fix a dynamic entry and
3264 remove the FIXME for this.
3265 (elf64_x86_64_adjust_dynamic_symbol): Fix check for unneeded .plt
3266 section. Also removed the FIXME for it.
3267 (x86_64_elf_howto_table): Use bfd_elf_generic_reloc.
3268 (ELF_DYNAMIC_INTERPRETER): Fix the name of the dynamic linker.
3269 (elf64_x86_64_finish_dynamic_sections): Enable .got.plt writing.
3271 2001-02-13 Richard Henderson <rth@redhat.com>
3273 * elfxx-ia64.c (elfNN_ia64_final_link): Set __gp if required
3274 and not user provided.
3276 2001-02-13 Kazu Hirata <kazu@hxi.com>
3278 * vms.c (vms_print_symbol): Remove unreachable code.
3280 * rs6000-core.c: Fix formatting.
3282 2001-02-13 David Mosberger <davidm@hpl.hp.com>
3284 * peicode.h (coff_swap_filehdr_out) [COFF_IMAGE_WITH_PE]: Define
3285 as _bfd_XXi_only_swap_filehdr_out.
3286 (pe_mkobject) [PEI_FORCE_MINIMUM_ALIGNMENT]: Set
3287 pe->force_minimum_alignment to TRUE.
3288 (pe_mkobject) [PEI_TARGET_SUBSYSTEM]: Set pe->target_subsystem to
3289 PEI_TARGET_SUBSYSTEM.
3290 (pe_print_private_bfd_data): Call
3291 _bfd_XX_print_private_bfd_data_common() instead of
3292 _bfd_pe_print_private_bfd_data_common().
3293 (pe_bfd_copy_private_bfd_data): Call
3294 _bfd_XX_bfd_copy_private_bfd_data_common() instead of
3295 _bfd_pe_bfd_copy_private_bfd_data_common().
3296 (coff_bfd_copy_private_section_data): Define as
3297 _bfd_XX_bfd_copy_private_section_data instead of
3298 _bfd_pe_bfd_copy_private_section_data.
3299 (coff_get_symbol_info): Define as _bfd_XX_get_symbol_info instead
3300 of a _bfd_pe_get_symbol_info.
3304 * peXXigen.c: Renamed from peigen.c.
3305 (COFF_WITH_XX): Define this macro (will get expanded into
3306 COFF_WITH_pep or COFF_WITH_pe, depending on whether this is being
3307 compiled as peigen.c or pepigen.c.
3308 [COFF_WITH_pep]: Include "coff/ia64.h" instead of "coff/i386.h" to
3309 define the canonical PEP structures and definitions.
3310 (_bfd_XXi_swap_aouthdr_out): If pe->force_minimum_alignment is in
3311 effect, enforce minimum file and section alignments. If
3312 extra->Subsystem is IMAGE_SUBSYSTEM_UNKNOWN, set it to
3313 pe->target_subsystem (this defaults to IMAGE_SUBSYSTEM_UNKNOWN,
3314 so, by default, this is a no-op).
3316 * libpei.h: Rename COFF_WITH_PEP to COFF_WITH_pep.
3317 (_bfd_XX_bfd_copy_private_bfd_data_common): Add macros to map
3318 _bfd_XXfoo to _bfd_pepfoo if COFF_WIT_PEP is defined and to
3319 _bfd_pefoo if it's not defined. Use these macros to define
3322 * libcoff.h (pe_tdata): Add members target_subsystem and
3323 force_minimum_alignment.
3325 * efi-app-ia64.c (COFF_WITH_pep): Rename COFF_WITH_PEP to
3327 (PEI_TARGET_SUBSYSTEM): Rename from PEI_DEFAULT_TARGET_SUBSYSTEM.
3329 * configure.in (bfd_efi_app_ia64_vec): Use pepigen.lo instead of
3332 * coff-ia64.c: Rename COFF_WITH_PEP to COFF_WITH_pep.
3333 (AOUTSZ): Rename PEP64AOUTSZ and PEP64AOUTHDR to PEPAOUTSZ and
3336 * Makefile.in (BFD64_BACKENDS): Mention pepigen.lo.
3337 (BFD64_BACKENDS_CFILES): Mention pepigen.c
3338 (peigen.c): Add rule to generate from peXXigen.c.
3340 (pepigen.lo): List dependencies for pepigen.lo.
3342 2001-02-13 Alan Modra <alan@linuxcare.com.au>
3344 * elf32-hppa.c (elf32_hppa_set_gp): Handle weak $global$. If
3345 $global$ referenced but not defined, set its value here.
3347 2001-02-09 Bo Thorsen <bo@suse.de>
3349 * elf64-x86-64.c (elf64_x86_64_check_relocs): Set .rela.got section
3351 (elf64_x86_64_check_relocs): Write R_X86_64_GOTPCREL GOT entry
3353 (elf64_x86_64_relocate_section): Fix formatting.
3354 (elf64_x86_64_relocate_section): Fix addend for relocation of
3355 R_X86_64_(8|16|32|PC8|PC16|PC32).
3357 2001-02-12 Jan Hubicka <jh@suse.cz>
3359 * elf64-x86-64.c (x86_64_elf_howto): Fix name of R_X86_64_GOTPCREL.
3361 2001-02-11 H.J. Lu <hjl@gnu.org>
3363 * elflink.h (elf_bfd_final_link): Use file_align for SYMTAB
3366 2001-02-11 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3368 * elf32-mips.c (mips_elf_create_dynamic_relocation): Undo patch
3369 from 2000-10-13. Do not add the symbol's value for R_MIPS_REL32
3370 relocations against dynsym symbols.
3372 * elf32-mips.c (elf_mips_howto_table): Fix the comment on
3373 the R_MIPS_26 relocation.
3374 (mips_elf_calculate_relocation): Use (p + 4) instead of p for
3375 the R_MIPS_26 relocation.
3376 (mips_elf_perform_relocation): Fix the comment on the R_MIPS16_26
3378 * elf64-mips.c (mips_elf64_howto_table_rel): Fix the comment on
3379 the R_MIPS_26 relocation.
3380 (mips_elf64_howto_table_rela): Likewise.
3382 * elf32-mips.c (struct mips_elf_link_hash_entry): Added no_fn_stub
3383 member to mark symbols that have non-CALL relocations against
3385 (mips_elf_link_hash_newfunc): Initialize no_fn_stub.
3386 (mips_elf_calculate_relocation): Handle R_MIPS_CALL16 like
3388 (_bfd_mips_elf_check_relocs): Set no_fn_stub for a symbol if a
3389 non-CALL relocation against it is encountered.
3390 (_bfd_mips_elf_copy_indirect_symbol): Merge no_fn_stub as well.
3391 (_bfd_mips_elf_adjust_dynamic_symbol): Only create a stub if
3392 no_fn_stub is not set.
3394 * elf32-mips.c (mips_elf_output_extsym): Get the output section
3395 information from the real symbol for indirect ones.
3396 Check no_fn_stub to find out if a symbol has a function stub
3399 2001-02-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
3401 * Makefile.am (stamp-lib): ranlib the libbfd.a in the build directory.
3402 * Makefile.in: Regenerate.
3404 2001-02-09 David Mosberger <davidm@hpl.hp.com>
3406 * elfxx-ia64.c (is_unwind_section_name): New function. Returns
3407 true if section name is an unwind table section name.
3408 (elfNN_ia64_additional_program_headers): Count each unwind section
3410 (elfNN_ia64_modify_segment_map): Install one unwind program header
3411 for each unwind separate section. Note: normally the linker
3412 script merges the unwind sections that go into a single segment,
3413 so this still generates at most one unwind program header per
3416 * elfxx-ia64.c (elfNN_ia64_section_from_shdr): Accept any section
3417 name for SHT_IA_64_UNWIND, not just .IA_64.unwind.
3418 (elfNN_ia64_fake_sections): Mark sections with names that start
3419 with .IA_64.unwind but not with .IA_64.unwind_info as an IA-64
3422 * elfxx-ia64.c (elfNN_ia64_final_write_processing): New function.
3423 Use it to make sh_info in unwind section point to the text section
3426 2001-02-09 Martin Schwidefsky <schwidefsky@de.ibm.com>
3428 * Makefile.am: Add linux target for S/390.
3429 * archures.c: Likewise.
3430 * bfd-in2.h: Likewise.
3431 * config.bfd: Likewise.
3432 * configure.in: Likewise.
3434 * libbfd.h: Likewise.
3435 * targets.c: Likewise.
3436 * cpu-s390.c: New file.
3437 * elf32-s390.c: New file.
3438 * elf64-s390.c: New file.
3440 2001-02-09 Nick Clifton <nickc@redhat.com>
3442 * peigen.c (_bfd_pe_get_symbol_info): Suppress addition of
3443 ImageBase. This has already been done by coff_swap_hdr_in.
3445 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3447 * elf64-sparc.c (sparc64_elf_copy_private_bfd_data): New function.
3449 2001-02-09 Jakub Jelinek <jakub@redhat.com>
3451 * elf64-sparc.c (sparc64_elf_check_relocs): Don't trust reloc_count.
3452 (sparc64_elf_relocate_section): Likewise.
3454 2001-02-09 Mark Kettenis <kettenis@gnu.org>
3456 * elf32-sparc.c (_bfd_sparc_elf_howto_table): Treat R_SPARC_UA32
3457 similar to R_SPARC_32.
3458 * elf64-sparc.c (sparc64_elf_howto_table): Likewise.
3460 2001-02-08 H.J. Lu <hjl@gnu.org>
3462 * elf32-i386.c (elf_i386_check_relocs): Reserve R_386_PC32
3463 relocation entries for weak definitions when building DSO with
3466 2001-02-08 Richard Henderson <rth@redhat.com>
3468 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Respect weakness
3469 before visibility. Locally defined protected symbols are not
3472 2001-02-08 Geoffrey Keating <geoffk@redhat.com>
3474 * config.bfd: Enable coff64 for rs6000-*. Patch from
3475 <hzoli@austin.ibm.com>.
3477 2001-02-07 Mark Elbrecht <snowball3@bigfoot.com>
3479 * coffgen.c (coff_find_nearest_line): If stabs info is successfully
3480 found, do not attempt to find dwarf2 info before returning.
3482 2001-02-07 Jakub Jelinek <jakub@redhat.com>
3484 * elflink.h (is_global_symbol_definition): Rename to
3485 is_global_data_symbol_definition and have it reject function
3487 (elf_link_is_defined_archive_symbol): Use renamed function.
3489 2001-02-07 Todd Vierling <tv@wasabisystems.com>
3491 * libbfd-in.h (bfd_target_vector): Change extern array to pointer.
3492 * libbfd.h (bfd_target_vector): Likewise.
3493 * targets.c (bfd_target_vector): Rename to _bfd_target_vector and
3494 make static; create pointer reference named bfd_target_vector.
3495 (_bfd_target_vector_entries): Calculate this based on the array
3496 typed _bfd_target_vector.
3498 2001-02-06 H.J. Lu <hjl@gnu.org>
3500 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Only hidden and
3501 internal symbols are not dynamic.
3502 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise.
3504 2001-02-06 Nick Clifton <nickc@redhat.com>
3506 * Makefile.am (BFD64_BACKENDS_CFILES): Remove elf64-ia64.c, so
3507 that it will not be pulled into the list of files that make up
3509 * Makefile.in: Regenerate.
3510 * po/bfd.pot: Regenerate.
3512 2001-02-06 H.J. Lu <hjl@gnu.org>
3514 * peicode.h (coff_swap_filehdr_in): Remove the e_magic
3516 (pe_bfd_object_p): Rewrite with external_PEI_DOS_hdr and
3517 external_PEI_IMAGE_hdr.
3519 2001-02-06 Kazu Hirata <kazu@hxi.com>
3521 * elf-m10200.c: Fix formatting.
3523 2001-02-04 Nick Clifton <nickc@redhat.com>
3525 * elf32-v850.c (v850_elf_reloc): Do not convert reloc addend to PC
3526 rel, it will be handled later on.
3528 2001-02-02 Fred Fish <fnf@ninemoons.com>
3530 * Makefile.in: Fix typo.
3532 2001-02-01 Kazu Hirata <kazu@hxi.com>
3534 * elf-m10300.c: Fix formatting.
3536 2001-01-30 Alan Modra <alan@linuxcare.com.au>
3538 * elf64-hppa.c (elf64_hppa_elf_get_symbol_type): New function.
3539 (elf_backend_get_symbol_type): Define.
3540 (elf64_hppa_object_p): Set architecture and machine from elf
3543 2001-01-30 Curtis L. Janssen <cljanss@ca.sandia.gov>
3545 * elf64-alpha.c (elf64_alpha_find_nearest_line): Query dwarf2
3548 2001-01-26 Richard Henderson <rth@redhat.com>
3550 * elfxx-ia64.c (elfNN_ia64_dynamic_symbol_p): Return false
3551 for non-default visibility.
3552 * elf64-alpha.c (alpha_elf_dynamic_symbol_p): Likewise, but
3553 delete ugly macro and replace with pretty function.
3555 2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
3557 * coff-go32.c: Update copyright.
3558 * coff-stgo32.c: Likewise.
3559 * coff-go32.c (COFF_LONG_FILENAMES): Define.
3560 * coff-stgo32.c (COFF_LONG_FILENAMES): Likewise.
3561 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Remove .bss entry.
3562 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
3564 2001-01-25 Kazu Hirata <kazu@hxi.com>
3566 * bfd-in2.h: Rebuild.
3567 * libbfd.h: Likewise.
3569 2001-01-23 H.J. Lu <hjl@gnu.org>
3571 * bfd-in2.h: Rebuild.
3573 2001-01-23 H.J. Lu <hjl@gnu.org>
3575 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_buf)
3576 is NULL or PRIV(vms_rec) is outside of the buffer.
3578 2001-01-23 Kazu Hirata <kazu@hxi.com>
3580 * coff64-rs6000.c: Fix formatting.
3581 * coff-arm.c: Likewise.
3582 * coffgen.c: Likewise.
3583 * cofflink.c: Likewise.
3584 * coff-mcore.c: Likewise.
3585 * coff-mips.c: Likewise.
3586 * coff-pmac.c: Likewise.
3587 * coff-ppc.c: Likewise.
3588 * coff-rs6000.c: Likewise.
3589 * elf32.c: Likewise.
3590 * elf32-fr30.c: Likewise.
3591 * elf32-i370.c: Likewise.
3592 * elf32-i860.c: Likewise.
3593 * elf32-m32r.c: Likewise.
3594 * elf32-m68k.c: Likewise.
3595 * elf32-mcore.c: Likewise.
3596 * elf32-ppc.c: Likewise.
3597 * elf32-sh.c: Likewise.
3598 * elf32-v850.c: Likewise.
3599 * elf64-alpha.c: Likewise.
3600 * elf64-sparc.c: Likewise.
3601 * elflink.c: Likewise.
3602 * elflink.h: Likewise.
3603 * elf-m10200.c: Likewise.
3604 * elf-m10300.c: Likewise.
3605 * elfxx-ia64.c: Likewise.
3607 * aoutx.h: Fix formatting.
3609 * bfd-in2.h: Likewise.
3610 * bfd-in.h: Likewise.
3611 * cpu-i386.c: Likewise.
3612 * cpu-m68hc11.c: Likewise.
3613 * dwarf2.c: Likewise.
3614 * elf64-x86-64.c: Likewise.
3615 * format.c: Likewise.
3616 * freebsd.h: Likewise.
3618 * hp300hpux.c: Likewise.
3619 * hppabsd-core.c: Likewise.
3620 * hpux-core.c: Likewise.
3622 2001-01-22 Bo Thorsen <bo@suse.de>
3624 * elf64-x86-64.c: Added PIC support for X86-64.
3625 (elf64_x86_64_link_hash_newfunc): Function added.
3626 (elf64_x86_64_link_hash_table_create): Likewise.
3627 (elf64_x86_64_check_relocs): Likewise.
3628 (elf64_x86_64_gc_mark_hook): Likewise.
3629 (elf64_x86_64_gc_sweep_hook): Likewise.
3630 (elf64_x86_64_adjust_dynamic_symbol): Likewise.
3631 (elf64_x86_64_size_dynamic_sections): Likewise.
3632 (elf64_x86_64_discard_copies): Likewise.
3633 (elf64_x86_64_finish_dynamic_symbol): Likewise.
3634 (elf64_x86_64_finish_dynamic_sections): Likewise.
3635 (elf64_x86_64_relocate_section): Add relocation of PIC sections.
3637 2001-01-21 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
3639 * Makefile.am (install-data-local): Make use of $(DESTDIR).
3640 * Makefile.in: Regenerate.
3642 2001-01-21 Kazu Hirata <kazu@hxi.com>
3644 * coff-a29k.c: Fix formatting.
3646 2001-01-19 H.J. Lu <hjl@gnu.org>
3648 * elf32-i386.c (elf_i386_check_relocs): Report files with bad
3649 relocation section names.
3650 (elf_i386_relocate_section): Report files with bad relocation
3651 section names and return false.
3653 2001-01-17 Bo Thorsen <bo@suse.de>
3655 * targets.c: Alphabetize list of xvecs.
3657 2001-01-14 Alan Modra <alan@linuxcare.com.au>
3659 * config.bfd: Add linux target variant for elfxx-hppa.
3660 * configure.in: Recognize bfd_elf32_hppa_linux_vec and
3661 bfd_elf64_hppa_linux_vec.
3662 * configure: Regenerate.
3663 * elf64-hppa.c: Include elf64-target.h again to support linux
3665 (elf64_hppa_post_process_headers): Set ELFOSABI_LINUX for linux.
3666 * elf32-hppa.c: Include elf32-target.h again to support linux
3668 (elf32_hppa_post_process_headers): New function.
3669 (elf_backend_post_process_headers): Define.
3670 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_linux_vec and
3671 bfd_elf32_hppa_linux_vec.
3673 * elf32-hppa.c (elf32_hppa_link_hash_table): Add text_segment_base,
3674 and data_segment_base fields.
3675 (elf32_hppa_link_hash_table_create ): Init them.
3676 (elf32_hppa_check_relocs): Update comments.
3677 (hppa_record_segment_addr): New function.
3678 (elf32_hppa_relocate_section): Call it.
3679 (final_link_relocate): Handle R_PARISC_SEGREL32.
3680 (elf32_hppa_final_link): New function.
3681 (bfd_elf32_bfd_final_link): Define to call it.
3682 (hppa_unwind_entry_compare): New function.
3683 * cache.c (bfd_open_file): Create files in write+read mode.
3685 * elf-hppa.h (elf_hppa_howto_table): Set bitsize value for
3686 SEGREL32 and numerous other relocs. Change duplicate
3687 R_PARISC_NONE relocs to R_PARISC_UNIMPLEMENTED.
3689 * opncls.c (bfd_fdopenr): Add parens like the comment says around
3692 * elf32-hppa.c (elf32_hppa_size_dynamic_sections): Don't create
3693 .plt entries for DT_INIT and DT_FINI.
3694 (elf32_hppa_finish_dynamic_sections): Remove special handling of
3695 DT_INIT and DT_FINI.
3697 * elf64-hppa.c (elf64_hppa_finish_dynamic_symbol): Use 16-bit
3698 offsets for stub .plt access if wide mode. Check offset in range.
3700 2001-01-13 Nick Clifton <nickc@redhat.com>
3702 * elf32-fr30.c (fr30_elf_howto_table): Remove spurious blank
3705 * coffcode.h (coff_canonicalize_reloc): Remove spurious blank
3708 2001-01-12 Alan Modra <alan@linuxcare.com.au>
3710 * configure.in ([bfd_elf64_x86_64_vec]): Set target64.
3711 * configure: Regenerate.
3713 2001-01-11 Peter Targett <peter.targett@arccores.com>
3715 * bfd-in2.h (bfd_architecture): Add bfd_mach_arc_5,
3716 bfd_mach_arc_6, bfd_mach_arc_7, bfd_mach_arc_8 for ARC variants.
3717 * cpu-arc.c (arch_info_struct): Add entries for variants.
3718 (bfd_arc_arch) Set default to bfd_mach_arc_5.
3719 (arc_get_mach) Don't assume machine names prefixed arc- before
3721 * elf32-arc.c (arc_elf_object_p): Set machine number based on new
3723 (arc_elf_final_write_processing) Likewise.
3724 (ELF_MACHINE_CODE) Use EM_ARC.
3726 2001-01-10 Nick Clifton <nickc@redhat.com>
3728 * coff-arm.c (LOCAL_LABEL_PREFIX): Change definition to "".
3730 2001-01-07 Philip Blundell <philb@gnu.org>
3732 * README: Replace `bug-gnu-utils@gnu.org' with
3733 `bug-binutils@gnu.org'.
3735 2001-01-04 Kazu Hirata <kazu@hxi.com>
3737 * som.c: Fix formatting.
3739 2001-01-03 Kazu Hirata <kazu@hxi.com>
3741 * ecoffswap.h: Fix formatting.
3742 * elf-bfd.h: Likewise.
3743 * elfarm-nabi.c: Likewise.
3744 * elfarm-oabi.c: Likewise.
3745 * elfcode.h: Likewise.
3746 * elfcore.h: Likewise.
3747 * elflink.c: Likewise.
3748 * elflink.h: Likewise.
3749 * elfxx-ia64.c: Likewise.
3750 * elfxx-target.h: Likewise.
3751 * libbfd.c: Likewise
3752 * linker.c: Likewise.
3753 * lynx-core.c: Likewise.
3755 2001-01-02 Kazu Hirata <kazu@hxi.com>
3757 * pc532-mach.c: Fix formatting.
3758 * pe-arm.c: Likewise.
3759 * pe-i386.c: Likewise.
3760 * pe-mips.c: Likewise.
3761 * pe-ppc.c: Likewise.
3762 * pe-sh.c: Likewise.
3763 * pei-mips.c: Likewise.
3764 * pei-sh.c: Likewise.
3765 * peicode.h: Likewise.
3766 * ppcboot.c: Likewise.
3767 * ptrace-core.c: Likewise.
3769 2001-01-01 Kazu Hirata <kazu@hxi.com>
3771 * reloc.c: Fix formatting.
3772 * riscix.c: Likewise.
3773 * rs6000-core.c: Likewise.
3774 * xcoff-target.h: Likewise.
3776 2000-12-29 Hans-Peter Nilsson <hp@bitrange.com>
3778 * elfcode.h (elf_object_p): Also restore the bfd mach field on
3779 error, by calling bfd_default_set_arch_mach with incoming
3782 2000-12-26 Kazu Hirata <kazu@hxi.com>
3784 * vaxnetbsd.c: Fix formatting.
3785 * versados.c: Likewise.
3786 * vms-gsd.c: Likewise.
3787 * vms-hdr.c: Likewise.
3788 * vms-misc.c: Likewise.
3790 2000-12-25 Alexandre Oliva <aoliva@redhat.com>
3792 * archive.c (coff_write_armap): Don't write more than symbol_count
3793 `archive_member_file_ptr's.
3795 2000-12-25 Kazu Hirata <kazu@hxi.com>
3797 * vms-tir.c: Fix formatting.
3799 2000-12-23 Kazu Hirata <kazu@hxi.com>
3801 * vms.c: Fix formatting.
3804 2000-12-21 Santeri Paavolainen <santtu@ssh.com>
3806 * vms-hdr.c: Include alloca.h if HAVE_ALLOCA_H is defined.
3808 * peicode.h (pe_ILF_object_p): Add const to import of TARGET_LITTLE_SYM.
3810 * elf32-m32r.c (m32r_elf_generic_reloc): Add cast to avoid (void *)
3813 * elf32-fr30.c: Add casts to avoid (void *) arithmetic.
3815 * coffcode.h (styp_to_sec_flags): Add empty statement after label.
3817 2000-12-21 Richard Sandiford <rsandifo@redhat.com>
3819 * libbfd.c (bfd_get_bits): Added
3820 (bfd_put_bits): Likewise
3821 * bfd-in.h: Declared the above.
3822 * bfd-in2.h: Regenerated.
3824 2000-12-20 Kazu Hirata <kazu@hxi.com>
3826 * targets.c: Fix formatting.
3827 * tekhex.c: Likewise.
3828 * trad-core.c: Likewise.
3830 2000-12-19 Kazu Hirata <kazu@hxi.com>
3832 * sco5-core.c: Fix formatting.
3833 * section.c: Likewise.
3834 * sparclinux.c: Likewise.
3835 * sparclynx.c: Likewise.
3836 * sparcnetbsd.c: Likewise.
3838 * stabs.c: Likewise.
3839 * stab-syms.c: Likewise.
3840 * sunos.c: Likewise.
3842 * sysdep.h: Likewise.
3844 2000-12-18 Nick Clifton <nickc@redhat.com>
3846 * coff-arm.c (EXTRA_S_FLAGS): Only define if not already
3848 * epoc-pe-arm.c (EXTRA_S_FLAGS): Define.
3849 * epoc-pei-arm.c (EXTRA_S_FLAGS): Define.
3851 2000-12-18 Nick Clifton <nickc@redhat.com>
3853 * vms-misc.c (_bfd_vms_get_record): Add default case to
3856 2000-12-15 Miloslav Trmac <mitr@volny.cz>
3858 * elfcore.h (elf_core_file_p): Move to the start of the program
3859 headers before attempting to read them.
3861 2000-12-14 Kazu Hirata <kazu@hxi.com>
3863 * peigen.c: Fix formatting.
3867 2000-12-13 Kazu Hirata <kazu@hxi.com>
3869 * peigen.c: Fix formatting.
3871 2000-12-12 Jim Wilson <wilson@redhat.com>
3873 * elfxx-ia64.c (get_dyn_sym_info): Cast %p argument to void *.
3875 2000-12-08 Mark Salter <msalter@redhat.com>
3877 * binary.c (binary_set_section_contents): Ignore sections
3880 2000-12-12 Kazu Hirata <kazu@hxi.com>
3882 * m68klinux.c: Fix formatting.
3883 * m68knetbsd.c: Likewise.
3884 * mipsbsd.c: Likewise.
3885 * netbsd-core.c: Likewise.
3886 * netbsd.h: Likewise.
3887 * newsos3.c: Likewise.
3888 * nlm32-alpha.c: Likewise.
3889 * nlm32-i386.c: Likewise.
3890 * nlm32-ppc.c: Likewise.
3891 * nlm32-sparc.c: Likewise.
3892 * nlmcode.h: Likewise.
3893 * nlmswap.h: Likewise.
3894 * nlm-target.h: Likewise.
3895 * ns32knetbsd.c: Likewise.
3897 2000-12-10 Fred Fish <fnf@be.com>
3899 * elflink.h (elf_link_output_extsym): Don't complain about undefined
3900 symbols in shared objects if allow_shlib_undefined is true.
3902 2000-12-12 Nick Clifton <nickc@redhat.com>
3904 * cpu-sh.c: Fix formattng.
3905 * elf.c: Fix formattng.
3906 * elf32-mips.c: Fix formattng.
3907 * elf32-sh.c: Fix formattng.
3908 * elf64-alpha.c: Fix formattng.
3910 2000-12-09 Nick Clifton <nickc@redhat.com>
3912 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Pass
3913 dwarf2_find_line_info as last parameter to invocation of
3914 _bfd_dwarf2_find_nearest_line.
3915 * elf32-arm.h (elf32_arm_find_nearest_line): Pass
3916 dwarf2_find_line_info as last parameter to invocation of
3917 _bfd_dwarf2_find_nearest_line.
3919 2000-12-08 Mark Elbrecht <snowball3@bigfoot.com>
3921 * Makefile.am (BFD32_BACKENDS): Move dwarf2.lo from here...
3922 (BFD_LIBS): ...to here.
3923 (BFD32_BACKENDS_CFILES): Move dwarf2.c from here...
3924 (BFD_LIBS_CFILES): ...to here.
3925 * Makefile.in: Regenerate.
3926 * configure.in: Remove dwarf.lo from the elf shell variable.
3927 * configure: Regenerate.
3928 * libcoff-in.h (coff_tdata): Add pointer dwarf2_find_line_info.
3929 * libcoff.h: Regenerate.
3930 * coffgen.c (coff_find_nearest_line): Call
3931 _bfd_dwarf2_find_nearest_line.
3932 * dwarf2.c (_bfd_dwarf2_find_nearest_line): Add parameter. Update
3934 (read_abbrevs): Likewise
3935 (decode_line_info): Likewise.
3936 (parse_comp_unit): Likewise.
3937 (comp_unit_find_nearest_line): Likewise.
3938 * libbfd-in.h (_bfd_dwarf2_find_nearest_line): Update prototype.
3939 * libbfd.h: Regenerate.
3940 * elf.c (_bfd_elf_find_nearest_line): Update call.
3941 * elf-bfd.h (elf_obj_tdata): Change dwarf2_find_line_info to type PTR.
3942 * dwarf2.c (concat_filename): Use IS_ABSOLUTE_PATH.
3943 * coffcode.h (STYP_XCOFF_DEBUG, STYP_DEBUG_INFO): New macros.
3944 (sec_to_styp_flags): Use them. Handle DWARF2 sections.
3945 (styp_to_sec_flags): Handle DWARF2 sections.
3946 * elf32-arm.h (elf32_arm_find_nearest_line): Add parameter to call
3947 to _bfd_find_nearest_line.
3948 * elf32-mips.c (_bfd_mips_elf_find_nearest_line): Add parameter to
3949 call to _bfd_find_nearest_line.
3951 2000-12-08 Kazu Hirata <kazu@hxi.com>
3953 * coffgen.c: Fix formatting.
3954 * elf-m10300.c: Likewise.
3955 * elf32-i386.c: Likewise.
3956 * elf32-i960.c: Likewise.
3957 * elf32-m68k.c: Likewise.
3958 * elf32-mcore.c: Likewise.
3959 * elf32-ppc.c: Likewise.
3960 * elf32-sh.c: Likewise.
3961 * elf32-sparc.c: Likewise.
3962 * elf32-v850.c: Likewise.
3963 * elf64-alpha.c: Likewise.
3964 * elf64-hppa.c: Likewise.
3965 * elf64-mips.c: Likewise.
3966 * elf64-sparc.c: Likewise.
3968 2000-12-07 Kazu Hirata <kazu@hxi.com>
3970 * elf32-ppc.c: Fix formatting.
3971 * elf64-x86-64.c: Likewise.
3973 2000-12-06 Ulf Carlsson <ulfc@engr.sgi.com>
3975 From Ralf Baechle <ralf@gnu.org>
3977 * elf32-mips.c (elf32_mips_merge_private_bfd_data): Always permit
3978 BFDs containing no sections or empty .text, .data or .bss sections
3979 to be merged, regardless of their flags.
3981 2000-12-06 Kazu Hirata <kazu@hxi.com>
3983 * elf32-m32r.c: Fix formatting.
3984 * elf32-m68hc11.c: Likewise.
3985 * elf32-m68hc12.c: Likewise.
3986 * elf32-m68k.c: Likewise.
3987 * elf32-mcore.c: Likewise.
3988 * elf32-pj.c: Likewise.
3989 * elf32-ppc.c: Likewise.
3991 2000-12-05 Kazu Hirata <kazu@hxi.com>
3993 * elf32-fr30.c: Fix formatting.
3994 * elf32-hppa.c: Likewise.
3995 * elf32-i370.c: Likewise.
3996 * elf32-i386.c: Likewise.
3997 * elf32-i860.c: Likewise.
3998 * elf32-i960.c: Likewise.
4000 2000-12-03 Kazu Hirata <kazu@hxi.com>
4002 * elf32-arm.h: Fix formatting.
4003 * elf32-avr.c: Likewise.
4004 * elf32-cris.c: Likewise.
4005 * elf32-d10v.c: Likewise.
4006 * elf32-d30v.c: Likewise.
4007 * elf-hppa.h: Likewise.
4008 * elf-m10200.c: Likewise.
4009 * elf-m10300.c: Likewise.
4011 2000-12-01 Chris Demetriou <cgd@sibyte.com>
4013 * aoutx.h (NAME(aout,machine_type)): Add bfd_mach_mips32 and
4014 bfd_mach_mips32_4k. Update FIXME comment.
4015 * archures.c (bfd_mach_mips32): New constant.
4016 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4017 the latter, renumber it.
4018 * bfd-in2.h (bfd_mach_mips32): New constant.
4019 (bfd_mach_mips4K, bfd_mach_mips32_4k) Rename the former to
4020 the latter, renumber it.
4021 * cpu-mips.c (I_mips32): New constant.
4022 (I_mips4K, I_mips32_4k): Rename the former to the latter.
4023 (arch_info_struct): Add bfd_mach_mips32 entry, replace
4024 bfd_mach_mips4K entry with bfd_mach_mips32_4k entry.
4025 * elf32-mips.c (elf_mips_isa): Add E_MIPS_ARCH_32 case.
4026 (elf_mips_mach): Likewise. Also, replace E_MIPS_MACH_MIPS32
4027 with E_MIPS_MACH_MIPS32_4K.
4028 (_bfd_mips_elf_final_write_processing): Replace
4029 bfd_mach_mips4K with bfd_mach_mips32_4k case, add
4030 bfd_mach_mips32 case.
4031 (_bfd_mips_elf_merge_private_bfd_data): Generalize ISA mixing
4032 comparison with support for MIPS32.
4033 (_bfd_mips_elf_print_private_bfd_data): Print ISA name for
4036 * aoutx.h (NAME(aout,machine_type)): Add cases for
4037 bfd_mach_mips5 and bfd_mach_mips64.
4038 * archures.c (bfd_mach_mips5, bfd_mach_mips64): New constants.
4039 * bfd-in2.h (bfd_mach_mips5, bfd_mach_mips64): Likewise.
4040 * cpu_mips.c (I_mips5, I_mips64): New definitions.
4041 (arch_info_struct): Add entries for bfd_mach_mips5 and
4043 * elf32-mips.c (elf_mips_isa, elf_mips_mach,
4044 _bfd_mips_elf_print_private_bfd_data): Add cases for
4045 E_MIPS_ARCH_5 and E_MIPS_ARCH_64.
4046 (_bfd_mips_elf_final_write_processing): Add cases for
4047 bfd_mach_mips5 and bfd_mach_mips64.
4049 * aoutx.h (NAME(aout,machine_type)): Add a
4050 bfd_mach_mips_sb1 case.
4051 * archures.c (bfd_mach_mips_sb1): New constant.
4052 * bfd-in2.h (bfd_mach_mips_sb1): New constant.
4053 * cpu-mips.c (I_sb1): New constant.
4054 (arch_info_struct): Add entry for bfd_mach_mips_sb1.
4055 * elf32-mips.c (elf_mips_mach): Add case for
4057 (_bfd_mips_elf_final_write_processing): Add case for
4060 2000-12-01 Joel Sherrill <joel@OARcorp.com>
4062 * config.bfd (arm-*-rtems*, a29k-*rtems*): New targets.
4063 (sparc*-*-rtemself*, sparc*-*-rtemsaout*): New targets.
4064 (sparc*-*-rtems*): Switched from a.out to ELF.
4066 2000-11-30 Jan Hubicka <jh@suse.cz>
4068 * Makefile.am (BFD64_BACKENDS): Add elf64-x86-64.lo
4069 BFD64_BACKENDS_CFILES): Add elf64-x86-64.c
4070 (elf64-x86-64.lo): Add dependencies.
4071 * archures.c (DESCRIPTION): Add bfd_mach_x86_64,
4072 bfd_mach_x86_64_intel_syntax.
4073 * elf.c (prep_headers): Use EM_x86_64 for 64bit output.
4074 * config.bfd (x86_64): Add.
4075 * configure.in: Add support for bfd_elf64_x86_64_vec.
4076 * cpu-i386.c (bfd_x86_64_arch_intel_syntax, bfd_x86_64_arch): Add.
4077 (bfd_i386_arch, i8086_ar): Link in.
4078 * elf64-x86-64.c: New file.
4079 * reloc.c (ENUMDOC): Add BFD_RELOC_X86_64*.
4080 * targets.c (bfd_elf64_x86_64_vec): Add.
4081 (bfd_target_vect): Add bfd_elf64_x86_64_vec.
4083 2000-11-30 Kazu Hirata <kazu@hxi.com>
4085 * xcofflink.c: Fix formatting.
4087 2000-11-28 Kazu Hirata <kazu@hxi.com>
4089 * aoutx.h: Fix formatting.
4090 * bfd-in.h: Likewise.
4091 * bfd-in2.h: Likewise.
4092 * cache.c: Likewise.
4093 * cisco-core.c: Likewise.
4094 * coff64-rs6000.c: Likewise.
4095 * coffcode.h: Likewise.
4096 * coffswap.h: Likewise.
4097 * corefile.c: Likewise.
4098 * elf32-mips.c: Likewise.
4100 2000-11-27 Kazu Hirata <kazu@hxi.com>
4102 * aout-adobe.c: Fix formatting.
4103 * coff64-rs6000.c: Likewise.
4104 * coffgen.c: Likewise.
4105 * cofflink.c: Likewise.
4107 2000-11-27 Philip Blundell <pb@futuretv.com>
4109 * libcoff-in.h (coff_tdata): Add `strings_written' flag.
4110 (obj_coff_strings_written): New accessor macro for above.
4111 * libcoff.h: Regenerate.
4112 * cofflink.c (_bfd_coff_final_link): Say that we wrote the
4114 * coffcode.h (coff_write_object_contents): No need to write out
4115 the string table if it's already been done.
4117 2000-11-22 Philip Blundell <pb@futuretv.com>
4119 * cofflink.c (_bfd_coff_generic_relocate_section): Don't object to
4120 weak undefined symbols.
4122 2000-11-24 Nick Clifton <nickc@redhat.com>
4124 * archures.c (bfd_mach_arm_5TE): Define.
4125 (bfd_mach_arm+XScale): Define.
4126 * bfd-in2.h: Regenerate.
4128 * coff-arm.c (coff_arm_reloc_type_lookup): Accept
4129 BFD_RELOC_ARM_PCREL_BLX.
4131 * coffcode.h (coff_set_flags): Set flags for 5t, 5te and
4132 XScale machine numbers.
4134 * config.bfd (xscale-elf): Add target.
4135 (xscale-coff): Add target.
4137 * cpu-arm.c: Add xscale machine name.
4138 Add v5t, v5te and XScale machine numbers.
4140 2000-11-23 Kazu Hirata <kazu@hxi.com>
4142 * aix386-core.c: Fix formatting.
4144 2000-11-22 Jim Wilson <wilson@redhat.com>
4146 * coff-ia64.c (howto_table): Use EMPTY_HOWTO.
4147 (in_reloc_p): Add ATTRIBUTE_UNUSED to unused parameters.
4148 * cpu-ia64-opc.c (ins_rsvd, ext_rsvd, ins_const, ext_const): Likewise.
4149 (ins_imms_scaled): Initialize sign_bit at function entry.
4150 (elf64_ia64_operands): Add missing initializers.
4151 * elfxx-ia64.c (elfNN_ia64_reloc, elfNN_ia64_reloc_type_lookup,
4152 elfNN_ia64_info_to_howto, elfNN_ia64_fake_sections,
4153 elfNN_ia64_add_symbol_hook, elfNN_ia64_is_local_label_name,
4154 elfNN_ia64_local_hash_table_init, get_fptr, get_pltoff,
4155 elfNN_ia64_adjust_dynamic_symbol): Add ATTRIBUTE_UNUSED for unused
4157 (elfNN_ia64_info_to_howto): Initialize free_relocs, free_contents,
4158 and free_extsyms at function entry.
4159 (elfNN_add_symbol_hook): Add unsigned cast to bfd_get_gp_size result.
4160 (elfNN_ia64_create_dynamic_sections): Delete unused local h.
4161 (get_got): Delete unused local srel.
4162 (elfNN_ia64_check_relocs): Initialize dynrel_type when declared.
4163 (elfNN_ia64_relocate_section): Delete unused local dynindx.
4165 2000-11-21 Kazu Hirata <kazu@hxi.com>
4167 * coff-a29k.c: Fix formatting.
4168 * coff-h8500.c: Likewise.
4169 * coff-i960.c: Likewise.
4170 * coff-ppc.c: Likewise.
4171 * coff-rs6000.c: Likewise.
4172 * coff-stgo32.c: Likewise.
4173 * coff-tic54x.c: Likewise.
4174 * coff-w65.c: Likewise.
4175 * cpu-h8500.c: Likewise.
4176 * cpu-hppa.c: Likewise.
4177 * cpu-ns32k.c: Likewise.
4178 * ecoff.c: Likewise.
4179 * ecofflink.c: Likewise.
4181 2000-11-21 Nick Clifton <nickc@redhat.com>
4183 * elf32-sh.c (sh_elf_reloc_loop): Fix compile time warning, and
4184 remove possibility of infinite loop.
4186 2000-11-20 Kazu Hirata <kazu@hxi.com>
4188 * aix386-core.c: Fix formatting.
4189 * aout-adobe.c: Likewise.
4190 * aout-arm.c: Likewise.
4191 * aout-encap.c: Likewise.
4192 * aout-ns32k.c: Likewise.
4193 * aout-target.h: Likewise.
4194 * aout-tic30.c: Likewise.
4195 * aoutf1.h: Likewise.
4196 * aoutx.h: Likewise.
4197 * archive.c: Likewise.
4198 * bfd-in.h: Likewise.
4199 * bfd-in2.h: Likewise.
4203 2000-11-17 H.J. Lu <hjl@gnu.org>
4205 * elfxx-ia64.c (elfNN_ia64_size_dynamic_sections): Don't create
4206 pltoff entries for DT_INIT and DT_FINI.
4207 (elfNN_ia64_final_link): Don't set DT_INIT/FINI entries.
4208 (elfNN_ia64_finish_dynamic_sections): Don't fill in DT_INIT/FINI
4211 2000-11-16 Richard Henderson <rth@redhat.com>
4213 * elfxx-ia64.c (elfNN_ia64_check_relocs): Handle IPLT relocs.
4214 (allocate_dynrel_entries): Likewise.
4215 (elfNN_ia64_relocate_section): Likewise. Set REL addends correctly.
4216 (set_pltoff_entry): Likewise.
4217 (ia64_howto_table): Remove R_IA64_SEGBASE, and R_IA64_EPLT[ML]SB
4218 (elfNN_ia64_reloc_type_lookup): Likewise.
4219 (elfNN_ia64_install_value): Likewise.
4220 (elfNN_ia64_relocate_section): Likewise.
4221 * reloc.c (BFD_RELOC_IA64_SEGBASE): Remove.
4222 (BFD_RELOC_IA64_EPLTMSB, BFD_RELOC_IA64_EPLTLSB): Remove.
4224 2000-11-16 Kazu Hirata <kazu@hxi.com>
4226 * cpu-a29k.c: Fix formatting.
4227 * cpu-alpha.c: Likewise.
4228 * cpu-arm.c: Likewise.
4229 * cpu-avr.c: Likewise.
4230 * cpu-d10v.c: Likewise.
4231 * cpu-h8500.c: Likewise.
4232 * cpu-hppa.c: Likewise.
4233 * cpu-i370.c: Likewise.
4234 * cpu-i386.c: Likewise.
4235 * cpu-i960.c: Likewise.
4236 * cpu-ia64-opc.c: Likewise.
4237 * cpu-ia64.c: Likewise.
4238 * cpu-m32r.c: Likewise.
4239 * cpu-m68hc11.c: Likewise.
4240 * cpu-m68hc12.c: Likewise.
4241 * cpu-m68k.c: Likewise.
4242 * cpu-m88k.c: Likewise.
4243 * cpu-mips.c: Likewise.
4244 * cpu-ns32k.c: Likewise.
4245 * cpu-pj.c: Likewise.
4246 * cpu-powerpc.c: Likewise.
4247 * cpu-sh.c: Likewise.
4248 * cpu-sparc.c: Likewise.
4249 * cpu-tic54x.c: Likewise.
4250 * cpu-v850.c: Likewise.
4251 * cpu-vax.c: Likewise.
4252 * cpu-w65.c: Likewise.
4253 * cpu-we32k.c: Likewise.
4254 * cpu-z8k.c: Likewise.
4255 * dwarf1.c: Likewise.
4256 * dwarf2.c: Likewise.
4258 2000-11-15 Kazu Hirata <kazu@hxi.com>
4260 * coff-arm.c: Fix formatting.
4261 * coff-ppc.c: Likewise.
4262 * coff-rs6000.c: Likewise.
4263 * coff-sh.c: Likewise.
4264 * coff-sparc.c: Likewise.
4265 * coff-tic30.c: Likewise.
4266 * coff-tic54x.c: Likewise.
4267 * coff-tic80.c: Likewise.
4268 * coff-w65.c: Likewise.
4269 * coff-we32k.c: Likewise.
4270 * coff-z8k.c: Likewise.
4272 2000-11-15 Richard Henderson <rth@redhat.com>
4274 * elf64-alpha.c (elf64_alpha_check_relocs): Create the reloc
4275 section with the same ALLOC|LOAD flags as the source section.
4277 2000-11-14 Jakub Jelinek <jakub@redhat.com>
4279 * elf64-alpha.c (elf64_alpha_relax_opt_call): Only check bits used
4280 by STO_ALPHA constants.
4282 2000-11-14 Kazu Hirata <kazu@hxi.com>
4284 * coff-pmac.c: Fix formatting.
4285 * coff-ppc.c: Likewise.
4287 2000-11-13 H.J. Lu <hjl@gnu.org>
4289 * elflink.h (elf_link_add_object_symbols): Also add indirect
4290 symbols for common symbols with the default version.
4292 2000-11-09 Philip Blundell <pb@futuretv.com>
4294 * section.c (STD_SECTION): Set gc_mark flag.
4296 2000-11-11 Kazu Hirata <kazu@hxi.com>
4298 * coff-i960.c: Likewise.
4299 * coff-m68k.c: Likewise.
4300 * coff-m88k.c: Likewise.
4301 * coff-mcore.c: Likewise.
4302 * coff-mips.c: Likewise.
4304 2000-11-11 Bernd Schmidt <bernds@cygnus.co.uk>
4306 * elf32-sh.c (sh_elf_relocate_section): Ignore R_SH_NONE relocs.
4308 2000-11-10 Kazu Hirata <kazu@hxi.com>
4310 * coff-h8300.c: Fix formatting.
4311 * coff-h8500.c: Likewise.
4312 * coff-i386.c: Likewise.
4313 * coff-i860.c: Likewise.
4314 * coff-i960.c: Likewise.
4315 * coff-ia64.c: Likewise.
4317 2000-11-09 Kazu Hirata <kazu@hxi.com>
4319 * archive.c: Fix formatting.
4320 * archures.c: Likewise.
4322 2000-11-07 Richard Henderson <rth@redhat.com>
4324 * elfxx-ia64.c (elf64_ia64_final_link): New local unwind_output_sec.
4325 Set it before bfd_elf64_bfd_final_link call. Use it after the call.
4326 * section.c (bfd_set_section_contents): Call memcpy if
4327 section->contents set and location not equal to contents plus offset.
4329 2000-11-08 Kazu Hirata <kazu@hxi.com>
4331 * bfd-in.h: Fix formatting.
4332 * bfd-in2.h: Likewise.
4334 * binary.c: Likewise.
4336 * coff-a29k.c: Likewise.
4337 * coff-alpha.c: Likewise.
4338 * coff-apollo.c: Likewise.
4339 * coff-aux.c: Likewise.
4341 2000-11-07 Kazu Hirata <kazu@hxi.com>
4343 * aix386-core.c: Fix formatting.
4344 * aoutf1.h: Likewise.
4345 * aoutx.h: Likewise.
4346 * archures.c: Likewise.
4347 * armnetbsd.c: Likewise.
4349 2000-11-07 Alan Modra <alan@linuxcare.com.au>
4351 * coff-h8300.c (special): Adjust reloc address.
4353 2000-11-06 Steve Ellcey <sje@cup.hp.com>
4355 * archures.c (bfd_mach_ia64_elf64, bfd_mach_ia64_elf32): Add defines
4356 to differentiate elf32 and elf64 on ia64.
4357 * bfd-in2.h: Regenerate.
4358 * config.bfd: Add target for "ia64*-*-hpux*".
4359 * configure.in: Add bfd_elf32_ia64_big_vec to selvecs switch.
4360 * configure: Regenerate.
4361 * cpu-ia64.c (bfd_ia64_elf32_arch): Add elf32 arch info structure.
4362 * targets.c: Add bfd_target bfd_elf32_ia64_big_vec.
4364 * Makefile.am: Make elf32-ia64.c and elf64-ia64.c derived objects
4365 from elfxx-ia64.c. Add depenency rules for making elf32-ia64.lo.
4366 * Makefile.in: Regnerate.
4367 * elf64-ia64.c: Deleted.
4368 * elfxx-ia64.c: New file, paramaterized version of elf64-ia64.c.
4370 2000-11-06 Kazu Hirata <kazu@hxi.com>
4372 * aout-adobe.c: Fix formatting.
4373 * aout-arm.c: Likewise.
4374 * aout-cris.c: Likewise.
4375 * aout-encap.c: Likewise.
4376 * aout-ns32k.c: Likewise.
4377 * aout-target.h: Likewise.
4378 * aout-tic30.c: Likewise.
4380 2000-11-05 Philip Blundell <philb@gnu.org>
4382 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Always permit
4383 BFDs containing no sections to be merged, regardless of their flags.
4385 2000-11-04 Philip Blundell <philb@gnu.org>
4387 * elf32-arm.h (elf32_arm_relocate_section): Suppress error message
4388 if a relocation for an undefined symbol also results in an
4391 2000-11-06 Christopher Faylor <cgf@cygnus.com>
4393 * config.bfd: Add support for Sun Chorus.
4395 2000-11-05 David O'Brien <obrien@FreeBSD.org>
4397 * configure.in: Recognize alpha-*-freebsd*.
4398 * configure: Regenerate.
4400 2000-11-02 Luciano Gemme <ishitawa@yahoo.com>
4402 * srec.c (CHUNK): Rename to DEFAULT_CHUNK.
4403 (Chunk): New global variable set by a parameter in objcopy.c.
4404 (S3Forced): New global variable set by a parameter in
4406 (srec_set_section_contents): If S3Forced is true, always generate
4408 (srec_write_section): Use 'Chunk' to limit maximum length of S
4411 2000-11-02 Per Lundberg <plundis@chaosdev.org>
4413 * config.bfd: Add support for i[3456]86-chaosdev-storm-chaos.
4414 * Makefile.in: Regenerate.
4415 * bfd-in2.h: Regenerate.
4416 * po/bfd.pot: Regenerate.
4418 2000-10-31 Philip Blundell <philb@gnu.org>
4420 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Only handle
4421 EF_SOFT_FLOAT if it is defined.
4423 2000-10-27 Philip Blundell <philb@gnu.org>
4425 * elf32-arm.h (elf32_arm_copy_private_bfd_data): Don't refuse
4426 attempts to mix PIC code with non-PIC, just mark the output as
4427 being position dependent.
4428 (elf32_arm_merge_private_bfd_data): Likewise. Print an error
4429 message for EF_SOFT_FLOAT mismatches. Display diagnostics for
4430 all mismatches, not just the first one.
4432 2000-10-25 Chris Demetriou <cgd@sibyte.com>
4434 * ieee.c (ieee_archive_p): Plug one of many possible
4435 memory leaks in error handling.
4437 2000-10-20 Jakub Jelinek <jakub@redhat.com>
4439 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data,
4440 elf32_sparc_object_p, elf32_sparc_final_write_processing):
4442 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data,
4443 sparc64_elf_object_p): Support v9b.
4444 * archures.c: Declare v8plusb and v9b machines.
4446 * cpu-sparc.c: Ditto.
4448 2000-10-16 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4450 * elf64-sparc.c (sparc64_elf_relocate_section): Clear the location
4453 * elf32-ppc.c (SYMBOL_REFERENCES_LOCAL): New macro.
4454 (SYMBOL_CALLS_LOCAL): New macro.
4455 (ppc_elf_adjust_dynamic_symbol): Use SYMBOL_CALLS_LOCAL.
4456 (ppc_elf_check_relocs): Use SYMBOL_REFERENCES_LOCAL.
4457 (ppc_elf_finish_dynamic_symbol): Use SYMBOL_REFERENCES_LOCAL.
4458 (ppc_elf_relocate_section): Use flag variable to determine
4459 whether the relocation refers to a local symbol.
4460 Test whether a PLTREL24 reloc will produce a reloc by looking
4461 to see whether a PLT entry was made.
4463 2000-10-14 Geoffrey Keating <geoffk@shoggoth.cygnus.com>
4465 * elf32-ppc.c (ppc_elf_finish_dynamic_symbol): Don't make PLT
4466 entries that could serve as a definition for a weak symbol.
4468 2000-10-13 Ulf Carlsson <ulfc@engr.sgi.com>
4470 From Ralf Baechle <ralf@gnu.org>
4472 * elf32-mips.c (mips_elf_create_dynamic_relocation): New argument
4473 local_p. Add symbol value only for non-R_MIPS_REL32 relocations
4474 against local symbols.
4475 (_bfd_mips_elf_finish_dynamic_sections): Undo patch from 2000-10-01.
4477 2000-10-12 Alan Modra <alan@linuxcare.com.au>
4479 * section.c (struct sec): Add kept_section.
4480 (struct bfd_comdat_info): Remove sec, we can use above.
4481 (STD_SECTION): Add initializer.
4482 (bfd_make_section_anyway): Init here too.
4484 * bfd-in2.h: Regenerate.
4486 * elflink.h (elf_link_add_object_symbols): Remove unnecessary
4488 (elf_link_input_bfd): Set all asection->symbol->value's here, and
4489 fudge values for discarded link-once section symbols.
4491 * elf64-hppa.c: Include alloca-conf.h
4493 2000-10-11 Alan Modra <alan@linuxcare.com.au>
4495 * elf.c (swap_out_syms): Revert 2000-10-07 changes.
4497 * ieee.c (ieee_make_empty_symbol): Oops, bfd_zalloc needs another arg.
4499 2000-10-10 Alan Modra <alan@linuxcare.com.au>
4501 * ieee.c (ieee_make_empty_symbol): Use bfd_zalloc, not bfd_zmalloc.
4503 2000-10-10 Tom Rix <trix@redhat.com>
4505 * section.c (bfd_make_section_anyway): Release newsect ptr when
4506 newsect->symbol fails to alloc. Use bfd_release instead of free.
4508 2000-10-09 Richard Henderson <rth@cygnus.com
4510 * elf64-ia64.c (elf64_ia64_unwind_entry_compare_bfd): New.
4511 (elf64_ia64_unwind_entry_compare): New.
4512 (elf64_ia64_final_link): Sort the .IA_64.unwind section.
4514 2000-10-07 Alan Modra <alan@linuxcare.com.au>
4516 * elflink.h (size_dynamic_sections): Don't create various tags if
4517 .dynstr is excluded from the link. Don't set first dynsym entry
4518 if dynsymcount is zero.
4519 (elf_bfd_final_link): Don't try to swap out dynamic syms if
4520 .dynsym excluded from the link. Don't try to write any dynamic
4521 sections excluded from the link.
4523 * elf.c (swap_out_syms): Handle global section symbols.
4525 2000-10-05 DJ Delorie <dj@redhat.com>
4527 * peigen.c (_bfd_pei_swap_scnhdr_out): note extended relocs
4528 * coffcode.h (coff_set_alignment_hook): read extended reloc count
4529 (coff_write_relocs): write extended reloc count
4530 (coff_write_object_contents): account for extended relocs
4532 2000-10-05 Jim Wilson <wilson@cygnus.com>
4534 * elf-bfd.h (struct elf_backend_data): Add elf_backend_section_flags
4536 * elf.c (_bfd_elf_make_section_from_shdr): Call the
4537 elf_backend_section_flags function.
4538 * elf64-ia64.c (elf64_ia64_section_from_shdr): Delete flag conversion
4540 (elf64_ia64_section_flags): New function containing flag conversion
4542 (elf_backend_section_flags): Define to elf64_ia64_section_flags.
4543 * elfxx-target.h (elf_backend_section_flags): Define.
4544 (elfNN_bed): Initialize elf_backend_section_flags field.
4546 2000-10-02 Alan Modra <alan@linuxcare.com.au>
4548 * elf32-hppa.c (elf32_hppa_check_relocs): Correct call to
4549 _bfd_elf32_gc_record_vtable. Correct a comment.
4551 2000-10-01 Ulf Carlsson <ulfc@engr.sgi.com>
4553 From Ralf Baechle <ralf@gnu.org>
4555 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_sections): Mark gld
4556 produces binaries with got[1] = 0x80000001 to differenciate them
4557 for the dynamic linker from the broken binaries produced by old
4560 2000-09-30 Petr Sorfa <petrs@sco.com>
4562 * elf.c (elfcore_grok_pstatus): Check for size of pxstatus_t.
4563 (elfcore_grok_lwpstatus): Check for size of lwpxstatus_t.
4564 * configure.in: Add check for pxstatus_t and lwpxstatus_t.
4565 * configure: Regenerate.
4567 2000-09-27 Hans-Peter Nilsson <hp@axis.com>
4569 Define two bfd_targets for absence and presence of leading
4570 underscore on symbols. Make sure to only link same kind.
4571 * elf32-cris.c (cris_elf_object_p,
4572 cris_elf_final_write_processing, cris_elf_print_private_bfd_data,
4573 cris_elf_merge_private_bfd_data): New.
4574 (elf_backend_object_p, elf_backend_final_write_processing,
4575 bfd_elf32_bfd_print_private_bfd_data,
4576 bfd_elf32_bfd_merge_private_bfd_data): Define.
4577 <Target vector definition>: Include elf32-target.h twice with
4578 different macro settings:
4579 (TARGET_LITTLE_SYM): First as bfd_elf32_cris_vec, then as
4580 bfd_elf32_us_cris_vec.
4581 (TARGET_LITTLE_NAME): First as "elf32-cris", then "elf32-us-cris".
4582 (elf_symbol_leading_char): First as 0, then '_'.
4583 (INCLUDED_TARGET_FILE): Define for second include of elf32-target.h.
4584 * config.bfd (cris-*-*): Add bfd_elf32_us_cris_vec to targ_selvecs.
4585 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vector.
4586 * configure: Regenerate.
4587 * targets.c: Declare bfd_elf32_us_cris_vec.
4588 * po/bfd.pot: Regenerate.
4590 2000-09-29 Momchil Velikov <velco@fadata.bg>
4592 * elf32-arm.h (arm_add_to_rel): Correctly adjust the addend for
4593 R_ARM_THM_PC22 relocations.
4595 2000-09-29 NIIBE Yutaka <gniibe@chroot.org>
4597 * elflink.h (elf_link_add_object_symbols): Don't bfd_release runpath.
4599 2000-09-29 Momchil Velikov <velco@fadata.bg>
4601 * elf.c (elf_fake_sections): Do not mark the section SHT_NOBITS if
4602 is has the SEC_HAS_CONTENTS flag set.
4604 2000-09-28
\81Örjan Friberg <orjanf@axis.com>
4605 Hans-Peter Nilsson <hp@axis.com>
4607 * aout-cris.c (N_TXTADDR): Define.
4609 2000-09-28 John David Anglin <dave@hiauly1.hia.nrc.ca>
4611 * som.c: Include alloca-conf.h.
4612 * Makefile.am: "make dep-am"
4613 * Makefile.in: Regenerate.
4615 2000-09-27 Alan Modra <alan@linuxcare.com.au>
4617 * elf32-hppa.c (plt_stub): New.
4618 (PLT_STUB_ENTRY): Define.
4619 (elf32_hppa_link_hash_table): Change multi_subspace to packed
4620 boolean. Add need_plt_stub, has_12bit_branch and has_17bit_branch.
4621 (elf32_hppa_link_hash_table_create): Init to suit.
4622 (elf32_hppa_check_relocs): Set has_12bit_branch and
4623 has_17bit_branch as appropriate.
4624 (elf32_hppa_adjust_dynamic_symbol): Set need_plt_stub for
4625 non-local functions.
4626 (elf32_hppa_size_dynamic_sections): Correct setting of reltext.
4627 Add space for plt_stub as needed.
4628 (elf32_hppa_finish_dynamic_symbol): Point .plt entries for global
4629 functions at plt_stub.
4630 (elf32_hppa_finish_dynamic_sections): Write plt_stub.
4631 (elf32_hppa_create_dynamic_sections): Leave .plt executable.
4633 * elf32-hppa.h (elf32_hppa_size_stubs): Add group_size param.
4634 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise. Use it instead
4635 of fixed size, and if negative, disable handling of input sections
4636 before stub section. Set up default stub group size depending
4637 on detected branch relocs.
4638 (hppa_build_one_stub): Use lrsel and rrsel for import stubs to
4639 ensure different offsets from sym_value aren't rounded to
4640 different 2k blocks. Use lrsel and rrsel for other stubs too for
4641 consistency rather than necessity.
4642 (elf32_hppa_check_relocs): Handle R_PARISC_DIR14F.
4643 (final_link_relocate): Likewise.
4644 (elf32_hppa_relocate_section): Likewise.
4646 * elf-hppa.h (elf_hppa_howto_table): Add R_PARISC_DIR14F reloc.
4647 (_bfd_elf_hppa_gen_reloc_type): Generate them.
4648 (elf_hppa_final_link_relocate): Handle them.
4649 (elf_hppa_relocate_insn): Likewise.
4650 (_bfd_elf_hppa_gen_reloc_type): Add missing e_ldsel and e_rdsel cases.
4652 2000-09-26 Hans-Peter Nilsson <hp@axis.com>
4654 * elfcode.h (elf_object_p): Preserve and clear abfd section
4655 information. Restore at error.
4657 2000-09-26 Paul Sokolovsky <Paul.Sokolovsky@technologist.com>
4659 * peigen.c (_bfd_pei_swap_aouthdr_in): If some DataDirectory
4660 is empty, make sure that its rva also 0. NT loader dislikes
4663 2000-09-26 Steve Ellcey <sje@cup.hp.com>
4665 * som.c (som_bfd_derive_misc_symbol_info): Make weak symbols
4668 2000-09-21 Alan Modra <alan@linuxcare.com.au>
4670 * elf32-hppa.c (elf32_hppa_check_relocs): Fix weak sym handling in
4671 currently unused RELATIVE_DYNAMIC_RELOCS code.
4672 (hppa_discard_copies): Likewise.
4673 (elf32_hppa_size_stubs): Size `input_list' array correctly. Correct
4674 comments. Don't check non-code output sections for stub grouping.
4676 2000-09-20 Alan Modra <alan@linuxcare.com.au>
4678 * section.c (bfd_get_unique_section_name): Return NULL if
4681 2000-09-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4683 * elf32-m68k.c (elf_cpu32_plt0_entry): Change the PLT entry 0
4684 instruction sequence to actually work.
4685 (elf_m68k_finish_dynamic_sections): Change the patch-in offset
4688 2000-09-18 Alexandre Oliva <aoliva@redhat.com>
4690 * elf32-sh.c (sh_elf_relocate_section): Use
4691 _bfd_final_link_relocate to apply the relocation against a section
4692 symbol, when doing relocatable links.
4694 2000-09-18 Alan Modra <alan@linuxcare.com.au>
4696 * elf32-hppa.c (elf32_hppa_stub_hash_entry): Rename input_section
4698 (stub_hash_newfunc): Here too.
4699 (hppa_add_stub): And here.
4700 (elf32_hppa_link_hash_table): Remove stub_section_created,
4701 reloc_section_created, first_init_sec and first_fini_sec. Add
4703 (elf32_hppa_link_hash_table_create): Init to suit.
4704 (hppa_get_stub_entry): Add support for grouping stub sections.
4705 (hppa_add_stub): Likewise. Remove sec_count param and init/fini
4706 section code. Index stub vars by section->id.
4707 (elf32_hppa_size_stubs): Likewise. Remove duplicated function
4708 exit paths. Zap allocation of above removed vars. Refine
4711 * elf32-hppa.h (elf32_hppa_size_stubs): Add output_bfd param.
4712 * elf32-hppa.c (elf32_hppa_size_stubs): Likewise.
4713 (hppa_get_stub_entry): Pass in pointer to elf32_hppa_link_hash_table
4714 rather than pointer to bfd_link_info.
4715 (hppa_add_stub): Likewise.
4716 (final_link_relocate): Likewise.
4718 2000-09-17 David Huggins-Daines <dhd@linuxcare.com>
4720 (elf32_hppa_size_stubs): Don't try to build stubs for discarded
4723 2000-09-16 Alexandre Oliva <aoliva@redhat.com>
4725 * elf32-sh.c (ELF_MAXPAGESIZE): Define to 128, to match
4726 ld/emulparams/shelf.sh.
4728 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4730 * elf32-m68k.c (bfd_m68k_elf32_create_embedded_relocs): New function.
4731 * bfd-in.h (bfd_m68k_elf32_create_embedded_relocs): Add declaration.
4732 * bfd-in2.h: Regenerate.
4734 2000-09-15 Kenneth Block <Kenneth.Block@compaq.com>
4736 * elf64-alpha.c (elf64_alpha_relax_with_lituse): ld performs
4737 LITUSE relocations incorrectly if -relax is specified on the ld
4738 command line and the displacement field of the load or store
4739 instruction is non-zero. (Patch by paul.winalski@compaq.com)
4741 2000-09-15 Alan Modra <alan@linuxcare.com.au>
4743 * elf32-hppa.c (hppa_add_stub): Dont set first_init_sec and
4744 first_fini_sec here.
4745 (elf32_hppa_size_stubs): Instead correctly find the first .init
4746 and .fini section here.
4748 2000-09-15 David Huggins-Daines <dhd@linuxcare.com>
4750 * elf32-hppa.c (clobber_millicode_symbols): New function.
4751 (elf32_hppa_size_dynamic_sections): Call it.
4753 2000-09-14 Alan Modra <alan@linuxcare.com.au>
4755 * elf32-hppa.c (elf32_hppa_link_hash_entry): Make pic_call
4756 packed. Add plabel, plt_abs packed booleans.
4757 (hppa_link_hash_newfunc): Init new fields.
4758 (PLABEL_PLT_ENTRY_SIZE): Define.
4759 (hppa_stub_name): Use size_t len vars.
4760 (hppa_add_stub): Likewise.
4761 (elf32_hppa_build_stubs): Likewise.
4762 (hppa_build_one_stub): Kill some compiler warnings.
4763 (elf32_hppa_check_relocs): Always generate a plt entry for PLABELs
4764 if dynamic linking. Munge the local plt offsets into
4765 local_got_refcounts. Set h->plabel for all global PLABELs. Use
4766 size_t len vars. Add assert for plabel addend.
4767 (elf32_hppa_gc_sweep_hook): Sweep local plt entries too.
4768 (elf32_hppa_hide_symbol): New function.
4769 (elf_backend_hide_symbol): Define.
4770 (elf32_hppa_adjust_dynamic_symbol): Don't throw away plt entries
4771 with h->plabel set. Don't make plt entries to have dynamic syms
4772 when they have been forced local. If plt entry is used by a
4773 plabel, make it PLABEL_PLT_ENTRY_SIZE.
4774 (elf32_hppa_size_dynamic_sections): Set plt_abs for init fns.
4775 Set up .plt offsets for local syms.
4776 (elf32_hppa_relocate_section): Initialise plt entries for local
4777 syms. Leave weak undefined plabels zero. Make global plabel
4778 relocs against function symbol, and leave the addend zero.
4779 Use *ABS* DIR32 relocs instead of SEGREL32 for dynamic got relocs.
4780 (elf32_hppa_finish_dynamic_symbol): Set up IPLT relocs for
4781 non-dynamic syms. Init extra plt for plabels. Use *ABS* DIR32
4782 relocs instead of SEGREL32 for dynamic got relocs.
4783 (elf32_hppa_finish_dynamic_sections): Reserve one more .got entry.
4784 (elf_backend_got_header_size): Adjust.
4785 (elf32_hppa_set_gp): Calculate an "ideal" LTP.
4787 * elf32-hppa.c (LONG_BRANCH_VIA_PLT): Define.
4788 (hppa_type_of_stub): Use it instead of #if 0
4789 (hppa_discard_copies): Use it here too.
4790 (elf32_hppa_size_dynamic_sections): And here.
4792 * elf32-hppa.c (elf32_hppa_link_hash_table): Remove `offset' field.
4793 (elf32_hppa_link_hash_table_create): And here.
4794 (hppa_build_one_stub): And here. Instead keep track of stub
4795 offset using _raw_size.
4796 (elf32_hppa_size_stubs): Likewise.
4797 (elf32_hppa_build_stubs): Likewise.
4798 (hppa_size_one_stub): Likewise. Resize reloc section too.
4800 * elf32-hppa.c (hppa_add_stub): Correct first_init_sec and
4801 first_fini_sec handling. Don't search for reloc section or set
4802 hplink->reloc_section_created here.
4803 (elf32_hppa_size_stubs): Instead search for reloc sections, and
4804 set reloc_section_created here.
4805 (hppa_handle_PIC_calls): Set ELF_LINK_HASH_NEEDS_PLT.
4806 (elf32_hppa_size_dynamic_sections): Make a .plt entry for DT_INIT
4808 (elf32_hppa_finish_dynamic_sections): Set DT_INIT and DT_FINI.
4810 * elf32-hppa.c (hppa_build_one_stub): Replace `elf_hash_table (info)'
4811 with `hplink->root.'.
4812 (elf32_hppa_check_relocs): Likewise.
4813 (elf32_hppa_gc_sweep_hook): Likewise.
4814 (elf32_hppa_adjust_dynamic_symbol): Likewise.
4815 (hppa_handle_PIC_calls): Likewise.
4816 (elf32_hppa_size_dynamic_sections): Likewise.
4817 (elf32_hppa_set_gp): Likewise.
4818 (elf32_hppa_relocate_section): Likewise.
4819 (elf32_hppa_finish_dynamic_symbol): Likewise.
4820 (elf32_hppa_finish_dynamic_sections): Likewise.
4822 From David Huggins-Daines <dhd@linuxcare.com>
4823 * elf32-hppa.c (hppa_type_of_stub): Generate import stubs for
4824 defined weak symbols in shared links.
4825 (final_link_relocate): Calls to defined weak symbols in shared
4826 objects must go via import stubs, as the target might not be known
4829 2000-09-14 Alexandre Oliva <aoliva@redhat.com>
4831 * elf32-sh.c (sh_elf_howto_table): Moved R_SH_GOT32, R_SH_PLT32,
4832 R_SH_COPY, R_SH_GLOB_DAT, R_SH_JMP_SLOT, R_SH_RELATIVE,
4833 R_SH_GOTOFF, R_SH_GOTPC) to the range from 160 to 167. Replaced
4834 the original entries with EMPTY_HOWTOs, and added new ones to fill
4836 (sh_elf_info_to_howto): Make sure the new gap isn't used.
4837 (sh_elf_relocate_section): Likewise.
4839 2000-09-13 Anders Norlander <anorland@acc.umu.se>
4841 * cpu-mips.c (arch_info_struct): Add mips:4K
4842 * bfd-in2.h (bfd_mach_mips4K): New define.
4843 * archures.c: Add bfd_mach_mips4K to comment.
4844 * elf32-mips.c (_bfd_mips_elf_final_write_processing): Return
4845 E_MIPS_ARCH_2 for bfd_mach_mips4K.
4847 2000-09-13 Marco Franzen <marcof@thyron.com>
4849 * som.c (som_write_symbol_strings): Do not used fixed buffers,
4850 use size_t as a counter.
4851 (som_write_space_strings): Similarly.
4853 2000-09-12 Jason Eckhardt <jle@cygnus.com>
4855 * elf32-i860.c (elf32_i860_relocate_pc26): New function
4857 (elf32_i860_relocate_section): Invoke new function from here.
4859 2000-09-11 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4861 * elf.c (_bfd_elf_make_section_from_shdr): Make debug_sec_names
4864 2000-09-10 Michael Sokolov <msokolov@ivan.Harhan.ORG>
4866 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): Emit 8 NULs for
4867 target section name instead of dumping core when the target symbol is
4870 2000-09-09 Kazu Hirata <kazu@hxi.com>
4872 * riscix.c: Remove DEFUN.
4874 2000-09-08 Nick Clifton <nickc@redhat.com>
4876 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Do not
4877 initialise flags in output bfd if the input bfd is the default
4878 architecture with the default flags.
4880 2000-09-08 Kazu Hirata <kazu@hxi.com>
4882 * archive.c: Fix formatting.
4883 * coff-arm.c: Likewise.
4884 * doc/chew.c: Likewise.
4886 2000-09-08 Alan Modra <alan@linuxcare.com.au>
4888 * section.c (bfd_get_unique_section_name): Put a dot before the
4891 2000-09-07 Kazu Hirata <kazu@hxi.com>
4893 * doc/chew.c: Remove all uses of DEFUN and DEFUN_VOID.
4894 * elf.c: Fix formatting.
4896 2000-09-07 Alexandre Oliva <aoliva@redhat.com>
4898 * config.bfd (sh-*-linux*): Added.
4899 * configure.in (bfd_elf32_shlin_vec, bfd_elf32_shblin_vec): New.
4900 * targets.c: Declare them.
4901 * elf32-sh-lin.c: New file.
4902 * Makefile.am: Compile it.
4903 * elf32-sh.c: Don't override defines from elf32-sh-lin.c.
4904 * configure, Makefile.in: Rebuilt.
4906 2000-09-06 Geoffrey Keating <geoffk@cygnus.com>
4908 * xcofflink.c (xcoff_link_input_bfd): Include the .tocbss
4909 pseduo-section when determining where the TOC ends.
4911 * coff-rs6000.c (_bfd_xcoff_swap_aux_out): Use bfd_h_put_16 to
4912 output x_tvndx as it is only two bytes wide.
4914 * coff-rs6000.c (xcoff_howto_table): A modifiable branch-absolute
4915 reloc is 26 or 32 bits wide.
4917 * coff-rs6000.c (_bfd_xcoff_rtype2howto): The bitsize is irrelevant
4918 for relocs that don't change anything. Also look at the full
4921 2000-09-06 Philip Blundell <philb@gnu.org>
4923 * config.bfd (arm*-*-uclinux*): New target.
4925 2000-09-06 Alexandre Oliva <aoliva@redhat.com>
4927 * configure: Rebuilt with new libtool.m4.
4929 2000-09-06 Alan Modra <alan@linuxcare.com.au>
4931 * section.c (bfd_get_unique_section_name): Avoid c++ reserved
4932 word for variable name.
4933 * bfd-in2.h: Regenerate.
4935 2000-09-05 Nick Clifton <nickc@redhat.com>
4937 * config.in: Regenerate.
4938 * libbfd.h: Regenerate.
4939 * po/bfd.pot: Regenerate.
4940 * doc/bfdint.texi: Remove CVS date string - it foils compares with
4943 2000-09-05 Steven Johnson <sbjohnson@ozemail.com.au>
4945 * cpu-powerpc.c (arch_info_struct): Added MPC860 Family entry.
4947 2000-09-05 Alan Modra <alan@linuxcare.com.au>
4949 Shared library and PIC support.
4950 * elf32-hppa.c (PLT_ENTRY_SIZE): New.
4951 (GOT_ENTRY_SIZE): New.
4952 (ELF_DYNAMIC_INTERPRETER): New.
4953 (STUB_SUFFIX): Define.
4954 (LONG_BRANCH_PIC_IN_SHLIB): Define.
4955 (RELATIVE_DYNAMIC_RELOCS): Define.
4956 (enum elf32_hppa_stub_type): New.
4957 (struct elf32_hppa_stub_hash_entry): Rename offset to
4958 stub_offset. Add a number of new fields.
4959 (struct elf32_hppa_link_hash_entry): New.
4960 (struct elf32_hppa_link_hash_table): Add numerous fields. Remove
4962 (elf32_hppa_hash_table): Rename to hppa_link_hash_table.
4963 (elf32_hppa_stub_hash_lookup): Rename to hppa_stub_hash_lookup.
4964 (elf32_hppa_stub_hash_newfunc): Rename to stub_hash_newfunc. Init
4966 (hppa_link_hash_newfunc): New function.
4967 (elf32_hppa_link_hash_table_create): Use above function. Init new
4969 (elf32_hppa_stub_name): Rename to hppa_stub_name. Pass in reloc
4970 instead of addend, and remove sym_name from args. Don't use
4971 symbol name for local syms, instead use sym index.
4972 (elf32_hppa_size_of_stub): Rename to hppa_type_of_stub, and return
4973 stub type rather than size. Pass in hash and handle import stub
4974 case. Also pass in reloc instead of offset so we can calculate
4975 PCREL22F and PCREL12F branches properly.
4976 (elf32_hppa_build_one_stub): Rename to hppa_build_one_stub. Build
4977 import and export stubs too.
4978 (elf32_hppa_size_one_stub): Rename to hppa_size_one_stub. Handle
4979 import and export stub sizing.
4980 (elf32_hppa_check_relocs): New function.
4981 (elf32_hppa_adjust_dynamic_symbol): New function.
4982 (hppa_discard_copies): New function.
4983 (elf32_hppa_size_dynamic_sections): New function.
4984 (elf_backend_size_dynamic_sections): Define.
4985 (elf32_hppa_finish_dynamic_symbol): New function.
4986 (elf_backend_finish_dynamic_symbol): Define.
4987 (elf32_hppa_size_stubs): Stash params in link hash table, and move
4988 some local vars into the link hash table too. For shared links,
4989 trundle over function syms, generating export stubs. Handle
4990 PCREL22F branches. Break out stub creation code from here..
4991 (hppa_add_stub): .. to here. New function.
4992 (elf32_hppa_final_link): Rename to elf32_hppa_set_gp, and don't
4993 call the bfd linker. Use elf_gp to record global pointer.
4994 Calculate a value from sections if $global$ is missing.
4995 (bfd_elf32_bfd_final_link): Define as _bfd_elf32_gc_common_final_link.
4996 (elf32_hppa_gc_mark_hook): New function.
4997 (elf_backend_gc_mark_hook): Define.
4998 (elf32_hppa_gc_sweep_hook): New function.
4999 (elf_backend_gc_sweep_hook): Define.
5000 (elf32_hppa_bfd_final_link_relocate): Rename to final_link_relocate.
5001 Add rel to args, and remove howto, input_bfd, offset, addend,
5002 sym_name as we can recalculate these locally. Handle calls to
5003 dynamic objects, extra PIC relocs, PCREL22F branches. Change
5004 handling of undefined weak syms. Check that stubs are in range.
5005 Only look for import stubs on PCREL17F and PCREL22F relocs. Add
5006 message on hitting a DPREL21L reloc that needs fixing. Subtract
5007 off PC for PCREL14F. Break out code that does a stub lookup from
5009 (hppa_get_stub_entry): ..to here. New function.
5010 (elf32_hppa_relocate_insn): Merge into final_link_relocate.
5011 (elf32_hppa_relocate_section): Handle got and plt relocs, dynamic
5013 (elf32_hppa_finish_dynamic_sections): New function.
5014 (elf_backend_finish_dynamic_sections): Define.
5015 (elf_backend_final_write_processing) Define.
5016 (hppa_handle_PIC_calls): New function.
5017 (elf32_hppa_build_stubs): Call it. Pass link_info to
5018 hppa_build_one_stub.
5019 (elf32_hppa_create_dynamic_sections): New function
5020 to create .plt and .got then set .plt flags correctly.
5021 (elf_backend_create_dynamic_sections): Define.
5022 (elf32_hppa_object_p): New function.
5023 (elf_backend_object_p): Define.
5024 (elf32_hppa_elf_get_symbol_type): New function.
5025 (elf_backend_get_symbol_type): Define.
5026 (elf_backend_can_gc_sections): Define.
5027 (elf_backend_want_got_plt): Define.
5028 (elf_backend_plt_alignment): Set to 2.
5029 (elf_backend_plt_readonly): Define.
5030 (elf_backend_want_plt_sym): Define.
5031 (elf_backend_got_header_size): Reserve one entry.
5033 * elf32-hppa.h (elf32_hppa_build_stubs): Don't pass stub bfd.
5034 (elf32_hppa_size_stubs): Pass in multi_subspace.
5035 (elf32_hppa_set_gp): Declare.
5037 * section.c (SEC_HAS_GOT_REF): Define new flag for asection.
5038 (bfd_get_unique_section_name): New function.
5039 * bfd-in2.h: Regenerate.
5041 * elf64-hppa.c (elf64_hppa_check_relocs): Handle R_PARISC_PCREL12F.
5042 (elf64_hppa_size_dynamic_sections): Remove the FIXME at bfd_zalloc
5045 From David Huggins-Daines <dhd@linuxcare.com>
5046 * elf64-hppa.c (elf64_hppa_check_relocs): Fix a warning.
5047 (elf64_hppa_mark_exported_functions): Set dyn_h->st_shndx.
5048 (elf64_hppa_link_output_symbol_hook): Test dyn_h->st_shndx has
5049 been updated in finish_dynamic_symbol before modifying function
5052 * elf-hppa.h (elf_hppa_howto_table): Restructure into groups of
5053 eight entries. Replace NULL with bfd_elf_generic_reloc. Add
5054 R_PARISC_GNU_VTENTRY, R_PARISC_GNU_VTINHERIT and R_PARISC_PCREL12F.
5055 (_bfd_elf_hppa_gen_reloc_type): Handle R_PARISC_GNU_VT*. Add some
5056 comments. Handle format == 12 for R_HPPA_PCREL_CALL.
5057 (elf_hppa_final_link_relocate): Handle R_PARISC_PCREL12F.
5058 (elf_hppa_relocate_insn): Likewise. Reformat some comments.
5059 (elf_hppa_final_write_processing): Expose it for ARCH_SIZE == 32.
5061 From David Huggins-Daines <dhd@linuxcare.com>
5062 * elf-hppa.h (elf_hppa_is_local_label_name): Accept the SysV/ELF
5063 style of local labels as well.
5065 2000-09-03 Philip Blundell <philb@gnu.org>
5067 * elf32-arm.h (elf32_arm_relocate_section): Don't try to relocate
5068 references to undefined symbols in debugging sections.
5070 2000-09-02 H.J. Lu <hjl@gnu.org>
5072 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5073 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE,
5074 BFD_RELOC_SH_GOTPC): Move them from the MIPS section to the SH
5077 2000-09-02 Jason Eckhardt <jle@cygnus.com>
5079 * elf32-i860.c (bfd_elf32_bfd_is_local_label_name): Define macro.
5080 (elf32_i860_is_local_label_name): New function and prototype.
5082 2000-09-02 Nick Clifton <nickc@redhat.com>
5084 * configure.in: Increase version number to 2.10.91.
5085 * configure: Regenerate.
5086 * aclocal.m4: Regenerate.
5087 * config.in: Regenerate.
5088 * po/bfd.pot: Regenerate.
5090 2000-09-02 Daniel Berlin <dberlin@redhat.com>
5092 * elf.c (_bfd_elf_make_section_from_shdr): Add
5093 .gnu.linkobce.wi. to the list of debug section names.
5095 2000-09-02 Nick Clifton <nickc@redhat.com>
5097 * dwarf2.c (find_debug_info): New function: Locate a section
5098 containing dwarf2 debug information.
5099 (bfd_dwarf2_find_nearest_line): Find all sections containing
5100 debug information and include them in the stash.
5102 2000-09-01 Niibe Yutaka <gniibe@m17n.org>, Kaz Kojima <kkojima@rr.iij4u.or.jp>, Alexandre Oliva <aoliva@redhat.com>
5104 * elf32-sh.c (R_SH_GOT32, R_SH_PLT32, R_SH_COPY, R_SH_GLOB_DAT,
5105 R_SH_JMP_SLOT, R_SH_RELATIVE, R_SH_GOTOFF, R_SH_GOTPC): New.
5106 (sh_reloc_map): Add new relocs.
5107 (sh_elf_check_relocs, sh_elf_link_hash_newfunc,
5108 sh_elf_link_hash_table_create, sh_elf_adjust_dynamic_symbol,
5109 sh_elf_size_dynamic_sections, sh_elf_finish_dynamic_symbol,
5110 sh_elf_finishe_dynamic_sections, sh_elf_discard_copies): New
5112 (ELF_DYNAMIC_INTERPRETER, PLT_ENTRY_SIZE): Define.
5113 (elf_sh_plt0_entry_be, elf_sh_plt0_entry_le,
5114 elf_sh_plt_entry_be, elf_sh_plt_entry_le,
5115 elf_sh_pic_plt_entry_be, elf_sh_pic_plt_entry_le):
5116 New array constants.
5117 (elf_sh_plt0_entry, elf_sh_plt_entry, elf_sh_pic_plt_entry):
5119 (elf_sh_sizeof_plt, elf_sh_plt_plt0_offset,
5120 elf_sh_plt0_linker_offset, elf_sh_plt0_gotid_offset,
5121 elf_sh_plt_temp_offset, elf_sh_plt_symbol_offset,
5122 elf_sh_plt_reloc_offset): Define.
5123 (elf_sh_pcrel_relocs_copied, elf_sh_link_hash_entry,
5124 elf_sh_link_hash_table): New structs.
5125 (sh_elf_link_hash_traverse, sh_elf_hash_table): New macros.
5126 (sh_elf_relocate_section, sh_elf_check_relocs): Handle new
5128 (elf_backend_create_dynamic_sections,
5129 bfd_elf32_bfd_link_hash_table_create,
5130 elf_backend_adjust_dynamic_symbol,
5131 elf_backend_size_dynamic_sections,
5132 elf_backend_finish_dynamic_symbol,
5133 elf_backend_finish_dynamic_sections, elf_backend_want_got_plt,
5134 elf_backend_plt_readonly, elf_backend_want_plt_sym,
5135 elf_backend_got_header_size, elf_backend_plt_header_size):
5137 * reloc.c (BFD_RELOC_SH_COPY, BFD_RELOC_SH_GLOB_DAT,
5138 BFD_RELOC_SH_JMP_SLOT, BFD_RELOC_SH_RELATIVE, BFD_RELOC_SH_GOTPC):
5140 * bfd-in2.h, libbfd.h: Rebuilt.
5142 2000-09-01 Alan Modra <alan@linuxcare.com.au>
5144 * elf32-i386.c (elf_i386_finish_dynamic_symbol): Revert 2000-08-27
5147 2000-08-31 J"orn Rennecke <amylaar@cygnus.co.uk>
5149 * elf32-sh.c (sh_elf_merge_private_data): If ibfd's elf header flags
5150 not initialized, set them to indicate the SH1 instruction set.
5152 2000-08-31 Alexandre Oliva <aoliva@redhat.com>
5154 * acinclude.m4: Include libtool and gettext macros from the
5156 * aclocal.m4, configure: Rebuilt.
5158 2000-08-29 Michael Snyder <msnyder@seadog.cygnus.com>
5160 * elf.c: Eliminate references to __sparcv9 macro; replace with
5161 autoconf variables HAVE_PSINFO32_T etc.
5162 * configure.in: Auto-configure HAVE_PSINFO_32_T, HAVE_PRPSINFO32_T,
5163 HAVE_PSTATUS32_T, HAVE_PRSTATUS32_T, HAVE_PRSTATUS32_T_PR_WHO.
5165 * acinclude.m4 (BFD_HAVE_SYS_PROCFS_TYPE) define _SYSCALL32 so it can
5166 detect the above typedefs. (BFD_HAVE_SYS_PROCFS_TYPE_MEMBER): Ditto.
5167 * aclocal.m4: Ditto.
5168 * configure: Regenerate.
5170 2000-08-27 Alan Modra <alan@linuxcare.com.au>
5172 * elf32-i386.c (elf_i386_check_relocs): Keep info on relocs copied
5173 for any shared link, not just shared -Bsymbolic.
5174 (elf_i386_size_dynamic_sections): Call elf_i386_discard_copies on
5175 any shared link, and pass link info to it.
5176 (elf_i386_size_dynamic_sections): Update comment.
5177 (elf_i386_discard_copies): Modify to discard relocs for symbols
5178 that have been forced local.
5179 (elf_i386_finish_dynamic_symbol): Don't copy relocs for symbols
5180 that have been forced local.
5182 2000-08-24 Denis Chertykov <denisc@overta.ru> & Nick Clifton <nickc@redhat.com>
5184 * elflink.h (elf_link_add_object_symbols): Allow common
5185 symbols to have an alignment of 1 if explicitly requested, and
5186 not overridden by other definitions.
5188 2000-08-22 Doug Kwan <dkwan@transmeta.com>
5190 * coff-w65.c (CREATE_LITTLE_COFF_TARGET): Fix typo.
5191 * coffcode.h (coff_set_flags): Add detection of w65 architecture.
5193 2000-08-22 H.J. Lu <hjl@gnu.org>
5195 * elf-bfd.h (elf_link_hash_table): Add runpath.
5197 * bfd-in.h (bfd_elf_get_runpath_list): New prototype.
5198 * bfd-in2.h: Rebuilt.
5200 * elf.c (_bfd_elf_link_hash_table_init): Initialize the
5201 "runpath" field to NULL.
5202 (bfd_elf_get_runpath_list): New function.
5204 * elflink.h (elf_link_add_object_symbols): Record DT_RPATH and
5207 2000-08-22 Alexandre Oliva <aoliva@redhat.com>
5209 * elf32-sh.c (sh_elf_relocate_section) [R_SH_IND12W,
5210 R_SH_DIR8WPN, R_SH_DIR8WPZ, R_SH_DIR8WPL]: Handle them
5211 explicitly. Improve validation of r_type.
5213 2000-08-21 H.J. Lu <hjl@gnu.org>
5215 * elf32-i386.c (elf_i386_size_dynamic_sections): Zero out the
5216 dynamic allocated content space. Add a comment to remind us that
5217 one day this ought to be fixed.
5218 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5219 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5220 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5222 2000-08-21 Jason Eckhardt <jle@cygnus.com>
5224 * elf32-i860.c (elf32_i860_relocate_pc16): Just write the immediate
5225 field with the newly relocated value instead of adding it to the
5226 existing immediate field.
5227 (elf32_i860_relocate_splitn): Likewise.
5228 (elf32_i860_relocate_highadj): Likewise.
5230 2000-08-16 Jason Eckhardt <jle@cygnus.com>
5232 * elf32-i860.c (elf32_i860_relocate_pc16): Implemented function (it
5233 was previously just a stub).
5235 2000-08-16 Alexandre Oliva <aoliva@redhat.com>
5237 * elflink.c (_bfd_elf_create_got_section): Don't abort().
5239 (_bfd_elf_create_dynamic_sections): Likewise.
5241 2000-08-16 Andrew Macleod <amacleod@cygnus.com>
5243 * elf64-sparc.c (sparc64_elf_relocate_section): Set relocation address
5244 for undefined symbols to be the beginning of the section.
5246 * elf64-sparc.c (sparc64_elf_adjust_dynamic_symbol): Don't allocate
5247 four extra entries at the beginning of the .rela.plt section.
5248 (sparc64_elf_finish_dynamic_symbol): Adjust the offset in the .rela.plt
5249 section to account for the four reserved entries in the .plt section.
5251 2000-08-15 Geoffrey Keating <geoffk@cygnus.com>
5253 * xcofflink.c (_bfd_ppc_xcoff_relocate_section): Add ori r0,r0,0
5254 to the list of NOPs we recognize after a branch-and-link.
5255 Use the ori NOP when one is needed.
5257 * coff-rs6000.c (_bfd_xcoff_slurp_armap): Finish implementation
5260 2000-08-14 Jim Wilson <wilson@cygnus.com>
5262 * elf64-ia64.c (elf64_ia64_merge_private_bfd_data): Handle
5263 EF_IA_64_REDUCEDFP, EF_IA_64_CONS_GP, and EF_IA_64_NOFUNCDESC_CONS_GP.
5264 (elf64_ia64_print_private_bfd_data): Likewise. Also handle
5267 2000-08-11 Alexandre Oliva <aoliva@redhat.com>
5269 * elf32-sh.c (sh_elf_set_mach_from_flags): Make it static.
5271 2000-08-10 Jason Eckhardt <jle@cygnus.com>
5273 * elf32-i860.c (elf32_i860_relocate_section): New function.
5274 (i860_final_link_relocate): New function.
5275 (elf32_i860_relocate_splitn): New function.
5276 (elf32_i860_relocate_pc16): New function.
5277 (elf32_i860_relocate_highadj): New function.
5278 (elf32_i860_howto): Minor adjustments to some relocations.
5279 (elf_info_to_howto_rel): Define.
5280 (elf_backend_relocate_section): Define.
5282 2000-08-10 Nick Clifton <nickc@cygnus.com>
5284 * elf32-arm.h: Fix formatting.
5286 2000-08-10 Bernd Schmidt <bernds@cygnus.co.uk>
5288 * elf32-sh.c (sh_elf_reloc_loop): Make LAST_SYMBOL_SECTION static.
5290 2000-08-08 Jason Eckhardt <jle@cygnus.com>
5292 * elf32-i860.c (elf32_i860_howto_table): Updated some fields.
5294 2000-08-07 Kazu Hirata <kazu@hxi.com>
5296 * ieee.c (ieee_write_debug_part): Rewrite a comment.
5297 * elf64-ia64.c: Fix a typo.
5299 2000-08-05 Jason Eckhardt <jle@cygnus.com>
5301 * elf32-i860.c (elf32_i860_howto_table): New structure.
5302 (lookup_howto): New function.
5303 (elf32_i860_reloc_type_lookup): New function.
5304 (elf32_i860_info_to_howto_rela): New function.
5305 (elf_code_to_howto_index): New structure.
5306 (elf_info_to_howto): Re-define as elf32_i860_info_to_howto_rela.
5307 (bfd_elf32_bfd_reloc_type_lookup): Re-define as
5308 elf32_i860_reloc_type_lookup.
5310 2000-08-04 Rodney Brown <RodneyBrown@pmsc.com>
5312 * som.c (struct fixup_format): Constify `format'.
5313 (som_hppa_howto_table): Use SOM_HOWTO macro.
5314 (try_prev_fixup, hppa_som_reloc): Decorate unused parameter.
5315 (som_bfd_reloc_type_lookup): Likewise.
5316 (compare_subspaces): Remove unused `count1', `count2'.
5317 (som_begin_writing): Remove unused `total_reloc_size'.
5318 (som_bfd_derive_misc_symbol_info): Decorate unused parameter.
5319 (som_print_symbol, som_bfd_is_local_label_name): Likewise.
5320 (som_set_reloc_info): Constify `cp'. Remove unused `addend'.
5321 (som_find_nearest_line): Decorate unused parameter(s).
5322 (som_sizeof_headers, som_get_symbol_info, som_write_armap): Likewise.
5323 (som_bfd_link_split_section): Likewise.
5325 2000-08-03 Nick Clifton <nickc@cygnus.com>
5327 * section.c: Restore backed out code.
5328 * elf.c: Restore backed out code.
5329 (copy_private_bfd_data): Fix bug preventing stipped dynamic
5330 binaries from working.
5331 * bfd-in2.h: Regenerate.
5333 2000-08-03 H.J. Lu <hjl@gnu.org>
5335 * section.c: Back out the change made by Nick Clifton
5336 <nickc@cygnus.com> on 2000-07-31. It breaks stripping dynamic
5338 * bfd-in2.h: Likewise.
5341 2000-08-03 Alexandre Oliva <aoliva@redhat.com>
5343 * elf32-sh.c (sh_elf_reloc_loop): Warning removal.
5345 2000-07-31 Jason Eckhardt <jle@cygnus.com>
5347 * reloc.c (BFD_RELOC_860_*): New bfd relocs for i860.
5348 * bfd-in2.h, libbfd.h: Regenerate.
5350 2000-07-31 Nick Clifton <nickc@cygnus.com>
5352 * section.c (struct sec): Add new boolean field 'segment_mark'.
5353 (STD_SECTION): Initialise new field to zero.
5355 * bfd-in2.h: Regenerate.
5357 * elf.c (copy_private_bfd_data): Reorganise section to segment
5358 mapping to cope with moved sections requiring new segments,
5359 and overlapping segments.
5360 (SEGMENT_END): New macro: Return the end address of a segment.
5361 (IS_CONTAINED_BY_VMA): New macro: Determine if a segment
5362 contains a section by comparing their VMA addresses.
5363 (IS_CONTAINED_BY_LMA): New macro: Determine if a segment
5364 contains a section by comparing their LMA addresses.
5365 (INCLUDE_SECTION_IN_SEGMENT): New macro: Determine if a
5366 section should be included in a segment.
5367 (SEGMENT_AFTER_SEGMENT): New macro: Determine if one segment
5368 follows another in memory.
5369 (SEGMENT_OVERLAPS_SEGMENT): New macro: Determine if two
5372 2000-07-22 Jason Eckhardt <jle@cygnus.com>
5374 * cpu-i860.c: Added comments.
5376 * elf32-i860.c (TARGET_LITTLE_SYM): Defined to
5377 bfd_elf32_i860_little_vec.
5378 (TARGET_LITTLE_NAME): Defined to "elf32-i860-little".
5379 (ELF_MAXPAGESIZE): Changed to 4096.
5381 * targets.c (bfd_elf32_i860_little_vec): Declaration of
5383 (bfd_target_vector): Added bfd_elf32_i860_little_vec.
5385 * config.bfd (i860-stardent-sysv4*, i860-stardent-elf*): Added
5386 config for little endian elf32 i860.
5387 (targ_defvec): Define for the new config above
5388 as "bfd_elf32_i860_little_vec".
5389 (targ_selvecs): Define for the new config above
5390 as "bfd_elf32_i860_vec bfd_elf32_i860_little_vec"
5392 * configure.in (bfd_elf32_i860_little_vec): Added recognition
5395 * configure: Regenerated.
5397 2000-07-27 H.J. Lu <hjl@gnu.org>
5399 * elflink.h (elf_merge_symbol): Take one more argument,
5400 dt_needed, to indicate if the symbol comes from a DT_NEEDED
5401 entry. Don't overide the existing weak definition if dt_needed
5403 (elf_link_add_object_symbols): Pass dt_needed to
5404 elf_merge_symbol ().
5406 2000-07-27 Nick Clifton <nickc@cygnus.com>
5408 * elflink.h (elf_link_size_reloc_section): Zeroes the section's
5411 2000-07-25 Geoffrey Keating <geoffk@cygnus.com>
5413 * configure.host (*-*-aix*): AIX has 'long long' always.
5415 * coff-rs6000.c (xcoff_write_one_armap_big): New procedure.
5416 (xcoff_write_armap_big): Write both 32-bit and 64-bit armaps.
5417 (xcoff_write_archive_contents_big): Don't update the offset
5418 of the symbol table, xcoff_write_armap will do it.
5420 2000-07-23 Ulf Carlsson <ulfc@engr.sgi.com>
5422 * elf32-mips.c (_bfd_mips_elf_check_relocs): Use abfd instead
5423 of dynobj for SGI_COMPAT checks.
5425 2000-07-21 Michael Sokolov <msokolov@ivan.Harhan.ORG>
5427 * coff-m68k.c (bfd_m68k_coff_create_embedded_relocs): New function.
5428 * bfd-in.h (bfd_m68k_coff_create_embedded_relocs): Add declaration.
5429 * bfd-in2.h: Regenerate.
5431 2000-07-21 Nick Clifton <nickc@cygnus.com>
5433 * elf32-mips.c (_bfd_mips_elf_check_relocs): Detect out of
5434 range symbol indices in relocs and issue an error message.
5436 2000-07-20 H.J. Lu <hjl@gnu.org>
5438 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Don't check
5439 info->new_dtags when setting DT_FLAGS_1. It will only be set
5440 by the new linker options. It shouldn't break anything.
5442 2000-07-20 H.J. Lu <hjl@gnu.org>
5444 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set DT_FLAGS_1
5445 only if info->new_dtags is true.
5447 2000-07-20 H.J. Lu <hjl@gnu.org>
5449 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Set
5450 DT_RUNPATH and DT_FLAGS only if info->new_dtags is true.
5452 2000-07-20 Hans-Peter Nilsson <hp@axis.com>
5454 * Makefile.am (ALL_MACHINES): Add cpu-cris.lo.
5455 (ALL_MACHINES_CFILES): Add cpu-cris.c.
5456 (BFD32_BACKENDS): Add aout-cris.lo and elf32-cris.lo.
5457 (BFD32_BACKENDS_CFILES): Add aout-cris.c and elf32-cris.c.
5458 (cpu-cris.lo, aout-cris.lo, elf32-cris.lo): New rules.
5459 * Makefile.in: Rebuild.
5460 * aclocal.m4: Rebuild.
5461 * aoutx.h (NAME(aout,machine_type)): Add case for bfd_arch_cris.
5462 * archures.c (enum bfd_architecture): Add bfd_arch_cris.
5463 (bfd_cris_arch): Declare.
5464 (bfd_archures_list): Add bfd_cris_arch.
5465 * bfd-in2.h: Rebuild.
5466 * config.bfd: (cris-*-*): New target.
5467 * configure.in (bfd_elf32_cris_vec, cris_aout_vec): New vectors.
5468 * configure: Rebuild.
5469 * elf.c (prep_headers): Add bfd_arch_cris.
5470 * libbfd.h: Rebuild.
5471 * libaout.h (enum machine_type): Add M_CRIS.
5472 * reloc.c: Add CRIS relocations.
5473 * targets.c (bfd_elf32_cris_vec, cris_aout_vec): Declare.
5474 (bfd_target_vect): Add bfd_elf32_cris_vec and cris_aout_vec.
5475 * cpu-cris.c, aout-cris.c, elf32-cris.c: New files.
5476 * po/POTFILES.in, po/bfd.pot: Regenerate.
5478 2000-07-19 H.J. Lu <hjl@gnu.org>
5480 * elf32-arm.h (elf32_arm_size_dynamic_sections): Also set
5481 DF_TEXTREL if DT_TEXTREL is set.
5482 * elf32-i370.c (i370_elf_size_dynamic_sections): Likewise.
5483 * elf32-i386.c (elf_i386_size_dynamic_sections): Likewise.
5484 * elf32-m68k.c (elf_m68k_size_dynamic_sections): Likewise.
5485 * elf32-mips.c (_bfd_mips_elf_size_dynamic_sections): Likewise.
5486 * elf32-ppc.c (ppc_elf_size_dynamic_sections): Likewise.
5487 * elf32-sparc.c (elf32_sparc_size_dynamic_sections): Likewise.
5488 * elf64-alpha.c (elf64_alpha_size_dynamic_sections): Likewise.
5489 * elf64-hppa.c (elf64_hppa_size_dynamic_sections): Likewise.
5490 * elf64-ia64.c (elf64_ia64_size_dynamic_sections): Likewise.
5491 * elf64-sparc.c (sparc64_elf_size_dynamic_sections): Likewise.
5493 * elflink.h (NAME(bfd_elf,size_dynamic_sections)): Also
5494 set DF_SYMBOLIC for symbolic link. Also set DT_RUNPATH if
5496 Set the DT_FLAGS and DT_FLAGS_1 entries if necessary.
5498 2000-07-19 H.J. Lu <hjl@gnu.org>
5500 * bfd-in.h (bfd_elf_set_dt_needed_soname): New.
5501 * bfd-in2.h: Rebuild.
5503 * elf-bfd.h (elf_obj_tdata): Add dt_soname.
5504 (elf_dt_soname): New.
5506 * elf.c (bfd_elf_set_dt_needed_soname): New.
5508 * elflink.h (elf_link_add_object_symbols): Add the DT_NEEDED
5509 entry if the shared object loaded by DT_NEEDED is used to
5510 resolve the reference in a regular object.
5512 2000-07-19 H.J. Lu <hjl@gnu.org>
5514 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_CONFIG,
5515 DT_DEPAUDIT and DT_AUDIT as strings.
5517 2000-07-19 Nick Clifton <nickc@cygnus.com>
5519 * format.c: Fix formatting.
5521 2000-07-19 H.J. Lu <hjl@gnu.org>
5523 * elf.c (_bfd_elf_print_private_bfd_data): Fix DT_CHECKSUM.
5525 2000-07-19 H.J. Lu <hjl@gnu.org>
5527 * elf.c (_bfd_elf_print_private_bfd_data): Handle DT_BIND_NOW,
5528 DT_INIT_ARRAY, DT_FINI_ARRAY, DT_INIT_ARRAYSZ, DT_FINI_ARRAYSZ,
5529 DT_RUNPATH, DT_FLAGS, DT_PREINIT_ARRAY, DT_PREINIT_ARRAYSZ,
5530 DT_PLTPADSZ, DT_MOVEENT, DT_MOVESZ, DT_FEATURE, DT_POSFLAG_1,
5531 DT_SYMINSZ, DT_SYMINENT, DT_CONFIG, DT_DEPAUDIT, DT_AUDIT,
5532 DT_PLTPAD, DT_MOVETAB, DT_SYMINFO, DT_RELACOUNT, DT_RELCOUNT,
5533 DT_FLAGS_1, DT_USED and DT_CHECKSUM.
5535 2000-07-18 Andrew Cagney <cagney@b1.cygnus.com>
5537 * elf.c (bfd_elf_get_sign_extend_vma, bfd_elf_get_arch_size): Move
5538 renamed functions from here...
5539 (assign_section_numbers): Use renamed functions.
5540 (prep_headers): Use renamed functions.
5542 * bfd.c (bfd_get_sign_extend_vma, bfd_get_arch_size): ...To here.
5543 * bfd-in.h (bfd_get_sign_extend_vma, bfd_get_arch_size): Update.
5544 * bfd-in2.h: Regenerate.
5546 2000-07-18 Ulf Carlsson <ulfc@engr.sgi.com>
5548 * elf32-mips.c (_bfd_mips_elf_finish_dynamic_symbol): Add
5549 parenthesis in if statement.
5551 2000-07-17 Koundinya K <kk@ddeorg.soft.net>
5553 Enable the support for Traditional MIPS.
5554 * elf32-mips.c (IRIX_COMPAT): Recognize bfd_elf32_tradbigmips_vecand
5555 return ict_none appropriately for traditional mips targets.
5556 (STUB_LW): Change 0x8f998000 to 0x8f998010 for traditional mips.
5557 (STUB_MOVE): Conditionalize for traditonal mips.
5558 (STUB_LI16): Likewise.
5559 (_bfd_mips_elf_modify_segment_map): Conditionalize to avoid making
5560 room for RTPROC header.
5561 (_bfd_mips_elf_modify_segment_map): For a normal mips executable set
5562 the permission for the PT_DYNAMIC as read, write and execute.
5563 (mips_elf_calculate_relocation): Check for the symbol _DYNAMIC_LINKING
5564 for traditonal mips.
5565 (_bfd_mips_elf_create_dynamic_sections): Add the symbol
5566 _DYNAMIC_LINKING for traditonal mips.
5567 (_bfd_mips_elf_create_dynamic_sections): Add the symbol __RLD_MAP
5568 in case of traditonal mips.
5569 (_bfd_mips_elf_adjust_dynamic_symbol): Create a stub only if a PLT
5570 entry is required. For a function if PLT is not required then set the
5571 corresponding hash table entry to 0.
5572 (_bfd_mips_elf_size_dynamic_sections): Add DT_DEBUG entry for
5574 (_bfd_mips_elf_finish_dynamic_symbol): for a undefined symbol in a
5575 shared object set the value to 0.
5576 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol
5577 _DYNAMIC_LINKING for traditonal mips.
5578 (_bfd_mips_elf_finish_dynamic_symbol): Check for the symbol __RLD_MAP
5579 for traditonal mips.
5581 2000-07-15 H.J. Lu <hjl@gnu.org>
5583 * aoutx.h (translate_to_native_sym_flags): Handle BSF_LOCAL.
5585 2000-07-12 Charles Wilson <cwilson@ece.gatech.edu>
5587 * libbfd.c (bfd_seek): fix 'seek beyond EOF' error when writing
5588 out a structure that is BFD_IN_MEMORY.
5590 2000-07-11 Alan Modra <alan@linuxcare.com.au>
5592 * elf64-hppa.c (get_dyn_name): Pass in section pointer instead of
5593 bfd pointer. Print section id instead of bfd pointer for local
5594 syms. Prefix addend with `+' for global syms as well as local.
5595 Correct calculation of name component lengths.
5596 (elf64_hppa_check_relocs): Update call to get_dyn_name.
5598 From David Huggins-Daines <dhd@linuxcare.com>
5599 * elf-hppa.h (elf_hppa_relocate_section): Update calls here too.
5600 * elf64-hppa.c (elf64_hppa_check_relocs): Fix some warnings.
5601 (elf64_hppa_modify_segment_map): Likewise.
5603 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5605 * elf.c (bfd_elf_get_sign_extend_vma): Return tendency of VMA
5606 addresses to be "naturally" sign extended. Return -1 if unknown.
5607 * bfd-in.h (bfd_elf_get_sign_extend_vma): Add declaration.
5608 * bfd-in2.h: Regenerate.
5610 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5612 * ecoffswap.h (ecoff_get_off, ecoff_put_off): Add ECOFF_SIGNED_32
5613 and ECOF_SIGNED_64 to list ways to extract an offset.
5614 (ecoff_swap_fdr_in, ecoff_swap_fdr_out, ecoff_swap_pdr_in,
5615 ecoff_swap_pdr_out, ecoff_swap_ext_in, ecoff_swap_ext_out):
5617 * elf64-mips.c (ECOFF_SIGNED_64): Define instead of ECOFF_64.
5618 * elf32-mips.c (ECOFF_SIGNED_32): Define instead of ECOFF_32.
5620 2000-07-11 Andrew Cagney <cagney@b1.cygnus.com>
5622 * elfcode.h (elf_object_p): Use bfd_set_start_address and not
5623 bfd_get_start_address.
5624 (elf_swap_ehdr_in): Sign extend e_entry when applicable.
5625 (elf_swap_ehdr_out): Ditto.
5627 2000-07-10 Alexander Aganichev <AAganichev@hypercom.com>
5629 * archures.c (bfd_default_scan): Add set of bfd_mach_ cases for
5630 compatibility with older binutils.
5632 2000-07-10 Alan Modra <alan@linuxcare.com.au>
5634 * section.c (bfd_make_section_anyway): Start section_id at 0x10.
5635 (STD_SECTION): Avoid negative ids, instead use 0 to 3.
5637 From Ryan Bradetich <rbradetich@uswest.net>
5638 * dwarf1.c (parse_die): Cure signed/unsigned char warnings.
5639 (parse_line_table): Ditto.
5640 (_bfd_dwarf1_find_nearest_line): Ditto.
5641 * syms.c (cmpindexentry): Remove extra `*' from params.
5643 2000-07-09 Koundinya K <kk@ddeorg.soft.net>
5645 * elf32-mips.c (sort_dynamic_relocs): New Function.
5646 (_bfd_mips_elf_finish_dynamic_sections): Call sort_dynamic_relocs
5647 via qsort to sort the dynamic relocations in increasing r_symndx
5650 2000-07-09 Alan Modra <alan@linuxcare.com.au>
5652 * elf64-hppa.c (elf64_hppa_dyn_hash_table_init): Add
5653 ATTRIBUTE_UNUSED to unused args.
5654 (get_opd): Likewise.
5655 (get_plt): Likewise.
5656 (get_dlt): Likewise.
5657 (get_stub): Likewise.
5658 (elf64_hppa_adjust_dynamic_symbol): Likewise.
5659 (elf64_hppa_link_output_symbol_hook): Likewise.
5660 (elf64_hppa_check_relocs): Delete unused var.
5661 (elf64_hppa_size_dynamic_sections): Likewise.
5662 (elf64_hppa_finalize_opd): Likewise.
5663 (elf64_hppa_finalize_dynreloc): Likewise.
5664 (elf64_hppa_modify_segment_map): Likewise.
5665 (elf64_hppa_finish_dynamic_sections): Likewise.
5667 * elf-hppa.h (elf_hppa_final_write_processing): Add
5668 ATTRIBUTE_UNUSED to unused args.
5669 (elf_hppa_final_link_relocate): Likewise.
5670 (elf_hppa_record_segment_addrs): Add paretheses.
5671 (elf_hppa_relocate_section): Constify dyn_name.
5673 From David Huggins-Daines <dhd@linuxcare.com>
5674 * config.bfd: Add hppa*64*-*-linux-gnu 64-bit target, and
5675 rearrange case statement so that it gets preferred to 32-bit ones.
5677 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Use
5678 asection->id instead of address of asection structure.
5679 (elf32_hppa_size_stubs): Likewise.
5681 * elf32-hppa.c (elf32_hppa_size_stubs): Use just one stub section
5682 for .init* and .fini*.
5684 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Mask pointers
5685 and addends used in stub names to 32 bits.
5686 (elf32_hppa_size_stubs): Likewise.
5688 * elf-hppa.h (elf_hppa_final_link_relocate): Don't sum addend
5689 twice for R_PARISC_GPREL64. Use bfd_put_32 for R_PARISC_PCREL32,
5690 not bfd_put_64. Fix minor comment typo and formatting.
5692 Changes to create multiple linker stubs, positioned immediately
5693 before the section where they are required.
5694 * elf32-hppa.c: Don't include hppa_stubs.h.
5695 (elf32_hppa_stub_hash_entry): Add a pointer to the stub section.
5696 (elf32_hppa_stub_hash_table): Delete.
5697 (elf32_hppa_link_hash_entry): Delete.
5698 (elf32_hppa_link_hash_table): Use plain bfd_hash_table for
5699 stub_hash_table, and store the struct here rather than a pointer.
5700 Delete output_symbol_count. Add offset array. Change
5701 global_value to a bfd_vma.
5702 (elf32_hppa_stub_hash_lookup): Use table instead of table->root.
5703 (elf32_hppa_stub_hash_traverse): Delete.
5704 (elf32_hppa_name_of_stub): Delete.
5705 (elf32_hppa_link_hash_lookup): Delete.
5706 (elf32_hppa_link_hash_traverse): Delete.
5707 (elf32_hppa_stub_hash_table_init): Delete.
5708 (elf32_hppa_size_of_stub): Pass input section and offset rather
5709 than location and calculate location here. Don't pass name as all
5710 stubs are now the same size.
5711 (elf32_hppa_stub_hash_newfunc): Init new fields.
5712 (elf32_hppa_link_hash_table_create): Likewise, and stub_hash_table
5714 (elf32_hppa_bfd_final_link_relocate): Cast enums to int before
5715 comparing against ints. Rewrite stub handling code.
5716 (elf32_hppa_relocate_section): Make r_type and r_symndx unsigned.
5717 Case enums to int before comparing against ints. Remove
5718 bfd_reloc_dangerous case.
5719 (elf32_hppa_build_one_stub): Rewrite.
5720 (elf32_hppa_size_one_stub): New function.
5721 (elf32_hppa_build_stubs): Rewrite.
5722 (elf32_hppa_size_stubs): Pass in linker call-back functions.
5723 Rewrite stub-handling specific code.
5725 * elf32-hppa.h (elf32_hppa_size_stubs): Update prototype.
5727 * elf64-hppa.c (elf64_hppa_dyn_hash_entry): Fix a comment typo.
5729 * hppa_stubs.h: Delete.
5730 * Makefile.am (SOURCE_HFILES): Remove hppa_stubs.h
5731 (elf32-hppa.lo): Remove hppa_stubs.h from dependencies.
5732 * Makefile.in: Regenerate.
5734 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Handle e_nlsel and
5737 * libhppa.h (hppa_field_adjust): Correct e_nsel case.
5739 * elf32-hppa.c (elf32_hppa_relocate_section): Mention the offset
5740 and section name for bfd_reloc_notsupported error message.
5741 (elf32_hppa_bfd_final_link_relocate): Print reasons for returning
5742 bfd_reloc_notsupported.
5743 (elf32_hppa_relocate_section): Add ATTRIBUTE_UNUSED to output_bfd.
5745 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Handle
5746 undefined weak symbols for all relocs.
5747 (elf32_hppa_size_of_stub): Adjust calculation by 8 since branch
5748 offsets are relative to one past the delay slot.
5749 (elf32_hppa_size_stubs): Account for reloc addend when calculating
5750 branch destination. Put addend into stub name too.
5751 (elf32_hppa_bfd_final_link_relocate): Account for reloc addend and
5752 adjust by 8 when deciding whether a linker stub is needed. Put
5753 addend into stub name as for above.
5755 * elf32-hppa.c (hppa_elf_relocate_insn): Change signed/unsigned on
5756 various args and vars.
5757 (elf32_hppa_bfd_final_link_relocate): Here too.
5758 (elf32_hppa_size_stubs): Rename index -> indx. Use e_indx for
5759 inner block var to avoid shadowing.
5761 * elf32-hppa.h (_bfd_elf32_hppa_gen_reloc_type): Make `field' arg
5763 * elf64-hppa.h (_bfd_elf64_hppa_gen_reloc_type): Ditto.
5764 * elf-hppa.h (_bfd_elf_hppa_gen_reloc_type): Ditto.
5765 (elf_hppa_fake_sections): Rename local var to avoid shadowing.
5767 * libhppa.h: Change practically all unsigned ints to plain ints.
5768 Remove tests on gcc version. Instead use ATTRIBUTE_UNUSED for
5771 From Ryan Bradetich <rbradetich@uswest.net>
5772 * libhppa.h (hppa_opcode_type): New enum to replace #define's.
5773 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Modify to
5775 From David Huggins-Daines <dhd@linuxcare.com>
5776 * elf-hppa.h (elf_hppa_relocate_insn): Update the opcode constants
5777 to the new OP_* ones.
5779 * elf32-hppa.c (elf32_hppa_size_stubs): Consolidate freeing on
5780 error exit. Bail out earlier on plabel relocs that we aren't
5781 interested in. Don't tell elf32_hppa_stub_hash_lookup to copy
5782 string, and then don't free our copy.
5783 (elf32_hppa_build_one_stub): Make insn unsigned int.
5785 * libhppa.h (bfd_hppa_insn2fmt): 22 bit branches are only
5786 available with BL, not BE and BLE.
5788 * elf32-hppa.c (hppa_elf_relocate_insn): Add some more example
5789 code for elf arg relocs.
5790 (elf32_hppa_bfd_final_link_relocate): Replace boolean is_local
5791 argument with elf_link_hash_entry h. Handle undefined weak
5792 symbols. Move $global$ lookup from here...
5793 (elf32_hppa_relocate_section): ...to here. Return correct error
5794 message for non-handled relocs.
5795 (elf32_hppa_size_of_stub): Correctly test branch range. Previous
5796 wrong test was -0x3ffff to +0x40000.
5798 * elf-hppa.h (elf_hppa_final_link_relocate): R_PARISC_DIR17R,
5799 R_PARISC_DIR17F, and R_PARISC_DIR21L are for absolute branches;
5800 Handle them as such.
5801 (elf_hppa_relocate_insn): Fix a typo.
5803 * libhppa.h (GET_FIELD, GET_BIT, MASK, CATENATE, ELEVEN): Delete.
5804 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
5805 assemble_17, assemble_21): Delete.
5806 Supply defines for all 64 possible opcodes.
5807 (bfd_hppa_insn2fmt): Add bfd argument, and use to select wide mode
5808 formats. Handle COMICLR.
5809 (hppa_rebuild_insn): Delete bfd argument. Handle formats 10, -11,
5812 * elf32-hppa.c (hppa_elf_relocate_insn): Complete rewrite.
5813 (elf32_hppa_bfd_final_link_relocate): Major rewrite.
5814 (elf32_hppa_build_one_stub): Modify hppa_elf_relocate_insn calls
5816 (elf32_hppa_size_stubs): Don't free stub_name twice. Read in all
5817 the local syms - did this code get deleted accidentally? Ignore
5818 undefined and undefweak syms.
5820 * elf-hppa.h (elf_hppa_final_link): Move hppa_info to outermost
5821 block. Use it instead of elf64_hppa_hash_table (info).
5822 (elf_hppa_final_link_relocate): Use hppa_info instead of
5823 elf64_hppa_hash_table (info).
5825 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
5826 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
5827 (hppa_rebuild_insn): Mask immediate bits here instead.
5828 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
5830 2000-07-08 Alan Modra <alan@linuxcare.com.au>
5832 * section.c (struct sec): Add id field. Tidy comment formatting.
5833 (bfd_make_section_anyway): Set id.
5834 (STD_SECTION): Init id too.
5835 Change CONST to const throughout.
5836 * archures.c (bfd_arch_info): Tidy comment.
5837 (bfd_arch_list): Change a CONST to const.
5838 * libbfd-in.h: Tidy comments and replace CONST with const.
5839 * elf-bfd.h: Likewise.
5840 * libbfd.h: Regenerate.
5841 * bfd-in2.h: Regenerate.
5842 * libcoff.h: Regenerate.
5844 2000-07-07 DJ Delorie <dj@redhat.com>
5846 * archive.c (_bfd_write_archive_contents): Add an informative
5849 2000-07-06 Kazu Hirata <kazu@hxi.com>
5851 * srec.c: Fix formatting.
5853 2000-06-05 DJ Delorie <dj@redhat.com>
5857 2000-07-04 Alexandre Oliva <aoliva@redhat.com>
5859 * coff-arm.c (coff_arm_relocate_section): Do not ignore the symbol
5860 value of PC-relative offsets.
5862 2000-07-03 Jim Wilson <wilson@cygnus.com>
5864 * elf64-alpha.c (alpha_elf_size_info): New.
5865 (elf_backend_size_info): Define to alpha_elf_size_info.
5866 * elfcode.h (elf_size_info): Change hash bucket size to 4.
5868 2000-07-03 Ulf Carlsson <ulfc@engr.sgi.com>
5870 * elf32-mips.c: Include elf32-target.h again for the traditional
5873 2000-07-03 Marek Michalkiewicz <marekm@linux.org.pl>
5875 * elf32-avr.c (bfd_elf32_bfd_reloc_type_lookup):
5876 Add ATTRIBUTE_UNUSED to unused arguments to avoid warnings.
5877 (avr_info_to_howto_rela): Likewise.
5878 (elf32_avr_gc_mark_hook): Likewise.
5879 (elf32_avr_gc_sweep_hook): Likewise.
5880 (elf32_avr_relocate_section): Likewise.
5882 2000-07-03 Mark Elbrecht <snowball3@bigfoot.com>
5884 * cofflink.c (_bfd_coff_write_global_sym): Turn a weak symbol into
5885 an external symbol for a non-shared, non-relocatable link.
5887 2000-07-03 Nick Clifton <nickc@redhat.com>
5889 * cofflink.c (IS_EXTERNAL): New macro: Return true if the symbol
5890 is an external symbol.
5891 (IS_WEAK_EXTERNAL): New macro: Return true if the symbol is a weak
5894 2000-07-03 Kazu Hirata <kazu@hxi.com>
5896 * reloc16.c: Fix formatting.
5898 2000-07-01 Koundinya K <kk@ddeorg.soft.net>
5900 * config.bfd: Change targ_defvec and targ_selvecs for mips*-*-sysv4*
5901 to add a new target for traditional mips i.e
5902 bfd_elf32_tradbigmips_vec and bfd_elf32_tradlittlemips_vec.
5903 * configure.in: Likewise.
5904 * configure: Rebuild.
5905 * targets.c (bfd_elf32_tradbigmips_vec): Declare and put in
5907 (bfd_elf32_tradlittlemips_vec): Likewise.
5908 * elfxx-target.h: Add macro INCLUDED_TARGET_FILE which is more a test
5909 to see that elfNN_bed does not get redefined even if the target file
5910 is included twice for a chip. See elf32-mips.c.
5912 2000-07-01 Alan Modra <alan@linuxcare.com.au>
5914 * Makefile.am (DEP): Fix 2000-06-22. grep after running dep.sed
5915 (CLEANFILES): Add DEPA.
5916 * Makefile.in: Regenerate.
5918 2000-06-30 DJ Delorie <dj@cygnus.com>
5920 * peicode.h (coff_swap_filehdr_in): can't use e_magic because we
5921 can't assume the PE header is at 0x80.
5923 2000-06-29 Mark Elbrecht <snowball3@bigfoot.com>
5925 * syms.c (_bfd_stab_section_find_nearest_line): Use IS_ABSOLUTE_PATH.
5927 2000-06-28 Mark Elbrecht <snowball3@bigfoot.com>
5929 * go32stub.h: Update stub.
5931 2000-06-26 Marek Michalkiewicz <marekm@linux.org.pl>
5933 * archures.c (bfd_mach_avr5): Define.
5934 * bfd-in2.h (bfd_mach_avr5): Define.
5935 * cpu-avr.c (arch_info_struct): Rename bfd_mach_avr4 to
5936 bfd_mach_avr5, add bfd_mach_avr4. Update comments.
5937 (compatible): Update comment. Add missing test.
5938 * elf32-avr.c (avr_final_link_relocate): Support 8K wrap
5939 for avr2 and avr4. Simplify 8K wrap code.
5940 (bfd_elf_avr_final_write_processing): Recognize bfd_mach_avr5.
5941 (elf32_avr_object_p): Recognize E_AVR_MACH_AVR5.
5943 2000-06-26 Kazu Hirata <kazu@hxi.com>
5945 * coff-h8300.c: Fix formatting.
5946 * cpu-h8300.c: Likewise.
5948 2000-06-24 Alexandre Oliva <aoliva@redhat.com>
5950 * elf32-arm.h (elf32_arm_final_link_relocate): Print `(local)'
5951 for local symbols whose names are unknown.
5953 2000-06-22 Alan Modra <alan@linuxcare.com.au>
5955 * Makefile.am (DEP): grep for leading `/' in DEP1, and fail if we
5957 * Makefile.in: Regenerate.
5958 * doc/Makefile.in: Regenerate.
5960 2000-06-20 H.J. Lu <hjl@gnu.org>
5962 * Makefile.am: Rebuild dependency.
5963 * Makefile.in: Rebuild.
5965 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
5967 * elf32-mips.c (_bfd_mips_elf_copy_indirect_symbol): New function.
5968 (elf_backend_copy_indirect_symbol): Map to the new function.
5970 2000-06-20 Alan Modra <alan@linuxcare.com.au>
5972 * archive.c (normalize): Correct pointer comparison when checking
5974 (bfd_bsd_truncate_arname): Likewise.
5975 (bfd_gnu_truncate_arname): Likewise.
5977 2000-06-20 Ulf Carlsson <ulfc@engr.sgi.com>
5979 * elf-bfd.h (struct elf_obj_tdata): Define per BFD Irix 5 virtual
5980 sections elf_{text,data}_{section,symbol}.
5981 * elf32-mips.c: mips_elf_{text,data}_{section,symbol}{,_ptr}: Remove.
5982 (_bfd_mips_elf_hide_symbol): New function.
5983 (elf_backend_hide_symbol): Map to the new function.
5984 (_bfd_mips_elf_add_symbol_hook): Change to use new per BFD
5985 definitions of mips_elf_{text,data}_{section,symbol}.
5986 (mips_elf_local_relocation_p): Try to find the direct symbol
5987 based on new check_forced argument.
5988 (mips_elf_calculate_relocation): Use new version of
5989 mips_elf_local_relocation_p.
5990 (mips_elf_relocate_section): Likewise.
5991 (_bfd_mips_elf_relocate_section): Likewise.
5992 (mips_elf_sort_hash_table): Only assert that have enough GOT
5994 (mips_elf_got16_entry): Match all 32 bits to the existing GOT
5995 entry if the relocation based on the new external argument.
5996 (mips_elf_create_dynamic_relocation): Assert that we have a
5997 section contents allocated where we can swap out the dynamic
5999 (mips_elf_calculate_relocation): Find the real hash-table entry
6000 correctly by using h->root.root.type. Only create a dynamic
6001 relocation entry if the symbol is defined in a shared library.
6002 Create an external GOT entry for the GOT16 relocation if the
6003 symbol was forced local.
6004 (_bfd_mips_elf_finish_dynamic_symbol): Don't assert there is a
6005 dynamic index if the symbol was forced local.
6007 2000-06-20 Maciej W. Rozycki <macro@ds2.pg.gda.pl>
6009 * elf32-mips.c: Fix typos in comments.
6011 2000-06-19 Mark Kettenis <kettenis@gnu.org>
6013 * rs6000-core.c: Wrap definition of `union VmInfo' within #ifdef
6016 2000-06-18 Stephane Carrez <stcarrez@worldnet.fr>
6018 * Makefile.in, bfd-in2.h, libbfd.h, configure: Rebuild.
6019 * Makefile.am (ALL_MACHINES, ALL_MACHINES_CFILES, BFD32_BACKENDS,
6020 BFD32_BACKENDS_CFILES): Add 68hc12, 68hc11 files.
6021 * configure.in (bfd_elf32_m68hc12_vec): Recognize.
6022 (bfd_elf32_m68hc11_vec): Likewise.
6023 * config.bfd (targ_cpu): Recognize 68hc12 and 68hc11.
6024 Supports 68hc11 & 68hc12 at the same time.
6025 * targets.c (bfd_elf32_m68hc12_vec): Declare and put in
6027 (bfd_elf32_m68hc11_vec): Likewise.
6028 * elf.c (prep_headers): Recognize bfd_arch_m68hc12 and 68hc11.
6029 * archures.c (bfd_m68hc12_arch): Define and register in global list
6030 (bfd_m68hc11_arch): Likewise.
6031 * reloc.c (BFD_RELOC_M68HC11_HI8, BFD_RELOC_M68HC11_LO8,
6032 BFD_RELOC_M68HC11_3B): Define.
6033 * cpu-m68hc12.c, elf32-m68hc12.c: New files for 68hc12 support.
6034 * cpu-m68hc11.c, elf32-m68hc11.c: New files for 68hc11 support.
6036 2000-06-18 Ulf Carlsson <ulfc@engr.sgi.com>
6038 * elf_bfd.h (struct elf_backend_data): Add info argument to
6039 elf_backend_hide_symbol.
6040 (_bfd_elf_link_hash_hide_symbol): Likewise.
6041 * elf.c (_bfd_elf_link_hash_hide_symbol): Likewise.
6042 * elf64-ia64.c (elf64_ia64_hash_hide_symbol): Likewise.
6043 * elflink.h (elf_link_add_object_symbols): Likewise.
6044 (elf_link_assign_sym_version): Likewise.
6046 2000-06-18 H.J. Lu <hjl@gnu.org>
6048 * coff-i386.c (coff_i386_reloc): Don't return in case of
6049 output_bfd == (bfd *) NULL if COFF_WITH_PE is defined.
6050 Compensate PE relocations when linking with non-PE object
6051 files to generate a non-PE executable.
6053 2000-06-17 Ulf Carlsson <ulfc@engr.sgi.com>
6055 * elf32-mips.c (mips_elf_calculate_relocation): Explicitly write
6056 GOT entries if we're doing a static link or -Bsymbolic link.
6058 2000-06-15 Ulf Carlsson <ulfc@engr.sgi.com>
6060 * elflink.h (elf_link_adjust_relocs): Check for and call backend
6061 specifific swap_reloc_{in,out} and swap_reloca_{in,out} if
6063 (elf_link_output_relocs): Likewise.
6064 (elf_reloc_link_order): Likewise.
6066 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6068 * archures.c (enum bfd_architecture): #define constants for
6069 PowerPc and RS6000 machine numbers.
6070 * bfd-in2.h: Regenerate.
6071 * coffcode.h (coff_set_arch_mach_hook): #ifdef XCOFF64, set arch
6072 to bfd_arch_powerpc instead of bfd_arch_rs6000. Refer to PowerPc
6073 and RS6000 machine numbers using #defined constants from
6075 * cpu-powerpc.c (arch_info_struct): Refer to PowerPc and RS6000
6076 machine numbers using #defined constants from archures.c. Add
6077 entries for EC603e, 630, A35, RS64II, RS64III, 7400. Specify
6078 64-bit words in 620 entry.
6079 * cpu-rs6000.c (arch_info_struct): Create with entries for RS1,
6081 (bfd_rs6000_arch): Change default machine to 0 (bfd_mach_rs6k).
6083 2000-06-16 Nicholas Duffek <nsd@cygnus.com>
6085 * coffcode.h (coff_mkobject_hook): Set xcoff_tdata.xcoff64.
6086 * libcoff-in.h (struct xcoff_tdata): Define xcoff64 field.
6087 * libcoff.h (struct xcoff_tdata): Define xcoff64 field.
6089 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6091 * bfd-in.h (bfd_family_coff): Define.
6092 * bfd-in2.h: Regenerate.
6093 * coffgen.c (coff_count_linenumbers, coff_symbol_from,
6094 coff_find_nearest_line): Check COFFness using bfd_family_coff()
6095 instead of bfd_target_coff_flavour.
6096 * cofflink.c (_bfd_coff_final_link): Likewise.
6097 * cpu-ns32k.c (do_ns32k_reloc): Don't strcmp() target name to
6098 exclude XCOFF files.
6099 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6101 * targets.c (enum bfd_flavour): Add bfd_target_xcoff_flavour.
6102 * xcoff-target.h (TARGET_SYM): Use bfd_target_xcoff_flavour.
6103 * xcofflink.c (XCOFF_XVECP): Delete.
6104 (bfd_xcoff_link_record_set, bfd_xcoff_import_symbol,
6105 bfd_xcoff_export_symbol, bfd_xcoff_link_count_reloc,
6106 bfd_xcoff_record_link_assignment,
6107 bfd_xcoff_size_dynamic_sections): Replace XCOFF_XVECP() with
6108 check for bfd_target_xcoff_flavour.
6110 2000-06-16 Nicholas Duffek <nsd@redhat.com>
6112 * rs6000-core.c: Support 64-bit core files, support pre-4.3 core
6114 (read_hdr): New function.
6115 (rs6000coff_core_p): Store mstsave or __context64 struct instead
6116 of trying to extract individual registers. Set abfd->arch_info
6117 to match the architecture that created the core file.
6118 (rs6000coff_get_section_contents): Delete.
6119 * xcoff-target.h (rs6000coff_get_section_contents): Delete.
6121 2000-06-14 H.J. Lu <hjl@gnu.org>
6123 * vms-misc.c (_bfd_vms_next_record): Return -1 if PRIV(vms_rec)
6126 2000-06-13 H.J. Lu <hjl@gnu.org>
6128 * configure: Regenerate.
6130 2000-06-13 J"orn Rennecke <amylaar@cygnus.co.uk>
6132 * peicode.h (pe_ILF_object_p): Use TARGET_LITTLE_SYM instead of
6135 2000-06-08 David O'Brien <obrien@FreeBSD.org>
6137 * configure.in (VERSION): Update to show this is the CVS mainline.
6139 2000-06-07 Alan Modra <alan@linuxcare.com.au>
6141 * elf32-d10v.c: Include elf/d10v.h
6142 (enum reloc_type): Delete.
6143 * elf32-d30v.c: Include elf/d30v.h
6144 (enum reloc_type): Delete.
6146 * Makefile.am: Run "make dep-am" to regenerate dependencies.
6147 * Makefile.in: Regenerate.
6149 * elf32-i386.c (elf_howto_table): Remove EMPTY_HOWTOs.
6150 (elf32_i386_vtinherit_howto, elf32_i386_vtentry_howto): Delete and
6151 move HOWTOs into elf_howto_table.
6152 (R_386_standard, R_386_ext_offset): Define.
6153 (R_386_ext, R_386_vt_offset, R_386_vt): Define.
6154 (elf_i386_reloc_type_lookup): Modify calculation of index into
6155 elf_howto_table since we've removed the padding.
6156 (elf_i386_info_to_howto_rel): Likewise.
6157 (elf_i386_relocate_section): Likewise.
6159 2000-06-06 Michael Snyder <msnyder@seadog.cygnus.com>
6161 * elf.c (elf_grok_pr_status): Eliminate reference to prgregset_t.
6163 2000-06-05 H.J. Lu <hjl@gnu.org>
6165 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Don't flag
6166 an error when seeing an undefined symbol with hidden/internal
6167 attribute. It is handled in *_relocate_section ().
6169 2000-06-05 H.J. Lu <hjl@gnu.org>
6171 * elflink.h (elf_fix_symbol_flags): Follow the link for the
6172 indirect symbol for the ELF_LINK_NON_ELF bit.
6173 (elf_link_output_extsym): Don't output the indirect symbol even
6174 if the ELF_LINK_NON_ELF bit is set.
6176 2000-06-01 J.T. Conklin <jtc@redback.com>
6178 * config.bfd (i[3456]86-*-netbsdelf*): New target.
6179 (i[3456]86-*-netbsdaout*): New target.
6180 (i[3456]86-*-netbsd*): Add bfd_elf32_i386_vec to targ_selvecs.
6181 (i[3456]86-*-openbsd*): Likewise.
6183 2000-05-30 Andrew Cagney <cagney@b1.cygnus.com>
6185 * trad-core.c: From hpux-core.c, include <dirent.h> or
6186 <sys/ndir.h> when possible.
6188 2000-05-31 Ulrich Drepper <drepper@redhat.com>
6190 * elf.c (_bfd_elf_slurp_version_tables): Correct reading of version
6191 definitions. We must not assume they are sorted in the file
6192 according to their index numbers.
6194 2000-05-31 Alan Modra <alan@linuxcare.com.au>
6196 * elf-hppa.h: (elf_hppa_final_link_relocate): Use e_rsel field
6197 selector for R_PARISC_PCREL17R. R_PARISC_DIR17R and
6198 R_PARISC_DIR17F are for absolute branches; Handle them as such.
6200 2000-05-30 Nick Clifton <nickc@cygnus.com>
6202 * cpu-i960.c (scan_960_mach): Accept 80960KA, 80960KB,
6203 80960CA, 80960MC as valid machine names.
6205 2000-05-30 H.J. Lu <hjl@gnu.org>
6207 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Clear the
6208 visibility bits if the symbol is undefined. Correctly handle
6209 weak undefined symbols with hidden and internal attributes.
6211 * elflink.h (elf_link_add_object_symbols): Always turn the
6212 symbol into local if it has the hidden or internal attribute.
6214 2000-05-29 Philip Blundell <philb@gnu.org>
6216 * ppcboot.c: Add packed attribute if compiling with GCC.
6218 2000-05-29 Anatoly Vorobey <mellon@pobox.com>
6220 * elf.c (_bfd_elf_link_hash_table_init): Initialize dynlocal.
6222 2000-05-26 Michael Snyder <msnyder@seadog.cygnus.com>
6224 * elf.c (elfcore_grok_prstatus, elfcore_grok_pstatus,
6225 elfcore_grok_psinfo): Add code to allow debugging a 32-bit
6226 corefile on a 64-bit (Sparc Solaris) host. Also clean up
6229 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6231 * Makefile.am: Update dependencies with "make dep-am"
6232 * Makefile.in: Regenerate.
6234 * sysdep.h (gettext, dgettext, dcgettext, textdomain,
6235 bindtextdomain): Replace defines with those from intl/libgettext.h
6236 to quieten gcc warnings.
6238 2000-05-26 Eli Zaretskii <eliz@is.elta.co.il>
6240 * aoutx.h (find_nearest_line): Use IS_ABSOLUTE_PATH.
6242 * archive.c (normalize, bfd_bsd_truncate_arname,
6243 bfd_gnu_truncate_arname) [HAVE_DOS_BASED_FILE_SYSTEM]: Support
6244 file names with backslashes.
6246 * cache.c (bfd_open_file) [__MSDOS__]: Don't unlink the file
6249 * sysdep.h: Include filenames.h.
6251 2000-05-26 Alan Modra <alan@linuxcare.com.au>
6253 * opncls.c (bfd_close_all_done): Mask file perms with 0777 not 0x777.
6255 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6257 * elf64-sparc.c (sparc64_elf_relax_section): New.
6258 (sparc64_elf_relocate_section): Optimize tail call into branch always
6260 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6261 (elf32_sparc_relax_section): New.
6263 2000-05-26 Jakub Jelinek <jakub@redhat.com>
6265 * elf64-sparc.c: Add ATTRIBUTE_UNUSED to unused function parameters.
6266 Remove unusued variables.
6267 (sparc64_elf_relocate_section): Change r_symndx type to unsigned long.
6268 (sparc64_elf_merge_private_bfd_data): Fix shared library case from
6269 previous fix, so that shared libs really don't influence targets
6270 extension mask and memory model.
6272 2000-05-23 H.J. Lu <hjl@gnu.org>
6274 * elf64-alpha.c (elf64_alpha_relocate_section): Check
6275 h->root.other not h->other.
6276 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6278 * elf32-ppc.c (ppc_elf_relocate_section): Fix a typo.
6280 2000-05-23 H.J. Lu <hjl@gnu.org>
6282 * elf32-i386.c (elf_i386_relocate_section): Don't allow the
6283 undefined symbol with the non-default visibility attributes.
6284 * elf-hppa.h (elf_hppa_relocate_section): Likewise.
6285 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
6286 * elf32-i370.c (i370_elf_relocate_section): Likewise.
6287 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
6288 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
6289 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
6290 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
6291 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
6292 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
6293 * elf64-ia64.c (elf64_ia64_relocate_section): Likewise.
6294 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
6296 2000-05-22 Richard Henderson <rth@cygnus.com>
6298 * elf64-ia64.c (ia64_howto_table): Add PCREL60B, PCREL21BI,
6299 PCREL22, PCREL64I. Zero size of special relocs.
6300 (elf64_ia64_reloc_type_lookup): Likewise.
6301 (USE_BRL, oor_brl, oor_ip): New.
6302 (elf64_ia64_relax_section): New.
6303 (elf64_ia64_check_relocs): Handle PCREL60B, PCREL22, PCREL64I.
6304 (elf64_ia64_install_value): Likewise, plus PCREL21BI.
6305 (elf64_ia64_relocate_section): Likewise.
6306 (bfd_elf64_bfd_relax_section): New.
6307 * reloc.c (BFD_RELOC_IA64_PCREL21BI): New.
6308 (BFD_RELOC_IA64_{PCREL22,PCREL60B,PCREL64I}): New.
6309 * bfd-in2.h, libbfd.h: Regenerate.
6311 2000-05-22 Nick Clifton <nickc@cygnus.com>
6313 * configure.in : Add peigen.lo to MIPS PE targets.
6314 * configure: Regenerate.
6316 2000-05-22 Momchil Velikov <velco@fadata.bg>
6318 * libbfd.c (_bfd_generic_verify_endian_match): Compare endianess
6319 only if it is known for both input and output bfds. Separate
6320 error message strings as in some languages, it may be necessary
6321 to change more than one place in the string to change between
6324 * elf32-ppc.c (ppc_elf_merge_private_bfd_data): Remove inline
6325 endianess checks, call _bfd_generic_verify_endian_match() instead.
6327 * elf32-mips.c (_bfd_mips_elf_merge_private_bfd_data): Likewise.
6329 * elf32-mcore.c (mcore_elf_merge_private_bfd_data): Likewise.
6331 * elf32-arm.h (elf32_arm_merge_private_bfd_data): Likewise. Verify
6332 endianess before checking bfd flavours.
6334 2000-05-22 H.J. Lu <hjl@gnu.org>
6336 * elflink.h (elf_link_output_extsym): Clear the visibility
6337 field for symbols not defined locally.
6339 2000-05-18 Alan Modra <alan@linuxcare.com.au>
6341 * libhppa.h (re_assemble_3, re_assemble_12, re_assemble_16,
6342 re_assemble_17, re_assemble_21, re_assemble_22): Don't mask insn.
6343 (hppa_rebuild_insn): Mask immediate bits here instead.
6344 * elf-hppa.h (elf_hppa_relocate_insn): Mask here too.
6346 2000-05-18 Momchil Velikov <velco@fadata.bg>
6348 * elflink.h (elf_bfd_final_link, elf_link_input_bfd): When emiting
6349 relocs for an executable, ensure that they are virtual addresses.
6351 2000-05-18 Jeffrey A Law (law@cygnus.com)
6353 * config.bfd (hppa*64*-*-hpux11*): New target triplet.
6355 2000-05-17 S. Bharadwaj Yadavalli <sby@scrugs.lkg.dec.com>
6356 Rick Gorton <gorton@scrugs.lkg.dec.com>
6358 * elflink.h: Add emitrelocations support: when enabled, relocation
6359 information and relocation sections are put into final output
6360 executables. If the emitrelocations flag is set, do the following:
6361 (elf_bfd_final_link): Emit relocation sections.
6362 (elf_link_input_bfd): Compute relocation section contents.
6363 (elf_gc_sections): Don't clean relocation sections.
6365 2000-05-16 Catherine Moore <clm@cygnus.com>
6367 * som.c (som_decode_symclass): Recognize weak symbols.
6369 2000-05-16 Szabolcs Szakacsits <szaka@F-Secure.com>
6371 * peigen.c (pe_print_idata): Undo part of 2000-05-12 change that
6372 read idata section only from dataoff.
6373 (pe_print_edata): Correctly check for valid eat_member.
6375 2000-05-16 J"orn Rennecke <amylaar@cygnus.co.uk>
6377 * elf32-sh.c (sh_elf_relax_delete_bytes): Handle R_SH_SWITCH8.
6379 2000-05-14 Philip Blundell <philb@gnu.org>
6381 * config.bfd (armeb-*-elf, arm*b-*-linux-gnu*): New targets.
6383 2000-05-12 Alan Modra <alan@linuxcare.com.au>
6385 * targets.c (bfd_target_vector): #ifdef BFD64 rs6000coff64_vec
6387 * peigen.c (pe_print_idata): Look for .idata section and print
6388 info even if data directory has zero entries. Read idata section
6389 starting from dataoff, and adjust all data offsets to suit. Cast
6390 all bfd_vma vars to unsigned long before passing to fprintf.
6391 * peigen.c (pe_print_edata): Similarly, look for .edata section
6392 and print info even if data directory has zero entries. Cast
6393 all bfd_vma vars to unsigned long before passing to fprintf.
6395 From Szabolcs Szakacsits <szaka@F-Secure.com>
6396 * peigen.c (pe_print_idata): Use bfd_section_size rather than data
6397 directory size which may be bogus.
6398 * peigen.c (pe_print_edata): Similarly.
6400 2000-05-09 Alan Modra <alan@linuxcare.com.au>
6402 * elf.c (bfd_section_from_shdr): Don't set use_rela_p if rela
6404 (copy_private_bfd_data): Allow for space possibly taken up by elf
6405 headers when calculating segment physical address from lma.
6407 2000-05-08 Alan Modra <alan@linuxcare.com.au>
6409 * versados.c (versados_scan): Init stringlen and pass_2_done.
6411 * trad-core.c (trad_unix_core_file_p): Return
6412 bfd_error_wrong_format rather than bfd_error_file_truncated.
6414 * peigen.c (_bfd_pei_swap_aouthdr_out): Pass ImageBase to
6415 add_data_entry. DataDirectory virtual address is relative.
6416 (pe_print_idata): Account for relative DataDirectory virtual
6417 addresses. Don't trash datasize inside POWERPC_LE_PE code.
6418 (pe_print_edata): Similarly.
6420 From Szabolcs Szakacsits <szaka@F-Secure.com>
6421 * peigen.c (dir_names): Add Delay Import Directory.
6422 (pe_print_idata): Always search for bfd section containing
6423 idata address rather than looking up section name. Print this
6424 section name rather than .idata.
6425 (pe_print_edata): Similarly. Also print some fields as %08lx.
6426 (_bfd_pe_print_private_bfd_data_common): Print Reserved1 field as
6429 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6431 * xcoff.h: Rename to xcoff-target.h
6432 * Makefile.am: Change all instances of xcoff.h to xcoff-target.h
6433 * coff-rs6000.c: Ditto.
6434 * coff64-rs6000.c: Ditto.
6435 * coff-pmac.c: Ditto.
6436 * Makefile.in: Regenerate.
6438 2000-05-05 Clinton Popetz <cpopetz@cygnus.com>
6440 * coffcode.h (coff_set_arch_mach_hook, coff_set_flags):
6441 Change U802TOC64MAGIC to U803XTOCMAGIC.
6443 2000-05-04 Michael Snyder <msnyder@seadog.cygnus.com>
6445 * elf.c (bfd_elf_get_arch_size): New function, return 32 | 64 | -1.
6446 * bfd-in.h: Prototype bfd_elf_get_arch_size.
6447 * bfd-in2.h: Prototype bfd_elf_get_arch_size.
6449 2000-05-04 Alan Modra <alan@linuxcare.com.au>
6451 * libhppa.h (HPPA_R_CONSTANT): Cast argument to bfd_signed_vma.
6453 2000-05-03 Martin v. L
\81öwis <loewis@informatik.hu-berlin.de>
6455 * elflink.h (elf_link_add_object_symbols): Reset dynindx for
6456 hidden and internal symbols.
6457 (elf_fix_symbol_flags): Clear NEEDS_PLT for symbols with
6459 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Do not
6460 assign a PLT or GOT entry to symbols with hidden and
6461 internal visibility.
6463 2000-05-03 Mark Elbrecht <snowball3@bigfoot.com>
6465 * coff-go32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Add entry for
6467 * coff-stgo32.c (COFF_SECTION_ALIGNMENT_ENTRIES): Likewise.
6469 2000-05-02 H.J. Lu <hjl@gnu.org>
6471 * elf.c (prep_headers): Use ELFOSABI_NONE instead of
6474 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6476 * targets.c (bfd_target_vector): Restore bfd_elf32_hppa_vec.
6477 * Makefile.am (BFD32_BACKENDS): Restore elf32-hppa.lo. Regenerate
6479 * Makefile.in: Regenerate.
6481 2000-05-01 Jim Wilson <wilson@cygnus.com>
6483 * Makefile.am (BFD32_BACKENDS): Add efi-app-ia32.lo.
6484 (BFD32_BACKENDS_CFILES): Add efi-app-ia32.c.
6485 (BFD64_BACKENDS): Delete coff-ia64.lo. Add efi-app-ia64.lo.
6486 (BFD64_BACKENDS_CFILES): Delete coff-ia64.c. Add efi-app-ia64.c.
6487 * Makefile.in: Rebuild.
6489 2000-05-02 Alan Modra <alan@linuxcare.com.au>
6491 * config.bfd: Re-enable elf32-hppa. It now compiles, even if it
6492 doesn't work very well.
6494 * elf-hppa.h (elf_hppa_internal_shdr): Define.
6495 (elf_hppa_fake_sections): hdr is elf_hppa_internal_shdr.
6496 Set hdr->s_type to 1 if ARCH_SIZE == 32.
6497 (_bfd_elf_hppa_gen_reloc_type): Add prototype.
6498 (elf_hppa_info_to_howto): Likewise.
6499 (elf_hppa_info_to_howto_rel): Likewise.
6500 (elf_hppa_reloc_type_lookup): Likewise.
6501 (elf_hppa_is_local_label_name): Likewise.
6502 (elf_hppa_fake_sections): Likewise.
6503 (elf_hppa_final_write_processing): Likewise.
6504 (elf_hppa_howto_table): Fully initialise all entries.
6505 (_bfd_elf_hppa_gen_reloc_type): Add ATTRIBUTE_UNUSED to args.
6506 (elf_hppa_info_to_howto): Likewise.
6507 (elf_hppa_info_to_howto_rel): Likewise.
6508 (elf_hppa_reloc_type_lookup): Likewise.
6509 (elf_hppa_final_write_processing, elf_hppa_add_symbol_hook,
6510 elf_hppa_unmark_useless_dynamic_symbols,
6511 elf_hppa_remark_useless_dynamic_symbols,
6512 elf_hppa_record_segment_addrs, elf_hppa_final_link,
6513 elf_hppa_relocate_section, elf_hppa_final_link_relocate,
6514 elf_hppa_relocate_insn): Compile only if ARCH_SIZE == 64 until
6515 elf32-hppa.c mess is cleaned up.
6516 (elf_hppa_final_link_relocate): Make insn and r_type unsigned
6517 int. Delete r_field. In case R_PARISC_PCREL21L, don't set
6518 r_field then call hppa_field_adjust inline func with variable
6519 r_field arg, instead call hppa_field_adjust with fixed arg.
6520 In case R_PARISC_PCREL22F, don't set r_field.
6521 (elf_hppa_relocate_insn): Change args and return type to unsigned
6522 int. Call re_assemble_* funcs to do the work.
6524 * elf32-hppa.c (hppa_elf_relocate_insn): Don't assume 32 bit when
6527 * libhppa.h (HPPA_R_CONSTANT): Don't assume 32 bit when sign
6529 (sign_extend): Mask first before sign extending.
6530 (low_sign_extend): Rewrite without condition expression.
6531 (ones, dis_assemble_3, dis_assemble_12, dis_assemble_16,
6532 dis_assemble_17, dis_assemble_21, dis_assemble_22): Delete.
6533 (assemble_3, assemble_6, assemble_12, assemble_16, assemble_16a,
6534 assemble_17, assemble_21, sign_unext, low_sign_unext): Return
6535 result as function return value rather than through pointer arg.
6536 Accept unsigned int args, and return unsigned int.
6537 (re_assemble_3): New. Combines function of dis_assemble_3 with
6538 re-assembly of opcode and immediate.
6539 (re_assemble_12): Likewise.
6540 (re_assemble_16): Likewise.
6541 (re_assemble_17): Likewise.
6542 (re_assemble_21): Likewise.
6543 (re_assemble_22): Likewise.
6544 (hppa_field_adjust): Rewrite and document, paying attention to
6545 size of types and signed/unsigned issues.
6546 (get_opcode): Shift before masking.
6547 (FDLW): Rename to FLDW.
6548 (bfd_hppa_insn2fmt): Change arg to unsigned int. Delete fmt.
6549 (hppa_rebuild_insn): Change args and return value to unsigned
6550 int. Make use of re_assemble_*. Correct case 11.
6552 * dep-in.sed: Handle ../opcodes/.
6553 * Makefile.am (SOURCE_HFILES): Add elf-hppa.h, elf32-hppa.h,
6554 elf64-hppa.h, hppa_stubs.h, xcoff.h.
6555 (BFD32_BACKENDS_CFILES): Restore elf32-hppa.c.
6556 Remove elf64-hppa.lo, cpu-ia64.lo, elf64-ia64.lo, elfarm-oabi.lo,
6557 elfarm-nabi.lo dependencies outside of auto-dependency area.
6558 Regenerate dependencies.
6559 * Makefile.in: Regenerate.
6561 * configure.in (TRAD_HEADER): Test non-null before
6563 * configure: Regenerate.
6565 * reloc.c: Fix mis-spelling in comment.
6567 2000-05-01 Alan Modra <alan@linuxcare.com.au>
6569 * coff-sh.c (bfd_coff_small_swap_table): Fix Fri Apr 28 change.
6570 * vms.c (vms_openr_next_archived_file): Return NULL.
6572 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6574 * coffcode.h Copy changes mistakenly done to libcoff.h in
6577 2000-04-29 Andreas Jaeger <aj@suse.de>
6579 * libbfd-in.h: Correctly check GCC version.
6580 * bfd-in.h: Likewise.
6581 * libhppa.h: Likewise.
6582 * libbfd.h: Regenerate.
6583 * bfd-in2.h: Regenerate.
6585 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6587 * Makefile.am (BFD64_BACKENDS, BFD64_BACKENDS_CFILES): Add
6588 coffdu-rs6000.{lo,c}.
6589 (coff-pmac.lo, coff-rs6000.lo, coff64-rs6000.lo): Add dependency
6591 * Makefile.in: Regenerate.
6592 * xcoff.h: New file.
6593 * coff-pmac.c: Use xcoff.h instead of coff-rs6000.c.
6594 * coff-rs6000.c: Move all declarations and defines that are
6595 common to the xcoff backends into xcoff.h
6596 * coff64-rs6000.c: Ditto,
6598 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6600 * coff-mips.c (mips_ecoff_backend_data): Add initialization of
6601 _bfd_coff_force_symnames in strings and
6602 _bfd_coff_debug_string_prefix_length to their default values.
6603 * coff-sh.c: (bfd_coff_small_swap_table): Ditto.
6605 2000-04-28 Clinton Popetz <cpopetz@cygnus.com>
6607 * coff-alpha.c (alpha_ecoff_backend_data): Add initialization of
6608 _bfd_coff_force_symnames in strings and
6609 _bfd_coff_debug_string_prefix_length to their default values.
6611 2000-04-27 Alan Modra <alan@linuxcare.com.au>
6613 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Return if dynobj NULL.
6614 Check local_got_refcounts before dereferencing.
6616 * elf32-ppc.c (ppc_elf_relocate_section): Check splt != NULL
6617 before deciding we don't need R_PPC_PLT32 relocation.
6618 (ppc_elf_gc_sweep_hook): Check local_got_refcounts before
6621 * elflink.h (elf_gc_common_finalize_got_offsets): Fix comment.
6623 * elf32-i386.c (elf_i386_check_relocs): Reference count .got and
6625 (elf_i386_gc_sweep_hook): Garbage collect .got and .plt entries.
6626 (elf_i386_adjust_dynamic_symbol): Recognize unused .plt entries.
6627 (elf_i386_relocate_section): Allow for .plt to go missing.
6628 (elf_i386_finish_dynamic_symbol): Use same test to decide if we
6629 can use a relative reloc for got as elf_i386_relocate_section.
6630 (bfd_elf32_bfd_final_link): Define to use gc form of final link.
6632 2000-04-26 Clinton Popetz <cpopetz@cygnus.com>
6634 * config.bfd: Remove extraneous bfd_powerpc_64_arch.
6636 2000-04-24 Clinton Popetz <cpopetz@cygnus.com>
6638 * Makefile.am (coff64-rs6000.lo): New rule.
6639 * Makefile.in: Regenerate.
6640 * coff-rs6000.c (xcoff_mkobject, xcoff_copy_private_bfd_data,
6641 xcoff_is_local_label_name, xcoff_rtype2howto,
6642 xcoff_reloc_type_lookup, xcoff_slurp_armap, xcoff_archive_p,
6643 xcoff_read_ar_hdr, xcoff_openr_next_archived_file, xcoff_write_armap,
6644 xcoff_write_archive_contents): No longer static, and prefix with _bfd_.
6645 (NO_COFF_SYMBOLS): Define.
6646 (xcoff64_swap_sym_in, xcoff64_swap_sym_out, xcoff64_swap_aux_in,
6647 xcoff64_swap_aux_out): New functions; handle xcoff symbol tables
6649 (MINUS_ONE): New macro.
6650 (xcoff_howto_tabl, xcoff_reloc_type_lookup): Add 64 bit POS
6652 (coff_SWAP_sym_in, coff_SWAP_sym_out, coff_SWAP_aux_in,
6653 coff_SWAP_aux_out): Map to the new functions.
6654 * coff64-rs6000.c: New file.
6655 * libcoff.h (bfd_coff_backend_data): Add new fields
6656 _bfd_coff_force_symnames_in_strings and
6657 _bfd_coff_debug_string_prefix_length.
6658 (bfd_coff_force_symnames_in_strings,
6659 bfd_coff_debug_string_prefix_length): New macros for above fields.
6660 * coffcode.h (coff_set_arch_mach_hook): Handle XCOFF64 magic.
6661 Set machine to 620 for XCOFF64. Use bfd_coff_swap_sym_in instead
6662 of using coff_swap_sym_in directly.
6663 (FORCE_SYMNAMES_IN_STRINGS): New macro, defined for XCOFF64.
6664 (coff_set_flags) Set magic for XCOFF64.
6665 (coff_compute_section_file_positions): Add symbol name length to
6666 string section length if bfd_coff_debug_string_prefix_length is
6668 (coff_write_object_contents): Don't do reloc overflow for XCOFF64.
6669 (coff_slurp_line_table): Use bfd_coff_swap_lineno_in instead of
6670 using coff_swap_lineno_in directly.
6671 (bfd_coff_backend_data): Add _bfd_coff_force_symnames_in_strings
6672 and _bfd_coff_debug_string_prefix_length fields.
6673 * coffgen.c (coff_fix_symbol_name, coff_write_symbols): Force
6674 symbol names into strings table when
6675 bfd_coff_force_symnames_in_strings is true.
6676 * coffswap.h (MAX_SCNHDR_NRELOC, MAX_SCNHDR_NLNNO, GET_RELOC_VADDR,
6677 SET_RELOC_VADDR): New macros.
6678 (coff_swap_reloc_in, coff_swap_reloc_out): Use above macros.
6679 (coff_swap_aux_in, coff_swap_aux_out): Remove RS6000COFF_C
6681 (coff_swap_aouthdr_in, coff_swap_aouthdr_out): Handle XCOFF64
6682 changes within RS6000COFF_C specific code.
6683 (coff_swap_scnhdr_out): Use PUT_SCNHDR_NLNNO, PUT_SCNHDR_NRELOC,
6684 MAX_SCNHDR_NRELOC, and MAX_SCNHDR_NLNNO.
6685 * reloc.c (bfd_perform_relocation, bfd_install_relocation):
6686 Extend existing hack on target name.
6687 * xcofflink.c (XCOFF_XVECP): Extend existing hack on
6689 * coff-tic54x.c (ticof): Keep up to date with new fields
6690 in bfd_coff_backend_data.
6691 * config.bfd: Add bfd_powerpc_64_arch to targ_arch and define
6692 targ_selvecs to include rs6000coff64_vec for rs6000.
6693 * configure.in: Add rs6000coff64_vec case.
6694 * cpu-powerpc.c: New bfd_arch_info_type.
6696 2000-04-24 Jeffrey A Law (law@cygnus.com)
6698 * config.bfd: Only disable elf32-hppa vectors, not all of the
6699 BSD and OSF configuration support. Provide (disabled) clauses
6701 * configure.in: Add clause for PA64 support.
6702 * configure: Rebuilt.
6704 * targets.c (bfd_target_vector): Add bfd_elf64_hppa_vec.
6705 (bfd_elf64_hppa_vec): Declare.
6707 * Makefile.am (BFD64_BACKENDS): Add elf64-hppa.lo
6708 (BFD64_BACKENDS_CFILES): Add elf64-hppa.c
6709 (elf64-hppa.lo): Add dependencies.
6710 * Makefile.in: Rebuilt.
6712 * elf64-hppa.c, elf64-hppa.h: New files with PA64 support.
6714 2000-04-24 Jason Eckhardt <jle@cygnus.com>
6716 * libhppa.h (dis_assemble_16): New function.
6717 (pa_arch): Added pa20w element.
6719 2000-04-24 Ulrich Drepper <drepper@cygnus.com>
6721 * elf-bfd.h: Add prototypes for bfd_elf32_write_relocs,
6722 bfd_elf32_slurp_reloc_table, bfd_elf64_write_relocs, and
6723 bfd_elf64_slurp_reloc_table.
6725 * elfcode.h (elf_write_relocs, elf_slurp_reloc_table): New
6726 definitions to get external names.
6727 (elf_write_relocs): Renamed from write_relocs and make global.
6728 (elf_slurp_reloc_table): Make global.
6729 (_bfd_elf,size_info): Use elf_write_relocs instead of write_relocs.
6731 * archive.c (hpux_uid_gid_encode): New function.
6732 (bfd_ar_hdr_from_filesystem): Use it if HPUX_LARGE_AR_IDS is
6733 defined and the ID is greater than 99999.
6734 (bfd_generic_stat_arch_elt): If HPUX_LARGE_AR_IDS is defined decode
6735 special uid/gid fields into 32 bit values.
6737 2000-04-21 Matthew Green <mrg@cygnus.com>
6739 * config.bfd: Add NetBSD/sparc64 support.
6741 Fri Apr 21 13:20:53 2000 Richard Henderson <rth@cygnus.com>
6742 David Mosberger <davidm@hpl.hp.com>
6743 Timothy Wall <twall@cygnus.com>
6744 Jim Wilson <wilson@cygnus.com>
6746 * Makefile.am (ALL_MACHINES): Add cpu-ia64.lo.
6747 (ALL_MACHINES_CFILES): Add cpu-ia64.c.
6748 (BFD64_BACKENDS): Add elf64-ia64.lo.
6749 (BFD64_BACKENDS_CFILES): Add elf64-ia64.c.
6750 (cpu-ia64.lo, elf64-ia64.lo): New rules.
6751 * Makefile.in: Rebuild.
6752 * archures.c (enum bfd_architecture): Add bfd_arch_ia64.
6753 (bfd_ia64_arch): Declare.
6754 (bfd_archures_list): Add bfd_ia64_arch.
6755 * bfd-in2.h: Rebuild.
6756 * config.bfd: (ia64*-*-linux-gnu*, ia64*-*-elf*): New targets.
6757 * configure: Rebuild.
6758 * configure.host: (ia64-*-linux*): New host.
6759 * configure.in (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec,
6760 bfd_efi_app_ia64_vec, bfd_efi_app_ia64_vec): New vectors.
6761 * elf.c (prep_headers): Add bfd_arch_ia64.
6762 * libbfd.h: Rebuild.
6763 * reloc.c: Add IA-64 relocations.
6764 * targets.c (bfd_elf64_ia64_little_vec, bfd_elf64_ia64_big_vec):
6766 (bfd_target_vect): Add bfd_elf64_ia64_little_vec.
6767 * cpu-ia64-opc.c, cpu-ia64.c, elf64-ia64.c: New files.
6769 2000-04-21 Richard Henderson <rth@cygnus.com>
6771 * elf32-d30v.c (bfd_elf_d30v_reloc): Don't modify section
6772 contents when performing a partial link.
6773 (bfd_elf_d30v_reloc_21): Likewise.
6775 2000-04-20 H.J. Lu <hjl@gnu.org>
6777 * elf32-i386.c (elf_i386_relocate_section): Restrict 1998-12-10
6778 patch to symbols defined by a shared object.
6779 * elf32-ppc.c (ppc_elf_relocate_section): Similarly.
6781 2000-04-19 Michael Sokolov <msokolov@ivan.Harhan.ORG>
6784 * dwarf2.c (concat_filename): Avoid string literal concatenation.
6785 * ieee.c (ieee_get_symtab): Don't initialise union in struct.
6787 Mon Apr 17 19:14:36 2000 David Mosberger <davidm@hpl.hp.com>
6789 * Makefile.am (BFD64_BACKENDS): Mention coff-ia64.lo.
6790 (BFD64_BACKENDS_CFILES): Mention coff-ia64.c
6791 (coff-ia64.lo): Add dependency.
6792 * Makefile.in: Regenerate.
6793 * coff-ia64.c: New file.
6794 * efi-app-ia32.c: Ditto.
6795 * efi-app-ia64.c: Ditto.
6796 * coffcode.h (coff_set_arch_mach_hook): Handle IA64MAGIC.
6797 (coff_set_flags): Ditto.
6798 (coff_write_object_contents) [IA64]: Set magic number to ZMAGIC.
6799 * config.bfd (i[3456]86-*-linux-gnu*): Mention bfd_efi_app_ia32_vec.
6800 * configure.in (elf): Handle bfd_efi_app_ia32 and bfd_efi_app_ia64_vec.
6801 * configure: Regenerate.
6802 * libpei.h (GET_OPTHDR_IMAGE_BASE): New macro.
6803 (PUT_OPTHDR_IMAGE_BASE): Ditto.
6804 (GET_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6805 (PUT_OPTHDR_SIZE_OF_STACK_RESERVE): Ditto.
6806 (GET_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6807 (PUT_OPTHDR_SIZE_OF_STACK_COMMIT): Ditto.
6808 (GET_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6809 (PUT_OPTHDR_SIZE_OF_HEAP_RESERVE): Ditto.
6810 (GET_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6811 (PUT_OPTHDR_SIZE_OF_HEAP_COMMIT): Ditto.
6812 (GET_PDATA_ENTRY): Ditto.
6813 * peigen.c (_bfd_pei_swap_aouthdr_in) [COFF_WITH_PEP64]: Don't read
6814 data_start. Use above macros to read fields that are 64 bit wide for
6815 COFF_WITH_PEP64. Don't truncate entry and text_start to 32 bits.
6816 (_bfd_pei_swap_aouthdr_out) [PEI_FORCE_MINIMUM_ALIGNMENT]: Force
6817 FileAlignment and SectionAlignment to minimum alignment if they
6819 (_bfd_pei_swap_aouthdr_out) [PEI_DEFAULT_TARGET_SUBSYSTEM]: Set
6820 Subsystem to default PEI_DEFAULT_TARGET_SUBSYSTEM.
6821 (_bfd_pei_swap_aouthdr_out) [COFF_WITH_PEP64]: Don't set data_start.
6822 Use above macros to write fields that are 64 bit wide for
6824 (pe_print_pdata): Set PDATA_ROW_SIZE to 3*8 for COFF_WITH_PEP64,
6825 5*4 otherwise. This should be right for IA-32 and IA-64, but may
6826 be wrong for platforms. Use PDATA_ROW_SIZE instead of hardcoded
6827 value of 20 bytes. Modify printing for COFF_WITH_PEP64 to print
6828 begin address, end address, and unwind info address only. Use
6829 GET_PDATA_ENTRY() to read .pdata entries. Use fprintf_vma() to
6831 (tbl): Add SECTION, REL32, RESERVED1, MIPS_JMPADDR16, DIR64, and
6832 HIGH3ADJ relocation names.
6833 (_bfd_pe_print_private_bfd_data): Print Subsystem name in legible form.
6834 * targets.c: Declare bfd_efi_app_ia32_vec and
6835 bfd_efi_app_ia64_vec.
6836 (bfd_target_vector): Mention bfd_efi_app_ia32_vec and
6837 bfd_efi_app_ia64_vec.
6839 2000-04-17 Timothy Wall <twall@cygnus.com>
6841 * bfd-in2.h: Add prototypes for tic54x load page access.
6842 * bfd-in.h: Regenerate.
6843 * coff-tic54x.c: Add load page functions; allow bfd_arch_unknown
6844 in customized _set_arch_mach function.
6845 * coffcode.h (coff_set_alignment_hook): Set section load page if
6846 the appropriate macro is defined.
6847 (write_object_contents): Read section load page.
6849 2000-04-13 Alan Modra <alan@linuxcare.com.au>
6851 * elf32-hppa.h: Update copyright date.
6853 * elf32-fr30.c (fr30_elf_i20_reloc): Don't use U suffix.
6854 * elf32-mips.c (_bfd_mips_elf_relocate_section): And here.
6856 * elf32-d30v.c (MAX32): Don't use LL suffix.
6857 (MIN32): Define in terms of MAX32.
6858 (bfd_elf_d30v_reloc): Make relocation a bfd_signed_vma.
6860 * coff-a29k.c (SIGN_EXTEND_HWORD): Replace with more concise
6863 * peicode.h (pe_ILF_build_a_bfd): Remove UL from hex constants.
6865 2000-04-12 Alan Modra <alan@linuxcare.com.au>
6867 * dep-in.sed: Match space before file name, not after.
6868 * Makefile.am: Regenerate dependencies.
6869 * Makefile.in: Regenerate.
6871 * reloc.c (_bfd_relocate_contents): In complain_overflow_bitfield
6872 case, allow address wrap-around stupidly removed 2000-03-17. Sign
6873 extend without an if statement.
6875 2000-04-11 Alan Modra <alan@linuxcare.com.au>
6877 * coff-mips.c (mips_gprel_reloc): Test for 16 bit range using
6879 * elf32-mips.c (gprel16_with_gp): Likewise.
6880 * elf32-hppa.c (elf32_hppa_bfd_final_link_relocate): Test range
6881 here using -0x40000, not (int)0xfffc0000.
6882 (elf32_hppa_size_of_stub): Likewise.
6884 2000-04-11 Timothy Wall <twall@cygnus.com>
6886 * coff-tic54x.c: Now builds with all targets.
6887 * Makefile.am: Add coff/tic54x.h to coff-tic54x.o dependencies.
6888 * Makefile.in: Regenerate.
6889 * coffcode.h (coff_set_arch_mach_hook): Eliminate warning on
6890 unitialized variable.
6892 Fri Apr 7 15:56:57 2000 Andrew Cagney <cagney@b1.cygnus.com>
6894 * configure.in (WARN_CFLAGS): Set to -W -Wall by default. Add
6895 --enable-build-warnings option.
6896 * Makefile.am (AM_CFLAGS, WARN_CFLAGS): Add definitions.
6897 * Makefile.in, configure: Re-generate.
6899 2000-04-07 Nick Clifton <nickc@cygnus.com>
6901 * reloc.c: Add BFD_RELOC_ARM_PCREL_BLX and
6902 BFD_RELOC_THUMB_PCREL_BLX.
6904 * elf32-arm.h (elf32_arm_final_link_relocate): Handle
6905 R_ARM_XPC25 and R_ARM_THM_PC22.
6907 * elfarm-nabi.c (elf32_arm_howto_): Fix definitions of
6908 R_ARM_XPC25 and R_ARM_THM_XPC22.
6909 (elf32_arm_reloc_map): Make BFD_RELOC_{ARM|THUMB}_PCREL_BLX to
6910 R_ARM_[XPC25|THM_XPC22].
6912 * elfarm-oabi.c: Define OLD_ARM_ABI and change include from
6913 elf/arm-oabi.h to elf/arm.h
6915 * Makefile.am: Fix dependency for elfarm-oabi.c
6916 * Makefile.in: Regenerate.
6918 * bfd-in2.h: Regenerate.
6919 * libbfd.h: Regenerate.
6921 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6923 * elfcore.h (elf_core_file_p): preserve value of tdata at entry,
6924 and restore it on failure. Release newly allocated tdata on
6927 Fri Apr 7 11:33:47 2000 Jim Wilson <wilson@cygnus.com>
6929 * dwarf2.c (struct dwarf2_debug): New field dwarf_line_size.
6930 (decode_line_info): Set it. Report error if unit->line_offset is
6931 equal to or larger than it.
6933 2000-04-07 Timothy Wall <twall@cygnus.com>
6935 * targets.c: Added vecs for tic54x.
6936 * reloc.c: Added relocs for tic54x.
6937 * libbfd.h: Regenerated.
6938 * configure: Add TI COFF vecs for tic54x.
6939 * configure.in: Ditto.
6940 * config.bfd (targ_cpu): Recognize new tic54x target.
6941 * coffcode.h (coff_slurp_symbol_table): Additions for TI COFF handling.
6942 * bfd-in2.h: Add tic54x target and relocations.
6943 * Makefile.am, Makefile.in: Add tic54x target.
6944 * archures.c (bfd_archures_list): Add tic54x target.
6945 * coff-tic54x.c: New.
6946 * cpu-tic54x.c: New.
6948 2000-04-06 Michael Snyder <msnyder@seadog.cygnus.com>
6950 * elfcore.h (elf_core_file_p): call backend_object_p which
6951 thereby gets an opportunity to update the arch/machine type.
6953 2000-04-06 Timothy Wall <twall@cygnus.com>
6955 * coffcode.h (coff_slurp_symbol_table): Handle C_STATLAB storage
6956 class. Handle SEC_CLINK and SEC_BLOCK flags.
6957 * section.c: Add SEC_CLINK and SEC_BLOCK flags.
6958 * bfd-in2.h: Add SEC_CLINK and SEC_BLOCK flags.
6960 2000-04-06 Nick Clifton <nickc@cygnus.com>
6962 * elf32-arm.h (elf32_arm_set_private_flags): Only check for
6963 EF_INTERWORK if this is an unknown EABI.
6964 (elf32_arm_merge_private_bfd_data): Check EABI version
6965 numbers. Only check EF_xxx flags if the EABI version number
6967 (elf32_arm_check_private_bfd_data): Only check EF_xxx flags
6968 if the EABI version number is unknown.
6969 (elf32_arm_print_private_bfd_data): Only decode EF_xxx flags
6970 if the EABI version number is unknown.
6972 Wed Apr 5 22:04:20 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
6974 * reloc.c (_bfd_relocate_contents): Add BFD_RELOC_SH_LOOP_START and
6975 BFD_RELOC_SH_LOOP_END.
6976 * elf32-sh.c (sh_elf_howto_tab): Change special_func to
6977 sh_elf_ignore_reloc for all entries that sh_elf_reloc used to ignore.
6978 Add entries for R_SH_LOOP_START and R_SH_LOOP_END.
6979 (sh_elf_reloc_loop): New function.
6980 (sh_elf_reloc): No need to test for always-to-be-ignored relocs
6982 (sh_rel): Add entries for BFD_RELOC_SH_LOOP_{START,END}.
6983 (sh_elf_relocate_section): Handle BFD_RELOC_SH_LOOP_{START,END}.
6984 * bfd-in2.h, libbfd.h: Regenerate.
6986 2000-04-04 Alan Modra <alan@linuxcare.com.au>
6988 * po/bfd.pot: Regenerate.
6990 * Makefile.am: Remove extraneous mkdep comment.
6991 (MKDEP): Use gcc -MM rather than mkdep.
6992 (DEP): Quote when passing vars to sub-make. Add warning
6994 (DEP1): Rewrite for "gcc -MM".
6995 (CLEANFILES): Add DEP2.
6996 Update dependencies.
6997 * Makefile.in: Regenerate.
6999 2000-04-03 Kevin Buettner <kevinb@redhat.com>
7001 * configure.in: Added corefile support for AIX 4.3. In particular,
7002 AIX_CORE_DUMPX_CORE will be defined in addition to AIX_CORE when
7003 compiling rs6000-core.c.
7004 * configure: Regenerated.
7006 2000-04-03 H.J. Lu <hjl@gnu.org>
7008 * cache.c (bfd_open_file): Unlink the output file only if
7009 it has non-zero size.
7011 2000-04-01 Ken Block USG <block@zk3.dec.com>
7013 * elf64-alpha.c (elf64_alpha_relocate_section): Don't emit
7014 relative relocations for non-loaded sections in shared objects.
7015 (elf64_alpha_check_relocs): Similarly.
7017 Mon Apr 3 13:37:15 2000 Hans-Peter Nilsson <hp@axis.com>
7019 * aoutx.h (NAME(aout,reloc_type_lookup)): Add BFD_RELOC_8 and
7020 BFD_RELOC_16 to switch for extended relocs.
7021 (MY_swap_ext_reloc_in): New.
7022 (MY_swap_ext_reloc_out): New.
7023 (NAME(aout,slurp_reloc_table)): Use MY_swap_ext_reloc_in rather
7024 than NAME(aout,swap_ext_reloc_in) for extended relocs.
7025 (NAME(aout,squirt_out_relocs)): Similarly use
7026 MY_swap_ext_reloc_out.
7027 (aout_link_reloc_link_order): Use MY_put_ext_reloc if defined.
7029 2000-04-03 Kazu Hirata <kazu@hxi.com>
7031 * coff-h8300.c (h8300_reloc16_extra_cases): Add bsr:16 -> bsr:8 to
7032 the R_PCRWORD_B case.
7034 2000-03-31 Thomas de Lellis <tdel@wrs.com>
7036 * srec.c : Set CHUNK size to 16 bytes to prevent download failures
7040 Wed Mar 30 15:28:00 2000 Donald Lindsay <dlindsay@cygnus.com>
7042 * elf32-m32r.c (m32r_elf_generic_reloc): new function. All
7043 HOWTO references to bfd_elf_generic_reloc, that have
7044 partial_inplace == true, now use the new function. The function
7045 is based on the recent rewrite of m32r_elf_lo16_reloc(), and
7046 extends its fixes to the R_M32R_{16,24,32} relocs.
7047 The new logic in m32r_elf_lo16_reloc() has been removed, and
7048 it instead calls the new routine to obtain that functionality.
7050 2000-03-27 Alan Modra <alan@linuxcare.com.au>
7052 * elf32-avr.c (elf32_avr_gc_mark_hook, elf32_avr_gc_sweep_hook,
7053 elf32_avr_check_relocs, avr_final_link_relocate,
7054 elf32_avr_relocate_section, bfd_elf_avr_final_write_processing,
7055 elf32_avr_object_p): Add prototypes.
7056 (elf32_avr_gc_mark_hook): Add default for h->root.type.
7057 (bfd_elf_avr_final_write_processing): Make static.
7059 2000-03-27 Denis Chertykov <denisc@overta.ru>
7061 * cpu-avr.c: New file. BFD support routines for AVR architecture.
7062 * archures.c (bfd_architecture): Add AVR architecture.
7063 (bfd_archures_list): Add reference to AVR architecture info.
7064 * elf.c (prep_headers): Handle bfd_arch_avr.
7065 * reloc.c: Add various AVR relocation enums.
7066 * targets.c (bfd_elf32_avr_vec): Declare and add to target vector
7068 * Makefile.am: Add support for AVR elf.
7069 * configure.in: Likewise.
7070 * config.bfd: Likewise.
7071 * Makefile.in: Regenerate.
7072 * configure: This too.
7073 * bfd-in2.h: And this.
7074 * libbfd.h: And this.
7076 2000-03-24 H.J. Lu <hjl@gnu.org>
7078 * elf64-alpha.c (elf64_alpha_merge_ind_symbols): Add prototype.
7079 (elf64_alpha_find_reloc_at_ofs): Likewise.
7081 2000-03-17 Alan Modra <alan@linuxcare.com.au>
7083 * reloc.c (bfd_check_overflow): In case complain_overflow_bitfield,
7084 flag an overflow if the bitfield is outside -2**n to 2**n-1. The
7085 allowable range used to be -2**(n-1) to 2**n-1.
7086 * reloc.c (_bfd_relocate_contents): Same here. Also replace
7087 "boolean overflow" with "bfd_reloc_status_type flag".
7089 2000-03-14 Doug Evans <dje@casey.transmeta.com>
7091 * elf32-m32r.c (m32r_elf_lo16_reloc): Rewrite.
7093 2000-03-14 Kazu Hirata <kazu@hxi.com>
7095 * reloc16.c (bfd_coff_reloc16_relax_section): Count the total number
7096 of shrinks properly, including the last reloc.
7098 2000-03-13 Kazu Hirata <kazu@hxi.com>
7100 * coff-h8300.c (h8300_reloc16_extra_cases): Fix the sanity
7103 2000-03-11 Alan Modra <alan@linuxcare.com.au>
7105 * ieee.c (ieee_archive_p): Return bfd_error_wrong_format on
7106 a format mismatch rather than an "error" from bfd_read such as
7107 bfd_error_file_truncated.
7109 2000-03-10 Geoff Keating <geoffk@cygnus.com>
7111 * elf32-mips.c (_bfd_mips_elf_relocate_section): Do proper
7112 sign-extension and big-endian compensation for
7113 R_MIPS_64 even in ld -r.
7115 2000-03-10 Geoffrey Keating <geoffk@cygnus.com>
7117 * elf32-mips.c (mips_elf_next_relocation): Rename from
7118 mips_elf_next_lo16_relocation, and generalize to look
7119 for any relocation type.
7120 (elf_mips_howto_table): Make R_MIPS_PC16 pcrel_offset.
7121 (elf_mips_gnu_rel_hi16): Howto for R_MIPS_GNU_REL_HI16.
7122 (elf_mips_gnu_rel_lo16): Howto for R_MIPS_GNU_REL_LO16.
7123 (elf_mips_gnu_rel16_s2): Howto for R_MIPS_GNU_REL16_S2.
7124 (elf_mips_gnu_pcrel64): Howto for R_MIPS_PC64.
7125 (elf_mips_gnu_pcrel32): Howto for R_MIPS_PC32.
7126 (bfd_elf32_bfd_reloc_type_lookup): Add new relocs.
7127 (mips_rtype_to_howto): Likewise.
7128 (mips_elf_calculate_relocation): Handle new relocs.
7129 (_bfd_mips_elf_relocate_section): REL_HI16/REL_LO16 relocs
7130 are paired. The addend for R_MIPS_GNU_REL16_S2
7131 is shifted right two bits.
7133 2000-03-10 Alan Modra <alan@linuxcare.com.au>
7135 * reloc.c (bfd_perform_relocation): Undo emacs formatting of
7136 comment, and ensure it doesn't happen again.
7137 (bfd_install_relocation): Same here.
7138 (_bfd_relocate_contents): Don't bother assigning unused signmask
7139 shift result. Fix typos in comments.
7140 Remove trailing whitespace throughout file.
7142 2000-03-07 Doug Evans <dje@casey.transmeta.com>
7144 * reloc.c (reloc_howto_struct): Fix partial_inplace comment.
7145 * bfd-in2.h: Rebuild.
7147 2000-03-06 Nick Clifton <nickc@cygnus.com>
7149 * peicode.h (struct pe_ILF_vars): Add sym_ptr_table and
7151 (SIZEOF_ILF_SYM_PTR_TABLE): Define.
7152 (SIZEOF_ILF_STRINGS): Redefine.
7153 (pe_ILF_make_a_symbol-reloc): New function. Creates a symbol
7154 relative reloc, as opposed to a section relative reloc.
7155 (pe_ILF_make_a_symbol): Set the class of local symbols to C_STAT
7157 Add length of symbol's prefix to string pointer.
7158 Store a pointer to the symbol in the symbol pointer table.
7159 (pe_ILF_build_a_bfd): Do not build .idata$2 or .idata$7.
7160 Initialise the symbol pointer table.
7161 Store the hint in the Hint/Name table.
7162 Make the jump reloc be symbol realtive, not section relative.
7163 Create an import symbol for imported code.
7165 2000-03-06 Catherine Moore <clm@cygnus.com>
7167 * elf.c (swap_out_syms): Check for null type_ptr.
7169 2000-03-01 Hans-Peter Nilsson <hp@axis.com>
7171 * aout-target.h (MY(write_object_contents)): Remove unused
7172 and unusable "#if CHOOSE_RELOC_SIZE".
7173 * pc532-mach.c (MY(write_object_contents)): Ditto.
7174 * netbsd.h (MY(write_object_contents)): Ditto.
7175 * hp300hpux.c (MY(write_object_contents)): Ditto.
7176 * freebsd.h (MY(write_object_contents)): Ditto.
7177 * aout-tic30.c (tic30_aout_write_object_contents): Ditto.
7179 2000-02-29 H.J. Lu <hjl@gnu.org>
7181 * peicode.h (jtab): Make it static.
7183 * coff-sh.c (sh_align_load_span): Declared if COFF_WITH_PE is
7184 defined and COFF_IMAGE_WITH_PE is not defined.
7185 (_bfd_sh_align_load_span): Defined as sh_align_load_span if
7186 COFF_WITH_PE is defined and COFF_IMAGE_WITH_PE is not defined.
7188 2000-03-01 Nick Clifton <nickc@cygnus.com>
7190 * coff-arm.c (bfd_arm_process_before_allocation): Make
7191 'symndx' signed to prevent compile time warning.
7193 * coff-mcore.c: Remove unused prototype for pe_object_p.
7195 * coff-sh.c: Add "#ifndef COFF_IMAGE_WITH_PE" around static
7196 functions that are not used when COFF_IMAGE_WITH_PE is
7198 (struct sh_opcode): Change type of 'flags' field to unsigned
7199 long so that it can hold the USESAS flag.
7201 * coffcode.h (styp_to_sec_flags): Initialise 'target_name'.
7203 * elf-m10300.c (mn10300_elf_relax_section): Initialise
7206 * elf32-i370.c: Add ATTRIBUTE_UNUSED to unused function
7208 Remove unusued variables and code.
7209 (elf_backend_add_symbol_hook): Fix prototype.
7211 * elf32-m68k.c (elf_m68k_gc_sweep_hook): Initialise 'sgot' and
7214 * elf32-mcore.c (mcore_elf_relocate_section): Initialise
7217 * elf32-mips.c: Add ATTRIBUTE_UNUSED to unused function
7219 Remove unusued variables and code.
7220 (elf_backend_add_symbol_hook): Fix prototype.
7222 * elf32-sh.c (sh_elf_set_mach_from_flags): Use 'flags'.
7224 * elflink.h (elf_bfd_link_add_symbols): Add ATTRIBUTE_UNUSED
7225 to unused function parameter.
7227 * pe-mips.c: Add ATTRIBUTE_UNUSED to unused function
7229 Use EMPTY_HOWTO to initialise empty howto slots.
7230 Remove unused variables.
7232 * peicode.h (pe_ILF_build_a_bfd): Initialise id6.
7234 2000-03-01 H.J. Lu <hjl@gnu.org>
7236 * aoutx.h (aout_link_input_section_std): Pass "true" to
7237 the undefined_symbol callback.
7238 (aout_link_input_section_ext): Likewise.
7239 * bout.c (get_value): Likewise.
7240 * coff-a29k.c (coff_a29k_relocate_section): Likewise.
7241 * coff-alpha.c (alpha_ecoff_get_relocated_section_conten):
7243 (alpha_relocate_section): Likewise.
7244 * coff-arm.c (coff_arm_relocate_section): Likewise.
7245 * coff-i960.c (coff_i960_relocate_section): Likewise.
7246 * coff-mcore.c (coff_mcore_relocate_section): Likewise.
7247 * coff-mips.c (mips_relocate_section): Likewise.
7248 * coff-ppc.c (coff_ppc_relocate_section): Likewise.
7249 * coff-sh.c (sh_relocate_section): Likewise.
7250 * coff-tic80.c (coff_tic80_relocate_section): Likewise.
7251 * cofflink.c (_bfd_coff_generic_relocate_section): Likewise.
7252 * elf-m10200.c (mn10200_elf_relocate_section): Likewise.
7253 * elf-m10300.c (mn10300_elf_relocate_section): Likewise.
7254 * elf32-d10v.c (elf32_d10v_relocate_section): Likewise.
7255 * elf32-fr30.c (fr30_elf_relocate_section): Likewise.
7256 * elf32-hppa.c (elf32_hppa_relocate_section): Likewise.
7257 * elf32-i370.c (i370_elf_relocate_section): Likewise.
7258 * elf32-m32r.c (m32r_elf_relocate_section): Likewise.
7259 * elf32-mcore.c (mcore_elf_relocate_section): Likewise.
7260 * elf32-sh.c (sh_elf_relocate_section): Likewise.
7261 * elf32-v850.c (v850_elf_relocate_section): Likewise.
7262 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Likewise.
7263 * elflink.h (elf_link_output_extsym): Likewise.
7264 * pe-mips.c (coff_pe_mips_relocate_section): Likewise.
7265 * reloc.c (bfd_generic_get_relocated_section_conten): Likewise.
7266 * reloc16.c (_bfd_ppc_xcoff_relocate_section): Likewise.
7268 * elf-hppa.h (elf_hppa_relocate_section): Pass "false" to the
7269 undefined_symbol callback when building shared library with
7270 -Bsymbolic and undefined symbols are allowed. Otherwise, pass
7272 * elf32-arm.h (elf32_arm_relocate_section): Likewise.
7273 * elf32-i386.c (elf_i386_relocate_section): Likewise.
7274 * elf32-m68k.c (elf_m68k_relocate_section): Likewise.
7275 * elf32-mips.c (mips_elf_calculate_relocation): Likewise.
7276 (elf32_mips_get_relocated_section_content): Likewise.
7277 * elf32-ppc.c (ppc_elf_relocate_section): Likewise.
7278 * elf32-sparc.c (elf32_sparc_relocate_section): Likewise.
7279 * elf64-alpha.c (elf64_alpha_relocate_section): Likewise.
7280 * elf64-sparc.c (sparc64_elf_relocate_section): Likewise.
7282 2000-02-28 Nick Clifton <nickc@cygnus.com>
7284 * Makefile.am: Add rules to build pe[i]-{sh|mips}.lo objects.
7285 * Makefile.in: Regenerate.
7287 * configure.in: Add support for mips and sh pe vectors.
7288 * configure: regenerate.
7290 * config.bfd: Add support for arm-wince, mips-pe and sh-pe
7293 * targets.c: Add mips and sh pe vectors.
7295 * libpei.h (coff_final_link_postscript): Only define if not
7298 * coffcode.h: Add support for WinCE magic numbers.
7300 * peigen.c (pe_print_reloc): Update comment and rearrange
7301 appending of newline character.
7303 * peicode.h: Add support for Image Library Format.
7304 (pe_ILF_vars): Structure containing data used by ILF code.
7305 (pe_ILF_make_a_section): New function. Create a section based
7307 (pe_ILF_make_a_reloc): New function. Create a reloc based on
7309 (pe_ILF_make_a_symbol): New function. Create a symbol based
7311 (pe_ILF_save_relocs): New function. Store the relocs created
7312 by pe_ILF_make_a_reloc in a section.
7313 (pe_ILF_build_a_bfd): New function. Create a BFD describing
7315 (pe_ILF_object_p): New function. Return a bfd_target pointer
7317 (pe_bfd_object_p): If an ILF object is detected call
7318 pe_ILF_object_p on it.
7320 * coff-arm.c: Add support for WinCE relocs which are different
7321 from normal ARM COFF relocs.
7322 * pe-arm.c: Unset TARGET_UNDERSCORE for a WinCE target.
7324 * coff-sh.c: Add support for sh-pe target.
7325 * pe-sh.c: New file. Support code for sh-pe target.
7326 * pei-sh.c: New file. Support code for sh-pe target.
7328 * pe-mips.c: New file. Support code for mips-pe target.
7329 * pei-mips.c: New file. Support code for mips-pe target.
7331 2000-02-27 Jakub Jelinek <jakub@redhat.com>
7333 * elf32-sparc.c (elf32_sparc_merge_private_bfd_data): Don't bump
7334 architecture if the object causing the bump is dynamic.
7335 * elf64-sparc.c (sparc64_elf_merge_private_bfd_data): Likewise,
7336 and also don't it for memory ordering.
7337 (sparc64_elf_write_relocs): Take src_rela out of the loop.
7339 2000-02-27 Ian Lance Taylor <ian@zembu.com>
7341 * dwarf2.c (read_abbrevs): Use _raw_size directly rather than
7342 calling bfd_get_section_size_before_reloc.
7343 (decode_line_info): Likewise.
7344 (_bfd_dwarf2_find_nearest_line): Likewise.
7346 2000-02-27 Eli Zaretskii <eliz@is.elta.co.il>
7348 * Makefile.am (stamp-lib): Use $(LIBTOOL) --config to get the
7349 name of the libtool directory.
7350 * Makefile.in: Rebuild.
7352 Fri Feb 25 18:39:26 2000 Rodney Brown (RodneyBrown@pmsc.com)
7354 * som.c (SOM_HOWTO): Define.
7355 (som_hppa_howto_table): Use it.
7357 2000-02-25 Alexandre Oliva <oliva@lsd.ic.unicamp.br>
7359 * config.bfd: Enable 64 bit support for GNU/Linux/sparc.
7361 * config.bfd: Enable 64 bit support for Solaris7+/sparc.
7363 2000-02-24 Catherine Moore <clm@cygnus.com>
7365 * som.c (som_misc_symbol_info): Add field
7367 (som_bfd_derive_misc_symbol_info): Initialize
7369 (som_build_and_write_symbol_table): Keep track
7370 of secondary_def field.
7371 (som_slurp_symbol_table): Set BSF_WEAK symbol flag
7372 if secondary_def field is set.
7373 (som_bfd_ar_write_symbol_stuff): Initialize
7376 2000-02-23 Stephane Carrez <stcarrez@worldnet.fr>
7378 * dwarf2.c (read_address): Read 16-bits addresses.
7379 (parse_comp_unit): Accept addr_size == 2.
7381 2000-02-23 Alan Modra <alan@spri.levels.unisa.edu.au>
7383 * bfd-in.h: Update copyright date.
7385 2000-02-23 Linas Vepstas <linas@linas.org>
7387 * cpu-i370.c: New file.
7388 * elf32-i370.c: New file.
7389 * archures.c (enum bfd_architecture): Add bfd_arch_i370.
7390 (bfd_i370_arch): New.
7391 (bfd_archures_list): Add bfd_i370_arch.
7392 * elf.c (prep_headers): Add bfd_arch_i370.
7393 * Makefile.am: Add support for IBM 370 elf.
7394 * config.bfd: Likewise.
7395 * configure.in: Likewise.
7396 * libbfd.h (bfd_reloc_code_real_names): Likewise.
7397 * reloc.c (bfd_reloc_code_type): Likewise.
7398 * targets.c: Likewise.
7400 * Makefile.in: Regenerate.
7401 * configure: Regenerate.
7402 * bfd-in2.h: Regenerate.
7404 2000-02-22 Ian Lance Taylor <ian@zembu.com>
7406 * elf32-i386.c (elf_i386_info_to_howto_rel): Give a warning for
7407 invalid relocation types, and change them to R_386_NONE.
7409 2000-02-22 H.J. Lu <hjl@gnu.org>
7411 * elflink.h (elf_link_add_object_symbols): If a version symbol is
7412 not defined, don't add a second ELF_VER_CHR.
7414 * elflink.h (elf_bfd_final_link): Call output_extsym for global
7415 symbols converted to local symbols even when stripping all
7417 (elf_link_output_extsym): Process global symbols converted to
7418 local symbols even if they are being stripped.
7420 2000-02-21 Alan Modra <alan@spri.levels.unisa.edu.au>
7422 * archures.c (bfd_octets_per_byte): Return unsigned int.
7423 (bfd_arch_mach_octets_per_byte): Ditto.
7424 * libbfd.c (bfd_read, bfd_seek): Quell signed vs. unsigned
7426 * section.c (bfd_get_section_size_before_reloc): Quell signed
7427 vs. unsigned comparison warning.
7428 (bfd_get_section_size_after_reloc): Same here. Fix parentheses too.
7429 * trad-core.c (trad_unix_core_file_p): Correct 2000-01-27
7430 change. What was I thinking?
7431 * bfd-in2.h: Regenerate.
7433 * elflink.h (elf_gc_sweep): Skip non-elf input bfds.
7434 (elf_gc_sections): Same here.
7435 (elf_gc_common_finalize_got_offsets): And here.
7437 2000-02-21 Ian Lance Taylor <ian@zembu.com>
7439 ELF HPPA doesn't work at present; remove it until it does.
7440 * config.bfd: Comment out setting targ_defvec to
7442 * Makefile.am: Rebuild dependencies.
7443 (BFD32_BACKENDS): Remove elf32-hppa.lo.
7444 (BFD32_BACKENDS_CFILES): Remove elf32-hppa.c.
7445 (SOURCE_HFILES): Remove elf32-hppa.h and hppa_stubs.h.
7446 * Makefile.in: Rebuild.
7447 * targets.c (bfd_target_vector): Comment out bfd_elf32_hppa_vec.
7449 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7451 * coffcode.h (coff_set_arch_mach_hook): Use free(), because there
7452 is no bfd_free(). Revert bfd_free part of previous change.
7454 2000-02-18 Geoff Keating <geoffk@cygnus.com>
7456 * coffcode.h (coff_set_arch_mach_hook): Don't use variable-size
7458 (coff_compute_section_file_positions): Use bfd_free to pair
7460 (coff_write_object_contents): Likewise.
7462 * coff-rs6000.c (xcoff_howto_table_16): New variable.
7463 (xcoff_rtype2howto): Handle 16-bit variants of 32-bit relocs.
7465 2000-02-18 Ulrich Drepper <drepper@cygnus.com>
7467 * coff-rs6000.c (XCOFFARMAGBIG): New macro.
7468 (xcoff_ar_file_hdr_big): New structure.
7469 (SIZEOF_AR_FILE_HDR_BIG): New macro.
7470 (xcoff_ar_hdr_big): New structure.
7471 (SIZEOF_AR_HDR_BIG): New macro.
7472 (xcoff_big_format_p): New macro.
7473 (xcoff_ardata_big): New macro.
7474 (arch_xhdr_big): New macro.
7475 (xcoff_slurp_armap): Handle large archives.
7476 (xcoff_archive_p): Detect large archives.
7477 (xcoff_read_ar_hdr): Handle large archives.
7478 (xcoff_openr_next_archived_file): Handle large archives.
7479 (xcoff_generic_stat_arch_elt): Handle large archives.
7480 (xcoff_write_armap_old): Rename from xcoff_write_armap.
7481 (xcoff_write_armap_big): New function.
7482 (xcoff_write_armap): New function, dispatch to _old or _big.
7483 (xcoff_write_archive_contents_old): Rename from
7484 xcoff_write_archive_contents.
7485 (xcoff_write_archive_contents_big): New function.
7486 (xcoff_write_archive_contents): New function, dispatch to _old or
7489 2000-02-18 Richard Henderson <rth@cygnus.com>
7491 * elf-bfd.h (struct elf_link_hash_table): Remove copy_indirect
7492 and hide_symbol members.
7493 (elf_link_hash_copy_indirect): Remove.
7494 (elf_link_hash_hide_symbol): Remove.
7495 (struct elf_backend_data): Add elf_backend_copy_indirect_symbol
7496 and elf_backend_hide_symbol.
7497 (_bfd_elf_link_hash_copy_indirect): Declare.
7498 (_bfd_elf_link_hash_hide_symbol): Declare.
7499 * elf.c (_bfd_elf_link_hash_copy_indirect): Remove table argument.
7500 (_bfd_elf_link_hash_hide_symbol): Likewise.
7501 (_bfd_elf_link_hash_table_init): Don't init killed members.
7502 * elflink.h (elf_link_add_object_symbols): Use the bed function
7503 pointers not elf_link_hash_{copy_indirect,hide_symbol}.
7504 (elf_link_assign_sym_version): Likewise.
7505 * elfxx-target.h (elf_backend_copy_indirect_symbol): Default.
7506 (elf_backend_hide_symbol): Likewise.
7507 (elfNN_bed): Update for new members.
7509 2000-02-17 Kevin Buettner <kevinb@redhat.com>
7511 * rs6000-core.c (CORE_DATA_SIZE_FIELD, CORE_COMM_FIELD, SAVE_FIELD,
7512 STACK_END_ADDR): Define for new core file format.
7513 (LOADER_OFFSET_FIELD, LOADER_REGION_SIZE, CORE_DUMP): New defines
7514 for handling the vagaries of the various core file structures used
7515 by AIX over the years.
7516 (rs6000coff_core_p, rs6000coff_core_file_matches_executable,
7517 Rs6kCorData): Use above defines to adapt code to use AIX 4.3's
7518 core_dumpx structure.
7520 Thu Feb 17 00:04:48 2000 J"orn Rennecke <amylaar@cygnus.co.uk>
7522 * archures.c (bfd_mach_sh2, bfd_mach_sh_dsp): New macros.
7523 (bfd_mach_sh3_dsp): Likewise.
7524 (bfd_mach_sh4): Reinstate.
7525 (bfd_default_scan): Recognize 7410, 7708, 7729 and 7750.
7526 * bfd-in2.h: Regenerate.
7527 * coff-sh.c (struct sh_opcode): flags is no longer short.
7528 (USESAS, USESAS_REG, USESR8, SETSAS, SETSAS_REG): New macros.
7529 (sh_opcode41, sh_opcode42): Integrate as sh_opcode41.
7530 (sh_opcode01, sh_opcode02, sh_opcode40): Add sh-dsp opcodes.
7531 (sh_opcode41, sh_opcode4, sh_opcode80): Likewise.
7532 (sh_opcodes): No longer const.
7533 (sh_dsp_opcodef0, sh_dsp_opcodef): New arrays.
7534 (sh_insn_uses_reg): Check for USESAS and USESR8.
7535 (sh_insn_sets_reg, sh_insns_conflict): Check for SETSAS.
7536 (_bfd_sh_align_load_span): Return early for SH4.
7537 Modify sh_opcodes lookup table for sh-dsp / sh3-dsp.
7538 Take into account that field b of a parallel processing insn
7539 could be mistaken for a separate insn.
7540 * cpu-sh.c (arch_info_struct): New array elements for
7541 sh2, sh-dsp and sh3-dsp.
7542 Reinstate element for sh4.
7543 (SH2_NEXT, SH_DSP_NEXT, SH3_DSP_NEXT): New macros.
7544 (SH4_NEXT): Reinstate.
7545 (SH3_NEXT, SH3E_NEXT): Adjust.
7546 * elf-bfd.h (_sh_elf_set_mach_from_flags): Declare.
7547 * elf32-sh.c (sh_elf_set_private_flags): New function.
7548 (sh_elf_copy_private_data, sh_elf_set_mach_from_flags): Likewise.
7549 (sh_elf_merge_private_data): New function.
7550 (elf_backend_object_p, bfd_elf32_bfd_set_private_bfd_flags): Define.
7551 (bfd_elf32_bfd_copy_private_bfd_data): Define.
7552 (bfd_elf32_bfd_merge_private_bfd_data): Change to
7553 sh_elf_merge_private_data.
7555 2000-02-13 Richard Henderson <rth@cygnus.com>
7557 * elf-bfd.h (struct elf_link_hash_table): Add copy_indirect and
7558 hide_symbol members.
7559 (elf_link_hash_copy_indirect): New.
7560 (elf_link_hash_hide_symbol): New.
7561 * elflink.h (elf_link_add_object_symbols): Break out copy from
7562 indirect new new symbol to elf.c.
7563 (elf_link_assign_sym_version): Break out privatization of
7564 non-exported symbol to elf.c.
7565 * elf.c (_bfd_elf_link_hash_copy_indirect): New.
7566 (_bfd_elf_link_hash_hide_symbol): New.
7567 (_bfd_elf_link_hash_table_init): Init copy_indirect and hide_symbol.
7569 2000-02-13 Ian Lance Taylor <ian@zembu.com>
7571 * section.c (_bfd_strip_section_from_output): Add info parameter.
7572 If it passed as non-NULL, use it to check whether any input BFD
7573 has an input section which uses this output section. Change all
7575 * bfd-in2.h: Rebuild.
7577 * bfd-in.h: Move declarations of bfd_get_elf_phdr_upper_bound and
7578 bfd_get_elf_phdrs in from bfd-in2.h, correcting patch of
7580 * bfd-in2.h: Rebuild.
7582 2000-02-10 Timothy Wall <twall@cygnus.com>
7584 * coffswap.h (coff_swap_sym_in): Add hook SWAP_SYM_IN_POST to
7585 allow final modifications of swapped-in symbol.
7586 (coff_swap_sym_out): Ditto with SWAP_SYM_OUT_POST.
7587 * coffcode.h (coff_write_relocs): Use macro
7588 SECTION_RELATIVE_ABSOLUTE_SYMBOL_P if defined to determine whether
7589 symbol index should be set to -1.
7591 Thu Feb 10 20:07:50 GMT 2000 Toshiyasu Morita (toshi.morita@sega.com)
7593 * coff-sh.c (USES1_REG, USES2_REG, SETS1_REG, SETS2_REG,
7594 USESF1_REG, USESF2_REG, SETSF1_REG, SETSF2_REG): New macros.
7595 * (sh_insn_sets_reg, sh_insn_sets_freg): New prototypes.
7596 * (sh_insn_sets_reg, sh_insn_uses_or_sets_reg, sh_insns_sets_freg,
7597 sh_insns_uses_or_sets_freg): New functions.
7598 * (sh_insn_uses_reg, sh_insn_uses_freg): Use new macros.
7599 * (sh_insns_conflict): Use new functions and new macros to
7600 detect conflicts when two instructions both set same integer registers,
7601 both set same fp register, and both set special register.
7603 2000-02-09 Timothy Wall <twall@cygnus.com>
7605 * coffgen.c (coff_real_object_p): Set arch/mach info prior to
7606 swapping in sections, so that the swapping routines have access to
7609 2000-02-08 Mark Elbrecht <snowball3@bigfoot.com>
7611 * coff-go32.c: Update comment. Update copyright.
7613 2000-01-27 Thomas de Lellis <tdel@windriver.com>
7615 * syms.c (bfd_decode_symclass)
7616 Two new class characters were added - 'V' and 'v'. The
7617 meaning of 'W' is now restricted to just weak non-object
7618 symbols. This allows differentiation between, for example,
7619 weak functions vs weak objects. nm for example now dumps:
7621 'w' = weak unresolved
7622 'V' = weak global object
7623 'v' = weak unresolved object
7625 (bfd_is_undefined_symclass): New function. Return true if the
7626 given symbol class represents and undefined/unresolved symbol.
7628 (bfd_symbol_info): Use bfd_is_undefined_symclass to check for
7631 * bfd-in2.h: Add prototype for bfd_is_undefined_symbol().
7633 * elf32-arm.h (elf32_arm_get_symbol_type): If a symbol has the
7634 STT_ARM_16BIT flag set, but it is not attached to a data object
7635 return STT_ARM_16BIT so that it will be treated as code by the
7638 2000-01-27 Alan Modra <alan@spri.levels.unisa.edu.au>
7640 * coff-i386.c (i3coff_object_p): Remove prototype.
7643 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Add const
7644 to name. Update copyright.
7646 * trad-core.c (trad_unix_core_file_p): Cast core_regsec
7647 assignment to avoid warning. Update copyright.
7649 2000-01-24 Robert Lipe (robertl@sco.com)
7651 * coffcode.h (coff_write_object_contents): Get buff via bfd_malloc
7652 instead of using GNU C extension.
7654 2000-01-21 Nick Clifton <nickc@cygnus.com>
7656 * libbfd.c (bfd_read): Do not attempt to get a negativly sized
7657 amount from a bfd_in_memory structure.
7658 (bfd_seek): Do not allow seeks past the end of a bfd_in_memory
7661 2000-01-14 Nick Clifton <nickc@cygnus.com>
7663 * linker.c (default_indirect_link_order): oops - fix incorrectly
7664 applied patch from Tim Wall.
7666 2000-01-13 Timothy Wall (twall@tiac.net>
7668 * coffcode.h: Use bfd_coff_xxx instead of the macro XXX (where xxx
7669 = scnhsz, filhsz, relsz, aoutsz, etc)
7671 * coffswap.h: Ditto.
7673 2000-01-13 Nick Clifton <nickc@cygnus.com>
7675 * elf32-arm.h (elf32_thumb_to_arm_stub): Fix offset in branch to
7676 interwork thumb to arm stub.
7678 2000-01-13 Timothy Wall (twall@tiac.net>
7680 * archures.c (bfd_octets_per_byte): New function: Return
7682 (bfd_arch_mach_octets_per_byte): New function: Return target
7685 * section.c: Distinguish between octets and bytes for usage of
7686 _cooked_size, _raw_size, and output_offset. Clarify
7687 description of bfd_set_section_contents.
7689 * bfd-in2.h: Regenerate.
7691 * coffgen.c: Indicate that the offset parameter is in bytes, not
7694 * cofflink.c (bfd_coff_link_input_bfd): Use bfd_octets_per_byte
7695 where appropriate to get the octet offset when calling
7696 bfd_set_section_contents.
7697 (bfd_coff_reloc_link_order): Ditto.
7699 * linker.c (bfd_generic_reloc_link_order): Ditto.
7700 (_bfd_default_link_order): Ditto.
7702 * reloc.c (bfd_perform_relocation): Distinguish between octets
7703 and bytes. Use octets when indexing into octet data; use bytes
7704 when calculating target addresses.
7705 (bfd_install_relocation): Ditto.
7707 * srec.c (srec_write_section): Ditto.
7709 2000-01-13 Nick Clifton <nickc@cygnus.com>
7711 * coff-mcore.c (COFF_DEFAULT_SECTION_ALIGNMENT_POWER): Change from
7712 3 to 2. This allows 4 byte sized sections, which is necessary for
7713 dlltool to build functioning DLLs.
7715 2000-01-10 Philip Blundell <pb@futuretv.com>
7717 * config.bfd (arm*-*-linux-gnu*): Match instead of arm*-*-linux-gnu.
7718 (arm*-*-conix*): New target.
7720 2000-01-10 Egor Duda <deo@logos-m.ru>
7722 * config.bfd: Include elf32_i386 vector to target list for cygwin
7725 * config.in: Undefine HAVE_WIN32_PSTATUS_T.
7726 * configure.in: Test for structure win32_pstatus_t in
7728 * configure: Regenerate.
7730 * elf.c (elfcore_grok_win32pstatus): New function: process
7731 win32_pstatus_t notes in elf core file.
7732 (elfcore_grok_note): Detect win32_pstatus notes.
7734 2000-01-03 Martin v. Loewis <loewis@informatik.hu-berlin.de>
7736 * elflink.c (_bfd_elf_link_record_dynamic_symbol): Process symbol
7738 * elflink.h (elf_link_add_object_symbols): Combine visibilities.
7739 * elf.c (bfd_elf_print_symbol): Interpret st_other as visibility.
7741 For older changes see ChangeLog-9899
7747 version-control: never